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 : 591990 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 (4197032) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4197032) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29259983 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4197032'] with mtr_portfolio_ids : ['29259983'] and first list_photo_ids : [] new path : /proc/591990/ Name: python3 Umask: 0002 State: R (running) Tgid: 591990 Ngid: 0 Pid: 591990 PPid: 591989 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 591990 NSpid: 591990 NSpgid: 590724 NSsid: 590724 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105280 kB VmRSS: 105280 kB RssAnon: 66296 kB RssFile: 38984 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 624 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: 44 nonvoluntary_ctxt_switches: 101 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '591990', 'Ngid': '0', 'Pid': '591990', 'PPid': '591989', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '591990', 'NSpid': '591990', 'NSpgid': '590724', 'NSsid': '590724', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105280 kB', 'VmRSS': '105280 kB', 'RssAnon': '66296 kB', 'RssFile': '38984 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '624 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': '44', 'nonvoluntary_ctxt_switches': '101'} ('datou_batch_current', '591990', '1113364', '0', '1113364', '872092', '105280', b'', 'marlene', '4197032') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29259983) 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 (4197032 ) ) 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 (29259983) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1398453405, 'portfolio_id': 29259983}, {'photo_id': 1398453374, 'portfolio_id': 29259983}, {'photo_id': 1398453344, 'portfolio_id': 29259983}, {'photo_id': 1398453307, 'portfolio_id': 29259983}, {'photo_id': 1398453187, 'portfolio_id': 29259983}, {'photo_id': 1398453149, 'portfolio_id': 29259983}, {'photo_id': 1398453112, 'portfolio_id': 29259983}, {'photo_id': 1398453075, 'portfolio_id': 29259983}, {'photo_id': 1398453043, 'portfolio_id': 29259983}, {'photo_id': 1398453012, 'portfolio_id': 29259983}, {'photo_id': 1398452765, 'portfolio_id': 29259983}, {'photo_id': 1398452763, 'portfolio_id': 29259983}, {'photo_id': 1398452759, 'portfolio_id': 29259983}, {'photo_id': 1398452756, 'portfolio_id': 29259983}, {'photo_id': 1398452753, 'portfolio_id': 29259983}, {'photo_id': 1398452751, 'portfolio_id': 29259983}, {'photo_id': 1398452736, 'portfolio_id': 29259983}, {'photo_id': 1398452733, 'portfolio_id': 29259983}, {'photo_id': 1398452721, 'portfolio_id': 29259983}, {'photo_id': 1398452716, 'portfolio_id': 29259983}, {'photo_id': 1398452712, 'portfolio_id': 29259983}, {'photo_id': 1398452704, 'portfolio_id': 29259983}, {'photo_id': 1398452663, 'portfolio_id': 29259983}, {'photo_id': 1398452661, 'portfolio_id': 29259983}, {'photo_id': 1398452659, 'portfolio_id': 29259983}, {'photo_id': 1398452657, 'portfolio_id': 29259983}, {'photo_id': 1398452588, 'portfolio_id': 29259983}, {'photo_id': 1398452566, 'portfolio_id': 29259983}, {'photo_id': 1398452524, 'portfolio_id': 29259983}, {'photo_id': 1398452468, 'portfolio_id': 29259983}, {'photo_id': 1398451989, 'portfolio_id': 29259983}, {'photo_id': 1398451955, 'portfolio_id': 29259983}, {'photo_id': 1398451940, 'portfolio_id': 29259983}, {'photo_id': 1398451935, 'portfolio_id': 29259983}, {'photo_id': 1398451928, 'portfolio_id': 29259983}, {'photo_id': 1398451910, 'portfolio_id': 29259983}, {'photo_id': 1398451906, 'portfolio_id': 29259983}, {'photo_id': 1398451904, 'portfolio_id': 29259983}, {'photo_id': 1398451902, 'portfolio_id': 29259983}, {'photo_id': 1398451900, 'portfolio_id': 29259983}, {'photo_id': 1398451804, 'portfolio_id': 29259983}, {'photo_id': 1398451801, 'portfolio_id': 29259983}, {'photo_id': 1398451774, 'portfolio_id': 29259983}, {'photo_id': 1398451735, 'portfolio_id': 29259983}, {'photo_id': 1398451693, 'portfolio_id': 29259983}, {'photo_id': 1398451483, 'portfolio_id': 29259983}, {'photo_id': 1398451477, 'portfolio_id': 29259983}, {'photo_id': 1398451476, 'portfolio_id': 29259983}, {'photo_id': 1398451474, 'portfolio_id': 29259983}, {'photo_id': 1398451462, 'portfolio_id': 29259983}, {'photo_id': 1398451459, 'portfolio_id': 29259983}, {'photo_id': 1398451456, 'portfolio_id': 29259983}, {'photo_id': 1398451455, 'portfolio_id': 29259983}, {'photo_id': 1398451454, 'portfolio_id': 29259983}, {'photo_id': 1398451450, 'portfolio_id': 29259983}, {'photo_id': 1398451448, 'portfolio_id': 29259983}, {'photo_id': 1398451446, 'portfolio_id': 29259983}, {'photo_id': 1398451440, 'portfolio_id': 29259983}, {'photo_id': 1398451438, 'portfolio_id': 29259983}, {'photo_id': 1398451435, 'portfolio_id': 29259983}, {'photo_id': 1398451432, 'portfolio_id': 29259983}, {'photo_id': 1398451430, 'portfolio_id': 29259983}, {'photo_id': 1398451429, 'portfolio_id': 29259983}, {'photo_id': 1398451417, 'portfolio_id': 29259983}, {'photo_id': 1398451414, 'portfolio_id': 29259983}, {'photo_id': 1398451411, 'portfolio_id': 29259983}, {'photo_id': 1398451410, 'portfolio_id': 29259983}, {'photo_id': 1398451409, 'portfolio_id': 29259983}, {'photo_id': 1398451408, 'portfolio_id': 29259983}, {'photo_id': 1398451382, 'portfolio_id': 29259983}, {'photo_id': 1398451379, 'portfolio_id': 29259983}, {'photo_id': 1398451373, 'portfolio_id': 29259983}, {'photo_id': 1398451364, 'portfolio_id': 29259983}] map_portfolio_id_photo_id: {29259983: [1398453405, 1398453374, 1398453344, 1398453307, 1398453187, 1398453149, 1398453112, 1398453075, 1398453043, 1398453012, 1398452765, 1398452763, 1398452759, 1398452756, 1398452753, 1398452751, 1398452736, 1398452733, 1398452721, 1398452716, 1398452712, 1398452704, 1398452663, 1398452661, 1398452659, 1398452657, 1398452588, 1398452566, 1398452524, 1398452468, 1398451989, 1398451955, 1398451940, 1398451935, 1398451928, 1398451910, 1398451906, 1398451904, 1398451902, 1398451900, 1398451804, 1398451801, 1398451774, 1398451735, 1398451693, 1398451483, 1398451477, 1398451476, 1398451474, 1398451462, 1398451459, 1398451456, 1398451455, 1398451454, 1398451450, 1398451448, 1398451446, 1398451440, 1398451438, 1398451435, 1398451432, 1398451430, 1398451429, 1398451417, 1398451414, 1398451411, 1398451410, 1398451409, 1398451408, 1398451382, 1398451379, 1398451373, 1398451364]} ##### 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.01924610137939453 #### 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 Dec 8 08:16:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29259983) 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 : 29259983 get user id for portfolio 29259983 get sub ptf for main ptf 29259983, type 3726 and hashtags ['Carton_gris', 'Carton_brun', 'autre_refus', 'kraft', 'papier', 'plastique', 'flou', 'cartonnette', 'Teint_Dans_La_Masse', 'metal', 'mal_croppe', 'environnement'] 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`=29259983 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','autre_refus','kraft','papier','plastique','flou','cartonnette','Teint_Dans_La_Masse','metal','mal_croppe','environnement')) 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`=29259983 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','autre_refus','kraft','papier','plastique','flou','cartonnette','Teint_Dans_La_Masse','metal','mal_croppe','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29259983, 'sub_port_id': 29260000, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907746, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 56)}, 'plastique': {'main_port_id': 29259983, 'sub_port_id': 29260001, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907747, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 56)}, 'cartonnette': {'main_port_id': 29259983, 'sub_port_id': 29260002, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907748, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 56)}, 'autre_refus': {'main_port_id': 29259983, 'sub_port_id': 29260003, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907749, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 29259983, 'sub_port_id': 29260004, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907750, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 56)}, 'metal': {'main_port_id': 29259983, 'sub_port_id': 29260005, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907751, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 56)}, 'Carton_gris': {'main_port_id': 29259983, 'sub_port_id': 29260006, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907752, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 56)}, 'kraft': {'main_port_id': 29259983, 'sub_port_id': 29260007, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907753, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 56)}, 'mal_croppe': {'main_port_id': 29259983, 'sub_port_id': 29260008, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907754, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 56)}, 'environnement': {'main_port_id': 29259983, 'sub_port_id': 29260009, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907755, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 56)}, 'papier': {'main_port_id': 29259983, 'sub_port_id': 29260010, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907756, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 56)}, 'Carton_brun': {'main_port_id': 29259983, 'sub_port_id': 29260011, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907757, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29260000 , 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=29259983 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 (29260000) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29259983) result : ((1398451364,), (1398451373,), (1398451379,), (1398451382,), (1398451408,), (1398451409,), (1398451410,), (1398451411,), (1398451414,), (1398451417,), (1398451429,), (1398451430,), (1398451432,), (1398451435,), (1398451438,), (1398451440,), (1398451446,), (1398451448,), (1398451450,), (1398451454,), (1398451455,), (1398451456,), (1398451459,), (1398451462,), (1398451474,), (1398451476,), (1398451477,), (1398451483,), (1398451693,), (1398451735,), (1398451774,), (1398451801,), (1398451804,), (1398451900,), (1398451902,), (1398451904,), (1398451906,), (1398451910,), (1398451928,), (1398451935,), (1398451940,), (1398451955,), (1398451989,), (1398452468,), (1398452524,), (1398452566,), (1398452588,), (1398452657,), (1398452659,), (1398452661,), (1398452663,), (1398452704,), (1398452712,), (1398452716,), (1398452721,), (1398452733,), (1398452736,), (1398452751,), (1398452753,), (1398452756,), (1398452759,), (1398452763,), (1398452765,), (1398453012,), (1398453043,), (1398453075,), (1398453112,), (1398453149,), (1398453187,), (1398453307,), (1398453344,), (1398453374,), (1398453405,)) 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 (1398451900) 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 29260001 , 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=29259983 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 (29260001) result : ((1398451916,), (1398451917,), (1398452655,), (1398452656,), (1398453169,), (1398453458,), (1398453459,), (1398453774,), (1398453911,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29259983) result : ((1398451364,), (1398451373,), (1398451379,), (1398451382,), (1398451408,), (1398451409,), (1398451410,), (1398451411,), (1398451414,), (1398451417,), (1398451429,), (1398451430,), (1398451432,), (1398451435,), (1398451438,), (1398451440,), (1398451446,), (1398451448,), (1398451450,), (1398451454,), (1398451455,), (1398451456,), (1398451459,), (1398451462,), (1398451474,), (1398451476,), (1398451477,), (1398451483,), (1398451693,), (1398451735,), (1398451774,), (1398451801,), (1398451804,), (1398451900,), (1398451902,), (1398451904,), (1398451906,), (1398451910,), (1398451928,), (1398451935,), (1398451940,), (1398451955,), (1398451989,), (1398452468,), (1398452524,), (1398452566,), (1398452588,), (1398452657,), (1398452659,), (1398452661,), (1398452663,), (1398452704,), (1398452712,), (1398452716,), (1398452721,), (1398452733,), (1398452736,), (1398452751,), (1398452753,), (1398452756,), (1398452759,), (1398452763,), (1398452765,), (1398453012,), (1398453043,), (1398453075,), (1398453112,), (1398453149,), (1398453187,), (1398453307,), (1398453344,), (1398453374,), (1398453405,)) 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 (1398451900) 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 29260002 , 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=29259983 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 (29260002) result : ((1398452653,), (1398452654,), (1398453192,), (1398453453,), (1398453454,), (1398453455,), (1398453456,), (1398453905,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29259983) result : ((1398451364,), (1398451373,), (1398451379,), (1398451382,), (1398451408,), (1398451409,), (1398451410,), (1398451411,), (1398451414,), (1398451417,), (1398451429,), (1398451430,), (1398451432,), (1398451435,), (1398451438,), (1398451440,), (1398451446,), (1398451448,), (1398451450,), (1398451454,), (1398451455,), (1398451456,), (1398451459,), (1398451462,), (1398451474,), (1398451476,), (1398451477,), (1398451483,), (1398451693,), (1398451735,), (1398451774,), (1398451801,), (1398451804,), (1398451900,), (1398451902,), (1398451904,), (1398451906,), (1398451910,), (1398451928,), (1398451935,), (1398451940,), (1398451955,), (1398451989,), (1398452468,), (1398452524,), (1398452566,), (1398452588,), (1398452657,), (1398452659,), (1398452661,), (1398452663,), (1398452704,), (1398452712,), (1398452716,), (1398452721,), (1398452733,), (1398452736,), (1398452751,), (1398452753,), (1398452756,), (1398452759,), (1398452763,), (1398452765,), (1398453012,), (1398453043,), (1398453075,), (1398453112,), (1398453149,), (1398453187,), (1398453307,), (1398453344,), (1398453374,), (1398453405,)) 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 (1398451900) 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 29260003 , 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=29259983 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 (29260003) result : ((1398452748,), (1398453410,), (1398453771,), (1398453899,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29259983) result : ((1398451364,), (1398451373,), (1398451379,), (1398451382,), (1398451408,), (1398451409,), (1398451410,), (1398451411,), (1398451414,), (1398451417,), (1398451429,), (1398451430,), (1398451432,), (1398451435,), (1398451438,), (1398451440,), (1398451446,), (1398451448,), (1398451450,), (1398451454,), (1398451455,), (1398451456,), (1398451459,), (1398451462,), (1398451474,), (1398451476,), (1398451477,), (1398451483,), (1398451693,), (1398451735,), (1398451774,), (1398451801,), (1398451804,), (1398451900,), (1398451902,), (1398451904,), (1398451906,), (1398451910,), (1398451928,), (1398451935,), (1398451940,), (1398451955,), (1398451989,), (1398452468,), (1398452524,), (1398452566,), (1398452588,), (1398452657,), (1398452659,), (1398452661,), (1398452663,), (1398452704,), (1398452712,), (1398452716,), (1398452721,), (1398452733,), (1398452736,), (1398452751,), (1398452753,), (1398452756,), (1398452759,), (1398452763,), (1398452765,), (1398453012,), (1398453043,), (1398453075,), (1398453112,), (1398453149,), (1398453187,), (1398453307,), (1398453344,), (1398453374,), (1398453405,)) 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 (1398451900) 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 29260004 , 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=29259983 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 (29260004) result : ((1398451479,), (1398451480,), (1398452747,), (1398453125,), (1398453400,), (1398453897,), (1398453898,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29259983) result : ((1398451364,), (1398451373,), (1398451379,), (1398451382,), (1398451408,), (1398451409,), (1398451410,), (1398451411,), (1398451414,), (1398451417,), (1398451429,), (1398451430,), (1398451432,), (1398451435,), (1398451438,), (1398451440,), (1398451446,), (1398451448,), (1398451450,), (1398451454,), (1398451455,), (1398451456,), (1398451459,), (1398451462,), (1398451474,), (1398451476,), (1398451477,), (1398451483,), (1398451693,), (1398451735,), (1398451774,), (1398451801,), (1398451804,), (1398451900,), (1398451902,), (1398451904,), (1398451906,), (1398451910,), (1398451928,), (1398451935,), (1398451940,), (1398451955,), (1398451989,), (1398452468,), (1398452524,), (1398452566,), (1398452588,), (1398452657,), (1398452659,), (1398452661,), (1398452663,), (1398452704,), (1398452712,), (1398452716,), (1398452721,), (1398452733,), (1398452736,), (1398452751,), (1398452753,), (1398452756,), (1398452759,), (1398452763,), (1398452765,), (1398453012,), (1398453043,), (1398453075,), (1398453112,), (1398453149,), (1398453187,), (1398453307,), (1398453344,), (1398453374,), (1398453405,)) 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 (1398451900) 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 29260005 , 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=29259983 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 (29260005) result : ((1398453907,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29259983) result : ((1398451364,), (1398451373,), (1398451379,), (1398451382,), (1398451408,), (1398451409,), (1398451410,), (1398451411,), (1398451414,), (1398451417,), (1398451429,), (1398451430,), (1398451432,), (1398451435,), (1398451438,), (1398451440,), (1398451446,), (1398451448,), (1398451450,), (1398451454,), (1398451455,), (1398451456,), (1398451459,), (1398451462,), (1398451474,), (1398451476,), (1398451477,), (1398451483,), (1398451693,), (1398451735,), (1398451774,), (1398451801,), (1398451804,), (1398451900,), (1398451902,), (1398451904,), (1398451906,), (1398451910,), (1398451928,), (1398451935,), (1398451940,), (1398451955,), (1398451989,), (1398452468,), (1398452524,), (1398452566,), (1398452588,), (1398452657,), (1398452659,), (1398452661,), (1398452663,), (1398452704,), (1398452712,), (1398452716,), (1398452721,), (1398452733,), (1398452736,), (1398452751,), (1398452753,), (1398452756,), (1398452759,), (1398452763,), (1398452765,), (1398453012,), (1398453043,), (1398453075,), (1398453112,), (1398453149,), (1398453187,), (1398453307,), (1398453344,), (1398453374,), (1398453405,)) 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 (1398451900) 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 29260006 , 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=29259983 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 (29260006) result : ((1398451481,), (1398451482,), (1398452650,), (1398452651,), (1398452652,), (1398453422,), (1398453424,), (1398453449,), (1398453450,), (1398453772,), (1398453773,), (1398453901,), (1398453903,), (1398453904,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29259983) result : ((1398451364,), (1398451373,), (1398451379,), (1398451382,), (1398451408,), (1398451409,), (1398451410,), (1398451411,), (1398451414,), (1398451417,), (1398451429,), (1398451430,), (1398451432,), (1398451435,), (1398451438,), (1398451440,), (1398451446,), (1398451448,), (1398451450,), (1398451454,), (1398451455,), (1398451456,), (1398451459,), (1398451462,), (1398451474,), (1398451476,), (1398451477,), (1398451483,), (1398451693,), (1398451735,), (1398451774,), (1398451801,), (1398451804,), (1398451900,), (1398451902,), (1398451904,), (1398451906,), (1398451910,), (1398451928,), (1398451935,), (1398451940,), (1398451955,), (1398451989,), (1398452468,), (1398452524,), (1398452566,), (1398452588,), (1398452657,), (1398452659,), (1398452661,), (1398452663,), (1398452704,), (1398452712,), (1398452716,), (1398452721,), (1398452733,), (1398452736,), (1398452751,), (1398452753,), (1398452756,), (1398452759,), (1398452763,), (1398452765,), (1398453012,), (1398453043,), (1398453075,), (1398453112,), (1398453149,), (1398453187,), (1398453307,), (1398453344,), (1398453374,), (1398453405,)) 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 (1398451900) 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 29260007 , 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=29259983 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 (29260007) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29259983) result : ((1398451364,), (1398451373,), (1398451379,), (1398451382,), (1398451408,), (1398451409,), (1398451410,), (1398451411,), (1398451414,), (1398451417,), (1398451429,), (1398451430,), (1398451432,), (1398451435,), (1398451438,), (1398451440,), (1398451446,), (1398451448,), (1398451450,), (1398451454,), (1398451455,), (1398451456,), (1398451459,), (1398451462,), (1398451474,), (1398451476,), (1398451477,), (1398451483,), (1398451693,), (1398451735,), (1398451774,), (1398451801,), (1398451804,), (1398451900,), (1398451902,), (1398451904,), (1398451906,), (1398451910,), (1398451928,), (1398451935,), (1398451940,), (1398451955,), (1398451989,), (1398452468,), (1398452524,), (1398452566,), (1398452588,), (1398452657,), (1398452659,), (1398452661,), (1398452663,), (1398452704,), (1398452712,), (1398452716,), (1398452721,), (1398452733,), (1398452736,), (1398452751,), (1398452753,), (1398452756,), (1398452759,), (1398452763,), (1398452765,), (1398453012,), (1398453043,), (1398453075,), (1398453112,), (1398453149,), (1398453187,), (1398453307,), (1398453344,), (1398453374,), (1398453405,)) 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 (1398451900) 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 29260008 , 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=29259983 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 (29260008) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29259983) result : ((1398451364,), (1398451373,), (1398451379,), (1398451382,), (1398451408,), (1398451409,), (1398451410,), (1398451411,), (1398451414,), (1398451417,), (1398451429,), (1398451430,), (1398451432,), (1398451435,), (1398451438,), (1398451440,), (1398451446,), (1398451448,), (1398451450,), (1398451454,), (1398451455,), (1398451456,), (1398451459,), (1398451462,), (1398451474,), (1398451476,), (1398451477,), (1398451483,), (1398451693,), (1398451735,), (1398451774,), (1398451801,), (1398451804,), (1398451900,), (1398451902,), (1398451904,), (1398451906,), (1398451910,), (1398451928,), (1398451935,), (1398451940,), (1398451955,), (1398451989,), (1398452468,), (1398452524,), (1398452566,), (1398452588,), (1398452657,), (1398452659,), (1398452661,), (1398452663,), (1398452704,), (1398452712,), (1398452716,), (1398452721,), (1398452733,), (1398452736,), (1398452751,), (1398452753,), (1398452756,), (1398452759,), (1398452763,), (1398452765,), (1398453012,), (1398453043,), (1398453075,), (1398453112,), (1398453149,), (1398453187,), (1398453307,), (1398453344,), (1398453374,), (1398453405,)) 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 (1398451900) 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 29260009 , 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=29259983 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 (29260009) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29259983) result : ((1398451364,), (1398451373,), (1398451379,), (1398451382,), (1398451408,), (1398451409,), (1398451410,), (1398451411,), (1398451414,), (1398451417,), (1398451429,), (1398451430,), (1398451432,), (1398451435,), (1398451438,), (1398451440,), (1398451446,), (1398451448,), (1398451450,), (1398451454,), (1398451455,), (1398451456,), (1398451459,), (1398451462,), (1398451474,), (1398451476,), (1398451477,), (1398451483,), (1398451693,), (1398451735,), (1398451774,), (1398451801,), (1398451804,), (1398451900,), (1398451902,), (1398451904,), (1398451906,), (1398451910,), (1398451928,), (1398451935,), (1398451940,), (1398451955,), (1398451989,), (1398452468,), (1398452524,), (1398452566,), (1398452588,), (1398452657,), (1398452659,), (1398452661,), (1398452663,), (1398452704,), (1398452712,), (1398452716,), (1398452721,), (1398452733,), (1398452736,), (1398452751,), (1398452753,), (1398452756,), (1398452759,), (1398452763,), (1398452765,), (1398453012,), (1398453043,), (1398453075,), (1398453112,), (1398453149,), (1398453187,), (1398453307,), (1398453344,), (1398453374,), (1398453405,)) 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 (1398451900) 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 29260010 , 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=29259983 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 (29260010) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29259983) result : ((1398451364,), (1398451373,), (1398451379,), (1398451382,), (1398451408,), (1398451409,), (1398451410,), (1398451411,), (1398451414,), (1398451417,), (1398451429,), (1398451430,), (1398451432,), (1398451435,), (1398451438,), (1398451440,), (1398451446,), (1398451448,), (1398451450,), (1398451454,), (1398451455,), (1398451456,), (1398451459,), (1398451462,), (1398451474,), (1398451476,), (1398451477,), (1398451483,), (1398451693,), (1398451735,), (1398451774,), (1398451801,), (1398451804,), (1398451900,), (1398451902,), (1398451904,), (1398451906,), (1398451910,), (1398451928,), (1398451935,), (1398451940,), (1398451955,), (1398451989,), (1398452468,), (1398452524,), (1398452566,), (1398452588,), (1398452657,), (1398452659,), (1398452661,), (1398452663,), (1398452704,), (1398452712,), (1398452716,), (1398452721,), (1398452733,), (1398452736,), (1398452751,), (1398452753,), (1398452756,), (1398452759,), (1398452763,), (1398452765,), (1398453012,), (1398453043,), (1398453075,), (1398453112,), (1398453149,), (1398453187,), (1398453307,), (1398453344,), (1398453374,), (1398453405,)) 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 (1398451900) 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 29260011 , 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=29259983 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 (29260011) result : ((1398451913,), (1398451914,), (1398453156,), (1398453204,), (1398453206,), (1398453457,), (1398453906,), (1398453910,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29259983) result : ((1398451364,), (1398451373,), (1398451379,), (1398451382,), (1398451408,), (1398451409,), (1398451410,), (1398451411,), (1398451414,), (1398451417,), (1398451429,), (1398451430,), (1398451432,), (1398451435,), (1398451438,), (1398451440,), (1398451446,), (1398451448,), (1398451450,), (1398451454,), (1398451455,), (1398451456,), (1398451459,), (1398451462,), (1398451474,), (1398451476,), (1398451477,), (1398451483,), (1398451693,), (1398451735,), (1398451774,), (1398451801,), (1398451804,), (1398451900,), (1398451902,), (1398451904,), (1398451906,), (1398451910,), (1398451928,), (1398451935,), (1398451940,), (1398451955,), (1398451989,), (1398452468,), (1398452524,), (1398452566,), (1398452588,), (1398452657,), (1398452659,), (1398452661,), (1398452663,), (1398452704,), (1398452712,), (1398452716,), (1398452721,), (1398452733,), (1398452736,), (1398452751,), (1398452753,), (1398452756,), (1398452759,), (1398452763,), (1398452765,), (1398453012,), (1398453043,), (1398453075,), (1398453112,), (1398453149,), (1398453187,), (1398453307,), (1398453344,), (1398453374,), (1398453405,)) 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 (1398451900) 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`=29259983 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','autre_refus','kraft','papier','plastique','flou','cartonnette','Teint_Dans_La_Masse','metal','mal_croppe','environnement')) 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`=29259983 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','autre_refus','kraft','papier','plastique','flou','cartonnette','Teint_Dans_La_Masse','metal','mal_croppe','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29259983, 'sub_port_id': 29260012, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907758, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 58)}, 'plastique': {'main_port_id': 29259983, 'sub_port_id': 29260013, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907759, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 58)}, 'cartonnette': {'main_port_id': 29259983, 'sub_port_id': 29260014, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907760, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 58)}, 'autre_refus': {'main_port_id': 29259983, 'sub_port_id': 29260015, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907761, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 29259983, 'sub_port_id': 29260016, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907762, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 58)}, 'metal': {'main_port_id': 29259983, 'sub_port_id': 29260017, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907763, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 58)}, 'Carton_gris': {'main_port_id': 29259983, 'sub_port_id': 29260018, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907764, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 58)}, 'kraft': {'main_port_id': 29259983, 'sub_port_id': 29260019, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907765, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 58)}, 'mal_croppe': {'main_port_id': 29259983, 'sub_port_id': 29260020, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907766, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 58)}, 'environnement': {'main_port_id': 29259983, 'sub_port_id': 29260021, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907767, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 58)}, 'papier': {'main_port_id': 29259983, 'sub_port_id': 29260022, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907768, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 58)}, 'Carton_brun': {'main_port_id': 29259983, 'sub_port_id': 29260023, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19907769, 'last_updated_at': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 8, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 8, 5, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29260012,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29260000 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29260013,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29260001 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29260014,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29260002 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29260015,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29260003 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29260016,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29260004 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29260017,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29260005 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29260018,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29260006 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29260019,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29260007 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29260020,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29260008 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29260021,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29260009 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29260022,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29260010 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29260023,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29260011 lien utilise dans velours : https://marlene.fotonower.com/velours/29260012,29260013,29260014,29260015,29260016,29260017,29260018,29260019,29260020,29260021,29260022,29260023?tags=flou,plastique,cartonnette,autre_refus,Teint_Dans_La_Masse,metal,Carton_gris,kraft,mal_croppe,environnement,papier,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29259983]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1398453405, 1398453374, 1398453344, 1398453307, 1398453187, 1398453149, 1398453112, 1398453075, 1398453043, 1398453012, 1398452765, 1398452763, 1398452759, 1398452756, 1398452753, 1398452751, 1398452736, 1398452733, 1398452721, 1398452716, 1398452712, 1398452704] map_info['map_portfolio_photo'] : {29259983: [1398453405, 1398453374, 1398453344, 1398453307, 1398453187, 1398453149, 1398453112, 1398453075, 1398453043, 1398453012, 1398452765, 1398452763, 1398452759, 1398452756, 1398452753, 1398452751, 1398452736, 1398452733, 1398452721, 1398452716, 1398452712, 1398452704, 1398452663, 1398452661, 1398452659, 1398452657, 1398452588, 1398452566, 1398452524, 1398452468, 1398451989, 1398451955, 1398451940, 1398451935, 1398451928, 1398451910, 1398451906, 1398451904, 1398451902, 1398451900, 1398451804, 1398451801, 1398451774, 1398451735, 1398451693, 1398451483, 1398451477, 1398451476, 1398451474, 1398451462, 1398451459, 1398451456, 1398451455, 1398451454, 1398451450, 1398451448, 1398451446, 1398451440, 1398451438, 1398451435, 1398451432, 1398451430, 1398451429, 1398451417, 1398451414, 1398451411, 1398451410, 1398451409, 1398451408, 1398451382, 1398451379, 1398451373, 1398451364]} final : False mtd_id 4302 list_pids : [1398453405, 1398453374, 1398453344, 1398453307, 1398453187, 1398453149, 1398453112, 1398453075, 1398453043, 1398453012, 1398452765, 1398452763, 1398452759, 1398452756, 1398452753, 1398452751, 1398452736, 1398452733, 1398452721, 1398452716, 1398452712, 1398452704] Looping around the photos to save general results len do output : 1 /29259983. 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, '4197032') ('4302', '29259983', '1398453405', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453374', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453344', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453307', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453187', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453149', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453112', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453075', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453043', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453012', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452765', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452763', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452759', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452756', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452753', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452751', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452736', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452733', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452721', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452716', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452712', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452704', None, None, None, None, None, '4197032') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 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, '29259983', "{'flou': 29260000, 'plastique': 29260001, 'cartonnette': 29260002, 'autre_refus': 29260003, 'Teint_Dans_La_Masse': 29260004, 'metal': 29260005, 'Carton_gris': 29260006, 'kraft': 29260007, 'mal_croppe': 29260008, 'environnement': 29260009, 'papier': 29260010, 'Carton_brun': 29260011}", None, None, None, None, '4197032'), ('4302', '29259983', '1398453405', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453374', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453344', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453307', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453187', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453149', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453112', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453075', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453043', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453012', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452765', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452763', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452759', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452756', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452753', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452751', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452736', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452733', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452721', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452716', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452712', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452704', None, None, None, None, None, '4197032')] time used for this insertion : 0.02163529396057129 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6013705730438232 time spend to save output : 0.022002220153808594 total time spend for step 1 : 0.6233727931976318 step2:final Mon Dec 8 08:16:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29259983) 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 29259983 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1398451382,1398451379,1398451373,1398451364,1398451450,1398451417,1398451414,1398451448,1398451411,1398451446,1398451410,1398451440,1398451409,1398451438,1398451435,1398451408,1398451432,1398451430,1398451429,1398451462,1398451459,1398451456,1398451455,1398451454,1398451483,1398451477,1398451476,1398451474,1398451804,1398451801,1398451774,1398451735,1398451693,1398451910,1398451906,1398451904,1398451902,1398451900,1398451989,1398451955,1398451940,1398451935,1398451928,1398452588,1398452566,1398452524,1398452468,1398452663,1398452661,1398452659,1398452657,1398452736,1398452733,1398452721,1398452716,1398452712,1398452704,1398453405,1398452765,1398452763,1398453374,1398452759,1398453344,1398452756,1398453307,1398452753,1398453187,1398453149,1398452751,1398453112,1398453075,1398453043,1398453012); 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([29259983]) Inside saveOutput : final : False verbose : True original output for save of step final : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} new output for save of step final : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} [1398453405, 1398453374, 1398453344, 1398453307, 1398453187, 1398453149, 1398453112, 1398453075, 1398453043, 1398453012, 1398452765, 1398452763, 1398452759, 1398452756, 1398452753, 1398452751, 1398452736, 1398452733, 1398452721, 1398452716, 1398452712, 1398452704] map_info['map_portfolio_photo'] : {29259983: [1398453405, 1398453374, 1398453344, 1398453307, 1398453187, 1398453149, 1398453112, 1398453075, 1398453043, 1398453012, 1398452765, 1398452763, 1398452759, 1398452756, 1398452753, 1398452751, 1398452736, 1398452733, 1398452721, 1398452716, 1398452712, 1398452704, 1398452663, 1398452661, 1398452659, 1398452657, 1398452588, 1398452566, 1398452524, 1398452468, 1398451989, 1398451955, 1398451940, 1398451935, 1398451928, 1398451910, 1398451906, 1398451904, 1398451902, 1398451900, 1398451804, 1398451801, 1398451774, 1398451735, 1398451693, 1398451483, 1398451477, 1398451476, 1398451474, 1398451462, 1398451459, 1398451456, 1398451455, 1398451454, 1398451450, 1398451448, 1398451446, 1398451440, 1398451438, 1398451435, 1398451432, 1398451430, 1398451429, 1398451417, 1398451414, 1398451411, 1398451410, 1398451409, 1398451408, 1398451382, 1398451379, 1398451373, 1398451364]} final : False mtd_id 4302 list_pids : [1398453405, 1398453374, 1398453344, 1398453307, 1398453187, 1398453149, 1398453112, 1398453075, 1398453043, 1398453012, 1398452765, 1398452763, 1398452759, 1398452756, 1398452753, 1398452751, 1398452736, 1398452733, 1398452721, 1398452716, 1398452712, 1398452704] Looping around the photos to save general results len do output : 22 /1398453405.Didn't retrieve data . /1398453374.Didn't retrieve data . /1398453344.Didn't retrieve data . /1398453307.Didn't retrieve data . /1398453187.Didn't retrieve data . /1398453149.Didn't retrieve data . /1398453112.Didn't retrieve data . /1398453075.Didn't retrieve data . /1398453043.Didn't retrieve data . /1398453012.Didn't retrieve data . /1398452765.Didn't retrieve data . /1398452763.Didn't retrieve data . /1398452759.Didn't retrieve data . /1398452756.Didn't retrieve data . /1398452753.Didn't retrieve data . /1398452751.Didn't retrieve data . /1398452736.Didn't retrieve data . /1398452733.Didn't retrieve data . /1398452721.Didn't retrieve data . /1398452716.Didn't retrieve data . /1398452712.Didn't retrieve data . /1398452704.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, '4197032') ('4302', '29259983', '1398453405', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453374', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453344', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453307', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453187', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453149', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453112', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453075', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453043', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453012', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452765', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452763', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452759', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452756', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452753', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452751', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452736', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452733', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452721', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452716', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452712', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452704', None, None, None, None, None, '4197032') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 66 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', '29259983', '1398453405', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398453374', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398453344', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398453307', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398453187', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398453149', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398453112', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398453075', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398453043', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398453012', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398452765', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398452763', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398452759', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398452756', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398452753', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398452751', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398452736', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398452733', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398452721', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398452716', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398452712', '0.05240967376206254', None, None, None, None, '4197032'), ('4302', '29259983', '1398452704', '0.05240967376206254', None, None, None, None, '4197032')] time used for this insertion : 0.019028663635253906 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08804202079772949 time spend to save output : 0.020049095153808594 total time spend for step 2 : 0.10809111595153809 step3:velours_tree Mon Dec 8 08:16:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29259983: [{'flou': 29260000, 'plastique': 29260001, 'cartonnette': 29260002, 'autre_refus': 29260003, 'Teint_Dans_La_Masse': 29260004, 'metal': 29260005, 'Carton_gris': 29260006, 'kraft': 29260007, 'mal_croppe': 29260008, 'environnement': 29260009, 'papier': 29260010, 'Carton_brun': 29260011}]} input_args_next_step : {29259983: ()} output_args : {29259983: [{'flou': 29260000, 'plastique': 29260001, 'cartonnette': 29260002, 'autre_refus': 29260003, 'Teint_Dans_La_Masse': 29260004, 'metal': 29260005, 'Carton_gris': 29260006, 'kraft': 29260007, 'mal_croppe': 29260008, 'environnement': 29260009, 'papier': 29260010, 'Carton_brun': 29260011}]} args : 29259983 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': 29260000, 'plastique': 29260001, 'cartonnette': 29260002, 'autre_refus': 29260003, 'Teint_Dans_La_Masse': 29260004, 'metal': 29260005, 'Carton_gris': 29260006, 'kraft': 29260007, 'mal_croppe': 29260008, 'environnement': 29260009, 'papier': 29260010, 'Carton_brun': 29260011},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29259983) 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([29259983]) 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.2555224895477295 time spend to save output : 4.57763671875e-05 total time spend for step 3 : 0.255568265914917 step4:send_mail_cod Mon Dec 8 08:16:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} input_args_next_step : {1398453405: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398453405 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398453374 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398453344 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398453307 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398453187 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398453149 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398453112 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398453075 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398453043 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398453012 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398452765 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398452763 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398452759 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398452756 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398452753 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398452751 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398452736 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398452733 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398452721 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398452716 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398452712 depend.output_id : 0 input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ()} output_args : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',)} args : 1398452704 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 : {29259983: [{'flou': 29260000, 'plastique': 29260001, 'cartonnette': 29260002, 'autre_refus': 29260003, 'Teint_Dans_La_Masse': 29260004, 'metal': 29260005, 'Carton_gris': 29260006, 'kraft': 29260007, 'mal_croppe': 29260008, 'environnement': 29260009, 'papier': 29260010, 'Carton_brun': 29260011}]} input_args_next_step : {1398453405: ('0.05240967376206254',), 1398453374: ('0.05240967376206254',), 1398453344: ('0.05240967376206254',), 1398453307: ('0.05240967376206254',), 1398453187: ('0.05240967376206254',), 1398453149: ('0.05240967376206254',), 1398453112: ('0.05240967376206254',), 1398453075: ('0.05240967376206254',), 1398453043: ('0.05240967376206254',), 1398453012: ('0.05240967376206254',), 1398452765: ('0.05240967376206254',), 1398452763: ('0.05240967376206254',), 1398452759: ('0.05240967376206254',), 1398452756: ('0.05240967376206254',), 1398452753: ('0.05240967376206254',), 1398452751: ('0.05240967376206254',), 1398452736: ('0.05240967376206254',), 1398452733: ('0.05240967376206254',), 1398452721: ('0.05240967376206254',), 1398452716: ('0.05240967376206254',), 1398452712: ('0.05240967376206254',), 1398452704: ('0.05240967376206254',), 29259983: ()} output_args : {29259983: [{'flou': 29260000, 'plastique': 29260001, 'cartonnette': 29260002, 'autre_refus': 29260003, 'Teint_Dans_La_Masse': 29260004, 'metal': 29260005, 'Carton_gris': 29260006, 'kraft': 29260007, 'mal_croppe': 29260008, 'environnement': 29260009, 'papier': 29260010, 'Carton_brun': 29260011}]} args : 29259983 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 :23, first value : ('0.05240967376206254',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29259983) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1398453405,1398453374,1398453344,1398453307,1398453187,1398453149,1398453112,1398453075,1398453043,1398453012,1398452765,1398452763,1398452759,1398452756,1398452753,1398452751,1398452736,1398452733,1398452721,1398452716,1398452712,1398452704) Found this number of photos: 22 ##### Call download_photos : nb_thread : 5 begin to download photo : 1398452704 begin to download photo : 1398452736 begin to download photo : 1398452763 begin to download photo : 1398453112 begin to download photo : 1398453374 download finish for photo 1398452736 begin to download photo : 1398452751 download finish for photo 1398452763 begin to download photo : 1398452765 download finish for photo 1398453374 begin to download photo : 1398453405 download finish for photo 1398452704 begin to download photo : 1398452712 download finish for photo 1398453112 begin to download photo : 1398453149 download finish for photo 1398452751 begin to download photo : 1398452753 download finish for photo 1398453405 download finish for photo 1398453149 begin to download photo : 1398453187 download finish for photo 1398452765 begin to download photo : 1398453012 download finish for photo 1398452712 begin to download photo : 1398452716 download finish for photo 1398452753 begin to download photo : 1398452756 download finish for photo 1398453187 begin to download photo : 1398453307 download finish for photo 1398452716 begin to download photo : 1398452721 download finish for photo 1398453012 begin to download photo : 1398453043 download finish for photo 1398452756 begin to download photo : 1398452759 download finish for photo 1398452721 begin to download photo : 1398452733 download finish for photo 1398453307 begin to download photo : 1398453344 download finish for photo 1398453043 begin to download photo : 1398453075 download finish for photo 1398452759 download finish for photo 1398452733 download finish for photo 1398453344 download finish for photo 1398453075 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette292600001765178219/ length of list_filenames : 22 ; length of list_pids : 22 ; length of list_args : 22 results_Auto_P29259983_08-12-2025_08_16_59.pdf 29260000 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29260000 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292600001765178219 29260001 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29260001 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398451916: '1765177465_2438552_1398451379_003d98df952fe49332fcf70a85f95d2e_rle_crop_4063041430_0.png', 1398451917: '1765177465_2438552_1398451373_00cc159418cdba256fea343e222efc6d_rle_crop_4063041440_0.png', 1398452655: '1765177766_2450310_1398451483_b8de89262d27a3c072db673077e528da_rle_crop_4063047181_0.png', 1398452656: '1765177766_2450310_1398451454_5e59fc0b1a0d1f89cd26b3772328780f_rle_crop_4063047284_0.png', 1398453169: '1765177945_2455740_1398452588_fca708d86b75e00991e773c5b1eb803f_rle_crop_4063054064_0.png', 1398453458: '1765177885_2455076_1398451774_cfc1654a560df1e100e2918b392a90e8_rle_crop_4063053891_0.png', 1398453459: '1765177885_2455076_1398451774_cfc1654a560df1e100e2918b392a90e8_rle_crop_4063053887_0.png', 1398453774: '1765178106_2464389_1398452524_2c76c29b6fd5d669e526075b42129808_rle_crop_4063061132_0.png', 1398453911: '1765177865_2454725_1398451940_ff6b826d6c06b20e5a2c6691395b9aad_rle_crop_4063055393_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/f3114511b84da86201bdc14419b1be45_70459839.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/472919d5f29e5c93f69a170c0da27bf4_95230448.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/0eed38f140ccbbba96a86fffcb7352f3_66080957.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/90ca1dca073a5254d7d48deffc2649c4_91400387.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/d240d07a5ee0c8bb9d7420c2a4702e34_42863786.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/6f2c8e1f26cb99e4d06d34534d5a1edf_1036595.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/6c7b24455afafbe630a54fa85d1715cf_20991489.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/d94092a87d42325b5f5f311cbac0e309_95985300.png change filename to text .imagette292600011765178219/ imagette292600011765178219/1765177766_2450310_1398451483_b8de89262d27a3c072db673077e528da_rle_crop_4063047181_0.png.png imagette292600011765178219/1765177465_2438552_1398451373_00cc159418cdba256fea343e222efc6d_rle_crop_4063041440_0.png.png imagette292600011765178219/1765177465_2438552_1398451379_003d98df952fe49332fcf70a85f95d2e_rle_crop_4063041430_0.png.png imagette292600011765178219/1765177865_2454725_1398451940_ff6b826d6c06b20e5a2c6691395b9aad_rle_crop_4063055393_0.png.png imagette292600011765178219/1765177885_2455076_1398451774_cfc1654a560df1e100e2918b392a90e8_rle_crop_4063053887_0.png.png imagette292600011765178219/1765177885_2455076_1398451774_cfc1654a560df1e100e2918b392a90e8_rle_crop_4063053891_0.png.png imagette292600011765178219/1765178106_2464389_1398452524_2c76c29b6fd5d669e526075b42129808_rle_crop_4063061132_0.png.png imagette292600011765178219/1765177766_2450310_1398451454_5e59fc0b1a0d1f89cd26b3772328780f_rle_crop_4063047284_0.png.png imagette292600011765178219/1765177945_2455740_1398452588_fca708d86b75e00991e773c5b1eb803f_rle_crop_4063054064_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/b62cb568cb6262dde95f27c6ed20325f_21062946.png imagette292600011765178219 29260002 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29260002 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398452653: '1765177766_2450310_1398451483_b8de89262d27a3c072db673077e528da_rle_crop_4063047179_0.png', 1398452654: '1765177766_2450310_1398451454_5e59fc0b1a0d1f89cd26b3772328780f_rle_crop_4063047285_0.png', 1398453192: '1765177986_2457967_1398452659_d387906d6fbde534395d95e99d33845b_rle_crop_4063055538_0.png', 1398453453: '1765177885_2455076_1398451910_9a577ef45bdd02164dabbe432570f0d3_rle_crop_4063053862_0.png', 1398453454: '1765177885_2455076_1398451774_cfc1654a560df1e100e2918b392a90e8_rle_crop_4063053878_0.png', 1398453455: '1765177885_2455076_1398451774_cfc1654a560df1e100e2918b392a90e8_rle_crop_4063053881_0.png', 1398453456: '1765177885_2455076_1398451774_cfc1654a560df1e100e2918b392a90e8_rle_crop_4063053883_0.png', 1398453905: '1765178126_2464875_1398451902_d1434dc51f7ed0c69c93c7ef914fe591_rle_crop_4063061398_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/c4a4340cddcc3259a0023b12863f2c08_26506668.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/c88c44b804dcde4938a0e6831ba5e90b_57897956.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/c6b6da32edc1392a41b78726e19ce52b_63992150.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/edc56f79494e490866c96e3809c85fd0_77605537.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/ddb68d08370bf77f5e6977b49fa15040_85656931.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/e0c1a24fd6b0ab943bc4bc24e28702a9_30631697.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/641af53b28b5855134fc7ac400ff94d3_53828739.png change filename to text .imagette292600021765178220/ imagette292600021765178220/1765177885_2455076_1398451910_9a577ef45bdd02164dabbe432570f0d3_rle_crop_4063053862_0.png.png imagette292600021765178220/1765177986_2457967_1398452659_d387906d6fbde534395d95e99d33845b_rle_crop_4063055538_0.png.png imagette292600021765178220/1765177885_2455076_1398451774_cfc1654a560df1e100e2918b392a90e8_rle_crop_4063053878_0.png.png imagette292600021765178220/1765177766_2450310_1398451454_5e59fc0b1a0d1f89cd26b3772328780f_rle_crop_4063047285_0.png.png imagette292600021765178220/1765178126_2464875_1398451902_d1434dc51f7ed0c69c93c7ef914fe591_rle_crop_4063061398_0.png.png imagette292600021765178220/1765177766_2450310_1398451483_b8de89262d27a3c072db673077e528da_rle_crop_4063047179_0.png.png imagette292600021765178220/1765177885_2455076_1398451774_cfc1654a560df1e100e2918b392a90e8_rle_crop_4063053881_0.png.png imagette292600021765178220/1765177885_2455076_1398451774_cfc1654a560df1e100e2918b392a90e8_rle_crop_4063053883_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/97055ea3cdb7489fbca4dd04c9389531_14141471.png imagette292600021765178220 29260003 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29260003 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398452748: '1765177885_2455076_1398451910_9a577ef45bdd02164dabbe432570f0d3_rle_crop_4063053858_0.png', 1398453410: '1765177865_2454725_1398451928_30c22b8123f9892087d2d12f412a670b_rle_crop_4063055419_0.png', 1398453771: '1765178106_2464389_1398452663_be1a28caf9b842d34be35d577fef7c2b_rle_crop_4063061107_0.png', 1398453899: '1765178126_2464875_1398451904_dd53e1bcf0e665cda50a744b3c4441cb_rle_crop_4063061379_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/f3e25c098892fc7ff9782c4f7806394f_6117382.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/84a7ddc3f9f988e848adfd17638c3aa3_99479946.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/fb570f8dfe2bcdee0c3e2ed3936105af_60951017.png change filename to text .imagette292600031765178221/ imagette292600031765178221/1765177865_2454725_1398451928_30c22b8123f9892087d2d12f412a670b_rle_crop_4063055419_0.png.png imagette292600031765178221/1765178126_2464875_1398451904_dd53e1bcf0e665cda50a744b3c4441cb_rle_crop_4063061379_0.png.png imagette292600031765178221/1765177885_2455076_1398451910_9a577ef45bdd02164dabbe432570f0d3_rle_crop_4063053858_0.png.png imagette292600031765178221/1765178106_2464389_1398452663_be1a28caf9b842d34be35d577fef7c2b_rle_crop_4063061107_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/de7087af0d41aef8aadc59f90e1509b4_99348261.png imagette292600031765178221 29260005 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29260005 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398453907: '1765178126_2464875_1398451904_dd53e1bcf0e665cda50a744b3c4441cb_rle_crop_4063061383_0.png'} change filename to text .imagette292600051765178221/ imagette292600051765178221/1765178126_2464875_1398451904_dd53e1bcf0e665cda50a744b3c4441cb_rle_crop_4063061383_0.png.png imagette292600071765178221/ imagette292600081765178221/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/571d6a6994e2c79fdc8a1dce6170a635_50328792.png imagette292600051765178221 29260007 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29260007 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292600071765178221 29260008 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29260008 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292600081765178221 29260004 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29260004 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398451479: '1765177465_2438552_1398451373_00cc159418cdba256fea343e222efc6d_rle_crop_4063041445_0.png', 1398451480: '1765177465_2438552_1398451364_27d9259634a37e4e92f61cc7baca4837_rle_crop_4063041455_0.png', 1398452747: '1765177885_2455076_1398451693_83947fa934ba8f1f2269ba8746aae2e3_rle_crop_4063053918_0.png', 1398453125: '1765177945_2455740_1398451955_e37535c20a96fade47cd16e399d0072b_rle_crop_4063054125_0.png', 1398453400: '1765177865_2454725_1398451955_e37535c20a96fade47cd16e399d0072b_rle_crop_4063054125_0.png', 1398453897: '1765178126_2464875_1398451902_d1434dc51f7ed0c69c93c7ef914fe591_rle_crop_4063061401_0.png', 1398453898: '1765178126_2464875_1398451900_5ba463fa49de22f414d479ba3334d877_rle_crop_4063061414_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/e53c7cc814a9d9d72c6063e1089896df_10176529.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/eab72e58b2ef6b756149bc9911cea660_82415224.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/882a340036be489c03174ba9fcf18c76_12823166.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/f9f152183d03ef0ae046e2af38493d60_8243024.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/f9f152183d03ef0ae046e2af38493d60_28709293.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/23bff5ef86426368aa8e47cfc699e563_7299283.png change filename to text .imagette292600041765178221/ imagette292600041765178221/1765177465_2438552_1398451364_27d9259634a37e4e92f61cc7baca4837_rle_crop_4063041455_0.png.png imagette292600041765178221/1765177465_2438552_1398451373_00cc159418cdba256fea343e222efc6d_rle_crop_4063041445_0.png.png imagette292600041765178221/1765177865_2454725_1398451955_e37535c20a96fade47cd16e399d0072b_rle_crop_4063054125_0.png.png imagette292600041765178221/1765178126_2464875_1398451902_d1434dc51f7ed0c69c93c7ef914fe591_rle_crop_4063061401_0.png.png imagette292600041765178221/1765177885_2455076_1398451693_83947fa934ba8f1f2269ba8746aae2e3_rle_crop_4063053918_0.png.png imagette292600041765178221/1765178126_2464875_1398451900_5ba463fa49de22f414d479ba3334d877_rle_crop_4063061414_0.png.png imagette292600041765178221/1765177945_2455740_1398451955_e37535c20a96fade47cd16e399d0072b_rle_crop_4063054125_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/f8c4a48c19409535778a4d6927c02b79_21421410.png imagette292600041765178221 29260006 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29260006 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398451481: '1765177465_2438552_1398451373_00cc159418cdba256fea343e222efc6d_rle_crop_4063041442_0.png', 1398451482: '1765177465_2438552_1398451364_27d9259634a37e4e92f61cc7baca4837_rle_crop_4063041452_0.png', 1398452650: '1765177766_2450310_1398451483_b8de89262d27a3c072db673077e528da_rle_crop_4063047172_0.png', 1398452651: '1765177766_2450310_1398451459_ea253f15bffc27bd9689c65c76b10dfa_rle_crop_4063047199_0.png', 1398452652: '1765177766_2450310_1398451459_ea253f15bffc27bd9689c65c76b10dfa_rle_crop_4063047200_0.png', 1398453422: '1765177865_2454725_1398451940_ff6b826d6c06b20e5a2c6691395b9aad_rle_crop_4063055391_0.png', 1398453424: '1765177865_2454725_1398451940_ff6b826d6c06b20e5a2c6691395b9aad_rle_crop_4063055392_0.png', 1398453449: '1765177885_2455076_1398451910_9a577ef45bdd02164dabbe432570f0d3_rle_crop_4063053867_0.png', 1398453450: '1765177885_2455076_1398451735_3a5968927a2917f51ad3e2e50cc3e9b9_rle_crop_4063053895_0.png', 1398453772: '1765178106_2464389_1398452566_7caf07b728246233298740b91d8a900c_rle_crop_4063061114_0.png', 1398453773: '1765178106_2464389_1398452468_4d3e5697e464900911f22748366d838d_rle_crop_4063061142_0.png', 1398453901: '1765178126_2464875_1398451902_d1434dc51f7ed0c69c93c7ef914fe591_rle_crop_4063061399_0.png', 1398453903: '1765178126_2464875_1398451900_5ba463fa49de22f414d479ba3334d877_rle_crop_4063061407_0.png', 1398453904: '1765178126_2464875_1398451900_5ba463fa49de22f414d479ba3334d877_rle_crop_4063061410_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/e6a69a8903e1035709cb3acf81c652dc_97173943.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/53f3b9097c9f7dbe21722238d22dbcdd_58597417.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/97e8132d284aea0345495e256f685bd8_52453810.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/53b7e3170fdde682a64a10e34760053c_4821858.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/ff1f30f24afc954a8efa028408f36dc1_7410470.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/585b9cf972ce5d3aad6ee9059f7ffd26_68046720.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/5a2b808aab78383277146ac7c9e82db2_92446923.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/6b3018f58cac67c7263b24cc2ea8c2aa_33436949.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/05a994cb285527deb8a6038366cfd16e_81595105.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/b1d37718ece1c0f7de82b0e0636ca6cc_17089238.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/dcdd524dfb381ab44e55e2a2d0f8c9b2_40512482.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/84197c0717b777ccc2d4abfd4697469f_94253168.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/98354cab2ec59fe971d474d51900a059_48372307.png change filename to text .imagette292600061765178222/ imagette292600061765178222/1765177465_2438552_1398451373_00cc159418cdba256fea343e222efc6d_rle_crop_4063041442_0.png.png imagette292600061765178222/1765178106_2464389_1398452566_7caf07b728246233298740b91d8a900c_rle_crop_4063061114_0.png.png imagette292600061765178222/1765177766_2450310_1398451483_b8de89262d27a3c072db673077e528da_rle_crop_4063047172_0.png.png imagette292600061765178222/1765177885_2455076_1398451910_9a577ef45bdd02164dabbe432570f0d3_rle_crop_4063053867_0.png.png imagette292600061765178222/1765177766_2450310_1398451459_ea253f15bffc27bd9689c65c76b10dfa_rle_crop_4063047199_0.png.png imagette292600061765178222/1765177465_2438552_1398451364_27d9259634a37e4e92f61cc7baca4837_rle_crop_4063041452_0.png.png imagette292600061765178222/1765178126_2464875_1398451900_5ba463fa49de22f414d479ba3334d877_rle_crop_4063061410_0.png.png imagette292600061765178222/1765177865_2454725_1398451940_ff6b826d6c06b20e5a2c6691395b9aad_rle_crop_4063055392_0.png.png imagette292600061765178222/1765177885_2455076_1398451735_3a5968927a2917f51ad3e2e50cc3e9b9_rle_crop_4063053895_0.png.png imagette292600061765178222/1765177865_2454725_1398451940_ff6b826d6c06b20e5a2c6691395b9aad_rle_crop_4063055391_0.png.png imagette292600061765178222/1765177766_2450310_1398451459_ea253f15bffc27bd9689c65c76b10dfa_rle_crop_4063047200_0.png.png imagette292600061765178222/1765178126_2464875_1398451902_d1434dc51f7ed0c69c93c7ef914fe591_rle_crop_4063061399_0.png.png imagette292600061765178222/1765178126_2464875_1398451900_5ba463fa49de22f414d479ba3334d877_rle_crop_4063061407_0.png.png imagette292600061765178222/1765178106_2464389_1398452468_4d3e5697e464900911f22748366d838d_rle_crop_4063061142_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/6849ca4825bc4c8a745a6f389de17a62_58269602.png imagette292600061765178222 29260011 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29260011 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398451913: '1765177465_2438552_1398451373_00cc159418cdba256fea343e222efc6d_rle_crop_4063041443_0.png', 1398451914: '1765177465_2438552_1398451364_27d9259634a37e4e92f61cc7baca4837_rle_crop_4063041456_0.png', 1398453156: '1765177945_2455740_1398452588_fca708d86b75e00991e773c5b1eb803f_rle_crop_4063054066_0.png', 1398453204: '1765177986_2457967_1398452661_566bb26e24bda08f28fceea9b281b6d6_rle_crop_4063055439_0.png', 1398453206: '1765177986_2457967_1398452659_d387906d6fbde534395d95e99d33845b_rle_crop_4063055539_0.png', 1398453457: '1765177885_2455076_1398451693_83947fa934ba8f1f2269ba8746aae2e3_rle_crop_4063053915_0.png', 1398453906: '1765178126_2464875_1398451902_d1434dc51f7ed0c69c93c7ef914fe591_rle_crop_4063061393_0.png', 1398453910: '1765177865_2454725_1398451928_30c22b8123f9892087d2d12f412a670b_rle_crop_4063055422_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/90827d7cc3c4f160b90f1c02d2a69117_30137890.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/e2ccdc72f79c916a8f7d2463dbee1136_11068677.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/8f45c4ea8d20f8234b39610d69297458_11207345.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/d87da2d77ecc288f6c0bfee2de246c0b_41148343.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/f11528ec9f18c8f6f7457e4c10f72d3f_83735556.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/6416dd435319c0fe9d8ca7eb8c2aa9cf_5611911.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/57da93d478d7c526812add3b0a6d1306_13218515.png change filename to text .imagette292600111765178223/ imagette292600111765178223/1765177865_2454725_1398451928_30c22b8123f9892087d2d12f412a670b_rle_crop_4063055422_0.png.png imagette292600111765178223/1765177885_2455076_1398451693_83947fa934ba8f1f2269ba8746aae2e3_rle_crop_4063053915_0.png.png imagette292600111765178223/1765177986_2457967_1398452659_d387906d6fbde534395d95e99d33845b_rle_crop_4063055539_0.png.png imagette292600111765178223/1765177465_2438552_1398451364_27d9259634a37e4e92f61cc7baca4837_rle_crop_4063041456_0.png.png imagette292600111765178223/1765177945_2455740_1398452588_fca708d86b75e00991e773c5b1eb803f_rle_crop_4063054066_0.png.png imagette292600111765178223/1765177465_2438552_1398451373_00cc159418cdba256fea343e222efc6d_rle_crop_4063041443_0.png.png imagette292600111765178223/1765177986_2457967_1398452661_566bb26e24bda08f28fceea9b281b6d6_rle_crop_4063055439_0.png.png imagette292600111765178223/1765178126_2464875_1398451902_d1434dc51f7ed0c69c93c7ef914fe591_rle_crop_4063061393_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/808f72130c02e4e7eaa01c6daca53428_28361958.png imagette292600111765178223 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29259983 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29260012,29260013,29260014,29260015,29260016,29260017,29260018,29260019,29260020,29260021,29260022,29260023?tags=flou,plastique,cartonnette,autre_refus,Teint_Dans_La_Masse,metal,Carton_gris,kraft,mal_croppe,environnement,papier,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1398453405] : ('0.05240967376206254',) no score found for photo 1398453405 We are sending mail with results at report@fotonower.com args[1398453374] : ('0.05240967376206254',) no score found for photo 1398453374 We are sending mail with results at report@fotonower.com args[1398453344] : ('0.05240967376206254',) no score found for photo 1398453344 We are sending mail with results at report@fotonower.com args[1398453307] : ('0.05240967376206254',) no score found for photo 1398453307 We are sending mail with results at report@fotonower.com args[1398453187] : ('0.05240967376206254',) no score found for photo 1398453187 We are sending mail with results at report@fotonower.com args[1398453149] : ('0.05240967376206254',) no score found for photo 1398453149 We are sending mail with results at report@fotonower.com args[1398453112] : ('0.05240967376206254',) no score found for photo 1398453112 We are sending mail with results at report@fotonower.com args[1398453075] : ('0.05240967376206254',) no score found for photo 1398453075 We are sending mail with results at report@fotonower.com args[1398453043] : ('0.05240967376206254',) no score found for photo 1398453043 We are sending mail with results at report@fotonower.com args[1398453012] : ('0.05240967376206254',) no score found for photo 1398453012 We are sending mail with results at report@fotonower.com args[1398452765] : ('0.05240967376206254',) no score found for photo 1398452765 We are sending mail with results at report@fotonower.com args[1398452763] : ('0.05240967376206254',) no score found for photo 1398452763 We are sending mail with results at report@fotonower.com args[1398452759] : ('0.05240967376206254',) no score found for photo 1398452759 We are sending mail with results at report@fotonower.com args[1398452756] : ('0.05240967376206254',) no score found for photo 1398452756 We are sending mail with results at report@fotonower.com args[1398452753] : ('0.05240967376206254',) no score found for photo 1398452753 We are sending mail with results at report@fotonower.com args[1398452751] : ('0.05240967376206254',) no score found for photo 1398452751 We are sending mail with results at report@fotonower.com args[1398452736] : ('0.05240967376206254',) no score found for photo 1398452736 We are sending mail with results at report@fotonower.com args[1398452733] : ('0.05240967376206254',) no score found for photo 1398452733 We are sending mail with results at report@fotonower.com args[1398452721] : ('0.05240967376206254',) no score found for photo 1398452721 We are sending mail with results at report@fotonower.com args[1398452716] : ('0.05240967376206254',) no score found for photo 1398452716 We are sending mail with results at report@fotonower.com args[1398452712] : ('0.05240967376206254',) no score found for photo 1398452712 We are sending mail with results at report@fotonower.com args[1398452704] : ('0.05240967376206254',) no score found for photo 1398452704 We are sending mail with results at report@fotonower.com refus_total : 0.05240967376206254 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29259983 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_P29259983_08-12-2025_08_16_59.pdf results_Auto_P29259983_08-12-2025_08_16_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29259983_08-12-2025_08_16_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29259983','results_Auto_P29259983_08-12-2025_08_16_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29259983_08-12-2025_08_16_59.pdf','pdf','','0.33','0.05240967376206254') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29259983]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1398453405, 1398453374, 1398453344, 1398453307, 1398453187, 1398453149, 1398453112, 1398453075, 1398453043, 1398453012, 1398452765, 1398452763, 1398452759, 1398452756, 1398452753, 1398452751, 1398452736, 1398452733, 1398452721, 1398452716, 1398452712, 1398452704] map_info['map_portfolio_photo'] : {29259983: [1398453405, 1398453374, 1398453344, 1398453307, 1398453187, 1398453149, 1398453112, 1398453075, 1398453043, 1398453012, 1398452765, 1398452763, 1398452759, 1398452756, 1398452753, 1398452751, 1398452736, 1398452733, 1398452721, 1398452716, 1398452712, 1398452704, 1398452663, 1398452661, 1398452659, 1398452657, 1398452588, 1398452566, 1398452524, 1398452468, 1398451989, 1398451955, 1398451940, 1398451935, 1398451928, 1398451910, 1398451906, 1398451904, 1398451902, 1398451900, 1398451804, 1398451801, 1398451774, 1398451735, 1398451693, 1398451483, 1398451477, 1398451476, 1398451474, 1398451462, 1398451459, 1398451456, 1398451455, 1398451454, 1398451450, 1398451448, 1398451446, 1398451440, 1398451438, 1398451435, 1398451432, 1398451430, 1398451429, 1398451417, 1398451414, 1398451411, 1398451410, 1398451409, 1398451408, 1398451382, 1398451379, 1398451373, 1398451364]} final : False mtd_id 4302 list_pids : [1398453405, 1398453374, 1398453344, 1398453307, 1398453187, 1398453149, 1398453112, 1398453075, 1398453043, 1398453012, 1398452765, 1398452763, 1398452759, 1398452756, 1398452753, 1398452751, 1398452736, 1398452733, 1398452721, 1398452716, 1398452712, 1398452704] 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, '4197032') ('4302', '29259983', '1398453405', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453374', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453344', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453307', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453187', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453149', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453112', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453075', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453043', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453012', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452765', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452763', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452759', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452756', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452753', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452751', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452736', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452733', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452721', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452716', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452712', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452704', None, None, None, None, None, '4197032') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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', '29259983', '1398453405', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453374', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453344', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453307', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453187', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453149', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453112', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453075', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453043', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453012', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452765', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452763', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452759', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452756', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452753', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452751', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452736', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452733', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452721', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452716', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452712', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452704', None, None, None, None, None, '4197032')] time used for this insertion : 0.01776576042175293 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.538209915161133 time spend to save output : 0.01810908317565918 total time spend for step 4 : 6.556318998336792 step5:split_time_score Mon Dec 8 08:17:05 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 : ['29259983'] 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 : [('29259983',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29259983) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1398453374: {'path': 'temp/1765178219_591990_1398453374_502d025a07204a7f2be79ab366c5a690.jpg', 'extension': 'jpg'}, 1398453405: {'path': 'temp/1765178219_591990_1398453405_7a60ee15b046108b001939818b8d20d2.jpg', 'extension': 'jpg'}, 1398452736: {'path': 'temp/1765178219_591990_1398452736_d5e0c936795a377d302a9cd6be6757a7.jpg', 'extension': 'jpg'}, 1398452751: {'path': 'temp/1765178219_591990_1398452751_214409d27fafe30b399ffee5e997127e.jpg', 'extension': 'jpg'}, 1398452753: {'path': 'temp/1765178219_591990_1398452753_390bb97273fe348dccde31c34fddcb6e.jpg', 'extension': 'jpg'}, 1398452756: {'path': 'temp/1765178219_591990_1398452756_20d48e0c05faad9ae97db3a13d3b288d.jpg', 'extension': 'jpg'}, 1398452759: {'path': 'temp/1765178219_591990_1398452759_32f8047140f9c8a6d03f9e27443b1363.jpg', 'extension': 'jpg'}, 1398452704: {'path': 'temp/1765178219_591990_1398452704_161ade6a015e9d0d92cd9db9473b7096.jpg', 'extension': 'jpg'}, 1398452712: {'path': 'temp/1765178219_591990_1398452712_f5ad4251aa4aca9cf6f745b4f1ee1799.jpg', 'extension': 'jpg'}, 1398452716: {'path': 'temp/1765178219_591990_1398452716_399e53f8f6f66a7ccf65a0ae11af7050.jpg', 'extension': 'jpg'}, 1398452721: {'path': 'temp/1765178219_591990_1398452721_198d4628b14d401f06e0c75570cc4847.jpg', 'extension': 'jpg'}, 1398452733: {'path': 'temp/1765178219_591990_1398452733_52e95fa5caa02d9743d85107be7ea930.jpg', 'extension': 'jpg'}, 1398453112: {'path': 'temp/1765178219_591990_1398453112_a79f53ea3dced29cac8298c61aa81815.jpg', 'extension': 'jpg'}, 1398453149: {'path': 'temp/1765178219_591990_1398453149_96fd5a239546b409b1b9297c7a556db1.jpg', 'extension': 'jpg'}, 1398453187: {'path': 'temp/1765178219_591990_1398453187_da707f2c46afee3ac1f7fb273339972c.jpg', 'extension': 'jpg'}, 1398453307: {'path': 'temp/1765178219_591990_1398453307_0046e3efa6ac51c43beaf1145178b4d3.jpg', 'extension': 'jpg'}, 1398453344: {'path': 'temp/1765178219_591990_1398453344_2658590c21b4ebbba8e7857fe77e8dea.jpg', 'extension': 'jpg'}, 1398452763: {'path': 'temp/1765178219_591990_1398452763_7d9e7ad944402d3209a3d1e763ab6657.jpg', 'extension': 'jpg'}, 1398452765: {'path': 'temp/1765178219_591990_1398452765_9828f015e1ed8d37fd2d40976e29568c.jpg', 'extension': 'jpg'}, 1398453012: {'path': 'temp/1765178219_591990_1398453012_ee1f7d613d7c41931dcb11f48e25ace5.jpg', 'extension': 'jpg'}, 1398453043: {'path': 'temp/1765178219_591990_1398453043_cd830bae296aa98e37b21e5fc36efc77.jpg', 'extension': 'jpg'}, 1398453075: {'path': 'temp/1765178219_591990_1398453075_a0a1c0785606b3a9cb5450539abf5315.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 = 29259983; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29259983 group by h (('08', 73),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29259983 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 (29259983) 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 (29259983) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08122025 29259983 Nombre de photos uploadées : 73 / 23040 (0%) 08122025 29259983 Nombre de photos taguées (types de déchets): 0 / 73 (0%) 08122025 29259983 Nombre de photos taguées (volume) : 0 / 73 (0%) [{'photo_id': 1398451382, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/f6e2b93447db388a112ccf5a5215aa98.jpg', 'username': None, 'uploaded_at': 1765177267, 'text': 'image_08122025_08_00_14_10200.jpg'}, {'photo_id': 1398451379, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/003d98df952fe49332fcf70a85f95d2e.jpg', 'username': None, 'uploaded_at': 1765177267, 'text': 'image_08122025_08_00_24_10139.jpg'}, {'photo_id': 1398451373, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/00cc159418cdba256fea343e222efc6d.jpg', 'username': None, 'uploaded_at': 1765177267, 'text': 'image_08122025_08_00_34_10135.jpg'}, {'photo_id': 1398451364, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/27d9259634a37e4e92f61cc7baca4837.jpg', 'username': None, 'uploaded_at': 1765177267, 'text': 'image_08122025_08_00_44_10140.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0030975341796875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29259983, '2025-12-08' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-08' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2707961,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2945418357849121 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= 2707961 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2707961, 'dashboard_run_id': 2715320, 'mtr_portfolio_id': 29255719, 'dashboard_result_id': 18159550, '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_P29255719_08-12-2025_05_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29255721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29255722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29255723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29255724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29255725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29255726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29255727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29255728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29255729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29255730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29255731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29255732, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2715320, 'mtr_portfolio_id': 29256022, 'dashboard_result_id': 18159551, '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_P29256022_08-12-2025_05_33_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256038, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2715320, 'mtr_portfolio_id': 29256393, 'dashboard_result_id': 18159552, '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_P29256393_08-12-2025_05_47_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256410, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2715320, 'mtr_portfolio_id': 29256636, 'dashboard_result_id': 18159553, '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_P29256636_08-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29256641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256643, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256652, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2715320, 'mtr_portfolio_id': 29256977, 'dashboard_result_id': 18159554, '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_P29256977_08-12-2025_06_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256997, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2715320, 'mtr_portfolio_id': 29257386, 'dashboard_result_id': 18159555, '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_P29257386_08-12-2025_06_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29257393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29257394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29257395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29257396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29257397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29257398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29257399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29257400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29257401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29257402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29257403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29257404, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2715320, 'mtr_portfolio_id': 29257806, 'dashboard_result_id': 18159556, '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_P29257806_08-12-2025_06_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29257814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29257815, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29257816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29257817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29257818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29257819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29257820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29257821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29257822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29257823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29257824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29257825, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2715320, 'mtr_portfolio_id': 29258277, 'dashboard_result_id': 18159557, '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_P29258277_08-12-2025_07_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29258281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29258282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29258283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29258284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29258285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29258286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29258287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29258288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29258289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29258290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29258291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29258292, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2715320, 'mtr_portfolio_id': 29258540, 'dashboard_result_id': 18159558, '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_P29258540_08-12-2025_07_19_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29258543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29258544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29258545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29258546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29258547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29258548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29258549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29258550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29258551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29258552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29258553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29258554, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2715320, 'mtr_portfolio_id': 29258890, 'dashboard_result_id': 18159559, '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_P29258890_08-12-2025_07_33_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29258918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29258919, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29258920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29258921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29258922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29258923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29258924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29258925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29258926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29258927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29258928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29258929, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2715320, 'mtr_portfolio_id': 29259327, 'dashboard_result_id': 18159560, '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_P29259327_08-12-2025_07_39_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29259340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29259341, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29259342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29259343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29259344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29259345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29259346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29259347, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29259348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29259349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29259350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29259351, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2715320, 'mtr_portfolio_id': 29259708, 'dashboard_result_id': 18159561, '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_P29259708_08-12-2025_07_57_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29259710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29259711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29259712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29259713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29259714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29259715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29259716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29259717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29259718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29259719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29259720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29259721, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2715320, 'mtr_portfolio_id': 29259983, 'dashboard_result_id': 18159562, '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_P29259983_08-12-2025_08_10_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29260000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29260001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29260002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29260003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29260004, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29260005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29260006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29260007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29260008, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29260009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29260010, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29260011, '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 = 29255719 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': 4196026, 'mtr_portfolio_id': 29255719, 'created_at': datetime.datetime(2025, 12, 8, 5, 18, 57), 'result': '0.05990018281379398', 'result_long': None, 'result_double': None}] Qualite : 0.05990018281379398 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29255719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29255719_08-12-2025_05_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29255719 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_P29255719_08-12-2025_05_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29255721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29255722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29255723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29255724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29255725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29255726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29255727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29255728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29255729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29255730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29255731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29255732, 'pht': 3726}}" where mtr_portfolio_id = 29255719 and dashboard_run_id = 2715320 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`=29255719 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18159550, 0.05990018281379398, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29255719_08-12-2025_05_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29255721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29255722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29255723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29255724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29255725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29255726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29255727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29255728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29255729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29255730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29255731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29255732, '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 = 29256022 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': 4196067, 'mtr_portfolio_id': 29256022, 'created_at': datetime.datetime(2025, 12, 8, 5, 33, 28), 'result': '0.04719160142858799', 'result_long': None, 'result_double': None}] Qualite : 0.04719160142858799 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29256022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256022_08-12-2025_05_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29256022 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_P29256022_08-12-2025_05_33_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256038, 'pht': 3726}}" where mtr_portfolio_id = 29256022 and dashboard_run_id = 2715320 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`=29256022 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18159551, 0.04719160142858799, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256022_08-12-2025_05_33_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256038, '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 = 29256393 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': 4196120, 'mtr_portfolio_id': 29256393, 'created_at': datetime.datetime(2025, 12, 8, 5, 47, 32), 'result': '0.0539279006370315', 'result_long': None, 'result_double': None}] Qualite : 0.0539279006370315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29256393 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256393_08-12-2025_05_47_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29256393 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_P29256393_08-12-2025_05_47_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256410, 'pht': 3726}}" where mtr_portfolio_id = 29256393 and dashboard_run_id = 2715320 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`=29256393 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18159552, 0.0539279006370315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256393_08-12-2025_05_47_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256410, '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 = 29256636 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': 4196202, 'mtr_portfolio_id': 29256636, 'created_at': datetime.datetime(2025, 12, 8, 6, 3), 'result': '0.04805929919042539', 'result_long': None, 'result_double': None}] Qualite : 0.04805929919042539 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29256636 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256636_08-12-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29256636 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_P29256636_08-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29256641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256643, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256652, 'pht': 3726}}" where mtr_portfolio_id = 29256636 and dashboard_run_id = 2715320 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`=29256636 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18159553, 0.04805929919042539, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256636_08-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29256641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256643, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256652, '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 = 29256977 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': 4196288, 'mtr_portfolio_id': 29256977, 'created_at': datetime.datetime(2025, 12, 8, 6, 18, 58), 'result': '0.05292196535495374', 'result_long': None, 'result_double': None}] Qualite : 0.05292196535495374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29256977 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256977_08-12-2025_06_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29256977 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_P29256977_08-12-2025_06_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256997, 'pht': 3726}}" where mtr_portfolio_id = 29256977 and dashboard_run_id = 2715320 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`=29256977 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18159554, 0.05292196535495374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256977_08-12-2025_06_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256997, '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 = 29257386 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': 4196402, 'mtr_portfolio_id': 29257386, 'created_at': datetime.datetime(2025, 12, 8, 6, 33, 1), 'result': '0.03985537336291286', 'result_long': None, 'result_double': None}] Qualite : 0.03985537336291286 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29257386 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29257386_08-12-2025_06_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29257386 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_P29257386_08-12-2025_06_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29257393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29257394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29257395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29257396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29257397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29257398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29257399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29257400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29257401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29257402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29257403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29257404, 'pht': 3726}}" where mtr_portfolio_id = 29257386 and dashboard_run_id = 2715320 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`=29257386 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18159555, 0.03985537336291286, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29257386_08-12-2025_06_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29257393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29257394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29257395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29257396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29257397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29257398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29257399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29257400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29257401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29257402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29257403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29257404, '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 = 29257806 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': 4196471, 'mtr_portfolio_id': 29257806, 'created_at': datetime.datetime(2025, 12, 8, 6, 48, 58), 'result': '0.061730316338566356', 'result_long': None, 'result_double': None}] Qualite : 0.061730316338566356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29257806 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29257806_08-12-2025_06_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29257806 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_P29257806_08-12-2025_06_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29257814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29257815, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29257816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29257817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29257818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29257819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29257820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29257821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29257822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29257823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29257824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29257825, 'pht': 3726}}" where mtr_portfolio_id = 29257806 and dashboard_run_id = 2715320 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`=29257806 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18159556, 0.061730316338566356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29257806_08-12-2025_06_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29257814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29257815, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29257816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29257817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29257818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29257819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29257820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29257821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29257822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29257823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29257824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29257825, '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 = 29258277 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': 4196559, 'mtr_portfolio_id': 29258277, 'created_at': datetime.datetime(2025, 12, 8, 7, 3, 31), 'result': '0.03129160482068432', 'result_long': None, 'result_double': None}] Qualite : 0.03129160482068432 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29258277 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29258277_08-12-2025_07_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29258277 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_P29258277_08-12-2025_07_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29258281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29258282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29258283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29258284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29258285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29258286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29258287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29258288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29258289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29258290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29258291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29258292, 'pht': 3726}}" where mtr_portfolio_id = 29258277 and dashboard_run_id = 2715320 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`=29258277 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18159557, 0.03129160482068432, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29258277_08-12-2025_07_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29258281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29258282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29258283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29258284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29258285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29258286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29258287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29258288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29258289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29258290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29258291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29258292, '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 = 29258540 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': 4196630, 'mtr_portfolio_id': 29258540, 'created_at': datetime.datetime(2025, 12, 8, 7, 19, 57), 'result': '0.05697171000745336', 'result_long': None, 'result_double': None}] Qualite : 0.05697171000745336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29258540 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29258540_08-12-2025_07_19_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29258540 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_P29258540_08-12-2025_07_19_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29258543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29258544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29258545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29258546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29258547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29258548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29258549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29258550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29258551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29258552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29258553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29258554, 'pht': 3726}}" where mtr_portfolio_id = 29258540 and dashboard_run_id = 2715320 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`=29258540 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18159558, 0.05697171000745336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29258540_08-12-2025_07_19_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29258543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29258544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29258545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29258546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29258547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29258548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29258549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29258550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29258551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29258552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29258553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29258554, '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 = 29258890 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': 4196749, 'mtr_portfolio_id': 29258890, 'created_at': datetime.datetime(2025, 12, 8, 7, 33, 31), 'result': '0.05887231913016769', 'result_long': None, 'result_double': None}] Qualite : 0.05887231913016769 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29258890 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29258890_08-12-2025_07_33_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29258890 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_P29258890_08-12-2025_07_33_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29258918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29258919, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29258920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29258921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29258922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29258923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29258924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29258925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29258926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29258927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29258928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29258929, 'pht': 3726}}" where mtr_portfolio_id = 29258890 and dashboard_run_id = 2715314 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`=29258890 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18159559, 0.05887231913016769, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29258890_08-12-2025_07_33_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29258918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29258919, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29258920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29258921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29258922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29258923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29258924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29258925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29258926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29258927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29258928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29258929, '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 = 29259327 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': 4196850, 'mtr_portfolio_id': 29259327, 'created_at': datetime.datetime(2025, 12, 8, 7, 39, 27), 'result': '0.04796021956911289', 'result_long': None, 'result_double': None}] Qualite : 0.04796021956911289 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29259327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29259327_08-12-2025_07_39_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29259327 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_P29259327_08-12-2025_07_39_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29259340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29259341, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29259342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29259343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29259344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29259345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29259346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29259347, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29259348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29259349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29259350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29259351, 'pht': 3726}}" where mtr_portfolio_id = 29259327 and dashboard_run_id = 2715314 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`=29259327 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18159560, 0.04796021956911289, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29259327_08-12-2025_07_39_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29259340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29259341, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29259342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29259343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29259344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29259345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29259346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29259347, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29259348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29259349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29259350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29259351, '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 = 29259708 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': 4196934, 'mtr_portfolio_id': 29259708, 'created_at': datetime.datetime(2025, 12, 8, 7, 57, 34), 'result': '0.06469660026585301', 'result_long': None, 'result_double': None}] Qualite : 0.06469660026585301 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29259708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29259708_08-12-2025_07_57_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29259708 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_P29259708_08-12-2025_07_57_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29259710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29259711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29259712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29259713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29259714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29259715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29259716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29259717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29259718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29259719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29259720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29259721, 'pht': 3726}}" where mtr_portfolio_id = 29259708 and dashboard_run_id = 2715314 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`=29259708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18159561, 0.06469660026585301, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29259708_08-12-2025_07_57_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29259710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29259711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29259712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29259713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29259714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29259715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29259716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29259717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29259718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29259719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29259720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29259721, '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 = 29259983 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': 4197032, 'mtr_portfolio_id': 29259983, 'created_at': datetime.datetime(2025, 12, 8, 8, 16, 58), 'result': '0.05240967376206254', 'result_long': None, 'result_double': None}] Qualite : 0.05240967376206254 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29259983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29259983_08-12-2025_08_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29259983 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_P29259983_08-12-2025_08_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29260000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29260001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29260002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29260003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29260004, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29260005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29260006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29260007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29260008, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29260009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29260010, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29260011, 'pht': 3726}}" where mtr_portfolio_id = 29259983 and dashboard_run_id = 2715314 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`=29259983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18159562, 0.05240967376206254, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29259983_08-12-2025_08_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29260000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29260001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29260002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29260003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29260004, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29260005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29260006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29260007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29260008, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29260009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29260010, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29260011, '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 (29255719,29256022,29256393,29256636,29256977,29257386,29257806,29258277,29258540,29258890,29259327,29259708,29259983) result : ((1398441020,), (1398441905,), (1398442335,), (1398442480,), (1398442481,), (1398442482,), (1398442483,), (1398442492,), (1398442493,), (1398442499,), (1398442500,), (1398442501,), (1398442502,), (1398442510,), (1398442511,), (1398442512,), (1398442521,), (1398442523,), (1398442525,), (1398442533,), (1398442534,), (1398442749,), (1398442781,), (1398442812,), (1398442849,), (1398442884,), (1398442916,), (1398443037,), (1398443072,), (1398443109,), (1398443110,), (1398443136,), (1398443241,), (1398443242,), (1398443243,), (1398443244,), (1398443246,), (1398443270,), (1398443267,), (1398443268,), (1398443269,), (1398443291,), (1398443292,), (1398443293,), (1398443294,), (1398443303,), (1398443304,), (1398443305,), (1398443322,), (1398443323,), (1398443324,), (1398443344,), (1398443346,), (1398443347,), (1398443354,), (1398443355,), (1398443356,), (1398443357,), (1398443359,), (1398443393,), (1398443399,), (1398443400,), (1398443401,), (1398443403,), (1398443420,), (1398443423,), (1398443425,), (1398443427,), (1398443429,), (1398443431,), (1398443435,), (1398443436,), (1398443437,), (1398443438,), (1398443439,), (1398443440,), (1398443442,), (1398443444,), (1398443446,), (1398443450,), (1398443451,), (1398443452,), (1398443453,), (1398443455,), (1398443456,), (1398443495,), (1398443498,), (1398443501,), (1398443512,), (1398443515,), (1398443526,), (1398443529,), (1398443532,), (1398443534,), (1398443540,), (1398443542,), (1398443544,), (1398443547,), (1398443554,), (1398443555,), (1398443556,), (1398443557,), (1398443558,), (1398443560,), (1398443580,), (1398443585,), (1398443591,), (1398443592,), (1398443595,), (1398443626,), (1398443623,), (1398443624,), (1398443625,), (1398443634,), (1398443635,), (1398443636,), (1398443637,), (1398443639,), (1398443641,), (1398443649,), (1398443650,), (1398443651,), (1398443653,), (1398443655,), (1398443657,), (1398443672,), (1398443673,), (1398443674,), (1398443675,), (1398443676,), (1398443678,), (1398443679,), (1398443681,), (1398443683,), (1398443685,), (1398443688,), (1398443690,), (1398443695,), (1398443696,), (1398443697,), (1398443721,), (1398443740,), (1398443744,), (1398443745,), (1398443746,), (1398443767,), (1398443768,), (1398443769,), (1398443770,), (1398443772,), (1398443782,), (1398443783,), (1398443784,), (1398443785,), (1398443793,), (1398443795,), (1398443798,), (1398443801,), (1398443804,), (1398443807,), (1398443829,), (1398443830,), (1398443831,), (1398443832,), (1398443833,), (1398443835,), (1398443837,), (1398443839,), (1398443850,), (1398443851,), (1398443852,), (1398443853,), (1398443864,), (1398443865,), (1398443866,), (1398443867,), (1398443869,), (1398443870,), (1398443879,), (1398443880,), (1398443881,), (1398443883,), (1398443885,), (1398443887,), (1398443892,), (1398443893,), (1398443894,), (1398443895,), (1398443896,), (1398443921,), (1398443922,), (1398443924,), (1398443926,), (1398443928,), (1398443934,), (1398443935,), (1398443937,), (1398443938,), (1398443940,), (1398443943,), (1398443965,), (1398443952,), (1398443963,), (1398443964,), (1398443974,), (1398443975,), (1398443976,), (1398443977,), (1398443978,), (1398443986,), (1398443987,), (1398443988,), (1398443989,), (1398443991,), (1398444001,), (1398444002,), (1398444003,), (1398444004,), (1398444031,), (1398444032,), (1398444033,), (1398444034,), (1398444036,), (1398444044,), (1398444045,), (1398444046,), (1398444047,), (1398444064,), (1398444065,), (1398444072,), (1398444077,), (1398444085,), (1398444087,), (1398444097,), (1398444098,), (1398444099,), (1398444101,), (1398444103,), (1398444104,), (1398444112,), (1398444113,), (1398444114,), (1398444118,), (1398444123,), (1398444127,), (1398444129,), (1398444131,), (1398444133,), (1398444135,), (1398444137,), (1398444141,), (1398444142,), (1398444143,), (1398444144,), (1398444146,), (1398444156,), (1398444157,), (1398444166,), (1398444167,), (1398444169,), (1398444171,), (1398444179,), (1398444181,), (1398444183,), (1398444186,), (1398444189,), (1398444198,), (1398444199,), (1398444200,), (1398444201,), (1398444696,), (1398444718,), (1398444720,), (1398444721,), (1398444751,), (1398444802,), (1398444791,), (1398444792,), (1398444796,), (1398444799,), (1398445088,), (1398445121,), (1398445150,), (1398445186,), (1398445218,), (1398445251,), (1398445399,), (1398445400,), (1398445401,), (1398445404,), (1398445439,), (1398445483,), (1398445633,), (1398445644,), (1398445645,), (1398445646,), (1398445660,), (1398445708,), (1398445741,), (1398445744,), (1398445747,), (1398445750,), (1398445753,), (1398445769,), (1398445770,), (1398445771,), (1398445784,), (1398445785,), (1398445786,), (1398445787,), (1398445790,), (1398445805,), (1398445806,), (1398445807,), (1398445808,), (1398445827,), (1398445828,), (1398445829,), (1398445830,), (1398445833,), (1398445845,), (1398445846,), (1398445847,), (1398445848,), (1398445851,), (1398445873,), (1398445880,), (1398445881,), (1398445882,), (1398445914,), (1398445915,), (1398445916,), (1398445917,), (1398445920,), (1398445923,), (1398445934,), (1398445935,), (1398445936,), (1398445937,), (1398445940,), (1398445964,), (1398445965,), (1398445966,), (1398445969,), (1398445972,), (1398445973,), (1398445984,), (1398445985,), (1398445986,), (1398446000,), (1398446006,), (1398446007,), (1398446010,), (1398446013,), (1398446015,), (1398446023,), (1398446026,), (1398446028,), (1398446032,), (1398446061,), (1398446047,), (1398446048,), (1398446051,), (1398446057,), (1398446073,), (1398446074,), (1398446075,), (1398446076,), (1398446078,), (1398446095,), (1398446096,), (1398446099,), (1398446109,), (1398446134,), (1398446135,), (1398446136,), (1398446137,), (1398446140,), (1398446143,), (1398446161,), (1398446162,), (1398446163,), (1398446164,), (1398446166,), (1398446189,), (1398446190,), (1398446191,), (1398446192,), (1398446195,), (1398446197,), (1398446212,), (1398446214,), (1398446215,), (1398446237,), (1398446238,), (1398446239,), (1398446242,), (1398446245,), (1398446248,), (1398446257,), (1398446258,), (1398446259,), (1398446266,), (1398446267,), (1398446268,), (1398446271,), (1398446283,), (1398446284,), (1398446285,), (1398446286,), (1398446288,), (1398446290,), (1398446313,), (1398446321,), (1398446322,), (1398446323,), (1398446326,), (1398446338,), (1398446339,), (1398446340,), (1398446341,), (1398446344,), (1398446346,), (1398446362,), (1398446363,), (1398446364,), (1398446365,), (1398446384,), (1398446385,), (1398446389,), (1398446394,), (1398446417,), (1398446421,), (1398446422,), (1398446425,), (1398446429,), (1398446432,), (1398446450,), (1398446438,), (1398446443,), (1398446446,), (1398446447,), (1398446464,), (1398446465,), (1398446466,), (1398446472,), (1398446475,), (1398446478,), (1398446488,), (1398446489,), (1398446490,), (1398446493,), (1398446496,), (1398446499,), (1398446508,), (1398446509,), (1398446510,), (1398446511,), (1398446512,), (1398446513,), (1398446533,), (1398446534,), (1398446535,), (1398446536,), (1398446539,), (1398446542,), (1398446554,), (1398446555,), (1398446633,), (1398446800,), (1398446799,), (1398446813,), (1398446814,), (1398446815,), (1398446842,), (1398446843,), (1398446844,), (1398446845,), (1398446868,), (1398446870,), (1398446872,), (1398446876,), (1398446880,), (1398446884,), (1398446891,), (1398446892,), (1398446893,), (1398446894,), (1398446908,), (1398446909,), (1398446914,), (1398446921,), (1398446923,), (1398446926,), (1398446937,), (1398446941,), (1398446944,), (1398446946,), (1398446969,), (1398446970,), (1398446973,), (1398446976,), (1398446979,), (1398446992,), (1398446993,), (1398446994,), (1398446995,), (1398446997,), (1398447012,), (1398447013,), (1398447014,), (1398447032,), (1398447033,), (1398447034,), (1398447037,), (1398447040,), (1398447042,), (1398447052,), (1398447053,), (1398447055,), (1398447056,), (1398447325,), (1398447357,), (1398447390,), (1398447424,), (1398447456,), (1398447489,), (1398447528,), (1398447569,), (1398447623,), (1398448311,), (1398448367,), (1398448368,), (1398448371,), (1398448163,), (1398448200,), (1398448218,), (1398448231,), (1398448269,), (1398448357,), (1398448360,), (1398448363,), (1398448365,), (1398448372,), (1398448373,), (1398448374,), (1398448376,), (1398448377,), (1398448379,), (1398448415,), (1398448416,), (1398448417,), (1398448418,), (1398448431,), (1398448432,), (1398448433,), (1398448461,), (1398448462,), (1398449626,), (1398449627,), (1398449647,), (1398449686,), (1398449719,), (1398449896,), (1398449897,), (1398449898,), (1398449899,), (1398449920,), (1398449926,), (1398449927,), (1398449928,), (1398449931,), (1398449948,), (1398449979,), (1398450012,), (1398450020,), (1398450023,), (1398450032,), (1398450091,), (1398450092,), (1398450093,), (1398450094,), (1398450097,), (1398450098,), (1398450101,), (1398450104,), (1398450107,), (1398450116,), (1398450117,), (1398450119,), (1398450120,), (1398450123,), (1398450146,), (1398450137,), (1398450138,), (1398450139,), (1398450140,), (1398450143,), (1398450162,), (1398450164,), (1398450166,), (1398450170,), (1398450174,), (1398450178,), (1398450190,), (1398450192,), (1398450194,), (1398450198,), (1398450208,), (1398450209,), (1398450210,), (1398450211,), (1398450213,), (1398450216,), (1398450245,), (1398450246,), (1398450247,), (1398450248,), (1398450266,), (1398450269,), (1398450270,), (1398450271,), (1398450287,), (1398450293,), (1398450305,), (1398450314,), (1398450319,), (1398450321,), (1398450332,), (1398450334,), (1398450335,), (1398450339,), (1398450343,), (1398450346,), (1398450355,), (1398450356,), (1398450357,), (1398450358,), (1398450359,), (1398450360,), (1398450363,), (1398450366,), (1398450374,), (1398450377,), (1398450391,), (1398450392,), (1398450393,), (1398450394,), (1398450409,), (1398450410,), (1398450411,), (1398450412,), (1398450415,), (1398450418,), (1398450429,), (1398450430,), (1398450431,), (1398450432,), (1398450435,), (1398450438,), (1398450450,), (1398450451,), (1398450457,), (1398450478,), (1398450479,), (1398450480,), (1398450481,), (1398450484,), (1398450485,), (1398450520,), (1398450527,), (1398450529,), (1398450530,), (1398450553,), (1398450544,), (1398450545,), (1398450546,), (1398450547,), (1398450550,), (1398450565,), (1398450566,), (1398450567,), (1398450568,), (1398450571,), (1398450595,), (1398450596,), (1398450597,), (1398450600,), (1398450603,), (1398450606,), (1398450612,), (1398450613,), (1398450614,), (1398450615,), (1398450616,), (1398450619,), (1398450622,), (1398450625,), (1398450633,), (1398450634,), (1398450635,), (1398450636,), (1398450639,), (1398450657,), (1398450659,), (1398450661,), (1398450662,), (1398450666,), (1398450686,), (1398450687,), (1398450688,), (1398450689,), (1398450692,), (1398450695,), (1398450707,), (1398450710,), (1398450718,), (1398450749,), (1398450751,), (1398450753,), (1398450755,), (1398450758,), (1398450761,), (1398450791,), (1398450792,), (1398450793,), (1398450815,), (1398450816,), (1398450818,), (1398450820,), (1398450823,), (1398450825,), (1398450850,), (1398450853,), (1398450887,), (1398450897,), (1398450922,), (1398450924,), (1398450925,), (1398450929,), (1398450932,), (1398450935,), (1398450944,), (1398450945,), (1398450946,), (1398450951,), (1398450953,), (1398450954,), (1398450957,), (1398450960,), (1398450962,), (1398450980,), (1398450982,), (1398450983,), (1398450984,), (1398450987,), (1398451028,), (1398451002,), (1398451004,), (1398451006,), (1398451012,), (1398451022,), (1398451036,), (1398451037,), (1398451038,), (1398451039,), (1398451057,), (1398451059,), (1398451061,), (1398451063,), (1398451065,), (1398451067,), (1398451074,), (1398451076,), (1398451077,), (1398451079,), (1398451101,), (1398451103,), (1398451105,), (1398451112,), (1398451117,), (1398451118,), (1398451131,), (1398451132,), (1398451133,), (1398451134,), (1398451156,), (1398451166,), (1398451169,), (1398451171,), (1398451173,), (1398451175,), (1398451185,), (1398451186,), (1398451188,), (1398451191,), (1398451193,), (1398451195,), (1398451201,), (1398451202,), (1398451203,), (1398451206,), (1398451208,), (1398451210,), (1398451213,), (1398451216,), (1398451219,), (1398451227,), (1398451235,), (1398451239,), (1398451241,), (1398451244,), (1398451246,), (1398451265,), (1398451269,), (1398451274,), (1398451275,), (1398451291,), (1398451293,), (1398451294,), (1398451295,), (1398451297,), (1398451298,), (1398451316,), (1398451317,), (1398451318,), (1398451319,), (1398451340,), (1398451343,), (1398451347,), (1398451350,), (1398451351,), (1398451354,), (1398451385,), (1398451364,), (1398451373,), (1398451379,), (1398451382,), (1398451408,), (1398451409,), (1398451410,), (1398451411,), (1398451414,), (1398451417,), (1398451429,), (1398451430,), (1398451432,), (1398451435,), (1398451438,), (1398451440,), (1398451446,), (1398451448,), (1398451450,), (1398451454,), (1398451455,), (1398451456,), (1398451459,), (1398451462,), (1398451474,), (1398451476,), (1398451477,), (1398451483,), (1398451693,), (1398451735,), (1398451774,), (1398451801,), (1398451804,), (1398451900,), (1398451902,), (1398451904,), (1398451906,), (1398451910,), (1398451928,), (1398451935,), (1398451940,), (1398451955,), (1398451989,), (1398452468,), (1398452524,), (1398452566,), (1398452588,), (1398452657,), (1398452659,), (1398452661,), (1398452663,), (1398452704,), (1398452712,), (1398452716,), (1398452721,), (1398452733,), (1398452736,), (1398452751,), (1398452753,), (1398452756,), (1398452759,), (1398452763,), (1398452765,), (1398453012,), (1398453043,), (1398453075,), (1398453112,), (1398453149,), (1398453187,), (1398453307,), (1398453344,), (1398453374,), (1398453405,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08122025': {'nb_upload': 73, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29259983]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1398453405, 1398453374, 1398453344, 1398453307, 1398453187, 1398453149, 1398453112, 1398453075, 1398453043, 1398453012, 1398452765, 1398452763, 1398452759, 1398452756, 1398452753, 1398452751, 1398452736, 1398452733, 1398452721, 1398452716, 1398452712, 1398452704] map_info['map_portfolio_photo'] : {29259983: [1398453405, 1398453374, 1398453344, 1398453307, 1398453187, 1398453149, 1398453112, 1398453075, 1398453043, 1398453012, 1398452765, 1398452763, 1398452759, 1398452756, 1398452753, 1398452751, 1398452736, 1398452733, 1398452721, 1398452716, 1398452712, 1398452704, 1398452663, 1398452661, 1398452659, 1398452657, 1398452588, 1398452566, 1398452524, 1398452468, 1398451989, 1398451955, 1398451940, 1398451935, 1398451928, 1398451910, 1398451906, 1398451904, 1398451902, 1398451900, 1398451804, 1398451801, 1398451774, 1398451735, 1398451693, 1398451483, 1398451477, 1398451476, 1398451474, 1398451462, 1398451459, 1398451456, 1398451455, 1398451454, 1398451450, 1398451448, 1398451446, 1398451440, 1398451438, 1398451435, 1398451432, 1398451430, 1398451429, 1398451417, 1398451414, 1398451411, 1398451410, 1398451409, 1398451408, 1398451382, 1398451379, 1398451373, 1398451364]} final : True mtd_id 4302 list_pids : [1398453405, 1398453374, 1398453344, 1398453307, 1398453187, 1398453149, 1398453112, 1398453075, 1398453043, 1398453012, 1398452765, 1398452763, 1398452759, 1398452756, 1398452753, 1398452751, 1398452736, 1398452733, 1398452721, 1398452716, 1398452712, 1398452704] Looping around the photos to save general results len do output : 1 /29259983Didn'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, '4197032') ('4302', '29259983', '1398453405', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453374', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453344', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453307', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453187', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453149', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453112', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453075', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453043', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398453012', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452765', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452763', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452759', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452756', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452753', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452751', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452736', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452733', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452721', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452716', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452712', None, None, None, None, None, '4197032') ('4302', None, None, None, None, None, None, None, '4197032') ('4302', '29259983', '1398452704', None, None, None, None, None, '4197032') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 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, '29259983', 'None', None, None, None, None, '4197032'), ('4302', '29259983', '1398453405', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453374', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453344', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453307', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453187', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453149', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453112', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453075', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453043', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398453012', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452765', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452763', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452759', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452756', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452753', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452751', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452736', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452733', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452721', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452716', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452712', None, None, None, None, None, '4197032'), ('4302', '29259983', '1398452704', None, None, None, None, None, '4197032')] time used for this insertion : 0.020467042922973633 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.6806797981262207 time spend to save output : 0.020772457122802734 total time spend for step 5 : 2.7014522552490234 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 (4197032) 2.47user 2.56system 0:13.67elapsed 36%CPU (0avgtext+0avgdata 168080maxresident)k 320inputs+22232outputs (5major+80181minor)pagefaults 0swaps