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 : 2882402 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 (3720197) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3720197) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26838279 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3720197'] with mtr_portfolio_ids : ['26838279'] and first list_photo_ids : [] new path : /proc/2882402/ Name: python3 Umask: 0002 State: R (running) Tgid: 2882402 Ngid: 0 Pid: 2882402 PPid: 2882400 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2882402 NSpid: 2882402 NSpgid: 2881174 NSsid: 2881174 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99856 kB VmRSS: 99856 kB RssAnon: 60164 kB RssFile: 39692 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 568 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 50 nonvoluntary_ctxt_switches: 122 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2882402', 'Ngid': '0', 'Pid': '2882402', 'PPid': '2882400', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2882402', 'NSpid': '2882402', 'NSpgid': '2881174', 'NSsid': '2881174', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99856 kB', 'VmRSS': '99856 kB', 'RssAnon': '60164 kB', 'RssFile': '39692 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '568 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '50', 'nonvoluntary_ctxt_switches': '122'} ('datou_batch_current', '2882402', '1107252', '0', '1107252', '866004', '99856', b'', 'marlene', '3720197') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26838279) 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 (3720197 ) ) 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 (26838279) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1383702620, 'portfolio_id': 26838279}, {'photo_id': 1383702619, 'portfolio_id': 26838279}, {'photo_id': 1383702618, 'portfolio_id': 26838279}, {'photo_id': 1383702593, 'portfolio_id': 26838279}, {'photo_id': 1383702590, 'portfolio_id': 26838279}, {'photo_id': 1383702588, 'portfolio_id': 26838279}, {'photo_id': 1383702586, 'portfolio_id': 26838279}, {'photo_id': 1383702584, 'portfolio_id': 26838279}, {'photo_id': 1383702512, 'portfolio_id': 26838279}, {'photo_id': 1383702504, 'portfolio_id': 26838279}, {'photo_id': 1383702491, 'portfolio_id': 26838279}, {'photo_id': 1383702468, 'portfolio_id': 26838279}, {'photo_id': 1383702465, 'portfolio_id': 26838279}, {'photo_id': 1383702408, 'portfolio_id': 26838279}, {'photo_id': 1383702383, 'portfolio_id': 26838279}, {'photo_id': 1383702358, 'portfolio_id': 26838279}, {'photo_id': 1383702298, 'portfolio_id': 26838279}, {'photo_id': 1383702294, 'portfolio_id': 26838279}, {'photo_id': 1383702288, 'portfolio_id': 26838279}, {'photo_id': 1383702280, 'portfolio_id': 26838279}, {'photo_id': 1383702279, 'portfolio_id': 26838279}, {'photo_id': 1383702276, 'portfolio_id': 26838279}, {'photo_id': 1383702231, 'portfolio_id': 26838279}, {'photo_id': 1383702226, 'portfolio_id': 26838279}, {'photo_id': 1383702220, 'portfolio_id': 26838279}, {'photo_id': 1383702206, 'portfolio_id': 26838279}, {'photo_id': 1383702203, 'portfolio_id': 26838279}, {'photo_id': 1383702196, 'portfolio_id': 26838279}, {'photo_id': 1383702107, 'portfolio_id': 26838279}, {'photo_id': 1383702104, 'portfolio_id': 26838279}, {'photo_id': 1383702101, 'portfolio_id': 26838279}, {'photo_id': 1383702100, 'portfolio_id': 26838279}, {'photo_id': 1383702068, 'portfolio_id': 26838279}, {'photo_id': 1383702060, 'portfolio_id': 26838279}, {'photo_id': 1383702056, 'portfolio_id': 26838279}, {'photo_id': 1383702040, 'portfolio_id': 26838279}, {'photo_id': 1383702036, 'portfolio_id': 26838279}, {'photo_id': 1383702032, 'portfolio_id': 26838279}, {'photo_id': 1383702028, 'portfolio_id': 26838279}, {'photo_id': 1383702026, 'portfolio_id': 26838279}, {'photo_id': 1383702025, 'portfolio_id': 26838279}, {'photo_id': 1383702005, 'portfolio_id': 26838279}, {'photo_id': 1383702003, 'portfolio_id': 26838279}, {'photo_id': 1383702001, 'portfolio_id': 26838279}, {'photo_id': 1383701999, 'portfolio_id': 26838279}, {'photo_id': 1383701976, 'portfolio_id': 26838279}, {'photo_id': 1383701972, 'portfolio_id': 26838279}, {'photo_id': 1383701970, 'portfolio_id': 26838279}, {'photo_id': 1383701969, 'portfolio_id': 26838279}, {'photo_id': 1383701968, 'portfolio_id': 26838279}, {'photo_id': 1383701921, 'portfolio_id': 26838279}, {'photo_id': 1383701917, 'portfolio_id': 26838279}, {'photo_id': 1383701911, 'portfolio_id': 26838279}, {'photo_id': 1383701909, 'portfolio_id': 26838279}, {'photo_id': 1383701828, 'portfolio_id': 26838279}, {'photo_id': 1383701827, 'portfolio_id': 26838279}, {'photo_id': 1383701797, 'portfolio_id': 26838279}, {'photo_id': 1383701790, 'portfolio_id': 26838279}, {'photo_id': 1383701764, 'portfolio_id': 26838279}, {'photo_id': 1383701757, 'portfolio_id': 26838279}] map_portfolio_id_photo_id: {26838279: [1383702620, 1383702619, 1383702618, 1383702593, 1383702590, 1383702588, 1383702586, 1383702584, 1383702512, 1383702504, 1383702491, 1383702468, 1383702465, 1383702408, 1383702383, 1383702358, 1383702298, 1383702294, 1383702288, 1383702280, 1383702279, 1383702276, 1383702231, 1383702226, 1383702220, 1383702206, 1383702203, 1383702196, 1383702107, 1383702104, 1383702101, 1383702100, 1383702068, 1383702060, 1383702056, 1383702040, 1383702036, 1383702032, 1383702028, 1383702026, 1383702025, 1383702005, 1383702003, 1383702001, 1383701999, 1383701976, 1383701972, 1383701970, 1383701969, 1383701968, 1383701921, 1383701917, 1383701911, 1383701909, 1383701828, 1383701827, 1383701797, 1383701790, 1383701764, 1383701757]} ##### 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.01624155044555664 #### 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 Mon Sep 15 07:14:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26838279) 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 : 26838279 get user id for portfolio 26838279 get sub ptf for main ptf 26838279, type 3726 and hashtags ['mal_croppe', 'Carton_gris', 'papier', 'kraft', 'Teint_Dans_La_Masse', 'autre_refus', 'environnement', 'plastique', 'cartonnette', 'Carton_brun', 'flou', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26838279 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_gris','papier','kraft','Teint_Dans_La_Masse','autre_refus','environnement','plastique','cartonnette','Carton_brun','flou','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26838279 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_gris','papier','kraft','Teint_Dans_La_Masse','autre_refus','environnement','plastique','cartonnette','Carton_brun','flou','metal')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 26838279, 'sub_port_id': 26838291, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092025, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 26838279, 'sub_port_id': 26838292, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092026, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 28)}, 'metal': {'main_port_id': 26838279, 'sub_port_id': 26838293, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092027, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 28)}, 'environnement': {'main_port_id': 26838279, 'sub_port_id': 26838294, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092028, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 28)}, 'autre_refus': {'main_port_id': 26838279, 'sub_port_id': 26838295, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092029, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 28)}, 'papier': {'main_port_id': 26838279, 'sub_port_id': 26838296, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092030, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 28)}, 'Carton_gris': {'main_port_id': 26838279, 'sub_port_id': 26838297, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092031, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 28)}, 'kraft': {'main_port_id': 26838279, 'sub_port_id': 26838298, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092032, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 28)}, 'cartonnette': {'main_port_id': 26838279, 'sub_port_id': 26838299, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092033, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 28)}, 'mal_croppe': {'main_port_id': 26838279, 'sub_port_id': 26838300, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092034, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 28)}, 'plastique': {'main_port_id': 26838279, 'sub_port_id': 26838301, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092035, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 28)}, 'Carton_brun': {'main_port_id': 26838279, 'sub_port_id': 26838302, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092036, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26838291 , 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=26838279 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 (26838291) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26838279) result : ((1383701757,), (1383701764,), (1383701790,), (1383701797,), (1383701827,), (1383701828,), (1383701909,), (1383701911,), (1383701917,), (1383701921,), (1383701968,), (1383701969,), (1383701970,), (1383701972,), (1383701976,), (1383701999,), (1383702001,), (1383702003,), (1383702005,), (1383702025,), (1383702026,), (1383702028,), (1383702032,), (1383702036,), (1383702040,), (1383702056,), (1383702060,), (1383702068,), (1383702100,), (1383702101,), (1383702104,), (1383702107,), (1383702196,), (1383702203,), (1383702206,), (1383702220,), (1383702226,), (1383702231,), (1383702276,), (1383702279,), (1383702280,), (1383702288,), (1383702294,), (1383702298,), (1383702358,), (1383702383,), (1383702408,), (1383702465,), (1383702468,), (1383702491,), (1383702504,), (1383702512,), (1383702584,), (1383702586,), (1383702588,), (1383702590,), (1383702593,), (1383702618,), (1383702619,), (1383702620,)) 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 (1383702100) 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 26838292 , 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=26838279 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 (26838292) result : ((1383702045,), (1383702046,), (1383702047,), (1383702048,), (1383702049,), (1383702050,), (1383702051,), (1383702052,), (1383702053,), (1383702281,), (1383702391,), (1383702443,), (1383702458,), (1383702459,), (1383702461,), (1383702462,), (1383702574,), (1383702575,), (1383702576,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26838279) result : ((1383701757,), (1383701764,), (1383701790,), (1383701797,), (1383701827,), (1383701828,), (1383701909,), (1383701911,), (1383701917,), (1383701921,), (1383701968,), (1383701969,), (1383701970,), (1383701972,), (1383701976,), (1383701999,), (1383702001,), (1383702003,), (1383702005,), (1383702025,), (1383702026,), (1383702028,), (1383702032,), (1383702036,), (1383702040,), (1383702056,), (1383702060,), (1383702068,), (1383702100,), (1383702101,), (1383702104,), (1383702107,), (1383702196,), (1383702203,), (1383702206,), (1383702220,), (1383702226,), (1383702231,), (1383702276,), (1383702279,), (1383702280,), (1383702288,), (1383702294,), (1383702298,), (1383702358,), (1383702383,), (1383702408,), (1383702465,), (1383702468,), (1383702491,), (1383702504,), (1383702512,), (1383702584,), (1383702586,), (1383702588,), (1383702590,), (1383702593,), (1383702618,), (1383702619,), (1383702620,)) 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 (1383702100) 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 26838293 , 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=26838279 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 (26838293) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26838279) result : ((1383701757,), (1383701764,), (1383701790,), (1383701797,), (1383701827,), (1383701828,), (1383701909,), (1383701911,), (1383701917,), (1383701921,), (1383701968,), (1383701969,), (1383701970,), (1383701972,), (1383701976,), (1383701999,), (1383702001,), (1383702003,), (1383702005,), (1383702025,), (1383702026,), (1383702028,), (1383702032,), (1383702036,), (1383702040,), (1383702056,), (1383702060,), (1383702068,), (1383702100,), (1383702101,), (1383702104,), (1383702107,), (1383702196,), (1383702203,), (1383702206,), (1383702220,), (1383702226,), (1383702231,), (1383702276,), (1383702279,), (1383702280,), (1383702288,), (1383702294,), (1383702298,), (1383702358,), (1383702383,), (1383702408,), (1383702465,), (1383702468,), (1383702491,), (1383702504,), (1383702512,), (1383702584,), (1383702586,), (1383702588,), (1383702590,), (1383702593,), (1383702618,), (1383702619,), (1383702620,)) 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 (1383702100) 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 26838294 , 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=26838279 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 (26838294) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26838279) result : ((1383701757,), (1383701764,), (1383701790,), (1383701797,), (1383701827,), (1383701828,), (1383701909,), (1383701911,), (1383701917,), (1383701921,), (1383701968,), (1383701969,), (1383701970,), (1383701972,), (1383701976,), (1383701999,), (1383702001,), (1383702003,), (1383702005,), (1383702025,), (1383702026,), (1383702028,), (1383702032,), (1383702036,), (1383702040,), (1383702056,), (1383702060,), (1383702068,), (1383702100,), (1383702101,), (1383702104,), (1383702107,), (1383702196,), (1383702203,), (1383702206,), (1383702220,), (1383702226,), (1383702231,), (1383702276,), (1383702279,), (1383702280,), (1383702288,), (1383702294,), (1383702298,), (1383702358,), (1383702383,), (1383702408,), (1383702465,), (1383702468,), (1383702491,), (1383702504,), (1383702512,), (1383702584,), (1383702586,), (1383702588,), (1383702590,), (1383702593,), (1383702618,), (1383702619,), (1383702620,)) 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 (1383702100) 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 26838295 , 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=26838279 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 (26838295) result : ((1383702055,), (1383702284,), (1383702398,), (1383702444,), (1383702445,), (1383702463,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26838279) result : ((1383701757,), (1383701764,), (1383701790,), (1383701797,), (1383701827,), (1383701828,), (1383701909,), (1383701911,), (1383701917,), (1383701921,), (1383701968,), (1383701969,), (1383701970,), (1383701972,), (1383701976,), (1383701999,), (1383702001,), (1383702003,), (1383702005,), (1383702025,), (1383702026,), (1383702028,), (1383702032,), (1383702036,), (1383702040,), (1383702056,), (1383702060,), (1383702068,), (1383702100,), (1383702101,), (1383702104,), (1383702107,), (1383702196,), (1383702203,), (1383702206,), (1383702220,), (1383702226,), (1383702231,), (1383702276,), (1383702279,), (1383702280,), (1383702288,), (1383702294,), (1383702298,), (1383702358,), (1383702383,), (1383702408,), (1383702465,), (1383702468,), (1383702491,), (1383702504,), (1383702512,), (1383702584,), (1383702586,), (1383702588,), (1383702590,), (1383702593,), (1383702618,), (1383702619,), (1383702620,)) 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 (1383702100) 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 26838296 , 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=26838279 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 (26838296) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26838279) result : ((1383701757,), (1383701764,), (1383701790,), (1383701797,), (1383701827,), (1383701828,), (1383701909,), (1383701911,), (1383701917,), (1383701921,), (1383701968,), (1383701969,), (1383701970,), (1383701972,), (1383701976,), (1383701999,), (1383702001,), (1383702003,), (1383702005,), (1383702025,), (1383702026,), (1383702028,), (1383702032,), (1383702036,), (1383702040,), (1383702056,), (1383702060,), (1383702068,), (1383702100,), (1383702101,), (1383702104,), (1383702107,), (1383702196,), (1383702203,), (1383702206,), (1383702220,), (1383702226,), (1383702231,), (1383702276,), (1383702279,), (1383702280,), (1383702288,), (1383702294,), (1383702298,), (1383702358,), (1383702383,), (1383702408,), (1383702465,), (1383702468,), (1383702491,), (1383702504,), (1383702512,), (1383702584,), (1383702586,), (1383702588,), (1383702590,), (1383702593,), (1383702618,), (1383702619,), (1383702620,)) 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 (1383702100) 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 26838297 , 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=26838279 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 (26838297) result : ((1383702285,), (1383702446,), (1383702447,), (1383702448,), (1383702577,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26838279) result : ((1383701757,), (1383701764,), (1383701790,), (1383701797,), (1383701827,), (1383701828,), (1383701909,), (1383701911,), (1383701917,), (1383701921,), (1383701968,), (1383701969,), (1383701970,), (1383701972,), (1383701976,), (1383701999,), (1383702001,), (1383702003,), (1383702005,), (1383702025,), (1383702026,), (1383702028,), (1383702032,), (1383702036,), (1383702040,), (1383702056,), (1383702060,), (1383702068,), (1383702100,), (1383702101,), (1383702104,), (1383702107,), (1383702196,), (1383702203,), (1383702206,), (1383702220,), (1383702226,), (1383702231,), (1383702276,), (1383702279,), (1383702280,), (1383702288,), (1383702294,), (1383702298,), (1383702358,), (1383702383,), (1383702408,), (1383702465,), (1383702468,), (1383702491,), (1383702504,), (1383702512,), (1383702584,), (1383702586,), (1383702588,), (1383702590,), (1383702593,), (1383702618,), (1383702619,), (1383702620,)) 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 (1383702100) 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 26838298 , 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=26838279 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 (26838298) result : ((1383702059,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26838279) result : ((1383701757,), (1383701764,), (1383701790,), (1383701797,), (1383701827,), (1383701828,), (1383701909,), (1383701911,), (1383701917,), (1383701921,), (1383701968,), (1383701969,), (1383701970,), (1383701972,), (1383701976,), (1383701999,), (1383702001,), (1383702003,), (1383702005,), (1383702025,), (1383702026,), (1383702028,), (1383702032,), (1383702036,), (1383702040,), (1383702056,), (1383702060,), (1383702068,), (1383702100,), (1383702101,), (1383702104,), (1383702107,), (1383702196,), (1383702203,), (1383702206,), (1383702220,), (1383702226,), (1383702231,), (1383702276,), (1383702279,), (1383702280,), (1383702288,), (1383702294,), (1383702298,), (1383702358,), (1383702383,), (1383702408,), (1383702465,), (1383702468,), (1383702491,), (1383702504,), (1383702512,), (1383702584,), (1383702586,), (1383702588,), (1383702590,), (1383702593,), (1383702618,), (1383702619,), (1383702620,)) 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 (1383702100) 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 26838299 , 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=26838279 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 (26838299) result : ((1383702057,), (1383702286,), (1383702287,), (1383702449,), (1383702450,), (1383702464,), (1383702578,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26838279) result : ((1383701757,), (1383701764,), (1383701790,), (1383701797,), (1383701827,), (1383701828,), (1383701909,), (1383701911,), (1383701917,), (1383701921,), (1383701968,), (1383701969,), (1383701970,), (1383701972,), (1383701976,), (1383701999,), (1383702001,), (1383702003,), (1383702005,), (1383702025,), (1383702026,), (1383702028,), (1383702032,), (1383702036,), (1383702040,), (1383702056,), (1383702060,), (1383702068,), (1383702100,), (1383702101,), (1383702104,), (1383702107,), (1383702196,), (1383702203,), (1383702206,), (1383702220,), (1383702226,), (1383702231,), (1383702276,), (1383702279,), (1383702280,), (1383702288,), (1383702294,), (1383702298,), (1383702358,), (1383702383,), (1383702408,), (1383702465,), (1383702468,), (1383702491,), (1383702504,), (1383702512,), (1383702584,), (1383702586,), (1383702588,), (1383702590,), (1383702593,), (1383702618,), (1383702619,), (1383702620,)) 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 (1383702100) 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 26838300 , 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=26838279 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 (26838300) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26838279) result : ((1383701757,), (1383701764,), (1383701790,), (1383701797,), (1383701827,), (1383701828,), (1383701909,), (1383701911,), (1383701917,), (1383701921,), (1383701968,), (1383701969,), (1383701970,), (1383701972,), (1383701976,), (1383701999,), (1383702001,), (1383702003,), (1383702005,), (1383702025,), (1383702026,), (1383702028,), (1383702032,), (1383702036,), (1383702040,), (1383702056,), (1383702060,), (1383702068,), (1383702100,), (1383702101,), (1383702104,), (1383702107,), (1383702196,), (1383702203,), (1383702206,), (1383702220,), (1383702226,), (1383702231,), (1383702276,), (1383702279,), (1383702280,), (1383702288,), (1383702294,), (1383702298,), (1383702358,), (1383702383,), (1383702408,), (1383702465,), (1383702468,), (1383702491,), (1383702504,), (1383702512,), (1383702584,), (1383702586,), (1383702588,), (1383702590,), (1383702593,), (1383702618,), (1383702619,), (1383702620,)) 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 (1383702100) 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 26838301 , 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=26838279 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 (26838301) result : ((1383702058,), (1383702453,), (1383702454,), (1383702466,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26838279) result : ((1383701757,), (1383701764,), (1383701790,), (1383701797,), (1383701827,), (1383701828,), (1383701909,), (1383701911,), (1383701917,), (1383701921,), (1383701968,), (1383701969,), (1383701970,), (1383701972,), (1383701976,), (1383701999,), (1383702001,), (1383702003,), (1383702005,), (1383702025,), (1383702026,), (1383702028,), (1383702032,), (1383702036,), (1383702040,), (1383702056,), (1383702060,), (1383702068,), (1383702100,), (1383702101,), (1383702104,), (1383702107,), (1383702196,), (1383702203,), (1383702206,), (1383702220,), (1383702226,), (1383702231,), (1383702276,), (1383702279,), (1383702280,), (1383702288,), (1383702294,), (1383702298,), (1383702358,), (1383702383,), (1383702408,), (1383702465,), (1383702468,), (1383702491,), (1383702504,), (1383702512,), (1383702584,), (1383702586,), (1383702588,), (1383702590,), (1383702593,), (1383702618,), (1383702619,), (1383702620,)) 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 (1383702100) 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 26838302 , 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=26838279 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 (26838302) result : ((1383702292,), (1383702293,), (1383702451,), (1383702452,), (1383702579,), (1383702580,), (1383702581,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26838279) result : ((1383701757,), (1383701764,), (1383701790,), (1383701797,), (1383701827,), (1383701828,), (1383701909,), (1383701911,), (1383701917,), (1383701921,), (1383701968,), (1383701969,), (1383701970,), (1383701972,), (1383701976,), (1383701999,), (1383702001,), (1383702003,), (1383702005,), (1383702025,), (1383702026,), (1383702028,), (1383702032,), (1383702036,), (1383702040,), (1383702056,), (1383702060,), (1383702068,), (1383702100,), (1383702101,), (1383702104,), (1383702107,), (1383702196,), (1383702203,), (1383702206,), (1383702220,), (1383702226,), (1383702231,), (1383702276,), (1383702279,), (1383702280,), (1383702288,), (1383702294,), (1383702298,), (1383702358,), (1383702383,), (1383702408,), (1383702465,), (1383702468,), (1383702491,), (1383702504,), (1383702512,), (1383702584,), (1383702586,), (1383702588,), (1383702590,), (1383702593,), (1383702618,), (1383702619,), (1383702620,)) 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 (1383702100) 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`=26838279 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_gris','papier','kraft','Teint_Dans_La_Masse','autre_refus','environnement','plastique','cartonnette','Carton_brun','flou','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26838279 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_gris','papier','kraft','Teint_Dans_La_Masse','autre_refus','environnement','plastique','cartonnette','Carton_brun','flou','metal')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 26838279, 'sub_port_id': 26838305, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092037, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 26838279, 'sub_port_id': 26838306, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092038, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 34)}, 'metal': {'main_port_id': 26838279, 'sub_port_id': 26838307, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092039, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 34)}, 'environnement': {'main_port_id': 26838279, 'sub_port_id': 26838308, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092040, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 34)}, 'autre_refus': {'main_port_id': 26838279, 'sub_port_id': 26838309, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092041, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 34)}, 'papier': {'main_port_id': 26838279, 'sub_port_id': 26838310, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092042, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 34)}, 'Carton_gris': {'main_port_id': 26838279, 'sub_port_id': 26838311, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092043, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 34)}, 'kraft': {'main_port_id': 26838279, 'sub_port_id': 26838313, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092044, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 34)}, 'cartonnette': {'main_port_id': 26838279, 'sub_port_id': 26838314, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092045, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 34)}, 'mal_croppe': {'main_port_id': 26838279, 'sub_port_id': 26838315, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092046, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 34)}, 'plastique': {'main_port_id': 26838279, 'sub_port_id': 26838316, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092047, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 34)}, 'Carton_brun': {'main_port_id': 26838279, 'sub_port_id': 26838317, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18092048, 'last_updated_at': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 7, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 7, 3, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26838305,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26838291 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26838306,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26838292 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26838307,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26838293 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26838308,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26838294 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26838309,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26838295 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26838310,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26838296 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26838311,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26838297 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26838313,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26838298 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26838314,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26838299 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26838315,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26838300 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26838316,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26838301 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26838317,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26838302 lien utilise dans velours : https://marlene.fotonower.com/velours/26838305,26838306,26838307,26838308,26838309,26838310,26838311,26838313,26838314,26838315,26838316,26838317?tags=flou,Teint_Dans_La_Masse,metal,environnement,autre_refus,papier,Carton_gris,kraft,cartonnette,mal_croppe,plastique,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26838279]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1383702620, 1383702619, 1383702618, 1383702593, 1383702590, 1383702588, 1383702586, 1383702584, 1383702512, 1383702504, 1383702491, 1383702468, 1383702465] map_info['map_portfolio_photo'] : {26838279: [1383702620, 1383702619, 1383702618, 1383702593, 1383702590, 1383702588, 1383702586, 1383702584, 1383702512, 1383702504, 1383702491, 1383702468, 1383702465, 1383702408, 1383702383, 1383702358, 1383702298, 1383702294, 1383702288, 1383702280, 1383702279, 1383702276, 1383702231, 1383702226, 1383702220, 1383702206, 1383702203, 1383702196, 1383702107, 1383702104, 1383702101, 1383702100, 1383702068, 1383702060, 1383702056, 1383702040, 1383702036, 1383702032, 1383702028, 1383702026, 1383702025, 1383702005, 1383702003, 1383702001, 1383701999, 1383701976, 1383701972, 1383701970, 1383701969, 1383701968, 1383701921, 1383701917, 1383701911, 1383701909, 1383701828, 1383701827, 1383701797, 1383701790, 1383701764, 1383701757]} final : False mtd_id 4302 list_pids : [1383702620, 1383702619, 1383702618, 1383702593, 1383702590, 1383702588, 1383702586, 1383702584, 1383702512, 1383702504, 1383702491, 1383702468, 1383702465] Looping around the photos to save general results len do output : 1 /26838279. 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, '3720197') ('4302', '26838279', '1383702620', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702619', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702618', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702593', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702590', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702588', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702586', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702584', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702512', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702504', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702491', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702468', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702465', None, None, None, None, None, '3720197') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '26838279', "{'flou': 26838291, 'Teint_Dans_La_Masse': 26838292, 'metal': 26838293, 'environnement': 26838294, 'autre_refus': 26838295, 'papier': 26838296, 'Carton_gris': 26838297, 'kraft': 26838298, 'cartonnette': 26838299, 'mal_croppe': 26838300, 'plastique': 26838301, 'Carton_brun': 26838302}", None, None, None, None, '3720197'), ('4302', '26838279', '1383702620', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702619', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702618', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702593', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702590', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702588', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702586', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702584', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702512', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702504', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702491', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702468', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702465', None, None, None, None, None, '3720197')] time used for this insertion : 0.01866912841796875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4841315746307373 time spend to save output : 0.01909160614013672 total time spend for step 1 : 0.503223180770874 step2:final Mon Sep 15 07:14:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26838279) 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 26838279 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1383701764,1383701757,1383701797,1383701790,1383701828,1383701827,1383701921,1383701917,1383701911,1383701909,1383701976,1383701972,1383701970,1383701969,1383701968,1383702068,1383702005,1383702003,1383702060,1383702001,1383702056,1383702040,1383701999,1383702036,1383702032,1383702028,1383702026,1383702025,1383702107,1383702104,1383702101,1383702100,1383702231,1383702226,1383702220,1383702206,1383702203,1383702196,1383702298,1383702294,1383702288,1383702280,1383702279,1383702276,1383702408,1383702383,1383702358,1383702512,1383702504,1383702491,1383702468,1383702465,1383702593,1383702590,1383702588,1383702586,1383702584,1383702620,1383702619,1383702618); 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([26838279]) Inside saveOutput : final : False verbose : True original output for save of step final : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ('0.059749798220014055',), 1383702491: ('0.059749798220014055',), 1383702468: ('0.059749798220014055',), 1383702465: ('0.059749798220014055',)} new output for save of step final : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ('0.059749798220014055',), 1383702491: ('0.059749798220014055',), 1383702468: ('0.059749798220014055',), 1383702465: ('0.059749798220014055',)} [1383702620, 1383702619, 1383702618, 1383702593, 1383702590, 1383702588, 1383702586, 1383702584, 1383702512, 1383702504, 1383702491, 1383702468, 1383702465] map_info['map_portfolio_photo'] : {26838279: [1383702620, 1383702619, 1383702618, 1383702593, 1383702590, 1383702588, 1383702586, 1383702584, 1383702512, 1383702504, 1383702491, 1383702468, 1383702465, 1383702408, 1383702383, 1383702358, 1383702298, 1383702294, 1383702288, 1383702280, 1383702279, 1383702276, 1383702231, 1383702226, 1383702220, 1383702206, 1383702203, 1383702196, 1383702107, 1383702104, 1383702101, 1383702100, 1383702068, 1383702060, 1383702056, 1383702040, 1383702036, 1383702032, 1383702028, 1383702026, 1383702025, 1383702005, 1383702003, 1383702001, 1383701999, 1383701976, 1383701972, 1383701970, 1383701969, 1383701968, 1383701921, 1383701917, 1383701911, 1383701909, 1383701828, 1383701827, 1383701797, 1383701790, 1383701764, 1383701757]} final : False mtd_id 4302 list_pids : [1383702620, 1383702619, 1383702618, 1383702593, 1383702590, 1383702588, 1383702586, 1383702584, 1383702512, 1383702504, 1383702491, 1383702468, 1383702465] Looping around the photos to save general results len do output : 13 /1383702620.Didn't retrieve data . /1383702619.Didn't retrieve data . /1383702618.Didn't retrieve data . /1383702593.Didn't retrieve data . /1383702590.Didn't retrieve data . /1383702588.Didn't retrieve data . /1383702586.Didn't retrieve data . /1383702584.Didn't retrieve data . /1383702512.Didn't retrieve data . /1383702504.Didn't retrieve data . /1383702491.Didn't retrieve data . /1383702468.Didn't retrieve data . /1383702465.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, '3720197') ('4302', '26838279', '1383702620', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702619', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702618', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702593', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702590', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702588', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702586', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702584', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702512', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702504', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702491', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702468', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702465', None, None, None, None, None, '3720197') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '26838279', '1383702620', '0.059749798220014055', None, None, None, None, '3720197'), ('4302', '26838279', '1383702619', '0.059749798220014055', None, None, None, None, '3720197'), ('4302', '26838279', '1383702618', '0.059749798220014055', None, None, None, None, '3720197'), ('4302', '26838279', '1383702593', '0.059749798220014055', None, None, None, None, '3720197'), ('4302', '26838279', '1383702590', '0.059749798220014055', None, None, None, None, '3720197'), ('4302', '26838279', '1383702588', '0.059749798220014055', None, None, None, None, '3720197'), ('4302', '26838279', '1383702586', '0.059749798220014055', None, None, None, None, '3720197'), ('4302', '26838279', '1383702584', '0.059749798220014055', None, None, None, None, '3720197'), ('4302', '26838279', '1383702512', '0.059749798220014055', None, None, None, None, '3720197'), ('4302', '26838279', '1383702504', '0.059749798220014055', None, None, None, None, '3720197'), ('4302', '26838279', '1383702491', '0.059749798220014055', None, None, None, None, '3720197'), ('4302', '26838279', '1383702468', '0.059749798220014055', None, None, None, None, '3720197'), ('4302', '26838279', '1383702465', '0.059749798220014055', None, None, None, None, '3720197')] time used for this insertion : 0.01628875732421875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06493330001831055 time spend to save output : 0.01705145835876465 total time spend for step 2 : 0.0819847583770752 step3:velours_tree Mon Sep 15 07:14:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {26838279: [{'flou': 26838291, 'Teint_Dans_La_Masse': 26838292, 'metal': 26838293, 'environnement': 26838294, 'autre_refus': 26838295, 'papier': 26838296, 'Carton_gris': 26838297, 'kraft': 26838298, 'cartonnette': 26838299, 'mal_croppe': 26838300, 'plastique': 26838301, 'Carton_brun': 26838302}]} input_args_next_step : {26838279: ()} output_args : {26838279: [{'flou': 26838291, 'Teint_Dans_La_Masse': 26838292, 'metal': 26838293, 'environnement': 26838294, 'autre_refus': 26838295, 'papier': 26838296, 'Carton_gris': 26838297, 'kraft': 26838298, 'cartonnette': 26838299, 'mal_croppe': 26838300, 'plastique': 26838301, 'Carton_brun': 26838302}]} args : 26838279 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': 26838291, 'Teint_Dans_La_Masse': 26838292, 'metal': 26838293, 'environnement': 26838294, 'autre_refus': 26838295, 'papier': 26838296, 'Carton_gris': 26838297, 'kraft': 26838298, 'cartonnette': 26838299, 'mal_croppe': 26838300, 'plastique': 26838301, 'Carton_brun': 26838302},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26838279) 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([26838279]) 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.3494417667388916 time spend to save output : 6.4849853515625e-05 total time spend for step 3 : 0.3495066165924072 step4:send_mail_cod Mon Sep 15 07:14:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ('0.059749798220014055',), 1383702491: ('0.059749798220014055',), 1383702468: ('0.059749798220014055',), 1383702465: ('0.059749798220014055',)} input_args_next_step : {1383702620: ()} output_args : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ('0.059749798220014055',), 1383702491: ('0.059749798220014055',), 1383702468: ('0.059749798220014055',), 1383702465: ('0.059749798220014055',)} args : 1383702620 depend.output_id : 0 input_args_next_step : {1383702620: ('0.059749798220014055',), 1383702619: ()} output_args : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ('0.059749798220014055',), 1383702491: ('0.059749798220014055',), 1383702468: ('0.059749798220014055',), 1383702465: ('0.059749798220014055',)} args : 1383702619 depend.output_id : 0 input_args_next_step : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ()} output_args : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ('0.059749798220014055',), 1383702491: ('0.059749798220014055',), 1383702468: ('0.059749798220014055',), 1383702465: ('0.059749798220014055',)} args : 1383702618 depend.output_id : 0 input_args_next_step : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ()} output_args : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ('0.059749798220014055',), 1383702491: ('0.059749798220014055',), 1383702468: ('0.059749798220014055',), 1383702465: ('0.059749798220014055',)} args : 1383702593 depend.output_id : 0 input_args_next_step : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ()} output_args : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ('0.059749798220014055',), 1383702491: ('0.059749798220014055',), 1383702468: ('0.059749798220014055',), 1383702465: ('0.059749798220014055',)} args : 1383702590 depend.output_id : 0 input_args_next_step : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ()} output_args : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ('0.059749798220014055',), 1383702491: ('0.059749798220014055',), 1383702468: ('0.059749798220014055',), 1383702465: ('0.059749798220014055',)} args : 1383702588 depend.output_id : 0 input_args_next_step : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ()} output_args : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ('0.059749798220014055',), 1383702491: ('0.059749798220014055',), 1383702468: ('0.059749798220014055',), 1383702465: ('0.059749798220014055',)} args : 1383702586 depend.output_id : 0 input_args_next_step : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ()} output_args : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ('0.059749798220014055',), 1383702491: ('0.059749798220014055',), 1383702468: ('0.059749798220014055',), 1383702465: ('0.059749798220014055',)} args : 1383702584 depend.output_id : 0 input_args_next_step : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ()} output_args : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ('0.059749798220014055',), 1383702491: ('0.059749798220014055',), 1383702468: ('0.059749798220014055',), 1383702465: ('0.059749798220014055',)} args : 1383702512 depend.output_id : 0 input_args_next_step : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ()} output_args : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ('0.059749798220014055',), 1383702491: ('0.059749798220014055',), 1383702468: ('0.059749798220014055',), 1383702465: ('0.059749798220014055',)} args : 1383702504 depend.output_id : 0 input_args_next_step : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ('0.059749798220014055',), 1383702491: ()} output_args : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ('0.059749798220014055',), 1383702491: ('0.059749798220014055',), 1383702468: ('0.059749798220014055',), 1383702465: ('0.059749798220014055',)} args : 1383702491 depend.output_id : 0 input_args_next_step : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ('0.059749798220014055',), 1383702491: ('0.059749798220014055',), 1383702468: ()} output_args : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ('0.059749798220014055',), 1383702491: ('0.059749798220014055',), 1383702468: ('0.059749798220014055',), 1383702465: ('0.059749798220014055',)} args : 1383702468 depend.output_id : 0 input_args_next_step : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ('0.059749798220014055',), 1383702491: ('0.059749798220014055',), 1383702468: ('0.059749798220014055',), 1383702465: ()} output_args : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ('0.059749798220014055',), 1383702491: ('0.059749798220014055',), 1383702468: ('0.059749798220014055',), 1383702465: ('0.059749798220014055',)} args : 1383702465 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 : {26838279: [{'flou': 26838291, 'Teint_Dans_La_Masse': 26838292, 'metal': 26838293, 'environnement': 26838294, 'autre_refus': 26838295, 'papier': 26838296, 'Carton_gris': 26838297, 'kraft': 26838298, 'cartonnette': 26838299, 'mal_croppe': 26838300, 'plastique': 26838301, 'Carton_brun': 26838302}]} input_args_next_step : {1383702620: ('0.059749798220014055',), 1383702619: ('0.059749798220014055',), 1383702618: ('0.059749798220014055',), 1383702593: ('0.059749798220014055',), 1383702590: ('0.059749798220014055',), 1383702588: ('0.059749798220014055',), 1383702586: ('0.059749798220014055',), 1383702584: ('0.059749798220014055',), 1383702512: ('0.059749798220014055',), 1383702504: ('0.059749798220014055',), 1383702491: ('0.059749798220014055',), 1383702468: ('0.059749798220014055',), 1383702465: ('0.059749798220014055',), 26838279: ()} output_args : {26838279: [{'flou': 26838291, 'Teint_Dans_La_Masse': 26838292, 'metal': 26838293, 'environnement': 26838294, 'autre_refus': 26838295, 'papier': 26838296, 'Carton_gris': 26838297, 'kraft': 26838298, 'cartonnette': 26838299, 'mal_croppe': 26838300, 'plastique': 26838301, 'Carton_brun': 26838302}]} args : 26838279 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 :14, first value : ('0.059749798220014055',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26838279) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1383702620,1383702619,1383702618,1383702593,1383702590,1383702588,1383702586,1383702584,1383702512,1383702504,1383702491,1383702468,1383702465) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1383702465 begin to download photo : 1383702504 begin to download photo : 1383702586 begin to download photo : 1383702593 begin to download photo : 1383702620 download finish for photo 1383702586 begin to download photo : 1383702588 download finish for photo 1383702620 download finish for photo 1383702593 begin to download photo : 1383702618 download finish for photo 1383702465 begin to download photo : 1383702468 download finish for photo 1383702504 begin to download photo : 1383702512 download finish for photo 1383702588 begin to download photo : 1383702590 download finish for photo 1383702512 begin to download photo : 1383702584 download finish for photo 1383702618 begin to download photo : 1383702619 download finish for photo 1383702468 begin to download photo : 1383702491 download finish for photo 1383702584 download finish for photo 1383702590 download finish for photo 1383702619 download finish for photo 1383702491 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette268382911757913270/ imagette268382931757913270/ length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P26838279_15-09-2025_07_14_30.pdf 26838291 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26838291 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette268382911757913270 26838293 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26838293 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette268382931757913270 26838295 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26838295 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383702055: '1757912827_4171331_1383701764_b51ecdb0d50d50cf52f84aa181fe9da0_rle_crop_3958218511_0.png', 1383702284: '1757912964_4175181_1383701909_385d1d0a26de5d214784b35925af596c_rle_crop_3958219744_0.png', 1383702398: '1757913025_4178721_1383702100_4659a32f19171aab24b3eb19239f694b_rle_crop_3958220599_0.png', 1383702444: '1757913066_4181548_1383702025_7986a48df1c9b4f3c87417089fc23278_rle_crop_3958221055_0.png', 1383702445: '1757913066_4181548_1383702025_7986a48df1c9b4f3c87417089fc23278_rle_crop_3958221054_0.png', 1383702463: '1757913086_4182397_1383701968_906b9c7ab818ea7fc714fed36475bb0f_rle_crop_3958221193_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/3be619c524784d8b4a5c82afdb246d07_88873514.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/8717e5b6b64821a503f09591688127d0_83949820.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/b029a9b507620d3cb45b5e27a9b84513_86551635.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/a53c30d4cd997aca950a71a25e869225_89903866.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/08ee1c08e763f053c7b59b2fdf7a89fa_97623133.png change filename to text .imagette268382951757913270/ imagette268382951757913270/1757913086_4182397_1383701968_906b9c7ab818ea7fc714fed36475bb0f_rle_crop_3958221193_0.png.png imagette268382951757913270/1757913066_4181548_1383702025_7986a48df1c9b4f3c87417089fc23278_rle_crop_3958221055_0.png.png imagette268382951757913270/1757912827_4171331_1383701764_b51ecdb0d50d50cf52f84aa181fe9da0_rle_crop_3958218511_0.png.png imagette268382951757913270/1757912964_4175181_1383701909_385d1d0a26de5d214784b35925af596c_rle_crop_3958219744_0.png.png imagette268382951757913270/1757913066_4181548_1383702025_7986a48df1c9b4f3c87417089fc23278_rle_crop_3958221054_0.png.png imagette268382951757913270/1757913025_4178721_1383702100_4659a32f19171aab24b3eb19239f694b_rle_crop_3958220599_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/99a57085d152a5788dbd58b1c6ca4bd8_43497391.png imagette268382951757913270 26838298 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26838298 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383702059: '1757912827_4171331_1383701764_b51ecdb0d50d50cf52f84aa181fe9da0_rle_crop_3958218508_0.png'} change filename to text .imagette268382981757913270/ imagette268382981757913270/1757912827_4171331_1383701764_b51ecdb0d50d50cf52f84aa181fe9da0_rle_crop_3958218508_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/48eea28c44fef08fef8d1bf23c115002_3891143.png imagette268382981757913270 26838299 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26838299 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383702057: '1757912827_4171331_1383701764_b51ecdb0d50d50cf52f84aa181fe9da0_rle_crop_3958218507_0.png', 1383702286: '1757912964_4175181_1383701911_aa2796f0d49ea0710656656a216f6d96_rle_crop_3958219728_0.png', 1383702287: '1757912964_4175181_1383701909_385d1d0a26de5d214784b35925af596c_rle_crop_3958219743_0.png', 1383702449: '1757913066_4181548_1383702032_59a831dbfd8f575ff202213ee7ee7fb4_rle_crop_3958220826_0.png', 1383702450: '1757913066_4181548_1383702028_dccdf8dcd8574709cc6a0bcd1a5c9450_rle_crop_3958220992_0.png', 1383702464: '1757913086_4182397_1383701969_4c2ac3cc83371ca201c3af972ec84ae0_rle_crop_3958221186_0.png', 1383702578: '1757913146_4188349_1383702203_d00967fc91a8ba757da91a023fa2bcf5_rle_crop_3958221538_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/2e65ee2508eeffd759c1a155c5f701f7_81081373.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/355c242ce3acf6710b96117038fc6ff9_30180487.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/d08d7a6eb9eacab6aa60cefe099eb2a2_53780669.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/2fdcbb2974757003383072052602b767_49015090.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/838e5052d9a875904f335558c8fcfe9c_22316711.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/8560fea0b5f5506bb0a1dd1097394ff5_71008287.png change filename to text .imagette268382991757913270/ imagette268382991757913270/1757912827_4171331_1383701764_b51ecdb0d50d50cf52f84aa181fe9da0_rle_crop_3958218507_0.png.png imagette268382991757913270/1757912964_4175181_1383701911_aa2796f0d49ea0710656656a216f6d96_rle_crop_3958219728_0.png.png imagette268382991757913270/1757913066_4181548_1383702032_59a831dbfd8f575ff202213ee7ee7fb4_rle_crop_3958220826_0.png.png imagette268382991757913270/1757912964_4175181_1383701909_385d1d0a26de5d214784b35925af596c_rle_crop_3958219743_0.png.png imagette268382991757913270/1757913086_4182397_1383701969_4c2ac3cc83371ca201c3af972ec84ae0_rle_crop_3958221186_0.png.png imagette268382991757913270/1757913066_4181548_1383702028_dccdf8dcd8574709cc6a0bcd1a5c9450_rle_crop_3958220992_0.png.png imagette268382991757913270/1757913146_4188349_1383702203_d00967fc91a8ba757da91a023fa2bcf5_rle_crop_3958221538_0.png.png imagette268383001757913271/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/a3837bc497ed878eaaad87511ef7b687_84363247.png imagette268382991757913270 26838300 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26838300 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette268383001757913271 26838301 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26838301 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383702058: '1757912827_4171331_1383701797_f1919f430e4abc34e4f1d7e0f2ac90e7_rle_crop_3958218500_0.png', 1383702453: '1757913066_4181548_1383702107_036fe3ced9c512b8bc764b42f5c19587_rle_crop_3958220813_0.png', 1383702454: '1757913066_4181548_1383702032_59a831dbfd8f575ff202213ee7ee7fb4_rle_crop_3958220824_0.png', 1383702466: '1757913086_4182397_1383701969_4c2ac3cc83371ca201c3af972ec84ae0_rle_crop_3958221184_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/5e12f83016d5a4a62b177a2150aa192d_15486598.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/684a5843de08556a49868794d8ee905a_59038614.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/2165e63ad5ff61300cb57cde4dfb5ee9_21599680.png change filename to text .imagette268383011757913271/ imagette268383011757913271/1757912827_4171331_1383701797_f1919f430e4abc34e4f1d7e0f2ac90e7_rle_crop_3958218500_0.png.png imagette268383011757913271/1757913066_4181548_1383702032_59a831dbfd8f575ff202213ee7ee7fb4_rle_crop_3958220824_0.png.png imagette268383011757913271/1757913086_4182397_1383701969_4c2ac3cc83371ca201c3af972ec84ae0_rle_crop_3958221184_0.png.png imagette268383011757913271/1757913066_4181548_1383702107_036fe3ced9c512b8bc764b42f5c19587_rle_crop_3958220813_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/27a899c8ca96336554237f50ecf515c3_96024423.png imagette268383011757913271 26838292 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26838292 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383702281: '1757912964_4175181_1383701911_aa2796f0d49ea0710656656a216f6d96_rle_crop_3958219733_0.png', 1383702576: '1757913146_4188349_1383702203_d00967fc91a8ba757da91a023fa2bcf5_rle_crop_3958221542_0.png', 1383702575: '1757913146_4188349_1383702220_34c68be67940405d9e33b3ad44cfebf0_rle_crop_3958221521_0.png', 1383702574: '1757913146_4188349_1383702226_e4279fca570b2af7427c6e733a060d3d_rle_crop_3958221510_0.png', 1383702462: '1757913086_4182397_1383701968_906b9c7ab818ea7fc714fed36475bb0f_rle_crop_3958221197_0.png', 1383702461: '1757913086_4182397_1383701970_fbc8113093bfb80734fae20258892a35_rle_crop_3958221177_0.png', 1383702459: '1757913086_4182397_1383702005_c8c6c0aa68c6ff84f60ca69c6b653659_rle_crop_3958221131_0.png', 1383702458: '1757913086_4182397_1383702068_ecb99d459fc3742ffe48c34d9276f5f0_rle_crop_3958221113_0.png', 1383702443: '1757913066_4181548_1383702025_7986a48df1c9b4f3c87417089fc23278_rle_crop_3958221056_0.png', 1383702391: '1757913025_4178721_1383702100_4659a32f19171aab24b3eb19239f694b_rle_crop_3958220601_0.png', 1383702045: '1757912827_4171331_1383701797_f1919f430e4abc34e4f1d7e0f2ac90e7_rle_crop_3958218501_0.png', 1383702053: '1757912827_4171331_1383701757_fbc91dede570163b9b8499fd7fb8f095_rle_crop_3958218539_0.png', 1383702052: '1757912827_4171331_1383701757_fbc91dede570163b9b8499fd7fb8f095_rle_crop_3958218540_0.png', 1383702051: '1757912827_4171331_1383701757_fbc91dede570163b9b8499fd7fb8f095_rle_crop_3958218542_0.png', 1383702050: '1757912827_4171331_1383701764_b51ecdb0d50d50cf52f84aa181fe9da0_rle_crop_3958218516_0.png', 1383702049: '1757912827_4171331_1383701764_b51ecdb0d50d50cf52f84aa181fe9da0_rle_crop_3958218518_0.png', 1383702048: '1757912827_4171331_1383701797_f1919f430e4abc34e4f1d7e0f2ac90e7_rle_crop_3958218497_0.png', 1383702047: '1757912827_4171331_1383701797_f1919f430e4abc34e4f1d7e0f2ac90e7_rle_crop_3958218499_0.png', 1383702046: '1757912827_4171331_1383701797_f1919f430e4abc34e4f1d7e0f2ac90e7_rle_crop_3958218498_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/c558737f6957f2a68f33ff22c8dda19b_89741739.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/2afb40d1addd75f4477623ef948d790d_72069394.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/d3762cec4bb1eef409fdf0cde9069e2a_96210420.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/1e81eab4f5b8ef55415e654bb28a71fe_1421842.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/c1b7f8ab4562c94103b1d47745d8cbc9_26958558.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/827b56e4407745d473e938ee57d8dace_19387033.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/499165c158b70c4086cbb290ab0efe7c_25808641.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/499165c158b70c4086cbb290ab0efe7c_31946465.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/2e7fb8439862c2ecd68af0cd8c0c141d_20232953.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/5af0fadd377598a58030d0265ca2dba1_52459970.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/4513788f542d39fb7c31052070ca5444_98117967.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/aee908f1ed0979d84e3656c8dbb26e6c_57795001.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/d8e88ee9b3d25eabf8aa49e434200257_48617738.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/e60ac29ca7982f3b589d9933e2fb0a0d_34851169.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/2a3959f2530ccd9eb45bce58c0116171_73143563.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/c83cb2a8956915c18d512913beaf8444_10432458.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/f4b1a08b455393e3e18e4325ab4d6aec_27833599.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/800c67093365cb6ea9f5ea33f574ed4a_64369823.png change filename to text .imagette268382921757913271/ imagette268382921757913271/1757912827_4171331_1383701764_b51ecdb0d50d50cf52f84aa181fe9da0_rle_crop_3958218516_0.png.png imagette268382921757913271/1757912827_4171331_1383701757_fbc91dede570163b9b8499fd7fb8f095_rle_crop_3958218542_0.png.png imagette268382921757913271/1757912827_4171331_1383701797_f1919f430e4abc34e4f1d7e0f2ac90e7_rle_crop_3958218499_0.png.png imagette268382921757913271/1757913086_4182397_1383702005_c8c6c0aa68c6ff84f60ca69c6b653659_rle_crop_3958221131_0.png.png imagette268382921757913271/1757913086_4182397_1383702068_ecb99d459fc3742ffe48c34d9276f5f0_rle_crop_3958221113_0.png.png imagette268382921757913271/1757912827_4171331_1383701797_f1919f430e4abc34e4f1d7e0f2ac90e7_rle_crop_3958218501_0.png.png imagette268382921757913271/1757913025_4178721_1383702100_4659a32f19171aab24b3eb19239f694b_rle_crop_3958220601_0.png.png imagette268382921757913271/1757912827_4171331_1383701797_f1919f430e4abc34e4f1d7e0f2ac90e7_rle_crop_3958218497_0.png.png imagette268382921757913271/1757912827_4171331_1383701757_fbc91dede570163b9b8499fd7fb8f095_rle_crop_3958218540_0.png.png imagette268382921757913271/1757912827_4171331_1383701764_b51ecdb0d50d50cf52f84aa181fe9da0_rle_crop_3958218518_0.png.png imagette268382921757913271/1757913086_4182397_1383701970_fbc8113093bfb80734fae20258892a35_rle_crop_3958221177_0.png.png imagette268382921757913271/1757913146_4188349_1383702226_e4279fca570b2af7427c6e733a060d3d_rle_crop_3958221510_0.png.png imagette268382921757913271/1757913066_4181548_1383702025_7986a48df1c9b4f3c87417089fc23278_rle_crop_3958221056_0.png.png imagette268382921757913271/1757913086_4182397_1383701968_906b9c7ab818ea7fc714fed36475bb0f_rle_crop_3958221197_0.png.png imagette268382921757913271/1757912827_4171331_1383701757_fbc91dede570163b9b8499fd7fb8f095_rle_crop_3958218539_0.png.png imagette268382921757913271/1757912827_4171331_1383701797_f1919f430e4abc34e4f1d7e0f2ac90e7_rle_crop_3958218498_0.png.png imagette268382921757913271/1757913146_4188349_1383702203_d00967fc91a8ba757da91a023fa2bcf5_rle_crop_3958221542_0.png.png imagette268382921757913271/1757912964_4175181_1383701911_aa2796f0d49ea0710656656a216f6d96_rle_crop_3958219733_0.png.png imagette268382921757913271/1757913146_4188349_1383702220_34c68be67940405d9e33b3ad44cfebf0_rle_crop_3958221521_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/8de221baddbe62062c5a9d95a3c94a34_77623528.png imagette268382921757913271 26838297 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26838297 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383702285: '1757912964_4175181_1383701909_385d1d0a26de5d214784b35925af596c_rle_crop_3958219746_0.png', 1383702446: '1757913066_4181548_1383702028_dccdf8dcd8574709cc6a0bcd1a5c9450_rle_crop_3958220996_0.png', 1383702447: '1757913066_4181548_1383702026_7c4b7bc1958458d6656ee6ee62209ec1_rle_crop_3958221040_0.png', 1383702448: '1757913066_4181548_1383702026_7c4b7bc1958458d6656ee6ee62209ec1_rle_crop_3958221036_0.png', 1383702577: '1757913146_4188349_1383702206_c820b84a46ec2844227baf94e00d27c8_rle_crop_3958221530_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/1ba1604331baab145766f7da9deae403_6567231.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/3b7895b8c4590874f87ab0b2d6a6c3d1_84964223.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/65e45d886169da9bf75a722e9d43832e_40267055.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/785e97681cab131dbb200e5d11a19cbf_5122003.png change filename to text .imagette268382971757913272/ imagette268382971757913272/1757912964_4175181_1383701909_385d1d0a26de5d214784b35925af596c_rle_crop_3958219746_0.png.png imagette268382971757913272/1757913066_4181548_1383702026_7c4b7bc1958458d6656ee6ee62209ec1_rle_crop_3958221036_0.png.png imagette268382971757913272/1757913066_4181548_1383702026_7c4b7bc1958458d6656ee6ee62209ec1_rle_crop_3958221040_0.png.png imagette268382971757913272/1757913066_4181548_1383702028_dccdf8dcd8574709cc6a0bcd1a5c9450_rle_crop_3958220996_0.png.png imagette268382971757913272/1757913146_4188349_1383702206_c820b84a46ec2844227baf94e00d27c8_rle_crop_3958221530_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/a175bd3b30fba3c786e279e7df5c8ac9_45051232.png imagette268382971757913272 26838302 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26838302 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383702292: '1757912964_4175181_1383701911_aa2796f0d49ea0710656656a216f6d96_rle_crop_3958219731_0.png', 1383702293: '1757912964_4175181_1383701911_aa2796f0d49ea0710656656a216f6d96_rle_crop_3958219730_0.png', 1383702451: '1757913066_4181548_1383702107_036fe3ced9c512b8bc764b42f5c19587_rle_crop_3958220815_0.png', 1383702452: '1757913066_4181548_1383702028_dccdf8dcd8574709cc6a0bcd1a5c9450_rle_crop_3958220993_0.png', 1383702579: '1757913146_4188349_1383702206_c820b84a46ec2844227baf94e00d27c8_rle_crop_3958221531_0.png', 1383702580: '1757913146_4188349_1383702206_c820b84a46ec2844227baf94e00d27c8_rle_crop_3958221527_0.png', 1383702581: '1757913146_4188349_1383702203_d00967fc91a8ba757da91a023fa2bcf5_rle_crop_3958221544_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/a0df8d655ee925e79eaf75dbf84a8f06_94330862.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/512058b326c4056203be930f758d019f_31810767.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/12651a78154f3b48c3dd4fa58a24e721_2691845.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/9f413debe98f964c8959dd254988f6fd_92085575.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/a4878dcfb48956940f57a79e50761e69_86585722.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/10b73aebf8a4dd255dad8fe5702939fc_2799854.png change filename to text .imagette268383021757913273/ imagette268383021757913273/1757913146_4188349_1383702206_c820b84a46ec2844227baf94e00d27c8_rle_crop_3958221527_0.png.png imagette268383021757913273/1757912964_4175181_1383701911_aa2796f0d49ea0710656656a216f6d96_rle_crop_3958219730_0.png.png imagette268383021757913273/1757913146_4188349_1383702203_d00967fc91a8ba757da91a023fa2bcf5_rle_crop_3958221544_0.png.png imagette268383021757913273/1757913146_4188349_1383702206_c820b84a46ec2844227baf94e00d27c8_rle_crop_3958221531_0.png.png imagette268383021757913273/1757913066_4181548_1383702028_dccdf8dcd8574709cc6a0bcd1a5c9450_rle_crop_3958220993_0.png.png imagette268383021757913273/1757913066_4181548_1383702107_036fe3ced9c512b8bc764b42f5c19587_rle_crop_3958220815_0.png.png imagette268383021757913273/1757912964_4175181_1383701911_aa2796f0d49ea0710656656a216f6d96_rle_crop_3958219731_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/2f8ffcd5b325fa9dcd1124479e2c700d_22998263.png imagette268383021757913273 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26838279 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26838305,26838306,26838307,26838308,26838309,26838310,26838311,26838313,26838314,26838315,26838316,26838317?tags=flou,Teint_Dans_La_Masse,metal,environnement,autre_refus,papier,Carton_gris,kraft,cartonnette,mal_croppe,plastique,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1383702620] : ('0.059749798220014055',) no score found for photo 1383702620 We are sending mail with results at report@fotonower.com args[1383702619] : ('0.059749798220014055',) no score found for photo 1383702619 We are sending mail with results at report@fotonower.com args[1383702618] : ('0.059749798220014055',) no score found for photo 1383702618 We are sending mail with results at report@fotonower.com args[1383702593] : ('0.059749798220014055',) no score found for photo 1383702593 We are sending mail with results at report@fotonower.com args[1383702590] : ('0.059749798220014055',) no score found for photo 1383702590 We are sending mail with results at report@fotonower.com args[1383702588] : ('0.059749798220014055',) no score found for photo 1383702588 We are sending mail with results at report@fotonower.com args[1383702586] : ('0.059749798220014055',) no score found for photo 1383702586 We are sending mail with results at report@fotonower.com args[1383702584] : ('0.059749798220014055',) no score found for photo 1383702584 We are sending mail with results at report@fotonower.com args[1383702512] : ('0.059749798220014055',) no score found for photo 1383702512 We are sending mail with results at report@fotonower.com args[1383702504] : ('0.059749798220014055',) no score found for photo 1383702504 We are sending mail with results at report@fotonower.com args[1383702491] : ('0.059749798220014055',) no score found for photo 1383702491 We are sending mail with results at report@fotonower.com args[1383702468] : ('0.059749798220014055',) no score found for photo 1383702468 We are sending mail with results at report@fotonower.com args[1383702465] : ('0.059749798220014055',) no score found for photo 1383702465 We are sending mail with results at report@fotonower.com refus_total : 0.059749798220014055 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26838279 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_P26838279_15-09-2025_07_14_30.pdf results_Auto_P26838279_15-09-2025_07_14_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26838279_15-09-2025_07_14_30.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','26838279','results_Auto_P26838279_15-09-2025_07_14_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26838279_15-09-2025_07_14_30.pdf','pdf','','0.25','0.059749798220014055') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26838279]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1383702620, 1383702619, 1383702618, 1383702593, 1383702590, 1383702588, 1383702586, 1383702584, 1383702512, 1383702504, 1383702491, 1383702468, 1383702465] map_info['map_portfolio_photo'] : {26838279: [1383702620, 1383702619, 1383702618, 1383702593, 1383702590, 1383702588, 1383702586, 1383702584, 1383702512, 1383702504, 1383702491, 1383702468, 1383702465, 1383702408, 1383702383, 1383702358, 1383702298, 1383702294, 1383702288, 1383702280, 1383702279, 1383702276, 1383702231, 1383702226, 1383702220, 1383702206, 1383702203, 1383702196, 1383702107, 1383702104, 1383702101, 1383702100, 1383702068, 1383702060, 1383702056, 1383702040, 1383702036, 1383702032, 1383702028, 1383702026, 1383702025, 1383702005, 1383702003, 1383702001, 1383701999, 1383701976, 1383701972, 1383701970, 1383701969, 1383701968, 1383701921, 1383701917, 1383701911, 1383701909, 1383701828, 1383701827, 1383701797, 1383701790, 1383701764, 1383701757]} final : False mtd_id 4302 list_pids : [1383702620, 1383702619, 1383702618, 1383702593, 1383702590, 1383702588, 1383702586, 1383702584, 1383702512, 1383702504, 1383702491, 1383702468, 1383702465] 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, '3720197') ('4302', '26838279', '1383702620', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702619', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702618', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702593', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702590', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702588', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702586', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702584', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702512', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702504', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702491', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702468', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702465', None, None, None, None, None, '3720197') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '26838279', '1383702620', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702619', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702618', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702593', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702590', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702588', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702586', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702584', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702512', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702504', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702491', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702468', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702465', None, None, None, None, None, '3720197')] time used for this insertion : 0.014755487442016602 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.701514959335327 time spend to save output : 0.015026569366455078 total time spend for step 4 : 4.716541528701782 step5:split_time_score Mon Sep 15 07:14:34 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['26838279'] 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 : [('26838279',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26838279) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1383702620: {'path': 'temp/1757913269_2882402_1383702620_259935344f455c49aad586d6665f4623.jpg', 'extension': 'jpg'}, 1383702504: {'path': 'temp/1757913269_2882402_1383702504_a5a5c76bcf2dc6241b2b044aa0e2e8c2.jpg', 'extension': 'jpg'}, 1383702512: {'path': 'temp/1757913269_2882402_1383702512_278a7eb27ece80ad4d7372c383a8d269.jpg', 'extension': 'jpg'}, 1383702584: {'path': 'temp/1757913269_2882402_1383702584_8ecfd2aaa0e27276b3bab249cb065a7c.jpg', 'extension': 'jpg'}, 1383702586: {'path': 'temp/1757913269_2882402_1383702586_99fcb9871b30235a669f1a33cc98906d.jpg', 'extension': 'jpg'}, 1383702588: {'path': 'temp/1757913269_2882402_1383702588_3d99d5f3c44a94612255dacb1e9c0868.jpg', 'extension': 'jpg'}, 1383702590: {'path': 'temp/1757913269_2882402_1383702590_ca4fb81e1efc8c13ef93f379bb92a7ef.jpg', 'extension': 'jpg'}, 1383702593: {'path': 'temp/1757913269_2882402_1383702593_499e07180db126e50384bff48ede64db.jpg', 'extension': 'jpg'}, 1383702618: {'path': 'temp/1757913269_2882402_1383702618_0e372aca0f92021a50eba64f53dd8490.jpg', 'extension': 'jpg'}, 1383702619: {'path': 'temp/1757913269_2882402_1383702619_4bcaaa4a63542c6dabfe2b2642e1248f.jpg', 'extension': 'jpg'}, 1383702465: {'path': 'temp/1757913269_2882402_1383702465_54f87ffb3f89b91222d78d9a0aac7952.jpg', 'extension': 'jpg'}, 1383702468: {'path': 'temp/1757913269_2882402_1383702468_9a02de34d7291d7affb49e386c42af7e.jpg', 'extension': 'jpg'}, 1383702491: {'path': 'temp/1757913269_2882402_1383702491_717ef383fdd8e8ef41977097a607085d.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 = 26838279; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26838279 group by h (('07', 60),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26838279 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 (26838279) 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 (26838279) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 15092025 26838279 Nombre de photos uploadées : 60 / 23040 (0%) 15092025 26838279 Nombre de photos taguées (types de déchets): 0 / 60 (0%) 15092025 26838279 Nombre de photos taguées (volume) : 0 / 60 (0%) [{'photo_id': 1383701764, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/b51ecdb0d50d50cf52f84aa181fe9da0.jpg', 'username': None, 'uploaded_at': 1757912468, 'text': 'image_15092025_07_00_14_010219m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1383701757, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/fbc91dede570163b9b8499fd7fb8f095.jpg', 'username': None, 'uploaded_at': 1757912468, 'text': 'image_15092025_07_00_24_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1383701797, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/f1919f430e4abc34e4f1d7e0f2ac90e7.jpg', 'username': None, 'uploaded_at': 1757912528, 'text': 'image_15092025_07_00_55_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1383701790, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/af926cfd18ee830306818dc6dfa1c71a.jpg', 'username': None, 'uploaded_at': 1757912528, 'text': 'image_15092025_07_01_14_9126.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 1.0251998901367188e-05 ???????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0029294490814208984 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26838279, '2025-09-15' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-09-15' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2286127,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2131209373474121 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= 2286127 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2286127, 'dashboard_run_id': 2293907, 'mtr_portfolio_id': 26835709, 'dashboard_result_id': 15145334, '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_P26835709_15-09-2025_05_23_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26835711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26835712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26835713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26835714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26835715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26835716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26835717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26835718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26835719, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26835720, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26835721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26835722, 'pht': 3726}}"}, {'dashboat_entry_day': 2286127, 'dashboard_run_id': 2293907, 'mtr_portfolio_id': 26835864, 'dashboard_result_id': 15145335, '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_P26835864_15-09-2025_05_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26835868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26835869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26835870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26835871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26835872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26835873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26835874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26835875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26835876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26835877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26835878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26835879, 'pht': 3726}}"}, {'dashboat_entry_day': 2286127, 'dashboard_run_id': 2293907, 'mtr_portfolio_id': 26836097, 'dashboard_result_id': 15145336, '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_P26836097_15-09-2025_05_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26836099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26836100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26836101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26836102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26836103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26836104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26836105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26836106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26836107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26836108, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26836109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26836110, 'pht': 3726}}"}, {'dashboat_entry_day': 2286127, 'dashboard_run_id': 2293907, 'mtr_portfolio_id': 26836300, 'dashboard_result_id': 15145337, '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_P26836300_15-09-2025_06_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26836303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26836304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26836305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26836306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26836307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26836308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26836309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26836310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26836311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26836312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26836313, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26836314, 'pht': 3726}}"}, {'dashboat_entry_day': 2286127, 'dashboard_run_id': 2293907, 'mtr_portfolio_id': 26836565, 'dashboard_result_id': 15145338, '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_P26836565_15-09-2025_06_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26836570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26836571, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26836572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26836573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26836574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26836575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26836576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26836577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26836578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26836579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26836580, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26836581, 'pht': 3726}}"}, {'dashboat_entry_day': 2286127, 'dashboard_run_id': 2293907, 'mtr_portfolio_id': 26836999, 'dashboard_result_id': 15145339, '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_P26836999_15-09-2025_06_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26837007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26837008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26837009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26837010, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26837011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26837012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26837013, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26837014, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26837015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26837016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26837017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26837018, 'pht': 3726}}"}, {'dashboat_entry_day': 2286127, 'dashboard_run_id': 2293907, 'mtr_portfolio_id': 26837388, 'dashboard_result_id': 15145340, '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_P26837388_15-09-2025_06_49_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26837397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26837398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26837399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26837400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26837401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26837402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26837403, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26837404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26837405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26837406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26837407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26837408, 'pht': 3726}}"}, {'dashboat_entry_day': 2286127, 'dashboard_run_id': 2293907, 'mtr_portfolio_id': 26837812, 'dashboard_result_id': 15145341, '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_P26837812_15-09-2025_07_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26837823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26837824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26837825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26837826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26837827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26837828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26837829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26837830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26837831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26837832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26837833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26837834, 'pht': 3726}}"}, {'dashboat_entry_day': 2286127, 'dashboard_run_id': 2293907, 'mtr_portfolio_id': 26838279, 'dashboard_result_id': 15145342, '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_P26838279_15-09-2025_07_13_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26838291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26838292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26838293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26838294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26838295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26838296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26838297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26838298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26838299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26838300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26838301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26838302, '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 = 26835709 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': 3719743, 'mtr_portfolio_id': 26835709, 'created_at': datetime.datetime(2025, 9, 15, 5, 23), 'result': '0.06109873043356822', 'result_long': None, 'result_double': None}] Qualite : 0.06109873043356822 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26835709 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26835709_15-09-2025_05_23_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26835709 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_P26835709_15-09-2025_05_23_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26835711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26835712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26835713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26835714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26835715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26835716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26835717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26835718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26835719, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26835720, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26835721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26835722, 'pht': 3726}}" where mtr_portfolio_id = 26835709 and dashboard_run_id = 2293907 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`=26835709 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15145334, 0.06109873043356822, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26835709_15-09-2025_05_23_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26835711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26835712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26835713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26835714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26835715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26835716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26835717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26835718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26835719, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26835720, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26835721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26835722, '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 = 26835864 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': 3719776, 'mtr_portfolio_id': 26835864, 'created_at': datetime.datetime(2025, 9, 15, 5, 33), 'result': '0.04115374835945433', 'result_long': None, 'result_double': None}] Qualite : 0.04115374835945433 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26835864 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26835864_15-09-2025_05_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26835864 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_P26835864_15-09-2025_05_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26835868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26835869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26835870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26835871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26835872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26835873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26835874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26835875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26835876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26835877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26835878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26835879, 'pht': 3726}}" where mtr_portfolio_id = 26835864 and dashboard_run_id = 2293907 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`=26835864 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15145335, 0.04115374835945433, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26835864_15-09-2025_05_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26835868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26835869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26835870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26835871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26835872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26835873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26835874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26835875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26835876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26835877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26835878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26835879, '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 = 26836097 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': 3719813, 'mtr_portfolio_id': 26836097, 'created_at': datetime.datetime(2025, 9, 15, 5, 48, 57), 'result': '0.047495906117340385', 'result_long': None, 'result_double': None}] Qualite : 0.047495906117340385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26836097 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26836097_15-09-2025_05_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26836097 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_P26836097_15-09-2025_05_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26836099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26836100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26836101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26836102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26836103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26836104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26836105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26836106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26836107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26836108, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26836109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26836110, 'pht': 3726}}" where mtr_portfolio_id = 26836097 and dashboard_run_id = 2293907 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`=26836097 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15145336, 0.047495906117340385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26836097_15-09-2025_05_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26836099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26836100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26836101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26836102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26836103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26836104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26836105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26836106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26836107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26836108, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26836109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26836110, '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 = 26836300 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': 3719836, 'mtr_portfolio_id': 26836300, 'created_at': datetime.datetime(2025, 9, 15, 6, 2, 59), 'result': '0.09459732304082115', 'result_long': None, 'result_double': None}] Qualite : 0.09459732304082115 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26836300 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26836300_15-09-2025_06_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26836300 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_P26836300_15-09-2025_06_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26836303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26836304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26836305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26836306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26836307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26836308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26836309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26836310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26836311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26836312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26836313, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26836314, 'pht': 3726}}" where mtr_portfolio_id = 26836300 and dashboard_run_id = 2293907 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`=26836300 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15145337, 0.09459732304082115, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26836300_15-09-2025_06_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26836303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26836304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26836305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26836306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26836307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26836308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26836309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26836310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26836311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26836312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26836313, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26836314, '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 = 26836565 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': 3719883, 'mtr_portfolio_id': 26836565, 'created_at': datetime.datetime(2025, 9, 15, 6, 18, 58), 'result': '0.05506020050566562', 'result_long': None, 'result_double': None}] Qualite : 0.05506020050566562 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26836565 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26836565_15-09-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26836565 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_P26836565_15-09-2025_06_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26836570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26836571, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26836572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26836573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26836574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26836575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26836576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26836577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26836578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26836579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26836580, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26836581, 'pht': 3726}}" where mtr_portfolio_id = 26836565 and dashboard_run_id = 2293907 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`=26836565 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15145338, 0.05506020050566562, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26836565_15-09-2025_06_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26836570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26836571, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26836572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26836573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26836574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26836575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26836576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26836577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26836578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26836579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26836580, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26836581, '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 = 26836999 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': 3719950, 'mtr_portfolio_id': 26836999, 'created_at': datetime.datetime(2025, 9, 15, 6, 32, 56), 'result': '0.051215340287980894', 'result_long': None, 'result_double': None}] Qualite : 0.051215340287980894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26836999 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26836999_15-09-2025_06_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26836999 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_P26836999_15-09-2025_06_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26837007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26837008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26837009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26837010, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26837011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26837012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26837013, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26837014, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26837015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26837016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26837017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26837018, 'pht': 3726}}" where mtr_portfolio_id = 26836999 and dashboard_run_id = 2293906 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`=26836999 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15145339, 0.051215340287980894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26836999_15-09-2025_06_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26837007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26837008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26837009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26837010, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26837011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26837012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26837013, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26837014, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26837015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26837016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26837017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26837018, '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 = 26837388 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': 3720019, 'mtr_portfolio_id': 26837388, 'created_at': datetime.datetime(2025, 9, 15, 6, 49, 29), 'result': '0.07662602284009336', 'result_long': None, 'result_double': None}] Qualite : 0.07662602284009336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26837388 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26837388_15-09-2025_06_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26837388 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_P26837388_15-09-2025_06_49_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26837397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26837398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26837399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26837400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26837401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26837402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26837403, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26837404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26837405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26837406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26837407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26837408, 'pht': 3726}}" where mtr_portfolio_id = 26837388 and dashboard_run_id = 2293906 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`=26837388 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15145340, 0.07662602284009336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26837388_15-09-2025_06_49_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26837397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26837398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26837399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26837400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26837401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26837402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26837403, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26837404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26837405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26837406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26837407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26837408, '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 = 26837812 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': 3720100, 'mtr_portfolio_id': 26837812, 'created_at': datetime.datetime(2025, 9, 15, 7, 2, 59), 'result': '0.04828739102031876', 'result_long': None, 'result_double': None}] Qualite : 0.04828739102031876 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26837812 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26837812_15-09-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26837812 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_P26837812_15-09-2025_07_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26837823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26837824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26837825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26837826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26837827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26837828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26837829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26837830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26837831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26837832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26837833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26837834, 'pht': 3726}}" where mtr_portfolio_id = 26837812 and dashboard_run_id = 2293906 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`=26837812 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15145341, 0.04828739102031876, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26837812_15-09-2025_07_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26837823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26837824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26837825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26837826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26837827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26837828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26837829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26837830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26837831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26837832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26837833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26837834, '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 = 26838279 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': 3720197, 'mtr_portfolio_id': 26838279, 'created_at': datetime.datetime(2025, 9, 15, 7, 14, 29), 'result': '0.059749798220014055', 'result_long': None, 'result_double': None}] Qualite : 0.059749798220014055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26838279 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26838279_15-09-2025_07_14_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26838279 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_P26838279_15-09-2025_07_14_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26838291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26838292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26838293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26838294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26838295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26838296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26838297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26838298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26838299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26838300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26838301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26838302, 'pht': 3726}}" where mtr_portfolio_id = 26838279 and dashboard_run_id = 2293906 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`=26838279 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15145342, 0.059749798220014055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26838279_15-09-2025_07_14_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26838291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26838292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26838293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26838294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26838295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26838296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26838297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26838298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26838299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26838300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26838301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26838302, '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 (26835709,26835864,26836097,26836300,26836565,26836999,26837388,26837812,26838279) result : ((1383699153,), (1383699155,), (1383699166,), (1383699169,), (1383699172,), (1383699179,), (1383699181,), (1383699184,), (1383699186,), (1383699197,), (1383699199,), (1383699202,), (1383699205,), (1383699208,), (1383699215,), (1383699217,), (1383699218,), (1383699222,), (1383699226,), (1383699242,), (1383699244,), (1383699246,), (1383699427,), (1383699374,), (1383699425,), (1383699436,), (1383699438,), (1383699440,), (1383699441,), (1383699443,), (1383699452,), (1383699478,), (1383699480,), (1383699482,), (1383699483,), (1383699491,), (1383699493,), (1383699494,), (1383699495,), (1383699510,), (1383699511,), (1383699512,), (1383699513,), (1383699522,), (1383699524,), (1383699525,), (1383699527,), (1383699529,), (1383699531,), (1383699556,), (1383699558,), (1383699569,), (1383699571,), (1383699573,), (1383699574,), (1383699581,), (1383699619,), (1383699657,), (1383699658,), (1383699659,), (1383699668,), (1383699670,), (1383699683,), (1383699697,), (1383699699,), (1383699700,), (1383699701,), (1383699713,), (1383699717,), (1383699719,), (1383699721,), (1383699723,), (1383699726,), (1383699729,), (1383699731,), (1383699745,), (1383699771,), (1383699744,), (1383699761,), (1383699763,), (1383699765,), (1383699768,), (1383699781,), (1383699782,), (1383699783,), (1383699784,), (1383699787,), (1383699789,), (1383699792,), (1383699794,), (1383699795,), (1383699796,), (1383699823,), (1383699825,), (1383699840,), (1383699842,), (1383699844,), (1383699846,), (1383699848,), (1383699853,), (1383699855,), (1383699857,), (1383699859,), (1383699872,), (1383699873,), (1383699874,), (1383699875,), (1383699878,), (1383699880,), (1383699885,), (1383699887,), (1383699888,), (1383699891,), (1383699906,), (1383699907,), (1383699908,), (1383699909,), (1383699919,), (1383699920,), (1383699921,), (1383699923,), (1383699926,), (1383699929,), (1383699934,), (1383699936,), (1383699942,), (1383699943,), (1383699944,), (1383699945,), (1383699947,), (1383699975,), (1383699980,), (1383699986,), (1383699988,), (1383699999,), (1383699995,), (1383699997,), (1383699998,), (1383700018,), (1383700020,), (1383700021,), (1383700022,), (1383700025,), (1383700027,), (1383700034,), (1383700036,), (1383700037,), (1383700080,), (1383700082,), (1383700084,), (1383700085,), (1383700101,), (1383700102,), (1383700103,), (1383700104,), (1383700129,), (1383700130,), (1383700131,), (1383700132,), (1383700135,), (1383700138,), (1383700145,), (1383700146,), (1383700147,), (1383700150,), (1383700154,), (1383700157,), (1383700168,), (1383700177,), (1383700178,), (1383700183,), (1383700184,), (1383700185,), (1383700187,), (1383700205,), (1383700208,), (1383700210,), (1383700211,), (1383700214,), (1383700217,), (1383700230,), (1383700231,), (1383700232,), (1383700233,), (1383700248,), (1383700251,), (1383700253,), (1383700254,), (1383700269,), (1383700307,), (1383700308,), (1383700311,), (1383700314,), (1383700324,), (1383700325,), (1383700326,), (1383700329,), (1383700332,), (1383700355,), (1383700358,), (1383700360,), (1383700361,), (1383700373,), (1383700374,), (1383700375,), (1383700379,), (1383700383,), (1383700387,), (1383700392,), (1383700393,), (1383700408,), (1383700455,), (1383700400,), (1383700401,), (1383700404,), (1383700405,), (1383700421,), (1383700424,), (1383700429,), (1383700434,), (1383700437,), (1383700439,), (1383700451,), (1383700452,), (1383700453,), (1383700468,), (1383700470,), (1383700473,), (1383700486,), (1383700488,), (1383700489,), (1383700490,), (1383700524,), (1383700525,), (1383700526,), (1383700527,), (1383700529,), (1383700532,), (1383700546,), (1383700548,), (1383700549,), (1383700550,), (1383700581,), (1383700582,), (1383700583,), (1383700584,), (1383700587,), (1383700590,), (1383700601,), (1383700604,), (1383700605,), (1383700606,), (1383700609,), (1383700611,), (1383700631,), (1383700632,), (1383700647,), (1383700651,), (1383700652,), (1383700653,), (1383700656,), (1383700674,), (1383700675,), (1383700676,), (1383700677,), (1383700680,), (1383700693,), (1383700695,), (1383700697,), (1383700699,), (1383700702,), (1383700706,), (1383700713,), (1383700720,), (1383700726,), (1383700738,), (1383700746,), (1383700747,), (1383700749,), (1383700752,), (1383700769,), (1383700770,), (1383700771,), (1383700772,), (1383700775,), (1383700799,), (1383700800,), (1383700801,), (1383700802,), (1383700804,), (1383700807,), (1383700825,), (1383700818,), (1383700820,), (1383700822,), (1383700860,), (1383700862,), (1383700864,), (1383700883,), (1383700884,), (1383700885,), (1383700887,), (1383700892,), (1383700894,), (1383700910,), (1383700912,), (1383700914,), (1383700915,), (1383700918,), (1383700927,), (1383700929,), (1383700931,), (1383700933,), (1383700955,), (1383700964,), (1383700965,), (1383700967,), (1383700970,), (1383700981,), (1383700984,), (1383700989,), (1383700994,), (1383700999,), (1383701002,), (1383701005,), (1383701008,), (1383701024,), (1383701037,), (1383701039,), (1383701042,), (1383701046,), (1383701059,), (1383701061,), (1383701063,), (1383701065,), (1383701067,), (1383701103,), (1383701104,), (1383701105,), (1383701107,), (1383701125,), (1383701127,), (1383701129,), (1383701131,), (1383701135,), (1383701165,), (1383701167,), (1383701169,), (1383701171,), (1383701191,), (1383701193,), (1383701194,), (1383701196,), (1383701199,), (1383701202,), (1383701234,), (1383701236,), (1383701237,), (1383701239,), (1383701241,), (1383701246,), (1383701261,), (1383701263,), (1383701265,), (1383701305,), (1383701356,), (1383701299,), (1383701301,), (1383701303,), (1383701322,), (1383701323,), (1383701325,), (1383701329,), (1383701333,), (1383701337,), (1383701344,), (1383701351,), (1383701358,), (1383701359,), (1383701360,), (1383701363,), (1383701367,), (1383701380,), (1383701381,), (1383701382,), (1383701384,), (1383701409,), (1383701411,), (1383701412,), (1383701414,), (1383701417,), (1383701434,), (1383701436,), (1383701438,), (1383701440,), (1383701444,), (1383701469,), (1383701482,), (1383701490,), (1383701515,), (1383701518,), (1383701520,), (1383701522,), (1383701526,), (1383701529,), (1383701561,), (1383701570,), (1383701574,), (1383701576,), (1383701580,), (1383701593,), (1383701594,), (1383701595,), (1383701597,), (1383701602,), (1383701620,), (1383701621,), (1383701623,), (1383701646,), (1383701648,), (1383701655,), (1383701660,), (1383701664,), (1383701666,), (1383701682,), (1383701687,), (1383701689,), (1383701690,), (1383701693,), (1383701697,), (1383701701,), (1383701706,), (1383701726,), (1383701729,), (1383701732,), (1383701766,), (1383701757,), (1383701764,), (1383701790,), (1383701797,), (1383701827,), (1383701828,), (1383701909,), (1383701911,), (1383701917,), (1383701921,), (1383701968,), (1383701969,), (1383701970,), (1383701972,), (1383701976,), (1383701999,), (1383702001,), (1383702003,), (1383702005,), (1383702025,), (1383702026,), (1383702028,), (1383702032,), (1383702036,), (1383702040,), (1383702056,), (1383702060,), (1383702068,), (1383702100,), (1383702101,), (1383702104,), (1383702107,), (1383702196,), (1383702203,), (1383702206,), (1383702220,), (1383702226,), (1383702231,), (1383702276,), (1383702279,), (1383702280,), (1383702288,), (1383702294,), (1383702298,), (1383702358,), (1383702383,), (1383702408,), (1383702465,), (1383702468,), (1383702491,), (1383702504,), (1383702512,), (1383702584,), (1383702586,), (1383702588,), (1383702590,), (1383702593,), (1383702618,), (1383702619,), (1383702620,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'15092025': {'nb_upload': 60, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26838279]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1383702620, 1383702619, 1383702618, 1383702593, 1383702590, 1383702588, 1383702586, 1383702584, 1383702512, 1383702504, 1383702491, 1383702468, 1383702465] map_info['map_portfolio_photo'] : {26838279: [1383702620, 1383702619, 1383702618, 1383702593, 1383702590, 1383702588, 1383702586, 1383702584, 1383702512, 1383702504, 1383702491, 1383702468, 1383702465, 1383702408, 1383702383, 1383702358, 1383702298, 1383702294, 1383702288, 1383702280, 1383702279, 1383702276, 1383702231, 1383702226, 1383702220, 1383702206, 1383702203, 1383702196, 1383702107, 1383702104, 1383702101, 1383702100, 1383702068, 1383702060, 1383702056, 1383702040, 1383702036, 1383702032, 1383702028, 1383702026, 1383702025, 1383702005, 1383702003, 1383702001, 1383701999, 1383701976, 1383701972, 1383701970, 1383701969, 1383701968, 1383701921, 1383701917, 1383701911, 1383701909, 1383701828, 1383701827, 1383701797, 1383701790, 1383701764, 1383701757]} final : True mtd_id 4302 list_pids : [1383702620, 1383702619, 1383702618, 1383702593, 1383702590, 1383702588, 1383702586, 1383702584, 1383702512, 1383702504, 1383702491, 1383702468, 1383702465] Looping around the photos to save general results len do output : 1 /26838279Didn'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, '3720197') ('4302', '26838279', '1383702620', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702619', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702618', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702593', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702590', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702588', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702586', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702584', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702512', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702504', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702491', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702468', None, None, None, None, None, '3720197') ('4302', None, None, None, None, None, None, None, '3720197') ('4302', '26838279', '1383702465', None, None, None, None, None, '3720197') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '26838279', 'None', None, None, None, None, '3720197'), ('4302', '26838279', '1383702620', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702619', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702618', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702593', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702590', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702588', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702586', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702584', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702512', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702504', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702491', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702468', None, None, None, None, None, '3720197'), ('4302', '26838279', '1383702465', None, None, None, None, None, '3720197')] time used for this insertion : 0.018129825592041016 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8300490379333496 time spend to save output : 0.018369436264038086 total time spend for step 5 : 0.8484184741973877 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 (3720197) 2.44user 1.97system 0:10.34elapsed 42%CPU (0avgtext+0avgdata 161248maxresident)k 232inputs+14936outputs (8major+74918minor)pagefaults 0swaps