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 : 134803 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 (3963815) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3963815) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27936581 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3963815'] with mtr_portfolio_ids : ['27936581'] and first list_photo_ids : [] new path : /proc/134803/ Name: python3 Umask: 0002 State: R (running) Tgid: 134803 Ngid: 0 Pid: 134803 PPid: 134802 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 134803 NSpid: 134803 NSpgid: 133525 NSsid: 133525 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99056 kB VmRSS: 99056 kB RssAnon: 59896 kB RssFile: 39160 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 46 nonvoluntary_ctxt_switches: 82 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '134803', 'Ngid': '0', 'Pid': '134803', 'PPid': '134802', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '134803', 'NSpid': '134803', 'NSpgid': '133525', 'NSsid': '133525', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99056 kB', 'VmRSS': '99056 kB', 'RssAnon': '59896 kB', 'RssFile': '39160 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '46', 'nonvoluntary_ctxt_switches': '82'} ('datou_batch_current', '134803', '1106908', '0', '1106884', '865636', '99056', b'', 'marlene', '3963815') 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 (27936581) 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 (3963815 ) ) 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 (27936581) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1390240318, 'portfolio_id': 27936581}, {'photo_id': 1390240302, 'portfolio_id': 27936581}, {'photo_id': 1390240298, 'portfolio_id': 27936581}, {'photo_id': 1390240287, 'portfolio_id': 27936581}, {'photo_id': 1390240256, 'portfolio_id': 27936581}, {'photo_id': 1390240254, 'portfolio_id': 27936581}, {'photo_id': 1390240250, 'portfolio_id': 27936581}, {'photo_id': 1390240249, 'portfolio_id': 27936581}, {'photo_id': 1390240245, 'portfolio_id': 27936581}, {'photo_id': 1390240243, 'portfolio_id': 27936581}, {'photo_id': 1390240239, 'portfolio_id': 27936581}, {'photo_id': 1390240238, 'portfolio_id': 27936581}, {'photo_id': 1390240199, 'portfolio_id': 27936581}, {'photo_id': 1390240196, 'portfolio_id': 27936581}, {'photo_id': 1390240194, 'portfolio_id': 27936581}, {'photo_id': 1390240188, 'portfolio_id': 27936581}, {'photo_id': 1390240187, 'portfolio_id': 27936581}, {'photo_id': 1390240144, 'portfolio_id': 27936581}, {'photo_id': 1390240141, 'portfolio_id': 27936581}, {'photo_id': 1390240138, 'portfolio_id': 27936581}, {'photo_id': 1390240136, 'portfolio_id': 27936581}, {'photo_id': 1390240129, 'portfolio_id': 27936581}, {'photo_id': 1390240125, 'portfolio_id': 27936581}, {'photo_id': 1390240123, 'portfolio_id': 27936581}, {'photo_id': 1390240119, 'portfolio_id': 27936581}, {'photo_id': 1390240067, 'portfolio_id': 27936581}, {'photo_id': 1390240063, 'portfolio_id': 27936581}, {'photo_id': 1390240061, 'portfolio_id': 27936581}, {'photo_id': 1390240057, 'portfolio_id': 27936581}, {'photo_id': 1390240013, 'portfolio_id': 27936581}, {'photo_id': 1390240011, 'portfolio_id': 27936581}, {'photo_id': 1390240009, 'portfolio_id': 27936581}, {'photo_id': 1390239807, 'portfolio_id': 27936581}, {'photo_id': 1390239806, 'portfolio_id': 27936581}] map_portfolio_id_photo_id: {27936581: [1390240318, 1390240302, 1390240298, 1390240287, 1390240256, 1390240254, 1390240250, 1390240249, 1390240245, 1390240243, 1390240239, 1390240238, 1390240199, 1390240196, 1390240194, 1390240188, 1390240187, 1390240144, 1390240141, 1390240138, 1390240136, 1390240129, 1390240125, 1390240123, 1390240119, 1390240067, 1390240063, 1390240061, 1390240057, 1390240013, 1390240011, 1390240009, 1390239807, 1390239806]} ##### 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.015956640243530273 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Oct 30 05:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27936581) 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 : 27936581 get user id for portfolio 27936581 get sub ptf for main ptf 27936581, type 3726 and hashtags ['Carton_brun', 'kraft', 'Carton_gris', 'Teint_Dans_La_Masse', 'autre_refus', 'mal_croppe', 'environnement', 'cartonnette', 'plastique', 'papier', 'flou', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27936581 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','kraft','Carton_gris','Teint_Dans_La_Masse','autre_refus','mal_croppe','environnement','cartonnette','plastique','papier','flou','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27936581 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','kraft','Carton_gris','Teint_Dans_La_Masse','autre_refus','mal_croppe','environnement','cartonnette','plastique','papier','flou','metal')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 27936581, 'sub_port_id': 27936584, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865712, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 56)}, 'kraft': {'main_port_id': 27936581, 'sub_port_id': 27936585, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865713, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 56)}, 'papier': {'main_port_id': 27936581, 'sub_port_id': 27936586, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865714, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 56)}, 'mal_croppe': {'main_port_id': 27936581, 'sub_port_id': 27936587, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865715, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 56)}, 'environnement': {'main_port_id': 27936581, 'sub_port_id': 27936588, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865716, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 56)}, 'Carton_brun': {'main_port_id': 27936581, 'sub_port_id': 27936589, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865717, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 56)}, 'flou': {'main_port_id': 27936581, 'sub_port_id': 27936590, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865718, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 27936581, 'sub_port_id': 27936591, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865719, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 56)}, 'autre_refus': {'main_port_id': 27936581, 'sub_port_id': 27936592, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865720, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 56)}, 'plastique': {'main_port_id': 27936581, 'sub_port_id': 27936593, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865721, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 56)}, 'Carton_gris': {'main_port_id': 27936581, 'sub_port_id': 27936594, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865722, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 56)}, 'cartonnette': {'main_port_id': 27936581, 'sub_port_id': 27936595, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865723, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27936584 , 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=27936581 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 (27936584) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27936581) result : ((1390239806,), (1390239807,), (1390240009,), (1390240011,), (1390240013,), (1390240057,), (1390240061,), (1390240063,), (1390240067,), (1390240119,), (1390240123,), (1390240125,), (1390240129,), (1390240136,), (1390240138,), (1390240141,), (1390240144,), (1390240187,), (1390240188,), (1390240194,), (1390240196,), (1390240199,), (1390240238,), (1390240239,), (1390240243,), (1390240245,), (1390240249,), (1390240250,), (1390240254,), (1390240256,), (1390240287,), (1390240298,), (1390240302,), (1390240318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27936585 , 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=27936581 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 (27936585) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27936581) result : ((1390239806,), (1390239807,), (1390240009,), (1390240011,), (1390240013,), (1390240057,), (1390240061,), (1390240063,), (1390240067,), (1390240119,), (1390240123,), (1390240125,), (1390240129,), (1390240136,), (1390240138,), (1390240141,), (1390240144,), (1390240187,), (1390240188,), (1390240194,), (1390240196,), (1390240199,), (1390240238,), (1390240239,), (1390240243,), (1390240245,), (1390240249,), (1390240250,), (1390240254,), (1390240256,), (1390240287,), (1390240298,), (1390240302,), (1390240318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27936586 , 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=27936581 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 (27936586) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27936581) result : ((1390239806,), (1390239807,), (1390240009,), (1390240011,), (1390240013,), (1390240057,), (1390240061,), (1390240063,), (1390240067,), (1390240119,), (1390240123,), (1390240125,), (1390240129,), (1390240136,), (1390240138,), (1390240141,), (1390240144,), (1390240187,), (1390240188,), (1390240194,), (1390240196,), (1390240199,), (1390240238,), (1390240239,), (1390240243,), (1390240245,), (1390240249,), (1390240250,), (1390240254,), (1390240256,), (1390240287,), (1390240298,), (1390240302,), (1390240318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27936587 , 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=27936581 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 (27936587) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27936581) result : ((1390239806,), (1390239807,), (1390240009,), (1390240011,), (1390240013,), (1390240057,), (1390240061,), (1390240063,), (1390240067,), (1390240119,), (1390240123,), (1390240125,), (1390240129,), (1390240136,), (1390240138,), (1390240141,), (1390240144,), (1390240187,), (1390240188,), (1390240194,), (1390240196,), (1390240199,), (1390240238,), (1390240239,), (1390240243,), (1390240245,), (1390240249,), (1390240250,), (1390240254,), (1390240256,), (1390240287,), (1390240298,), (1390240302,), (1390240318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27936588 , 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=27936581 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 (27936588) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27936581) result : ((1390239806,), (1390239807,), (1390240009,), (1390240011,), (1390240013,), (1390240057,), (1390240061,), (1390240063,), (1390240067,), (1390240119,), (1390240123,), (1390240125,), (1390240129,), (1390240136,), (1390240138,), (1390240141,), (1390240144,), (1390240187,), (1390240188,), (1390240194,), (1390240196,), (1390240199,), (1390240238,), (1390240239,), (1390240243,), (1390240245,), (1390240249,), (1390240250,), (1390240254,), (1390240256,), (1390240287,), (1390240298,), (1390240302,), (1390240318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27936589 , 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=27936581 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 (27936589) result : ((1390240192,), (1390240211,), (1390240212,), (1390240214,), (1390240294,), (1390240295,), (1390240296,), (1390240310,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27936581) result : ((1390239806,), (1390239807,), (1390240009,), (1390240011,), (1390240013,), (1390240057,), (1390240061,), (1390240063,), (1390240067,), (1390240119,), (1390240123,), (1390240125,), (1390240129,), (1390240136,), (1390240138,), (1390240141,), (1390240144,), (1390240187,), (1390240188,), (1390240194,), (1390240196,), (1390240199,), (1390240238,), (1390240239,), (1390240243,), (1390240245,), (1390240249,), (1390240250,), (1390240254,), (1390240256,), (1390240287,), (1390240298,), (1390240302,), (1390240318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27936590 , 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=27936581 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 (27936590) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27936581) result : ((1390239806,), (1390239807,), (1390240009,), (1390240011,), (1390240013,), (1390240057,), (1390240061,), (1390240063,), (1390240067,), (1390240119,), (1390240123,), (1390240125,), (1390240129,), (1390240136,), (1390240138,), (1390240141,), (1390240144,), (1390240187,), (1390240188,), (1390240194,), (1390240196,), (1390240199,), (1390240238,), (1390240239,), (1390240243,), (1390240245,), (1390240249,), (1390240250,), (1390240254,), (1390240256,), (1390240287,), (1390240298,), (1390240302,), (1390240318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27936591 , 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=27936581 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 (27936591) result : ((1390240209,), (1390240286,), (1390240288,), (1390240289,), (1390240306,), (1390240307,), (1390240308,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27936581) result : ((1390239806,), (1390239807,), (1390240009,), (1390240011,), (1390240013,), (1390240057,), (1390240061,), (1390240063,), (1390240067,), (1390240119,), (1390240123,), (1390240125,), (1390240129,), (1390240136,), (1390240138,), (1390240141,), (1390240144,), (1390240187,), (1390240188,), (1390240194,), (1390240196,), (1390240199,), (1390240238,), (1390240239,), (1390240243,), (1390240245,), (1390240249,), (1390240250,), (1390240254,), (1390240256,), (1390240287,), (1390240298,), (1390240302,), (1390240318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27936592 , 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=27936581 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 (27936592) result : ((1390240189,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27936581) result : ((1390239806,), (1390239807,), (1390240009,), (1390240011,), (1390240013,), (1390240057,), (1390240061,), (1390240063,), (1390240067,), (1390240119,), (1390240123,), (1390240125,), (1390240129,), (1390240136,), (1390240138,), (1390240141,), (1390240144,), (1390240187,), (1390240188,), (1390240194,), (1390240196,), (1390240199,), (1390240238,), (1390240239,), (1390240243,), (1390240245,), (1390240249,), (1390240250,), (1390240254,), (1390240256,), (1390240287,), (1390240298,), (1390240302,), (1390240318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27936593 , 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=27936581 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 (27936593) result : ((1390240193,), (1390240215,), (1390240216,), (1390240300,), (1390240311,), (1390240312,), (1390240313,), (1390240314,), (1390240315,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27936581) result : ((1390239806,), (1390239807,), (1390240009,), (1390240011,), (1390240013,), (1390240057,), (1390240061,), (1390240063,), (1390240067,), (1390240119,), (1390240123,), (1390240125,), (1390240129,), (1390240136,), (1390240138,), (1390240141,), (1390240144,), (1390240187,), (1390240188,), (1390240194,), (1390240196,), (1390240199,), (1390240238,), (1390240239,), (1390240243,), (1390240245,), (1390240249,), (1390240250,), (1390240254,), (1390240256,), (1390240287,), (1390240298,), (1390240302,), (1390240318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27936594 , 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=27936581 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 (27936594) result : ((1390239917,), (1390239918,), (1390240190,), (1390240290,), (1390240291,), (1390240292,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27936581) result : ((1390239806,), (1390239807,), (1390240009,), (1390240011,), (1390240013,), (1390240057,), (1390240061,), (1390240063,), (1390240067,), (1390240119,), (1390240123,), (1390240125,), (1390240129,), (1390240136,), (1390240138,), (1390240141,), (1390240144,), (1390240187,), (1390240188,), (1390240194,), (1390240196,), (1390240199,), (1390240238,), (1390240239,), (1390240243,), (1390240245,), (1390240249,), (1390240250,), (1390240254,), (1390240256,), (1390240287,), (1390240298,), (1390240302,), (1390240318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27936595 , 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=27936581 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 (27936595) result : ((1390240293,), (1390240309,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27936581) result : ((1390239806,), (1390239807,), (1390240009,), (1390240011,), (1390240013,), (1390240057,), (1390240061,), (1390240063,), (1390240067,), (1390240119,), (1390240123,), (1390240125,), (1390240129,), (1390240136,), (1390240138,), (1390240141,), (1390240144,), (1390240187,), (1390240188,), (1390240194,), (1390240196,), (1390240199,), (1390240238,), (1390240239,), (1390240243,), (1390240245,), (1390240249,), (1390240250,), (1390240254,), (1390240256,), (1390240287,), (1390240298,), (1390240302,), (1390240318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27936581 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','kraft','Carton_gris','Teint_Dans_La_Masse','autre_refus','mal_croppe','environnement','cartonnette','plastique','papier','flou','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27936581 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','kraft','Carton_gris','Teint_Dans_La_Masse','autre_refus','mal_croppe','environnement','cartonnette','plastique','papier','flou','metal')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 27936581, 'sub_port_id': 27936596, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865724, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 58)}, 'kraft': {'main_port_id': 27936581, 'sub_port_id': 27936597, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865725, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 58)}, 'papier': {'main_port_id': 27936581, 'sub_port_id': 27936598, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865726, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 58)}, 'mal_croppe': {'main_port_id': 27936581, 'sub_port_id': 27936599, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865727, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 58)}, 'environnement': {'main_port_id': 27936581, 'sub_port_id': 27936600, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865728, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 58)}, 'Carton_brun': {'main_port_id': 27936581, 'sub_port_id': 27936601, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865729, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 58)}, 'flou': {'main_port_id': 27936581, 'sub_port_id': 27936602, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865730, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 27936581, 'sub_port_id': 27936603, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865731, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 58)}, 'autre_refus': {'main_port_id': 27936581, 'sub_port_id': 27936604, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865732, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 58)}, 'plastique': {'main_port_id': 27936581, 'sub_port_id': 27936605, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865733, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 58)}, 'Carton_gris': {'main_port_id': 27936581, 'sub_port_id': 27936606, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865734, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 58)}, 'cartonnette': {'main_port_id': 27936581, 'sub_port_id': 27936607, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18865735, 'last_updated_at': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 5, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 5, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27936596,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27936584 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27936597,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27936585 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27936598,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27936586 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27936599,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27936587 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27936600,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27936588 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27936601,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27936589 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27936602,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27936590 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27936603,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27936591 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27936604,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27936592 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27936605,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27936593 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27936606,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27936594 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27936607,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27936595 lien utilise dans velours : https://marlene.fotonower.com/velours/27936596,27936597,27936598,27936599,27936600,27936601,27936602,27936603,27936604,27936605,27936606,27936607?tags=metal,kraft,papier,mal_croppe,environnement,Carton_brun,flou,Teint_Dans_La_Masse,autre_refus,plastique,Carton_gris,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27936581]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1390240318, 1390240302, 1390240298, 1390240287, 1390240256, 1390240254, 1390240250, 1390240249, 1390240245, 1390240243, 1390240239, 1390240238] map_info['map_portfolio_photo'] : {27936581: [1390240318, 1390240302, 1390240298, 1390240287, 1390240256, 1390240254, 1390240250, 1390240249, 1390240245, 1390240243, 1390240239, 1390240238, 1390240199, 1390240196, 1390240194, 1390240188, 1390240187, 1390240144, 1390240141, 1390240138, 1390240136, 1390240129, 1390240125, 1390240123, 1390240119, 1390240067, 1390240063, 1390240061, 1390240057, 1390240013, 1390240011, 1390240009, 1390239807, 1390239806]} final : False mtd_id 4302 list_pids : [1390240318, 1390240302, 1390240298, 1390240287, 1390240256, 1390240254, 1390240250, 1390240249, 1390240245, 1390240243, 1390240239, 1390240238] Looping around the photos to save general results len do output : 1 /27936581. 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, '3963815') ('4302', '27936581', '1390240318', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240302', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240298', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240287', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240256', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240254', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240250', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240249', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240245', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240243', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240239', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240238', None, None, None, None, None, '3963815') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27936581', "{'metal': 27936584, 'kraft': 27936585, 'papier': 27936586, 'mal_croppe': 27936587, 'environnement': 27936588, 'Carton_brun': 27936589, 'flou': 27936590, 'Teint_Dans_La_Masse': 27936591, 'autre_refus': 27936592, 'plastique': 27936593, 'Carton_gris': 27936594, 'cartonnette': 27936595}", None, None, None, None, '3963815'), ('4302', '27936581', '1390240318', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240302', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240298', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240287', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240256', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240254', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240250', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240249', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240245', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240243', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240239', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240238', None, None, None, None, None, '3963815')] time used for this insertion : 0.01198434829711914 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4710538387298584 time spend to save output : 0.012322664260864258 total time spend for step 1 : 1.4833765029907227 step2:final Thu Oct 30 05:15:01 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 (27936581) 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 27936581 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1390239807,1390239806,1390240013,1390240011,1390240067,1390240009,1390240063,1390240061,1390240057,1390240129,1390240125,1390240123,1390240119,1390240144,1390240141,1390240138,1390240136,1390240199,1390240196,1390240194,1390240188,1390240187,1390240254,1390240256,1390240249,1390240250,1390240243,1390240245,1390240238,1390240239,1390240318,1390240302,1390240298,1390240287); 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([27936581]) Inside saveOutput : final : False verbose : True original output for save of step final : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ('0.06182435497134689',), 1390240245: ('0.06182435497134689',), 1390240243: ('0.06182435497134689',), 1390240239: ('0.06182435497134689',), 1390240238: ('0.06182435497134689',)} new output for save of step final : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ('0.06182435497134689',), 1390240245: ('0.06182435497134689',), 1390240243: ('0.06182435497134689',), 1390240239: ('0.06182435497134689',), 1390240238: ('0.06182435497134689',)} [1390240318, 1390240302, 1390240298, 1390240287, 1390240256, 1390240254, 1390240250, 1390240249, 1390240245, 1390240243, 1390240239, 1390240238] map_info['map_portfolio_photo'] : {27936581: [1390240318, 1390240302, 1390240298, 1390240287, 1390240256, 1390240254, 1390240250, 1390240249, 1390240245, 1390240243, 1390240239, 1390240238, 1390240199, 1390240196, 1390240194, 1390240188, 1390240187, 1390240144, 1390240141, 1390240138, 1390240136, 1390240129, 1390240125, 1390240123, 1390240119, 1390240067, 1390240063, 1390240061, 1390240057, 1390240013, 1390240011, 1390240009, 1390239807, 1390239806]} final : False mtd_id 4302 list_pids : [1390240318, 1390240302, 1390240298, 1390240287, 1390240256, 1390240254, 1390240250, 1390240249, 1390240245, 1390240243, 1390240239, 1390240238] Looping around the photos to save general results len do output : 12 /1390240318.Didn't retrieve data . /1390240302.Didn't retrieve data . /1390240298.Didn't retrieve data . /1390240287.Didn't retrieve data . /1390240256.Didn't retrieve data . /1390240254.Didn't retrieve data . /1390240250.Didn't retrieve data . /1390240249.Didn't retrieve data . /1390240245.Didn't retrieve data . /1390240243.Didn't retrieve data . /1390240239.Didn't retrieve data . /1390240238.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, '3963815') ('4302', '27936581', '1390240318', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240302', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240298', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240287', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240256', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240254', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240250', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240249', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240245', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240243', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240239', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240238', None, None, None, None, None, '3963815') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '27936581', '1390240318', '0.06182435497134689', None, None, None, None, '3963815'), ('4302', '27936581', '1390240302', '0.06182435497134689', None, None, None, None, '3963815'), ('4302', '27936581', '1390240298', '0.06182435497134689', None, None, None, None, '3963815'), ('4302', '27936581', '1390240287', '0.06182435497134689', None, None, None, None, '3963815'), ('4302', '27936581', '1390240256', '0.06182435497134689', None, None, None, None, '3963815'), ('4302', '27936581', '1390240254', '0.06182435497134689', None, None, None, None, '3963815'), ('4302', '27936581', '1390240250', '0.06182435497134689', None, None, None, None, '3963815'), ('4302', '27936581', '1390240249', '0.06182435497134689', None, None, None, None, '3963815'), ('4302', '27936581', '1390240245', '0.06182435497134689', None, None, None, None, '3963815'), ('4302', '27936581', '1390240243', '0.06182435497134689', None, None, None, None, '3963815'), ('4302', '27936581', '1390240239', '0.06182435497134689', None, None, None, None, '3963815'), ('4302', '27936581', '1390240238', '0.06182435497134689', None, None, None, None, '3963815')] time used for this insertion : 0.011626720428466797 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06277847290039062 time spend to save output : 0.012248039245605469 total time spend for step 2 : 0.0750265121459961 step3:velours_tree Thu Oct 30 05:15:01 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 : {27936581: [{'metal': 27936584, 'kraft': 27936585, 'papier': 27936586, 'mal_croppe': 27936587, 'environnement': 27936588, 'Carton_brun': 27936589, 'flou': 27936590, 'Teint_Dans_La_Masse': 27936591, 'autre_refus': 27936592, 'plastique': 27936593, 'Carton_gris': 27936594, 'cartonnette': 27936595}]} input_args_next_step : {27936581: ()} output_args : {27936581: [{'metal': 27936584, 'kraft': 27936585, 'papier': 27936586, 'mal_croppe': 27936587, 'environnement': 27936588, 'Carton_brun': 27936589, 'flou': 27936590, 'Teint_Dans_La_Masse': 27936591, 'autre_refus': 27936592, 'plastique': 27936593, 'Carton_gris': 27936594, 'cartonnette': 27936595}]} args : 27936581 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 : ({'metal': 27936584, 'kraft': 27936585, 'papier': 27936586, 'mal_croppe': 27936587, 'environnement': 27936588, 'Carton_brun': 27936589, 'flou': 27936590, 'Teint_Dans_La_Masse': 27936591, 'autre_refus': 27936592, 'plastique': 27936593, 'Carton_gris': 27936594, 'cartonnette': 27936595},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27936581) 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([27936581]) 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.27655768394470215 time spend to save output : 4.935264587402344e-05 total time spend for step 3 : 0.27660703659057617 step4:send_mail_cod Thu Oct 30 05:15:01 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 : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ('0.06182435497134689',), 1390240245: ('0.06182435497134689',), 1390240243: ('0.06182435497134689',), 1390240239: ('0.06182435497134689',), 1390240238: ('0.06182435497134689',)} input_args_next_step : {1390240318: ()} output_args : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ('0.06182435497134689',), 1390240245: ('0.06182435497134689',), 1390240243: ('0.06182435497134689',), 1390240239: ('0.06182435497134689',), 1390240238: ('0.06182435497134689',)} args : 1390240318 depend.output_id : 0 input_args_next_step : {1390240318: ('0.06182435497134689',), 1390240302: ()} output_args : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ('0.06182435497134689',), 1390240245: ('0.06182435497134689',), 1390240243: ('0.06182435497134689',), 1390240239: ('0.06182435497134689',), 1390240238: ('0.06182435497134689',)} args : 1390240302 depend.output_id : 0 input_args_next_step : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ()} output_args : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ('0.06182435497134689',), 1390240245: ('0.06182435497134689',), 1390240243: ('0.06182435497134689',), 1390240239: ('0.06182435497134689',), 1390240238: ('0.06182435497134689',)} args : 1390240298 depend.output_id : 0 input_args_next_step : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ()} output_args : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ('0.06182435497134689',), 1390240245: ('0.06182435497134689',), 1390240243: ('0.06182435497134689',), 1390240239: ('0.06182435497134689',), 1390240238: ('0.06182435497134689',)} args : 1390240287 depend.output_id : 0 input_args_next_step : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ()} output_args : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ('0.06182435497134689',), 1390240245: ('0.06182435497134689',), 1390240243: ('0.06182435497134689',), 1390240239: ('0.06182435497134689',), 1390240238: ('0.06182435497134689',)} args : 1390240256 depend.output_id : 0 input_args_next_step : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ()} output_args : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ('0.06182435497134689',), 1390240245: ('0.06182435497134689',), 1390240243: ('0.06182435497134689',), 1390240239: ('0.06182435497134689',), 1390240238: ('0.06182435497134689',)} args : 1390240254 depend.output_id : 0 input_args_next_step : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ()} output_args : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ('0.06182435497134689',), 1390240245: ('0.06182435497134689',), 1390240243: ('0.06182435497134689',), 1390240239: ('0.06182435497134689',), 1390240238: ('0.06182435497134689',)} args : 1390240250 depend.output_id : 0 input_args_next_step : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ()} output_args : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ('0.06182435497134689',), 1390240245: ('0.06182435497134689',), 1390240243: ('0.06182435497134689',), 1390240239: ('0.06182435497134689',), 1390240238: ('0.06182435497134689',)} args : 1390240249 depend.output_id : 0 input_args_next_step : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ('0.06182435497134689',), 1390240245: ()} output_args : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ('0.06182435497134689',), 1390240245: ('0.06182435497134689',), 1390240243: ('0.06182435497134689',), 1390240239: ('0.06182435497134689',), 1390240238: ('0.06182435497134689',)} args : 1390240245 depend.output_id : 0 input_args_next_step : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ('0.06182435497134689',), 1390240245: ('0.06182435497134689',), 1390240243: ()} output_args : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ('0.06182435497134689',), 1390240245: ('0.06182435497134689',), 1390240243: ('0.06182435497134689',), 1390240239: ('0.06182435497134689',), 1390240238: ('0.06182435497134689',)} args : 1390240243 depend.output_id : 0 input_args_next_step : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ('0.06182435497134689',), 1390240245: ('0.06182435497134689',), 1390240243: ('0.06182435497134689',), 1390240239: ()} output_args : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ('0.06182435497134689',), 1390240245: ('0.06182435497134689',), 1390240243: ('0.06182435497134689',), 1390240239: ('0.06182435497134689',), 1390240238: ('0.06182435497134689',)} args : 1390240239 depend.output_id : 0 input_args_next_step : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ('0.06182435497134689',), 1390240245: ('0.06182435497134689',), 1390240243: ('0.06182435497134689',), 1390240239: ('0.06182435497134689',), 1390240238: ()} output_args : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ('0.06182435497134689',), 1390240245: ('0.06182435497134689',), 1390240243: ('0.06182435497134689',), 1390240239: ('0.06182435497134689',), 1390240238: ('0.06182435497134689',)} args : 1390240238 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 : {27936581: [{'metal': 27936584, 'kraft': 27936585, 'papier': 27936586, 'mal_croppe': 27936587, 'environnement': 27936588, 'Carton_brun': 27936589, 'flou': 27936590, 'Teint_Dans_La_Masse': 27936591, 'autre_refus': 27936592, 'plastique': 27936593, 'Carton_gris': 27936594, 'cartonnette': 27936595}]} input_args_next_step : {1390240318: ('0.06182435497134689',), 1390240302: ('0.06182435497134689',), 1390240298: ('0.06182435497134689',), 1390240287: ('0.06182435497134689',), 1390240256: ('0.06182435497134689',), 1390240254: ('0.06182435497134689',), 1390240250: ('0.06182435497134689',), 1390240249: ('0.06182435497134689',), 1390240245: ('0.06182435497134689',), 1390240243: ('0.06182435497134689',), 1390240239: ('0.06182435497134689',), 1390240238: ('0.06182435497134689',), 27936581: ()} output_args : {27936581: [{'metal': 27936584, 'kraft': 27936585, 'papier': 27936586, 'mal_croppe': 27936587, 'environnement': 27936588, 'Carton_brun': 27936589, 'flou': 27936590, 'Teint_Dans_La_Masse': 27936591, 'autre_refus': 27936592, 'plastique': 27936593, 'Carton_gris': 27936594, 'cartonnette': 27936595}]} args : 27936581 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 :13, first value : ('0.06182435497134689',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27936581) 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 (1390240318,1390240302,1390240298,1390240287,1390240256,1390240254,1390240250,1390240249,1390240245,1390240243,1390240239,1390240238) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1390240238 begin to download photo : 1390240245 begin to download photo : 1390240254 begin to download photo : 1390240298 download finish for photo 1390240254 begin to download photo : 1390240256 download finish for photo 1390240245 begin to download photo : 1390240249 download finish for photo 1390240238 begin to download photo : 1390240239 download finish for photo 1390240298 begin to download photo : 1390240302 download finish for photo 1390240256 begin to download photo : 1390240287 download finish for photo 1390240239 begin to download photo : 1390240243 download finish for photo 1390240249 begin to download photo : 1390240250 download finish for photo 1390240302 begin to download photo : 1390240318 download finish for photo 1390240287 download finish for photo 1390240250 download finish for photo 1390240318 download finish for photo 1390240243 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette279365841761797701/ imagette279365851761797701/ imagette279365871761797701/ imagette279365901761797701/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P27936581_30-10-2025_05_15_01.pdf 27936584 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=27936584 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279365841761797701 27936585 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=27936585 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279365851761797701 27936587 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=27936587 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279365871761797701 27936590 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=27936590 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279365901761797701 27936592 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=27936592 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390240189: '1761797465_484278_1390240123_bbbe84ae1a036b701fd6c06e2c30b48a_rle_crop_4003715076_0.png'} change filename to text .imagette279365921761797701/ imagette279365921761797701/1761797465_484278_1390240123_bbbe84ae1a036b701fd6c06e2c30b48a_rle_crop_4003715076_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/5f6be384ee0058efeee5e11f8add078e_42921102.png imagette279365921761797701 27936593 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=27936593 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390240193: '1761797465_484278_1390240125_dfc5120cd4da479a7492db2dad7add29_rle_crop_4003715070_0.png', 1390240215: '1761797487_484937_1390240063_e72b082cabc2c5fdb03907bc388a8629_rle_crop_4003715201_0.png', 1390240216: '1761797487_484937_1390240061_72aecc9378cd63bd5199a0f7f5fb0a7c_rle_crop_4003715208_0.png', 1390240300: '1761797586_490665_1390240196_7a10acc78991fa907a6ec76f847ee1ae_rle_crop_4003715377_0.png', 1390240311: '1761797608_491057_1390240199_3e797ef413bd5e1268e7c07270931090_rle_crop_4003715545_0.png', 1390240312: '1761797608_491057_1390240199_3e797ef413bd5e1268e7c07270931090_rle_crop_4003715556_0.png', 1390240313: '1761797608_491057_1390240141_499ca5e8e6d8008680c39493ededd3da_rle_crop_4003715563_0.png', 1390240314: '1761797608_491057_1390240138_51300ebf14da6a8b03f1111931151032_rle_crop_4003715575_0.png', 1390240315: '1761797608_491057_1390240136_9301976e233ec720f5f01233772ae3a8_rle_crop_4003715592_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/0a6f1602e6c69bde4a948757692bf19c_29392991.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/397452a46e3645cd3ba0a4ff831be1a8_86170576.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/2d396c09249d9ac0e1bb5bb31e85cf63_62872486.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/2f6c31b3e0deca40be05cef6dd70c4e7_66857656.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/0ba976a493e3693018a529aa76895099_34147453.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/b7bbfa7831d395a0f74aca7f27de4222_9693478.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/19688a8abe4223f99e50d58acff13ac3_3761665.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/33ed8f3b993cebc5690f1aa95519ecd5_34506726.png change filename to text .imagette279365931761797701/ imagette279365931761797701/1761797608_491057_1390240199_3e797ef413bd5e1268e7c07270931090_rle_crop_4003715556_0.png.png imagette279365931761797701/1761797487_484937_1390240063_e72b082cabc2c5fdb03907bc388a8629_rle_crop_4003715201_0.png.png imagette279365931761797701/1761797608_491057_1390240141_499ca5e8e6d8008680c39493ededd3da_rle_crop_4003715563_0.png.png imagette279365931761797701/1761797608_491057_1390240199_3e797ef413bd5e1268e7c07270931090_rle_crop_4003715545_0.png.png imagette279365931761797701/1761797586_490665_1390240196_7a10acc78991fa907a6ec76f847ee1ae_rle_crop_4003715377_0.png.png imagette279365931761797701/1761797487_484937_1390240061_72aecc9378cd63bd5199a0f7f5fb0a7c_rle_crop_4003715208_0.png.png imagette279365931761797701/1761797608_491057_1390240136_9301976e233ec720f5f01233772ae3a8_rle_crop_4003715592_0.png.png imagette279365931761797701/1761797608_491057_1390240138_51300ebf14da6a8b03f1111931151032_rle_crop_4003715575_0.png.png imagette279365931761797701/1761797465_484278_1390240125_dfc5120cd4da479a7492db2dad7add29_rle_crop_4003715070_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/829d0d4b9d75e63758205a0e4c6acc08_14474114.png imagette279365931761797701 27936595 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=27936595 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390240293: '1761797586_490665_1390240187_0715231c79969b77efd7b3a8ceb420f7_rle_crop_4003715422_0.png', 1390240309: '1761797608_491057_1390240199_3e797ef413bd5e1268e7c07270931090_rle_crop_4003715550_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/dec47f2ea042a0e8a57a061d03543550_26206589.png change filename to text .imagette279365951761797702/ imagette279365951761797702/1761797586_490665_1390240187_0715231c79969b77efd7b3a8ceb420f7_rle_crop_4003715422_0.png.png imagette279365951761797702/1761797608_491057_1390240199_3e797ef413bd5e1268e7c07270931090_rle_crop_4003715550_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/c973dec6ab793175f7a96db9fb74e8cb_53326667.png imagette279365951761797702 27936589 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=27936589 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390240192: '1761797465_484278_1390240125_dfc5120cd4da479a7492db2dad7add29_rle_crop_4003715066_0.png', 1390240211: '1761797487_484937_1390240129_8ba221fad9f81dc658219d379fb8382f_rle_crop_4003715189_0.png', 1390240212: '1761797487_484937_1390240061_72aecc9378cd63bd5199a0f7f5fb0a7c_rle_crop_4003715209_0.png', 1390240214: '1761797487_484937_1390240057_4fed471ef4aedf838fe7772e6398ac26_rle_crop_4003715223_0.png', 1390240294: '1761797586_490665_1390240196_7a10acc78991fa907a6ec76f847ee1ae_rle_crop_4003715372_0.png', 1390240295: '1761797586_490665_1390240194_4e2d074d979abccd7f758086bb48b666_rle_crop_4003715384_0.png', 1390240296: '1761797586_490665_1390240188_a3214c27478b56c4eb9c6332d6b43a9c_rle_crop_4003715397_0.png', 1390240310: '1761797608_491057_1390240199_3e797ef413bd5e1268e7c07270931090_rle_crop_4003715548_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/3ab0d9fc623c0efd5ca8f4d3229da7c3_29937395.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/a10d8347872bf6916f3c3f5114a518fa_24841053.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/1907a1593f8283670aa31d197731171a_59304918.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/6bbabc336fc925c9e008f43d8b87e105_90207003.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/09a2d5df3d4dada66cba4c957a71610f_48135589.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/4f3d3db43472f179e85735663b70d25e_5105183.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/f5381a54d7b04303385a2175e12eaf9f_68333437.png change filename to text .imagette279365891761797702/ imagette279365891761797702/1761797465_484278_1390240125_dfc5120cd4da479a7492db2dad7add29_rle_crop_4003715066_0.png.png imagette279365891761797702/1761797586_490665_1390240188_a3214c27478b56c4eb9c6332d6b43a9c_rle_crop_4003715397_0.png.png imagette279365891761797702/1761797487_484937_1390240129_8ba221fad9f81dc658219d379fb8382f_rle_crop_4003715189_0.png.png imagette279365891761797702/1761797487_484937_1390240061_72aecc9378cd63bd5199a0f7f5fb0a7c_rle_crop_4003715209_0.png.png imagette279365891761797702/1761797586_490665_1390240196_7a10acc78991fa907a6ec76f847ee1ae_rle_crop_4003715372_0.png.png imagette279365891761797702/1761797586_490665_1390240194_4e2d074d979abccd7f758086bb48b666_rle_crop_4003715384_0.png.png imagette279365891761797702/1761797608_491057_1390240199_3e797ef413bd5e1268e7c07270931090_rle_crop_4003715548_0.png.png imagette279365891761797702/1761797487_484937_1390240057_4fed471ef4aedf838fe7772e6398ac26_rle_crop_4003715223_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/049fcc62ee5b16555f647bfbf81f94a7_82242144.png imagette279365891761797702 27936591 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=27936591 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390240209: '1761797487_484937_1390240061_72aecc9378cd63bd5199a0f7f5fb0a7c_rle_crop_4003715210_0.png', 1390240286: '1761797586_490665_1390240196_7a10acc78991fa907a6ec76f847ee1ae_rle_crop_4003715375_0.png', 1390240288: '1761797586_490665_1390240194_4e2d074d979abccd7f758086bb48b666_rle_crop_4003715388_0.png', 1390240289: '1761797586_490665_1390240188_a3214c27478b56c4eb9c6332d6b43a9c_rle_crop_4003715407_0.png', 1390240306: '1761797608_491057_1390240199_3e797ef413bd5e1268e7c07270931090_rle_crop_4003715553_0.png', 1390240307: '1761797608_491057_1390240199_3e797ef413bd5e1268e7c07270931090_rle_crop_4003715551_0.png', 1390240308: '1761797608_491057_1390240136_9301976e233ec720f5f01233772ae3a8_rle_crop_4003715588_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/ff86c2353d46a29af54b740ac837d9be_90747892.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/af672f2e0d94b5eabeeaac3275597645_56798525.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/945e8ae86e594aee17713be833c697f5_80101909.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/5502a3143a76545847187d98774630b5_89492052.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/f1341e760e2e8c0419daffdeffbef897_44799945.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/f17c6546b426ffe28da551940be9b03f_74996031.png change filename to text .imagette279365911761797703/ imagette279365911761797703/1761797608_491057_1390240199_3e797ef413bd5e1268e7c07270931090_rle_crop_4003715553_0.png.png imagette279365911761797703/1761797586_490665_1390240194_4e2d074d979abccd7f758086bb48b666_rle_crop_4003715388_0.png.png imagette279365911761797703/1761797608_491057_1390240136_9301976e233ec720f5f01233772ae3a8_rle_crop_4003715588_0.png.png imagette279365911761797703/1761797487_484937_1390240061_72aecc9378cd63bd5199a0f7f5fb0a7c_rle_crop_4003715210_0.png.png imagette279365911761797703/1761797608_491057_1390240199_3e797ef413bd5e1268e7c07270931090_rle_crop_4003715551_0.png.png imagette279365911761797703/1761797586_490665_1390240196_7a10acc78991fa907a6ec76f847ee1ae_rle_crop_4003715375_0.png.png imagette279365911761797703/1761797586_490665_1390240188_a3214c27478b56c4eb9c6332d6b43a9c_rle_crop_4003715407_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/170cc83d736c8097e26338805af949a3_15032155.png imagette279365911761797703 27936594 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=27936594 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390239917: '1761797105_466695_1390239807_f011d9617446bcddd4740cd74ff2ced0_rle_crop_4003714704_0.png', 1390239918: '1761797105_466695_1390239806_8be13980e61f3dd2c591694d871c0e7f_rle_crop_4003714716_0.png', 1390240190: '1761797465_484278_1390240125_dfc5120cd4da479a7492db2dad7add29_rle_crop_4003715063_0.png', 1390240290: '1761797586_490665_1390240196_7a10acc78991fa907a6ec76f847ee1ae_rle_crop_4003715370_0.png', 1390240291: '1761797586_490665_1390240188_a3214c27478b56c4eb9c6332d6b43a9c_rle_crop_4003715395_0.png', 1390240292: '1761797586_490665_1390240187_0715231c79969b77efd7b3a8ceb420f7_rle_crop_4003715419_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/0fdee396766b8d673493c63e0a8bad53_11908728.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/0fdee396766b8d673493c63e0a8bad53_95128477.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/cb83592ec5b15bd3d8030af5620090cf_89783102.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/bb44d1d08102c6e72fd37c5d8c2c8d0e_38360787.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/bfe514c3b9eff92ce87053629793323d_24769314.png change filename to text .imagette279365941761797703/ imagette279365941761797703/1761797465_484278_1390240125_dfc5120cd4da479a7492db2dad7add29_rle_crop_4003715063_0.png.png imagette279365941761797703/1761797105_466695_1390239806_8be13980e61f3dd2c591694d871c0e7f_rle_crop_4003714716_0.png.png imagette279365941761797703/1761797105_466695_1390239807_f011d9617446bcddd4740cd74ff2ced0_rle_crop_4003714704_0.png.png imagette279365941761797703/1761797586_490665_1390240187_0715231c79969b77efd7b3a8ceb420f7_rle_crop_4003715419_0.png.png imagette279365941761797703/1761797586_490665_1390240188_a3214c27478b56c4eb9c6332d6b43a9c_rle_crop_4003715395_0.png.png imagette279365941761797703/1761797586_490665_1390240196_7a10acc78991fa907a6ec76f847ee1ae_rle_crop_4003715370_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/0bcea921ec07b32777850488b66f244a_60480869.png imagette279365941761797703 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27936581 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27936596,27936597,27936598,27936599,27936600,27936601,27936602,27936603,27936604,27936605,27936606,27936607?tags=metal,kraft,papier,mal_croppe,environnement,Carton_brun,flou,Teint_Dans_La_Masse,autre_refus,plastique,Carton_gris,cartonnette your option no_mail is active, we will not send the real mail to your client args[1390240318] : ('0.06182435497134689',) no score found for photo 1390240318 We are sending mail with results at report@fotonower.com args[1390240302] : ('0.06182435497134689',) no score found for photo 1390240302 We are sending mail with results at report@fotonower.com args[1390240298] : ('0.06182435497134689',) no score found for photo 1390240298 We are sending mail with results at report@fotonower.com args[1390240287] : ('0.06182435497134689',) no score found for photo 1390240287 We are sending mail with results at report@fotonower.com args[1390240256] : ('0.06182435497134689',) no score found for photo 1390240256 We are sending mail with results at report@fotonower.com args[1390240254] : ('0.06182435497134689',) no score found for photo 1390240254 We are sending mail with results at report@fotonower.com args[1390240250] : ('0.06182435497134689',) no score found for photo 1390240250 We are sending mail with results at report@fotonower.com args[1390240249] : ('0.06182435497134689',) no score found for photo 1390240249 We are sending mail with results at report@fotonower.com args[1390240245] : ('0.06182435497134689',) no score found for photo 1390240245 We are sending mail with results at report@fotonower.com args[1390240243] : ('0.06182435497134689',) no score found for photo 1390240243 We are sending mail with results at report@fotonower.com args[1390240239] : ('0.06182435497134689',) no score found for photo 1390240239 We are sending mail with results at report@fotonower.com args[1390240238] : ('0.06182435497134689',) no score found for photo 1390240238 We are sending mail with results at report@fotonower.com refus_total : 0.06182435497134689 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=27936581 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_P27936581_30-10-2025_05_15_01.pdf results_Auto_P27936581_30-10-2025_05_15_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27936581_30-10-2025_05_15_01.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','27936581','results_Auto_P27936581_30-10-2025_05_15_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27936581_30-10-2025_05_15_01.pdf','pdf','','0.21','0.06182435497134689') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27936581]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1390240318, 1390240302, 1390240298, 1390240287, 1390240256, 1390240254, 1390240250, 1390240249, 1390240245, 1390240243, 1390240239, 1390240238] map_info['map_portfolio_photo'] : {27936581: [1390240318, 1390240302, 1390240298, 1390240287, 1390240256, 1390240254, 1390240250, 1390240249, 1390240245, 1390240243, 1390240239, 1390240238, 1390240199, 1390240196, 1390240194, 1390240188, 1390240187, 1390240144, 1390240141, 1390240138, 1390240136, 1390240129, 1390240125, 1390240123, 1390240119, 1390240067, 1390240063, 1390240061, 1390240057, 1390240013, 1390240011, 1390240009, 1390239807, 1390239806]} final : False mtd_id 4302 list_pids : [1390240318, 1390240302, 1390240298, 1390240287, 1390240256, 1390240254, 1390240250, 1390240249, 1390240245, 1390240243, 1390240239, 1390240238] 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, '3963815') ('4302', '27936581', '1390240318', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240302', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240298', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240287', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240256', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240254', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240250', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240249', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240245', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240243', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240239', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240238', None, None, None, None, None, '3963815') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '27936581', '1390240318', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240302', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240298', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240287', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240256', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240254', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240250', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240249', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240245', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240243', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240239', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240238', None, None, None, None, None, '3963815')] time used for this insertion : 0.012011528015136719 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.0325257778167725 time spend to save output : 0.012356996536254883 total time spend for step 4 : 4.044882774353027 step5:split_time_score Thu Oct 30 05:15: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 : ['27936581'] 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 : [('27936581',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27936581) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1390240254: {'path': 'temp/1761797701_134803_1390240254_f47208aac05bf688e5a240a89a48b4a5.jpg', 'extension': 'jpg'}, 1390240256: {'path': 'temp/1761797701_134803_1390240256_9147b4230912613c6a920ee67625a744.jpg', 'extension': 'jpg'}, 1390240287: {'path': 'temp/1761797701_134803_1390240287_a4019783e2a448b57957954dda386bf8.jpg', 'extension': 'jpg'}, 1390240245: {'path': 'temp/1761797701_134803_1390240245_a5eaf34532956a3e35611552cdfca464.jpg', 'extension': 'jpg'}, 1390240249: {'path': 'temp/1761797701_134803_1390240249_73ed4a0e2ccb18e448c769a270f8c126.jpg', 'extension': 'jpg'}, 1390240250: {'path': 'temp/1761797701_134803_1390240250_743ef265ad350d27ebf12f8052cb5ae3.jpg', 'extension': 'jpg'}, 1390240298: {'path': 'temp/1761797701_134803_1390240298_9448bd6118a5ec121650d69921fa8917.jpg', 'extension': 'jpg'}, 1390240302: {'path': 'temp/1761797701_134803_1390240302_0425bd25e1526aaa0be7e00bdebe6885.jpg', 'extension': 'jpg'}, 1390240318: {'path': 'temp/1761797701_134803_1390240318_a1e22e592f2a5eaec4c5bf13c6c6ce06.jpg', 'extension': 'jpg'}, 1390240238: {'path': 'temp/1761797701_134803_1390240238_24a30ae0a12c8b0339a2b55dec9ab4f2.jpg', 'extension': 'jpg'}, 1390240239: {'path': 'temp/1761797701_134803_1390240239_d1a1e42a564ab5c91a4379882ee0acb1.jpg', 'extension': 'jpg'}, 1390240243: {'path': 'temp/1761797701_134803_1390240243_1a08590c48ca73afdff9176722adb8f2.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 = 27936581; (('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 = 27936581 group by h (('05', 34),) 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=27936581 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 (27936581) 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 (27936581) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30102025 27936581 Nombre de photos uploadées : 34 / 23040 (0%) 30102025 27936581 Nombre de photos taguées (types de déchets): 0 / 34 (0%) 30102025 27936581 Nombre de photos taguées (volume) : 0 / 34 (0%) [{'photo_id': 1390239807, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/f011d9617446bcddd4740cd74ff2ced0.jpg', 'username': None, 'uploaded_at': 1761797013, 'text': 'image_30102025_05_02_25_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1390239806, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/8be13980e61f3dd2c591694d871c0e7f.jpg', 'username': None, 'uploaded_at': 1761797013, 'text': 'image_30102025_05_02_25_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1390240013, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/25c4464562980dccca69b614b0e3cffc.jpg', 'username': None, 'uploaded_at': 1761797242, 'text': 'image_30102025_05_02_35_009124m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1390240011, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/b9d76f21300ccf1f28cf766f75073c55.jpg', 'username': None, 'uploaded_at': 1761797242, 'text': 'image_30102025_05_06_25_009123m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.049041748046875e-05 ?????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017006397247314453 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27936581, '2025-10-30' ) 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-10-30' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2472886,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20217394828796387 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= 2472886 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2472886, 'dashboard_run_id': 2481404, 'mtr_portfolio_id': 27928884, 'dashboard_result_id': 16539967, '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_P27928884_30-10-2025_00_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27928892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27928893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27928894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27928895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27928896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27928897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27928898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27928899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27928900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27928901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27928902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27928903, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2481404, 'mtr_portfolio_id': 27929435, 'dashboard_result_id': 16539968, '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_P27929435_30-10-2025_00_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27929440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27929441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27929442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27929443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27929444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27929445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27929446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27929447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27929448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27929449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27929450, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27929451, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2481404, 'mtr_portfolio_id': 27929931, 'dashboard_result_id': 16539969, '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_P27929931_30-10-2025_00_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27929936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27929937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27929938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27929939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27929940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27929941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27929942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27929943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27929944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27929945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27929946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27929947, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2481404, 'mtr_portfolio_id': 27930441, 'dashboard_result_id': 16539970, '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_P27930441_30-10-2025_01_03_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27930445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27930446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27930447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27930448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27930449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27930450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27930451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27930452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27930453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27930454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27930455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27930456, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2481404, 'mtr_portfolio_id': 27931641, 'dashboard_result_id': 16539971, '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_P27931641_30-10-2025_01_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27931643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27931644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27931645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27931646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27931647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27931648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27931649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27931650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27931651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27931652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27931653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27931654, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2481404, 'mtr_portfolio_id': 27931962, 'dashboard_result_id': 16539972, '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_P27931962_30-10-2025_02_03_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27931983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27931984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27931985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27931986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27931987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27931988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27931989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27931990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27931991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27931992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27931993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27931994, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2481404, 'mtr_portfolio_id': 27932426, 'dashboard_result_id': 16539973, '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_P27932426_30-10-2025_02_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27932456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27932457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27932458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27932459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27932460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27932461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27932462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27932463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27932464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27932465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27932466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27932467, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2481404, 'mtr_portfolio_id': 27932875, 'dashboard_result_id': 16539974, '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_P27932875_30-10-2025_02_32_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27932878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27932879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27932880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27932881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27932882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27932883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27932884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27932885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27932886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27932887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27932888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27932889, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2481404, 'mtr_portfolio_id': 27933317, 'dashboard_result_id': 16539975, '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_P27933317_30-10-2025_02_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27933321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27933322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27933323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27933324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27933325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27933326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27933327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27933328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27933329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27933330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27933331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27933332, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2481404, 'mtr_portfolio_id': 27933735, 'dashboard_result_id': 16539976, '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_P27933735_30-10-2025_03_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27933745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27933746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27933747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27933748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27933749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27933750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27933751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27933752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27933753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27933754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27933755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27933756, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2481404, 'mtr_portfolio_id': 27934173, 'dashboard_result_id': 16539977, '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_P27934173_30-10-2025_03_19_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27934199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27934200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27934201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27934202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27934203, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27934204, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27934205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27934206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27934207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27934208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27934209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27934210, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2481404, 'mtr_portfolio_id': 27934609, 'dashboard_result_id': 16539978, '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_P27934609_30-10-2025_03_35_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27934615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27934616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27934617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27934618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27934619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27934620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27934621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27934622, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27934623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27934624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27934625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27934626, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2481404, 'mtr_portfolio_id': 27934992, 'dashboard_result_id': 16539979, '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_P27934992_30-10-2025_03_46_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27935010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935011, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935013, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2481404, 'mtr_portfolio_id': 27935398, 'dashboard_result_id': 16539980, '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_P27935398_30-10-2025_04_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27935403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935414, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2481404, 'mtr_portfolio_id': 27935710, 'dashboard_result_id': 16539981, '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_P27935710_30-10-2025_04_14_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27935736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935745, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2481404, 'mtr_portfolio_id': 27936294, 'dashboard_result_id': 16539982, '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_P27936294_30-10-2025_04_30_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27936295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27936296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27936297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27936298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27936299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27936300, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27936301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27936302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27936303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27936304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27936305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27936306, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2481404, 'mtr_portfolio_id': 27936581, 'dashboard_result_id': 16539983, '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_P27936581_30-10-2025_05_12_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27936584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27936585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27936586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27936587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27936588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27936589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27936590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27936591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27936592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27936593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27936594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27936595, '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 = 27928884 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': 3962742, 'mtr_portfolio_id': 27928884, 'created_at': datetime.datetime(2025, 10, 30, 0, 19), 'result': '0.06985169513558859', 'result_long': None, 'result_double': None}] Qualite : 0.06985169513558859 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27928884 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27928884_30-10-2025_00_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27928884 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_P27928884_30-10-2025_00_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27928892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27928893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27928894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27928895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27928896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27928897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27928898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27928899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27928900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27928901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27928902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27928903, 'pht': 3726}}" where mtr_portfolio_id = 27928884 and dashboard_run_id = 2481404 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`=27928884 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16539967, 0.06985169513558859, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27928884_30-10-2025_00_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27928892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27928893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27928894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27928895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27928896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27928897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27928898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27928899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27928900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27928901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27928902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27928903, '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 = 27929435 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': 3962826, 'mtr_portfolio_id': 27929435, 'created_at': datetime.datetime(2025, 10, 30, 0, 32, 58), 'result': '0.047705186975460494', 'result_long': None, 'result_double': None}] Qualite : 0.047705186975460494 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27929435 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27929435_30-10-2025_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27929435 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_P27929435_30-10-2025_00_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27929440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27929441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27929442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27929443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27929444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27929445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27929446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27929447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27929448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27929449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27929450, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27929451, 'pht': 3726}}" where mtr_portfolio_id = 27929435 and dashboard_run_id = 2481404 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`=27929435 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16539968, 0.047705186975460494, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27929435_30-10-2025_00_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27929440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27929441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27929442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27929443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27929444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27929445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27929446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27929447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27929448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27929449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27929450, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27929451, '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 = 27929931 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': 3962874, 'mtr_portfolio_id': 27929931, 'created_at': datetime.datetime(2025, 10, 30, 0, 46, 59), 'result': '0.03298613760918593', 'result_long': None, 'result_double': None}] Qualite : 0.03298613760918593 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27929931 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27929931_30-10-2025_00_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27929931 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_P27929931_30-10-2025_00_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27929936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27929937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27929938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27929939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27929940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27929941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27929942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27929943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27929944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27929945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27929946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27929947, 'pht': 3726}}" where mtr_portfolio_id = 27929931 and dashboard_run_id = 2481404 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`=27929931 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16539969, 0.03298613760918593, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27929931_30-10-2025_00_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27929936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27929937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27929938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27929939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27929940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27929941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27929942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27929943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27929944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27929945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27929946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27929947, '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 = 27930441 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': 3962939, 'mtr_portfolio_id': 27930441, 'created_at': datetime.datetime(2025, 10, 30, 1, 2, 59), 'result': '0.05998806202282362', 'result_long': None, 'result_double': None}] Qualite : 0.05998806202282362 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27930441 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27930441_30-10-2025_01_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27930441 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_P27930441_30-10-2025_01_03_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27930445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27930446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27930447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27930448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27930449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27930450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27930451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27930452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27930453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27930454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27930455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27930456, 'pht': 3726}}" where mtr_portfolio_id = 27930441 and dashboard_run_id = 2481404 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`=27930441 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16539970, 0.05998806202282362, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27930441_30-10-2025_01_03_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27930445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27930446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27930447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27930448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27930449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27930450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27930451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27930452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27930453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27930454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27930455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27930456, '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 = 27931641 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': 3963065, 'mtr_portfolio_id': 27931641, 'created_at': datetime.datetime(2025, 10, 30, 1, 46, 58), 'result': '0.04850165693747192', 'result_long': None, 'result_double': None}] Qualite : 0.04850165693747192 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27931641 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27931641_30-10-2025_01_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27931641 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_P27931641_30-10-2025_01_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27931643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27931644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27931645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27931646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27931647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27931648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27931649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27931650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27931651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27931652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27931653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27931654, 'pht': 3726}}" where mtr_portfolio_id = 27931641 and dashboard_run_id = 2481404 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`=27931641 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16539971, 0.04850165693747192, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27931641_30-10-2025_01_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27931643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27931644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27931645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27931646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27931647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27931648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27931649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27931650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27931651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27931652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27931653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27931654, '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 = 27931962 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': 3963103, 'mtr_portfolio_id': 27931962, 'created_at': datetime.datetime(2025, 10, 30, 2, 3, 29), 'result': '0.0448503643352389', 'result_long': None, 'result_double': None}] Qualite : 0.0448503643352389 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27931962 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27931962_30-10-2025_02_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27931962 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_P27931962_30-10-2025_02_03_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27931983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27931984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27931985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27931986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27931987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27931988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27931989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27931990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27931991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27931992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27931993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27931994, 'pht': 3726}}" where mtr_portfolio_id = 27931962 and dashboard_run_id = 2481404 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`=27931962 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16539972, 0.0448503643352389, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27931962_30-10-2025_02_03_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27931983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27931984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27931985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27931986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27931987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27931988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27931989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27931990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27931991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27931992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27931993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27931994, '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 = 27932426 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': 3963162, 'mtr_portfolio_id': 27932426, 'created_at': datetime.datetime(2025, 10, 30, 2, 18, 59), 'result': '0.04560440721855664', 'result_long': None, 'result_double': None}] Qualite : 0.04560440721855664 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27932426 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27932426_30-10-2025_02_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27932426 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_P27932426_30-10-2025_02_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27932456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27932457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27932458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27932459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27932460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27932461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27932462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27932463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27932464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27932465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27932466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27932467, 'pht': 3726}}" where mtr_portfolio_id = 27932426 and dashboard_run_id = 2481404 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`=27932426 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16539973, 0.04560440721855664, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27932426_30-10-2025_02_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27932456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27932457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27932458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27932459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27932460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27932461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27932462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27932463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27932464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27932465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27932466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27932467, '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 = 27932875 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': 3963212, 'mtr_portfolio_id': 27932875, 'created_at': datetime.datetime(2025, 10, 30, 2, 32, 30), 'result': '0.0606593906909026', 'result_long': None, 'result_double': None}] Qualite : 0.0606593906909026 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27932875 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27932875_30-10-2025_02_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27932875 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_P27932875_30-10-2025_02_32_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27932878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27932879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27932880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27932881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27932882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27932883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27932884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27932885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27932886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27932887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27932888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27932889, 'pht': 3726}}" where mtr_portfolio_id = 27932875 and dashboard_run_id = 2481404 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`=27932875 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16539974, 0.0606593906909026, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27932875_30-10-2025_02_32_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27932878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27932879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27932880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27932881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27932882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27932883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27932884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27932885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27932886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27932887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27932888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27932889, '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 = 27933317 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': 3963263, 'mtr_portfolio_id': 27933317, 'created_at': datetime.datetime(2025, 10, 30, 2, 48, 58), 'result': '0.0408982034269782', 'result_long': None, 'result_double': None}] Qualite : 0.0408982034269782 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27933317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27933317_30-10-2025_02_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27933317 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_P27933317_30-10-2025_02_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27933321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27933322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27933323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27933324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27933325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27933326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27933327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27933328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27933329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27933330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27933331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27933332, 'pht': 3726}}" where mtr_portfolio_id = 27933317 and dashboard_run_id = 2481404 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`=27933317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16539975, 0.0408982034269782, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27933317_30-10-2025_02_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27933321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27933322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27933323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27933324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27933325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27933326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27933327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27933328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27933329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27933330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27933331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27933332, '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 = 27933735 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': 3963326, 'mtr_portfolio_id': 27933735, 'created_at': datetime.datetime(2025, 10, 30, 3, 2, 58), 'result': '0.08689544464219923', 'result_long': None, 'result_double': None}] Qualite : 0.08689544464219923 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27933735 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27933735_30-10-2025_03_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27933735 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_P27933735_30-10-2025_03_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27933745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27933746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27933747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27933748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27933749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27933750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27933751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27933752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27933753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27933754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27933755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27933756, 'pht': 3726}}" where mtr_portfolio_id = 27933735 and dashboard_run_id = 2481404 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`=27933735 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16539976, 0.08689544464219923, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27933735_30-10-2025_03_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27933745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27933746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27933747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27933748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27933749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27933750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27933751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27933752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27933753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27933754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27933755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27933756, '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 = 27934173 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': 3963415, 'mtr_portfolio_id': 27934173, 'created_at': datetime.datetime(2025, 10, 30, 3, 19, 30), 'result': '0.04761088711455417', 'result_long': None, 'result_double': None}] Qualite : 0.04761088711455417 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27934173 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27934173_30-10-2025_03_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27934173 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_P27934173_30-10-2025_03_19_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27934199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27934200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27934201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27934202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27934203, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27934204, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27934205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27934206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27934207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27934208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27934209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27934210, 'pht': 3726}}" where mtr_portfolio_id = 27934173 and dashboard_run_id = 2481404 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`=27934173 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16539977, 0.04761088711455417, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27934173_30-10-2025_03_19_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27934199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27934200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27934201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27934202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27934203, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27934204, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27934205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27934206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27934207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27934208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27934209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27934210, '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 = 27934609 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': 3963470, 'mtr_portfolio_id': 27934609, 'created_at': datetime.datetime(2025, 10, 30, 3, 35, 1), 'result': '0.054316776986079576', 'result_long': None, 'result_double': None}] Qualite : 0.054316776986079576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27934609 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27934609_30-10-2025_03_35_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27934609 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_P27934609_30-10-2025_03_35_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27934615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27934616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27934617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27934618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27934619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27934620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27934621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27934622, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27934623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27934624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27934625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27934626, 'pht': 3726}}" where mtr_portfolio_id = 27934609 and dashboard_run_id = 2481404 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`=27934609 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16539978, 0.054316776986079576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27934609_30-10-2025_03_35_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27934615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27934616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27934617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27934618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27934619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27934620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27934621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27934622, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27934623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27934624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27934625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27934626, '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 = 27934992 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': 3963529, 'mtr_portfolio_id': 27934992, 'created_at': datetime.datetime(2025, 10, 30, 3, 46, 57), 'result': '0.07012928336151623', 'result_long': None, 'result_double': None}] Qualite : 0.07012928336151623 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27934992 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27934992_30-10-2025_03_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27934992 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_P27934992_30-10-2025_03_46_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27935010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935011, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935013, 'pht': 3726}}" where mtr_portfolio_id = 27934992 and dashboard_run_id = 2481404 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`=27934992 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16539979, 0.07012928336151623, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27934992_30-10-2025_03_46_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27935010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935011, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935013, '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 = 27935398 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': 3963587, 'mtr_portfolio_id': 27935398, 'created_at': datetime.datetime(2025, 10, 30, 4, 2, 57), 'result': '0.06562884769904731', 'result_long': None, 'result_double': None}] Qualite : 0.06562884769904731 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27935398 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27935398_30-10-2025_04_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27935398 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_P27935398_30-10-2025_04_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27935403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935414, 'pht': 3726}}" where mtr_portfolio_id = 27935398 and dashboard_run_id = 2481404 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`=27935398 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16539980, 0.06562884769904731, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27935398_30-10-2025_04_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27935403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935414, '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 = 27935710 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': 3963658, 'mtr_portfolio_id': 27935710, 'created_at': datetime.datetime(2025, 10, 30, 4, 14, 58), 'result': '0.04987048555784066', 'result_long': None, 'result_double': None}] Qualite : 0.04987048555784066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27935710 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27935710_30-10-2025_04_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27935710 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_P27935710_30-10-2025_04_14_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27935736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935745, 'pht': 3726}}" where mtr_portfolio_id = 27935710 and dashboard_run_id = 2481404 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`=27935710 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16539981, 0.04987048555784066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27935710_30-10-2025_04_14_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27935736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935745, '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 = 27936294 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': 3963740, 'mtr_portfolio_id': 27936294, 'created_at': datetime.datetime(2025, 10, 30, 4, 30, 58), 'result': '0.003837601269049913', 'result_long': None, 'result_double': None}] Qualite : 0.003837601269049913 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27936294 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27936294_30-10-2025_04_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27936294 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_P27936294_30-10-2025_04_30_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27936295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27936296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27936297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27936298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27936299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27936300, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27936301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27936302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27936303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27936304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27936305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27936306, 'pht': 3726}}" where mtr_portfolio_id = 27936294 and dashboard_run_id = 2481407 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`=27936294 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16539982, 0.003837601269049913, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27936294_30-10-2025_04_30_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27936295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27936296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27936297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27936298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27936299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27936300, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27936301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27936302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27936303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27936304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27936305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27936306, '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 = 27936581 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': 3963815, 'mtr_portfolio_id': 27936581, 'created_at': datetime.datetime(2025, 10, 30, 5, 15, 1), 'result': '0.06182435497134689', 'result_long': None, 'result_double': None}] Qualite : 0.06182435497134689 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27936581 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27936581_30-10-2025_05_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27936581 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_P27936581_30-10-2025_05_15_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27936584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27936585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27936586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27936587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27936588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27936589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27936590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27936591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27936592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27936593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27936594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27936595, 'pht': 3726}}" where mtr_portfolio_id = 27936581 and dashboard_run_id = 2481407 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`=27936581 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16539983, 0.06182435497134689, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27936581_30-10-2025_05_15_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27936584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27936585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27936586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27936587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27936588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27936589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27936590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27936591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27936592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27936593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27936594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27936595, '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 (27928884,27929435,27929931,27930441,27931641,27931962,27932426,27932875,27933317,27933735,27934173,27934609,27934992,27935398,27935710,27936294,27936581) result : ((1390202042,), (1390202046,), (1390202076,), (1390202079,), (1390202084,), (1390202088,), (1390202126,), (1390202128,), (1390202131,), (1390202134,), (1390202136,), (1390202181,), (1390202182,), (1390202185,), (1390202188,), (1390202223,), (1390202227,), (1390202271,), (1390202274,), (1390202277,), (1390202280,), (1390202282,), (1390202332,), (1390202334,), (1390202352,), (1390202378,), (1390202384,), (1390202446,), (1390202450,), (1390202453,), (1390202456,), (1390202462,), (1390202467,), (1390202471,), (1390202475,), (1390202480,), (1390202561,), (1390202566,), (1390202600,), (1390202602,), (1390202604,), (1390202620,), (1390202790,), (1390202803,), (1390202809,), (1390202858,), (1390202897,), (1390202970,), (1390202977,), (1390202988,), (1390202996,), (1390203257,), (1390203261,), (1390203262,), (1390203264,), (1390203267,), (1390203308,), (1390203310,), (1390203314,), (1390203319,), (1390203359,), (1390203360,), (1390203363,), (1390203608,), (1390203576,), (1390203589,), (1390203594,), (1390203598,), (1390203603,), (1390203649,), (1390203654,), (1390203657,), (1390203673,), (1390203677,), (1390203763,), (1390203797,), (1390203825,), (1390203829,), (1390203833,), (1390203838,), (1390203898,), (1390204088,), (1390204090,), (1390204094,), (1390204098,), (1390204135,), (1390204161,), (1390204171,), (1390204182,), (1390204192,), (1390204203,), (1390204316,), (1390204318,), (1390204323,), (1390204328,), (1390204385,), (1390204407,), (1390204441,), (1390204486,), (1390204520,), (1390204532,), (1390204729,), (1390204731,), (1390204739,), (1390204743,), (1390204758,), (1390204761,), (1390204762,), (1390204764,), (1390204870,), (1390204903,), (1390204937,), (1390204966,), (1390204999,), (1390205001,), (1390205011,), (1390205021,), (1390205062,), (1390205064,), (1390205067,), (1390205071,), (1390205116,), (1390205118,), (1390205122,), (1390205125,), (1390205200,), (1390205212,), (1390205222,), (1390205231,), (1390205354,), (1390205357,), (1390205369,), (1390205371,), (1390205377,), (1390205341,), (1390205344,), (1390205347,), (1390205351,), (1390205390,), (1390205394,), (1390205396,), (1390205399,), (1390205400,), (1390205434,), (1390205440,), (1390205443,), (1390205487,), (1390205489,), (1390205491,), (1390205536,), (1390205572,), (1390205609,), (1390205648,), (1390205687,), (1390206147,), (1390206148,), (1390206184,), (1390206186,), (1390206220,), (1390206228,), (1390207854,), (1390207855,), (1390207859,), (1390207860,), (1390208225,), (1390208226,), (1390208230,), (1390208242,), (1390208245,), (1390208248,), (1390208289,), (1390208293,), (1390208296,), (1390208299,), (1390208302,), (1390208459,), (1390208457,), (1390208502,), (1390208506,), (1390208510,), (1390208515,), (1390208617,), (1390208622,), (1390208628,), (1390208632,), (1390208667,), (1390208670,), (1390208675,), (1390208679,), (1390208703,), (1390208865,), (1390208866,), (1390208869,), (1390208870,), (1390208873,), (1390208874,), (1390208879,), (1390208880,), (1390208884,), (1390208885,), (1390208889,), (1390208891,), (1390208917,), (1390208920,), (1390208940,), (1390209024,), (1390209030,), (1390209035,), (1390209039,), (1390209212,), (1390209221,), (1390209225,), (1390209290,), (1390209300,), (1390209339,), (1390209343,), (1390209355,), (1390209361,), (1390209365,), (1390209368,), (1390209378,), (1390209381,), (1390209384,), (1390209385,), (1390209386,), (1390209387,), (1390209400,), (1390209403,), (1390209407,), (1390209412,), (1390209502,), (1390209538,), (1390209576,), (1390209612,), (1390209653,), (1390209779,), (1390209780,), (1390209783,), (1390209785,), (1390209790,), (1390209792,), (1390209801,), (1390209808,), (1390209815,), (1390209816,), (1390209835,), (1390209845,), (1390209850,), (1390209924,), (1390209932,), (1390209936,), (1390209942,), (1390209947,), (1390209952,), (1390209998,), (1390216052,), (1390216058,), (1390216062,), (1390216135,), (1390216138,), (1390216141,), (1390216219,), (1390216222,), (1390216285,), (1390216319,), (1390216355,), (1390216388,), (1390216426,), (1390216760,), (1390216762,), (1390216800,), (1390216804,), (1390216854,), (1390216869,), (1390216932,), (1390216941,), (1390217000,), (1390217007,), (1390217167,), (1390217207,), (1390217245,), (1390217592,), (1390217596,), (1390217608,), (1390217623,), (1390217778,), (1390217813,), (1390217850,), (1390217893,), (1390218122,), (1390218127,), (1390218130,), (1390218133,), (1390218158,), (1390218199,), (1390218380,), (1390218383,), (1390218385,), (1390218388,), (1390218487,), (1390218523,), (1390218560,), (1390218602,), (1390218644,), (1390218725,), (1390218771,), (1390218774,), (1390218779,), (1390218815,), (1390218817,), (1390218820,), (1390218823,), (1390218872,), (1390218864,), (1390218867,), (1390218910,), (1390218915,), (1390218926,), (1390218933,), (1390218937,), (1390218995,), (1390218999,), (1390219003,), (1390219005,), (1390219007,), (1390219040,), (1390219045,), (1390219050,), (1390219055,), (1390219093,), (1390219094,), (1390219120,), (1390219125,), (1390219129,), (1390219134,), (1390219138,), (1390219182,), (1390219183,), (1390219206,), (1390219207,), (1390219209,), (1390219210,), (1390219213,), (1390219214,), (1390219247,), (1390219250,), (1390219253,), (1390219257,), (1390219259,), (1390219265,), (1390219269,), (1390219271,), (1390219274,), (1390219277,), (1390219320,), (1390219329,), (1390219384,), (1390219385,), (1390219386,), (1390219387,), (1390219389,), (1390219396,), (1390219411,), (1390219417,), (1390219420,), (1390219422,), (1390219423,), (1390219485,), (1390219488,), (1390219492,), (1390219499,), (1390219529,), (1390219533,), (1390219537,), (1390219633,), (1390219616,), (1390219620,), (1390219624,), (1390219628,), (1390219826,), (1390219861,), (1390219896,), (1390219932,), (1390219966,), (1390220445,), (1390220481,), (1390220526,), (1390220612,), (1390220616,), (1390220621,), (1390220626,), (1390220629,), (1390220921,), (1390220953,), (1390220986,), (1390221121,), (1390221157,), (1390221192,), (1390221340,), (1390221341,), (1390221345,), (1390221346,), (1390221623,), (1390221624,), (1390221626,), (1390221627,), (1390221628,), (1390221630,), (1390221750,), (1390221754,), (1390221760,), (1390221765,), (1390221795,), (1390221797,), (1390221801,), (1390221804,), (1390221844,), (1390221848,), (1390221850,), (1390221886,), (1390221891,), (1390221894,), (1390221899,), (1390221960,), (1390221955,), (1390221958,), (1390221992,), (1390221995,), (1390221999,), (1390222003,), (1390222009,), (1390222047,), (1390222048,), (1390222052,), (1390222053,), (1390222056,), (1390222057,), (1390222093,), (1390222096,), (1390222100,), (1390222103,), (1390222107,), (1390222142,), (1390222146,), (1390222150,), (1390222154,), (1390222157,), (1390222165,), (1390222169,), (1390222177,), (1390222183,), (1390222193,), (1390222201,), (1390222212,), (1390222216,), (1390222219,), (1390222243,), (1390222250,), (1390222253,), (1390222292,), (1390222331,), (1390222334,), (1390222338,), (1390222340,), (1390222343,), (1390222391,), (1390222395,), (1390222443,), (1390222457,), (1390222462,), (1390222466,), (1390222530,), (1390222533,), (1390222537,), (1390222540,), (1390222542,), (1390222545,), (1390222577,), (1390222580,), (1390222582,), (1390222591,), (1390223066,), (1390223103,), (1390223137,), (1390223325,), (1390223292,), (1390223589,), (1390223594,), (1390223597,), (1390223601,), (1390223832,), (1390223833,), (1390223874,), (1390223909,), (1390223912,), (1390223945,), (1390223950,), (1390223981,), (1390224070,), (1390224105,), (1390224139,), (1390224177,), (1390224214,), (1390224250,), (1390224295,), (1390224298,), (1390224302,), (1390224523,), (1390224564,), (1390224602,), (1390224664,), (1390224730,), (1390224732,), (1390224734,), (1390224773,), (1390224776,), (1390224779,), (1390224783,), (1390224787,), (1390224818,), (1390224822,), (1390224827,), (1390224832,), (1390224836,), (1390224838,), (1390224876,), (1390224883,), (1390224887,), (1390224888,), (1390224892,), (1390224936,), (1390224940,), (1390224942,), (1390224946,), (1390224949,), (1390224951,), (1390224963,), (1390224965,), (1390224967,), (1390224970,), (1390224971,), (1390224978,), (1390225048,), (1390225050,), (1390225052,), (1390225055,), (1390225069,), (1390225074,), (1390225076,), (1390225079,), (1390225080,), (1390225082,), (1390225141,), (1390225143,), (1390225129,), (1390225130,), (1390225135,), (1390225137,), (1390225184,), (1390225185,), (1390225188,), (1390225189,), (1390225192,), (1390225193,), (1390225197,), (1390225200,), (1390225207,), (1390225208,), (1390225209,), (1390225213,), (1390225234,), (1390225239,), (1390225241,), (1390225243,), (1390225246,), (1390225284,), (1390225290,), (1390225294,), (1390225350,), (1390225356,), (1390225362,), (1390225368,), (1390225407,), (1390225410,), (1390225412,), (1390225421,), (1390225428,), (1390225431,), (1390225498,), (1390225500,), (1390225504,), (1390225508,), (1390225552,), (1390225556,), (1390225561,), (1390225562,), (1390225583,), (1390225590,), (1390225612,), (1390225617,), (1390225623,), (1390225627,), (1390225629,), (1390225632,), (1390225641,), (1390225649,), (1390225654,), (1390225657,), (1390225660,), (1390225663,), (1390225674,), (1390225677,), (1390225680,), (1390225682,), (1390225686,), (1390225723,), (1390225726,), (1390225732,), (1390225737,), (1390225791,), (1390225795,), (1390225798,), (1390225801,), (1390225804,), (1390225837,), (1390225841,), (1390225845,), (1390225857,), (1390225858,), (1390225922,), (1390225921,), (1390225931,), (1390225936,), (1390225941,), (1390225945,), (1390225948,), (1390226045,), (1390226080,), (1390226120,), (1390226156,), (1390226195,), (1390226662,), (1390226701,), (1390226743,), (1390226934,), (1390226936,), (1390226939,), (1390227177,), (1390227179,), (1390227213,), (1390227217,), (1390227253,), (1390227256,), (1390227293,), (1390227294,), (1390227333,), (1390227342,), (1390227447,), (1390227458,), (1390227641,), (1390227645,), (1390227649,), (1390227653,), (1390227658,), (1390227962,), (1390227973,), (1390227979,), (1390227984,), (1390227988,), (1390228038,), (1390228041,), (1390228090,), (1390228093,), (1390228159,), (1390228161,), (1390228164,), (1390228168,), (1390228172,), (1390228206,), (1390228256,), (1390228260,), (1390228263,), (1390228269,), (1390228304,), (1390228309,), (1390228312,), (1390228315,), (1390228375,), (1390228370,), (1390228431,), (1390228433,), (1390228435,), (1390228449,), (1390228453,), (1390228458,), (1390228460,), (1390228497,), (1390228502,), (1390228506,), (1390228509,), (1390228551,), (1390228554,), (1390228556,), (1390228558,), (1390228611,), (1390228612,), (1390228614,), (1390228615,), (1390228618,), (1390228619,), (1390228623,), (1390228624,), (1390228668,), (1390228671,), (1390228674,), (1390228712,), (1390228717,), (1390228720,), (1390228728,), (1390228737,), (1390228738,), (1390228740,), (1390228741,), (1390228743,), (1390228745,), (1390228749,), (1390228750,), (1390228757,), (1390228758,), (1390228771,), (1390228775,), (1390228779,), (1390228830,), (1390228835,), (1390228837,), (1390228838,), (1390228874,), (1390228878,), (1390228884,), (1390228887,), (1390228922,), (1390228923,), (1390228925,), (1390228926,), (1390229097,), (1390229135,), (1390229173,), (1390229210,), (1390229252,), (1390229390,), (1390229425,), (1390229463,), (1390229499,), (1390229867,), (1390229868,), (1390229871,), (1390229874,), (1390229914,), (1390229926,), (1390229941,), (1390229853,), (1390229854,), (1390229857,), (1390229858,), (1390229859,), (1390229860,), (1390229863,), (1390229864,), (1390229889,), (1390229893,), (1390229898,), (1390230363,), (1390230378,), (1390230392,), (1390230399,), (1390230590,), (1390230593,), (1390230595,), (1390230597,), (1390230599,), (1390230704,), (1390230741,), (1390230776,), (1390231040,), (1390231052,), (1390231055,), (1390231059,), (1390231092,), (1390231094,), (1390231096,), (1390231103,), (1390231108,), (1390231113,), (1390231125,), (1390231129,), (1390231139,), (1390231141,), (1390231143,), (1390231145,), (1390231152,), (1390231153,), (1390231171,), (1390231179,), (1390231183,), (1390231186,), (1390231251,), (1390231255,), (1390231259,), (1390231262,), (1390231302,), (1390231350,), (1390231352,), (1390231355,), (1390231358,), (1390231405,), (1390231406,), (1390231413,), (1390231414,), (1390231418,), (1390231419,), (1390231422,), (1390231423,), (1390231469,), (1390231471,), (1390231473,), (1390231474,), (1390231478,), (1390231489,), (1390231492,), (1390231496,), (1390231498,), (1390231553,), (1390231551,), (1390231596,), (1390231600,), (1390231604,), (1390231608,), (1390231652,), (1390231656,), (1390231660,), (1390231662,), (1390231666,), (1390231670,), (1390231677,), (1390231680,), (1390231682,), (1390231692,), (1390231695,), (1390231701,), (1390231708,), (1390231752,), (1390231753,), (1390231755,), (1390231756,), (1390231763,), (1390231764,), (1390231775,), (1390231776,), (1390231780,), (1390231855,), (1390231897,), (1390231904,), (1390231909,), (1390231943,), (1390231950,), (1390231952,), (1390231953,), (1390231991,), (1390231995,), (1390231998,), (1390232001,), (1390232004,), (1390232008,), (1390232681,), (1390232724,), (1390232763,), (1390232800,), (1390232839,), (1390232878,), (1390233119,), (1390233163,), (1390233644,), (1390233658,), (1390233661,), (1390233955,), (1390233994,), (1390234034,), (1390234050,), (1390234092,), (1390234096,), (1390234145,), (1390234147,), (1390234150,), (1390234158,), (1390234203,), (1390234206,), (1390234208,), (1390234211,), (1390234280,), (1390234281,), (1390234283,), (1390234285,), (1390234288,), (1390234293,), (1390234329,), (1390234332,), (1390234335,), (1390234338,), (1390234340,), (1390234342,), (1390234350,), (1390234354,), (1390234360,), (1390234364,), (1390234369,), (1390234373,), (1390234387,), (1390234388,), (1390234397,), (1390234402,), (1390234520,), (1390234521,), (1390234922,), (1390234923,), (1390236233,), (1390239806,), (1390239807,), (1390240009,), (1390240011,), (1390240013,), (1390240057,), (1390240061,), (1390240063,), (1390240067,), (1390240119,), (1390240123,), (1390240125,), (1390240129,), (1390240136,), (1390240138,), (1390240141,), (1390240144,), (1390240187,), (1390240188,), (1390240194,), (1390240196,), (1390240199,), (1390240238,), (1390240239,), (1390240243,), (1390240245,), (1390240249,), (1390240250,), (1390240254,), (1390240256,), (1390240287,), (1390240298,), (1390240302,), (1390240318,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30102025': {'nb_upload': 34, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27936581]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1390240318, 1390240302, 1390240298, 1390240287, 1390240256, 1390240254, 1390240250, 1390240249, 1390240245, 1390240243, 1390240239, 1390240238] map_info['map_portfolio_photo'] : {27936581: [1390240318, 1390240302, 1390240298, 1390240287, 1390240256, 1390240254, 1390240250, 1390240249, 1390240245, 1390240243, 1390240239, 1390240238, 1390240199, 1390240196, 1390240194, 1390240188, 1390240187, 1390240144, 1390240141, 1390240138, 1390240136, 1390240129, 1390240125, 1390240123, 1390240119, 1390240067, 1390240063, 1390240061, 1390240057, 1390240013, 1390240011, 1390240009, 1390239807, 1390239806]} final : True mtd_id 4302 list_pids : [1390240318, 1390240302, 1390240298, 1390240287, 1390240256, 1390240254, 1390240250, 1390240249, 1390240245, 1390240243, 1390240239, 1390240238] Looping around the photos to save general results len do output : 1 /27936581Didn'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, '3963815') ('4302', '27936581', '1390240318', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240302', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240298', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240287', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240256', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240254', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240250', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240249', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240245', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240243', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240239', None, None, None, None, None, '3963815') ('4302', None, None, None, None, None, None, None, '3963815') ('4302', '27936581', '1390240238', None, None, None, None, None, '3963815') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27936581', 'None', None, None, None, None, '3963815'), ('4302', '27936581', '1390240318', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240302', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240298', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240287', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240256', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240254', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240250', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240249', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240245', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240243', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240239', None, None, None, None, None, '3963815'), ('4302', '27936581', '1390240238', None, None, None, None, None, '3963815')] time used for this insertion : 0.011572122573852539 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4639861583709717 time spend to save output : 0.011775970458984375 total time spend for step 5 : 1.475762128829956 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 (3963815) 2.21user 2.37system 0:11.58elapsed 39%CPU (0avgtext+0avgdata 160888maxresident)k 128inputs+12744outputs (3major+64313minor)pagefaults 0swaps