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 : 3135797 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 (2656770) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2656770) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21245285 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2656770'] with mtr_portfolio_ids : ['21245285'] and first list_photo_ids : [] new path : /proc/3135797/ Name: python3 Umask: 0002 State: R (running) Tgid: 3135797 Ngid: 0 Pid: 3135797 PPid: 3135796 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3135797 NSpid: 3135797 NSpgid: 3130923 NSsid: 3130923 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98344 kB VmRSS: 98344 kB RssAnon: 59808 kB RssFile: 38536 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 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: 53 nonvoluntary_ctxt_switches: 153 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3135797', 'Ngid': '0', 'Pid': '3135797', 'PPid': '3135796', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3135797', 'NSpid': '3135797', 'NSpgid': '3130923', 'NSsid': '3130923', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98344 kB', 'VmRSS': '98344 kB', 'RssAnon': '59808 kB', 'RssFile': '38536 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', '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': '53', 'nonvoluntary_ctxt_switches': '153'} ('datou_batch_current', '3135797', '1106844', '0', '1106844', '865592', '98344', b'', 'marlene', '2656770') 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 (21245285) 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 (2656770 ) ) 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 (21245285) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1342691600, 'portfolio_id': 21245285}, {'photo_id': 1342691216, 'portfolio_id': 21245285}, {'photo_id': 1342691131, 'portfolio_id': 21245285}, {'photo_id': 1342688445, 'portfolio_id': 21245285}, {'photo_id': 1342687809, 'portfolio_id': 21245285}, {'photo_id': 1342687755, 'portfolio_id': 21245285}, {'photo_id': 1342687750, 'portfolio_id': 21245285}, {'photo_id': 1342687746, 'portfolio_id': 21245285}, {'photo_id': 1342687740, 'portfolio_id': 21245285}, {'photo_id': 1342687599, 'portfolio_id': 21245285}, {'photo_id': 1342687573, 'portfolio_id': 21245285}, {'photo_id': 1342687081, 'portfolio_id': 21245285}] map_portfolio_id_photo_id: {21245285: [1342691600, 1342691216, 1342691131, 1342688445, 1342687809, 1342687755, 1342687750, 1342687746, 1342687740, 1342687599, 1342687573, 1342687081]} ##### 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.536311149597168 #### 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 Tue Mar 11 05:50:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21245285) 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 : 21245285 get user id for portfolio 21245285 get sub ptf for main ptf 21245285, type 3726 and hashtags ['Teint_Dans_La_Masse', 'papier', 'autre_refus', 'environnement', 'Carton_brun', 'kraft', 'flou', 'Carton_gris', 'plastique', 'metal', 'mal_croppe', 'cartonnette'] 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`=21245285 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','papier','autre_refus','environnement','Carton_brun','kraft','flou','Carton_gris','plastique','metal','mal_croppe','cartonnette')) 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`=21245285 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','papier','autre_refus','environnement','Carton_brun','kraft','flou','Carton_gris','plastique','metal','mal_croppe','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21245285, 'sub_port_id': 21245286, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834175, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 36, 58)}, 'Carton_brun': {'main_port_id': 21245285, 'sub_port_id': 21245287, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834176, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 36, 58)}, 'flou': {'main_port_id': 21245285, 'sub_port_id': 21245288, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834177, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 36, 58)}, 'cartonnette': {'main_port_id': 21245285, 'sub_port_id': 21245289, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834178, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 36, 58)}, 'metal': {'main_port_id': 21245285, 'sub_port_id': 21245290, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834179, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 36, 58)}, 'papier': {'main_port_id': 21245285, 'sub_port_id': 21245291, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834180, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 36, 58)}, 'plastique': {'main_port_id': 21245285, 'sub_port_id': 21245292, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834181, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 36, 58)}, 'mal_croppe': {'main_port_id': 21245285, 'sub_port_id': 21245293, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834182, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 36, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21245285, 'sub_port_id': 21245294, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834183, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 36, 58)}, 'environnement': {'main_port_id': 21245285, 'sub_port_id': 21245295, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834184, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 36, 58)}, 'kraft': {'main_port_id': 21245285, 'sub_port_id': 21245296, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834185, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 36, 58)}, 'autre_refus': {'main_port_id': 21245285, 'sub_port_id': 21245297, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834186, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 36, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21245286 , 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=21245285 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 (21245286) result : ((1342687852,), (1342690059,), (1342690060,), (1342690062,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21245285) result : ((1342687081,), (1342687573,), (1342687599,), (1342687740,), (1342687746,), (1342687750,), (1342687755,), (1342687809,), (1342688445,), (1342691131,), (1342691216,), (1342691600,)) 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 (1342691600) 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 21245287 , 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=21245285 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 (21245287) result : ((1342687855,), (1342687862,), (1342687864,), (1342689831,), (1342689837,), (1342689840,), (1342690108,), (1342690110,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21245285) result : ((1342687081,), (1342687573,), (1342687599,), (1342687740,), (1342687746,), (1342687750,), (1342687755,), (1342687809,), (1342688445,), (1342691131,), (1342691216,), (1342691600,)) 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 (1342691600) 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 21245288 , 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=21245285 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 (21245288) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21245285) result : ((1342687081,), (1342687573,), (1342687599,), (1342687740,), (1342687746,), (1342687750,), (1342687755,), (1342687809,), (1342688445,), (1342691131,), (1342691216,), (1342691600,)) 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 (1342691600) 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 21245289 , 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=21245285 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 (21245289) result : ((1342689823,), (1342690072,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21245285) result : ((1342687081,), (1342687573,), (1342687599,), (1342687740,), (1342687746,), (1342687750,), (1342687755,), (1342687809,), (1342688445,), (1342691131,), (1342691216,), (1342691600,)) 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 (1342691600) 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 21245290 , 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=21245285 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 (21245290) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21245285) result : ((1342687081,), (1342687573,), (1342687599,), (1342687740,), (1342687746,), (1342687750,), (1342687755,), (1342687809,), (1342688445,), (1342691131,), (1342691216,), (1342691600,)) 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 (1342691600) 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 21245291 , 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=21245285 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 (21245291) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21245285) result : ((1342687081,), (1342687573,), (1342687599,), (1342687740,), (1342687746,), (1342687750,), (1342687755,), (1342687809,), (1342688445,), (1342691131,), (1342691216,), (1342691600,)) 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 (1342691600) 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 21245292 , 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=21245285 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 (21245292) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21245285) result : ((1342687081,), (1342687573,), (1342687599,), (1342687740,), (1342687746,), (1342687750,), (1342687755,), (1342687809,), (1342688445,), (1342691131,), (1342691216,), (1342691600,)) 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 (1342691600) 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 21245293 , 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=21245285 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 (21245293) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21245285) result : ((1342687081,), (1342687573,), (1342687599,), (1342687740,), (1342687746,), (1342687750,), (1342687755,), (1342687809,), (1342688445,), (1342691131,), (1342691216,), (1342691600,)) 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 (1342691600) 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 21245294 , 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=21245285 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 (21245294) result : ((1342689794,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21245285) result : ((1342687081,), (1342687573,), (1342687599,), (1342687740,), (1342687746,), (1342687750,), (1342687755,), (1342687809,), (1342688445,), (1342691131,), (1342691216,), (1342691600,)) 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 (1342691600) 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 21245295 , 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=21245285 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 (21245295) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21245285) result : ((1342687081,), (1342687573,), (1342687599,), (1342687740,), (1342687746,), (1342687750,), (1342687755,), (1342687809,), (1342688445,), (1342691131,), (1342691216,), (1342691600,)) 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 (1342691600) 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 21245296 , 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=21245285 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 (21245296) result : ((1342687870,), (1342689847,), (1342690132,), (1342690136,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21245285) result : ((1342687081,), (1342687573,), (1342687599,), (1342687740,), (1342687746,), (1342687750,), (1342687755,), (1342687809,), (1342688445,), (1342691131,), (1342691216,), (1342691600,)) 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 (1342691600) 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 21245297 , 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=21245285 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 (21245297) result : ((1342687841,), (1342687842,), (1342687844,), (1342687846,), (1342687847,), (1342689812,), (1342689814,), (1342689816,), (1342690050,), (1342690052,), (1342690053,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21245285) result : ((1342687081,), (1342687573,), (1342687599,), (1342687740,), (1342687746,), (1342687750,), (1342687755,), (1342687809,), (1342688445,), (1342691131,), (1342691216,), (1342691600,)) 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 (1342691600) 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`=21245285 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','papier','autre_refus','environnement','Carton_brun','kraft','flou','Carton_gris','plastique','metal','mal_croppe','cartonnette')) 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`=21245285 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','papier','autre_refus','environnement','Carton_brun','kraft','flou','Carton_gris','plastique','metal','mal_croppe','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21245285, 'sub_port_id': 21245306, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834187, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 37)}, 'Carton_brun': {'main_port_id': 21245285, 'sub_port_id': 21245307, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834188, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 37)}, 'flou': {'main_port_id': 21245285, 'sub_port_id': 21245309, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834189, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 37)}, 'cartonnette': {'main_port_id': 21245285, 'sub_port_id': 21245310, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834190, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 37)}, 'metal': {'main_port_id': 21245285, 'sub_port_id': 21245311, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834191, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 37)}, 'papier': {'main_port_id': 21245285, 'sub_port_id': 21245312, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834192, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 37)}, 'plastique': {'main_port_id': 21245285, 'sub_port_id': 21245314, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834193, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 37)}, 'mal_croppe': {'main_port_id': 21245285, 'sub_port_id': 21245315, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834194, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 37)}, 'Teint_Dans_La_Masse': {'main_port_id': 21245285, 'sub_port_id': 21245317, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834195, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 37)}, 'environnement': {'main_port_id': 21245285, 'sub_port_id': 21245318, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834196, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 37)}, 'kraft': {'main_port_id': 21245285, 'sub_port_id': 21245319, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834197, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 37)}, 'autre_refus': {'main_port_id': 21245285, 'sub_port_id': 21245320, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13834198, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 37)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21245306,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21245286 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21245307,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21245287 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21245309,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21245288 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21245310,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21245289 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21245311,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21245290 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21245312,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21245291 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21245314,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21245292 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21245315,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21245293 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21245317,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21245294 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21245318,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21245295 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21245319,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21245296 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21245320,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21245297 lien utilise dans velours : https://www.fotonower.com/velours/21245306,21245307,21245309,21245310,21245311,21245312,21245314,21245315,21245317,21245318,21245319,21245320?tags=Carton_gris,Carton_brun,flou,cartonnette,metal,papier,plastique,mal_croppe,Teint_Dans_La_Masse,environnement,kraft,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21245285]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1342691600, 1342691216, 1342691131, 1342688445, 1342687809, 1342687755, 1342687750, 1342687746, 1342687740, 1342687599, 1342687573, 1342687081] map_info['map_portfolio_photo'] : {21245285: [1342691600, 1342691216, 1342691131, 1342688445, 1342687809, 1342687755, 1342687750, 1342687746, 1342687740, 1342687599, 1342687573, 1342687081]} final : False mtd_id 4302 list_pids : [1342691600, 1342691216, 1342691131, 1342688445, 1342687809, 1342687755, 1342687750, 1342687746, 1342687740, 1342687599, 1342687573, 1342687081] Looping around the photos to save general results len do output : 1 /21245285. 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, '2656770') ('4302', '21245285', '1342691600', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342691216', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342691131', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342688445', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687809', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687755', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687750', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687746', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687740', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687599', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687573', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687081', None, None, None, None, None, '2656770') 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, '21245285', "{'Carton_gris': 21245286, 'Carton_brun': 21245287, 'flou': 21245288, 'cartonnette': 21245289, 'metal': 21245290, 'papier': 21245291, 'plastique': 21245292, 'mal_croppe': 21245293, 'Teint_Dans_La_Masse': 21245294, 'environnement': 21245295, 'kraft': 21245296, 'autre_refus': 21245297}", None, None, None, None, '2656770'), ('4302', '21245285', '1342691600', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342691216', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342691131', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342688445', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687809', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687755', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687750', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687746', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687740', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687599', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687573', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687081', None, None, None, None, None, '2656770')] time used for this insertion : 0.018616914749145508 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5931859016418457 time spend to save output : 0.01903223991394043 total time spend for step 1 : 1.6122181415557861 step2:final Tue Mar 11 05:51: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 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 (21245285) 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 21245285 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1342687081,1342687599,1342687573,1342687755,1342687750,1342687746,1342687740,1342687809,1342691216,1342688445,1342691131,1342691600); 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([21245285]) Inside saveOutput : final : False verbose : True original output for save of step final : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ('0.10313282792087475',), 1342687740: ('0.10313282792087475',), 1342687599: ('0.10313282792087475',), 1342687573: ('0.10313282792087475',), 1342687081: ('0.10313282792087475',)} new output for save of step final : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ('0.10313282792087475',), 1342687740: ('0.10313282792087475',), 1342687599: ('0.10313282792087475',), 1342687573: ('0.10313282792087475',), 1342687081: ('0.10313282792087475',)} [1342691600, 1342691216, 1342691131, 1342688445, 1342687809, 1342687755, 1342687750, 1342687746, 1342687740, 1342687599, 1342687573, 1342687081] map_info['map_portfolio_photo'] : {21245285: [1342691600, 1342691216, 1342691131, 1342688445, 1342687809, 1342687755, 1342687750, 1342687746, 1342687740, 1342687599, 1342687573, 1342687081]} final : False mtd_id 4302 list_pids : [1342691600, 1342691216, 1342691131, 1342688445, 1342687809, 1342687755, 1342687750, 1342687746, 1342687740, 1342687599, 1342687573, 1342687081] Looping around the photos to save general results len do output : 12 /1342691600.Didn't retrieve data . /1342691216.Didn't retrieve data . /1342691131.Didn't retrieve data . /1342688445.Didn't retrieve data . /1342687809.Didn't retrieve data . /1342687755.Didn't retrieve data . /1342687750.Didn't retrieve data . /1342687746.Didn't retrieve data . /1342687740.Didn't retrieve data . /1342687599.Didn't retrieve data . /1342687573.Didn't retrieve data . /1342687081.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, '2656770') ('4302', '21245285', '1342691600', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342691216', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342691131', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342688445', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687809', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687755', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687750', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687746', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687740', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687599', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687573', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687081', None, None, None, None, None, '2656770') 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', '21245285', '1342691600', '0.10313282792087475', None, None, None, None, '2656770'), ('4302', '21245285', '1342691216', '0.10313282792087475', None, None, None, None, '2656770'), ('4302', '21245285', '1342691131', '0.10313282792087475', None, None, None, None, '2656770'), ('4302', '21245285', '1342688445', '0.10313282792087475', None, None, None, None, '2656770'), ('4302', '21245285', '1342687809', '0.10313282792087475', None, None, None, None, '2656770'), ('4302', '21245285', '1342687755', '0.10313282792087475', None, None, None, None, '2656770'), ('4302', '21245285', '1342687750', '0.10313282792087475', None, None, None, None, '2656770'), ('4302', '21245285', '1342687746', '0.10313282792087475', None, None, None, None, '2656770'), ('4302', '21245285', '1342687740', '0.10313282792087475', None, None, None, None, '2656770'), ('4302', '21245285', '1342687599', '0.10313282792087475', None, None, None, None, '2656770'), ('4302', '21245285', '1342687573', '0.10313282792087475', None, None, None, None, '2656770'), ('4302', '21245285', '1342687081', '0.10313282792087475', None, None, None, None, '2656770')] time used for this insertion : 0.016383886337280273 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.05981755256652832 time spend to save output : 0.01706552505493164 total time spend for step 2 : 0.07688307762145996 step3:velours_tree Tue Mar 11 05:51: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 : {21245285: [{'Carton_gris': 21245286, 'Carton_brun': 21245287, 'flou': 21245288, 'cartonnette': 21245289, 'metal': 21245290, 'papier': 21245291, 'plastique': 21245292, 'mal_croppe': 21245293, 'Teint_Dans_La_Masse': 21245294, 'environnement': 21245295, 'kraft': 21245296, 'autre_refus': 21245297}]} input_args_next_step : {21245285: ()} output_args : {21245285: [{'Carton_gris': 21245286, 'Carton_brun': 21245287, 'flou': 21245288, 'cartonnette': 21245289, 'metal': 21245290, 'papier': 21245291, 'plastique': 21245292, 'mal_croppe': 21245293, 'Teint_Dans_La_Masse': 21245294, 'environnement': 21245295, 'kraft': 21245296, 'autre_refus': 21245297}]} args : 21245285 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 : ({'Carton_gris': 21245286, 'Carton_brun': 21245287, 'flou': 21245288, 'cartonnette': 21245289, 'metal': 21245290, 'papier': 21245291, 'plastique': 21245292, 'mal_croppe': 21245293, 'Teint_Dans_La_Masse': 21245294, 'environnement': 21245295, 'kraft': 21245296, 'autre_refus': 21245297},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21245285) 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([21245285]) 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.4028496742248535 time spend to save output : 4.887580871582031e-05 total time spend for step 3 : 0.40289855003356934 step4:send_mail_cod Tue Mar 11 05:51: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 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 : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ('0.10313282792087475',), 1342687740: ('0.10313282792087475',), 1342687599: ('0.10313282792087475',), 1342687573: ('0.10313282792087475',), 1342687081: ('0.10313282792087475',)} input_args_next_step : {1342691600: ()} output_args : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ('0.10313282792087475',), 1342687740: ('0.10313282792087475',), 1342687599: ('0.10313282792087475',), 1342687573: ('0.10313282792087475',), 1342687081: ('0.10313282792087475',)} args : 1342691600 depend.output_id : 0 input_args_next_step : {1342691600: ('0.10313282792087475',), 1342691216: ()} output_args : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ('0.10313282792087475',), 1342687740: ('0.10313282792087475',), 1342687599: ('0.10313282792087475',), 1342687573: ('0.10313282792087475',), 1342687081: ('0.10313282792087475',)} args : 1342691216 depend.output_id : 0 input_args_next_step : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ()} output_args : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ('0.10313282792087475',), 1342687740: ('0.10313282792087475',), 1342687599: ('0.10313282792087475',), 1342687573: ('0.10313282792087475',), 1342687081: ('0.10313282792087475',)} args : 1342691131 depend.output_id : 0 input_args_next_step : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ()} output_args : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ('0.10313282792087475',), 1342687740: ('0.10313282792087475',), 1342687599: ('0.10313282792087475',), 1342687573: ('0.10313282792087475',), 1342687081: ('0.10313282792087475',)} args : 1342688445 depend.output_id : 0 input_args_next_step : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ()} output_args : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ('0.10313282792087475',), 1342687740: ('0.10313282792087475',), 1342687599: ('0.10313282792087475',), 1342687573: ('0.10313282792087475',), 1342687081: ('0.10313282792087475',)} args : 1342687809 depend.output_id : 0 input_args_next_step : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ()} output_args : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ('0.10313282792087475',), 1342687740: ('0.10313282792087475',), 1342687599: ('0.10313282792087475',), 1342687573: ('0.10313282792087475',), 1342687081: ('0.10313282792087475',)} args : 1342687755 depend.output_id : 0 input_args_next_step : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ()} output_args : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ('0.10313282792087475',), 1342687740: ('0.10313282792087475',), 1342687599: ('0.10313282792087475',), 1342687573: ('0.10313282792087475',), 1342687081: ('0.10313282792087475',)} args : 1342687750 depend.output_id : 0 input_args_next_step : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ()} output_args : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ('0.10313282792087475',), 1342687740: ('0.10313282792087475',), 1342687599: ('0.10313282792087475',), 1342687573: ('0.10313282792087475',), 1342687081: ('0.10313282792087475',)} args : 1342687746 depend.output_id : 0 input_args_next_step : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ('0.10313282792087475',), 1342687740: ()} output_args : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ('0.10313282792087475',), 1342687740: ('0.10313282792087475',), 1342687599: ('0.10313282792087475',), 1342687573: ('0.10313282792087475',), 1342687081: ('0.10313282792087475',)} args : 1342687740 depend.output_id : 0 input_args_next_step : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ('0.10313282792087475',), 1342687740: ('0.10313282792087475',), 1342687599: ()} output_args : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ('0.10313282792087475',), 1342687740: ('0.10313282792087475',), 1342687599: ('0.10313282792087475',), 1342687573: ('0.10313282792087475',), 1342687081: ('0.10313282792087475',)} args : 1342687599 depend.output_id : 0 input_args_next_step : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ('0.10313282792087475',), 1342687740: ('0.10313282792087475',), 1342687599: ('0.10313282792087475',), 1342687573: ()} output_args : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ('0.10313282792087475',), 1342687740: ('0.10313282792087475',), 1342687599: ('0.10313282792087475',), 1342687573: ('0.10313282792087475',), 1342687081: ('0.10313282792087475',)} args : 1342687573 depend.output_id : 0 input_args_next_step : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ('0.10313282792087475',), 1342687740: ('0.10313282792087475',), 1342687599: ('0.10313282792087475',), 1342687573: ('0.10313282792087475',), 1342687081: ()} output_args : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ('0.10313282792087475',), 1342687740: ('0.10313282792087475',), 1342687599: ('0.10313282792087475',), 1342687573: ('0.10313282792087475',), 1342687081: ('0.10313282792087475',)} args : 1342687081 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 : {21245285: [{'Carton_gris': 21245286, 'Carton_brun': 21245287, 'flou': 21245288, 'cartonnette': 21245289, 'metal': 21245290, 'papier': 21245291, 'plastique': 21245292, 'mal_croppe': 21245293, 'Teint_Dans_La_Masse': 21245294, 'environnement': 21245295, 'kraft': 21245296, 'autre_refus': 21245297}]} input_args_next_step : {1342691600: ('0.10313282792087475',), 1342691216: ('0.10313282792087475',), 1342691131: ('0.10313282792087475',), 1342688445: ('0.10313282792087475',), 1342687809: ('0.10313282792087475',), 1342687755: ('0.10313282792087475',), 1342687750: ('0.10313282792087475',), 1342687746: ('0.10313282792087475',), 1342687740: ('0.10313282792087475',), 1342687599: ('0.10313282792087475',), 1342687573: ('0.10313282792087475',), 1342687081: ('0.10313282792087475',), 21245285: ()} output_args : {21245285: [{'Carton_gris': 21245286, 'Carton_brun': 21245287, 'flou': 21245288, 'cartonnette': 21245289, 'metal': 21245290, 'papier': 21245291, 'plastique': 21245292, 'mal_croppe': 21245293, 'Teint_Dans_La_Masse': 21245294, 'environnement': 21245295, 'kraft': 21245296, 'autre_refus': 21245297}]} args : 21245285 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.10313282792087475',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21245285) 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 (1342691600,1342691216,1342691131,1342688445,1342687809,1342687755,1342687750,1342687746,1342687740,1342687599,1342687573,1342687081) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1342687081 begin to download photo : 1342687740 begin to download photo : 1342687755 begin to download photo : 1342691131 download finish for photo 1342687740 begin to download photo : 1342687746 download finish for photo 1342691131 begin to download photo : 1342691216 download finish for photo 1342687081 begin to download photo : 1342687573 download finish for photo 1342687755 begin to download photo : 1342687809 download finish for photo 1342691216 begin to download photo : 1342691600 download finish for photo 1342687809 begin to download photo : 1342688445 download finish for photo 1342687573 begin to download photo : 1342687599 download finish for photo 1342687746 begin to download photo : 1342687750 download finish for photo 1342688445 download finish for photo 1342687599 download finish for photo 1342691600 download finish for photo 1342687750 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette212452881741668661/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P21245285_11-03-2025_05_51_01.pdf 21245288 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=21245288 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212452881741668661 21245289 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=21245289 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342689823: '1741642586_518279_1342687746_48303cadc8a537e3c6a47533a4ff47b6_rle_crop_3703613079_0.png', 1342690072: '1741642593_139807_1342687755_326a0c9eaab87df76daa467b1bc1f66e_rle_crop_3703613802_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4f9f3b5eed4f484ebacdbe50a7b8cb22_82890830.png change filename to text .imagette212452891741668661/ imagette212452891741668661/1741642593_139807_1342687755_326a0c9eaab87df76daa467b1bc1f66e_rle_crop_3703613802_0.png.png imagette212452891741668661/1741642586_518279_1342687746_48303cadc8a537e3c6a47533a4ff47b6_rle_crop_3703613079_0.png.png imagette212452901741668661/ imagette212452921741668661/ imagette212452931741668661/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/48c0151499cb43b2ea99a9d4f986b828_35903344.png imagette212452891741668661 21245290 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=21245290 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212452901741668661 21245292 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=21245292 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212452921741668661 21245293 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=21245293 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212452931741668661 21245296 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=21245296 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342687870: '1741642464_515700_1342687599_5ea404693e25524bd4f5b74475f8e6b2_rle_crop_3703610714_0.png', 1342689847: '1741642586_518279_1342687750_1e3ea7a1608b44e6225d6e32a41c9fc6_rle_crop_3703613064_0.png', 1342690132: '1741642593_139807_1342687755_326a0c9eaab87df76daa467b1bc1f66e_rle_crop_3703613804_0.png', 1342690136: '1741642593_139807_1342687573_63b37eed0979ce250f9ea9f6b703589f_rle_crop_3703613831_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/1c9b031f212f2dc44fb6b01d4790d571_67018427.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f647c813a7c2b8531b48c255d144c2e0_25798923.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/3da9b7dcf88b55a7b46a7cf626988fb7_38750905.png change filename to text .imagette212452961741668661/ imagette212452961741668661/1741642593_139807_1342687573_63b37eed0979ce250f9ea9f6b703589f_rle_crop_3703613831_0.png.png imagette212452961741668661/1741642586_518279_1342687750_1e3ea7a1608b44e6225d6e32a41c9fc6_rle_crop_3703613064_0.png.png imagette212452961741668661/1741642593_139807_1342687755_326a0c9eaab87df76daa467b1bc1f66e_rle_crop_3703613804_0.png.png imagette212452961741668661/1741642464_515700_1342687599_5ea404693e25524bd4f5b74475f8e6b2_rle_crop_3703610714_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a7d67d68f90c8c9ea93b92e6540d1978_51506740.png imagette212452961741668661 21245297 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=21245297 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342687841: '1741642464_515700_1342687599_5ea404693e25524bd4f5b74475f8e6b2_rle_crop_3703610717_0.png', 1342687842: '1741642464_515700_1342687599_5ea404693e25524bd4f5b74475f8e6b2_rle_crop_3703610715_0.png', 1342687844: '1741642464_515700_1342687599_5ea404693e25524bd4f5b74475f8e6b2_rle_crop_3703610719_0.png', 1342687846: '1741642464_515700_1342687081_775a7224acb64ca3892157ede16c80a5_rle_crop_3703610742_0.png', 1342687847: '1741642464_515700_1342687081_775a7224acb64ca3892157ede16c80a5_rle_crop_3703610741_0.png', 1342689812: '1741642586_518279_1342687750_1e3ea7a1608b44e6225d6e32a41c9fc6_rle_crop_3703613073_0.png', 1342689814: '1741642586_518279_1342687746_48303cadc8a537e3c6a47533a4ff47b6_rle_crop_3703613091_0.png', 1342689816: '1741642586_518279_1342687740_6e0d0c1e2e14eb441eac099f7b23806e_rle_crop_3703613107_0.png', 1342690050: '1741642593_139807_1342687755_326a0c9eaab87df76daa467b1bc1f66e_rle_crop_3703613814_0.png', 1342690052: '1741642593_139807_1342687573_63b37eed0979ce250f9ea9f6b703589f_rle_crop_3703613845_0.png', 1342690053: '1741642593_139807_1342687573_63b37eed0979ce250f9ea9f6b703589f_rle_crop_3703613842_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/5c057c0b3e7f6e4c70219c6696e27022_87258998.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/573edc80869e63975e7c6302fa00ad50_4195487.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/5ca3c361475997d26b6a2a6323b5705d_13509608.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a7923aaaafc5ae58a5277453afd22f00_24640895.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/0466572543d0f853443ed124d9e8120c_38897316.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/971590cfe5539021a99bb70ba3cbebee_8224656.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/2ecdeca099ce86d71837a6f119d9242d_78495185.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/c33017dd593ea4122800962d88ea7b9d_96695357.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/828a2cfd99aab184a74f8870cd78ae7e_10477230.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/c723183d52eff461d25ecc636bd58bea_45248259.png change filename to text .imagette212452971741668662/ imagette212452971741668662/1741642464_515700_1342687599_5ea404693e25524bd4f5b74475f8e6b2_rle_crop_3703610719_0.png.png imagette212452971741668662/1741642464_515700_1342687599_5ea404693e25524bd4f5b74475f8e6b2_rle_crop_3703610717_0.png.png imagette212452971741668662/1741642593_139807_1342687755_326a0c9eaab87df76daa467b1bc1f66e_rle_crop_3703613814_0.png.png imagette212452971741668662/1741642586_518279_1342687740_6e0d0c1e2e14eb441eac099f7b23806e_rle_crop_3703613107_0.png.png imagette212452971741668662/1741642586_518279_1342687746_48303cadc8a537e3c6a47533a4ff47b6_rle_crop_3703613091_0.png.png imagette212452971741668662/1741642464_515700_1342687081_775a7224acb64ca3892157ede16c80a5_rle_crop_3703610741_0.png.png imagette212452971741668662/1741642464_515700_1342687081_775a7224acb64ca3892157ede16c80a5_rle_crop_3703610742_0.png.png imagette212452971741668662/1741642464_515700_1342687599_5ea404693e25524bd4f5b74475f8e6b2_rle_crop_3703610715_0.png.png imagette212452971741668662/1741642593_139807_1342687573_63b37eed0979ce250f9ea9f6b703589f_rle_crop_3703613845_0.png.png imagette212452971741668662/1741642593_139807_1342687573_63b37eed0979ce250f9ea9f6b703589f_rle_crop_3703613842_0.png.png imagette212452971741668662/1741642586_518279_1342687750_1e3ea7a1608b44e6225d6e32a41c9fc6_rle_crop_3703613073_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/8ebb01b8d4c41e3c526a8827dbad1422_76672249.png imagette212452971741668662 21245286 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=21245286 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342687852: '1741642464_515700_1342687081_775a7224acb64ca3892157ede16c80a5_rle_crop_3703610740_0.png', 1342690059: '1741642593_139807_1342687755_326a0c9eaab87df76daa467b1bc1f66e_rle_crop_3703613813_0.png', 1342690060: '1741642593_139807_1342687755_326a0c9eaab87df76daa467b1bc1f66e_rle_crop_3703613803_0.png', 1342690062: '1741642593_139807_1342687755_326a0c9eaab87df76daa467b1bc1f66e_rle_crop_3703613807_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/e2597f6a7331970a7a119f43e1b06ce4_89235487.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/53e152dbe22998a65ef0e7708b4ea6b7_85136014.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/52cdb3d7f8309bc2f4723b62504c9c3d_65087809.png change filename to text .imagette212452861741668662/ imagette212452861741668662/1741642593_139807_1342687755_326a0c9eaab87df76daa467b1bc1f66e_rle_crop_3703613807_0.png.png imagette212452861741668662/1741642464_515700_1342687081_775a7224acb64ca3892157ede16c80a5_rle_crop_3703610740_0.png.png imagette212452861741668662/1741642593_139807_1342687755_326a0c9eaab87df76daa467b1bc1f66e_rle_crop_3703613803_0.png.png imagette212452861741668662/1741642593_139807_1342687755_326a0c9eaab87df76daa467b1bc1f66e_rle_crop_3703613813_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/78bdc04b216750f028ffe62087e783e4_84169118.png imagette212452861741668662 21245287 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=21245287 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342687855: '1741642464_515700_1342687081_775a7224acb64ca3892157ede16c80a5_rle_crop_3703610739_0.png', 1342687862: '1741642464_515700_1342687081_775a7224acb64ca3892157ede16c80a5_rle_crop_3703610744_0.png', 1342687864: '1741642464_515700_1342687081_775a7224acb64ca3892157ede16c80a5_rle_crop_3703610734_0.png', 1342689831: '1741642586_518279_1342687746_48303cadc8a537e3c6a47533a4ff47b6_rle_crop_3703613083_0.png', 1342689837: '1741642586_518279_1342687746_48303cadc8a537e3c6a47533a4ff47b6_rle_crop_3703613087_0.png', 1342689840: '1741642586_518279_1342687740_6e0d0c1e2e14eb441eac099f7b23806e_rle_crop_3703613108_0.png', 1342690108: '1741642593_139807_1342687573_63b37eed0979ce250f9ea9f6b703589f_rle_crop_3703613838_0.png', 1342690110: '1741642593_139807_1342687573_63b37eed0979ce250f9ea9f6b703589f_rle_crop_3703613835_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/bef30bb2f3014f61b2b0c5b6d0351b31_88585582.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/c2d94ad4a0e484c36467b6e9c2e57a06_44169665.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/bff040486f83460b5a94b7a813125288_6081985.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/9f3ede09e6255035ca8cbab389dc110a_36215350.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/e5c700e0bf8adf1e81853faa0767a999_80467388.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/5fd31ab5829f2b805cc9494320852af8_80912064.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/638f5c654060b34cca26963819c647e6_52767877.png change filename to text .imagette212452871741668663/ imagette212452871741668663/1741642586_518279_1342687746_48303cadc8a537e3c6a47533a4ff47b6_rle_crop_3703613083_0.png.png imagette212452871741668663/1741642464_515700_1342687081_775a7224acb64ca3892157ede16c80a5_rle_crop_3703610739_0.png.png imagette212452871741668663/1741642586_518279_1342687746_48303cadc8a537e3c6a47533a4ff47b6_rle_crop_3703613087_0.png.png imagette212452871741668663/1741642593_139807_1342687573_63b37eed0979ce250f9ea9f6b703589f_rle_crop_3703613835_0.png.png imagette212452871741668663/1741642593_139807_1342687573_63b37eed0979ce250f9ea9f6b703589f_rle_crop_3703613838_0.png.png imagette212452871741668663/1741642464_515700_1342687081_775a7224acb64ca3892157ede16c80a5_rle_crop_3703610744_0.png.png imagette212452871741668663/1741642586_518279_1342687740_6e0d0c1e2e14eb441eac099f7b23806e_rle_crop_3703613108_0.png.png imagette212452871741668663/1741642464_515700_1342687081_775a7224acb64ca3892157ede16c80a5_rle_crop_3703610734_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/709dc3485105337108b2582aa569f671_69980070.png imagette212452871741668663 21245294 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=21245294 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342689794: '1741642586_518279_1342687750_1e3ea7a1608b44e6225d6e32a41c9fc6_rle_crop_3703613068_0.png'} change filename to text .imagette212452941741668664/ imagette212452941741668664/1741642586_518279_1342687750_1e3ea7a1608b44e6225d6e32a41c9fc6_rle_crop_3703613068_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d79b58cf75e08f9f5b22960c1a17e64d_361727.png imagette212452941741668664 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21245285 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21245306,21245307,21245309,21245310,21245311,21245312,21245314,21245315,21245317,21245318,21245319,21245320?tags=Carton_gris,Carton_brun,flou,cartonnette,metal,papier,plastique,mal_croppe,Teint_Dans_La_Masse,environnement,kraft,autre_refus your option no_mail is active, we will not send the real mail to your client args[1342691600] : ('0.10313282792087475',) no score found for photo 1342691600 We are sending mail with results at report@fotonower.com args[1342691216] : ('0.10313282792087475',) no score found for photo 1342691216 We are sending mail with results at report@fotonower.com args[1342691131] : ('0.10313282792087475',) no score found for photo 1342691131 We are sending mail with results at report@fotonower.com args[1342688445] : ('0.10313282792087475',) no score found for photo 1342688445 We are sending mail with results at report@fotonower.com args[1342687809] : ('0.10313282792087475',) no score found for photo 1342687809 We are sending mail with results at report@fotonower.com args[1342687755] : ('0.10313282792087475',) no score found for photo 1342687755 We are sending mail with results at report@fotonower.com args[1342687750] : ('0.10313282792087475',) no score found for photo 1342687750 We are sending mail with results at report@fotonower.com args[1342687746] : ('0.10313282792087475',) no score found for photo 1342687746 We are sending mail with results at report@fotonower.com args[1342687740] : ('0.10313282792087475',) no score found for photo 1342687740 We are sending mail with results at report@fotonower.com args[1342687599] : ('0.10313282792087475',) no score found for photo 1342687599 We are sending mail with results at report@fotonower.com args[1342687573] : ('0.10313282792087475',) no score found for photo 1342687573 We are sending mail with results at report@fotonower.com args[1342687081] : ('0.10313282792087475',) no score found for photo 1342687081 We are sending mail with results at report@fotonower.com refus_total : 0.10313282792087475 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=21245285 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_P21245285_11-03-2025_05_51_01.pdf results_Auto_P21245285_11-03-2025_05_51_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21245285_11-03-2025_05_51_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21245285','results_Auto_P21245285_11-03-2025_05_51_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21245285_11-03-2025_05_51_01.pdf','pdf','','0.2','0.10313282792087475') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21245285]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1342691600, 1342691216, 1342691131, 1342688445, 1342687809, 1342687755, 1342687750, 1342687746, 1342687740, 1342687599, 1342687573, 1342687081] map_info['map_portfolio_photo'] : {21245285: [1342691600, 1342691216, 1342691131, 1342688445, 1342687809, 1342687755, 1342687750, 1342687746, 1342687740, 1342687599, 1342687573, 1342687081]} final : False mtd_id 4302 list_pids : [1342691600, 1342691216, 1342691131, 1342688445, 1342687809, 1342687755, 1342687750, 1342687746, 1342687740, 1342687599, 1342687573, 1342687081] 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, '2656770') ('4302', '21245285', '1342691600', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342691216', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342691131', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342688445', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687809', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687755', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687750', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687746', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687740', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687599', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687573', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687081', None, None, None, None, None, '2656770') 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', '21245285', '1342691600', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342691216', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342691131', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342688445', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687809', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687755', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687750', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687746', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687740', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687599', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687573', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687081', None, None, None, None, None, '2656770')] time used for this insertion : 0.016188621520996094 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.17468786239624 time spend to save output : 0.01650381088256836 total time spend for step 4 : 5.191191673278809 step5:split_time_score Tue Mar 11 05:51:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21245285'] 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 : [('21245285',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21245285) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1342687755: {'path': 'temp/1741668660_3135797_1342687755_326a0c9eaab87df76daa467b1bc1f66e.jpg', 'extension': 'jpg'}, 1342687809: {'path': 'temp/1741668660_3135797_1342687809_09b20cbce948d572747244f3d1e17482.jpg', 'extension': 'jpg'}, 1342688445: {'path': 'temp/1741668660_3135797_1342688445_6f339b91f69cfca9d14117ec51e3738d.jpg', 'extension': 'jpg'}, 1342687081: {'path': 'temp/1741668660_3135797_1342687081_775a7224acb64ca3892157ede16c80a5.jpg', 'extension': 'jpg'}, 1342687573: {'path': 'temp/1741668660_3135797_1342687573_63b37eed0979ce250f9ea9f6b703589f.jpg', 'extension': 'jpg'}, 1342687599: {'path': 'temp/1741668660_3135797_1342687599_5ea404693e25524bd4f5b74475f8e6b2.jpg', 'extension': 'jpg'}, 1342691131: {'path': 'temp/1741668660_3135797_1342691131_42da49c5371ba7648c3d326bb95a741e.jpg', 'extension': 'jpg'}, 1342691216: {'path': 'temp/1741668660_3135797_1342691216_5731dea0b727da75b451e531e896f4f1.jpg', 'extension': 'jpg'}, 1342691600: {'path': 'temp/1741668660_3135797_1342691600_de96dc8f16791ad884b05f210ab1a16f.jpg', 'extension': 'jpg'}, 1342687740: {'path': 'temp/1741668660_3135797_1342687740_6e0d0c1e2e14eb441eac099f7b23806e.jpg', 'extension': 'jpg'}, 1342687746: {'path': 'temp/1741668660_3135797_1342687746_48303cadc8a537e3c6a47533a4ff47b6.jpg', 'extension': 'jpg'}, 1342687750: {'path': 'temp/1741668660_3135797_1342687750_1e3ea7a1608b44e6225d6e32a41c9fc6.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 = 21245285; (('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 = 21245285 group by h (('22', 12),) 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=21245285 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 (21245285) 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 (21245285) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10032025 21245285 Nombre de photos uploadées : 12 / 23040 (0%) 10032025 21245285 Nombre de photos taguées (types de déchets): 0 / 12 (0%) 10032025 21245285 Nombre de photos taguées (volume) : 0 / 12 (0%) [{'photo_id': 1342687081, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/775a7224acb64ca3892157ede16c80a5.jpg', 'username': None, 'uploaded_at': 1741642297, 'text': 'image_10032025_22_30_34_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342687599, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/5ea404693e25524bd4f5b74475f8e6b2.jpg', 'username': None, 'uploaded_at': 1741642357, 'text': 'image_10032025_22_30_53_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342687573, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/63b37eed0979ce250f9ea9f6b703589f.jpg', 'username': None, 'uploaded_at': 1741642357, 'text': 'image_10032025_22_31_03_010152m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1342687755, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/326a0c9eaab87df76daa467b1bc1f66e.jpg', 'username': None, 'uploaded_at': 1741642418, 'text': 'image_10032025_22_31_53_009128m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ???????????? elapsed_time : fill_and_build_computed_from_old_data 0.0005762577056884766 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21245285, '2025-03-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1654691,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.026401042938232422 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= 1654691 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21222729, 'dashboard_result_id': 9332419, '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_P21222729_11-03-2025_05_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21222789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21222790, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21222792, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21222795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21222797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21222799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21222801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21222803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21222806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21222808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21222810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21222812, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21222733, 'dashboard_result_id': 9332420, '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_P21222733_11-03-2025_05_34_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21222736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21222737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21222738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21222739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21222740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21222741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21222742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21222743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21222744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21222745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21222746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21222747, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21223952, 'dashboard_result_id': 9332421, '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_P21223952_11-03-2025_05_35_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21223978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21223979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21223980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21223981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21223982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21223983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21223984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21223985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21223986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21223987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21223988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21223989, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21224728, 'dashboard_result_id': 9332422, '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_P21224728_11-03-2025_05_35_36.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21224741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21224742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21224743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21224744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21224745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21224746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21224747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21224748, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21224749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21224750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21224751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21224752, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21225304, 'dashboard_result_id': 9332423, '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_P21225304_11-03-2025_05_36_38.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21225317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21225318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21225319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21225320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21225321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21225322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21225323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21225324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21225330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21225336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21225345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21225346, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21225938, 'dashboard_result_id': 9332424, '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_P21225938_11-03-2025_05_37_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21225991, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21225992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21225993, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21225994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21225995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21225996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21225997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21225998, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21225999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21226000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21226001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21226002, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21226845, 'dashboard_result_id': 9332425, '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_P21226845_11-03-2025_05_37_38.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21226848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21226849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21226850, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21226851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21226852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21226853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21226854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21226855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21226856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21226857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21226858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21226859, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21227642, 'dashboard_result_id': 9332426, '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_P21227642_11-03-2025_05_38_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21227679, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21227680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21227686, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21227694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21227696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21227708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21227709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21227710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21227711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21227712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21227713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21227714, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21228123, 'dashboard_result_id': 9332427, '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_P21228123_11-03-2025_05_39_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21228230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21228231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21228232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21228233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21228234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21228235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21228236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21228237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21228238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21228239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21228240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21228241, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21229167, 'dashboard_result_id': 9332428, '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_P21229167_11-03-2025_05_39_40.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21229184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21229185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21229186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21229187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21229188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21229189, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21229190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21229191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21229192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21229193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21229194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21229195, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21229599, 'dashboard_result_id': 9332429, '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_P21229599_11-03-2025_05_40_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21229624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21229625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21229626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21229627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21229628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21229629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21229630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21229631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21229632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21229633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21229634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21229635, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21231378, 'dashboard_result_id': 9332430, '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_P21231378_11-03-2025_05_41_07.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21231437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21231438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21231439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21231440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21231441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21231442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21231443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21231444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21231445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21231446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21231447, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21231448, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21232212, 'dashboard_result_id': 9332431, '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_P21232212_11-03-2025_05_41_37.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21232305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21232306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21232307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21232308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21232309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21232310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21232311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21232312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21232313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21232314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21232315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21232316, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21232960, 'dashboard_result_id': 9332432, '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_P21232960_11-03-2025_05_42_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21232961, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21232962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21232963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21232964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21232965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21232966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21232967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21232968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21232969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21232970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21232971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21232972, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21233690, 'dashboard_result_id': 9332433, '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_P21233690_11-03-2025_05_42_38.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21233725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21233726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21233727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21233728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21233729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21233731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21233733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21233735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21233738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21233740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21233742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21233744, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21234496, 'dashboard_result_id': 9332434, '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_P21234496_11-03-2025_05_43_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21234534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21234535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21234536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21234537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21234538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21234539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21234540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21234541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21234542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21234543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21234544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21234545, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21235532, 'dashboard_result_id': 9332435, '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_P21235532_11-03-2025_05_43_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21235581, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21235582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21235583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21235584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21235585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21235586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21235587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21235588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21235589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21235590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21235591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21235592, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21236238, 'dashboard_result_id': 9332436, '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_P21236238_11-03-2025_05_44_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21236259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21236260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21236261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21236262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21236263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21236264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21236265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21236266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21236267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21236268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21236269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21236270, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21237290, 'dashboard_result_id': 9332437, '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_P21237290_11-03-2025_05_45_08.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21237295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21237296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21237297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21237298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21237299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21237300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21237301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21237302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21237303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21237304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21237305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21237306, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21238235, 'dashboard_result_id': 9332438, '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_P21238235_11-03-2025_05_45_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21238322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21238323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21238324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21238325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21238326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21238327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21238328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21238329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21238330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21238331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21238332, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21238333, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21239041, 'dashboard_result_id': 9332439, '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_P21239041_11-03-2025_05_46_10.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21239118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21239119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21239120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21239121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21239122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21239123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21239124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21239125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21239126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21239127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21239128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21239129, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21239724, 'dashboard_result_id': 9332440, '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_P21239724_11-03-2025_05_46_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21239725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21239726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21239727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21239728, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21239729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21239730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21239731, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21239732, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21239733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21239734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21239735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21239736, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21240953, 'dashboard_result_id': 9332441, '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_P21240953_11-03-2025_05_47_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21241002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21241003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21241004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21241005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21241006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21241007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21241008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21241009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21241010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21241011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21241012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21241013, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21241634, 'dashboard_result_id': 9332442, '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_P21241634_11-03-2025_05_48_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21241637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21241638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21241639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21241640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21241641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21241642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21241643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21241644, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21241645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21241646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21241647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21241648, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21242355, 'dashboard_result_id': 9332443, '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_P21242355_11-03-2025_05_48_39.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21242358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21242359, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21242360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21242361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21242362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21242363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21242364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21242365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21242366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21242367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21242368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21242369, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21243106, 'dashboard_result_id': 9332444, '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_P21243106_11-03-2025_05_49_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21243120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21243121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21243122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21243123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21243124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21243125, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21243126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21243127, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21243128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21243129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21243130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21243131, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21244092, 'dashboard_result_id': 9332445, '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_P21244092_11-03-2025_05_50_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21244093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21244094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21244095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21244096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21244097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21244098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21244099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21244100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21244101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21244102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21244103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21244104, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21244713, 'dashboard_result_id': 9332446, '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_P21244713_11-03-2025_05_50_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21244826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21244828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21244830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21244832, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21244834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21244836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21244838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21244840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21244842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21244844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21244846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21244849, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1664875, 'mtr_portfolio_id': 21245285, 'dashboard_result_id': 9332447, '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_P21245285_10-03-2025_22_51_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21245286, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21245287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21245288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21245289, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21245290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21245291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21245292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21245293, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21245294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21245295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21245296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21245297, '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 = 21222729 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': 2656742, 'mtr_portfolio_id': 21222729, 'created_at': datetime.datetime(2025, 3, 11, 5, 34, 29), 'result': '0.11602307733577545', 'result_long': None, 'result_double': None}] Qualite : 0.11602307733577545 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21222729 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21222729_11-03-2025_05_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21222729 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_P21222729_11-03-2025_05_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21222789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21222790, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21222792, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21222795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21222797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21222799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21222801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21222803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21222806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21222808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21222810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21222812, 'pht': 3726}}" where mtr_portfolio_id = 21222729 and dashboard_run_id = 1664875 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`=21222729 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332419, 0.11602307733577545, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21222729_11-03-2025_05_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21222789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21222790, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21222792, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21222795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21222797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21222799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21222801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21222803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21222806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21222808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21222810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21222812, '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 = 21222733 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': 2656743, 'mtr_portfolio_id': 21222733, 'created_at': datetime.datetime(2025, 3, 11, 5, 34, 34), 'result': '0.0839456731650473', 'result_long': None, 'result_double': None}] Qualite : 0.0839456731650473 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21222733 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21222733_11-03-2025_05_34_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21222733 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_P21222733_11-03-2025_05_34_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21222736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21222737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21222738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21222739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21222740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21222741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21222742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21222743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21222744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21222745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21222746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21222747, 'pht': 3726}}" where mtr_portfolio_id = 21222733 and dashboard_run_id = 1664875 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`=21222733 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332420, 0.0839456731650473, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21222733_11-03-2025_05_34_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21222736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21222737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21222738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21222739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21222740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21222741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21222742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21222743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21222744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21222745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21222746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21222747, '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 = 21223952 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': 2656744, 'mtr_portfolio_id': 21223952, 'created_at': datetime.datetime(2025, 3, 11, 5, 35), 'result': '0.061197813312520125', 'result_long': None, 'result_double': None}] Qualite : 0.061197813312520125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21223952 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21223952_11-03-2025_05_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21223952 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_P21223952_11-03-2025_05_35_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21223978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21223979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21223980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21223981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21223982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21223983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21223984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21223985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21223986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21223987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21223988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21223989, 'pht': 3726}}" where mtr_portfolio_id = 21223952 and dashboard_run_id = 1664875 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`=21223952 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332421, 0.061197813312520125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21223952_11-03-2025_05_35_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21223978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21223979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21223980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21223981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21223982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21223983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21223984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21223985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21223986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21223987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21223988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21223989, '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 = 21224728 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': 2656745, 'mtr_portfolio_id': 21224728, 'created_at': datetime.datetime(2025, 3, 11, 5, 35, 34), 'result': '0.06561237862325262', 'result_long': None, 'result_double': None}] Qualite : 0.06561237862325262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21224728 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21224728_11-03-2025_05_35_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21224728 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_P21224728_11-03-2025_05_35_36.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21224741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21224742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21224743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21224744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21224745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21224746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21224747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21224748, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21224749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21224750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21224751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21224752, 'pht': 3726}}" where mtr_portfolio_id = 21224728 and dashboard_run_id = 1664875 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`=21224728 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332422, 0.06561237862325262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21224728_11-03-2025_05_35_36.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21224741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21224742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21224743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21224744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21224745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21224746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21224747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21224748, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21224749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21224750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21224751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21224752, '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 = 21225304 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': 2656746, 'mtr_portfolio_id': 21225304, 'created_at': datetime.datetime(2025, 3, 11, 5, 36, 36), 'result': '0.07500372495602968', 'result_long': None, 'result_double': None}] Qualite : 0.07500372495602968 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21225304 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21225304_11-03-2025_05_36_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21225304 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_P21225304_11-03-2025_05_36_38.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21225317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21225318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21225319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21225320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21225321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21225322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21225323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21225324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21225330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21225336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21225345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21225346, 'pht': 3726}}" where mtr_portfolio_id = 21225304 and dashboard_run_id = 1664875 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`=21225304 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332423, 0.07500372495602968, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21225304_11-03-2025_05_36_38.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21225317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21225318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21225319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21225320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21225321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21225322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21225323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21225324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21225330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21225336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21225345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21225346, '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 = 21225938 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': 2656747, 'mtr_portfolio_id': 21225938, 'created_at': datetime.datetime(2025, 3, 11, 5, 37, 1), 'result': '0.07875957735158436', 'result_long': None, 'result_double': None}] Qualite : 0.07875957735158436 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21225938 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21225938_11-03-2025_05_37_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21225938 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_P21225938_11-03-2025_05_37_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21225991, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21225992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21225993, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21225994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21225995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21225996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21225997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21225998, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21225999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21226000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21226001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21226002, 'pht': 3726}}" where mtr_portfolio_id = 21225938 and dashboard_run_id = 1664875 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`=21225938 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332424, 0.07875957735158436, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21225938_11-03-2025_05_37_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21225991, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21225992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21225993, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21225994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21225995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21225996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21225997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21225998, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21225999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21226000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21226001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21226002, '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 = 21226845 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': 2656748, 'mtr_portfolio_id': 21226845, 'created_at': datetime.datetime(2025, 3, 11, 5, 37, 36), 'result': '0.07574263346445242', 'result_long': None, 'result_double': None}] Qualite : 0.07574263346445242 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21226845 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21226845_11-03-2025_05_37_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21226845 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_P21226845_11-03-2025_05_37_38.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21226848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21226849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21226850, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21226851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21226852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21226853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21226854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21226855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21226856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21226857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21226858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21226859, 'pht': 3726}}" where mtr_portfolio_id = 21226845 and dashboard_run_id = 1664875 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`=21226845 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332425, 0.07574263346445242, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21226845_11-03-2025_05_37_38.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21226848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21226849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21226850, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21226851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21226852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21226853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21226854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21226855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21226856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21226857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21226858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21226859, '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 = 21227642 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': 2656749, 'mtr_portfolio_id': 21227642, 'created_at': datetime.datetime(2025, 3, 11, 5, 38, 33), 'result': '0.07788827551111495', 'result_long': None, 'result_double': None}] Qualite : 0.07788827551111495 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21227642 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21227642_11-03-2025_05_38_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21227642 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_P21227642_11-03-2025_05_38_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21227679, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21227680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21227686, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21227694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21227696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21227708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21227709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21227710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21227711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21227712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21227713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21227714, 'pht': 3726}}" where mtr_portfolio_id = 21227642 and dashboard_run_id = 1664875 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`=21227642 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332426, 0.07788827551111495, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21227642_11-03-2025_05_38_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21227679, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21227680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21227686, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21227694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21227696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21227708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21227709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21227710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21227711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21227712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21227713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21227714, '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 = 21228123 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': 2656750, 'mtr_portfolio_id': 21228123, 'created_at': datetime.datetime(2025, 3, 11, 5, 39, 1), 'result': '0.07306573342987199', 'result_long': None, 'result_double': None}] Qualite : 0.07306573342987199 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21228123 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21228123_11-03-2025_05_39_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21228123 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_P21228123_11-03-2025_05_39_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21228230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21228231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21228232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21228233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21228234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21228235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21228236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21228237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21228238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21228239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21228240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21228241, 'pht': 3726}}" where mtr_portfolio_id = 21228123 and dashboard_run_id = 1664875 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`=21228123 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332427, 0.07306573342987199, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21228123_11-03-2025_05_39_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21228230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21228231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21228232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21228233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21228234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21228235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21228236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21228237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21228238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21228239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21228240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21228241, '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 = 21229167 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': 2656751, 'mtr_portfolio_id': 21229167, 'created_at': datetime.datetime(2025, 3, 11, 5, 39, 38), 'result': '0.07833691789643606', 'result_long': None, 'result_double': None}] Qualite : 0.07833691789643606 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21229167 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21229167_11-03-2025_05_39_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21229167 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_P21229167_11-03-2025_05_39_40.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21229184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21229185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21229186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21229187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21229188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21229189, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21229190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21229191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21229192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21229193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21229194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21229195, 'pht': 3726}}" where mtr_portfolio_id = 21229167 and dashboard_run_id = 1664875 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`=21229167 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332428, 0.07833691789643606, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21229167_11-03-2025_05_39_40.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21229184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21229185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21229186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21229187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21229188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21229189, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21229190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21229191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21229192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21229193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21229194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21229195, '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 = 21229599 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': 2656752, 'mtr_portfolio_id': 21229599, 'created_at': datetime.datetime(2025, 3, 11, 5, 40, 31), 'result': '0.08190514300443968', 'result_long': None, 'result_double': None}] Qualite : 0.08190514300443968 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21229599 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21229599_11-03-2025_05_40_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21229599 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_P21229599_11-03-2025_05_40_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21229624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21229625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21229626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21229627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21229628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21229629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21229630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21229631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21229632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21229633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21229634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21229635, 'pht': 3726}}" where mtr_portfolio_id = 21229599 and dashboard_run_id = 1664875 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`=21229599 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332429, 0.08190514300443968, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21229599_11-03-2025_05_40_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21229624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21229625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21229626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21229627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21229628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21229629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21229630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21229631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21229632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21229633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21229634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21229635, '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 = 21231378 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': 2656753, 'mtr_portfolio_id': 21231378, 'created_at': datetime.datetime(2025, 3, 11, 5, 41, 5), 'result': '0.06296389466804614', 'result_long': None, 'result_double': None}] Qualite : 0.06296389466804614 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21231378 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21231378_11-03-2025_05_41_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21231378 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_P21231378_11-03-2025_05_41_07.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21231437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21231438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21231439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21231440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21231441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21231442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21231443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21231444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21231445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21231446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21231447, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21231448, 'pht': 3726}}" where mtr_portfolio_id = 21231378 and dashboard_run_id = 1664875 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`=21231378 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332430, 0.06296389466804614, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21231378_11-03-2025_05_41_07.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21231437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21231438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21231439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21231440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21231441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21231442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21231443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21231444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21231445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21231446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21231447, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21231448, '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 = 21232212 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': 2656754, 'mtr_portfolio_id': 21232212, 'created_at': datetime.datetime(2025, 3, 11, 5, 41, 34), 'result': '0.06513729994768028', 'result_long': None, 'result_double': None}] Qualite : 0.06513729994768028 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21232212 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21232212_11-03-2025_05_41_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21232212 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_P21232212_11-03-2025_05_41_37.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21232305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21232306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21232307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21232308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21232309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21232310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21232311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21232312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21232313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21232314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21232315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21232316, 'pht': 3726}}" where mtr_portfolio_id = 21232212 and dashboard_run_id = 1664875 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`=21232212 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332431, 0.06513729994768028, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21232212_11-03-2025_05_41_37.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21232305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21232306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21232307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21232308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21232309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21232310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21232311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21232312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21232313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21232314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21232315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21232316, '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 = 21232960 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': 2656755, 'mtr_portfolio_id': 21232960, 'created_at': datetime.datetime(2025, 3, 11, 5, 42, 30), 'result': '0.07726998823528783', 'result_long': None, 'result_double': None}] Qualite : 0.07726998823528783 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21232960 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21232960_11-03-2025_05_42_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21232960 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_P21232960_11-03-2025_05_42_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21232961, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21232962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21232963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21232964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21232965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21232966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21232967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21232968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21232969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21232970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21232971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21232972, 'pht': 3726}}" where mtr_portfolio_id = 21232960 and dashboard_run_id = 1664875 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`=21232960 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332432, 0.07726998823528783, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21232960_11-03-2025_05_42_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21232961, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21232962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21232963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21232964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21232965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21232966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21232967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21232968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21232969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21232970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21232971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21232972, '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 = 21233690 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': 2656756, 'mtr_portfolio_id': 21233690, 'created_at': datetime.datetime(2025, 3, 11, 5, 42, 35), 'result': '0.07652877694895004', 'result_long': None, 'result_double': None}] Qualite : 0.07652877694895004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21233690 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21233690_11-03-2025_05_42_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21233690 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_P21233690_11-03-2025_05_42_38.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21233725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21233726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21233727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21233728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21233729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21233731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21233733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21233735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21233738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21233740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21233742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21233744, 'pht': 3726}}" where mtr_portfolio_id = 21233690 and dashboard_run_id = 1664875 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`=21233690 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332433, 0.07652877694895004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21233690_11-03-2025_05_42_38.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21233725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21233726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21233727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21233728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21233729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21233731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21233733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21233735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21233738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21233740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21233742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21233744, '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 = 21234496 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': 2656757, 'mtr_portfolio_id': 21234496, 'created_at': datetime.datetime(2025, 3, 11, 5, 42, 58), 'result': '0.06234427145787569', 'result_long': None, 'result_double': None}] Qualite : 0.06234427145787569 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21234496 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21234496_11-03-2025_05_43_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21234496 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_P21234496_11-03-2025_05_43_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21234534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21234535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21234536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21234537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21234538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21234539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21234540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21234541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21234542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21234543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21234544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21234545, 'pht': 3726}}" where mtr_portfolio_id = 21234496 and dashboard_run_id = 1664875 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`=21234496 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332434, 0.06234427145787569, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21234496_11-03-2025_05_43_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21234534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21234535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21234536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21234537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21234538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21234539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21234540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21234541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21234542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21234543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21234544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21234545, '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 = 21235532 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': 2656758, 'mtr_portfolio_id': 21235532, 'created_at': datetime.datetime(2025, 3, 11, 5, 43, 31), 'result': '0.07812085754388173', 'result_long': None, 'result_double': None}] Qualite : 0.07812085754388173 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21235532 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21235532_11-03-2025_05_43_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21235532 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_P21235532_11-03-2025_05_43_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21235581, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21235582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21235583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21235584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21235585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21235586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21235587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21235588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21235589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21235590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21235591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21235592, 'pht': 3726}}" where mtr_portfolio_id = 21235532 and dashboard_run_id = 1664875 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`=21235532 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332435, 0.07812085754388173, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21235532_11-03-2025_05_43_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21235581, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21235582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21235583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21235584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21235585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21235586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21235587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21235588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21235589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21235590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21235591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21235592, '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 = 21236238 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': 2656759, 'mtr_portfolio_id': 21236238, 'created_at': datetime.datetime(2025, 3, 11, 5, 44, 30), 'result': '0.07686103756433481', 'result_long': None, 'result_double': None}] Qualite : 0.07686103756433481 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21236238 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21236238_11-03-2025_05_44_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21236238 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_P21236238_11-03-2025_05_44_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21236259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21236260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21236261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21236262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21236263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21236264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21236265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21236266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21236267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21236268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21236269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21236270, 'pht': 3726}}" where mtr_portfolio_id = 21236238 and dashboard_run_id = 1664875 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`=21236238 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332436, 0.07686103756433481, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21236238_11-03-2025_05_44_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21236259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21236260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21236261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21236262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21236263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21236264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21236265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21236266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21236267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21236268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21236269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21236270, '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 = 21237290 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': 2656760, 'mtr_portfolio_id': 21237290, 'created_at': datetime.datetime(2025, 3, 11, 5, 45, 4), 'result': '0.06516510044548252', 'result_long': None, 'result_double': None}] Qualite : 0.06516510044548252 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21237290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21237290_11-03-2025_05_45_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21237290 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_P21237290_11-03-2025_05_45_08.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21237295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21237296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21237297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21237298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21237299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21237300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21237301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21237302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21237303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21237304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21237305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21237306, 'pht': 3726}}" where mtr_portfolio_id = 21237290 and dashboard_run_id = 1664875 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`=21237290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332437, 0.06516510044548252, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21237290_11-03-2025_05_45_08.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21237295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21237296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21237297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21237298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21237299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21237300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21237301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21237302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21237303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21237304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21237305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21237306, '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 = 21238235 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': 2656761, 'mtr_portfolio_id': 21238235, 'created_at': datetime.datetime(2025, 3, 11, 5, 45, 31), 'result': '0.07129223740504845', 'result_long': None, 'result_double': None}] Qualite : 0.07129223740504845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21238235 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21238235_11-03-2025_05_45_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21238235 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_P21238235_11-03-2025_05_45_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21238322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21238323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21238324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21238325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21238326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21238327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21238328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21238329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21238330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21238331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21238332, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21238333, 'pht': 3726}}" where mtr_portfolio_id = 21238235 and dashboard_run_id = 1664875 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`=21238235 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332438, 0.07129223740504845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21238235_11-03-2025_05_45_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21238322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21238323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21238324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21238325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21238326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21238327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21238328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21238329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21238330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21238331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21238332, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21238333, '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 = 21239041 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': 2656762, 'mtr_portfolio_id': 21239041, 'created_at': datetime.datetime(2025, 3, 11, 5, 46, 5), 'result': '0.07614297631232707', 'result_long': None, 'result_double': None}] Qualite : 0.07614297631232707 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21239041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21239041_11-03-2025_05_46_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21239041 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_P21239041_11-03-2025_05_46_10.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21239118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21239119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21239120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21239121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21239122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21239123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21239124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21239125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21239126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21239127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21239128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21239129, 'pht': 3726}}" where mtr_portfolio_id = 21239041 and dashboard_run_id = 1664875 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`=21239041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332439, 0.07614297631232707, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21239041_11-03-2025_05_46_10.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21239118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21239119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21239120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21239121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21239122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21239123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21239124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21239125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21239126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21239127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21239128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21239129, '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 = 21239724 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': 2656763, 'mtr_portfolio_id': 21239724, 'created_at': datetime.datetime(2025, 3, 11, 5, 46, 38), 'result': '0.0592010603636712', 'result_long': None, 'result_double': None}] Qualite : 0.0592010603636712 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21239724 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21239724_11-03-2025_05_46_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21239724 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_P21239724_11-03-2025_05_46_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21239725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21239726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21239727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21239728, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21239729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21239730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21239731, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21239732, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21239733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21239734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21239735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21239736, 'pht': 3726}}" where mtr_portfolio_id = 21239724 and dashboard_run_id = 1664875 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`=21239724 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332440, 0.0592010603636712, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21239724_11-03-2025_05_46_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21239725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21239726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21239727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21239728, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21239729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21239730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21239731, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21239732, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21239733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21239734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21239735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21239736, '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 = 21240953 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': 2656764, 'mtr_portfolio_id': 21240953, 'created_at': datetime.datetime(2025, 3, 11, 5, 47, 32), 'result': '0.08090037149444124', 'result_long': None, 'result_double': None}] Qualite : 0.08090037149444124 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21240953 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21240953_11-03-2025_05_47_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21240953 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_P21240953_11-03-2025_05_47_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21241002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21241003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21241004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21241005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21241006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21241007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21241008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21241009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21241010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21241011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21241012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21241013, 'pht': 3726}}" where mtr_portfolio_id = 21240953 and dashboard_run_id = 1664875 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`=21240953 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332441, 0.08090037149444124, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21240953_11-03-2025_05_47_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21241002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21241003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21241004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21241005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21241006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21241007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21241008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21241009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21241010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21241011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21241012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21241013, '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 = 21241634 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': 2656765, 'mtr_portfolio_id': 21241634, 'created_at': datetime.datetime(2025, 3, 11, 5, 47, 58), 'result': '0.07403786216251658', 'result_long': None, 'result_double': None}] Qualite : 0.07403786216251658 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21241634 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21241634_11-03-2025_05_48_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21241634 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_P21241634_11-03-2025_05_48_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21241637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21241638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21241639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21241640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21241641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21241642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21241643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21241644, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21241645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21241646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21241647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21241648, 'pht': 3726}}" where mtr_portfolio_id = 21241634 and dashboard_run_id = 1664875 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`=21241634 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332442, 0.07403786216251658, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21241634_11-03-2025_05_48_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21241637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21241638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21241639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21241640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21241641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21241642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21241643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21241644, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21241645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21241646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21241647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21241648, '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 = 21242355 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': 2656766, 'mtr_portfolio_id': 21242355, 'created_at': datetime.datetime(2025, 3, 11, 5, 48, 36), 'result': '0.09079608215492964', 'result_long': None, 'result_double': None}] Qualite : 0.09079608215492964 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21242355 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21242355_11-03-2025_05_48_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21242355 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_P21242355_11-03-2025_05_48_39.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21242358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21242359, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21242360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21242361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21242362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21242363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21242364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21242365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21242366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21242367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21242368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21242369, 'pht': 3726}}" where mtr_portfolio_id = 21242355 and dashboard_run_id = 1664875 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`=21242355 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332443, 0.09079608215492964, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21242355_11-03-2025_05_48_39.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21242358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21242359, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21242360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21242361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21242362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21242363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21242364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21242365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21242366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21242367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21242368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21242369, '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 = 21243106 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': 2656767, 'mtr_portfolio_id': 21243106, 'created_at': datetime.datetime(2025, 3, 11, 5, 49, 1), 'result': '0.09693046403951629', 'result_long': None, 'result_double': None}] Qualite : 0.09693046403951629 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21243106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21243106_11-03-2025_05_49_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21243106 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_P21243106_11-03-2025_05_49_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21243120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21243121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21243122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21243123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21243124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21243125, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21243126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21243127, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21243128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21243129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21243130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21243131, 'pht': 3726}}" where mtr_portfolio_id = 21243106 and dashboard_run_id = 1664875 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`=21243106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332444, 0.09693046403951629, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21243106_11-03-2025_05_49_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21243120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21243121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21243122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21243123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21243124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21243125, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21243126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21243127, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21243128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21243129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21243130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21243131, '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 = 21244092 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': 2656768, 'mtr_portfolio_id': 21244092, 'created_at': datetime.datetime(2025, 3, 11, 5, 50, 2), 'result': '0.08723614292209346', 'result_long': None, 'result_double': None}] Qualite : 0.08723614292209346 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21244092 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21244092_11-03-2025_05_50_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21244092 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_P21244092_11-03-2025_05_50_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21244093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21244094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21244095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21244096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21244097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21244098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21244099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21244100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21244101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21244102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21244103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21244104, 'pht': 3726}}" where mtr_portfolio_id = 21244092 and dashboard_run_id = 1664875 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`=21244092 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332445, 0.08723614292209346, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21244092_11-03-2025_05_50_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21244093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21244094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21244095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21244096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21244097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21244098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21244099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21244100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21244101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21244102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21244103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21244104, '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 = 21244713 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': 2656769, 'mtr_portfolio_id': 21244713, 'created_at': datetime.datetime(2025, 3, 11, 5, 50, 29), 'result': '0.12359223454251024', 'result_long': None, 'result_double': None}] Qualite : 0.12359223454251024 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21244713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21244713_11-03-2025_05_50_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21244713 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_P21244713_11-03-2025_05_50_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21244826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21244828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21244830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21244832, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21244834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21244836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21244838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21244840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21244842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21244844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21244846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21244849, 'pht': 3726}}" where mtr_portfolio_id = 21244713 and dashboard_run_id = 1664875 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`=21244713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332446, 0.12359223454251024, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21244713_11-03-2025_05_50_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21244826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21244828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21244830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21244832, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21244834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21244836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21244838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21244840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21244842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21244844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21244846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21244849, '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 = 21245285 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': 2656770, 'mtr_portfolio_id': 21245285, 'created_at': datetime.datetime(2025, 3, 11, 5, 51), 'result': '0.10313282792087475', 'result_long': None, 'result_double': None}] Qualite : 0.10313282792087475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21245285 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21245285_11-03-2025_05_51_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21245285 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_P21245285_11-03-2025_05_51_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21245286, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21245287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21245288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21245289, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21245290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21245291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21245292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21245293, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21245294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21245295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21245296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21245297, 'pht': 3726}}" where mtr_portfolio_id = 21245285 and dashboard_run_id = 1664875 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`=21245285 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9332447, 0.10313282792087475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21245285_11-03-2025_05_51_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21245286, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21245287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21245288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21245289, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21245290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21245291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21245292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21245293, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21245294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21245295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21245296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21245297, '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 (21222729,21222733,21223952,21224728,21225304,21225938,21226845,21227642,21228123,21229167,21229599,21231378,21232212,21232960,21233690,21234496,21235532,21236238,21237290,21238235,21239041,21239724,21240953,21241634,21242355,21243106,21244092,21244713,21245285) result : ((1342543589,), (1342543596,), (1342543630,), (1342543643,), (1342543676,), (1342543681,), (1342543726,), (1342543730,), (1342543770,), (1342543774,), (1342543814,), (1342543817,), (1342544025,), (1342544079,), (1342544128,), (1342544185,), (1342544593,), (1342544689,), (1342544779,), (1342545186,), (1342545309,), (1342545429,), (1342545492,), (1342545581,), (1342545666,), (1342546677,), (1342546911,), (1342547309,), (1342547361,), (1342543910,), (1342543945,), (1342544402,), (1342544451,), (1342544498,), (1342545908,), (1342546037,), (1342546230,), (1342546465,), (1342547141,), (1342547206,), (1342547272,), (1342548517,), (1342548585,), (1342548689,), (1342548740,), (1342548777,), (1342548884,), (1342548888,), (1342548893,), (1342548901,), (1342548917,), (1342549841,), (1342549859,), (1342549903,), (1342549958,), (1342550218,), (1342550274,), (1342550316,), (1342550615,), (1342550650,), (1342550668,), (1342550704,), (1342550901,), (1342550922,), (1342550934,), (1342550955,), (1342550960,), (1342550995,), (1342551018,), (1342551035,), (1342551082,), (1342551195,), (1342551216,), (1342551227,), (1342551232,), (1342551508,), (1342551556,), (1342551818,), (1342551877,), (1342551976,), (1342552041,), (1342552474,), (1342552189,), (1342552279,), (1342552349,), (1342552396,), (1342552438,), (1342552590,), (1342552600,), (1342552813,), (1342552909,), (1342552912,), (1342552916,), (1342552948,), (1342552952,), (1342553001,), (1342553031,), (1342553064,), (1342553175,), (1342553178,), (1342553181,), (1342553264,), (1342553267,), (1342553353,), (1342553356,), (1342553358,), (1342553420,), (1342553431,), (1342553435,), (1342553496,), (1342553498,), (1342553501,), (1342553545,), (1342553548,), (1342553590,), (1342553594,), (1342553761,), (1342553799,), (1342554235,), (1342554240,), (1342554242,), (1342554618,), (1342554524,), (1342555038,), (1342555296,), (1342555300,), (1342555415,), (1342555420,), (1342555424,), (1342555521,), (1342555543,), (1342555576,), (1342555619,), (1342555623,), (1342555650,), (1342555703,), (1342555722,), (1342555728,), (1342556024,), (1342556045,), (1342556062,), (1342556287,), (1342556306,), (1342556340,), (1342556540,), (1342556559,), (1342556817,), (1342556871,), (1342556988,), (1342557353,), (1342557357,), (1342557504,), (1342557596,), (1342557620,), (1342557646,), (1342558012,), (1342558055,), (1342558107,), (1342558533,), (1342558541,), (1342558547,), (1342558552,), (1342558572,), (1342558732,), (1342558724,), (1342559080,), (1342559083,), (1342559111,), (1342559632,), (1342559659,), (1342559683,), (1342559719,), (1342559740,), (1342559866,), (1342559872,), (1342559877,), (1342559910,), (1342559914,), (1342559931,), (1342559941,), (1342559997,), (1342560001,), (1342560006,), (1342560033,), (1342560173,), (1342560337,), (1342560390,), (1342560682,), (1342560890,), (1342560894,), (1342561146,), (1342561151,), (1342561168,), (1342561171,), (1342561293,), (1342561308,), (1342561327,), (1342561539,), (1342561564,), (1342561596,), (1342562041,), (1342562082,), (1342562090,), (1342562470,), (1342562406,), (1342562442,), (1342563055,), (1342563201,), (1342563221,), (1342563261,), (1342563679,), (1342563725,), (1342563779,), (1342564324,), (1342564355,), (1342564359,), (1342564649,), (1342564666,), (1342564949,), (1342564968,), (1342565311,), (1342565331,), (1342565351,), (1342565494,), (1342565529,), (1342565698,), (1342565702,), (1342565907,), (1342565930,), (1342565939,), (1342565958,), (1342565992,), (1342566011,), (1342566024,), (1342566033,), (1342566036,), (1342566042,), (1342566104,), (1342566152,), (1342566210,), (1342566215,), (1342566219,), (1342566240,), (1342566284,), (1342566569,), (1342566574,), (1342566590,), (1342566595,), (1342566599,), (1342566734,), (1342566764,), (1342566999,), (1342566845,), (1342566850,), (1342566855,), (1342566860,), (1342566964,), (1342567102,), (1342567137,), (1342567176,), (1342567220,), (1342567436,), (1342567676,), (1342567970,), (1342568050,), (1342568200,), (1342568296,), (1342568433,), (1342568438,), (1342568464,), (1342568474,), (1342568480,), (1342568745,), (1342568933,), (1342569144,), (1342569176,), (1342569182,), (1342569227,), (1342569303,), (1342569442,), (1342569750,), (1342569756,), (1342569763,), (1342569768,), (1342569777,), (1342569894,), (1342569898,), (1342569902,), (1342569906,), (1342570033,), (1342570192,), (1342570291,), (1342570299,), (1342570306,), (1342570314,), (1342570362,), (1342570367,), (1342570371,), (1342570425,), (1342570434,), (1342570439,), (1342570444,), (1342570448,), (1342570459,), (1342570607,), (1342570623,), (1342570641,), (1342570719,), (1342570678,), (1342570682,), (1342570686,), (1342570713,), (1342570799,), (1342570813,), (1342570819,), (1342570824,), (1342570836,), (1342570848,), (1342570940,), (1342570946,), (1342570965,), (1342570971,), (1342571062,), (1342571082,), (1342571121,), (1342571136,), (1342571142,), (1342571143,), (1342571223,), (1342571232,), (1342571238,), (1342571244,), (1342571248,), (1342571250,), (1342571254,), (1342571259,), (1342571265,), (1342571271,), (1342571279,), (1342571400,), (1342571847,), (1342571851,), (1342571855,), (1342571865,), (1342571872,), (1342571911,), (1342571915,), (1342571920,), (1342572076,), (1342572089,), (1342572093,), (1342572186,), (1342572190,), (1342572370,), (1342572422,), (1342572499,), (1342572512,), (1342572623,), (1342572649,), (1342572679,), (1342572683,), (1342572804,), (1342572807,), (1342573159,), (1342573162,), (1342573166,), (1342573171,), (1342573173,), (1342573174,), (1342573200,), (1342573223,), (1342573230,), (1342573231,), (1342573238,), (1342573261,), (1342573263,), (1342573265,), (1342573273,), (1342573300,), (1342573304,), (1342573318,), (1342573376,), (1342573381,), (1342573432,), (1342573441,), (1342573451,), (1342573460,), (1342573516,), (1342573523,), (1342573527,), (1342573532,), (1342573536,), (1342573539,), (1342573552,), (1342573558,), (1342573560,), (1342573566,), (1342573571,), (1342573575,), (1342573862,), (1342573864,), (1342573940,), (1342573943,), (1342573946,), (1342573953,), (1342573959,), (1342573964,), (1342574023,), (1342574046,), (1342574110,), (1342574132,), (1342574144,), (1342574176,), (1342574185,), (1342574188,), (1342574266,), (1342574399,), (1342574616,), (1342574725,), (1342574778,), (1342573738,), (1342573739,), (1342573770,), (1342573771,), (1342573777,), (1342573797,), (1342573799,), (1342573802,), (1342573805,), (1342573806,), (1342573877,), (1342573881,), (1342573886,), (1342573890,), (1342573893,), (1342573907,), (1342573973,), (1342573975,), (1342573977,), (1342573993,), (1342574226,), (1342574232,), (1342574238,), (1342574245,), (1342574259,), (1342574279,), (1342574290,), (1342574306,), (1342574334,), (1342574359,), (1342574466,), (1342574487,), (1342574506,), (1342574557,), (1342574577,), (1342574852,), (1342574859,), (1342574993,), (1342574998,), (1342575003,), (1342575366,), (1342575886,), (1342576049,), (1342576061,), (1342576933,), (1342576987,), (1342577107,), (1342577146,), (1342577985,), (1342577887,), (1342577924,), (1342577940,), (1342577960,), (1342577963,), (1342578027,), (1342578031,), (1342578060,), (1342578110,), (1342578484,), (1342578527,), (1342578585,), (1342578629,), (1342578674,), (1342578719,), (1342578858,), (1342578872,), (1342578875,), (1342578879,), (1342578883,), (1342578894,), (1342578938,), (1342578945,), (1342579061,), (1342579070,), (1342579079,), (1342579087,), (1342579092,), (1342579096,), (1342579130,), (1342579144,), (1342579161,), (1342579338,), (1342579425,), (1342580053,), (1342580056,), (1342580061,), (1342580066,), (1342580071,), (1342580074,), (1342580116,), (1342580120,), (1342580137,), (1342580227,), (1342580301,), (1342580518,), (1342580562,), (1342580565,), (1342580578,), (1342580672,), (1342580692,), (1342580696,), (1342580716,), (1342580774,), (1342580819,), (1342580861,), (1342580869,), (1342580874,), (1342580879,), (1342580885,), (1342580888,), (1342580909,), (1342580917,), (1342580924,), (1342580930,), (1342580936,), (1342581144,), (1342580983,), (1342580987,), (1342580991,), (1342581057,), (1342581094,), (1342581251,), (1342581256,), (1342581263,), (1342581268,), (1342581272,), (1342581277,), (1342581388,), (1342581431,), (1342581455,), (1342581739,), (1342581750,), (1342581764,), (1342581801,), (1342581898,), (1342581952,), (1342581994,), (1342582259,), (1342582345,), (1342582404,), (1342582483,), (1342582527,), (1342582786,), (1342582870,), (1342582925,), (1342583259,), (1342583279,), (1342583291,), (1342583305,), (1342583588,), (1342583601,), (1342583626,), (1342583638,), (1342583697,), (1342583757,), (1342583812,), (1342583848,), (1342583881,), (1342583914,), (1342583948,), (1342584026,), (1342584044,), (1342584072,), (1342584349,), (1342584370,), (1342584409,), (1342584455,), (1342584503,), (1342584559,), (1342584830,), (1342584860,), (1342584893,), (1342584911,), (1342585024,), (1342585065,), (1342585096,), (1342585122,), (1342585144,), (1342585166,), (1342585307,), (1342585335,), (1342585371,), (1342585397,), (1342585434,), (1342585667,), (1342585762,), (1342585814,), (1342585895,), (1342585982,), (1342588366,), (1342599833,), (1342599873,), (1342599942,), (1342600537,), (1342600644,), (1342600737,), (1342600815,), (1342601445,), (1342601497,), (1342601524,), (1342601554,), (1342601633,), (1342602016,), (1342602031,), (1342602053,), (1342602063,), (1342602086,), (1342602349,), (1342602448,), (1342602481,), (1342602514,), (1342602556,), (1342602740,), (1342602801,), (1342602833,), (1342603128,), (1342603169,), (1342603202,), (1342603264,), (1342603306,), (1342603334,), (1342603580,), (1342603651,), (1342603734,), (1342603793,), (1342603839,), (1342604141,), (1342604191,), (1342604214,), (1342604245,), (1342604274,), (1342604671,), (1342604718,), (1342604764,), (1342604804,), (1342604856,), (1342604913,), (1342605141,), (1342605178,), (1342605263,), (1342605328,), (1342605723,), (1342605825,), (1342606046,), (1342606120,), (1342606174,), (1342606229,), (1342606658,), (1342606531,), (1342606545,), (1342606581,), (1342606846,), (1342606860,), (1342606864,), (1342606868,), (1342606872,), (1342606988,), (1342607005,), (1342607027,), (1342607041,), (1342607065,), (1342607202,), (1342607237,), (1342607255,), (1342607263,), (1342607280,), (1342607359,), (1342607536,), (1342607544,), (1342607565,), (1342607570,), (1342607759,), (1342607764,), (1342607774,), (1342607783,), (1342607794,), (1342607799,), (1342607878,), (1342607887,), (1342607894,), (1342607936,), (1342608117,), (1342608135,), (1342608160,), (1342608178,), (1342608200,), (1342608223,), (1342608449,), (1342608500,), (1342608524,), (1342608538,), (1342608773,), (1342608798,), (1342608830,), (1342608852,), (1342608866,), (1342608890,), (1342609148,), (1342609168,), (1342609195,), (1342609215,), (1342609421,), (1342609447,), (1342609478,), (1342609548,), (1342609600,), (1342609645,), (1342609843,), (1342609955,), (1342610000,), (1342610038,), (1342610063,), (1342610076,), (1342610191,), (1342610235,), (1342610289,), (1342610347,), (1342610561,), (1342610591,), (1342610617,), (1342610641,), (1342610682,), (1342610702,), (1342611036,), (1342610894,), (1342610936,), (1342610952,), (1342611009,), (1342611132,), (1342611138,), (1342611144,), (1342611148,), (1342611153,), (1342611157,), (1342611182,), (1342611202,), (1342611207,), (1342611212,), (1342611257,), (1342611261,), (1342611277,), (1342611300,), (1342611322,), (1342611335,), (1342611417,), (1342611449,), (1342611511,), (1342611515,), (1342611538,), (1342611564,), (1342611588,), (1342611620,), (1342611636,), (1342611815,), (1342611889,), (1342611902,), (1342611916,), (1342611976,), (1342612027,), (1342612291,), (1342612351,), (1342612434,), (1342612490,), (1342612733,), (1342612758,), (1342612787,), (1342612798,), (1342612804,), (1342612820,), (1342613008,), (1342613030,), (1342613078,), (1342613164,), (1342613475,), (1342613514,), (1342613544,), (1342613580,), (1342613655,), (1342613696,), (1342613845,), (1342613884,), (1342613923,), (1342613930,), (1342613935,), (1342613944,), (1342613991,), (1342613996,), (1342614002,), (1342614010,), (1342614069,), (1342614112,), (1342614150,), (1342614186,), (1342614225,), (1342614289,), (1342614683,), (1342614733,), (1342614772,), (1342614814,), (1342615062,), (1342614906,), (1342614915,), (1342614920,), (1342614928,), (1342614941,), (1342615271,), (1342615277,), (1342615284,), (1342615458,), (1342615462,), (1342615467,), (1342615473,), (1342615477,), (1342615478,), (1342615495,), (1342615499,), (1342615502,), (1342615506,), (1342615511,), (1342615692,), (1342615751,), (1342615789,), (1342615817,), (1342615852,), (1342615887,), (1342616012,), (1342616022,), (1342616026,), (1342616031,), (1342616035,), (1342616151,), (1342616169,), (1342616194,), (1342616236,), (1342616251,), (1342616265,), (1342616331,), (1342616334,), (1342616338,), (1342616341,), (1342616442,), (1342616448,), (1342616480,), (1342616490,), (1342616515,), (1342616556,), (1342616710,), (1342616804,), (1342616832,), (1342616865,), (1342616909,), (1342617002,), (1342617369,), (1342617410,), (1342617443,), (1342617474,), (1342617514,), (1342617834,), (1342617879,), (1342617957,), (1342617978,), (1342618057,), (1342618160,), (1342618201,), (1342618223,), (1342618268,), (1342618331,), (1342618367,), (1342618422,), (1342618658,), (1342618681,), (1342618718,), (1342619200,), (1342619621,), (1342619709,), (1342619755,), (1342619788,), (1342619829,), (1342619887,), (1342619994,), (1342620029,), (1342620081,), (1342620406,), (1342620211,), (1342620236,), (1342620284,), (1342620334,), (1342620374,), (1342620562,), (1342620585,), (1342620603,), (1342620980,), (1342621017,), (1342621050,), (1342621124,), (1342621195,), (1342621251,), (1342621812,), (1342621845,), (1342621869,), (1342621977,), (1342622260,), (1342622280,), (1342622285,), (1342622305,), (1342622458,), (1342622479,), (1342622506,), (1342622525,), (1342622728,), (1342622783,), (1342622807,), (1342623412,), (1342623447,), (1342623526,), (1342623601,), (1342623650,), (1342623705,), (1342624016,), (1342624081,), (1342624157,), (1342624217,), (1342624554,), (1342624596,), (1342624636,), (1342624677,), (1342624700,), (1342624740,), (1342624961,), (1342624995,), (1342625027,), (1342625058,), (1342625261,), (1342625294,), (1342625317,), (1342625372,), (1342625415,), (1342625474,), (1342625780,), (1342625872,), (1342625895,), (1342625919,), (1342625959,), (1342625980,), (1342626069,), (1342626089,), (1342626108,), (1342626529,), (1342626556,), (1342626569,), (1342626611,), (1342626651,), (1342626673,), (1342626942,), (1342626854,), (1342626888,), (1342626900,), (1342626935,), (1342626939,), (1342626997,), (1342627016,), (1342627021,), (1342627024,), (1342627087,), (1342627099,), (1342627109,), (1342627117,), (1342627119,), (1342627126,), (1342627184,), (1342627194,), (1342627202,), (1342627209,), (1342627383,), (1342627386,), (1342627405,), (1342627409,), (1342627418,), (1342627424,), (1342627587,), (1342627675,), (1342627742,), (1342627777,), (1342627819,), (1342628194,), (1342628278,), (1342628338,), (1342628397,), (1342628542,), (1342628592,), (1342628699,), (1342628763,), (1342628812,), (1342628851,), (1342629023,), (1342629066,), (1342629098,), (1342629127,), (1342629174,), (1342629218,), (1342629459,), (1342629520,), (1342629568,), (1342629606,), (1342629652,), (1342629814,), (1342629837,), (1342629865,), (1342629923,), (1342629958,), (1342630092,), (1342630125,), (1342630142,), (1342630161,), (1342630176,), (1342630238,), (1342630257,), (1342630280,), (1342630304,), (1342630319,), (1342630589,), (1342630619,), (1342630641,), (1342630649,), (1342630684,), (1342631074,), (1342631103,), (1342631143,), (1342631193,), (1342631227,), (1342631248,), (1342631495,), (1342631428,), (1342631450,), (1342631475,), (1342631788,), (1342631829,), (1342631901,), (1342631942,), (1342631984,), (1342632327,), (1342632379,), (1342632389,), (1342632419,), (1342632423,), (1342632549,), (1342632555,), (1342632564,), (1342632643,), (1342632928,), (1342632948,), (1342632970,), (1342633001,), (1342633042,), (1342633101,), (1342633402,), (1342633462,), (1342633542,), (1342633553,), (1342633599,), (1342633629,), (1342633655,), (1342633667,), (1342633695,), (1342633707,), (1342633900,), (1342633931,), (1342633972,), (1342634010,), (1342634350,), (1342634394,), (1342634432,), (1342634462,), (1342634484,), (1342634521,), (1342634782,), (1342634816,), (1342634841,), (1342634869,), (1342634923,), (1342634947,), (1342634974,), (1342635006,), (1342635031,), (1342635060,), (1342635363,), (1342635425,), (1342635490,), (1342635558,), (1342635620,), (1342635900,), (1342635978,), (1342636009,), (1342636044,), (1342636072,), (1342636090,), (1342636200,), (1342636240,), (1342636267,), (1342636279,), (1342636298,), (1342636531,), (1342636537,), (1342636546,), (1342636567,), (1342636593,), (1342636626,), (1342637107,), (1342636866,), (1342636930,), (1342636981,), (1342637017,), (1342637337,), (1342637342,), (1342637345,), (1342637348,), (1342637352,), (1342637372,), (1342637530,), (1342637565,), (1342637593,), (1342637619,), (1342637941,), (1342638035,), (1342638151,), (1342638193,), (1342638214,), (1342638249,), (1342638435,), (1342638572,), (1342638576,), (1342638580,), (1342638677,), (1342638720,), (1342638795,), (1342638876,), (1342638913,), (1342638920,), (1342638943,), (1342638947,), (1342638969,), (1342639010,), (1342639026,), (1342639042,), (1342639200,), (1342639221,), (1342639241,), (1342639421,), (1342639452,), (1342639474,), (1342639495,), (1342639524,), (1342639544,), (1342639653,), (1342639677,), (1342639700,), (1342639717,), (1342639806,), (1342639821,), (1342639841,), (1342639863,), (1342639883,), (1342639902,), (1342640133,), (1342640153,), (1342640159,), (1342640164,), (1342640238,), (1342640246,), (1342640253,), (1342640267,), (1342640282,), (1342640318,), (1342640714,), (1342640761,), (1342640791,), (1342640826,), (1342640836,), (1342641102,), (1342641024,), (1342641073,), (1342641616,), (1342641649,), (1342641706,), (1342641811,), (1342641833,), (1342641891,), (1342642121,), (1342642182,), (1342642246,), (1342642277,), (1342642315,), (1342642348,), (1342642506,), (1342642538,), (1342642601,), (1342642649,), (1342642805,), (1342642860,), (1342642917,), (1342643363,), (1342643386,), (1342643396,), (1342643415,), (1342643621,), (1342643637,), (1342643640,), (1342643663,), (1342643675,), (1342643678,), (1342643742,), (1342643746,), (1342643753,), (1342643756,), (1342643884,), (1342644281,), (1342644303,), (1342644362,), (1342644517,), (1342644531,), (1342644535,), (1342644548,), (1342644640,), (1342644665,), (1342644693,), (1342644703,), (1342644732,), (1342644742,), (1342644828,), (1342644854,), (1342644877,), (1342644902,), (1342645637,), (1342645286,), (1342645406,), (1342645452,), (1342645507,), (1342645558,), (1342645791,), (1342645849,), (1342645939,), (1342645987,), (1342646331,), (1342646373,), (1342646421,), (1342646464,), (1342646521,), (1342646555,), (1342646864,), (1342646922,), (1342646963,), (1342647010,), (1342647031,), (1342647231,), (1342647236,), (1342647269,), (1342647309,), (1342647315,), (1342647317,), (1342647443,), (1342647453,), (1342647461,), (1342647465,), (1342647468,), (1342647561,), (1342647596,), (1342647619,), (1342647631,), (1342647639,), (1342647645,), (1342647739,), (1342647746,), (1342647754,), (1342647776,), (1342647909,), (1342647914,), (1342647930,), (1342647954,), (1342647975,), (1342647992,), (1342648139,), (1342648160,), (1342648183,), (1342648211,), (1342648346,), (1342648353,), (1342648361,), (1342648375,), (1342648501,), (1342648519,), (1342648746,), (1342648783,), (1342648842,), (1342648896,), (1342649277,), (1342649313,), (1342649361,), (1342649393,), (1342649438,), (1342649464,), (1342649598,), (1342649618,), (1342649639,), (1342649663,), (1342649699,), (1342649884,), (1342649907,), (1342649931,), (1342649952,), (1342649976,), (1342650184,), (1342650148,), (1342650167,), (1342650171,), (1342650173,), (1342650178,), (1342650268,), (1342650277,), (1342650284,), (1342650294,), (1342650590,), (1342650656,), (1342650716,), (1342650734,), (1342650758,), (1342650784,), (1342651006,), (1342651043,), (1342651110,), (1342651138,), (1342651357,), (1342651494,), (1342651511,), (1342651653,), (1342651817,), (1342651975,), (1342651986,), (1342652086,), (1342652143,), (1342652147,), (1342652316,), (1342652349,), (1342652422,), (1342652576,), (1342652702,), (1342652927,), (1342652954,), (1342652984,), (1342653034,), (1342653098,), (1342653116,), (1342653349,), (1342653418,), (1342653496,), (1342653511,), (1342653945,), (1342653949,), (1342653953,), (1342653954,), (1342653958,), (1342653961,), (1342654175,), (1342654179,), (1342655446,), (1342662870,), (1342662693,), (1342662782,), (1342662808,), (1342662845,), (1342663001,), (1342663005,), (1342663010,), (1342663031,), (1342663051,), (1342663118,), (1342663152,), (1342663200,), (1342663814,), (1342663914,), (1342664024,), (1342664119,), (1342664522,), (1342664539,), (1342664542,), (1342664755,), (1342664781,), (1342664806,), (1342664828,), (1342665024,), (1342665030,), (1342665037,), (1342665045,), (1342665048,), (1342665115,), (1342665119,), (1342665123,), (1342665127,), (1342665129,), (1342665143,), (1342665180,), (1342665185,), (1342665207,), (1342665210,), (1342665215,), (1342665510,), (1342665562,), (1342665612,), (1342665694,), (1342665746,), (1342665940,), (1342665953,), (1342665959,), (1342666015,), (1342666091,), (1342666225,), (1342666230,), (1342666234,), (1342666237,), (1342666245,), (1342666366,), (1342666295,), (1342666300,), (1342666315,), (1342666343,), (1342666610,), (1342666637,), (1342666655,), (1342666659,), (1342666674,), (1342666749,), (1342666752,), (1342666766,), (1342666770,), (1342666778,), (1342667040,), (1342667142,), (1342667286,), (1342667290,), (1342667298,), (1342667528,), (1342667559,), (1342667579,), (1342667606,), (1342667626,), (1342667656,), (1342668021,), (1342668049,), (1342668077,), (1342668096,), (1342668122,), (1342668481,), (1342668486,), (1342668493,), (1342668811,), (1342668829,), (1342668843,), (1342668850,), (1342668854,), (1342669103,), (1342669132,), (1342669156,), (1342669174,), (1342669197,), (1342669275,), (1342669306,), (1342669344,), (1342669387,), (1342669425,), (1342669428,), (1342669433,), (1342669519,), (1342669548,), (1342669574,), (1342669581,), (1342669816,), (1342669842,), (1342669868,), (1342669889,), (1342670148,), (1342670208,), (1342670216,), (1342670220,), (1342670504,), (1342670519,), (1342670525,), (1342670544,), (1342670609,), (1342670589,), (1342670602,), (1342670605,), (1342670975,), (1342671013,), (1342671312,), (1342671391,), (1342671470,), (1342671839,), (1342671848,), (1342671940,), (1342671946,), (1342671954,), (1342672250,), (1342672279,), (1342672586,), (1342672610,), (1342673008,), (1342673070,), (1342673106,), (1342673130,), (1342673423,), (1342673492,), (1342673566,), (1342673656,), (1342673765,), (1342673780,), (1342673787,), (1342673791,), (1342673804,), (1342673835,), (1342673853,), (1342673881,), (1342673956,), (1342674021,), (1342674167,), (1342674173,), (1342674194,), (1342674393,), (1342674410,), (1342674415,), (1342674555,), (1342674582,), (1342674605,), (1342674631,), (1342674854,), (1342674872,), (1342674879,), (1342674891,), (1342675025,), (1342675019,), (1342675443,), (1342675449,), (1342675452,), (1342675457,), (1342675459,), (1342675712,), (1342675734,), (1342676063,), (1342676089,), (1342676108,), (1342676662,), (1342676682,), (1342676727,), (1342676834,), (1342676841,), (1342676844,), (1342676864,), (1342677027,), (1342677098,), (1342677162,), (1342677202,), (1342677258,), (1342677263,), (1342677267,), (1342677272,), (1342677275,), (1342677334,), (1342677338,), (1342677804,), (1342677830,), (1342677881,), (1342678072,), (1342678076,), (1342678079,), (1342678080,), (1342678156,), (1342678162,), (1342678168,), (1342678172,), (1342678329,), (1342678369,), (1342678380,), (1342678400,), (1342678723,), (1342678731,), (1342678771,), (1342679021,), (1342678879,), (1342678906,), (1342678981,), (1342679311,), (1342679740,), (1342679761,), (1342679777,), (1342680017,), (1342680021,), (1342680527,), (1342680530,), (1342680534,), (1342680537,), (1342680634,), (1342680639,), (1342680642,), (1342680681,), (1342680824,), (1342680843,), (1342680946,), (1342680949,), (1342680956,), (1342681281,), (1342681412,), (1342681416,), (1342681419,), (1342681515,), (1342681580,), (1342681607,), (1342681688,), (1342681768,), (1342682358,), (1342682416,), (1342682443,), (1342682456,), (1342682542,), (1342682547,), (1342682550,), (1342682657,), (1342682661,), (1342682728,), (1342682903,), (1342682912,), (1342682919,), (1342683384,), (1342683459,), (1342683462,), (1342683606,), (1342683610,), (1342683666,), (1342683758,), (1342683764,), (1342683767,), (1342684023,), (1342684070,), (1342684075,), (1342684100,), (1342684483,), (1342684555,), (1342684749,), (1342684756,), (1342684830,), (1342684834,), (1342685614,), (1342685993,), (1342686079,), (1342686133,), (1342686186,), (1342686207,), (1342686439,), (1342686534,), (1342687110,), (1342687081,), (1342687573,), (1342687599,), (1342687740,), (1342687746,), (1342687750,), (1342687755,), (1342687809,), (1342688445,), (1342691131,), (1342691216,), (1342691600,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10032025': {'nb_upload': 12, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21245285]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1342691600, 1342691216, 1342691131, 1342688445, 1342687809, 1342687755, 1342687750, 1342687746, 1342687740, 1342687599, 1342687573, 1342687081] map_info['map_portfolio_photo'] : {21245285: [1342691600, 1342691216, 1342691131, 1342688445, 1342687809, 1342687755, 1342687750, 1342687746, 1342687740, 1342687599, 1342687573, 1342687081]} final : True mtd_id 4302 list_pids : [1342691600, 1342691216, 1342691131, 1342688445, 1342687809, 1342687755, 1342687750, 1342687746, 1342687740, 1342687599, 1342687573, 1342687081] Looping around the photos to save general results len do output : 1 /21245285Didn'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, '2656770') ('4302', '21245285', '1342691600', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342691216', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342691131', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342688445', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687809', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687755', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687750', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687746', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687740', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687599', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687573', None, None, None, None, None, '2656770') ('4302', None, None, None, None, None, None, None, '2656770') ('4302', '21245285', '1342687081', None, None, None, None, None, '2656770') 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, '21245285', 'None', None, None, None, None, '2656770'), ('4302', '21245285', '1342691600', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342691216', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342691131', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342688445', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687809', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687755', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687750', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687746', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687740', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687599', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687573', None, None, None, None, None, '2656770'), ('4302', '21245285', '1342687081', None, None, None, None, None, '2656770')] time used for this insertion : 0.021714210510253906 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.707885980606079 time spend to save output : 0.021909475326538086 total time spend for step 5 : 1.7297954559326172 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 (2656770) 2.27user 2.11system 0:12.93elapsed 33%CPU (0avgtext+0avgdata 160172maxresident)k 888inputs+11776outputs (11major+75329minor)pagefaults 0swaps