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 : 810103 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 (3309199) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3309199) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25091570 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3309199'] with mtr_portfolio_ids : ['25091570'] and first list_photo_ids : [] new path : /proc/810103/ Name: python3 Umask: 0002 State: R (running) Tgid: 810103 Ngid: 0 Pid: 810103 PPid: 810102 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 810103 NSpid: 810103 NSpgid: 808955 NSsid: 808955 VmPeak: 1106884 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98192 kB VmRSS: 98192 kB RssAnon: 59788 kB RssFile: 38404 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 43 nonvoluntary_ctxt_switches: 96 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '810103', 'Ngid': '0', 'Pid': '810103', 'PPid': '810102', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '810103', 'NSpid': '810103', 'NSpgid': '808955', 'NSsid': '808955', 'VmPeak': '1106884 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98192 kB', 'VmRSS': '98192 kB', 'RssAnon': '59788 kB', 'RssFile': '38404 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '43', 'nonvoluntary_ctxt_switches': '96'} ('datou_batch_current', '810103', '1106884', '0', '1106884', '865636', '98192', b'', 'marlene', '3309199') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25091570) 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 (3309199 ) ) 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 (25091570) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1372709725, 'portfolio_id': 25091570}, {'photo_id': 1372709724, 'portfolio_id': 25091570}, {'photo_id': 1372709702, 'portfolio_id': 25091570}, {'photo_id': 1372709700, 'portfolio_id': 25091570}, {'photo_id': 1372709698, 'portfolio_id': 25091570}, {'photo_id': 1372709697, 'portfolio_id': 25091570}, {'photo_id': 1372709686, 'portfolio_id': 25091570}, {'photo_id': 1372709685, 'portfolio_id': 25091570}, {'photo_id': 1372709684, 'portfolio_id': 25091570}, {'photo_id': 1372709683, 'portfolio_id': 25091570}, {'photo_id': 1372709681, 'portfolio_id': 25091570}, {'photo_id': 1372709679, 'portfolio_id': 25091570}, {'photo_id': 1372709672, 'portfolio_id': 25091570}, {'photo_id': 1372709671, 'portfolio_id': 25091570}, {'photo_id': 1372709669, 'portfolio_id': 25091570}, {'photo_id': 1372709666, 'portfolio_id': 25091570}, {'photo_id': 1372709664, 'portfolio_id': 25091570}, {'photo_id': 1372709660, 'portfolio_id': 25091570}, {'photo_id': 1372709499, 'portfolio_id': 25091570}, {'photo_id': 1372709181, 'portfolio_id': 25091570}, {'photo_id': 1372709148, 'portfolio_id': 25091570}, {'photo_id': 1372709091, 'portfolio_id': 25091570}, {'photo_id': 1372709016, 'portfolio_id': 25091570}, {'photo_id': 1372708957, 'portfolio_id': 25091570}, {'photo_id': 1372708902, 'portfolio_id': 25091570}] map_portfolio_id_photo_id: {25091570: [1372709725, 1372709724, 1372709702, 1372709700, 1372709698, 1372709697, 1372709686, 1372709685, 1372709684, 1372709683, 1372709681, 1372709679, 1372709672, 1372709671, 1372709669, 1372709666, 1372709664, 1372709660, 1372709499, 1372709181, 1372709148, 1372709091, 1372709016, 1372708957, 1372708902]} ##### 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.015128612518310547 #### 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 Sat Jul 19 03:06:57 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 (25091570) 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 : 25091570 get user id for portfolio 25091570 get sub ptf for main ptf 25091570, type 3726 and hashtags ['cartonnette', 'Carton_gris', 'plastique', 'autre_refus', 'flou', 'metal', 'environnement', 'Teint_Dans_La_Masse', 'papier', 'Carton_brun', 'mal_croppe', 'kraft'] 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`=25091570 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','plastique','autre_refus','flou','metal','environnement','Teint_Dans_La_Masse','papier','Carton_brun','mal_croppe','kraft')) 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`=25091570 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','plastique','autre_refus','flou','metal','environnement','Teint_Dans_La_Masse','papier','Carton_brun','mal_croppe','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 25091570, 'sub_port_id': 25091595, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917521, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 25)}, 'mal_croppe': {'main_port_id': 25091570, 'sub_port_id': 25091596, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917522, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 25)}, 'environnement': {'main_port_id': 25091570, 'sub_port_id': 25091597, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917523, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 25)}, 'papier': {'main_port_id': 25091570, 'sub_port_id': 25091598, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917524, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 25)}, 'autre_refus': {'main_port_id': 25091570, 'sub_port_id': 25091599, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917525, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 25)}, 'plastique': {'main_port_id': 25091570, 'sub_port_id': 25091600, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917526, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 25)}, 'Teint_Dans_La_Masse': {'main_port_id': 25091570, 'sub_port_id': 25091601, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917527, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 25)}, 'Carton_brun': {'main_port_id': 25091570, 'sub_port_id': 25091602, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917528, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 25)}, 'kraft': {'main_port_id': 25091570, 'sub_port_id': 25091603, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917529, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 25)}, 'flou': {'main_port_id': 25091570, 'sub_port_id': 25091604, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917530, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 25)}, 'metal': {'main_port_id': 25091570, 'sub_port_id': 25091605, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917531, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 25)}, 'Carton_gris': {'main_port_id': 25091570, 'sub_port_id': 25091606, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917532, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 25)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25091595 , 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=25091570 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 (25091595) result : ((1372709742,), (1372709743,), (1372709763,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25091570) result : ((1372708902,), (1372708957,), (1372709016,), (1372709091,), (1372709148,), (1372709181,), (1372709499,), (1372709660,), (1372709664,), (1372709666,), (1372709669,), (1372709671,), (1372709672,), (1372709679,), (1372709681,), (1372709683,), (1372709684,), (1372709685,), (1372709686,), (1372709697,), (1372709698,), (1372709700,), (1372709702,), (1372709724,), (1372709725,)) 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 (1372709700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25091596 , 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=25091570 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 (25091596) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25091570) result : ((1372708902,), (1372708957,), (1372709016,), (1372709091,), (1372709148,), (1372709181,), (1372709499,), (1372709660,), (1372709664,), (1372709666,), (1372709669,), (1372709671,), (1372709672,), (1372709679,), (1372709681,), (1372709683,), (1372709684,), (1372709685,), (1372709686,), (1372709697,), (1372709698,), (1372709700,), (1372709702,), (1372709724,), (1372709725,)) 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 (1372709700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25091597 , 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=25091570 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 (25091597) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25091570) result : ((1372708902,), (1372708957,), (1372709016,), (1372709091,), (1372709148,), (1372709181,), (1372709499,), (1372709660,), (1372709664,), (1372709666,), (1372709669,), (1372709671,), (1372709672,), (1372709679,), (1372709681,), (1372709683,), (1372709684,), (1372709685,), (1372709686,), (1372709697,), (1372709698,), (1372709700,), (1372709702,), (1372709724,), (1372709725,)) 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 (1372709700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25091598 , 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=25091570 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 (25091598) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25091570) result : ((1372708902,), (1372708957,), (1372709016,), (1372709091,), (1372709148,), (1372709181,), (1372709499,), (1372709660,), (1372709664,), (1372709666,), (1372709669,), (1372709671,), (1372709672,), (1372709679,), (1372709681,), (1372709683,), (1372709684,), (1372709685,), (1372709686,), (1372709697,), (1372709698,), (1372709700,), (1372709702,), (1372709724,), (1372709725,)) 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 (1372709700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25091599 , 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=25091570 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 (25091599) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25091570) result : ((1372708902,), (1372708957,), (1372709016,), (1372709091,), (1372709148,), (1372709181,), (1372709499,), (1372709660,), (1372709664,), (1372709666,), (1372709669,), (1372709671,), (1372709672,), (1372709679,), (1372709681,), (1372709683,), (1372709684,), (1372709685,), (1372709686,), (1372709697,), (1372709698,), (1372709700,), (1372709702,), (1372709724,), (1372709725,)) 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 (1372709700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25091600 , 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=25091570 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 (25091600) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25091570) result : ((1372708902,), (1372708957,), (1372709016,), (1372709091,), (1372709148,), (1372709181,), (1372709499,), (1372709660,), (1372709664,), (1372709666,), (1372709669,), (1372709671,), (1372709672,), (1372709679,), (1372709681,), (1372709683,), (1372709684,), (1372709685,), (1372709686,), (1372709697,), (1372709698,), (1372709700,), (1372709702,), (1372709724,), (1372709725,)) 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 (1372709700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25091601 , 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=25091570 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 (25091601) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25091570) result : ((1372708902,), (1372708957,), (1372709016,), (1372709091,), (1372709148,), (1372709181,), (1372709499,), (1372709660,), (1372709664,), (1372709666,), (1372709669,), (1372709671,), (1372709672,), (1372709679,), (1372709681,), (1372709683,), (1372709684,), (1372709685,), (1372709686,), (1372709697,), (1372709698,), (1372709700,), (1372709702,), (1372709724,), (1372709725,)) 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 (1372709700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25091602 , 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=25091570 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 (25091602) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25091570) result : ((1372708902,), (1372708957,), (1372709016,), (1372709091,), (1372709148,), (1372709181,), (1372709499,), (1372709660,), (1372709664,), (1372709666,), (1372709669,), (1372709671,), (1372709672,), (1372709679,), (1372709681,), (1372709683,), (1372709684,), (1372709685,), (1372709686,), (1372709697,), (1372709698,), (1372709700,), (1372709702,), (1372709724,), (1372709725,)) 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 (1372709700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25091603 , 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=25091570 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 (25091603) result : ((1372709745,), (1372709746,), (1372709748,), (1372709764,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25091570) result : ((1372708902,), (1372708957,), (1372709016,), (1372709091,), (1372709148,), (1372709181,), (1372709499,), (1372709660,), (1372709664,), (1372709666,), (1372709669,), (1372709671,), (1372709672,), (1372709679,), (1372709681,), (1372709683,), (1372709684,), (1372709685,), (1372709686,), (1372709697,), (1372709698,), (1372709700,), (1372709702,), (1372709724,), (1372709725,)) 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 (1372709700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25091604 , 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=25091570 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 (25091604) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25091570) result : ((1372708902,), (1372708957,), (1372709016,), (1372709091,), (1372709148,), (1372709181,), (1372709499,), (1372709660,), (1372709664,), (1372709666,), (1372709669,), (1372709671,), (1372709672,), (1372709679,), (1372709681,), (1372709683,), (1372709684,), (1372709685,), (1372709686,), (1372709697,), (1372709698,), (1372709700,), (1372709702,), (1372709724,), (1372709725,)) 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 (1372709700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25091605 , 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=25091570 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 (25091605) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25091570) result : ((1372708902,), (1372708957,), (1372709016,), (1372709091,), (1372709148,), (1372709181,), (1372709499,), (1372709660,), (1372709664,), (1372709666,), (1372709669,), (1372709671,), (1372709672,), (1372709679,), (1372709681,), (1372709683,), (1372709684,), (1372709685,), (1372709686,), (1372709697,), (1372709698,), (1372709700,), (1372709702,), (1372709724,), (1372709725,)) 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 (1372709700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25091606 , 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=25091570 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 (25091606) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25091570) result : ((1372708902,), (1372708957,), (1372709016,), (1372709091,), (1372709148,), (1372709181,), (1372709499,), (1372709660,), (1372709664,), (1372709666,), (1372709669,), (1372709671,), (1372709672,), (1372709679,), (1372709681,), (1372709683,), (1372709684,), (1372709685,), (1372709686,), (1372709697,), (1372709698,), (1372709700,), (1372709702,), (1372709724,), (1372709725,)) 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 (1372709700) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25091570 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','plastique','autre_refus','flou','metal','environnement','Teint_Dans_La_Masse','papier','Carton_brun','mal_croppe','kraft')) 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`=25091570 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','plastique','autre_refus','flou','metal','environnement','Teint_Dans_La_Masse','papier','Carton_brun','mal_croppe','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 25091570, 'sub_port_id': 25091607, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917533, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 31)}, 'mal_croppe': {'main_port_id': 25091570, 'sub_port_id': 25091608, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917534, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 31)}, 'environnement': {'main_port_id': 25091570, 'sub_port_id': 25091609, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917535, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 31)}, 'papier': {'main_port_id': 25091570, 'sub_port_id': 25091610, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917536, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 31)}, 'autre_refus': {'main_port_id': 25091570, 'sub_port_id': 25091611, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917537, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 31)}, 'plastique': {'main_port_id': 25091570, 'sub_port_id': 25091612, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917538, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 25091570, 'sub_port_id': 25091613, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917539, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 31)}, 'Carton_brun': {'main_port_id': 25091570, 'sub_port_id': 25091614, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917540, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 31)}, 'kraft': {'main_port_id': 25091570, 'sub_port_id': 25091615, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917541, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 31)}, 'flou': {'main_port_id': 25091570, 'sub_port_id': 25091616, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917542, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 31)}, 'metal': {'main_port_id': 25091570, 'sub_port_id': 25091617, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917543, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 31)}, 'Carton_gris': {'main_port_id': 25091570, 'sub_port_id': 25091618, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16917544, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 3, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25091607,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25091595 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25091608,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25091596 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25091609,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25091597 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25091610,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25091598 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25091611,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25091599 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25091612,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25091600 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25091613,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25091601 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25091614,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25091602 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25091615,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25091603 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25091616,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25091604 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25091617,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25091605 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25091618,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25091606 lien utilise dans velours : https://www.fotonower.com/velours/25091607,25091608,25091609,25091610,25091611,25091612,25091613,25091614,25091615,25091616,25091617,25091618?tags=cartonnette,mal_croppe,environnement,papier,autre_refus,plastique,Teint_Dans_La_Masse,Carton_brun,kraft,flou,metal,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25091570]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1372709725, 1372709724, 1372709702, 1372709700, 1372709698, 1372709697, 1372709686, 1372709685, 1372709684, 1372709683, 1372709681, 1372709679] map_info['map_portfolio_photo'] : {25091570: [1372709725, 1372709724, 1372709702, 1372709700, 1372709698, 1372709697, 1372709686, 1372709685, 1372709684, 1372709683, 1372709681, 1372709679, 1372709672, 1372709671, 1372709669, 1372709666, 1372709664, 1372709660, 1372709499, 1372709181, 1372709148, 1372709091, 1372709016, 1372708957, 1372708902]} final : False mtd_id 4302 list_pids : [1372709725, 1372709724, 1372709702, 1372709700, 1372709698, 1372709697, 1372709686, 1372709685, 1372709684, 1372709683, 1372709681, 1372709679] Looping around the photos to save general results len do output : 1 /25091570. 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, '3309199') ('4302', '25091570', '1372709725', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709724', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709702', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709700', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709698', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709697', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709686', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709685', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709684', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709683', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709681', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709679', None, None, None, None, None, '3309199') 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, '25091570', "{'cartonnette': 25091595, 'mal_croppe': 25091596, 'environnement': 25091597, 'papier': 25091598, 'autre_refus': 25091599, 'plastique': 25091600, 'Teint_Dans_La_Masse': 25091601, 'Carton_brun': 25091602, 'kraft': 25091603, 'flou': 25091604, 'metal': 25091605, 'Carton_gris': 25091606}", None, None, None, None, '3309199'), ('4302', '25091570', '1372709725', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709724', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709702', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709700', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709698', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709697', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709686', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709685', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709684', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709683', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709681', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709679', None, None, None, None, None, '3309199')] time used for this insertion : 0.014513254165649414 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.42578601837158203 time spend to save output : 0.014843940734863281 total time spend for step 1 : 0.4406299591064453 step2:final Sat Jul 19 03:06:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25091570) 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 25091570 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1372709181,1372709499,1372709148,1372709091,1372709016,1372708957,1372708902,1372709672,1372709671,1372709669,1372709666,1372709664,1372709660,1372709686,1372709685,1372709684,1372709683,1372709681,1372709679,1372709725,1372709724,1372709702,1372709700,1372709698,1372709697); 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([25091570]) Inside saveOutput : final : False verbose : True original output for save of step final : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ('0.1514611171748127',), 1372709684: ('0.1514611171748127',), 1372709683: ('0.1514611171748127',), 1372709681: ('0.1514611171748127',), 1372709679: ('0.1514611171748127',)} new output for save of step final : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ('0.1514611171748127',), 1372709684: ('0.1514611171748127',), 1372709683: ('0.1514611171748127',), 1372709681: ('0.1514611171748127',), 1372709679: ('0.1514611171748127',)} [1372709725, 1372709724, 1372709702, 1372709700, 1372709698, 1372709697, 1372709686, 1372709685, 1372709684, 1372709683, 1372709681, 1372709679] map_info['map_portfolio_photo'] : {25091570: [1372709725, 1372709724, 1372709702, 1372709700, 1372709698, 1372709697, 1372709686, 1372709685, 1372709684, 1372709683, 1372709681, 1372709679, 1372709672, 1372709671, 1372709669, 1372709666, 1372709664, 1372709660, 1372709499, 1372709181, 1372709148, 1372709091, 1372709016, 1372708957, 1372708902]} final : False mtd_id 4302 list_pids : [1372709725, 1372709724, 1372709702, 1372709700, 1372709698, 1372709697, 1372709686, 1372709685, 1372709684, 1372709683, 1372709681, 1372709679] Looping around the photos to save general results len do output : 12 /1372709725.Didn't retrieve data . /1372709724.Didn't retrieve data . /1372709702.Didn't retrieve data . /1372709700.Didn't retrieve data . /1372709698.Didn't retrieve data . /1372709697.Didn't retrieve data . /1372709686.Didn't retrieve data . /1372709685.Didn't retrieve data . /1372709684.Didn't retrieve data . /1372709683.Didn't retrieve data . /1372709681.Didn't retrieve data . /1372709679.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, '3309199') ('4302', '25091570', '1372709725', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709724', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709702', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709700', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709698', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709697', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709686', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709685', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709684', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709683', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709681', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709679', None, None, None, None, None, '3309199') 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', '25091570', '1372709725', '0.1514611171748127', None, None, None, None, '3309199'), ('4302', '25091570', '1372709724', '0.1514611171748127', None, None, None, None, '3309199'), ('4302', '25091570', '1372709702', '0.1514611171748127', None, None, None, None, '3309199'), ('4302', '25091570', '1372709700', '0.1514611171748127', None, None, None, None, '3309199'), ('4302', '25091570', '1372709698', '0.1514611171748127', None, None, None, None, '3309199'), ('4302', '25091570', '1372709697', '0.1514611171748127', None, None, None, None, '3309199'), ('4302', '25091570', '1372709686', '0.1514611171748127', None, None, None, None, '3309199'), ('4302', '25091570', '1372709685', '0.1514611171748127', None, None, None, None, '3309199'), ('4302', '25091570', '1372709684', '0.1514611171748127', None, None, None, None, '3309199'), ('4302', '25091570', '1372709683', '0.1514611171748127', None, None, None, None, '3309199'), ('4302', '25091570', '1372709681', '0.1514611171748127', None, None, None, None, '3309199'), ('4302', '25091570', '1372709679', '0.1514611171748127', None, None, None, None, '3309199')] time used for this insertion : 0.013086795806884766 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06302356719970703 time spend to save output : 0.013770580291748047 total time spend for step 2 : 0.07679414749145508 step3:velours_tree Sat Jul 19 03:06:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25091570: [{'cartonnette': 25091595, 'mal_croppe': 25091596, 'environnement': 25091597, 'papier': 25091598, 'autre_refus': 25091599, 'plastique': 25091600, 'Teint_Dans_La_Masse': 25091601, 'Carton_brun': 25091602, 'kraft': 25091603, 'flou': 25091604, 'metal': 25091605, 'Carton_gris': 25091606}]} input_args_next_step : {25091570: ()} output_args : {25091570: [{'cartonnette': 25091595, 'mal_croppe': 25091596, 'environnement': 25091597, 'papier': 25091598, 'autre_refus': 25091599, 'plastique': 25091600, 'Teint_Dans_La_Masse': 25091601, 'Carton_brun': 25091602, 'kraft': 25091603, 'flou': 25091604, 'metal': 25091605, 'Carton_gris': 25091606}]} args : 25091570 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 : ({'cartonnette': 25091595, 'mal_croppe': 25091596, 'environnement': 25091597, 'papier': 25091598, 'autre_refus': 25091599, 'plastique': 25091600, 'Teint_Dans_La_Masse': 25091601, 'Carton_brun': 25091602, 'kraft': 25091603, 'flou': 25091604, 'metal': 25091605, 'Carton_gris': 25091606},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25091570) 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([25091570]) 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.29233455657958984 time spend to save output : 4.267692565917969e-05 total time spend for step 3 : 0.292377233505249 step4:send_mail_cod Sat Jul 19 03:06:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ('0.1514611171748127',), 1372709684: ('0.1514611171748127',), 1372709683: ('0.1514611171748127',), 1372709681: ('0.1514611171748127',), 1372709679: ('0.1514611171748127',)} input_args_next_step : {1372709725: ()} output_args : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ('0.1514611171748127',), 1372709684: ('0.1514611171748127',), 1372709683: ('0.1514611171748127',), 1372709681: ('0.1514611171748127',), 1372709679: ('0.1514611171748127',)} args : 1372709725 depend.output_id : 0 input_args_next_step : {1372709725: ('0.1514611171748127',), 1372709724: ()} output_args : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ('0.1514611171748127',), 1372709684: ('0.1514611171748127',), 1372709683: ('0.1514611171748127',), 1372709681: ('0.1514611171748127',), 1372709679: ('0.1514611171748127',)} args : 1372709724 depend.output_id : 0 input_args_next_step : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ()} output_args : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ('0.1514611171748127',), 1372709684: ('0.1514611171748127',), 1372709683: ('0.1514611171748127',), 1372709681: ('0.1514611171748127',), 1372709679: ('0.1514611171748127',)} args : 1372709702 depend.output_id : 0 input_args_next_step : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ()} output_args : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ('0.1514611171748127',), 1372709684: ('0.1514611171748127',), 1372709683: ('0.1514611171748127',), 1372709681: ('0.1514611171748127',), 1372709679: ('0.1514611171748127',)} args : 1372709700 depend.output_id : 0 input_args_next_step : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ()} output_args : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ('0.1514611171748127',), 1372709684: ('0.1514611171748127',), 1372709683: ('0.1514611171748127',), 1372709681: ('0.1514611171748127',), 1372709679: ('0.1514611171748127',)} args : 1372709698 depend.output_id : 0 input_args_next_step : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ()} output_args : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ('0.1514611171748127',), 1372709684: ('0.1514611171748127',), 1372709683: ('0.1514611171748127',), 1372709681: ('0.1514611171748127',), 1372709679: ('0.1514611171748127',)} args : 1372709697 depend.output_id : 0 input_args_next_step : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ()} output_args : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ('0.1514611171748127',), 1372709684: ('0.1514611171748127',), 1372709683: ('0.1514611171748127',), 1372709681: ('0.1514611171748127',), 1372709679: ('0.1514611171748127',)} args : 1372709686 depend.output_id : 0 input_args_next_step : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ()} output_args : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ('0.1514611171748127',), 1372709684: ('0.1514611171748127',), 1372709683: ('0.1514611171748127',), 1372709681: ('0.1514611171748127',), 1372709679: ('0.1514611171748127',)} args : 1372709685 depend.output_id : 0 input_args_next_step : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ('0.1514611171748127',), 1372709684: ()} output_args : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ('0.1514611171748127',), 1372709684: ('0.1514611171748127',), 1372709683: ('0.1514611171748127',), 1372709681: ('0.1514611171748127',), 1372709679: ('0.1514611171748127',)} args : 1372709684 depend.output_id : 0 input_args_next_step : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ('0.1514611171748127',), 1372709684: ('0.1514611171748127',), 1372709683: ()} output_args : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ('0.1514611171748127',), 1372709684: ('0.1514611171748127',), 1372709683: ('0.1514611171748127',), 1372709681: ('0.1514611171748127',), 1372709679: ('0.1514611171748127',)} args : 1372709683 depend.output_id : 0 input_args_next_step : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ('0.1514611171748127',), 1372709684: ('0.1514611171748127',), 1372709683: ('0.1514611171748127',), 1372709681: ()} output_args : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ('0.1514611171748127',), 1372709684: ('0.1514611171748127',), 1372709683: ('0.1514611171748127',), 1372709681: ('0.1514611171748127',), 1372709679: ('0.1514611171748127',)} args : 1372709681 depend.output_id : 0 input_args_next_step : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ('0.1514611171748127',), 1372709684: ('0.1514611171748127',), 1372709683: ('0.1514611171748127',), 1372709681: ('0.1514611171748127',), 1372709679: ()} output_args : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ('0.1514611171748127',), 1372709684: ('0.1514611171748127',), 1372709683: ('0.1514611171748127',), 1372709681: ('0.1514611171748127',), 1372709679: ('0.1514611171748127',)} args : 1372709679 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 : {25091570: [{'cartonnette': 25091595, 'mal_croppe': 25091596, 'environnement': 25091597, 'papier': 25091598, 'autre_refus': 25091599, 'plastique': 25091600, 'Teint_Dans_La_Masse': 25091601, 'Carton_brun': 25091602, 'kraft': 25091603, 'flou': 25091604, 'metal': 25091605, 'Carton_gris': 25091606}]} input_args_next_step : {1372709725: ('0.1514611171748127',), 1372709724: ('0.1514611171748127',), 1372709702: ('0.1514611171748127',), 1372709700: ('0.1514611171748127',), 1372709698: ('0.1514611171748127',), 1372709697: ('0.1514611171748127',), 1372709686: ('0.1514611171748127',), 1372709685: ('0.1514611171748127',), 1372709684: ('0.1514611171748127',), 1372709683: ('0.1514611171748127',), 1372709681: ('0.1514611171748127',), 1372709679: ('0.1514611171748127',), 25091570: ()} output_args : {25091570: [{'cartonnette': 25091595, 'mal_croppe': 25091596, 'environnement': 25091597, 'papier': 25091598, 'autre_refus': 25091599, 'plastique': 25091600, 'Teint_Dans_La_Masse': 25091601, 'Carton_brun': 25091602, 'kraft': 25091603, 'flou': 25091604, 'metal': 25091605, 'Carton_gris': 25091606}]} args : 25091570 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.1514611171748127',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25091570) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1372709725,1372709724,1372709702,1372709700,1372709698,1372709697,1372709686,1372709685,1372709684,1372709683,1372709681,1372709679) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1372709679 begin to download photo : 1372709684 begin to download photo : 1372709697 begin to download photo : 1372709702 download finish for photo 1372709679 begin to download photo : 1372709681 download finish for photo 1372709684 begin to download photo : 1372709685 download finish for photo 1372709697 begin to download photo : 1372709698 download finish for photo 1372709702 begin to download photo : 1372709724 download finish for photo 1372709681 begin to download photo : 1372709683 download finish for photo 1372709685 begin to download photo : 1372709686 download finish for photo 1372709698 begin to download photo : 1372709700 download finish for photo 1372709724 begin to download photo : 1372709725 download finish for photo 1372709686 download finish for photo 1372709725 download finish for photo 1372709683 download finish for photo 1372709700 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P25091570_19-07-2025_03_06_58.pdf 25091595 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25091595 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372709742: '1752887125_3221961_1372709148_bef01ee33b5e67ac3b36940dd24bdbe1_rle_crop_3886831274_0.png', 1372709743: '1752887125_3221961_1372709091_1eda2591077d32e7a1c10eeb1d8a02c1_rle_crop_3886831285_0.png', 1372709763: '1752887167_815630_1372709666_8dc7d36d55f0e99cf9eae49d1328c4cc_rle_crop_3886831890_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/1b37f945a1aaf7a8fac05a428b628cc0_14507728.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/717a5e3c022bcc674c5957a8f0c35364_80224457.png change filename to text .imagette250915951752887218/ imagette250915951752887218/1752887125_3221961_1372709091_1eda2591077d32e7a1c10eeb1d8a02c1_rle_crop_3886831285_0.png.png imagette250915951752887218/1752887167_815630_1372709666_8dc7d36d55f0e99cf9eae49d1328c4cc_rle_crop_3886831890_0.png.png imagette250915951752887218/1752887125_3221961_1372709148_bef01ee33b5e67ac3b36940dd24bdbe1_rle_crop_3886831274_0.png.png imagette250915961752887219/ imagette250915991752887219/ imagette250916001752887219/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/91e13b4af3d08d9e839d219fb9585647_83596248.png imagette250915951752887218 25091596 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25091596 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250915961752887219 25091599 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25091599 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250915991752887219 25091600 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25091600 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250916001752887219 25091603 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25091603 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372709745: '1752887125_3221961_1372709148_bef01ee33b5e67ac3b36940dd24bdbe1_rle_crop_3886831279_0.png', 1372709746: '1752887125_3221961_1372709091_1eda2591077d32e7a1c10eeb1d8a02c1_rle_crop_3886831286_0.png', 1372709748: '1752887125_3221961_1372708902_be8669385383946304e070af3978e207_rle_crop_3886831315_0.png', 1372709764: '1752887167_815630_1372709672_eb60178be5b410e616324960d9aa7231_rle_crop_3886831860_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/2082d9626540fdcc3bb9135ed930c7c2_7978773.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/54954929780a00e2d956defb798c154e_83326299.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/d709d49ccadad7b8092921b2f2d58b5e_8129289.png change filename to text .imagette250916031752887219/ imagette250916031752887219/1752887125_3221961_1372709148_bef01ee33b5e67ac3b36940dd24bdbe1_rle_crop_3886831279_0.png.png imagette250916031752887219/1752887167_815630_1372709672_eb60178be5b410e616324960d9aa7231_rle_crop_3886831860_0.png.png imagette250916031752887219/1752887125_3221961_1372709091_1eda2591077d32e7a1c10eeb1d8a02c1_rle_crop_3886831286_0.png.png imagette250916031752887219/1752887125_3221961_1372708902_be8669385383946304e070af3978e207_rle_crop_3886831315_0.png.png imagette250916041752887219/ imagette250916051752887219/ imagette250916011752887219/ imagette250916021752887219/ imagette250916061752887219/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/75f3c0aaab0d027bd5ab10698ae77968_47554681.png imagette250916031752887219 25091604 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25091604 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250916041752887219 25091605 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25091605 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250916051752887219 25091601 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25091601 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250916011752887219 25091602 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25091602 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250916021752887219 25091606 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25091606 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250916061752887219 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25091570 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25091607,25091608,25091609,25091610,25091611,25091612,25091613,25091614,25091615,25091616,25091617,25091618?tags=cartonnette,mal_croppe,environnement,papier,autre_refus,plastique,Teint_Dans_La_Masse,Carton_brun,kraft,flou,metal,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1372709725] : ('0.1514611171748127',) no score found for photo 1372709725 We are sending mail with results at report@fotonower.com args[1372709724] : ('0.1514611171748127',) no score found for photo 1372709724 We are sending mail with results at report@fotonower.com args[1372709702] : ('0.1514611171748127',) no score found for photo 1372709702 We are sending mail with results at report@fotonower.com args[1372709700] : ('0.1514611171748127',) no score found for photo 1372709700 We are sending mail with results at report@fotonower.com args[1372709698] : ('0.1514611171748127',) no score found for photo 1372709698 We are sending mail with results at report@fotonower.com args[1372709697] : ('0.1514611171748127',) no score found for photo 1372709697 We are sending mail with results at report@fotonower.com args[1372709686] : ('0.1514611171748127',) no score found for photo 1372709686 We are sending mail with results at report@fotonower.com args[1372709685] : ('0.1514611171748127',) no score found for photo 1372709685 We are sending mail with results at report@fotonower.com args[1372709684] : ('0.1514611171748127',) no score found for photo 1372709684 We are sending mail with results at report@fotonower.com args[1372709683] : ('0.1514611171748127',) no score found for photo 1372709683 We are sending mail with results at report@fotonower.com args[1372709681] : ('0.1514611171748127',) no score found for photo 1372709681 We are sending mail with results at report@fotonower.com args[1372709679] : ('0.1514611171748127',) no score found for photo 1372709679 We are sending mail with results at report@fotonower.com refus_total : 0.1514611171748127 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25091570 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_P25091570_19-07-2025_03_06_58.pdf results_Auto_P25091570_19-07-2025_03_06_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25091570_19-07-2025_03_06_58.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','25091570','results_Auto_P25091570_19-07-2025_03_06_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25091570_19-07-2025_03_06_58.pdf','pdf','','0.12','0.1514611171748127') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25091570]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1372709725, 1372709724, 1372709702, 1372709700, 1372709698, 1372709697, 1372709686, 1372709685, 1372709684, 1372709683, 1372709681, 1372709679] map_info['map_portfolio_photo'] : {25091570: [1372709725, 1372709724, 1372709702, 1372709700, 1372709698, 1372709697, 1372709686, 1372709685, 1372709684, 1372709683, 1372709681, 1372709679, 1372709672, 1372709671, 1372709669, 1372709666, 1372709664, 1372709660, 1372709499, 1372709181, 1372709148, 1372709091, 1372709016, 1372708957, 1372708902]} final : False mtd_id 4302 list_pids : [1372709725, 1372709724, 1372709702, 1372709700, 1372709698, 1372709697, 1372709686, 1372709685, 1372709684, 1372709683, 1372709681, 1372709679] 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, '3309199') ('4302', '25091570', '1372709725', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709724', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709702', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709700', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709698', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709697', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709686', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709685', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709684', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709683', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709681', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709679', None, None, None, None, None, '3309199') 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', '25091570', '1372709725', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709724', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709702', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709700', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709698', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709697', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709686', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709685', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709684', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709683', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709681', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709679', None, None, None, None, None, '3309199')] time used for this insertion : 0.013693809509277344 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0117743015289307 time spend to save output : 0.013921737670898438 total time spend for step 4 : 2.025696039199829 step5:split_time_score Sat Jul 19 03:07:00 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 : ['25091570'] 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 : [('25091570',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25091570) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1372709684: {'path': 'temp/1752887218_810103_1372709684_89dc3dd1a1b34df55d51aed3e270e501.jpg', 'extension': 'jpg'}, 1372709685: {'path': 'temp/1752887218_810103_1372709685_a95425ea348ab82d9858182de44fa795.jpg', 'extension': 'jpg'}, 1372709686: {'path': 'temp/1752887218_810103_1372709686_5f4b65698cce6757c0826c09d8ec4ecf.jpg', 'extension': 'jpg'}, 1372709702: {'path': 'temp/1752887218_810103_1372709702_dd340fb623448c714ba81c16bd87a24f.jpg', 'extension': 'jpg'}, 1372709724: {'path': 'temp/1752887218_810103_1372709724_533c98ee05f11301a536e9e781491f1d.jpg', 'extension': 'jpg'}, 1372709725: {'path': 'temp/1752887218_810103_1372709725_f7fd4813d8c7eef529be04e64549619a.jpg', 'extension': 'jpg'}, 1372709679: {'path': 'temp/1752887218_810103_1372709679_f1397c8cf7d7519b7a8a29496557c3a0.jpg', 'extension': 'jpg'}, 1372709681: {'path': 'temp/1752887218_810103_1372709681_44a25f2da69b443b1bd66d72feb2b46d.jpg', 'extension': 'jpg'}, 1372709683: {'path': 'temp/1752887218_810103_1372709683_a4a089e8e6142435cd4716b3cac13cd3.jpg', 'extension': 'jpg'}, 1372709697: {'path': 'temp/1752887218_810103_1372709697_7b1220b0863815110db536f4967406ff.jpg', 'extension': 'jpg'}, 1372709698: {'path': 'temp/1752887218_810103_1372709698_483847da8e27093c5c1e5f6d65b42377.jpg', 'extension': 'jpg'}, 1372709700: {'path': 'temp/1752887218_810103_1372709700_80bae13331c697ca9678f44438c5a802.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 = 25091570; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25091570 group by h (('03', 25),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25091570 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 (25091570) 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 (25091570) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 19072025 25091570 Nombre de photos uploadées : 25 / 23040 (0%) 19072025 25091570 Nombre de photos taguées (types de déchets): 0 / 25 (0%) 19072025 25091570 Nombre de photos taguées (volume) : 0 / 25 (0%) [{'photo_id': 1372709181, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/8623f6c5509137154c7873670c59cd77.jpg', 'username': None, 'uploaded_at': 1752886862, 'text': 'image_19072025_03_00_04_10146.jpg'}, {'photo_id': 1372709499, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/03cb9b3c9c2c1e9ee7b231a469e85d37.jpg', 'username': None, 'uploaded_at': 1752886927, 'text': 'image_19072025_03_00_04_10146.jpg'}, {'photo_id': 1372709148, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/bef01ee33b5e67ac3b36940dd24bdbe1.jpg', 'username': None, 'uploaded_at': 1752886862, 'text': 'image_19072025_03_00_14_10137.jpg'}, {'photo_id': 1372709091, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/1eda2591077d32e7a1c10eeb1d8a02c1.jpg', 'username': None, 'uploaded_at': 1752886862, 'text': 'image_19072025_03_00_24_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 4.291534423828125e-06 ????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0021076202392578125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25091570, '2025-07-19' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1989719,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02282428741455078 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= 1989719 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997459, 'mtr_portfolio_id': 25086929, 'dashboard_result_id': 12750214, '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_P25086929_19-07-2025_02_45_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25086933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25086934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25086935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25086936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25086937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25086938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25086939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25086940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25086941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25086942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25086943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25086944, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997459, 'mtr_portfolio_id': 25087248, 'dashboard_result_id': 12750215, '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_P25087248_19-07-2025_00_31_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25087252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25087253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25087254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25087255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25087256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25087257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25087258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25087259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25087260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25087261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25087262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25087263, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997459, 'mtr_portfolio_id': 25087671, 'dashboard_result_id': 12750216, '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_P25087671_19-07-2025_00_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25087684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25087685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25087686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25087687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25087688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25087689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25087690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25087691, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25087692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25087693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25087694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25087695, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997459, 'mtr_portfolio_id': 25088014, 'dashboard_result_id': 12750217, '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_P25088014_19-07-2025_02_44_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25088021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088027, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997459, 'mtr_portfolio_id': 25088320, 'dashboard_result_id': 12750218, '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_P25088320_19-07-2025_01_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088351, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088352, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25088353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088357, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997459, 'mtr_portfolio_id': 25088797, 'dashboard_result_id': 12750219, '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_P25088797_19-07-2025_01_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25088813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088820, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088824, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997459, 'mtr_portfolio_id': 25089158, 'dashboard_result_id': 12750220, '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_P25089158_19-07-2025_01_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25089185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25089186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25089187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25089188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25089189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25089190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25089191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25089192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25089193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25089194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25089195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25089196, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997459, 'mtr_portfolio_id': 25089573, 'dashboard_result_id': 12750221, '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_P25089573_19-07-2025_02_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25089601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25089602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25089603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25089604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25089605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25089606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25089607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25089608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25089609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25089610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25089611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25089612, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997459, 'mtr_portfolio_id': 25090044, 'dashboard_result_id': 12750222, '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_P25090044_19-07-2025_02_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090056, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997459, 'mtr_portfolio_id': 25090451, 'dashboard_result_id': 12750223, '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_P25090451_19-07-2025_02_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090486, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090489, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997459, 'mtr_portfolio_id': 25090846, 'dashboard_result_id': 12750224, '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_P25090846_19-07-2025_02_46_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090884, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997459, 'mtr_portfolio_id': 25091167, 'dashboard_result_id': 12750225, '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_P25091167_19-07-2025_03_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25091195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25091196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25091197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25091198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25091199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25091200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25091201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25091202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25091203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25091204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25091205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25091206, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997459, 'mtr_portfolio_id': 25091570, 'dashboard_result_id': 12750226, '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_P25091570_19-07-2025_03_03_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25091595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25091596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25091597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25091598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25091599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25091600, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25091601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25091602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25091603, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25091604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25091605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25091606, '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 = 25086929 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': 3308718, 'mtr_portfolio_id': 25086929, 'created_at': datetime.datetime(2025, 7, 19, 2, 45, 27), 'result': '0.03913204905862356', 'result_long': None, 'result_double': None}] Qualite : 0.03913204905862356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25086929 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25086929_19-07-2025_02_45_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25086929 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_P25086929_19-07-2025_02_45_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25086933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25086934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25086935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25086936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25086937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25086938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25086939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25086940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25086941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25086942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25086943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25086944, 'pht': 3726}}" where mtr_portfolio_id = 25086929 and dashboard_run_id = 1997459 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`=25086929 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12750214, 0.03913204905862356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25086929_19-07-2025_02_45_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25086933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25086934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25086935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25086936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25086937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25086938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25086939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25086940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25086941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25086942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25086943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25086944, '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 = 25087248 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': 3308754, 'mtr_portfolio_id': 25087248, 'created_at': datetime.datetime(2025, 7, 19, 0, 31), 'result': '0.03972843254770483', 'result_long': None, 'result_double': None}] Qualite : 0.03972843254770483 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25087248 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25087248_19-07-2025_00_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25087248 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_P25087248_19-07-2025_00_31_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25087252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25087253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25087254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25087255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25087256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25087257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25087258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25087259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25087260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25087261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25087262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25087263, 'pht': 3726}}" where mtr_portfolio_id = 25087248 and dashboard_run_id = 1997459 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`=25087248 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12750215, 0.03972843254770483, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25087248_19-07-2025_00_31_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25087252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25087253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25087254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25087255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25087256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25087257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25087258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25087259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25087260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25087261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25087262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25087263, '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 = 25087671 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': 3308796, 'mtr_portfolio_id': 25087671, 'created_at': datetime.datetime(2025, 7, 19, 0, 46, 58), 'result': '0.040614766647832784', 'result_long': None, 'result_double': None}] Qualite : 0.040614766647832784 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25087671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25087671_19-07-2025_00_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25087671 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_P25087671_19-07-2025_00_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25087684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25087685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25087686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25087687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25087688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25087689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25087690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25087691, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25087692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25087693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25087694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25087695, 'pht': 3726}}" where mtr_portfolio_id = 25087671 and dashboard_run_id = 1997459 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`=25087671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12750216, 0.040614766647832784, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25087671_19-07-2025_00_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25087684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25087685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25087686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25087687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25087688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25087689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25087690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25087691, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25087692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25087693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25087694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25087695, '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 = 25088014 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': 3308829, 'mtr_portfolio_id': 25088014, 'created_at': datetime.datetime(2025, 7, 19, 2, 44, 28), 'result': '0.03743177972534913', 'result_long': None, 'result_double': None}] Qualite : 0.03743177972534913 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25088014 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25088014_19-07-2025_02_44_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25088014 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_P25088014_19-07-2025_02_44_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25088021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088027, 'pht': 3726}}" where mtr_portfolio_id = 25088014 and dashboard_run_id = 1997459 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`=25088014 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12750217, 0.03743177972534913, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25088014_19-07-2025_02_44_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25088021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088027, '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 = 25088320 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': 3308880, 'mtr_portfolio_id': 25088320, 'created_at': datetime.datetime(2025, 7, 19, 1, 16, 59), 'result': '0.02487109510281073', 'result_long': None, 'result_double': None}] Qualite : 0.02487109510281073 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25088320 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25088320_19-07-2025_01_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25088320 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_P25088320_19-07-2025_01_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088351, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088352, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25088353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088357, 'pht': 3726}}" where mtr_portfolio_id = 25088320 and dashboard_run_id = 1997459 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`=25088320 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12750218, 0.02487109510281073, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25088320_19-07-2025_01_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088351, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088352, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25088353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088357, '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 = 25088797 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': 3308919, 'mtr_portfolio_id': 25088797, 'created_at': datetime.datetime(2025, 7, 19, 1, 33, 29), 'result': '0.009828328214066689', 'result_long': None, 'result_double': None}] Qualite : 0.009828328214066689 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25088797 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25088797_19-07-2025_01_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25088797 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_P25088797_19-07-2025_01_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25088813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088820, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088824, 'pht': 3726}}" where mtr_portfolio_id = 25088797 and dashboard_run_id = 1997459 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`=25088797 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12750219, 0.009828328214066689, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25088797_19-07-2025_01_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25088813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088820, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088824, '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 = 25089158 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': 3308955, 'mtr_portfolio_id': 25089158, 'created_at': datetime.datetime(2025, 7, 19, 1, 46, 29), 'result': '0.025093452418744777', 'result_long': None, 'result_double': None}] Qualite : 0.025093452418744777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25089158 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25089158_19-07-2025_01_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25089158 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_P25089158_19-07-2025_01_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25089185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25089186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25089187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25089188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25089189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25089190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25089191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25089192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25089193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25089194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25089195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25089196, 'pht': 3726}}" where mtr_portfolio_id = 25089158 and dashboard_run_id = 1997459 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`=25089158 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12750220, 0.025093452418744777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25089158_19-07-2025_01_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25089185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25089186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25089187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25089188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25089189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25089190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25089191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25089192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25089193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25089194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25089195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25089196, '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 = 25089573 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': 3308998, 'mtr_portfolio_id': 25089573, 'created_at': datetime.datetime(2025, 7, 19, 2, 0, 59), 'result': '0.043765417373542455', 'result_long': None, 'result_double': None}] Qualite : 0.043765417373542455 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25089573 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25089573_19-07-2025_02_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25089573 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_P25089573_19-07-2025_02_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25089601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25089602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25089603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25089604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25089605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25089606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25089607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25089608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25089609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25089610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25089611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25089612, 'pht': 3726}}" where mtr_portfolio_id = 25089573 and dashboard_run_id = 1997459 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`=25089573 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12750221, 0.043765417373542455, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25089573_19-07-2025_02_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25089601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25089602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25089603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25089604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25089605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25089606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25089607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25089608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25089609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25089610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25089611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25089612, '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 = 25090044 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': 3309042, 'mtr_portfolio_id': 25090044, 'created_at': datetime.datetime(2025, 7, 19, 2, 16, 57), 'result': '0.05976591413501777', 'result_long': None, 'result_double': None}] Qualite : 0.05976591413501777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25090044 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25090044_19-07-2025_02_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25090044 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_P25090044_19-07-2025_02_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090056, 'pht': 3726}}" where mtr_portfolio_id = 25090044 and dashboard_run_id = 1997459 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`=25090044 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12750222, 0.05976591413501777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25090044_19-07-2025_02_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090056, '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 = 25090451 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': 3309076, 'mtr_portfolio_id': 25090451, 'created_at': datetime.datetime(2025, 7, 19, 2, 32, 57), 'result': '0.03597129188925794', 'result_long': None, 'result_double': None}] Qualite : 0.03597129188925794 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25090451 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25090451_19-07-2025_02_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25090451 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_P25090451_19-07-2025_02_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090486, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090489, 'pht': 3726}}" where mtr_portfolio_id = 25090451 and dashboard_run_id = 1997458 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`=25090451 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12750223, 0.03597129188925794, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25090451_19-07-2025_02_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090486, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090489, '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 = 25090846 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': 3309113, 'mtr_portfolio_id': 25090846, 'created_at': datetime.datetime(2025, 7, 19, 2, 46, 29), 'result': '0.03264356474414739', 'result_long': None, 'result_double': None}] Qualite : 0.03264356474414739 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25090846 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25090846_19-07-2025_02_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25090846 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_P25090846_19-07-2025_02_46_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090884, 'pht': 3726}}" where mtr_portfolio_id = 25090846 and dashboard_run_id = 1997458 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`=25090846 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12750224, 0.03264356474414739, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25090846_19-07-2025_02_46_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090884, '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 = 25091167 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': 3309148, 'mtr_portfolio_id': 25091167, 'created_at': datetime.datetime(2025, 7, 19, 3, 2, 59), 'result': '0.08928014043983437', 'result_long': None, 'result_double': None}] Qualite : 0.08928014043983437 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25091167 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25091167_19-07-2025_03_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25091167 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_P25091167_19-07-2025_03_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25091195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25091196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25091197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25091198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25091199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25091200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25091201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25091202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25091203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25091204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25091205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25091206, 'pht': 3726}}" where mtr_portfolio_id = 25091167 and dashboard_run_id = 1997458 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`=25091167 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12750225, 0.08928014043983437, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25091167_19-07-2025_03_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25091195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25091196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25091197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25091198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25091199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25091200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25091201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25091202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25091203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25091204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25091205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25091206, '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 = 25091570 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': 3309199, 'mtr_portfolio_id': 25091570, 'created_at': datetime.datetime(2025, 7, 19, 3, 6, 58), 'result': '0.1514611171748127', 'result_long': None, 'result_double': None}] Qualite : 0.1514611171748127 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25091570 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25091570_19-07-2025_03_06_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25091570 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_P25091570_19-07-2025_03_06_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25091595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25091596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25091597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25091598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25091599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25091600, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25091601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25091602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25091603, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25091604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25091605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25091606, 'pht': 3726}}" where mtr_portfolio_id = 25091570 and dashboard_run_id = 1997458 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`=25091570 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12750226, 0.1514611171748127, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25091570_19-07-2025_03_06_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25091595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25091596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25091597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25091598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25091599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25091600, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25091601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25091602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25091603, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25091604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25091605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25091606, '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 (25086929,25087248,25087671,25088014,25088320,25088797,25089158,25089573,25090044,25090451,25090846,25091167,25091570) result : ((1372693349,), (1372693595,), (1372693784,), (1372693800,), (1372693802,), (1372693803,), (1372693812,), (1372693819,), (1372693842,), (1372693845,), (1372693848,), (1372693850,), (1372693853,), (1372693856,), (1372693870,), (1372693872,), (1372693873,), (1372693874,), (1372693887,), (1372693895,), (1372693938,), (1372693943,), (1372693947,), (1372693949,), (1372693951,), (1372693953,), (1372693979,), (1372693983,), (1372693987,), (1372693990,), (1372693992,), (1372693993,), (1372694037,), (1372694041,), (1372694043,), (1372694046,), (1372694048,), (1372694050,), (1372694076,), (1372694080,), (1372694083,), (1372694085,), (1372694087,), (1372694089,), (1372694108,), (1372694113,), (1372694117,), (1372694119,), (1372694121,), (1372694123,), (1372694144,), (1372694162,), (1372694193,), (1372694222,), (1372694224,), (1372694225,), (1372694226,), (1372694228,), (1372694230,), (1372694239,), (1372694243,), (1372694246,), (1372694248,), (1372694250,), (1372694252,), (1372702577,), (1372702623,), (1372694274,), (1372694277,), (1372694280,), (1372694282,), (1372694284,), (1372694286,), (1372694305,), (1372694312,), (1372694326,), (1372694327,), (1372694328,), (1372694334,), (1372694405,), (1372694409,), (1372694410,), (1372694412,), (1372694413,), (1372694415,), (1372694457,), (1372694469,), (1372694474,), (1372694476,), (1372694478,), (1372694505,), (1372694573,), (1372694592,), (1372694622,), (1372694639,), (1372694642,), (1372694645,), (1372694662,), (1372694664,), (1372694666,), (1372694667,), (1372694668,), (1372694669,), (1372694691,), (1372694735,), (1372694737,), (1372694739,), (1372694740,), (1372694741,), (1372694742,), (1372694773,), (1372694779,), (1372694781,), (1372694782,), (1372694784,), (1372694786,), (1372694813,), (1372694816,), (1372694819,), (1372694822,), (1372694824,), (1372694826,), (1372694847,), (1372694852,), (1372694854,), (1372694856,), (1372694857,), (1372694859,), (1372694873,), (1372694876,), (1372694879,), (1372694881,), (1372694882,), (1372694883,), (1372694934,), (1372694967,), (1372694971,), (1372694972,), (1372694975,), (1372694977,), (1372694980,), (1372695004,), (1372695014,), (1372695021,), (1372695026,), (1372695029,), (1372695031,), (1372695068,), (1372695071,), (1372695074,), (1372695076,), (1372695079,), (1372695082,), (1372695104,), (1372695145,), (1372695148,), (1372695150,), (1372695152,), (1372695154,), (1372695156,), (1372695171,), (1372695174,), (1372695176,), (1372695178,), (1372695180,), (1372695181,), (1372695199,), (1372695255,), (1372695284,), (1372695286,), (1372695287,), (1372695289,), (1372695291,), (1372695295,), (1372695365,), (1372695370,), (1372695393,), (1372695405,), (1372695415,), (1372695427,), (1372695496,), (1372695498,), (1372695511,), (1372695535,), (1372695564,), (1372695575,), (1372695612,), (1372695616,), (1372695620,), (1372695622,), (1372695623,), (1372695624,), (1372695664,), (1372695690,), (1372695723,), (1372695725,), (1372695727,), (1372695728,), (1372695729,), (1372695730,), (1372695795,), (1372695799,), (1372695801,), (1372695803,), (1372695805,), (1372695807,), (1372695828,), (1372695831,), (1372695835,), (1372695837,), (1372695839,), (1372695841,), (1372695861,), (1372695866,), (1372695869,), (1372695874,), (1372695878,), (1372695881,), (1372695898,), (1372695900,), (1372695901,), (1372695906,), (1372695912,), (1372695913,), (1372695949,), (1372695960,), (1372695964,), (1372695967,), (1372695969,), (1372695973,), (1372695976,), (1372696022,), (1372696024,), (1372696027,), (1372696031,), (1372696034,), (1372696037,), (1372696062,), (1372696095,), (1372696126,), (1372696127,), (1372696128,), (1372696129,), (1372696131,), (1372696133,), (1372696150,), (1372696153,), (1372696156,), (1372696158,), (1372696160,), (1372696163,), (1372696176,), (1372696179,), (1372696181,), (1372696194,), (1372696195,), (1372696196,), (1372696205,), (1372696207,), (1372696209,), (1372696211,), (1372696213,), (1372696215,), (1372696229,), (1372696232,), (1372696233,), (1372696236,), (1372696238,), (1372696243,), (1372696267,), (1372696268,), (1372696269,), (1372696281,), (1372696305,), (1372696353,), (1372697902,), (1372698532,), (1372702525,), (1372698458,), (1372698464,), (1372698500,), (1372698523,), (1372698525,), (1372698582,), (1372698606,), (1372698608,), (1372698610,), (1372698612,), (1372698614,), (1372698615,), (1372698770,), (1372698804,), (1372698834,), (1372698863,), (1372698892,), (1372698921,), (1372699184,), (1372699210,), (1372699234,), (1372699235,), (1372699236,), (1372699237,), (1372699398,), (1372699400,), (1372699428,), (1372699441,), (1372699443,), (1372699446,), (1372699462,), (1372699464,), (1372699467,), (1372699470,), (1372699472,), (1372699490,), (1372699525,), (1372699530,), (1372699532,), (1372699535,), (1372699537,), (1372699538,), (1372699555,), (1372699557,), (1372699558,), (1372699560,), (1372699562,), (1372699564,), (1372699584,), (1372699587,), (1372699590,), (1372699592,), (1372699594,), (1372699597,), (1372699629,), (1372699641,), (1372699693,), (1372699695,), (1372699697,), (1372699698,), (1372699699,), (1372699701,), (1372699718,), (1372699720,), (1372699721,), (1372699722,), (1372699724,), (1372699727,), (1372699737,), (1372699740,), (1372699742,), (1372699744,), (1372699746,), (1372699748,), (1372699764,), (1372699766,), (1372699768,), (1372699770,), (1372699771,), (1372699772,), (1372699798,), (1372699802,), (1372699803,), (1372699804,), (1372699805,), (1372699807,), (1372699887,), (1372699894,), (1372699896,), (1372699898,), (1372699900,), (1372699902,), (1372699921,), (1372699924,), (1372699927,), (1372699930,), (1372699933,), (1372699938,), (1372699955,), (1372699960,), (1372699963,), (1372699964,), (1372699965,), (1372699966,), (1372699984,), (1372699986,), (1372699989,), (1372699992,), (1372699996,), (1372700000,), (1372700010,), (1372700032,), (1372700034,), (1372700036,), (1372700037,), (1372700038,), (1372700039,), (1372700046,), (1372700048,), (1372700050,), (1372700051,), (1372700054,), (1372700056,), (1372700068,), (1372700070,), (1372700071,), (1372700073,), (1372700077,), (1372700079,), (1372700092,), (1372700095,), (1372700096,), (1372700098,), (1372700099,), (1372700101,), (1372700119,), (1372700121,), (1372700122,), (1372700125,), (1372700126,), (1372700128,), (1372700142,), (1372700143,), (1372700144,), (1372700145,), (1372700146,), (1372700148,), (1372700162,), (1372700165,), (1372700168,), (1372700171,), (1372700174,), (1372700176,), (1372700201,), (1372700204,), (1372700207,), (1372700209,), (1372700211,), (1372700212,), (1372700241,), (1372700244,), (1372700247,), (1372700248,), (1372700251,), (1372700253,), (1372700303,), (1372700346,), (1372700348,), (1372700350,), (1372700351,), (1372700352,), (1372700353,), (1372700376,), (1372700379,), (1372700381,), (1372700384,), (1372700385,), (1372700387,), (1372700399,), (1372700401,), (1372700402,), (1372700403,), (1372700404,), (1372700406,), (1372700429,), (1372700434,), (1372700436,), (1372700441,), (1372700444,), (1372700450,), (1372700467,), (1372700470,), (1372700473,), (1372700475,), (1372700478,), (1372700480,), (1372700490,), (1372700492,), (1372700495,), (1372700499,), (1372700503,), (1372700518,), (1372700542,), (1372700546,), (1372700548,), (1372700550,), (1372700553,), (1372700556,), (1372700572,), (1372700577,), (1372700580,), (1372700592,), (1372700600,), (1372700610,), (1372700656,), (1372700674,), (1372700693,), (1372700696,), (1372700699,), (1372700700,), (1372700701,), (1372700702,), (1372700727,), (1372700731,), (1372700733,), (1372700735,), (1372700736,), (1372700739,), (1372700754,), (1372700757,), (1372700759,), (1372700762,), (1372700764,), (1372700765,), (1372700778,), (1372700779,), (1372700780,), (1372700783,), (1372700787,), (1372700789,), (1372700819,), (1372700822,), (1372700825,), (1372700827,), (1372700843,), (1372700844,), (1372700875,), (1372700877,), (1372700878,), (1372700879,), (1372700880,), (1372700881,), (1372700898,), (1372700900,), (1372700903,), (1372700904,), (1372700906,), (1372700908,), (1372700929,), (1372700933,), (1372700936,), (1372700939,), (1372700942,), (1372700944,), (1372700969,), (1372700970,), (1372700972,), (1372700974,), (1372700976,), (1372700978,), (1372700991,), (1372701014,), (1372701016,), (1372701018,), (1372701020,), (1372701021,), (1372701022,), (1372701063,), (1372701078,), (1372701084,), (1372701089,), (1372701090,), (1372701108,), (1372701219,), (1372701223,), (1372701257,), (1372701264,), (1372701268,), (1372701305,), (1372701321,), (1372701324,), (1372701327,), (1372701399,), (1372701406,), (1372701408,), (1372701425,), (1372701427,), (1372701429,), (1372701430,), (1372701432,), (1372701434,), (1372701445,), (1372701450,), (1372701456,), (1372701459,), (1372701463,), (1372701465,), (1372702470,), (1372703157,), (1372703674,), (1372703881,), (1372703884,), (1372703892,), (1372703933,), (1372703994,), (1372704035,), (1372704443,), (1372704685,), (1372704711,), (1372704738,), (1372704759,), (1372704770,), (1372704771,), (1372704857,), (1372704860,), (1372704864,), (1372704867,), (1372704870,), (1372704873,), (1372704891,), (1372704894,), (1372704897,), (1372704905,), (1372704907,), (1372704910,), (1372704928,), (1372704932,), (1372704935,), (1372704937,), (1372704939,), (1372704941,), (1372704963,), (1372705072,), (1372705169,), (1372705170,), (1372705172,), (1372705225,), (1372705229,), (1372705231,), (1372705302,), (1372705321,), (1372705574,), (1372705576,), (1372705577,), (1372705579,), (1372705581,), (1372705584,), (1372705600,), (1372705608,), (1372705610,), (1372705615,), (1372705617,), (1372705627,), (1372705676,), (1372705678,), (1372705680,), (1372705682,), (1372705684,), (1372705686,), (1372705712,), (1372705714,), (1372705716,), (1372705718,), (1372705720,), (1372705724,), (1372705751,), (1372705753,), (1372705754,), (1372705755,), (1372705757,), (1372705762,), (1372705830,), (1372705844,), (1372705860,), (1372705864,), (1372705866,), (1372705868,), (1372705945,), (1372705953,), (1372705956,), (1372705960,), (1372705962,), (1372705963,), (1372705985,), (1372705987,), (1372705989,), (1372705990,), (1372705991,), (1372706000,), (1372706020,), (1372706063,), (1372706067,), (1372706070,), (1372706072,), (1372706074,), (1372706076,), (1372706109,), (1372706111,), (1372706112,), (1372706114,), (1372706117,), (1372706120,), (1372706139,), (1372706144,), (1372706148,), (1372706151,), (1372706154,), (1372706156,), (1372706181,), (1372706185,), (1372706188,), (1372706190,), (1372706191,), (1372706192,), (1372706222,), (1372706228,), (1372706232,), (1372706235,), (1372706237,), (1372706239,), (1372706271,), (1372706275,), (1372706281,), (1372706283,), (1372706286,), (1372706288,), (1372706334,), (1372706337,), (1372706341,), (1372706353,), (1372706357,), (1372706361,), (1372706384,), (1372706388,), (1372706391,), (1372706393,), (1372706395,), (1372706397,), (1372706430,), (1372706432,), (1372706433,), (1372706436,), (1372706438,), (1372706441,), (1372706450,), (1372706502,), (1372706504,), (1372706507,), (1372706509,), (1372706510,), (1372706511,), (1372706529,), (1372706532,), (1372706534,), (1372706537,), (1372706538,), (1372706540,), (1372706565,), (1372706594,), (1372706612,), (1372706618,), (1372706628,), (1372706636,), (1372706641,), (1372706646,), (1372706673,), (1372706676,), (1372706678,), (1372706680,), (1372706682,), (1372706683,), (1372706698,), (1372706700,), (1372706702,), (1372706704,), (1372706706,), (1372706722,), (1372706753,), (1372706773,), (1372706822,), (1372706845,), (1372706868,), (1372706883,), (1372706889,), (1372706890,), (1372706891,), (1372706909,), (1372706912,), (1372706915,), (1372706917,), (1372706919,), (1372706921,), (1372706939,), (1372706941,), (1372706952,), (1372706956,), (1372706957,), (1372706958,), (1372706981,), (1372706983,), (1372706985,), (1372706988,), (1372706991,), (1372706995,), (1372707004,), (1372707007,), (1372707010,), (1372707013,), (1372707015,), (1372707018,), (1372707072,), (1372707079,), (1372707082,), (1372707084,), (1372707085,), (1372707086,), (1372707101,), (1372707104,), (1372707107,), (1372707110,), (1372707114,), (1372707115,), (1372707123,), (1372707126,), (1372707128,), (1372707131,), (1372707133,), (1372707135,), (1372707153,), (1372707163,), (1372707217,), (1372707219,), (1372707221,), (1372707223,), (1372707225,), (1372707227,), (1372707237,), (1372707239,), (1372707240,), (1372707243,), (1372707244,), (1372707247,), (1372707261,), (1372707264,), (1372707267,), (1372707269,), (1372707271,), (1372707272,), (1372707279,), (1372707280,), (1372707282,), (1372707284,), (1372707285,), (1372707286,), (1372707299,), (1372707302,), (1372707305,), (1372707306,), (1372707307,), (1372707308,), (1372707345,), (1372707347,), (1372707350,), (1372707352,), (1372707353,), (1372707354,), (1372708258,), (1372708284,), (1372708309,), (1372708333,), (1372708359,), (1372708388,), (1372708902,), (1372708957,), (1372709016,), (1372709091,), (1372709148,), (1372709181,), (1372709499,), (1372709660,), (1372709664,), (1372709666,), (1372709669,), (1372709671,), (1372709672,), (1372709679,), (1372709681,), (1372709683,), (1372709684,), (1372709685,), (1372709686,), (1372709697,), (1372709698,), (1372709700,), (1372709702,), (1372709724,), (1372709725,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'19072025': {'nb_upload': 25, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25091570]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1372709725, 1372709724, 1372709702, 1372709700, 1372709698, 1372709697, 1372709686, 1372709685, 1372709684, 1372709683, 1372709681, 1372709679] map_info['map_portfolio_photo'] : {25091570: [1372709725, 1372709724, 1372709702, 1372709700, 1372709698, 1372709697, 1372709686, 1372709685, 1372709684, 1372709683, 1372709681, 1372709679, 1372709672, 1372709671, 1372709669, 1372709666, 1372709664, 1372709660, 1372709499, 1372709181, 1372709148, 1372709091, 1372709016, 1372708957, 1372708902]} final : True mtd_id 4302 list_pids : [1372709725, 1372709724, 1372709702, 1372709700, 1372709698, 1372709697, 1372709686, 1372709685, 1372709684, 1372709683, 1372709681, 1372709679] Looping around the photos to save general results len do output : 1 /25091570Didn'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, '3309199') ('4302', '25091570', '1372709725', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709724', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709702', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709700', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709698', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709697', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709686', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709685', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709684', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709683', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709681', None, None, None, None, None, '3309199') ('4302', None, None, None, None, None, None, None, '3309199') ('4302', '25091570', '1372709679', None, None, None, None, None, '3309199') 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, '25091570', 'None', None, None, None, None, '3309199'), ('4302', '25091570', '1372709725', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709724', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709702', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709700', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709698', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709697', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709686', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709685', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709684', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709683', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709681', None, None, None, None, None, '3309199'), ('4302', '25091570', '1372709679', None, None, None, None, None, '3309199')] time used for this insertion : 0.014774084091186523 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.844857931137085 time spend to save output : 0.015031576156616211 total time spend for step 5 : 0.8598895072937012 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 (3309199) 2.20user 3.06system 0:05.70elapsed 92%CPU (0avgtext+0avgdata 158712maxresident)k 32inputs+6696outputs (1major+64276minor)pagefaults 0swaps