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 : 87685 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 (4325085) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4325085) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30042747 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4325085'] with mtr_portfolio_ids : ['30042747'] and first list_photo_ids : [] new path : /proc/87685/ Name: python3 Umask: 0002 State: R (running) Tgid: 87685 Ngid: 0 Pid: 87685 PPid: 87684 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 87685 NSpid: 87685 NSpgid: 86312 NSsid: 86312 VmPeak: 1113368 kB VmSize: 1113368 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104132 kB VmRSS: 104132 kB RssAnon: 66304 kB RssFile: 37828 kB RssShmem: 0 kB VmData: 872096 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 616 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: 43 nonvoluntary_ctxt_switches: 99 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '87685', 'Ngid': '0', 'Pid': '87685', 'PPid': '87684', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '87685', 'NSpid': '87685', 'NSpgid': '86312', 'NSsid': '86312', 'VmPeak': '1113368 kB', 'VmSize': '1113368 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104132 kB', 'VmRSS': '104132 kB', 'RssAnon': '66304 kB', 'RssFile': '37828 kB', 'RssShmem': '0 kB', 'VmData': '872096 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '616 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': '43', 'nonvoluntary_ctxt_switches': '99'} ('datou_batch_current', '87685', '1113368', '0', '1113368', '872096', '104132', b'', 'marlene', '4325085') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (30042747) 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 (4325085 ) ) 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 (30042747) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1402913488, 'portfolio_id': 30042747}, {'photo_id': 1402913486, 'portfolio_id': 30042747}, {'photo_id': 1402913484, 'portfolio_id': 30042747}, {'photo_id': 1402913480, 'portfolio_id': 30042747}, {'photo_id': 1402913447, 'portfolio_id': 30042747}, {'photo_id': 1402913445, 'portfolio_id': 30042747}, {'photo_id': 1402913444, 'portfolio_id': 30042747}, {'photo_id': 1402913443, 'portfolio_id': 30042747}, {'photo_id': 1402913442, 'portfolio_id': 30042747}, {'photo_id': 1402913440, 'portfolio_id': 30042747}, {'photo_id': 1402913421, 'portfolio_id': 30042747}, {'photo_id': 1402913419, 'portfolio_id': 30042747}, {'photo_id': 1402913407, 'portfolio_id': 30042747}, {'photo_id': 1402913405, 'portfolio_id': 30042747}, {'photo_id': 1402913400, 'portfolio_id': 30042747}, {'photo_id': 1402913396, 'portfolio_id': 30042747}, {'photo_id': 1402913393, 'portfolio_id': 30042747}, {'photo_id': 1402913390, 'portfolio_id': 30042747}, {'photo_id': 1402913001, 'portfolio_id': 30042747}, {'photo_id': 1402912976, 'portfolio_id': 30042747}, {'photo_id': 1402912974, 'portfolio_id': 30042747}, {'photo_id': 1402912121, 'portfolio_id': 30042747}, {'photo_id': 1402912119, 'portfolio_id': 30042747}, {'photo_id': 1402912117, 'portfolio_id': 30042747}, {'photo_id': 1402912115, 'portfolio_id': 30042747}, {'photo_id': 1402912097, 'portfolio_id': 30042747}, {'photo_id': 1402912094, 'portfolio_id': 30042747}, {'photo_id': 1402912091, 'portfolio_id': 30042747}, {'photo_id': 1402912086, 'portfolio_id': 30042747}, {'photo_id': 1402912082, 'portfolio_id': 30042747}, {'photo_id': 1402912079, 'portfolio_id': 30042747}, {'photo_id': 1402912070, 'portfolio_id': 30042747}, {'photo_id': 1402912066, 'portfolio_id': 30042747}, {'photo_id': 1402912062, 'portfolio_id': 30042747}, {'photo_id': 1402912059, 'portfolio_id': 30042747}, {'photo_id': 1402912056, 'portfolio_id': 30042747}, {'photo_id': 1402912024, 'portfolio_id': 30042747}, {'photo_id': 1402912021, 'portfolio_id': 30042747}, {'photo_id': 1402912018, 'portfolio_id': 30042747}, {'photo_id': 1402912016, 'portfolio_id': 30042747}, {'photo_id': 1402912006, 'portfolio_id': 30042747}, {'photo_id': 1402912004, 'portfolio_id': 30042747}, {'photo_id': 1402911987, 'portfolio_id': 30042747}, {'photo_id': 1402911976, 'portfolio_id': 30042747}, {'photo_id': 1402911957, 'portfolio_id': 30042747}, {'photo_id': 1402911820, 'portfolio_id': 30042747}, {'photo_id': 1402911801, 'portfolio_id': 30042747}, {'photo_id': 1402911800, 'portfolio_id': 30042747}, {'photo_id': 1402911633, 'portfolio_id': 30042747}, {'photo_id': 1402911598, 'portfolio_id': 30042747}, {'photo_id': 1402911560, 'portfolio_id': 30042747}, {'photo_id': 1402911516, 'portfolio_id': 30042747}, {'photo_id': 1402911461, 'portfolio_id': 30042747}, {'photo_id': 1402911395, 'portfolio_id': 30042747}, {'photo_id': 1402911167, 'portfolio_id': 30042747}, {'photo_id': 1402911165, 'portfolio_id': 30042747}, {'photo_id': 1402911126, 'portfolio_id': 30042747}, {'photo_id': 1402911055, 'portfolio_id': 30042747}, {'photo_id': 1402910169, 'portfolio_id': 30042747}, {'photo_id': 1402910102, 'portfolio_id': 30042747}, {'photo_id': 1402910036, 'portfolio_id': 30042747}] map_portfolio_id_photo_id: {30042747: [1402913488, 1402913486, 1402913484, 1402913480, 1402913447, 1402913445, 1402913444, 1402913443, 1402913442, 1402913440, 1402913421, 1402913419, 1402913407, 1402913405, 1402913400, 1402913396, 1402913393, 1402913390, 1402913001, 1402912976, 1402912974, 1402912121, 1402912119, 1402912117, 1402912115, 1402912097, 1402912094, 1402912091, 1402912086, 1402912082, 1402912079, 1402912070, 1402912066, 1402912062, 1402912059, 1402912056, 1402912024, 1402912021, 1402912018, 1402912016, 1402912006, 1402912004, 1402911987, 1402911976, 1402911957, 1402911820, 1402911801, 1402911800, 1402911633, 1402911598, 1402911560, 1402911516, 1402911461, 1402911395, 1402911167, 1402911165, 1402911126, 1402911055, 1402910169, 1402910102, 1402910036]} ##### 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.017153501510620117 #### 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 Jan 8 04:14:57 2026 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 (30042747) 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 : 30042747 get user id for portfolio 30042747 get sub ptf for main ptf 30042747, type 3726 and hashtags ['metal', 'Carton_gris', 'Teint_Dans_La_Masse', 'papier', 'flou', 'plastique', 'autre_refus', 'environnement', 'kraft', 'mal_croppe', 'cartonnette', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=30042747 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','Teint_Dans_La_Masse','papier','flou','plastique','autre_refus','environnement','kraft','mal_croppe','cartonnette','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=30042747 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','Teint_Dans_La_Masse','papier','flou','plastique','autre_refus','environnement','kraft','mal_croppe','cartonnette','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 30042747, 'sub_port_id': 30042790, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565848, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 28)}, 'cartonnette': {'main_port_id': 30042747, 'sub_port_id': 30042791, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565849, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 28)}, 'environnement': {'main_port_id': 30042747, 'sub_port_id': 30042792, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565850, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 28)}, 'metal': {'main_port_id': 30042747, 'sub_port_id': 30042793, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565851, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 30042747, 'sub_port_id': 30042794, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565852, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 28)}, 'Carton_brun': {'main_port_id': 30042747, 'sub_port_id': 30042795, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565853, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 28)}, 'papier': {'main_port_id': 30042747, 'sub_port_id': 30042796, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565854, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 28)}, 'autre_refus': {'main_port_id': 30042747, 'sub_port_id': 30042797, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565855, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 28)}, 'mal_croppe': {'main_port_id': 30042747, 'sub_port_id': 30042798, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565856, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 28)}, 'kraft': {'main_port_id': 30042747, 'sub_port_id': 30042799, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565857, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 28)}, 'plastique': {'main_port_id': 30042747, 'sub_port_id': 30042800, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565858, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 28)}, 'Carton_gris': {'main_port_id': 30042747, 'sub_port_id': 30042801, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565859, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30042790 , 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=30042747 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 (30042790) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30042747) result : ((1402910036,), (1402910102,), (1402910169,), (1402911055,), (1402911126,), (1402911165,), (1402911167,), (1402911395,), (1402911461,), (1402911516,), (1402911560,), (1402911598,), (1402911633,), (1402911800,), (1402911801,), (1402911820,), (1402911957,), (1402911976,), (1402911987,), (1402912004,), (1402912006,), (1402912016,), (1402912018,), (1402912021,), (1402912024,), (1402912056,), (1402912059,), (1402912062,), (1402912066,), (1402912070,), (1402912079,), (1402912082,), (1402912086,), (1402912091,), (1402912094,), (1402912097,), (1402912115,), (1402912117,), (1402912119,), (1402912121,), (1402912974,), (1402912976,), (1402913001,), (1402913390,), (1402913393,), (1402913396,), (1402913400,), (1402913405,), (1402913407,), (1402913419,), (1402913421,), (1402913440,), (1402913442,), (1402913443,), (1402913444,), (1402913445,), (1402913447,), (1402913480,), (1402913484,), (1402913486,), (1402913488,)) 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 (1402911800,1402913400) 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 30042791 , 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=30042747 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 (30042791) result : ((1402911799,), (1402912038,), (1402912039,), (1402912967,), (1402912968,), (1402913473,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30042747) result : ((1402910036,), (1402910102,), (1402910169,), (1402911055,), (1402911126,), (1402911165,), (1402911167,), (1402911395,), (1402911461,), (1402911516,), (1402911560,), (1402911598,), (1402911633,), (1402911800,), (1402911801,), (1402911820,), (1402911957,), (1402911976,), (1402911987,), (1402912004,), (1402912006,), (1402912016,), (1402912018,), (1402912021,), (1402912024,), (1402912056,), (1402912059,), (1402912062,), (1402912066,), (1402912070,), (1402912079,), (1402912082,), (1402912086,), (1402912091,), (1402912094,), (1402912097,), (1402912115,), (1402912117,), (1402912119,), (1402912121,), (1402912974,), (1402912976,), (1402913001,), (1402913390,), (1402913393,), (1402913396,), (1402913400,), (1402913405,), (1402913407,), (1402913419,), (1402913421,), (1402913440,), (1402913442,), (1402913443,), (1402913444,), (1402913445,), (1402913447,), (1402913480,), (1402913484,), (1402913486,), (1402913488,)) 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 (1402911800,1402913400) 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 30042792 , 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=30042747 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 (30042792) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30042747) result : ((1402910036,), (1402910102,), (1402910169,), (1402911055,), (1402911126,), (1402911165,), (1402911167,), (1402911395,), (1402911461,), (1402911516,), (1402911560,), (1402911598,), (1402911633,), (1402911800,), (1402911801,), (1402911820,), (1402911957,), (1402911976,), (1402911987,), (1402912004,), (1402912006,), (1402912016,), (1402912018,), (1402912021,), (1402912024,), (1402912056,), (1402912059,), (1402912062,), (1402912066,), (1402912070,), (1402912079,), (1402912082,), (1402912086,), (1402912091,), (1402912094,), (1402912097,), (1402912115,), (1402912117,), (1402912119,), (1402912121,), (1402912974,), (1402912976,), (1402913001,), (1402913390,), (1402913393,), (1402913396,), (1402913400,), (1402913405,), (1402913407,), (1402913419,), (1402913421,), (1402913440,), (1402913442,), (1402913443,), (1402913444,), (1402913445,), (1402913447,), (1402913480,), (1402913484,), (1402913486,), (1402913488,)) 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 (1402911800,1402913400) 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 30042793 , 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=30042747 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 (30042793) result : ((1402912111,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30042747) result : ((1402910036,), (1402910102,), (1402910169,), (1402911055,), (1402911126,), (1402911165,), (1402911167,), (1402911395,), (1402911461,), (1402911516,), (1402911560,), (1402911598,), (1402911633,), (1402911800,), (1402911801,), (1402911820,), (1402911957,), (1402911976,), (1402911987,), (1402912004,), (1402912006,), (1402912016,), (1402912018,), (1402912021,), (1402912024,), (1402912056,), (1402912059,), (1402912062,), (1402912066,), (1402912070,), (1402912079,), (1402912082,), (1402912086,), (1402912091,), (1402912094,), (1402912097,), (1402912115,), (1402912117,), (1402912119,), (1402912121,), (1402912974,), (1402912976,), (1402913001,), (1402913390,), (1402913393,), (1402913396,), (1402913400,), (1402913405,), (1402913407,), (1402913419,), (1402913421,), (1402913440,), (1402913442,), (1402913443,), (1402913444,), (1402913445,), (1402913447,), (1402913480,), (1402913484,), (1402913486,), (1402913488,)) 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 (1402911800,1402913400) 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 30042794 , 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=30042747 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 (30042794) result : ((1402911794,), (1402911795,), (1402912030,), (1402912031,), (1402912032,), (1402912033,), (1402912034,), (1402912104,), (1402912105,), (1402912946,), (1402912947,), (1402912948,), (1402912949,), (1402912950,), (1402913413,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30042747) result : ((1402910036,), (1402910102,), (1402910169,), (1402911055,), (1402911126,), (1402911165,), (1402911167,), (1402911395,), (1402911461,), (1402911516,), (1402911560,), (1402911598,), (1402911633,), (1402911800,), (1402911801,), (1402911820,), (1402911957,), (1402911976,), (1402911987,), (1402912004,), (1402912006,), (1402912016,), (1402912018,), (1402912021,), (1402912024,), (1402912056,), (1402912059,), (1402912062,), (1402912066,), (1402912070,), (1402912079,), (1402912082,), (1402912086,), (1402912091,), (1402912094,), (1402912097,), (1402912115,), (1402912117,), (1402912119,), (1402912121,), (1402912974,), (1402912976,), (1402913001,), (1402913390,), (1402913393,), (1402913396,), (1402913400,), (1402913405,), (1402913407,), (1402913419,), (1402913421,), (1402913440,), (1402913442,), (1402913443,), (1402913444,), (1402913445,), (1402913447,), (1402913480,), (1402913484,), (1402913486,), (1402913488,)) 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 (1402911800,1402913400) 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 30042795 , 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=30042747 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 (30042795) result : ((1402912041,), (1402912042,), (1402912043,), (1402912044,), (1402912045,), (1402912108,), (1402912109,), (1402912110,), (1402912954,), (1402912955,), (1402912956,), (1402912957,), (1402912958,), (1402912959,), (1402912969,), (1402912970,), (1402913453,), (1402913475,), (1402913476,), (1402913477,), (1402913478,), (1402913479,), (1402913481,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30042747) result : ((1402910036,), (1402910102,), (1402910169,), (1402911055,), (1402911126,), (1402911165,), (1402911167,), (1402911395,), (1402911461,), (1402911516,), (1402911560,), (1402911598,), (1402911633,), (1402911800,), (1402911801,), (1402911820,), (1402911957,), (1402911976,), (1402911987,), (1402912004,), (1402912006,), (1402912016,), (1402912018,), (1402912021,), (1402912024,), (1402912056,), (1402912059,), (1402912062,), (1402912066,), (1402912070,), (1402912079,), (1402912082,), (1402912086,), (1402912091,), (1402912094,), (1402912097,), (1402912115,), (1402912117,), (1402912119,), (1402912121,), (1402912974,), (1402912976,), (1402913001,), (1402913390,), (1402913393,), (1402913396,), (1402913400,), (1402913405,), (1402913407,), (1402913419,), (1402913421,), (1402913440,), (1402913442,), (1402913443,), (1402913444,), (1402913445,), (1402913447,), (1402913480,), (1402913484,), (1402913486,), (1402913488,)) 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 (1402911800,1402913400) 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 30042796 , 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=30042747 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 (30042796) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30042747) result : ((1402910036,), (1402910102,), (1402910169,), (1402911055,), (1402911126,), (1402911165,), (1402911167,), (1402911395,), (1402911461,), (1402911516,), (1402911560,), (1402911598,), (1402911633,), (1402911800,), (1402911801,), (1402911820,), (1402911957,), (1402911976,), (1402911987,), (1402912004,), (1402912006,), (1402912016,), (1402912018,), (1402912021,), (1402912024,), (1402912056,), (1402912059,), (1402912062,), (1402912066,), (1402912070,), (1402912079,), (1402912082,), (1402912086,), (1402912091,), (1402912094,), (1402912097,), (1402912115,), (1402912117,), (1402912119,), (1402912121,), (1402912974,), (1402912976,), (1402913001,), (1402913390,), (1402913393,), (1402913396,), (1402913400,), (1402913405,), (1402913407,), (1402913419,), (1402913421,), (1402913440,), (1402913442,), (1402913443,), (1402913444,), (1402913445,), (1402913447,), (1402913480,), (1402913484,), (1402913486,), (1402913488,)) 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 (1402911800,1402913400) 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 30042797 , 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=30042747 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 (30042797) result : ((1402912036,), (1402912106,), (1402913450,), (1402913451,), (1402913452,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30042747) result : ((1402910036,), (1402910102,), (1402910169,), (1402911055,), (1402911126,), (1402911165,), (1402911167,), (1402911395,), (1402911461,), (1402911516,), (1402911560,), (1402911598,), (1402911633,), (1402911800,), (1402911801,), (1402911820,), (1402911957,), (1402911976,), (1402911987,), (1402912004,), (1402912006,), (1402912016,), (1402912018,), (1402912021,), (1402912024,), (1402912056,), (1402912059,), (1402912062,), (1402912066,), (1402912070,), (1402912079,), (1402912082,), (1402912086,), (1402912091,), (1402912094,), (1402912097,), (1402912115,), (1402912117,), (1402912119,), (1402912121,), (1402912974,), (1402912976,), (1402913001,), (1402913390,), (1402913393,), (1402913396,), (1402913400,), (1402913405,), (1402913407,), (1402913419,), (1402913421,), (1402913440,), (1402913442,), (1402913443,), (1402913444,), (1402913445,), (1402913447,), (1402913480,), (1402913484,), (1402913486,), (1402913488,)) 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 (1402911800,1402913400) 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 30042798 , 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=30042747 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 (30042798) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30042747) result : ((1402910036,), (1402910102,), (1402910169,), (1402911055,), (1402911126,), (1402911165,), (1402911167,), (1402911395,), (1402911461,), (1402911516,), (1402911560,), (1402911598,), (1402911633,), (1402911800,), (1402911801,), (1402911820,), (1402911957,), (1402911976,), (1402911987,), (1402912004,), (1402912006,), (1402912016,), (1402912018,), (1402912021,), (1402912024,), (1402912056,), (1402912059,), (1402912062,), (1402912066,), (1402912070,), (1402912079,), (1402912082,), (1402912086,), (1402912091,), (1402912094,), (1402912097,), (1402912115,), (1402912117,), (1402912119,), (1402912121,), (1402912974,), (1402912976,), (1402913001,), (1402913390,), (1402913393,), (1402913396,), (1402913400,), (1402913405,), (1402913407,), (1402913419,), (1402913421,), (1402913440,), (1402913442,), (1402913443,), (1402913444,), (1402913445,), (1402913447,), (1402913480,), (1402913484,), (1402913486,), (1402913488,)) 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 (1402911800,1402913400) 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 30042799 , 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=30042747 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 (30042799) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30042747) result : ((1402910036,), (1402910102,), (1402910169,), (1402911055,), (1402911126,), (1402911165,), (1402911167,), (1402911395,), (1402911461,), (1402911516,), (1402911560,), (1402911598,), (1402911633,), (1402911800,), (1402911801,), (1402911820,), (1402911957,), (1402911976,), (1402911987,), (1402912004,), (1402912006,), (1402912016,), (1402912018,), (1402912021,), (1402912024,), (1402912056,), (1402912059,), (1402912062,), (1402912066,), (1402912070,), (1402912079,), (1402912082,), (1402912086,), (1402912091,), (1402912094,), (1402912097,), (1402912115,), (1402912117,), (1402912119,), (1402912121,), (1402912974,), (1402912976,), (1402913001,), (1402913390,), (1402913393,), (1402913396,), (1402913400,), (1402913405,), (1402913407,), (1402913419,), (1402913421,), (1402913440,), (1402913442,), (1402913443,), (1402913444,), (1402913445,), (1402913447,), (1402913480,), (1402913484,), (1402913486,), (1402913488,)) 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 (1402911800,1402913400) 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 30042800 , 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=30042747 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 (30042800) result : ((1402912046,), (1402912047,), (1402912960,), (1402913482,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30042747) result : ((1402910036,), (1402910102,), (1402910169,), (1402911055,), (1402911126,), (1402911165,), (1402911167,), (1402911395,), (1402911461,), (1402911516,), (1402911560,), (1402911598,), (1402911633,), (1402911800,), (1402911801,), (1402911820,), (1402911957,), (1402911976,), (1402911987,), (1402912004,), (1402912006,), (1402912016,), (1402912018,), (1402912021,), (1402912024,), (1402912056,), (1402912059,), (1402912062,), (1402912066,), (1402912070,), (1402912079,), (1402912082,), (1402912086,), (1402912091,), (1402912094,), (1402912097,), (1402912115,), (1402912117,), (1402912119,), (1402912121,), (1402912974,), (1402912976,), (1402913001,), (1402913390,), (1402913393,), (1402913396,), (1402913400,), (1402913405,), (1402913407,), (1402913419,), (1402913421,), (1402913440,), (1402913442,), (1402913443,), (1402913444,), (1402913445,), (1402913447,), (1402913480,), (1402913484,), (1402913486,), (1402913488,)) 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 (1402911800,1402913400) 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 30042801 , 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=30042747 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 (30042801) result : ((1402911797,), (1402911798,), (1402912037,), (1402912049,), (1402912952,), (1402912965,), (1402912966,), (1402913468,), (1402913469,), (1402913470,), (1402913471,), (1402913472,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30042747) result : ((1402910036,), (1402910102,), (1402910169,), (1402911055,), (1402911126,), (1402911165,), (1402911167,), (1402911395,), (1402911461,), (1402911516,), (1402911560,), (1402911598,), (1402911633,), (1402911800,), (1402911801,), (1402911820,), (1402911957,), (1402911976,), (1402911987,), (1402912004,), (1402912006,), (1402912016,), (1402912018,), (1402912021,), (1402912024,), (1402912056,), (1402912059,), (1402912062,), (1402912066,), (1402912070,), (1402912079,), (1402912082,), (1402912086,), (1402912091,), (1402912094,), (1402912097,), (1402912115,), (1402912117,), (1402912119,), (1402912121,), (1402912974,), (1402912976,), (1402913001,), (1402913390,), (1402913393,), (1402913396,), (1402913400,), (1402913405,), (1402913407,), (1402913419,), (1402913421,), (1402913440,), (1402913442,), (1402913443,), (1402913444,), (1402913445,), (1402913447,), (1402913480,), (1402913484,), (1402913486,), (1402913488,)) 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 (1402911800,1402913400) 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`=30042747 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','Teint_Dans_La_Masse','papier','flou','plastique','autre_refus','environnement','kraft','mal_croppe','cartonnette','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=30042747 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','Teint_Dans_La_Masse','papier','flou','plastique','autre_refus','environnement','kraft','mal_croppe','cartonnette','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 30042747, 'sub_port_id': 30042802, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565860, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 29)}, 'cartonnette': {'main_port_id': 30042747, 'sub_port_id': 30042803, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565861, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 29)}, 'environnement': {'main_port_id': 30042747, 'sub_port_id': 30042804, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565862, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 29)}, 'metal': {'main_port_id': 30042747, 'sub_port_id': 30042805, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565863, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 30042747, 'sub_port_id': 30042806, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565864, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 29)}, 'Carton_brun': {'main_port_id': 30042747, 'sub_port_id': 30042807, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565865, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 29)}, 'papier': {'main_port_id': 30042747, 'sub_port_id': 30042808, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565866, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 29)}, 'autre_refus': {'main_port_id': 30042747, 'sub_port_id': 30042809, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565867, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 29)}, 'mal_croppe': {'main_port_id': 30042747, 'sub_port_id': 30042810, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565868, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 29)}, 'kraft': {'main_port_id': 30042747, 'sub_port_id': 30042811, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565869, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 29)}, 'plastique': {'main_port_id': 30042747, 'sub_port_id': 30042812, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565870, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 9, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 29)}, 'Carton_gris': {'main_port_id': 30042747, 'sub_port_id': 30042813, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20565871, 'last_updated_at': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 8, 4, 12, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 8, 4, 9, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30042802,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30042790 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30042803,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30042791 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30042804,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30042792 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30042805,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30042793 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30042806,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30042794 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30042807,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30042795 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30042808,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30042796 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30042809,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30042797 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30042810,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30042798 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30042811,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30042799 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30042812,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30042800 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30042813,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30042801 lien utilise dans velours : https://marlene.fotonower.com/velours/30042802,30042803,30042804,30042805,30042806,30042807,30042808,30042809,30042810,30042811,30042812,30042813?tags=flou,cartonnette,environnement,metal,Teint_Dans_La_Masse,Carton_brun,papier,autre_refus,mal_croppe,kraft,plastique,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([30042747]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1402913488, 1402913486, 1402913484, 1402913480, 1402913447, 1402913445, 1402913444, 1402913443, 1402913442, 1402913440] map_info['map_portfolio_photo'] : {30042747: [1402913488, 1402913486, 1402913484, 1402913480, 1402913447, 1402913445, 1402913444, 1402913443, 1402913442, 1402913440, 1402913421, 1402913419, 1402913407, 1402913405, 1402913400, 1402913396, 1402913393, 1402913390, 1402913001, 1402912976, 1402912974, 1402912121, 1402912119, 1402912117, 1402912115, 1402912097, 1402912094, 1402912091, 1402912086, 1402912082, 1402912079, 1402912070, 1402912066, 1402912062, 1402912059, 1402912056, 1402912024, 1402912021, 1402912018, 1402912016, 1402912006, 1402912004, 1402911987, 1402911976, 1402911957, 1402911820, 1402911801, 1402911800, 1402911633, 1402911598, 1402911560, 1402911516, 1402911461, 1402911395, 1402911167, 1402911165, 1402911126, 1402911055, 1402910169, 1402910102, 1402910036]} final : False mtd_id 4302 list_pids : [1402913488, 1402913486, 1402913484, 1402913480, 1402913447, 1402913445, 1402913444, 1402913443, 1402913442, 1402913440] Looping around the photos to save general results len do output : 1 /30042747. 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, '4325085') ('4302', '30042747', '1402913488', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913486', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913484', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913480', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913447', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913445', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913444', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913443', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913442', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913440', None, None, None, None, None, '4325085') 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, '30042747', "{'flou': 30042790, 'cartonnette': 30042791, 'environnement': 30042792, 'metal': 30042793, 'Teint_Dans_La_Masse': 30042794, 'Carton_brun': 30042795, 'papier': 30042796, 'autre_refus': 30042797, 'mal_croppe': 30042798, 'kraft': 30042799, 'plastique': 30042800, 'Carton_gris': 30042801}", None, None, None, None, '4325085'), ('4302', '30042747', '1402913488', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913486', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913484', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913480', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913447', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913445', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913444', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913443', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913442', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913440', None, None, None, None, None, '4325085')] time used for this insertion : 0.015789031982421875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.547583818435669 time spend to save output : 0.016122102737426758 total time spend for step 1 : 0.5637059211730957 step2:final Thu Jan 8 04:14:58 2026 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 (30042747) 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 30042747 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1402910169,1402910102,1402910036,1402911167,1402911820,1402911165,1402911801,1402911126,1402911800,1402911055,1402911633,1402911598,1402911560,1402911516,1402911461,1402911395,1402912006,1402912004,1402911987,1402911976,1402911957,1402912024,1402912021,1402912018,1402912016,1402912070,1402912066,1402912062,1402912059,1402912056,1402912097,1402912094,1402912091,1402912086,1402912082,1402912079,1402912121,1402912119,1402912117,1402912115,1402913001,1402912976,1402912974,1402913407,1402913405,1402913400,1402913396,1402913393,1402913390,1402913421,1402913447,1402913419,1402913445,1402913444,1402913443,1402913442,1402913440,1402913488,1402913486,1402913484,1402913480); 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([30042747]) Inside saveOutput : final : False verbose : True original output for save of step final : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ('0.0744032267646889',), 1402913447: ('0.0744032267646889',), 1402913445: ('0.0744032267646889',), 1402913444: ('0.0744032267646889',), 1402913443: ('0.0744032267646889',), 1402913442: ('0.0744032267646889',), 1402913440: ('0.0744032267646889',)} new output for save of step final : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ('0.0744032267646889',), 1402913447: ('0.0744032267646889',), 1402913445: ('0.0744032267646889',), 1402913444: ('0.0744032267646889',), 1402913443: ('0.0744032267646889',), 1402913442: ('0.0744032267646889',), 1402913440: ('0.0744032267646889',)} [1402913488, 1402913486, 1402913484, 1402913480, 1402913447, 1402913445, 1402913444, 1402913443, 1402913442, 1402913440] map_info['map_portfolio_photo'] : {30042747: [1402913488, 1402913486, 1402913484, 1402913480, 1402913447, 1402913445, 1402913444, 1402913443, 1402913442, 1402913440, 1402913421, 1402913419, 1402913407, 1402913405, 1402913400, 1402913396, 1402913393, 1402913390, 1402913001, 1402912976, 1402912974, 1402912121, 1402912119, 1402912117, 1402912115, 1402912097, 1402912094, 1402912091, 1402912086, 1402912082, 1402912079, 1402912070, 1402912066, 1402912062, 1402912059, 1402912056, 1402912024, 1402912021, 1402912018, 1402912016, 1402912006, 1402912004, 1402911987, 1402911976, 1402911957, 1402911820, 1402911801, 1402911800, 1402911633, 1402911598, 1402911560, 1402911516, 1402911461, 1402911395, 1402911167, 1402911165, 1402911126, 1402911055, 1402910169, 1402910102, 1402910036]} final : False mtd_id 4302 list_pids : [1402913488, 1402913486, 1402913484, 1402913480, 1402913447, 1402913445, 1402913444, 1402913443, 1402913442, 1402913440] Looping around the photos to save general results len do output : 10 /1402913488.Didn't retrieve data . /1402913486.Didn't retrieve data . /1402913484.Didn't retrieve data . /1402913480.Didn't retrieve data . /1402913447.Didn't retrieve data . /1402913445.Didn't retrieve data . /1402913444.Didn't retrieve data . /1402913443.Didn't retrieve data . /1402913442.Didn't retrieve data . /1402913440.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, '4325085') ('4302', '30042747', '1402913488', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913486', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913484', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913480', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913447', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913445', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913444', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913443', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913442', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913440', None, None, None, None, None, '4325085') 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', '30042747', '1402913488', '0.0744032267646889', None, None, None, None, '4325085'), ('4302', '30042747', '1402913486', '0.0744032267646889', None, None, None, None, '4325085'), ('4302', '30042747', '1402913484', '0.0744032267646889', None, None, None, None, '4325085'), ('4302', '30042747', '1402913480', '0.0744032267646889', None, None, None, None, '4325085'), ('4302', '30042747', '1402913447', '0.0744032267646889', None, None, None, None, '4325085'), ('4302', '30042747', '1402913445', '0.0744032267646889', None, None, None, None, '4325085'), ('4302', '30042747', '1402913444', '0.0744032267646889', None, None, None, None, '4325085'), ('4302', '30042747', '1402913443', '0.0744032267646889', None, None, None, None, '4325085'), ('4302', '30042747', '1402913442', '0.0744032267646889', None, None, None, None, '4325085'), ('4302', '30042747', '1402913440', '0.0744032267646889', None, None, None, None, '4325085')] time used for this insertion : 0.015407800674438477 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0819096565246582 time spend to save output : 0.016002178192138672 total time spend for step 2 : 0.09791183471679688 step3:velours_tree Thu Jan 8 04:14:58 2026 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 : {30042747: [{'flou': 30042790, 'cartonnette': 30042791, 'environnement': 30042792, 'metal': 30042793, 'Teint_Dans_La_Masse': 30042794, 'Carton_brun': 30042795, 'papier': 30042796, 'autre_refus': 30042797, 'mal_croppe': 30042798, 'kraft': 30042799, 'plastique': 30042800, 'Carton_gris': 30042801}]} input_args_next_step : {30042747: ()} output_args : {30042747: [{'flou': 30042790, 'cartonnette': 30042791, 'environnement': 30042792, 'metal': 30042793, 'Teint_Dans_La_Masse': 30042794, 'Carton_brun': 30042795, 'papier': 30042796, 'autre_refus': 30042797, 'mal_croppe': 30042798, 'kraft': 30042799, 'plastique': 30042800, 'Carton_gris': 30042801}]} args : 30042747 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 : ({'flou': 30042790, 'cartonnette': 30042791, 'environnement': 30042792, 'metal': 30042793, 'Teint_Dans_La_Masse': 30042794, 'Carton_brun': 30042795, 'papier': 30042796, 'autre_refus': 30042797, 'mal_croppe': 30042798, 'kraft': 30042799, 'plastique': 30042800, 'Carton_gris': 30042801},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30042747) 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([30042747]) 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.25264573097229004 time spend to save output : 7.176399230957031e-05 total time spend for step 3 : 0.2527174949645996 step4:send_mail_cod Thu Jan 8 04:14:58 2026 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 : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ('0.0744032267646889',), 1402913447: ('0.0744032267646889',), 1402913445: ('0.0744032267646889',), 1402913444: ('0.0744032267646889',), 1402913443: ('0.0744032267646889',), 1402913442: ('0.0744032267646889',), 1402913440: ('0.0744032267646889',)} input_args_next_step : {1402913488: ()} output_args : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ('0.0744032267646889',), 1402913447: ('0.0744032267646889',), 1402913445: ('0.0744032267646889',), 1402913444: ('0.0744032267646889',), 1402913443: ('0.0744032267646889',), 1402913442: ('0.0744032267646889',), 1402913440: ('0.0744032267646889',)} args : 1402913488 depend.output_id : 0 input_args_next_step : {1402913488: ('0.0744032267646889',), 1402913486: ()} output_args : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ('0.0744032267646889',), 1402913447: ('0.0744032267646889',), 1402913445: ('0.0744032267646889',), 1402913444: ('0.0744032267646889',), 1402913443: ('0.0744032267646889',), 1402913442: ('0.0744032267646889',), 1402913440: ('0.0744032267646889',)} args : 1402913486 depend.output_id : 0 input_args_next_step : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ()} output_args : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ('0.0744032267646889',), 1402913447: ('0.0744032267646889',), 1402913445: ('0.0744032267646889',), 1402913444: ('0.0744032267646889',), 1402913443: ('0.0744032267646889',), 1402913442: ('0.0744032267646889',), 1402913440: ('0.0744032267646889',)} args : 1402913484 depend.output_id : 0 input_args_next_step : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ()} output_args : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ('0.0744032267646889',), 1402913447: ('0.0744032267646889',), 1402913445: ('0.0744032267646889',), 1402913444: ('0.0744032267646889',), 1402913443: ('0.0744032267646889',), 1402913442: ('0.0744032267646889',), 1402913440: ('0.0744032267646889',)} args : 1402913480 depend.output_id : 0 input_args_next_step : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ('0.0744032267646889',), 1402913447: ()} output_args : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ('0.0744032267646889',), 1402913447: ('0.0744032267646889',), 1402913445: ('0.0744032267646889',), 1402913444: ('0.0744032267646889',), 1402913443: ('0.0744032267646889',), 1402913442: ('0.0744032267646889',), 1402913440: ('0.0744032267646889',)} args : 1402913447 depend.output_id : 0 input_args_next_step : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ('0.0744032267646889',), 1402913447: ('0.0744032267646889',), 1402913445: ()} output_args : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ('0.0744032267646889',), 1402913447: ('0.0744032267646889',), 1402913445: ('0.0744032267646889',), 1402913444: ('0.0744032267646889',), 1402913443: ('0.0744032267646889',), 1402913442: ('0.0744032267646889',), 1402913440: ('0.0744032267646889',)} args : 1402913445 depend.output_id : 0 input_args_next_step : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ('0.0744032267646889',), 1402913447: ('0.0744032267646889',), 1402913445: ('0.0744032267646889',), 1402913444: ()} output_args : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ('0.0744032267646889',), 1402913447: ('0.0744032267646889',), 1402913445: ('0.0744032267646889',), 1402913444: ('0.0744032267646889',), 1402913443: ('0.0744032267646889',), 1402913442: ('0.0744032267646889',), 1402913440: ('0.0744032267646889',)} args : 1402913444 depend.output_id : 0 input_args_next_step : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ('0.0744032267646889',), 1402913447: ('0.0744032267646889',), 1402913445: ('0.0744032267646889',), 1402913444: ('0.0744032267646889',), 1402913443: ()} output_args : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ('0.0744032267646889',), 1402913447: ('0.0744032267646889',), 1402913445: ('0.0744032267646889',), 1402913444: ('0.0744032267646889',), 1402913443: ('0.0744032267646889',), 1402913442: ('0.0744032267646889',), 1402913440: ('0.0744032267646889',)} args : 1402913443 depend.output_id : 0 input_args_next_step : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ('0.0744032267646889',), 1402913447: ('0.0744032267646889',), 1402913445: ('0.0744032267646889',), 1402913444: ('0.0744032267646889',), 1402913443: ('0.0744032267646889',), 1402913442: ()} output_args : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ('0.0744032267646889',), 1402913447: ('0.0744032267646889',), 1402913445: ('0.0744032267646889',), 1402913444: ('0.0744032267646889',), 1402913443: ('0.0744032267646889',), 1402913442: ('0.0744032267646889',), 1402913440: ('0.0744032267646889',)} args : 1402913442 depend.output_id : 0 input_args_next_step : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ('0.0744032267646889',), 1402913447: ('0.0744032267646889',), 1402913445: ('0.0744032267646889',), 1402913444: ('0.0744032267646889',), 1402913443: ('0.0744032267646889',), 1402913442: ('0.0744032267646889',), 1402913440: ()} output_args : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ('0.0744032267646889',), 1402913447: ('0.0744032267646889',), 1402913445: ('0.0744032267646889',), 1402913444: ('0.0744032267646889',), 1402913443: ('0.0744032267646889',), 1402913442: ('0.0744032267646889',), 1402913440: ('0.0744032267646889',)} args : 1402913440 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 : {30042747: [{'flou': 30042790, 'cartonnette': 30042791, 'environnement': 30042792, 'metal': 30042793, 'Teint_Dans_La_Masse': 30042794, 'Carton_brun': 30042795, 'papier': 30042796, 'autre_refus': 30042797, 'mal_croppe': 30042798, 'kraft': 30042799, 'plastique': 30042800, 'Carton_gris': 30042801}]} input_args_next_step : {1402913488: ('0.0744032267646889',), 1402913486: ('0.0744032267646889',), 1402913484: ('0.0744032267646889',), 1402913480: ('0.0744032267646889',), 1402913447: ('0.0744032267646889',), 1402913445: ('0.0744032267646889',), 1402913444: ('0.0744032267646889',), 1402913443: ('0.0744032267646889',), 1402913442: ('0.0744032267646889',), 1402913440: ('0.0744032267646889',), 30042747: ()} output_args : {30042747: [{'flou': 30042790, 'cartonnette': 30042791, 'environnement': 30042792, 'metal': 30042793, 'Teint_Dans_La_Masse': 30042794, 'Carton_brun': 30042795, 'papier': 30042796, 'autre_refus': 30042797, 'mal_croppe': 30042798, 'kraft': 30042799, 'plastique': 30042800, 'Carton_gris': 30042801}]} args : 30042747 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.0744032267646889',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30042747) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1402913488,1402913486,1402913484,1402913480,1402913447,1402913445,1402913444,1402913443,1402913442,1402913440) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1402913440 begin to download photo : 1402913444 begin to download photo : 1402913480 begin to download photo : 1402913488 download finish for photo 1402913444 begin to download photo : 1402913445 download finish for photo 1402913480 begin to download photo : 1402913484 download finish for photo 1402913488 download finish for photo 1402913440 begin to download photo : 1402913442 download finish for photo 1402913445 begin to download photo : 1402913447 download finish for photo 1402913484 begin to download photo : 1402913486 download finish for photo 1402913442 begin to download photo : 1402913443 download finish for photo 1402913447 download finish for photo 1402913486 download finish for photo 1402913443 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette300427901767842099/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P30042747_08-01-2026_04_14_59.pdf 30042790 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30042790 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300427901767842099 30042791 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30042791 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402911799: '1767841406_1460262_1402910036_90505c69ad350cc56d22686c791757e8_rle_crop_4093573833_0.png', 1402912038: '1767841506_1465613_1402911560_2e5987d391f96fe6bee5a029b3fb4dcc_rle_crop_4093573969_0.png', 1402912039: '1767841506_1465613_1402911461_ab0a45f2d825d926a8198f5771ec56bc_rle_crop_4093573991_0.png', 1402912967: '1767841767_1477648_1402912119_703b7f803e1c88b4a69d5fbf58640bd7_rle_crop_4093576704_0.png', 1402912968: '1767841767_1477648_1402912115_f0a1a0caf529a0fab2837512bbb9f4fc_rle_crop_4093576738_0.png', 1402913473: '1767842007_1487741_1402913421_354cebd4f66feb65b1bb4fb8ecfec664_rle_crop_4093577365_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/5d5d066bc2039b6e74e9609f240f929a_49365617.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/fa3fd7e98dce5a09be0e749f9dafca07_46889511.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/ed09973a7093231b7ff3ce565696d714_13502225.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/5a872d9f96672655025a149260c2e10b_30409613.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/947867562b21c65a84d307ba288f9f11_78989892.png change filename to text .imagette300427911767842099/ imagette300427911767842099/1767842007_1487741_1402913421_354cebd4f66feb65b1bb4fb8ecfec664_rle_crop_4093577365_0.png.png imagette300427911767842099/1767841767_1477648_1402912119_703b7f803e1c88b4a69d5fbf58640bd7_rle_crop_4093576704_0.png.png imagette300427911767842099/1767841506_1465613_1402911461_ab0a45f2d825d926a8198f5771ec56bc_rle_crop_4093573991_0.png.png imagette300427911767842099/1767841406_1460262_1402910036_90505c69ad350cc56d22686c791757e8_rle_crop_4093573833_0.png.png imagette300427911767842099/1767841767_1477648_1402912115_f0a1a0caf529a0fab2837512bbb9f4fc_rle_crop_4093576738_0.png.png imagette300427911767842099/1767841506_1465613_1402911560_2e5987d391f96fe6bee5a029b3fb4dcc_rle_crop_4093573969_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/eb408d87b53fc666c729b124c686d000_74676650.png imagette300427911767842099 30042793 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30042793 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402912111: '1767841645_1472420_1402912021_4ce78091f49f7c7d7442d52150044334_rle_crop_4093576300_0.png'} change filename to text .imagette300427931767842099/ imagette300427931767842099/1767841645_1472420_1402912021_4ce78091f49f7c7d7442d52150044334_rle_crop_4093576300_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/333116b6059d9015bd0a8f395b79228e_98905339.png imagette300427931767842099 30042797 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30042797 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402912036: '1767841506_1465613_1402911560_2e5987d391f96fe6bee5a029b3fb4dcc_rle_crop_4093573973_0.png', 1402912106: '1767841645_1472420_1402912018_9d64e892e3dfccb28c0571d8d1e26cfa_rle_crop_4093576320_0.png', 1402913450: '1767841985_1487332_1402912059_2ff2850c7ab42e023828f64ac03c3490_rle_crop_4093577174_0.png', 1402913451: '1767841985_1487332_1402912056_036ad0db7d1a0303170f6a9ebf22f80c_rle_crop_4093577185_0.png', 1402913452: '1767841985_1487332_1402912056_036ad0db7d1a0303170f6a9ebf22f80c_rle_crop_4093577190_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/89732196a0b0e7efbfd435543f93abb8_66580472.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/36f07fd05a124c7969e4e8e76094b349_16924464.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/dce2ad1ce2af4ff8e016143ed6d1ea68_74471722.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/fb6bcbf209932e1bb4e56e3c5f8ac26d_72366175.png change filename to text .imagette300427971767842099/ imagette300427971767842099/1767841985_1487332_1402912056_036ad0db7d1a0303170f6a9ebf22f80c_rle_crop_4093577185_0.png.png imagette300427971767842099/1767841985_1487332_1402912059_2ff2850c7ab42e023828f64ac03c3490_rle_crop_4093577174_0.png.png imagette300427971767842099/1767841506_1465613_1402911560_2e5987d391f96fe6bee5a029b3fb4dcc_rle_crop_4093573973_0.png.png imagette300427971767842099/1767841985_1487332_1402912056_036ad0db7d1a0303170f6a9ebf22f80c_rle_crop_4093577190_0.png.png imagette300427971767842099/1767841645_1472420_1402912018_9d64e892e3dfccb28c0571d8d1e26cfa_rle_crop_4093576320_0.png.png imagette300427981767842100/ imagette300427991767842100/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/1f5c4f43a4a65314280c2c6f0086b04e_40504826.png imagette300427971767842099 30042798 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30042798 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300427981767842100 30042799 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30042799 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300427991767842100 30042800 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30042800 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402912046: '1767841506_1465613_1402911560_2e5987d391f96fe6bee5a029b3fb4dcc_rle_crop_4093573967_0.png', 1402912047: '1767841506_1465613_1402911516_4d1baa9c2795918b3573eb2ca964cf77_rle_crop_4093573985_0.png', 1402912960: '1767841745_1477300_1402912024_22f87cf0b2ddc274ada1b2e377ab486e_rle_crop_4093576508_0.png', 1402913482: '1767842007_1487741_1402913390_562543996b51a2b93532fc3f2a82e319_rle_crop_4093577431_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/6e1d9d53ce1c450e8a89f201dba862d4_70845788.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/4b95f07928bfcd7ee0ab547b0ed7d11a_40219663.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/452a4f6c695406a0da2b60dc951a61e9_61746707.png change filename to text .imagette300428001767842100/ imagette300428001767842100/1767841506_1465613_1402911516_4d1baa9c2795918b3573eb2ca964cf77_rle_crop_4093573985_0.png.png imagette300428001767842100/1767842007_1487741_1402913390_562543996b51a2b93532fc3f2a82e319_rle_crop_4093577431_0.png.png imagette300428001767842100/1767841506_1465613_1402911560_2e5987d391f96fe6bee5a029b3fb4dcc_rle_crop_4093573967_0.png.png imagette300428001767842100/1767841745_1477300_1402912024_22f87cf0b2ddc274ada1b2e377ab486e_rle_crop_4093576508_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/aae838548bde79bb2ae7e6f38c2647a2_42663644.png imagette300428001767842100 30042794 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30042794 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402911794: '1767841406_1460262_1402910036_90505c69ad350cc56d22686c791757e8_rle_crop_4093573830_0.png', 1402911795: '1767841406_1460262_1402910036_90505c69ad350cc56d22686c791757e8_rle_crop_4093573829_0.png', 1402912030: '1767841506_1465613_1402911560_2e5987d391f96fe6bee5a029b3fb4dcc_rle_crop_4093573970_0.png', 1402912031: '1767841506_1465613_1402911516_4d1baa9c2795918b3573eb2ca964cf77_rle_crop_4093573987_0.png', 1402912032: '1767841506_1465613_1402911461_ab0a45f2d825d926a8198f5771ec56bc_rle_crop_4093574007_0.png', 1402912033: '1767841506_1465613_1402911395_4c8198f93f1169f7e9f90faabde5726a_rle_crop_4093574021_0.png', 1402912034: '1767841506_1465613_1402911395_4c8198f93f1169f7e9f90faabde5726a_rle_crop_4093574020_0.png', 1402912104: '1767841645_1472420_1402912021_4ce78091f49f7c7d7442d52150044334_rle_crop_4093576305_0.png', 1402912105: '1767841645_1472420_1402912018_9d64e892e3dfccb28c0571d8d1e26cfa_rle_crop_4093576319_0.png', 1402912946: '1767841745_1477300_1402912024_22f87cf0b2ddc274ada1b2e377ab486e_rle_crop_4093576519_0.png', 1402912947: '1767841745_1477300_1402912004_9d18084e66c54bfed152dfad7d050900_rle_crop_4093576530_0.png', 1402912948: '1767841745_1477300_1402912004_9d18084e66c54bfed152dfad7d050900_rle_crop_4093576529_0.png', 1402912949: '1767841745_1477300_1402911987_594eb734859f6196b8215c6fc01bf0f5_rle_crop_4093576547_0.png', 1402912950: '1767841745_1477300_1402911957_f7880c7040b224b4971a166476544518_rle_crop_4093576585_0.png', 1402913413: '1767841886_1483422_1402912976_6ae0d93e8ea0effbcb401d148baa6c42_rle_crop_4093576998_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/2da524b3a2ad0b494a8ddd38c1136894_42404595.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/fb3e491ec70481b897d88f6c1be3cc72_73162801.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/0fe1ba8402d6f88f8b7dc72f776a865e_35503647.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/638bb9246c593049572d9366cab52637_74695759.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/37c938cf68b585a6fc052cf8f1b0ce77_47744196.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/ea1edc871418c434dbc75954cf0b68f0_28239614.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/96a3a314829e19dca0d69e770fc4e79d_86775431.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/67b916e4261ccf93397a21ffe0beda1a_13734121.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/553d865ba3d43cecb15823f478e18198_78581601.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/77624b05c9a8ad9a4e672e2ea0d43163_55751049.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/f06cf14436417693f955296fb310a62f_18660350.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/1b57ae00a73c2f0d8b0941032bafab05_76404222.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/b2f7805742107a104b2de25b5007e8c9_69828178.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/a931462e22d1a50d883d57a22e3b6fcf_4295776.png change filename to text .imagette300427941767842100/ imagette300427941767842100/1767841506_1465613_1402911560_2e5987d391f96fe6bee5a029b3fb4dcc_rle_crop_4093573970_0.png.png imagette300427941767842100/1767841886_1483422_1402912976_6ae0d93e8ea0effbcb401d148baa6c42_rle_crop_4093576998_0.png.png imagette300427941767842100/1767841745_1477300_1402912024_22f87cf0b2ddc274ada1b2e377ab486e_rle_crop_4093576519_0.png.png imagette300427941767842100/1767841506_1465613_1402911395_4c8198f93f1169f7e9f90faabde5726a_rle_crop_4093574021_0.png.png imagette300427941767842100/1767841645_1472420_1402912018_9d64e892e3dfccb28c0571d8d1e26cfa_rle_crop_4093576319_0.png.png imagette300427941767842100/1767841506_1465613_1402911461_ab0a45f2d825d926a8198f5771ec56bc_rle_crop_4093574007_0.png.png imagette300427941767842100/1767841745_1477300_1402912004_9d18084e66c54bfed152dfad7d050900_rle_crop_4093576530_0.png.png imagette300427941767842100/1767841745_1477300_1402911957_f7880c7040b224b4971a166476544518_rle_crop_4093576585_0.png.png imagette300427941767842100/1767841506_1465613_1402911395_4c8198f93f1169f7e9f90faabde5726a_rle_crop_4093574020_0.png.png imagette300427941767842100/1767841745_1477300_1402912004_9d18084e66c54bfed152dfad7d050900_rle_crop_4093576529_0.png.png imagette300427941767842100/1767841645_1472420_1402912021_4ce78091f49f7c7d7442d52150044334_rle_crop_4093576305_0.png.png imagette300427941767842100/1767841745_1477300_1402911987_594eb734859f6196b8215c6fc01bf0f5_rle_crop_4093576547_0.png.png imagette300427941767842100/1767841406_1460262_1402910036_90505c69ad350cc56d22686c791757e8_rle_crop_4093573830_0.png.png imagette300427941767842100/1767841506_1465613_1402911516_4d1baa9c2795918b3573eb2ca964cf77_rle_crop_4093573987_0.png.png imagette300427941767842100/1767841406_1460262_1402910036_90505c69ad350cc56d22686c791757e8_rle_crop_4093573829_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/135a3ce8dba19707aed7c1228cbceb7a_57483400.png imagette300427941767842100 30042795 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30042795 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402912957: '1767841745_1477300_1402911976_0b6f7a0fd5b11ae5795ad55c17bbbbe0_rle_crop_4093576562_0.png', 1402913481: '1767842007_1487741_1402913390_562543996b51a2b93532fc3f2a82e319_rle_crop_4093577443_0.png', 1402913479: '1767842007_1487741_1402913390_562543996b51a2b93532fc3f2a82e319_rle_crop_4093577436_0.png', 1402913478: '1767842007_1487741_1402913390_562543996b51a2b93532fc3f2a82e319_rle_crop_4093577439_0.png', 1402913477: '1767842007_1487741_1402913396_895e2f2082cee8c4059e4901a1b1c588_rle_crop_4093577411_0.png', 1402913476: '1767842007_1487741_1402913400_7fc625a959fd3ff7ac1abe45387551a4_rle_crop_4093577399_0.png', 1402913475: '1767842007_1487741_1402913421_354cebd4f66feb65b1bb4fb8ecfec664_rle_crop_4093577370_0.png', 1402913453: '1767841985_1487332_1402912056_036ad0db7d1a0303170f6a9ebf22f80c_rle_crop_4093577192_0.png', 1402912970: '1767841767_1477648_1402912117_00580db7164eac214c2e908c58aac8fb_rle_crop_4093576722_0.png', 1402912969: '1767841767_1477648_1402912119_703b7f803e1c88b4a69d5fbf58640bd7_rle_crop_4093576705_0.png', 1402912959: '1767841745_1477300_1402911957_f7880c7040b224b4971a166476544518_rle_crop_4093576581_0.png', 1402912958: '1767841745_1477300_1402911957_f7880c7040b224b4971a166476544518_rle_crop_4093576580_0.png', 1402912041: '1767841506_1465613_1402911560_2e5987d391f96fe6bee5a029b3fb4dcc_rle_crop_4093573965_0.png', 1402912956: '1767841745_1477300_1402911976_0b6f7a0fd5b11ae5795ad55c17bbbbe0_rle_crop_4093576565_0.png', 1402912955: '1767841745_1477300_1402912004_9d18084e66c54bfed152dfad7d050900_rle_crop_4093576531_0.png', 1402912954: '1767841745_1477300_1402912024_22f87cf0b2ddc274ada1b2e377ab486e_rle_crop_4093576513_0.png', 1402912110: '1767841645_1472420_1402912018_9d64e892e3dfccb28c0571d8d1e26cfa_rle_crop_4093576322_0.png', 1402912109: '1767841645_1472420_1402912018_9d64e892e3dfccb28c0571d8d1e26cfa_rle_crop_4093576323_0.png', 1402912108: '1767841645_1472420_1402912021_4ce78091f49f7c7d7442d52150044334_rle_crop_4093576307_0.png', 1402912045: '1767841506_1465613_1402911395_4c8198f93f1169f7e9f90faabde5726a_rle_crop_4093574015_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/cba0297ee31a15b62ba057832691e256_43577429.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/f3719c03ed6b6582ecece258e408b7ec_23175739.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/5516609cff6f809f2ca30b3d7799cd64_53071872.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/67dba52fa3abde10e0611bb124e56274_22552159.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/6066c8b0a8f416f948d702594762b542_79596667.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/6af304b89f63aaac209f10e917f4cb29_19428206.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/f22d69b2bbd24c0bb893d851360c512f_47322695.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/634222e92361d6229273e3411ca3d017_48289213.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/ac9831405af7b2e222ae4fdb5c2de74f_86302442.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/aaeec9235552b7c9b9001a297bbbd1df_82701217.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/45691d609e04d65d0d37578c4b7a5d5e_40467417.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/21a1b33ec95172051087f240b7a1bf84_70698124.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/cf9b5fea7e98911c7677e7fa446ba792_46577603.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/35ac2b5c672d010115cb943f56d97a7e_63391713.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/ca4d5623083e542b25b2cbfa3f7fa4b3_90927358.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/42d026427633fa2d4b7a759ae91f605e_4886969.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/94b1fdb862d7692e1b9edca95b3e1a32_91231066.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/f7fdf114f4ecaa481f898b182393b831_66317289.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/7b52c826159d4cd84e2c65255b255ae3_63143200.png change filename to text .imagette300427951767842101/ imagette300427951767842101/1767841745_1477300_1402911957_f7880c7040b224b4971a166476544518_rle_crop_4093576581_0.png.png imagette300427951767842101/1767841985_1487332_1402912056_036ad0db7d1a0303170f6a9ebf22f80c_rle_crop_4093577192_0.png.png imagette300427951767842101/1767842007_1487741_1402913390_562543996b51a2b93532fc3f2a82e319_rle_crop_4093577443_0.png.png imagette300427951767842101/1767842007_1487741_1402913421_354cebd4f66feb65b1bb4fb8ecfec664_rle_crop_4093577370_0.png.png imagette300427951767842101/1767841745_1477300_1402911976_0b6f7a0fd5b11ae5795ad55c17bbbbe0_rle_crop_4093576562_0.png.png imagette300427951767842101/1767841745_1477300_1402911976_0b6f7a0fd5b11ae5795ad55c17bbbbe0_rle_crop_4093576565_0.png.png imagette300427951767842101/1767842007_1487741_1402913400_7fc625a959fd3ff7ac1abe45387551a4_rle_crop_4093577399_0.png.png imagette300427951767842101/1767841767_1477648_1402912119_703b7f803e1c88b4a69d5fbf58640bd7_rle_crop_4093576705_0.png.png imagette300427951767842101/1767841506_1465613_1402911560_2e5987d391f96fe6bee5a029b3fb4dcc_rle_crop_4093573965_0.png.png imagette300427951767842101/1767842007_1487741_1402913396_895e2f2082cee8c4059e4901a1b1c588_rle_crop_4093577411_0.png.png imagette300427951767842101/1767841645_1472420_1402912018_9d64e892e3dfccb28c0571d8d1e26cfa_rle_crop_4093576323_0.png.png imagette300427951767842101/1767842007_1487741_1402913390_562543996b51a2b93532fc3f2a82e319_rle_crop_4093577436_0.png.png imagette300427951767842101/1767841506_1465613_1402911395_4c8198f93f1169f7e9f90faabde5726a_rle_crop_4093574015_0.png.png imagette300427951767842101/1767841745_1477300_1402912004_9d18084e66c54bfed152dfad7d050900_rle_crop_4093576531_0.png.png imagette300427951767842101/1767841645_1472420_1402912021_4ce78091f49f7c7d7442d52150044334_rle_crop_4093576307_0.png.png imagette300427951767842101/1767841645_1472420_1402912018_9d64e892e3dfccb28c0571d8d1e26cfa_rle_crop_4093576322_0.png.png imagette300427951767842101/1767841745_1477300_1402911957_f7880c7040b224b4971a166476544518_rle_crop_4093576580_0.png.png imagette300427951767842101/1767841745_1477300_1402912024_22f87cf0b2ddc274ada1b2e377ab486e_rle_crop_4093576513_0.png.png imagette300427951767842101/1767842007_1487741_1402913390_562543996b51a2b93532fc3f2a82e319_rle_crop_4093577439_0.png.png imagette300427951767842101/1767841767_1477648_1402912117_00580db7164eac214c2e908c58aac8fb_rle_crop_4093576722_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/83589415417e4753feb578752e80a8fc_59354830.png imagette300427951767842101 30042801 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30042801 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402911797: '1767841406_1460262_1402910169_3480f8a0ce56135ab602a9c02f291ccd_rle_crop_4093573796_0.png', 1402911798: '1767841406_1460262_1402910102_b0ae73ac2b25dcde531cbbae2a6a1570_rle_crop_4093573812_0.png', 1402912037: '1767841506_1465613_1402911461_ab0a45f2d825d926a8198f5771ec56bc_rle_crop_4093573997_0.png', 1402912049: '1767841524_1465962_1402911598_a75aa73ee0a23d1410dabf088fe5528a_rle_crop_4093574069_0.png', 1402912952: '1767841745_1477300_1402911957_f7880c7040b224b4971a166476544518_rle_crop_4093576576_0.png', 1402912965: '1767841767_1477648_1402912115_f0a1a0caf529a0fab2837512bbb9f4fc_rle_crop_4093576744_0.png', 1402912966: '1767841767_1477648_1402912115_f0a1a0caf529a0fab2837512bbb9f4fc_rle_crop_4093576743_0.png', 1402913468: '1767842007_1487741_1402913421_354cebd4f66feb65b1bb4fb8ecfec664_rle_crop_4093577366_0.png', 1402913469: '1767842007_1487741_1402913421_354cebd4f66feb65b1bb4fb8ecfec664_rle_crop_4093577374_0.png', 1402913470: '1767842007_1487741_1402913405_a3993aee04b2c65e2e066cbb88e013c6_rle_crop_4093577388_0.png', 1402913471: '1767842007_1487741_1402913393_bf586fd2651a0cea04ef63f429510c27_rle_crop_4093577424_0.png', 1402913472: '1767842007_1487741_1402913393_bf586fd2651a0cea04ef63f429510c27_rle_crop_4093577425_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/c46bca83f85f2acf05628f7306382ee1_6628205.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/047b8b19bd1040711471a0a74384c045_66936923.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/8c874d675be8086555dc833f9a062cd8_74292341.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/ef6b98b8d9321184007b20a1779525c6_91539395.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/49d86f3de4df53094a2b9f767d5f53b5_56682253.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/ab96fb744acc59caa886ea087d0cb5ef_38725525.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/47fe689ca0e4bd99b8dd479b4dee90e9_60084237.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/6b2434d162f6a04edb3a47044c9ef439_39176088.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/75679c50da61ee3902534b7745f85188_12721724.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/843938a4e6df2af85c71fff33bd3bbf3_26315389.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/08a9e5057c2220c4b58f6b2cecd4dbac_35025405.png change filename to text .imagette300428011767842103/ imagette300428011767842103/1767841767_1477648_1402912115_f0a1a0caf529a0fab2837512bbb9f4fc_rle_crop_4093576743_0.png.png imagette300428011767842103/1767841406_1460262_1402910102_b0ae73ac2b25dcde531cbbae2a6a1570_rle_crop_4093573812_0.png.png imagette300428011767842103/1767841767_1477648_1402912115_f0a1a0caf529a0fab2837512bbb9f4fc_rle_crop_4093576744_0.png.png imagette300428011767842103/1767841506_1465613_1402911461_ab0a45f2d825d926a8198f5771ec56bc_rle_crop_4093573997_0.png.png imagette300428011767842103/1767841406_1460262_1402910169_3480f8a0ce56135ab602a9c02f291ccd_rle_crop_4093573796_0.png.png imagette300428011767842103/1767841524_1465962_1402911598_a75aa73ee0a23d1410dabf088fe5528a_rle_crop_4093574069_0.png.png imagette300428011767842103/1767842007_1487741_1402913421_354cebd4f66feb65b1bb4fb8ecfec664_rle_crop_4093577374_0.png.png imagette300428011767842103/1767842007_1487741_1402913393_bf586fd2651a0cea04ef63f429510c27_rle_crop_4093577424_0.png.png imagette300428011767842103/1767842007_1487741_1402913421_354cebd4f66feb65b1bb4fb8ecfec664_rle_crop_4093577366_0.png.png imagette300428011767842103/1767841745_1477300_1402911957_f7880c7040b224b4971a166476544518_rle_crop_4093576576_0.png.png imagette300428011767842103/1767842007_1487741_1402913393_bf586fd2651a0cea04ef63f429510c27_rle_crop_4093577425_0.png.png imagette300428011767842103/1767842007_1487741_1402913405_a3993aee04b2c65e2e066cbb88e013c6_rle_crop_4093577388_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/dda7c61196e0998fc0568efd20d30786_42970222.png imagette300428011767842103 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=30042747 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/30042802,30042803,30042804,30042805,30042806,30042807,30042808,30042809,30042810,30042811,30042812,30042813?tags=flou,cartonnette,environnement,metal,Teint_Dans_La_Masse,Carton_brun,papier,autre_refus,mal_croppe,kraft,plastique,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1402913488] : ('0.0744032267646889',) no score found for photo 1402913488 We are sending mail with results at report@fotonower.com args[1402913486] : ('0.0744032267646889',) no score found for photo 1402913486 We are sending mail with results at report@fotonower.com args[1402913484] : ('0.0744032267646889',) no score found for photo 1402913484 We are sending mail with results at report@fotonower.com args[1402913480] : ('0.0744032267646889',) no score found for photo 1402913480 We are sending mail with results at report@fotonower.com args[1402913447] : ('0.0744032267646889',) no score found for photo 1402913447 We are sending mail with results at report@fotonower.com args[1402913445] : ('0.0744032267646889',) no score found for photo 1402913445 We are sending mail with results at report@fotonower.com args[1402913444] : ('0.0744032267646889',) no score found for photo 1402913444 We are sending mail with results at report@fotonower.com args[1402913443] : ('0.0744032267646889',) no score found for photo 1402913443 We are sending mail with results at report@fotonower.com args[1402913442] : ('0.0744032267646889',) no score found for photo 1402913442 We are sending mail with results at report@fotonower.com args[1402913440] : ('0.0744032267646889',) no score found for photo 1402913440 We are sending mail with results at report@fotonower.com refus_total : 0.0744032267646889 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30042747 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_P30042747_08-01-2026_04_14_59.pdf results_Auto_P30042747_08-01-2026_04_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30042747_08-01-2026_04_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','30042747','results_Auto_P30042747_08-01-2026_04_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30042747_08-01-2026_04_14_59.pdf','pdf','','0.3','0.0744032267646889') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([30042747]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1402913488, 1402913486, 1402913484, 1402913480, 1402913447, 1402913445, 1402913444, 1402913443, 1402913442, 1402913440] map_info['map_portfolio_photo'] : {30042747: [1402913488, 1402913486, 1402913484, 1402913480, 1402913447, 1402913445, 1402913444, 1402913443, 1402913442, 1402913440, 1402913421, 1402913419, 1402913407, 1402913405, 1402913400, 1402913396, 1402913393, 1402913390, 1402913001, 1402912976, 1402912974, 1402912121, 1402912119, 1402912117, 1402912115, 1402912097, 1402912094, 1402912091, 1402912086, 1402912082, 1402912079, 1402912070, 1402912066, 1402912062, 1402912059, 1402912056, 1402912024, 1402912021, 1402912018, 1402912016, 1402912006, 1402912004, 1402911987, 1402911976, 1402911957, 1402911820, 1402911801, 1402911800, 1402911633, 1402911598, 1402911560, 1402911516, 1402911461, 1402911395, 1402911167, 1402911165, 1402911126, 1402911055, 1402910169, 1402910102, 1402910036]} final : False mtd_id 4302 list_pids : [1402913488, 1402913486, 1402913484, 1402913480, 1402913447, 1402913445, 1402913444, 1402913443, 1402913442, 1402913440] 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, '4325085') ('4302', '30042747', '1402913488', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913486', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913484', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913480', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913447', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913445', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913444', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913443', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913442', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913440', None, None, None, None, None, '4325085') 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', '30042747', '1402913488', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913486', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913484', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913480', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913447', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913445', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913444', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913443', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913442', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913440', None, None, None, None, None, '4325085')] time used for this insertion : 0.014865398406982422 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.8733649253845215 time spend to save output : 0.015095710754394531 total time spend for step 4 : 6.888460636138916 step5:split_time_score Thu Jan 8 04:15:05 2026 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 : ['30042747'] 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 : [('30042747',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30042747) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1402913488: {'path': 'temp/1767842098_87685_1402913488_a26714f12950a7c4aae0dc4592927651.jpg', 'extension': 'jpg'}, 1402913444: {'path': 'temp/1767842098_87685_1402913444_b087270c6cad49925c158cbb9bd0869e.jpg', 'extension': 'jpg'}, 1402913445: {'path': 'temp/1767842098_87685_1402913445_c40e19bcd71c2115da47be2dd9b0919a.jpg', 'extension': 'jpg'}, 1402913447: {'path': 'temp/1767842098_87685_1402913447_5c27931ece3b1da8848ae337f3a1f074.jpg', 'extension': 'jpg'}, 1402913480: {'path': 'temp/1767842098_87685_1402913480_b123c19d1c834e629feb69472f5a41f9.jpg', 'extension': 'jpg'}, 1402913484: {'path': 'temp/1767842098_87685_1402913484_975041834a3a9dcd8eea0f35e090dc39.jpg', 'extension': 'jpg'}, 1402913486: {'path': 'temp/1767842098_87685_1402913486_7d3c0cd6d60ce69ef6dabd2ff68e8ac0.jpg', 'extension': 'jpg'}, 1402913440: {'path': 'temp/1767842098_87685_1402913440_14b50afc638e81b4b792cb02585c8b35.jpg', 'extension': 'jpg'}, 1402913442: {'path': 'temp/1767842098_87685_1402913442_c55664164bb88b373d1f831d96c70180.jpg', 'extension': 'jpg'}, 1402913443: {'path': 'temp/1767842098_87685_1402913443_de13a47be2db6024141afd8027b2b8f6.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 = 30042747; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 30042747 group by h (('04', 61),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30042747 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 (30042747) 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 (30042747) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08012026 30042747 Nombre de photos uploadées : 61 / 23040 (0%) 08012026 30042747 Nombre de photos taguées (types de déchets): 0 / 61 (0%) 08012026 30042747 Nombre de photos taguées (volume) : 0 / 61 (0%) [{'photo_id': 1402910169, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/3480f8a0ce56135ab602a9c02f291ccd.jpg', 'username': None, 'uploaded_at': 1767841267, 'text': 'image_08012026_04_00_14_010205m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402910102, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/b0ae73ac2b25dcde531cbbae2a6a1570.jpg', 'username': None, 'uploaded_at': 1767841267, 'text': 'image_08012026_04_00_24_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402910036, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/90505c69ad350cc56d22686c791757e8.jpg', 'username': None, 'uploaded_at': 1767841267, 'text': 'image_08012026_04_00_44_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402911167, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/8/c08896ef4d3d4e53ab74c99e2ab9b069.jpg', 'username': None, 'uploaded_at': 1767841327, 'text': 'image_08012026_04_00_54_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002534151077270508 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 30042747, '2026-01-08' ) 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 = '2026-01-08' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2862001,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24834680557250977 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= 2862001 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2862001, 'dashboard_run_id': 2869028, 'mtr_portfolio_id': 30036903, 'dashboard_result_id': 19145531, '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_P30036903_08-01-2026_00_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30036912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30036913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30036914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30036915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30036916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30036917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30036918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30036919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30036920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30036921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30036922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30036923, 'pht': 3726}}"}, {'dashboat_entry_day': 2862001, 'dashboard_run_id': 2869028, 'mtr_portfolio_id': 30037586, 'dashboard_result_id': 19145532, '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_P30037586_08-01-2026_00_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30037611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30037612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30037613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30037614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30037615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30037616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30037617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30037618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30037619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30037620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30037621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30037622, 'pht': 3726}}"}, {'dashboat_entry_day': 2862001, 'dashboard_run_id': 2869028, 'mtr_portfolio_id': 30038001, 'dashboard_result_id': 19145533, '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_P30038001_08-01-2026_00_49_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30038042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30038043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30038044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30038045, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30038046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30038047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30038048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30038049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30038050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30038051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30038052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30038053, 'pht': 3726}}"}, {'dashboat_entry_day': 2862001, 'dashboard_run_id': 2869028, 'mtr_portfolio_id': 30038537, 'dashboard_result_id': 19145534, '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_P30038537_08-01-2026_01_37_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30038541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30038542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30038543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30038544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30038545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30038546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30038547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30038548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30038549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30038550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30038551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30038552, 'pht': 3726}}"}, {'dashboat_entry_day': 2862001, 'dashboard_run_id': 2869028, 'mtr_portfolio_id': 30039434, 'dashboard_result_id': 19145535, '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_P30039434_08-01-2026_01_46_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30039436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30039437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30039438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30039439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30039440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30039441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30039442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30039443, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30039444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30039445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30039446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30039447, 'pht': 3726}}"}, {'dashboat_entry_day': 2862001, 'dashboard_run_id': 2869028, 'mtr_portfolio_id': 30039737, 'dashboard_result_id': 19145536, '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_P30039737_08-01-2026_02_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30039742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30039743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30039744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30039745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30039746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30039747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30039748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30039749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30039750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30039751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30039752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30039753, 'pht': 3726}}"}, {'dashboat_entry_day': 2862001, 'dashboard_run_id': 2869028, 'mtr_portfolio_id': 30040160, 'dashboard_result_id': 19145537, '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_P30040160_08-01-2026_02_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30040175, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30040176, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30040177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30040178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30040179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30040180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30040181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30040182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30040183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30040184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30040185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30040186, 'pht': 3726}}"}, {'dashboat_entry_day': 2862001, 'dashboard_run_id': 2869028, 'mtr_portfolio_id': 30040716, 'dashboard_result_id': 19145538, '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_P30040716_08-01-2026_02_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30040724, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30040725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30040726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30040727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30040729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30040730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30040731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30040732, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30040733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30040734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30040735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30040736, 'pht': 3726}}"}, {'dashboat_entry_day': 2862001, 'dashboard_run_id': 2869028, 'mtr_portfolio_id': 30041273, 'dashboard_result_id': 19145539, '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_P30041273_08-01-2026_02_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30041274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30041275, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30041276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30041277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30041278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30041279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30041280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30041281, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30041283, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30041284, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30041285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30041287, 'pht': 3726}}"}, {'dashboat_entry_day': 2862001, 'dashboard_run_id': 2869028, 'mtr_portfolio_id': 30041712, 'dashboard_result_id': 19145540, '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_P30041712_08-01-2026_04_00_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30041716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30041717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30041718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30041719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30041720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30041721, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30041722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30041723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30041724, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30041725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30041726, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30041727, 'pht': 3726}}"}, {'dashboat_entry_day': 2862001, 'dashboard_run_id': 2869028, 'mtr_portfolio_id': 30042456, 'dashboard_result_id': 19145541, '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_P30042456_08-01-2026_04_09_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30042457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30042458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30042459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30042460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30042461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30042462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30042463, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30042464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30042465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30042466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30042467, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30042468, 'pht': 3726}}"}, {'dashboat_entry_day': 2862001, 'dashboard_run_id': 2869028, 'mtr_portfolio_id': 30042747, 'dashboard_result_id': 19145542, '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_P30042747_08-01-2026_04_11_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30042790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30042791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30042792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30042793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30042794, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30042795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30042796, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30042797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30042798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30042799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30042800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30042801, '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 = 30036903 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': 4324268, 'mtr_portfolio_id': 30036903, 'created_at': datetime.datetime(2026, 1, 8, 0, 18, 58), 'result': '0.07025031638359146', 'result_long': None, 'result_double': None}] Qualite : 0.07025031638359146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30036903 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30036903_08-01-2026_00_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30036903 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_P30036903_08-01-2026_00_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30036912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30036913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30036914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30036915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30036916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30036917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30036918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30036919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30036920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30036921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30036922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30036923, 'pht': 3726}}" where mtr_portfolio_id = 30036903 and dashboard_run_id = 2869028 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`=30036903 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19145531, 0.07025031638359146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30036903_08-01-2026_00_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30036912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30036913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30036914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30036915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30036916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30036917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30036918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30036919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30036920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30036921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30036922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30036923, '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 = 30037586 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': 4324335, 'mtr_portfolio_id': 30037586, 'created_at': datetime.datetime(2026, 1, 8, 0, 32, 59), 'result': '0.06126084054177626', 'result_long': None, 'result_double': None}] Qualite : 0.06126084054177626 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30037586 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30037586_08-01-2026_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30037586 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_P30037586_08-01-2026_00_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30037611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30037612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30037613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30037614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30037615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30037616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30037617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30037618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30037619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30037620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30037621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30037622, 'pht': 3726}}" where mtr_portfolio_id = 30037586 and dashboard_run_id = 2869028 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`=30037586 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19145532, 0.06126084054177626, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30037586_08-01-2026_00_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30037611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30037612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30037613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30037614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30037615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30037616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30037617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30037618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30037619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30037620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30037621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30037622, '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 = 30038001 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': 4324396, 'mtr_portfolio_id': 30038001, 'created_at': datetime.datetime(2026, 1, 8, 0, 49, 29), 'result': '0.08196117376748288', 'result_long': None, 'result_double': None}] Qualite : 0.08196117376748288 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30038001 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30038001_08-01-2026_00_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30038001 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_P30038001_08-01-2026_00_49_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30038042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30038043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30038044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30038045, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30038046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30038047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30038048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30038049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30038050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30038051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30038052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30038053, 'pht': 3726}}" where mtr_portfolio_id = 30038001 and dashboard_run_id = 2869028 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`=30038001 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19145533, 0.08196117376748288, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30038001_08-01-2026_00_49_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30038042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30038043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30038044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30038045, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30038046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30038047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30038048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30038049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30038050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30038051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30038052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30038053, '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 = 30038537 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': 4324460, 'mtr_portfolio_id': 30038537, 'created_at': datetime.datetime(2026, 1, 8, 1, 37, 28), 'result': '0.05245755208200551', 'result_long': None, 'result_double': None}] Qualite : 0.05245755208200551 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30038537 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30038537_08-01-2026_01_37_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30038537 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_P30038537_08-01-2026_01_37_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30038541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30038542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30038543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30038544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30038545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30038546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30038547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30038548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30038549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30038550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30038551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30038552, 'pht': 3726}}" where mtr_portfolio_id = 30038537 and dashboard_run_id = 2869028 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`=30038537 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19145534, 0.05245755208200551, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30038537_08-01-2026_01_37_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30038541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30038542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30038543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30038544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30038545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30038546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30038547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30038548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30038549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30038550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30038551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30038552, '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 = 30039434 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': 4324589, 'mtr_portfolio_id': 30039434, 'created_at': datetime.datetime(2026, 1, 8, 1, 46, 56), 'result': '0.03292525769542813', 'result_long': None, 'result_double': None}] Qualite : 0.03292525769542813 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30039434 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30039434_08-01-2026_01_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30039434 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_P30039434_08-01-2026_01_46_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30039436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30039437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30039438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30039439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30039440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30039441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30039442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30039443, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30039444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30039445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30039446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30039447, 'pht': 3726}}" where mtr_portfolio_id = 30039434 and dashboard_run_id = 2869028 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`=30039434 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19145535, 0.03292525769542813, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30039434_08-01-2026_01_46_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30039436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30039437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30039438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30039439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30039440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30039441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30039442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30039443, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30039444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30039445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30039446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30039447, '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 = 30039737 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': 4324615, 'mtr_portfolio_id': 30039737, 'created_at': datetime.datetime(2026, 1, 8, 2, 2, 58), 'result': '0.049958978557318186', 'result_long': None, 'result_double': None}] Qualite : 0.049958978557318186 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30039737 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30039737_08-01-2026_02_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30039737 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_P30039737_08-01-2026_02_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30039742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30039743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30039744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30039745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30039746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30039747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30039748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30039749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30039750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30039751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30039752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30039753, 'pht': 3726}}" where mtr_portfolio_id = 30039737 and dashboard_run_id = 2869028 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`=30039737 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19145536, 0.049958978557318186, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30039737_08-01-2026_02_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30039742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30039743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30039744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30039745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30039746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30039747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30039748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30039749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30039750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30039751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30039752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30039753, '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 = 30040160 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': 4324692, 'mtr_portfolio_id': 30040160, 'created_at': datetime.datetime(2026, 1, 8, 2, 17), 'result': '0.05257485398390898', 'result_long': None, 'result_double': None}] Qualite : 0.05257485398390898 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30040160 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30040160_08-01-2026_02_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30040160 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_P30040160_08-01-2026_02_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30040175, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30040176, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30040177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30040178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30040179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30040180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30040181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30040182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30040183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30040184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30040185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30040186, 'pht': 3726}}" where mtr_portfolio_id = 30040160 and dashboard_run_id = 2869028 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`=30040160 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19145537, 0.05257485398390898, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30040160_08-01-2026_02_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30040175, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30040176, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30040177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30040178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30040179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30040180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30040181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30040182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30040183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30040184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30040185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30040186, '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 = 30040716 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': 4324764, 'mtr_portfolio_id': 30040716, 'created_at': datetime.datetime(2026, 1, 8, 2, 33, 1), 'result': '0.04347539799233797', 'result_long': None, 'result_double': None}] Qualite : 0.04347539799233797 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30040716 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30040716_08-01-2026_02_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30040716 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_P30040716_08-01-2026_02_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30040724, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30040725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30040726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30040727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30040729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30040730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30040731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30040732, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30040733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30040734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30040735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30040736, 'pht': 3726}}" where mtr_portfolio_id = 30040716 and dashboard_run_id = 2869028 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`=30040716 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19145538, 0.04347539799233797, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30040716_08-01-2026_02_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30040724, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30040725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30040726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30040727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30040729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30040730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30040731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30040732, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30040733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30040734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30040735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30040736, '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 = 30041273 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': 4324848, 'mtr_portfolio_id': 30041273, 'created_at': datetime.datetime(2026, 1, 8, 2, 46, 59), 'result': '0.052758138685866054', 'result_long': None, 'result_double': None}] Qualite : 0.052758138685866054 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30041273 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30041273_08-01-2026_02_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30041273 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_P30041273_08-01-2026_02_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30041274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30041275, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30041276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30041277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30041278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30041279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30041280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30041281, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30041283, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30041284, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30041285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30041287, 'pht': 3726}}" where mtr_portfolio_id = 30041273 and dashboard_run_id = 2869028 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`=30041273 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19145539, 0.052758138685866054, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30041273_08-01-2026_02_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30041274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30041275, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30041276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30041277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30041278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30041279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30041280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30041281, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30041283, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30041284, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30041285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30041287, '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 = 30041712 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': 4324892, 'mtr_portfolio_id': 30041712, 'created_at': datetime.datetime(2026, 1, 8, 3, 59, 59), 'result': '0.044652971684297924', 'result_long': None, 'result_double': None}] Qualite : 0.044652971684297924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30041712 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30041712_08-01-2026_04_00_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30041712 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_P30041712_08-01-2026_04_00_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30041716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30041717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30041718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30041719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30041720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30041721, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30041722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30041723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30041724, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30041725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30041726, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30041727, 'pht': 3726}}" where mtr_portfolio_id = 30041712 and dashboard_run_id = 2869028 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`=30041712 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19145540, 0.044652971684297924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30041712_08-01-2026_04_00_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30041716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30041717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30041718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30041719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30041720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30041721, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30041722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30041723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30041724, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30041725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30041726, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30041727, '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 = 30042456 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': 4325057, 'mtr_portfolio_id': 30042456, 'created_at': datetime.datetime(2026, 1, 8, 4, 9), 'result': '0.11039378975255577', 'result_long': None, 'result_double': None}] Qualite : 0.11039378975255577 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30042456 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30042456_08-01-2026_04_09_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30042456 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_P30042456_08-01-2026_04_09_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30042457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30042458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30042459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30042460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30042461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30042462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30042463, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30042464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30042465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30042466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30042467, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30042468, 'pht': 3726}}" where mtr_portfolio_id = 30042456 and dashboard_run_id = 2869032 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`=30042456 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19145541, 0.11039378975255577, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30042456_08-01-2026_04_09_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30042457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30042458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30042459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30042460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30042461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30042462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30042463, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30042464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30042465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30042466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30042467, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30042468, '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 = 30042747 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': 4325085, 'mtr_portfolio_id': 30042747, 'created_at': datetime.datetime(2026, 1, 8, 4, 14, 58), 'result': '0.0744032267646889', 'result_long': None, 'result_double': None}] Qualite : 0.0744032267646889 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30042747 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30042747_08-01-2026_04_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30042747 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_P30042747_08-01-2026_04_14_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30042790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30042791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30042792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30042793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30042794, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30042795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30042796, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30042797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30042798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30042799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30042800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30042801, 'pht': 3726}}" where mtr_portfolio_id = 30042747 and dashboard_run_id = 2869032 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`=30042747 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19145542, 0.0744032267646889, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30042747_08-01-2026_04_14_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30042790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30042791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30042792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30042793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30042794, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30042795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30042796, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30042797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30042798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30042799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30042800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30042801, '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 (30036903,30037586,30038001,30038537,30039434,30039737,30040160,30040716,30041273,30041712,30042456,30042747) result : ((1402888984,), (1402888993,), (1402889225,), (1402889226,), (1402889227,), (1402889229,), (1402889231,), (1402889418,), (1402889430,), (1402889432,), (1402889433,), (1402889435,), (1402889438,), (1402889647,), (1402889680,), (1402889714,), (1402889745,), (1402889965,), (1402889996,), (1402890030,), (1402890065,), (1402890726,), (1402890831,), (1402890942,), (1402891041,), (1402891107,), (1402891311,), (1402891313,), (1402891315,), (1402891317,), (1402891589,), (1402891590,), (1402891592,), (1402891595,), (1402891598,), (1402891629,), (1402892139,), (1402892141,), (1402892404,), (1402892427,), (1402892459,), (1402892467,), (1402892477,), (1402892482,), (1402892489,), (1402892491,), (1402892494,), (1402892495,), (1402892499,), (1402892525,), (1402892526,), (1402892529,), (1402892533,), (1402892534,), (1402892548,), (1402892550,), (1402892552,), (1402892555,), (1402892557,), (1402892558,), (1402892571,), (1402892572,), (1402892573,), (1402892574,), (1402892583,), (1402892603,), (1402892622,), (1402892624,), (1402892638,), (1402892641,), (1402892646,), (1402892649,), (1402892651,), (1402892802,), (1402892775,), (1402892787,), (1402892789,), (1402892799,), (1402892818,), (1402892853,), (1402892887,), (1402892919,), (1402892955,), (1402892989,), (1402893129,), (1402893164,), (1402893195,), (1402893301,), (1402893303,), (1402893304,), (1402893306,), (1402893310,), (1402893332,), (1402893360,), (1402893362,), (1402893365,), (1402893377,), (1402893380,), (1402893716,), (1402893717,), (1402893720,), (1402893721,), (1402893724,), (1402893784,), (1402893818,), (1402893851,), (1402893888,), (1402893889,), (1402893890,), (1402893893,), (1402893895,), (1402893897,), (1402893931,), (1402893932,), (1402893933,), (1402893934,), (1402893936,), (1402893943,), (1402893944,), (1402893945,), (1402893946,), (1402893962,), (1402893963,), (1402893964,), (1402893965,), (1402893968,), (1402893970,), (1402893989,), (1402893990,), (1402893991,), (1402893992,), (1402894007,), (1402894009,), (1402894033,), (1402894035,), (1402894064,), (1402894065,), (1402894066,), (1402894067,), (1402894099,), (1402894101,), (1402894103,), (1402894200,), (1402894202,), (1402894261,), (1402894292,), (1402894192,), (1402894193,), (1402894195,), (1402894198,), (1402894331,), (1402894336,), (1402894337,), (1402894339,), (1402894342,), (1402894344,), (1402894389,), (1402894401,), (1402894402,), (1402894404,), (1402894407,), (1402894410,), (1402894423,), (1402894424,), (1402894425,), (1402894426,), (1402894427,), (1402894428,), (1402894430,), (1402894432,), (1402894443,), (1402894446,), (1402894449,), (1402894452,), (1402894455,), (1402894471,), (1402894473,), (1402894476,), (1402894481,), (1402894583,), (1402894635,), (1402894680,), (1402894723,), (1402894759,), (1402894796,), (1402895056,), (1402895087,), (1402895119,), (1402895152,), (1402895334,), (1402895335,), (1402895336,), (1402895652,), (1402895653,), (1402895655,), (1402895656,), (1402895686,), (1402895687,), (1402895688,), (1402895691,), (1402895811,), (1402895801,), (1402895804,), (1402895807,), (1402895854,), (1402895855,), (1402895856,), (1402895858,), (1402895869,), (1402895890,), (1402895923,), (1402895956,), (1402896029,), (1402896036,), (1402896040,), (1402896041,), (1402896044,), (1402896046,), (1402896057,), (1402896058,), (1402896060,), (1402896062,), (1402896077,), (1402896079,), (1402896097,), (1402896098,), (1402896281,), (1402896286,), (1402896298,), (1402896300,), (1402896303,), (1402896307,), (1402896310,), (1402896316,), (1402896317,), (1402896809,), (1402896856,), (1402899397,), (1402898574,), (1402899285,), (1402900077,), (1402900078,), (1402900598,), (1402900630,), (1402900808,), (1402900809,), (1402900816,), (1402900839,), (1402900841,), (1402900851,), (1402900852,), (1402900853,), (1402900854,), (1402900868,), (1402900869,), (1402900870,), (1402900880,), (1402900881,), (1402900882,), (1402900885,), (1402900888,), (1402900891,), (1402900900,), (1402900901,), (1402900902,), (1402900903,), (1402900905,), (1402900913,), (1402900914,), (1402900916,), (1402900943,), (1402900939,), (1402900940,), (1402900942,), (1402900951,), (1402900952,), (1402900953,), (1402900955,), (1402900982,), (1402900983,), (1402900984,), (1402900986,), (1402900989,), (1402900990,), (1402900996,), (1402901000,), (1402901002,), (1402901006,), (1402901029,), (1402901030,), (1402901031,), (1402901033,), (1402901041,), (1402901042,), (1402901043,), (1402901045,), (1402901061,), (1402901062,), (1402901064,), (1402901066,), (1402901069,), (1402901075,), (1402901076,), (1402901077,), (1402901079,), (1402901082,), (1402901084,), (1402901089,), (1402901096,), (1402901098,), (1402901100,), (1402901101,), (1402901104,), (1402901107,), (1402901117,), (1402901118,), (1402901120,), (1402901130,), (1402901131,), (1402901132,), (1402901134,), (1402901138,), (1402901140,), (1402901145,), (1402901146,), (1402901147,), (1402901149,), (1402901153,), (1402901164,), (1402901165,), (1402901166,), (1402901182,), (1402901186,), (1402901190,), (1402901194,), (1402901198,), (1402901200,), (1402901214,), (1402901206,), (1402901209,), (1402901212,), (1402901225,), (1402901226,), (1402901227,), (1402901229,), (1402901233,), (1402901236,), (1402901364,), (1402901462,), (1402901557,), (1402901653,), (1402901749,), (1402901773,), (1402901784,), (1402901829,), (1402901952,), (1402902009,), (1402902073,), (1402902254,), (1402902288,), (1402902322,), (1402902556,), (1402902557,), (1402902558,), (1402902560,), (1402902768,), (1402902799,), (1402902809,), (1402902822,), (1402902849,), (1402902852,), (1402902858,), (1402902860,), (1402902863,), (1402902864,), (1402902998,), (1402903033,), (1402903069,), (1402903494,), (1402903529,), (1402903562,), (1402903601,), (1402903634,), (1402903706,), (1402903708,), (1402903710,), (1402903824,), (1402903923,), (1402904035,), (1402904725,), (1402904726,), (1402904749,), (1402904861,), (1402904933,), (1402905233,), (1402905267,), (1402905301,), (1402905337,), (1402905377,), (1402905412,), (1402905568,), (1402905601,), (1402905634,), (1402905669,), (1402905812,), (1402905849,), (1402905883,), (1402905917,), (1402905955,), (1402906205,), (1402906225,), (1402906227,), (1402906228,), (1402906230,), (1402906231,), (1402906243,), (1402906245,), (1402906246,), (1402906248,), (1402906285,), (1402906650,), (1402906646,), (1402906647,), (1402906648,), (1402906828,), (1402906829,), (1402906831,), (1402906832,), (1402906834,), (1402906836,), (1402906846,), (1402906847,), (1402906848,), (1402906850,), (1402906852,), (1402906859,), (1402906860,), (1402906861,), (1402906862,), (1402906864,), (1402906865,), (1402906891,), (1402906892,), (1402906893,), (1402906895,), (1402906897,), (1402906905,), (1402906906,), (1402906907,), (1402906909,), (1402906912,), (1402906924,), (1402906925,), (1402906926,), (1402906928,), (1402906931,), (1402906937,), (1402906938,), (1402906939,), (1402906941,), (1402906943,), (1402906945,), (1402906948,), (1402906949,), (1402906950,), (1402906954,), (1402906955,), (1402907003,), (1402907004,), (1402907006,), (1402907008,), (1402907022,), (1402907023,), (1402907024,), (1402907026,), (1402907035,), (1402907037,), (1402907045,), (1402907046,), (1402907049,), (1402907050,), (1402907072,), (1402907073,), (1402907074,), (1402907076,), (1402907084,), (1402907085,), (1402907087,), (1402907088,), (1402907092,), (1402907113,), (1402907114,), (1402907116,), (1402907139,), (1402907136,), (1402907163,), (1402907164,), (1402907166,), (1402907167,), (1402907170,), (1402907171,), (1402907176,), (1402907177,), (1402907178,), (1402907180,), (1402907182,), (1402907184,), (1402907194,), (1402907211,), (1402907212,), (1402907246,), (1402907247,), (1402907248,), (1402907260,), (1402907276,), (1402907277,), (1402907279,), (1402907292,), (1402907293,), (1402907295,), (1402907296,), (1402907305,), (1402907306,), (1402907307,), (1402907319,), (1402907343,), (1402907344,), (1402907345,), (1402907347,), (1402907365,), (1402907401,), (1402907402,), (1402907403,), (1402907404,), (1402907406,), (1402907428,), (1402907429,), (1402907430,), (1402907431,), (1402907446,), (1402907447,), (1402907450,), (1402907451,), (1402907453,), (1402907455,), (1402907462,), (1402907461,), (1402907483,), (1402907484,), (1402907485,), (1402907486,), (1402907505,), (1402907506,), (1402907507,), (1402907509,), (1402907521,), (1402907523,), (1402907524,), (1402907526,), (1402907529,), (1402907553,), (1402907555,), (1402907556,), (1402907558,), (1402907568,), (1402907569,), (1402907570,), (1402907571,), (1402907593,), (1402907594,), (1402907595,), (1402907596,), (1402907599,), (1402907602,), (1402907611,), (1402907613,), (1402907614,), (1402907616,), (1402907618,), (1402907620,), (1402907631,), (1402907632,), (1402907633,), (1402907638,), (1402907642,), (1402907643,), (1402907645,), (1402907649,), (1402907651,), (1402907652,), (1402907657,), (1402907658,), (1402907659,), (1402907661,), (1402907664,), (1402907670,), (1402907671,), (1402907673,), (1402907675,), (1402907681,), (1402907684,), (1402907714,), (1402907715,), (1402907717,), (1402907725,), (1402907736,), (1402907739,), (1402907742,), (1402907745,), (1402907747,), (1402908489,), (1402908425,), (1402908488,), (1402908720,), (1402908806,), (1402908899,), (1402908918,), (1402909140,), (1402909182,), (1402909216,), (1402910280,), (1402910036,), (1402910102,), (1402910169,), (1402911055,), (1402911126,), (1402911165,), (1402911167,), (1402911395,), (1402911461,), (1402911516,), (1402911560,), (1402911598,), (1402911633,), (1402911800,), (1402911801,), (1402911820,), (1402911957,), (1402911976,), (1402911987,), (1402912004,), (1402912006,), (1402912016,), (1402912018,), (1402912021,), (1402912024,), (1402912056,), (1402912059,), (1402912062,), (1402912066,), (1402912070,), (1402912079,), (1402912082,), (1402912086,), (1402912091,), (1402912094,), (1402912097,), (1402912115,), (1402912117,), (1402912119,), (1402912121,), (1402912974,), (1402912976,), (1402913001,), (1402913390,), (1402913393,), (1402913396,), (1402913400,), (1402913405,), (1402913407,), (1402913419,), (1402913421,), (1402913440,), (1402913442,), (1402913443,), (1402913444,), (1402913445,), (1402913447,), (1402913480,), (1402913484,), (1402913486,), (1402913488,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08012026': {'nb_upload': 61, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([30042747]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1402913488, 1402913486, 1402913484, 1402913480, 1402913447, 1402913445, 1402913444, 1402913443, 1402913442, 1402913440] map_info['map_portfolio_photo'] : {30042747: [1402913488, 1402913486, 1402913484, 1402913480, 1402913447, 1402913445, 1402913444, 1402913443, 1402913442, 1402913440, 1402913421, 1402913419, 1402913407, 1402913405, 1402913400, 1402913396, 1402913393, 1402913390, 1402913001, 1402912976, 1402912974, 1402912121, 1402912119, 1402912117, 1402912115, 1402912097, 1402912094, 1402912091, 1402912086, 1402912082, 1402912079, 1402912070, 1402912066, 1402912062, 1402912059, 1402912056, 1402912024, 1402912021, 1402912018, 1402912016, 1402912006, 1402912004, 1402911987, 1402911976, 1402911957, 1402911820, 1402911801, 1402911800, 1402911633, 1402911598, 1402911560, 1402911516, 1402911461, 1402911395, 1402911167, 1402911165, 1402911126, 1402911055, 1402910169, 1402910102, 1402910036]} final : True mtd_id 4302 list_pids : [1402913488, 1402913486, 1402913484, 1402913480, 1402913447, 1402913445, 1402913444, 1402913443, 1402913442, 1402913440] Looping around the photos to save general results len do output : 1 /30042747Didn'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, '4325085') ('4302', '30042747', '1402913488', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913486', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913484', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913480', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913447', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913445', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913444', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913443', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913442', None, None, None, None, None, '4325085') ('4302', None, None, None, None, None, None, None, '4325085') ('4302', '30042747', '1402913440', None, None, None, None, None, '4325085') 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, '30042747', 'None', None, None, None, None, '4325085'), ('4302', '30042747', '1402913488', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913486', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913484', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913480', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913447', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913445', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913444', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913443', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913442', None, None, None, None, None, '4325085'), ('4302', '30042747', '1402913440', None, None, None, None, None, '4325085')] time used for this insertion : 0.014944076538085938 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1847896575927734 time spend to save output : 0.015155553817749023 total time spend for step 5 : 1.1999452114105225 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 (4325085) 2.26user 2.71system 0:12.34elapsed 40%CPU (0avgtext+0avgdata 165332maxresident)k 288inputs+16768outputs (2major+78739minor)pagefaults 0swaps