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 : 1728796 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 (4223435) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4223435) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433153 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4223435'] with mtr_portfolio_ids : ['29433153'] and first list_photo_ids : [] new path : /proc/1728796/ Name: python3 Umask: 0002 State: R (running) Tgid: 1728796 Ngid: 0 Pid: 1728796 PPid: 1728795 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1728796 NSpid: 1728796 NSpgid: 1727640 NSsid: 1727640 VmPeak: 1113372 kB VmSize: 1113372 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105968 kB VmRSS: 105968 kB RssAnon: 66312 kB RssFile: 39656 kB RssShmem: 0 kB VmData: 872100 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 86 nonvoluntary_ctxt_switches: 84 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1728796', 'Ngid': '0', 'Pid': '1728796', 'PPid': '1728795', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1728796', 'NSpid': '1728796', 'NSpgid': '1727640', 'NSsid': '1727640', 'VmPeak': '1113372 kB', 'VmSize': '1113372 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105968 kB', 'VmRSS': '105968 kB', 'RssAnon': '66312 kB', 'RssFile': '39656 kB', 'RssShmem': '0 kB', 'VmData': '872100 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '86', 'nonvoluntary_ctxt_switches': '84'} ('datou_batch_current', '1728796', '1113372', '0', '1113372', '872100', '105968', b'', 'marlene', '4223435') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29433153) 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 (4223435 ) ) 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 (29433153) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399510405, 'portfolio_id': 29433153}, {'photo_id': 1399510401, 'portfolio_id': 29433153}, {'photo_id': 1399510397, 'portfolio_id': 29433153}, {'photo_id': 1399510388, 'portfolio_id': 29433153}, {'photo_id': 1399510377, 'portfolio_id': 29433153}, {'photo_id': 1399510375, 'portfolio_id': 29433153}, {'photo_id': 1399510372, 'portfolio_id': 29433153}, {'photo_id': 1399510369, 'portfolio_id': 29433153}, {'photo_id': 1399510367, 'portfolio_id': 29433153}, {'photo_id': 1399510366, 'portfolio_id': 29433153}, {'photo_id': 1399510227, 'portfolio_id': 29433153}, {'photo_id': 1399510195, 'portfolio_id': 29433153}, {'photo_id': 1399510164, 'portfolio_id': 29433153}, {'photo_id': 1399510134, 'portfolio_id': 29433153}, {'photo_id': 1399510100, 'portfolio_id': 29433153}, {'photo_id': 1399509985, 'portfolio_id': 29433153}, {'photo_id': 1399509983, 'portfolio_id': 29433153}, {'photo_id': 1399509963, 'portfolio_id': 29433153}, {'photo_id': 1399509620, 'portfolio_id': 29433153}, {'photo_id': 1399509586, 'portfolio_id': 29433153}, {'photo_id': 1399509551, 'portfolio_id': 29433153}, {'photo_id': 1399509518, 'portfolio_id': 29433153}, {'photo_id': 1399509488, 'portfolio_id': 29433153}, {'photo_id': 1399509457, 'portfolio_id': 29433153}, {'photo_id': 1399509361, 'portfolio_id': 29433153}, {'photo_id': 1399509358, 'portfolio_id': 29433153}, {'photo_id': 1399509356, 'portfolio_id': 29433153}, {'photo_id': 1399509354, 'portfolio_id': 29433153}, {'photo_id': 1399509352, 'portfolio_id': 29433153}, {'photo_id': 1399509057, 'portfolio_id': 29433153}, {'photo_id': 1399508968, 'portfolio_id': 29433153}, {'photo_id': 1399508631, 'portfolio_id': 29433153}, {'photo_id': 1399508596, 'portfolio_id': 29433153}, {'photo_id': 1399508563, 'portfolio_id': 29433153}, {'photo_id': 1399508530, 'portfolio_id': 29433153}, {'photo_id': 1399508495, 'portfolio_id': 29433153}] map_portfolio_id_photo_id: {29433153: [1399510405, 1399510401, 1399510397, 1399510388, 1399510377, 1399510375, 1399510372, 1399510369, 1399510367, 1399510366, 1399510227, 1399510195, 1399510164, 1399510134, 1399510100, 1399509985, 1399509983, 1399509963, 1399509620, 1399509586, 1399509551, 1399509518, 1399509488, 1399509457, 1399509361, 1399509358, 1399509356, 1399509354, 1399509352, 1399509057, 1399508968, 1399508631, 1399508596, 1399508563, 1399508530, 1399508495]} ##### 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.017232894897460938 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Dec 15 14:08:56 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 (29433153) 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 : 29433153 get user id for portfolio 29433153 get sub ptf for main ptf 29433153, type 3726 and hashtags ['metal', 'papier', 'autre_refus', 'plastique', 'Carton_brun', 'Teint_Dans_La_Masse', 'environnement', 'kraft', 'Carton_gris', 'flou', 'cartonnette', 'mal_croppe'] 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`=29433153 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','autre_refus','plastique','Carton_brun','Teint_Dans_La_Masse','environnement','kraft','Carton_gris','flou','cartonnette','mal_croppe')) 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`=29433153 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','autre_refus','plastique','Carton_brun','Teint_Dans_La_Masse','environnement','kraft','Carton_gris','flou','cartonnette','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 29433153, 'sub_port_id': 29433162, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058132, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3)}, 'flou': {'main_port_id': 29433153, 'sub_port_id': 29433163, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058133, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3)}, 'metal': {'main_port_id': 29433153, 'sub_port_id': 29433164, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058134, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3)}, 'mal_croppe': {'main_port_id': 29433153, 'sub_port_id': 29433165, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058135, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3)}, 'environnement': {'main_port_id': 29433153, 'sub_port_id': 29433166, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058136, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3)}, 'autre_refus': {'main_port_id': 29433153, 'sub_port_id': 29433167, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058137, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3)}, 'Carton_gris': {'main_port_id': 29433153, 'sub_port_id': 29433168, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058138, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3)}, 'cartonnette': {'main_port_id': 29433153, 'sub_port_id': 29433169, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058139, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3)}, 'plastique': {'main_port_id': 29433153, 'sub_port_id': 29433170, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058140, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3)}, 'Teint_Dans_La_Masse': {'main_port_id': 29433153, 'sub_port_id': 29433171, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058141, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3)}, 'kraft': {'main_port_id': 29433153, 'sub_port_id': 29433172, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058142, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3)}, 'papier': {'main_port_id': 29433153, 'sub_port_id': 29433173, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058143, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29433162 , 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=29433153 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 (29433162) result : ((1399509996,), (1399509997,), (1399509998,), (1399510406,), (1399510407,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433153) result : ((1399508495,), (1399508530,), (1399508563,), (1399508596,), (1399508631,), (1399508968,), (1399509057,), (1399509352,), (1399509354,), (1399509356,), (1399509358,), (1399509361,), (1399509457,), (1399509488,), (1399509518,), (1399509551,), (1399509586,), (1399509620,), (1399509963,), (1399509983,), (1399509985,), (1399510100,), (1399510134,), (1399510164,), (1399510195,), (1399510227,), (1399510366,), (1399510367,), (1399510369,), (1399510372,), (1399510375,), (1399510377,), (1399510388,), (1399510397,), (1399510401,), (1399510405,)) 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 (1399510100) 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 29433163 , 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=29433153 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 (29433163) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433153) result : ((1399508495,), (1399508530,), (1399508563,), (1399508596,), (1399508631,), (1399508968,), (1399509057,), (1399509352,), (1399509354,), (1399509356,), (1399509358,), (1399509361,), (1399509457,), (1399509488,), (1399509518,), (1399509551,), (1399509586,), (1399509620,), (1399509963,), (1399509983,), (1399509985,), (1399510100,), (1399510134,), (1399510164,), (1399510195,), (1399510227,), (1399510366,), (1399510367,), (1399510369,), (1399510372,), (1399510375,), (1399510377,), (1399510388,), (1399510397,), (1399510401,), (1399510405,)) 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 (1399510100) 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 29433164 , 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=29433153 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 (29433164) result : ((1399510002,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433153) result : ((1399508495,), (1399508530,), (1399508563,), (1399508596,), (1399508631,), (1399508968,), (1399509057,), (1399509352,), (1399509354,), (1399509356,), (1399509358,), (1399509361,), (1399509457,), (1399509488,), (1399509518,), (1399509551,), (1399509586,), (1399509620,), (1399509963,), (1399509983,), (1399509985,), (1399510100,), (1399510134,), (1399510164,), (1399510195,), (1399510227,), (1399510366,), (1399510367,), (1399510369,), (1399510372,), (1399510375,), (1399510377,), (1399510388,), (1399510397,), (1399510401,), (1399510405,)) 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 (1399510100) 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 29433165 , 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=29433153 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 (29433165) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433153) result : ((1399508495,), (1399508530,), (1399508563,), (1399508596,), (1399508631,), (1399508968,), (1399509057,), (1399509352,), (1399509354,), (1399509356,), (1399509358,), (1399509361,), (1399509457,), (1399509488,), (1399509518,), (1399509551,), (1399509586,), (1399509620,), (1399509963,), (1399509983,), (1399509985,), (1399510100,), (1399510134,), (1399510164,), (1399510195,), (1399510227,), (1399510366,), (1399510367,), (1399510369,), (1399510372,), (1399510375,), (1399510377,), (1399510388,), (1399510397,), (1399510401,), (1399510405,)) 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 (1399510100) 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 29433166 , 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=29433153 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 (29433166) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433153) result : ((1399508495,), (1399508530,), (1399508563,), (1399508596,), (1399508631,), (1399508968,), (1399509057,), (1399509352,), (1399509354,), (1399509356,), (1399509358,), (1399509361,), (1399509457,), (1399509488,), (1399509518,), (1399509551,), (1399509586,), (1399509620,), (1399509963,), (1399509983,), (1399509985,), (1399510100,), (1399510134,), (1399510164,), (1399510195,), (1399510227,), (1399510366,), (1399510367,), (1399510369,), (1399510372,), (1399510375,), (1399510377,), (1399510388,), (1399510397,), (1399510401,), (1399510405,)) 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 (1399510100) 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 29433167 , 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=29433153 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 (29433167) result : ((1399509370,), (1399510403,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433153) result : ((1399508495,), (1399508530,), (1399508563,), (1399508596,), (1399508631,), (1399508968,), (1399509057,), (1399509352,), (1399509354,), (1399509356,), (1399509358,), (1399509361,), (1399509457,), (1399509488,), (1399509518,), (1399509551,), (1399509586,), (1399509620,), (1399509963,), (1399509983,), (1399509985,), (1399510100,), (1399510134,), (1399510164,), (1399510195,), (1399510227,), (1399510366,), (1399510367,), (1399510369,), (1399510372,), (1399510375,), (1399510377,), (1399510388,), (1399510397,), (1399510401,), (1399510405,)) 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 (1399510100) 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 29433168 , 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=29433153 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 (29433168) result : ((1399509371,), (1399509993,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433153) result : ((1399508495,), (1399508530,), (1399508563,), (1399508596,), (1399508631,), (1399508968,), (1399509057,), (1399509352,), (1399509354,), (1399509356,), (1399509358,), (1399509361,), (1399509457,), (1399509488,), (1399509518,), (1399509551,), (1399509586,), (1399509620,), (1399509963,), (1399509983,), (1399509985,), (1399510100,), (1399510134,), (1399510164,), (1399510195,), (1399510227,), (1399510366,), (1399510367,), (1399510369,), (1399510372,), (1399510375,), (1399510377,), (1399510388,), (1399510397,), (1399510401,), (1399510405,)) 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 (1399510100) 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 29433169 , 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=29433153 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 (29433169) result : ((1399509374,), (1399509375,), (1399509376,), (1399509377,), (1399509378,), (1399509994,), (1399510012,), (1399510404,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433153) result : ((1399508495,), (1399508530,), (1399508563,), (1399508596,), (1399508631,), (1399508968,), (1399509057,), (1399509352,), (1399509354,), (1399509356,), (1399509358,), (1399509361,), (1399509457,), (1399509488,), (1399509518,), (1399509551,), (1399509586,), (1399509620,), (1399509963,), (1399509983,), (1399509985,), (1399510100,), (1399510134,), (1399510164,), (1399510195,), (1399510227,), (1399510366,), (1399510367,), (1399510369,), (1399510372,), (1399510375,), (1399510377,), (1399510388,), (1399510397,), (1399510401,), (1399510405,)) 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 (1399510100) 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 29433170 , 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=29433153 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 (29433170) result : ((1399510000,), (1399510001,), (1399510013,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433153) result : ((1399508495,), (1399508530,), (1399508563,), (1399508596,), (1399508631,), (1399508968,), (1399509057,), (1399509352,), (1399509354,), (1399509356,), (1399509358,), (1399509361,), (1399509457,), (1399509488,), (1399509518,), (1399509551,), (1399509586,), (1399509620,), (1399509963,), (1399509983,), (1399509985,), (1399510100,), (1399510134,), (1399510164,), (1399510195,), (1399510227,), (1399510366,), (1399510367,), (1399510369,), (1399510372,), (1399510375,), (1399510377,), (1399510388,), (1399510397,), (1399510401,), (1399510405,)) 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 (1399510100) 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 29433171 , 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=29433153 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 (29433171) result : ((1399509368,), (1399510010,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433153) result : ((1399508495,), (1399508530,), (1399508563,), (1399508596,), (1399508631,), (1399508968,), (1399509057,), (1399509352,), (1399509354,), (1399509356,), (1399509358,), (1399509361,), (1399509457,), (1399509488,), (1399509518,), (1399509551,), (1399509586,), (1399509620,), (1399509963,), (1399509983,), (1399509985,), (1399510100,), (1399510134,), (1399510164,), (1399510195,), (1399510227,), (1399510366,), (1399510367,), (1399510369,), (1399510372,), (1399510375,), (1399510377,), (1399510388,), (1399510397,), (1399510401,), (1399510405,)) 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 (1399510100) 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 29433172 , 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=29433153 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 (29433172) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433153) result : ((1399508495,), (1399508530,), (1399508563,), (1399508596,), (1399508631,), (1399508968,), (1399509057,), (1399509352,), (1399509354,), (1399509356,), (1399509358,), (1399509361,), (1399509457,), (1399509488,), (1399509518,), (1399509551,), (1399509586,), (1399509620,), (1399509963,), (1399509983,), (1399509985,), (1399510100,), (1399510134,), (1399510164,), (1399510195,), (1399510227,), (1399510366,), (1399510367,), (1399510369,), (1399510372,), (1399510375,), (1399510377,), (1399510388,), (1399510397,), (1399510401,), (1399510405,)) 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 (1399510100) 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 29433173 , 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=29433153 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 (29433173) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433153) result : ((1399508495,), (1399508530,), (1399508563,), (1399508596,), (1399508631,), (1399508968,), (1399509057,), (1399509352,), (1399509354,), (1399509356,), (1399509358,), (1399509361,), (1399509457,), (1399509488,), (1399509518,), (1399509551,), (1399509586,), (1399509620,), (1399509963,), (1399509983,), (1399509985,), (1399510100,), (1399510134,), (1399510164,), (1399510195,), (1399510227,), (1399510366,), (1399510367,), (1399510369,), (1399510372,), (1399510375,), (1399510377,), (1399510388,), (1399510397,), (1399510401,), (1399510405,)) 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 (1399510100) 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`=29433153 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','autre_refus','plastique','Carton_brun','Teint_Dans_La_Masse','environnement','kraft','Carton_gris','flou','cartonnette','mal_croppe')) 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`=29433153 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','autre_refus','plastique','Carton_brun','Teint_Dans_La_Masse','environnement','kraft','Carton_gris','flou','cartonnette','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 29433153, 'sub_port_id': 29433174, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058144, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3, 2)}, 'flou': {'main_port_id': 29433153, 'sub_port_id': 29433175, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058145, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3, 2)}, 'metal': {'main_port_id': 29433153, 'sub_port_id': 29433176, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058146, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3, 2)}, 'mal_croppe': {'main_port_id': 29433153, 'sub_port_id': 29433177, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058147, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3, 2)}, 'environnement': {'main_port_id': 29433153, 'sub_port_id': 29433178, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058148, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3, 2)}, 'autre_refus': {'main_port_id': 29433153, 'sub_port_id': 29433179, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058149, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3, 2)}, 'Carton_gris': {'main_port_id': 29433153, 'sub_port_id': 29433180, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058150, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3, 2)}, 'cartonnette': {'main_port_id': 29433153, 'sub_port_id': 29433181, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058151, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3, 2)}, 'plastique': {'main_port_id': 29433153, 'sub_port_id': 29433182, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058152, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3, 2)}, 'Teint_Dans_La_Masse': {'main_port_id': 29433153, 'sub_port_id': 29433183, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058153, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3, 2)}, 'kraft': {'main_port_id': 29433153, 'sub_port_id': 29433184, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058154, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 3, 2), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3, 2)}, 'papier': {'main_port_id': 29433153, 'sub_port_id': 29433185, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058155, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 7), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 3, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433174,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433162 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433175,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433163 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433176,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433164 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433177,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433165 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433178,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433166 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433179,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433167 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433180,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433168 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433181,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433169 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433182,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433170 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433183,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433171 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433184,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433172 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433185,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433173 lien utilise dans velours : https://marlene.fotonower.com/velours/29433174,29433175,29433176,29433177,29433178,29433179,29433180,29433181,29433182,29433183,29433184,29433185?tags=Carton_brun,flou,metal,mal_croppe,environnement,autre_refus,Carton_gris,cartonnette,plastique,Teint_Dans_La_Masse,kraft,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29433153]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399510405, 1399510401, 1399510397, 1399510388, 1399510377, 1399510375, 1399510372, 1399510369, 1399510367, 1399510366] map_info['map_portfolio_photo'] : {29433153: [1399510405, 1399510401, 1399510397, 1399510388, 1399510377, 1399510375, 1399510372, 1399510369, 1399510367, 1399510366, 1399510227, 1399510195, 1399510164, 1399510134, 1399510100, 1399509985, 1399509983, 1399509963, 1399509620, 1399509586, 1399509551, 1399509518, 1399509488, 1399509457, 1399509361, 1399509358, 1399509356, 1399509354, 1399509352, 1399509057, 1399508968, 1399508631, 1399508596, 1399508563, 1399508530, 1399508495]} final : False mtd_id 4302 list_pids : [1399510405, 1399510401, 1399510397, 1399510388, 1399510377, 1399510375, 1399510372, 1399510369, 1399510367, 1399510366] Looping around the photos to save general results len do output : 1 /29433153. 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, '4223435') ('4302', '29433153', '1399510405', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510401', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510397', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510388', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510377', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510375', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510372', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510369', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510367', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510366', None, None, None, None, None, '4223435') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '29433153', "{'Carton_brun': 29433162, 'flou': 29433163, 'metal': 29433164, 'mal_croppe': 29433165, 'environnement': 29433166, 'autre_refus': 29433167, 'Carton_gris': 29433168, 'cartonnette': 29433169, 'plastique': 29433170, 'Teint_Dans_La_Masse': 29433171, 'kraft': 29433172, 'papier': 29433173}", None, None, None, None, '4223435'), ('4302', '29433153', '1399510405', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510401', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510397', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510388', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510377', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510375', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510372', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510369', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510367', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510366', None, None, None, None, None, '4223435')] time used for this insertion : 0.015828609466552734 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5404939651489258 time spend to save output : 0.016097068786621094 total time spend for step 1 : 0.5565910339355469 step2:final Mon Dec 15 14:08:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (29433153) 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 29433153 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399508631,1399508596,1399508563,1399508530,1399508495,1399509057,1399508968,1399509361,1399509358,1399509356,1399509354,1399509352,1399509620,1399509586,1399509551,1399509518,1399509488,1399509457,1399509985,1399509983,1399509963,1399510227,1399510405,1399510195,1399510401,1399510164,1399510397,1399510134,1399510388,1399510100,1399510377,1399510375,1399510372,1399510369,1399510367,1399510366); 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([29433153]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ('0.04269515658712388',), 1399510377: ('0.04269515658712388',), 1399510375: ('0.04269515658712388',), 1399510372: ('0.04269515658712388',), 1399510369: ('0.04269515658712388',), 1399510367: ('0.04269515658712388',), 1399510366: ('0.04269515658712388',)} new output for save of step final : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ('0.04269515658712388',), 1399510377: ('0.04269515658712388',), 1399510375: ('0.04269515658712388',), 1399510372: ('0.04269515658712388',), 1399510369: ('0.04269515658712388',), 1399510367: ('0.04269515658712388',), 1399510366: ('0.04269515658712388',)} [1399510405, 1399510401, 1399510397, 1399510388, 1399510377, 1399510375, 1399510372, 1399510369, 1399510367, 1399510366] map_info['map_portfolio_photo'] : {29433153: [1399510405, 1399510401, 1399510397, 1399510388, 1399510377, 1399510375, 1399510372, 1399510369, 1399510367, 1399510366, 1399510227, 1399510195, 1399510164, 1399510134, 1399510100, 1399509985, 1399509983, 1399509963, 1399509620, 1399509586, 1399509551, 1399509518, 1399509488, 1399509457, 1399509361, 1399509358, 1399509356, 1399509354, 1399509352, 1399509057, 1399508968, 1399508631, 1399508596, 1399508563, 1399508530, 1399508495]} final : False mtd_id 4302 list_pids : [1399510405, 1399510401, 1399510397, 1399510388, 1399510377, 1399510375, 1399510372, 1399510369, 1399510367, 1399510366] Looping around the photos to save general results len do output : 10 /1399510405.Didn't retrieve data . /1399510401.Didn't retrieve data . /1399510397.Didn't retrieve data . /1399510388.Didn't retrieve data . /1399510377.Didn't retrieve data . /1399510375.Didn't retrieve data . /1399510372.Didn't retrieve data . /1399510369.Didn't retrieve data . /1399510367.Didn't retrieve data . /1399510366.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, '4223435') ('4302', '29433153', '1399510405', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510401', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510397', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510388', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510377', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510375', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510372', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510369', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510367', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510366', None, None, None, None, None, '4223435') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '29433153', '1399510405', '0.04269515658712388', None, None, None, None, '4223435'), ('4302', '29433153', '1399510401', '0.04269515658712388', None, None, None, None, '4223435'), ('4302', '29433153', '1399510397', '0.04269515658712388', None, None, None, None, '4223435'), ('4302', '29433153', '1399510388', '0.04269515658712388', None, None, None, None, '4223435'), ('4302', '29433153', '1399510377', '0.04269515658712388', None, None, None, None, '4223435'), ('4302', '29433153', '1399510375', '0.04269515658712388', None, None, None, None, '4223435'), ('4302', '29433153', '1399510372', '0.04269515658712388', None, None, None, None, '4223435'), ('4302', '29433153', '1399510369', '0.04269515658712388', None, None, None, None, '4223435'), ('4302', '29433153', '1399510367', '0.04269515658712388', None, None, None, None, '4223435'), ('4302', '29433153', '1399510366', '0.04269515658712388', None, None, None, None, '4223435')] time used for this insertion : 0.019493579864501953 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07900857925415039 time spend to save output : 0.019969940185546875 total time spend for step 2 : 0.09897851943969727 step3:velours_tree Mon Dec 15 14:08:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {29433153: [{'Carton_brun': 29433162, 'flou': 29433163, 'metal': 29433164, 'mal_croppe': 29433165, 'environnement': 29433166, 'autre_refus': 29433167, 'Carton_gris': 29433168, 'cartonnette': 29433169, 'plastique': 29433170, 'Teint_Dans_La_Masse': 29433171, 'kraft': 29433172, 'papier': 29433173}]} input_args_next_step : {29433153: ()} output_args : {29433153: [{'Carton_brun': 29433162, 'flou': 29433163, 'metal': 29433164, 'mal_croppe': 29433165, 'environnement': 29433166, 'autre_refus': 29433167, 'Carton_gris': 29433168, 'cartonnette': 29433169, 'plastique': 29433170, 'Teint_Dans_La_Masse': 29433171, 'kraft': 29433172, 'papier': 29433173}]} args : 29433153 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_brun': 29433162, 'flou': 29433163, 'metal': 29433164, 'mal_croppe': 29433165, 'environnement': 29433166, 'autre_refus': 29433167, 'Carton_gris': 29433168, 'cartonnette': 29433169, 'plastique': 29433170, 'Teint_Dans_La_Masse': 29433171, 'kraft': 29433172, 'papier': 29433173},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29433153) 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([29433153]) 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.24570417404174805 time spend to save output : 5.14984130859375e-05 total time spend for step 3 : 0.24575567245483398 step4:send_mail_cod Mon Dec 15 14:08:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ('0.04269515658712388',), 1399510377: ('0.04269515658712388',), 1399510375: ('0.04269515658712388',), 1399510372: ('0.04269515658712388',), 1399510369: ('0.04269515658712388',), 1399510367: ('0.04269515658712388',), 1399510366: ('0.04269515658712388',)} input_args_next_step : {1399510405: ()} output_args : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ('0.04269515658712388',), 1399510377: ('0.04269515658712388',), 1399510375: ('0.04269515658712388',), 1399510372: ('0.04269515658712388',), 1399510369: ('0.04269515658712388',), 1399510367: ('0.04269515658712388',), 1399510366: ('0.04269515658712388',)} args : 1399510405 depend.output_id : 0 input_args_next_step : {1399510405: ('0.04269515658712388',), 1399510401: ()} output_args : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ('0.04269515658712388',), 1399510377: ('0.04269515658712388',), 1399510375: ('0.04269515658712388',), 1399510372: ('0.04269515658712388',), 1399510369: ('0.04269515658712388',), 1399510367: ('0.04269515658712388',), 1399510366: ('0.04269515658712388',)} args : 1399510401 depend.output_id : 0 input_args_next_step : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ()} output_args : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ('0.04269515658712388',), 1399510377: ('0.04269515658712388',), 1399510375: ('0.04269515658712388',), 1399510372: ('0.04269515658712388',), 1399510369: ('0.04269515658712388',), 1399510367: ('0.04269515658712388',), 1399510366: ('0.04269515658712388',)} args : 1399510397 depend.output_id : 0 input_args_next_step : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ()} output_args : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ('0.04269515658712388',), 1399510377: ('0.04269515658712388',), 1399510375: ('0.04269515658712388',), 1399510372: ('0.04269515658712388',), 1399510369: ('0.04269515658712388',), 1399510367: ('0.04269515658712388',), 1399510366: ('0.04269515658712388',)} args : 1399510388 depend.output_id : 0 input_args_next_step : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ('0.04269515658712388',), 1399510377: ()} output_args : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ('0.04269515658712388',), 1399510377: ('0.04269515658712388',), 1399510375: ('0.04269515658712388',), 1399510372: ('0.04269515658712388',), 1399510369: ('0.04269515658712388',), 1399510367: ('0.04269515658712388',), 1399510366: ('0.04269515658712388',)} args : 1399510377 depend.output_id : 0 input_args_next_step : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ('0.04269515658712388',), 1399510377: ('0.04269515658712388',), 1399510375: ()} output_args : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ('0.04269515658712388',), 1399510377: ('0.04269515658712388',), 1399510375: ('0.04269515658712388',), 1399510372: ('0.04269515658712388',), 1399510369: ('0.04269515658712388',), 1399510367: ('0.04269515658712388',), 1399510366: ('0.04269515658712388',)} args : 1399510375 depend.output_id : 0 input_args_next_step : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ('0.04269515658712388',), 1399510377: ('0.04269515658712388',), 1399510375: ('0.04269515658712388',), 1399510372: ()} output_args : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ('0.04269515658712388',), 1399510377: ('0.04269515658712388',), 1399510375: ('0.04269515658712388',), 1399510372: ('0.04269515658712388',), 1399510369: ('0.04269515658712388',), 1399510367: ('0.04269515658712388',), 1399510366: ('0.04269515658712388',)} args : 1399510372 depend.output_id : 0 input_args_next_step : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ('0.04269515658712388',), 1399510377: ('0.04269515658712388',), 1399510375: ('0.04269515658712388',), 1399510372: ('0.04269515658712388',), 1399510369: ()} output_args : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ('0.04269515658712388',), 1399510377: ('0.04269515658712388',), 1399510375: ('0.04269515658712388',), 1399510372: ('0.04269515658712388',), 1399510369: ('0.04269515658712388',), 1399510367: ('0.04269515658712388',), 1399510366: ('0.04269515658712388',)} args : 1399510369 depend.output_id : 0 input_args_next_step : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ('0.04269515658712388',), 1399510377: ('0.04269515658712388',), 1399510375: ('0.04269515658712388',), 1399510372: ('0.04269515658712388',), 1399510369: ('0.04269515658712388',), 1399510367: ()} output_args : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ('0.04269515658712388',), 1399510377: ('0.04269515658712388',), 1399510375: ('0.04269515658712388',), 1399510372: ('0.04269515658712388',), 1399510369: ('0.04269515658712388',), 1399510367: ('0.04269515658712388',), 1399510366: ('0.04269515658712388',)} args : 1399510367 depend.output_id : 0 input_args_next_step : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ('0.04269515658712388',), 1399510377: ('0.04269515658712388',), 1399510375: ('0.04269515658712388',), 1399510372: ('0.04269515658712388',), 1399510369: ('0.04269515658712388',), 1399510367: ('0.04269515658712388',), 1399510366: ()} output_args : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ('0.04269515658712388',), 1399510377: ('0.04269515658712388',), 1399510375: ('0.04269515658712388',), 1399510372: ('0.04269515658712388',), 1399510369: ('0.04269515658712388',), 1399510367: ('0.04269515658712388',), 1399510366: ('0.04269515658712388',)} args : 1399510366 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 : {29433153: [{'Carton_brun': 29433162, 'flou': 29433163, 'metal': 29433164, 'mal_croppe': 29433165, 'environnement': 29433166, 'autre_refus': 29433167, 'Carton_gris': 29433168, 'cartonnette': 29433169, 'plastique': 29433170, 'Teint_Dans_La_Masse': 29433171, 'kraft': 29433172, 'papier': 29433173}]} input_args_next_step : {1399510405: ('0.04269515658712388',), 1399510401: ('0.04269515658712388',), 1399510397: ('0.04269515658712388',), 1399510388: ('0.04269515658712388',), 1399510377: ('0.04269515658712388',), 1399510375: ('0.04269515658712388',), 1399510372: ('0.04269515658712388',), 1399510369: ('0.04269515658712388',), 1399510367: ('0.04269515658712388',), 1399510366: ('0.04269515658712388',), 29433153: ()} output_args : {29433153: [{'Carton_brun': 29433162, 'flou': 29433163, 'metal': 29433164, 'mal_croppe': 29433165, 'environnement': 29433166, 'autre_refus': 29433167, 'Carton_gris': 29433168, 'cartonnette': 29433169, 'plastique': 29433170, 'Teint_Dans_La_Masse': 29433171, 'kraft': 29433172, 'papier': 29433173}]} args : 29433153 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 :11, first value : ('0.04269515658712388',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29433153) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1399510405,1399510401,1399510397,1399510388,1399510377,1399510375,1399510372,1399510369,1399510367,1399510366) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399510366 begin to download photo : 1399510372 begin to download photo : 1399510388 begin to download photo : 1399510405 download finish for photo 1399510372 begin to download photo : 1399510375 download finish for photo 1399510405 download finish for photo 1399510366 begin to download photo : 1399510367 download finish for photo 1399510388 begin to download photo : 1399510397 download finish for photo 1399510375 begin to download photo : 1399510377 download finish for photo 1399510367 begin to download photo : 1399510369 download finish for photo 1399510397 begin to download photo : 1399510401 download finish for photo 1399510377 download finish for photo 1399510369 download finish for photo 1399510401 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette294331631765804137/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P29433153_15-12-2025_14_08_57.pdf 29433163 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29433163 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294331631765804137 29433164 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29433164 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399510002: '1765803907_1179100_1399509354_b85324f6f8cd723a41d22e4ea2e6f0f7_rle_crop_4070916917_0.png'} change filename to text .imagette294331641765804137/ imagette294331641765804137/1765803907_1179100_1399509354_b85324f6f8cd723a41d22e4ea2e6f0f7_rle_crop_4070916917_0.png.png imagette294331651765804137/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/60c0364f44bcaa319c47dadb329b3041_86364569.png imagette294331641765804137 29433165 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29433165 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294331651765804137 29433167 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29433167 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399509370: '1765803787_1171480_1399508631_b9bd1f9784397da4fef2ad5572c3d4a9_rle_crop_4070916075_0.png', 1399510403: '1765804045_1185482_1399510134_f51273e2f3048d545ead631e776ac1bc_rle_crop_4070921566_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/44d735d1b635dee4745d312ef2e6196f_35965647.png change filename to text .imagette294331671765804137/ imagette294331671765804137/1765804045_1185482_1399510134_f51273e2f3048d545ead631e776ac1bc_rle_crop_4070921566_0.png.png imagette294331671765804137/1765803787_1171480_1399508631_b9bd1f9784397da4fef2ad5572c3d4a9_rle_crop_4070916075_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/92ee98779b5abbc8622031cf5a2e523e_97139595.png imagette294331671765804137 29433169 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29433169 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399509374: '1765803787_1171480_1399508596_9820d493b373ccefd7fd6413829aa450_rle_crop_4070916091_0.png', 1399509375: '1765803787_1171480_1399508596_9820d493b373ccefd7fd6413829aa450_rle_crop_4070916095_0.png', 1399509376: '1765803787_1171480_1399508596_9820d493b373ccefd7fd6413829aa450_rle_crop_4070916092_0.png', 1399509377: '1765803787_1171480_1399508563_55833b1653c64fa77ca0fbf982d3936d_rle_crop_4070916105_0.png', 1399509378: '1765803787_1171480_1399508495_9416b96f4a2f55feea302d4a4a04abbb_rle_crop_4070916224_0.png', 1399509994: '1765803907_1179100_1399509356_b29c9bfaae29da37c7136612ef26d36f_rle_crop_4070916909_0.png', 1399510012: '1765803925_1179496_1399509361_bb959087d8202dde1f189b147c7bc1a3_rle_crop_4070916970_0.png', 1399510404: '1765804045_1185482_1399510100_c52a8a8057583fd4e5e9d7dcffdb6045_rle_crop_4070921785_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/9bab2f4be42ca2ffaf63d1c80e240e5e_42976079.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/ba42ee1149bb2f746f3ec29e62d09d90_21950347.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/7945e4ff8415b6878f5f985cb332e4fc_89827515.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/33378930ba92641d0581ed975d6aeb03_25667803.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/a2abfd790a45488bde33bf1ed03fb9d6_95002376.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/9f8b4576bd9a9394708fca7eb0dedf4a_55842736.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/18e559069b69ce1b2eb4a7e801a9e60e_59536088.png change filename to text .imagette294331691765804138/ imagette294331691765804138/1765803787_1171480_1399508563_55833b1653c64fa77ca0fbf982d3936d_rle_crop_4070916105_0.png.png imagette294331691765804138/1765803925_1179496_1399509361_bb959087d8202dde1f189b147c7bc1a3_rle_crop_4070916970_0.png.png imagette294331691765804138/1765803787_1171480_1399508596_9820d493b373ccefd7fd6413829aa450_rle_crop_4070916092_0.png.png imagette294331691765804138/1765803787_1171480_1399508596_9820d493b373ccefd7fd6413829aa450_rle_crop_4070916091_0.png.png imagette294331691765804138/1765803787_1171480_1399508495_9416b96f4a2f55feea302d4a4a04abbb_rle_crop_4070916224_0.png.png imagette294331691765804138/1765803907_1179100_1399509356_b29c9bfaae29da37c7136612ef26d36f_rle_crop_4070916909_0.png.png imagette294331691765804138/1765803787_1171480_1399508596_9820d493b373ccefd7fd6413829aa450_rle_crop_4070916095_0.png.png imagette294331691765804138/1765804045_1185482_1399510100_c52a8a8057583fd4e5e9d7dcffdb6045_rle_crop_4070921785_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/ad238948aac30abb24a280b09ba2dfaa_25858852.png imagette294331691765804138 29433170 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29433170 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399510000: '1765803907_1179100_1399509358_0dcdf8660b3a68fe1efcb32daebc1e43_rle_crop_4070916903_0.png', 1399510001: '1765803907_1179100_1399509358_0dcdf8660b3a68fe1efcb32daebc1e43_rle_crop_4070916897_0.png', 1399510013: '1765803925_1179496_1399509361_bb959087d8202dde1f189b147c7bc1a3_rle_crop_4070916974_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/09688af60d3bf9d0e3df4d43ae9c796e_44833052.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/2dba5ba8fdf73cdfe66b30526e9ecb94_23293528.png change filename to text .imagette294331701765804138/ imagette294331701765804138/1765803907_1179100_1399509358_0dcdf8660b3a68fe1efcb32daebc1e43_rle_crop_4070916903_0.png.png imagette294331701765804138/1765803925_1179496_1399509361_bb959087d8202dde1f189b147c7bc1a3_rle_crop_4070916974_0.png.png imagette294331701765804138/1765803907_1179100_1399509358_0dcdf8660b3a68fe1efcb32daebc1e43_rle_crop_4070916897_0.png.png imagette294331721765804138/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/8862c1c23bdb81a63248efb3bbf57bd6_72046393.png imagette294331701765804138 29433172 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29433172 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294331721765804138 29433162 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29433162 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399509996: '1765803907_1179100_1399509356_b29c9bfaae29da37c7136612ef26d36f_rle_crop_4070916911_0.png', 1399509997: '1765803907_1179100_1399509352_25bfafbdb50e78ecebfb84670b7f769e_rle_crop_4070916930_0.png', 1399509998: '1765803907_1179100_1399509352_25bfafbdb50e78ecebfb84670b7f769e_rle_crop_4070916929_0.png', 1399510406: '1765804045_1185482_1399510164_bb336302f9489263a188852031275bb6_rle_crop_4070921542_0.png', 1399510407: '1765804045_1185482_1399510134_f51273e2f3048d545ead631e776ac1bc_rle_crop_4070921572_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/3a936815eabf0b6e6e8cc10872751d37_48553770.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/f576636329f4df36e104616e17c474db_53302265.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/8c9327779a25280aae8877f65eb7ae62_35945984.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/b7ac450221b1aadd1a376383c7d3eb22_97121746.png change filename to text .imagette294331621765804138/ imagette294331621765804138/1765803907_1179100_1399509356_b29c9bfaae29da37c7136612ef26d36f_rle_crop_4070916911_0.png.png imagette294331621765804138/1765803907_1179100_1399509352_25bfafbdb50e78ecebfb84670b7f769e_rle_crop_4070916929_0.png.png imagette294331621765804138/1765804045_1185482_1399510164_bb336302f9489263a188852031275bb6_rle_crop_4070921542_0.png.png imagette294331621765804138/1765803907_1179100_1399509352_25bfafbdb50e78ecebfb84670b7f769e_rle_crop_4070916930_0.png.png imagette294331621765804138/1765804045_1185482_1399510134_f51273e2f3048d545ead631e776ac1bc_rle_crop_4070921572_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/335d6afcb056c1142b94d4dff735960f_42906636.png imagette294331621765804138 29433168 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29433168 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399509371: '1765803787_1171480_1399508596_9820d493b373ccefd7fd6413829aa450_rle_crop_4070916093_0.png', 1399509993: '1765803907_1179100_1399509356_b29c9bfaae29da37c7136612ef26d36f_rle_crop_4070916912_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/929c960e4c2aa5988a47b8a1f658d5b9_82505252.png change filename to text .imagette294331681765804139/ imagette294331681765804139/1765803907_1179100_1399509356_b29c9bfaae29da37c7136612ef26d36f_rle_crop_4070916912_0.png.png imagette294331681765804139/1765803787_1171480_1399508596_9820d493b373ccefd7fd6413829aa450_rle_crop_4070916093_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/0aec4b887712cf66e7c160806ba1cfcb_79604689.png imagette294331681765804139 29433171 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29433171 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399509368: '1765803787_1171480_1399508530_eb5ed0b6e71d8fe9f00e2779aae182c4_rle_crop_4070916117_0.png', 1399510010: '1765803925_1179496_1399508968_575d6e17cc582917f307448a5b4110d2_rle_crop_4070916980_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/88fdbce5473c71668c086e5a0057fdb4_11624697.png change filename to text .imagette294331711765804139/ imagette294331711765804139/1765803787_1171480_1399508530_eb5ed0b6e71d8fe9f00e2779aae182c4_rle_crop_4070916117_0.png.png imagette294331711765804139/1765803925_1179496_1399508968_575d6e17cc582917f307448a5b4110d2_rle_crop_4070916980_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/0da3ee53670806dd654a8f8c8de6177e_16013473.png imagette294331711765804139 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29433153 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29433174,29433175,29433176,29433177,29433178,29433179,29433180,29433181,29433182,29433183,29433184,29433185?tags=Carton_brun,flou,metal,mal_croppe,environnement,autre_refus,Carton_gris,cartonnette,plastique,Teint_Dans_La_Masse,kraft,papier your option no_mail is active, we will not send the real mail to your client args[1399510405] : ('0.04269515658712388',) no score found for photo 1399510405 We are sending mail with results at report@fotonower.com args[1399510401] : ('0.04269515658712388',) no score found for photo 1399510401 We are sending mail with results at report@fotonower.com args[1399510397] : ('0.04269515658712388',) no score found for photo 1399510397 We are sending mail with results at report@fotonower.com args[1399510388] : ('0.04269515658712388',) no score found for photo 1399510388 We are sending mail with results at report@fotonower.com args[1399510377] : ('0.04269515658712388',) no score found for photo 1399510377 We are sending mail with results at report@fotonower.com args[1399510375] : ('0.04269515658712388',) no score found for photo 1399510375 We are sending mail with results at report@fotonower.com args[1399510372] : ('0.04269515658712388',) no score found for photo 1399510372 We are sending mail with results at report@fotonower.com args[1399510369] : ('0.04269515658712388',) no score found for photo 1399510369 We are sending mail with results at report@fotonower.com args[1399510367] : ('0.04269515658712388',) no score found for photo 1399510367 We are sending mail with results at report@fotonower.com args[1399510366] : ('0.04269515658712388',) no score found for photo 1399510366 We are sending mail with results at report@fotonower.com refus_total : 0.04269515658712388 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29433153 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_P29433153_15-12-2025_14_08_57.pdf results_Auto_P29433153_15-12-2025_14_08_57.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29433153_15-12-2025_14_08_57.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','29433153','results_Auto_P29433153_15-12-2025_14_08_57.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29433153_15-12-2025_14_08_57.pdf','pdf','','0.15','0.04269515658712388') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29433153]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399510405, 1399510401, 1399510397, 1399510388, 1399510377, 1399510375, 1399510372, 1399510369, 1399510367, 1399510366] map_info['map_portfolio_photo'] : {29433153: [1399510405, 1399510401, 1399510397, 1399510388, 1399510377, 1399510375, 1399510372, 1399510369, 1399510367, 1399510366, 1399510227, 1399510195, 1399510164, 1399510134, 1399510100, 1399509985, 1399509983, 1399509963, 1399509620, 1399509586, 1399509551, 1399509518, 1399509488, 1399509457, 1399509361, 1399509358, 1399509356, 1399509354, 1399509352, 1399509057, 1399508968, 1399508631, 1399508596, 1399508563, 1399508530, 1399508495]} final : False mtd_id 4302 list_pids : [1399510405, 1399510401, 1399510397, 1399510388, 1399510377, 1399510375, 1399510372, 1399510369, 1399510367, 1399510366] 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, '4223435') ('4302', '29433153', '1399510405', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510401', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510397', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510388', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510377', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510375', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510372', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510369', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510367', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510366', None, None, None, None, None, '4223435') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '29433153', '1399510405', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510401', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510397', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510388', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510377', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510375', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510372', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510369', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510367', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510366', None, None, None, None, None, '4223435')] time used for this insertion : 0.017949819564819336 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.092240810394287 time spend to save output : 0.01816844940185547 total time spend for step 4 : 3.1104092597961426 step5:split_time_score Mon Dec 15 14:09: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 : ['29433153'] 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 : [('29433153',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29433153) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399510405: {'path': 'temp/1765804137_1728796_1399510405_67a13a2c06b33455539231a3c59cac7f.jpg', 'extension': 'jpg'}, 1399510372: {'path': 'temp/1765804137_1728796_1399510372_d0c06feb4e3fe0cdd358c62c90d5daa7.jpg', 'extension': 'jpg'}, 1399510375: {'path': 'temp/1765804137_1728796_1399510375_ed4af0594a4c9921ce907e884efae148.jpg', 'extension': 'jpg'}, 1399510377: {'path': 'temp/1765804137_1728796_1399510377_5161630a4173288de6fb1e280edd7b28.jpg', 'extension': 'jpg'}, 1399510366: {'path': 'temp/1765804137_1728796_1399510366_b1cf0e486af33cc2f3aa1b196caaa9cf.jpg', 'extension': 'jpg'}, 1399510367: {'path': 'temp/1765804137_1728796_1399510367_9b90b95e0bba85935c0e327b2b894505.jpg', 'extension': 'jpg'}, 1399510369: {'path': 'temp/1765804137_1728796_1399510369_4135a3b3a998beb4d6c751d33610a9cb.jpg', 'extension': 'jpg'}, 1399510388: {'path': 'temp/1765804137_1728796_1399510388_7b8dc6c37fe096863bffc4413494edb9.jpg', 'extension': 'jpg'}, 1399510397: {'path': 'temp/1765804137_1728796_1399510397_e767c8486a05603bcd20db0e606210ab.jpg', 'extension': 'jpg'}, 1399510401: {'path': 'temp/1765804137_1728796_1399510401_b63547e683a6fb191a6ba3fc8604408b.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 = 29433153; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29433153 group by h (('14', 36),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29433153 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 (29433153) 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 (29433153) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 15122025 29433153 Nombre de photos uploadées : 36 / 23040 (0%) 15122025 29433153 Nombre de photos taguées (types de déchets): 0 / 36 (0%) 15122025 29433153 Nombre de photos taguées (volume) : 0 / 36 (0%) [{'photo_id': 1399508631, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/b9bd1f9784397da4fef2ad5572c3d4a9.jpg', 'username': None, 'uploaded_at': 1765803672, 'text': 'image_15122025_14_00_05_010169m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399508596, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/9820d493b373ccefd7fd6413829aa450.jpg', 'username': None, 'uploaded_at': 1765803672, 'text': 'image_15122025_14_00_14_009127m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1399508563, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/55833b1653c64fa77ca0fbf982d3936d.jpg', 'username': None, 'uploaded_at': 1765803672, 'text': 'image_15122025_14_00_24_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399508530, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/eb5ed0b6e71d8fe9f00e2779aae182c4.jpg', 'username': None, 'uploaded_at': 1765803672, 'text': 'image_15122025_14_00_34_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ???????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001621246337890625 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29433153, '2025-12-15' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-15' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2736782,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2480001449584961 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= 2736782 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29417280, 'dashboard_result_id': 18375110, '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_P29417280_15-12-2025_05_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417286, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417292, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29417539, 'dashboard_result_id': 18375111, '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_P29417539_15-12-2025_05_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417553, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29417857, 'dashboard_result_id': 18375112, '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_P29417857_15-12-2025_06_02_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417866, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417870, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417874, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29418257, 'dashboard_result_id': 18375113, '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_P29418257_15-12-2025_06_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29418264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29418265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29418266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29418267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29418268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29418269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29418270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29418271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29418272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29418273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29418274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29418275, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29418780, 'dashboard_result_id': 18375114, '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_P29418780_15-12-2025_06_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29418785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29418786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29418787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29418788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29418789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29418790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29418791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29418792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29418793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29418794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29418795, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29418796, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29419219, 'dashboard_result_id': 18375115, '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_P29419219_15-12-2025_06_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29419252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29419253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29419254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29419255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29419256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29419257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29419258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29419259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29419260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29419261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29419262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29419263, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29419682, 'dashboard_result_id': 18375116, '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_P29419682_15-12-2025_07_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29419708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29419709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29419710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29419711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29419712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29419713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29419714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29419715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29419716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29419717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29419718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29419719, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29420083, 'dashboard_result_id': 18375117, '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_P29420083_15-12-2025_07_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29420109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29420110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29420111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29420112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29420113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29420114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29420115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29420116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29420117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29420118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29420119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29420120, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29420617, 'dashboard_result_id': 18375118, '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_P29420617_15-12-2025_07_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29420626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29420627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29420628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29420629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29420630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29420631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29420632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29420633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29420634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29420635, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29420636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29420637, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29421087, 'dashboard_result_id': 18375119, '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_P29421087_15-12-2025_07_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29421094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29421095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29421096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29421097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29421098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29421099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29421100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29421101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29421102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29421103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29421104, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29421105, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29421545, 'dashboard_result_id': 18375120, '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_P29421545_15-12-2025_08_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29421546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29421547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29421548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29421549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29421550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29421551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29421552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29421553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29421554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29421555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29421556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29421557, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29422017, 'dashboard_result_id': 18375121, '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_P29422017_15-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29422023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29422024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29422025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29422027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422028, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29422029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29422030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29422033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29422034, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29422537, 'dashboard_result_id': 18375122, '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_P29422537_15-12-2025_08_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29422542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29422544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29422546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29422551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29422553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29422555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29422556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29422558, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29422986, 'dashboard_result_id': 18375123, '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_P29422986_15-12-2025_08_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29423000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29423001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29423002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29423003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29423004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29423005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29423006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29423007, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29423463, 'dashboard_result_id': 18375124, '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_P29423463_15-12-2025_09_39_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29423472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29423473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29423474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29423475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29423476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29423477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29423478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29423479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29423480, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29423481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29423482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29423483, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29424399, 'dashboard_result_id': 18375125, '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_P29424399_15-12-2025_09_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29424417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29424418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29424419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29424420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29424421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29424422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29424423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29424424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29424425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29424426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29424427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29424428, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29424626, 'dashboard_result_id': 18375126, '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_P29424626_15-12-2025_10_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29424631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29424632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29424633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29424634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29424635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29424636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29424637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29424638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29424639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29424640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29424641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29424642, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29424984, 'dashboard_result_id': 18375127, '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_P29424984_15-12-2025_10_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29425000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29425001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29425002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29425003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29425004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29425005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29425006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29425007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29425008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29425009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29425010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29425011, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29425574, 'dashboard_result_id': 18375128, '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_P29425574_15-12-2025_10_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29425583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29425584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29425585, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29425586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29425587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29425588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29425589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29425590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29425591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29425592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29425593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29425594, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29426150, 'dashboard_result_id': 18375129, '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_P29426150_15-12-2025_10_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29426158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29426159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29426160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29426161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29426162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29426163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29426164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29426165, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29426166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29426167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29426168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29426169, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29426847, 'dashboard_result_id': 18375130, '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_P29426847_15-12-2025_11_03_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29426855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29426856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29426857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29426858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29426859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29426860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29426861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29426862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29426863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29426864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29426865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29426866, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29427202, 'dashboard_result_id': 18375131, '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_P29427202_15-12-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29427206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29427207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29427208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29427209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29427210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29427211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29427212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29427213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29427214, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29427215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29427216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29427217, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29427865, 'dashboard_result_id': 18375132, '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_P29427865_15-12-2025_11_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29427874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29427875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29427876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29427877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29427878, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29427880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29427882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29427884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29427887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29427890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29427892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29427894, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29428659, 'dashboard_result_id': 18375133, '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_P29428659_15-12-2025_11_49_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29428713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29428714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29428715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29428716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29428717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29428718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29428719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29428720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29428721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29428722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29428723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29428724, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29429470, 'dashboard_result_id': 18375134, '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_P29429470_15-12-2025_12_03_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29429477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29429478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29429479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29429480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29429481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29429482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29429483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29429484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29429485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29429486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29429487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29429488, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29430268, 'dashboard_result_id': 18375135, '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_P29430268_15-12-2025_13_59_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29430343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29430344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29430345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29430346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29430347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29430348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29430349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29430350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29430351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29430352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29430353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29430354, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29432821, 'dashboard_result_id': 18375137, '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_P29432821_15-12-2025_13_51_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29432822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29432823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29432824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29432825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29432826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29432827, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29432828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29432829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29432830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29432831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29432832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29432833, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29432889, 'dashboard_result_id': 18375139, '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_P29432889_15-12-2025_13_59_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29432891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29432892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29432893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29432894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29432895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29432896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29432897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29432898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29432899, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29432900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29432901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29432902, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745818, 'mtr_portfolio_id': 29433153, 'dashboard_result_id': 18375140, '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_P29433153_15-12-2025_14_05_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29433162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29433163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29433164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29433165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29433166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29433167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29433168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29433169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29433170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29433171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29433172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29433173, '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 = 29417280 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': 4221122, 'mtr_portfolio_id': 29417280, 'created_at': datetime.datetime(2025, 12, 15, 5, 33, 1), 'result': '0.08095185877014659', 'result_long': None, 'result_double': None}] Qualite : 0.08095185877014659 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29417280 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417280_15-12-2025_05_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29417280 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_P29417280_15-12-2025_05_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417286, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417292, 'pht': 3726}}" where mtr_portfolio_id = 29417280 and dashboard_run_id = 2745818 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`=29417280 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375110, 0.08095185877014659, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417280_15-12-2025_05_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417286, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417292, '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 = 29417539 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': 4221177, 'mtr_portfolio_id': 29417539, 'created_at': datetime.datetime(2025, 12, 15, 5, 48, 58), 'result': '0.059275304972668336', 'result_long': None, 'result_double': None}] Qualite : 0.059275304972668336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29417539 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417539_15-12-2025_05_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29417539 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_P29417539_15-12-2025_05_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417553, 'pht': 3726}}" where mtr_portfolio_id = 29417539 and dashboard_run_id = 2745818 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`=29417539 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375111, 0.059275304972668336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417539_15-12-2025_05_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417553, '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 = 29417857 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': 4221221, 'mtr_portfolio_id': 29417857, 'created_at': datetime.datetime(2025, 12, 15, 6, 2, 57), 'result': '0.054923622241066304', 'result_long': None, 'result_double': None}] Qualite : 0.054923622241066304 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29417857 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417857_15-12-2025_06_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29417857 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_P29417857_15-12-2025_06_02_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417866, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417870, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417874, 'pht': 3726}}" where mtr_portfolio_id = 29417857 and dashboard_run_id = 2745818 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`=29417857 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375112, 0.054923622241066304, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417857_15-12-2025_06_02_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417866, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417870, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417874, '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 = 29418257 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': 4221292, 'mtr_portfolio_id': 29418257, 'created_at': datetime.datetime(2025, 12, 15, 6, 16, 57), 'result': '0.035379643720681885', 'result_long': None, 'result_double': None}] Qualite : 0.035379643720681885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29418257 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29418257_15-12-2025_06_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29418257 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_P29418257_15-12-2025_06_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29418264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29418265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29418266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29418267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29418268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29418269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29418270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29418271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29418272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29418273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29418274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29418275, 'pht': 3726}}" where mtr_portfolio_id = 29418257 and dashboard_run_id = 2745818 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`=29418257 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375113, 0.035379643720681885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29418257_15-12-2025_06_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29418264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29418265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29418266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29418267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29418268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29418269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29418270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29418271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29418272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29418273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29418274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29418275, '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 = 29418780 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': 4221376, 'mtr_portfolio_id': 29418780, 'created_at': datetime.datetime(2025, 12, 15, 6, 32, 59), 'result': '0.04544697938526784', 'result_long': None, 'result_double': None}] Qualite : 0.04544697938526784 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29418780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29418780_15-12-2025_06_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29418780 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_P29418780_15-12-2025_06_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29418785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29418786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29418787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29418788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29418789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29418790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29418791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29418792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29418793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29418794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29418795, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29418796, 'pht': 3726}}" where mtr_portfolio_id = 29418780 and dashboard_run_id = 2745818 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`=29418780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375114, 0.04544697938526784, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29418780_15-12-2025_06_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29418785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29418786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29418787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29418788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29418789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29418790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29418791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29418792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29418793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29418794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29418795, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29418796, '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 = 29419219 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': 4221438, 'mtr_portfolio_id': 29419219, 'created_at': datetime.datetime(2025, 12, 15, 6, 46, 59), 'result': '0.0747152341677419', 'result_long': None, 'result_double': None}] Qualite : 0.0747152341677419 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29419219 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29419219_15-12-2025_06_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29419219 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_P29419219_15-12-2025_06_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29419252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29419253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29419254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29419255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29419256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29419257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29419258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29419259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29419260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29419261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29419262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29419263, 'pht': 3726}}" where mtr_portfolio_id = 29419219 and dashboard_run_id = 2745818 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`=29419219 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375115, 0.0747152341677419, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29419219_15-12-2025_06_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29419252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29419253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29419254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29419255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29419256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29419257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29419258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29419259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29419260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29419261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29419262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29419263, '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 = 29419682 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': 4221506, 'mtr_portfolio_id': 29419682, 'created_at': datetime.datetime(2025, 12, 15, 7, 2, 58), 'result': '0.06600998562564021', 'result_long': None, 'result_double': None}] Qualite : 0.06600998562564021 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29419682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29419682_15-12-2025_07_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29419682 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_P29419682_15-12-2025_07_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29419708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29419709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29419710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29419711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29419712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29419713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29419714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29419715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29419716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29419717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29419718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29419719, 'pht': 3726}}" where mtr_portfolio_id = 29419682 and dashboard_run_id = 2745818 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`=29419682 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375116, 0.06600998562564021, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29419682_15-12-2025_07_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29419708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29419709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29419710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29419711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29419712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29419713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29419714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29419715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29419716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29419717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29419718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29419719, '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 = 29420083 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': 4221578, 'mtr_portfolio_id': 29420083, 'created_at': datetime.datetime(2025, 12, 15, 7, 16, 59), 'result': '0.05533257670567931', 'result_long': None, 'result_double': None}] Qualite : 0.05533257670567931 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29420083 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29420083_15-12-2025_07_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29420083 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_P29420083_15-12-2025_07_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29420109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29420110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29420111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29420112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29420113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29420114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29420115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29420116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29420117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29420118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29420119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29420120, 'pht': 3726}}" where mtr_portfolio_id = 29420083 and dashboard_run_id = 2745818 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`=29420083 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375117, 0.05533257670567931, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29420083_15-12-2025_07_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29420109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29420110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29420111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29420112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29420113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29420114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29420115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29420116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29420117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29420118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29420119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29420120, '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 = 29420617 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': 4221640, 'mtr_portfolio_id': 29420617, 'created_at': datetime.datetime(2025, 12, 15, 7, 32, 59), 'result': '0.044055000795832806', 'result_long': None, 'result_double': None}] Qualite : 0.044055000795832806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29420617 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29420617_15-12-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29420617 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_P29420617_15-12-2025_07_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29420626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29420627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29420628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29420629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29420630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29420631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29420632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29420633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29420634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29420635, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29420636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29420637, 'pht': 3726}}" where mtr_portfolio_id = 29420617 and dashboard_run_id = 2745818 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`=29420617 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375118, 0.044055000795832806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29420617_15-12-2025_07_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29420626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29420627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29420628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29420629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29420630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29420631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29420632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29420633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29420634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29420635, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29420636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29420637, '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 = 29421087 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': 4221714, 'mtr_portfolio_id': 29421087, 'created_at': datetime.datetime(2025, 12, 15, 7, 47), 'result': '0.0482016232493782', 'result_long': None, 'result_double': None}] Qualite : 0.0482016232493782 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29421087 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29421087_15-12-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29421087 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_P29421087_15-12-2025_07_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29421094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29421095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29421096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29421097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29421098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29421099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29421100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29421101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29421102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29421103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29421104, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29421105, 'pht': 3726}}" where mtr_portfolio_id = 29421087 and dashboard_run_id = 2745818 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`=29421087 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375119, 0.0482016232493782, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29421087_15-12-2025_07_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29421094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29421095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29421096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29421097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29421098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29421099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29421100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29421101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29421102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29421103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29421104, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29421105, '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 = 29421545 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': 4221777, 'mtr_portfolio_id': 29421545, 'created_at': datetime.datetime(2025, 12, 15, 8, 2, 58), 'result': '0.04200446576288482', 'result_long': None, 'result_double': None}] Qualite : 0.04200446576288482 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29421545 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29421545_15-12-2025_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29421545 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_P29421545_15-12-2025_08_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29421546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29421547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29421548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29421549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29421550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29421551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29421552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29421553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29421554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29421555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29421556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29421557, 'pht': 3726}}" where mtr_portfolio_id = 29421545 and dashboard_run_id = 2745818 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`=29421545 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375120, 0.04200446576288482, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29421545_15-12-2025_08_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29421546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29421547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29421548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29421549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29421550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29421551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29421552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29421553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29421554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29421555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29421556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29421557, '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 = 29422017 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': 4221848, 'mtr_portfolio_id': 29422017, 'created_at': datetime.datetime(2025, 12, 15, 8, 18, 59), 'result': '0.061341590517899613', 'result_long': None, 'result_double': None}] Qualite : 0.061341590517899613 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29422017 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422017_15-12-2025_08_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29422017 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_P29422017_15-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29422023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29422024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29422025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29422027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422028, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29422029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29422030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29422033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29422034, 'pht': 3726}}" where mtr_portfolio_id = 29422017 and dashboard_run_id = 2745818 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`=29422017 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375121, 0.061341590517899613, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422017_15-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29422023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29422024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29422025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29422027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422028, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29422029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29422030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29422033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29422034, '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 = 29422537 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': 4221908, 'mtr_portfolio_id': 29422537, 'created_at': datetime.datetime(2025, 12, 15, 8, 32, 58), 'result': '0.048219534664280514', 'result_long': None, 'result_double': None}] Qualite : 0.048219534664280514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29422537 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422537_15-12-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29422537 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_P29422537_15-12-2025_08_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29422542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29422544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29422546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29422551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29422553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29422555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29422556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29422558, 'pht': 3726}}" where mtr_portfolio_id = 29422537 and dashboard_run_id = 2745818 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`=29422537 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375122, 0.048219534664280514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422537_15-12-2025_08_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29422542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29422544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29422546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29422551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29422553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29422555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29422556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29422558, '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 = 29422986 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': 4221960, 'mtr_portfolio_id': 29422986, 'created_at': datetime.datetime(2025, 12, 15, 8, 46, 59), 'result': '0.04898624944448178', 'result_long': None, 'result_double': None}] Qualite : 0.04898624944448178 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29422986 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422986_15-12-2025_08_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29422986 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_P29422986_15-12-2025_08_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29423000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29423001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29423002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29423003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29423004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29423005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29423006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29423007, 'pht': 3726}}" where mtr_portfolio_id = 29422986 and dashboard_run_id = 2745818 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`=29422986 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375123, 0.04898624944448178, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422986_15-12-2025_08_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29423000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29423001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29423002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29423003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29423004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29423005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29423006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29423007, '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 = 29423463 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': 4222030, 'mtr_portfolio_id': 29423463, 'created_at': datetime.datetime(2025, 12, 15, 9, 39), 'result': '0.04124339822580909', 'result_long': None, 'result_double': None}] Qualite : 0.04124339822580909 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29423463 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29423463_15-12-2025_09_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29423463 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_P29423463_15-12-2025_09_39_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29423472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29423473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29423474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29423475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29423476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29423477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29423478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29423479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29423480, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29423481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29423482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29423483, 'pht': 3726}}" where mtr_portfolio_id = 29423463 and dashboard_run_id = 2745818 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`=29423463 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375124, 0.04124339822580909, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29423463_15-12-2025_09_39_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29423472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29423473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29423474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29423475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29423476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29423477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29423478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29423479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29423480, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29423481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29423482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29423483, '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 = 29424399 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': 4222215, 'mtr_portfolio_id': 29424399, 'created_at': datetime.datetime(2025, 12, 15, 9, 48, 59), 'result': '0.023366036070767617', 'result_long': None, 'result_double': None}] Qualite : 0.023366036070767617 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29424399 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424399_15-12-2025_09_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29424399 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_P29424399_15-12-2025_09_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29424417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29424418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29424419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29424420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29424421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29424422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29424423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29424424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29424425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29424426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29424427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29424428, 'pht': 3726}}" where mtr_portfolio_id = 29424399 and dashboard_run_id = 2745818 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`=29424399 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375125, 0.023366036070767617, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424399_15-12-2025_09_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29424417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29424418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29424419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29424420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29424421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29424422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29424423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29424424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29424425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29424426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29424427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29424428, '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 = 29424626 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': 4222240, 'mtr_portfolio_id': 29424626, 'created_at': datetime.datetime(2025, 12, 15, 10, 3), 'result': '0.050377449323845976', 'result_long': None, 'result_double': None}] Qualite : 0.050377449323845976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29424626 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424626_15-12-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29424626 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_P29424626_15-12-2025_10_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29424631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29424632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29424633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29424634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29424635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29424636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29424637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29424638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29424639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29424640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29424641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29424642, 'pht': 3726}}" where mtr_portfolio_id = 29424626 and dashboard_run_id = 2745818 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`=29424626 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375126, 0.050377449323845976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424626_15-12-2025_10_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29424631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29424632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29424633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29424634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29424635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29424636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29424637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29424638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29424639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29424640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29424641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29424642, '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 = 29424984 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': 4222310, 'mtr_portfolio_id': 29424984, 'created_at': datetime.datetime(2025, 12, 15, 10, 16, 58), 'result': '0.03910905134750454', 'result_long': None, 'result_double': None}] Qualite : 0.03910905134750454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29424984 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424984_15-12-2025_10_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29424984 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_P29424984_15-12-2025_10_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29425000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29425001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29425002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29425003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29425004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29425005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29425006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29425007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29425008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29425009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29425010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29425011, 'pht': 3726}}" where mtr_portfolio_id = 29424984 and dashboard_run_id = 2745818 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`=29424984 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375127, 0.03910905134750454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424984_15-12-2025_10_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29425000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29425001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29425002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29425003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29425004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29425005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29425006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29425007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29425008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29425009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29425010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29425011, '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 = 29425574 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': 4222390, 'mtr_portfolio_id': 29425574, 'created_at': datetime.datetime(2025, 12, 15, 10, 33), 'result': '0.044997294513022486', 'result_long': None, 'result_double': None}] Qualite : 0.044997294513022486 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29425574 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29425574_15-12-2025_10_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29425574 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_P29425574_15-12-2025_10_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29425583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29425584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29425585, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29425586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29425587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29425588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29425589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29425590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29425591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29425592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29425593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29425594, 'pht': 3726}}" where mtr_portfolio_id = 29425574 and dashboard_run_id = 2745818 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`=29425574 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375128, 0.044997294513022486, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29425574_15-12-2025_10_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29425583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29425584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29425585, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29425586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29425587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29425588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29425589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29425590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29425591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29425592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29425593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29425594, '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 = 29426150 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': 4222461, 'mtr_portfolio_id': 29426150, 'created_at': datetime.datetime(2025, 12, 15, 10, 48, 59), 'result': '0.041089215346454225', 'result_long': None, 'result_double': None}] Qualite : 0.041089215346454225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29426150 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29426150_15-12-2025_10_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29426150 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_P29426150_15-12-2025_10_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29426158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29426159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29426160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29426161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29426162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29426163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29426164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29426165, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29426166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29426167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29426168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29426169, 'pht': 3726}}" where mtr_portfolio_id = 29426150 and dashboard_run_id = 2745818 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`=29426150 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375129, 0.041089215346454225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29426150_15-12-2025_10_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29426158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29426159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29426160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29426161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29426162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29426163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29426164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29426165, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29426166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29426167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29426168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29426169, '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 = 29426847 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': 4222552, 'mtr_portfolio_id': 29426847, 'created_at': datetime.datetime(2025, 12, 15, 11, 3, 27), 'result': '0.03976516800076462', 'result_long': None, 'result_double': None}] Qualite : 0.03976516800076462 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29426847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29426847_15-12-2025_11_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29426847 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_P29426847_15-12-2025_11_03_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29426855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29426856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29426857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29426858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29426859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29426860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29426861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29426862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29426863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29426864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29426865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29426866, 'pht': 3726}}" where mtr_portfolio_id = 29426847 and dashboard_run_id = 2745818 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`=29426847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375130, 0.03976516800076462, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29426847_15-12-2025_11_03_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29426855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29426856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29426857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29426858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29426859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29426860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29426861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29426862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29426863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29426864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29426865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29426866, '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 = 29427202 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': 4222630, 'mtr_portfolio_id': 29427202, 'created_at': datetime.datetime(2025, 12, 15, 11, 18, 58), 'result': '0.04408849281219146', 'result_long': None, 'result_double': None}] Qualite : 0.04408849281219146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29427202 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29427202_15-12-2025_11_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29427202 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_P29427202_15-12-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29427206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29427207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29427208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29427209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29427210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29427211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29427212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29427213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29427214, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29427215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29427216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29427217, 'pht': 3726}}" where mtr_portfolio_id = 29427202 and dashboard_run_id = 2745818 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`=29427202 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375131, 0.04408849281219146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29427202_15-12-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29427206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29427207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29427208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29427209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29427210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29427211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29427212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29427213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29427214, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29427215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29427216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29427217, '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 = 29427865 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': 4222741, 'mtr_portfolio_id': 29427865, 'created_at': datetime.datetime(2025, 12, 15, 11, 33), 'result': '0.06248692052815361', 'result_long': None, 'result_double': None}] Qualite : 0.06248692052815361 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29427865 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29427865_15-12-2025_11_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29427865 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_P29427865_15-12-2025_11_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29427874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29427875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29427876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29427877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29427878, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29427880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29427882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29427884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29427887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29427890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29427892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29427894, 'pht': 3726}}" where mtr_portfolio_id = 29427865 and dashboard_run_id = 2745818 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`=29427865 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375132, 0.06248692052815361, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29427865_15-12-2025_11_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29427874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29427875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29427876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29427877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29427878, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29427880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29427882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29427884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29427887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29427890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29427892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29427894, '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 = 29428659 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': 4222866, 'mtr_portfolio_id': 29428659, 'created_at': datetime.datetime(2025, 12, 15, 11, 49, 28), 'result': '0.07080270824002162', 'result_long': None, 'result_double': None}] Qualite : 0.07080270824002162 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29428659 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29428659_15-12-2025_11_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29428659 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_P29428659_15-12-2025_11_49_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29428713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29428714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29428715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29428716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29428717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29428718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29428719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29428720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29428721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29428722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29428723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29428724, 'pht': 3726}}" where mtr_portfolio_id = 29428659 and dashboard_run_id = 2745818 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`=29428659 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375133, 0.07080270824002162, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29428659_15-12-2025_11_49_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29428713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29428714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29428715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29428716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29428717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29428718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29428719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29428720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29428721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29428722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29428723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29428724, '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 = 29429470 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': 4222952, 'mtr_portfolio_id': 29429470, 'created_at': datetime.datetime(2025, 12, 15, 12, 3, 30), 'result': '0.04664622241252287', 'result_long': None, 'result_double': None}] Qualite : 0.04664622241252287 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29429470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29429470_15-12-2025_12_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29429470 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_P29429470_15-12-2025_12_03_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29429477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29429478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29429479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29429480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29429481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29429482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29429483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29429484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29429485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29429486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29429487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29429488, 'pht': 3726}}" where mtr_portfolio_id = 29429470 and dashboard_run_id = 2745818 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`=29429470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375134, 0.04664622241252287, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29429470_15-12-2025_12_03_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29429477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29429478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29429479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29429480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29429481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29429482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29429483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29429484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29429485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29429486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29429487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29429488, '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 = 29430268 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': 4223072, 'mtr_portfolio_id': 29430268, 'created_at': datetime.datetime(2025, 12, 15, 13, 59, 58), 'result': '0.051451681152082505', 'result_long': None, 'result_double': None}] Qualite : 0.051451681152082505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29430268 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29430268_15-12-2025_13_59_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29430268 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_P29430268_15-12-2025_13_59_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29430343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29430344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29430345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29430346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29430347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29430348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29430349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29430350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29430351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29430352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29430353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29430354, 'pht': 3726}}" where mtr_portfolio_id = 29430268 and dashboard_run_id = 2745818 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`=29430268 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375135, 0.051451681152082505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29430268_15-12-2025_13_59_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29430343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29430344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29430345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29430346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29430347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29430348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29430349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29430350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29430351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29430352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29430353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29430354, '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 = 29432821 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': 4223379, 'mtr_portfolio_id': 29432821, 'created_at': datetime.datetime(2025, 12, 15, 13, 51), 'result': '0.04769022023150057', 'result_long': None, 'result_double': None}] Qualite : 0.04769022023150057 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29432821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29432821_15-12-2025_13_51_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29432821 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_P29432821_15-12-2025_13_51_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29432822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29432823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29432824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29432825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29432826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29432827, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29432828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29432829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29432830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29432831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29432832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29432833, 'pht': 3726}}" where mtr_portfolio_id = 29432821 and dashboard_run_id = 2745818 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`=29432821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375137, 0.04769022023150057, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29432821_15-12-2025_13_51_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29432822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29432823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29432824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29432825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29432826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29432827, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29432828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29432829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29432830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29432831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29432832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29432833, '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 = 29432889 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': 4223393, 'mtr_portfolio_id': 29432889, 'created_at': datetime.datetime(2025, 12, 15, 13, 59), 'result': '0.04786131677447256', 'result_long': None, 'result_double': None}] Qualite : 0.04786131677447256 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29432889 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29432889_15-12-2025_13_59_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29432889 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_P29432889_15-12-2025_13_59_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29432891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29432892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29432893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29432894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29432895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29432896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29432897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29432898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29432899, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29432900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29432901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29432902, 'pht': 3726}}" where mtr_portfolio_id = 29432889 and dashboard_run_id = 2745818 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`=29432889 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375139, 0.04786131677447256, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29432889_15-12-2025_13_59_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29432891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29432892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29432893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29432894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29432895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29432896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29432897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29432898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29432899, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29432900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29432901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29432902, '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 = 29433153 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': 4223435, 'mtr_portfolio_id': 29433153, 'created_at': datetime.datetime(2025, 12, 15, 14, 8, 57), 'result': '0.04269515658712388', 'result_long': None, 'result_double': None}] Qualite : 0.04269515658712388 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29433153 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29433153_15-12-2025_14_08_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29433153 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_P29433153_15-12-2025_14_08_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29433162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29433163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29433164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29433165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29433166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29433167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29433168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29433169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29433170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29433171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29433172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29433173, 'pht': 3726}}" where mtr_portfolio_id = 29433153 and dashboard_run_id = 2745820 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`=29433153 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375140, 0.04269515658712388, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29433153_15-12-2025_14_08_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29433162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29433163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29433164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29433165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29433166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29433167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29433168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29433169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29433170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29433171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29433172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29433173, '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 (29417280,29417539,29417857,29418257,29418780,29419219,29419682,29420083,29420617,29421087,29421545,29422017,29422537,29422986,29423463,29424399,29424626,29424984,29425574,29426150,29426847,29427202,29427865,29428659,29429470,29430268,29432821,29432889,29433153) result : ((1399431985,), (1399432443,), (1399432911,), (1399432913,), (1399432950,), (1399432963,), (1399432964,), (1399432965,), (1399432976,), (1399433319,), (1399433313,), (1399433324,), (1399433326,), (1399433328,), (1399433339,), (1399433340,), (1399433341,), (1399433342,), (1399433344,), (1399433358,), (1399433360,), (1399433362,), (1399433373,), (1399433374,), (1399433375,), (1399433376,), (1399433395,), (1399433397,), (1399433399,), (1399433401,), (1399433418,), (1399433419,), (1399433420,), (1399433422,), (1399433424,), (1399433427,), (1399433434,), (1399433436,), (1399433438,), (1399433446,), (1399433451,), (1399433452,), (1399433454,), (1399433456,), (1399433465,), (1399433467,), (1399433469,), (1399433471,), (1399433473,), (1399433503,), (1399433505,), (1399433506,), (1399433507,), (1399433519,), (1399433521,), (1399433523,), (1399433526,), (1399433529,), (1399433550,), (1399433552,), (1399433554,), (1399433557,), (1399433567,), (1399433569,), (1399433570,), (1399433572,), (1399433574,), (1399433599,), (1399433601,), (1399433603,), (1399433605,), (1399433607,), (1399433609,), (1399433616,), (1399433617,), (1399433619,), (1399433620,), (1399433653,), (1399433688,), (1399433643,), (1399433645,), (1399433647,), (1399433649,), (1399433651,), (1399433662,), (1399433663,), (1399433664,), (1399433665,), (1399433666,), (1399433667,), (1399433675,), (1399433683,), (1399433686,), (1399433694,), (1399433696,), (1399433698,), (1399433699,), (1399433700,), (1399433701,), (1399433715,), (1399433717,), (1399433718,), (1399433719,), (1399433721,), (1399433723,), (1399433742,), (1399433744,), (1399433746,), (1399433748,), (1399433759,), (1399433760,), (1399433761,), (1399433762,), (1399433764,), (1399433766,), (1399433787,), (1399433789,), (1399433791,), (1399433793,), (1399433795,), (1399433803,), (1399433804,), (1399433805,), (1399433806,), (1399433830,), (1399433832,), (1399433834,), (1399433836,), (1399433838,), (1399433847,), (1399433849,), (1399433851,), (1399433854,), (1399433857,), (1399433860,), (1399433874,), (1399433875,), (1399433881,), (1399433887,), (1399433903,), (1399433904,), (1399433905,), (1399433906,), (1399433907,), (1399433928,), (1399433929,), (1399433930,), (1399433931,), (1399433933,), (1399433934,), (1399434155,), (1399434167,), (1399434200,), (1399434339,), (1399434376,), (1399434413,), (1399434445,), (1399434481,), (1399434723,), (1399434651,), (1399434690,), (1399434957,), (1399435741,), (1399435759,), (1399435761,), (1399435762,), (1399435763,), (1399435795,), (1399435800,), (1399435802,), (1399435804,), (1399435807,), (1399435823,), (1399435824,), (1399435825,), (1399435828,), (1399435831,), (1399435833,), (1399435854,), (1399435857,), (1399435858,), (1399435859,), (1399435860,), (1399435864,), (1399435866,), (1399435882,), (1399435883,), (1399435884,), (1399435885,), (1399435888,), (1399435891,), (1399435912,), (1399435914,), (1399435916,), (1399435918,), (1399435921,), (1399435924,), (1399435935,), (1399435937,), (1399435938,), (1399435941,), (1399435944,), (1399435947,), (1399435964,), (1399435968,), (1399435975,), (1399435984,), (1399435987,), (1399435988,), (1399436006,), (1399436008,), (1399436010,), (1399436014,), (1399436018,), (1399436032,), (1399436034,), (1399436036,), (1399436039,), (1399436053,), (1399436055,), (1399436058,), (1399436062,), (1399436067,), (1399436069,), (1399436097,), (1399436090,), (1399436112,), (1399436114,), (1399436115,), (1399436116,), (1399436118,), (1399436121,), (1399436142,), (1399436143,), (1399436144,), (1399436145,), (1399436147,), (1399436150,), (1399436165,), (1399436167,), (1399436168,), (1399436169,), (1399436199,), (1399436200,), (1399436201,), (1399436214,), (1399436216,), (1399436218,), (1399436237,), (1399436238,), (1399436239,), (1399436240,), (1399436243,), (1399436261,), (1399436263,), (1399436265,), (1399436267,), (1399436293,), (1399436295,), (1399436296,), (1399436297,), (1399436299,), (1399436313,), (1399436314,), (1399436315,), (1399436316,), (1399436318,), (1399436321,), (1399436348,), (1399436351,), (1399436353,), (1399436355,), (1399436358,), (1399436376,), (1399436378,), (1399436381,), (1399436384,), (1399436387,), (1399436393,), (1399436402,), (1399436404,), (1399436406,), (1399436416,), (1399436417,), (1399436419,), (1399436422,), (1399436425,), (1399436428,), (1399436438,), (1399436444,), (1399436446,), (1399436448,), (1399436470,), (1399436471,), (1399436473,), (1399436501,), (1399436489,), (1399436491,), (1399436493,), (1399436495,), (1399436498,), (1399436521,), (1399436528,), (1399436529,), (1399436530,), (1399436533,), (1399436536,), (1399436553,), (1399436561,), (1399436563,), (1399436565,), (1399436568,), (1399436570,), (1399436590,), (1399436592,), (1399436594,), (1399436596,), (1399436598,), (1399436622,), (1399436623,), (1399436624,), (1399436625,), (1399436627,), (1399436656,), (1399436661,), (1399436663,), (1399436665,), (1399436668,), (1399436671,), (1399436684,), (1399436685,), (1399436686,), (1399436689,), (1399436692,), (1399436695,), (1399436714,), (1399436716,), (1399436724,), (1399436729,), (1399436732,), (1399436734,), (1399436736,), (1399436738,), (1399436741,), (1399436749,), (1399436750,), (1399436757,), (1399436762,), (1399436765,), (1399436768,), (1399436794,), (1399436796,), (1399436812,), (1399436815,), (1399436817,), (1399436821,), (1399436824,), (1399436831,), (1399436840,), (1399436842,), (1399436844,), (1399436893,), (1399436898,), (1399436899,), (1399436900,), (1399436935,), (1399436947,), (1399436951,), (1399436967,), (1399436969,), (1399436971,), (1399436973,), (1399436976,), (1399437024,), (1399437013,), (1399437022,), (1399437044,), (1399437046,), (1399437048,), (1399437051,), (1399437078,), (1399437079,), (1399437080,), (1399437081,), (1399437084,), (1399437086,), (1399437099,), (1399437101,), (1399437103,), (1399437134,), (1399437135,), (1399437136,), (1399437137,), (1399437139,), (1399437142,), (1399437165,), (1399437166,), (1399437168,), (1399437170,), (1399437172,), (1399437173,), (1399437182,), (1399437184,), (1399437187,), (1399437190,), (1399437199,), (1399437201,), (1399437204,), (1399437219,), (1399437221,), (1399437222,), (1399437224,), (1399437227,), (1399437230,), (1399437257,), (1399437258,), (1399437259,), (1399437260,), (1399437263,), (1399437265,), (1399437281,), (1399437284,), (1399437286,), (1399437325,), (1399437326,), (1399437327,), (1399437328,), (1399437331,), (1399437333,), (1399437347,), (1399437350,), (1399437353,), (1399437358,), (1399437361,), (1399437364,), (1399437372,), (1399437374,), (1399437375,), (1399437377,), (1399437379,), (1399437436,), (1399437472,), (1399437506,), (1399437543,), (1399437625,), (1399437629,), (1399437633,), (1399437636,), (1399437639,), (1399437643,), (1399437872,), (1399437743,), (1399437776,), (1399437807,), (1399437840,), (1399438224,), (1399438247,), (1399438249,), (1399438421,), (1399438430,), (1399438451,), (1399438452,), (1399438455,), (1399438486,), (1399438815,), (1399438845,), (1399438877,), (1399439303,), (1399439336,), (1399439342,), (1399439344,), (1399439347,), (1399439350,), (1399439379,), (1399439413,), (1399439444,), (1399439476,), (1399439737,), (1399439743,), (1399439745,), (1399439761,), (1399439794,), (1399439838,), (1399439842,), (1399439843,), (1399439870,), (1399439872,), (1399439874,), (1399439898,), (1399439922,), (1399439924,), (1399439926,), (1399439961,), (1399439963,), (1399439965,), (1399439967,), (1399439985,), (1399439986,), (1399439987,), (1399439988,), (1399440009,), (1399440011,), (1399440013,), (1399440015,), (1399440040,), (1399440044,), (1399440046,), (1399440047,), (1399440050,), (1399440054,), (1399440084,), (1399440078,), (1399440080,), (1399440082,), (1399440102,), (1399440103,), (1399440104,), (1399440105,), (1399440108,), (1399440111,), (1399440124,), (1399440125,), (1399440127,), (1399440129,), (1399440132,), (1399440135,), (1399440149,), (1399440151,), (1399440153,), (1399440180,), (1399440182,), (1399440184,), (1399440186,), (1399440189,), (1399440191,), (1399440201,), (1399440203,), (1399440205,), (1399440207,), (1399440226,), (1399440227,), (1399440228,), (1399440229,), (1399440253,), (1399440259,), (1399440261,), (1399440263,), (1399440266,), (1399440271,), (1399440288,), (1399440290,), (1399440292,), (1399440294,), (1399440297,), (1399440300,), (1399440311,), (1399440312,), (1399440313,), (1399440314,), (1399440341,), (1399440344,), (1399440346,), (1399440369,), (1399440371,), (1399440373,), (1399440377,), (1399440397,), (1399440399,), (1399440401,), (1399440403,), (1399440420,), (1399440421,), (1399440441,), (1399440443,), (1399440445,), (1399440447,), (1399440450,), (1399440482,), (1399440479,), (1399440480,), (1399440520,), (1399440521,), (1399440522,), (1399440536,), (1399440538,), (1399440540,), (1399440542,), (1399440545,), (1399440546,), (1399440572,), (1399440573,), (1399440574,), (1399440575,), (1399440578,), (1399440581,), (1399440596,), (1399440598,), (1399440600,), (1399440626,), (1399440628,), (1399440630,), (1399440632,), (1399440635,), (1399440638,), (1399440649,), (1399440651,), (1399440655,), (1399440659,), (1399440667,), (1399440671,), (1399440676,), (1399440677,), (1399440678,), (1399440685,), (1399440688,), (1399440692,), (1399440694,), (1399440697,), (1399440710,), (1399440711,), (1399440713,), (1399440714,), (1399440717,), (1399440749,), (1399440751,), (1399440753,), (1399440755,), (1399440758,), (1399440773,), (1399440775,), (1399440777,), (1399440798,), (1399440799,), (1399440800,), (1399440809,), (1399440847,), (1399440855,), (1399440857,), (1399440859,), (1399440891,), (1399440894,), (1399440895,), (1399440914,), (1399440916,), (1399440918,), (1399440922,), (1399440926,), (1399440963,), (1399440983,), (1399440984,), (1399440986,), (1399440988,), (1399441012,), (1399441014,), (1399441016,), (1399441018,), (1399441021,), (1399441041,), (1399441042,), (1399441043,), (1399441044,), (1399441066,), (1399441068,), (1399441070,), (1399441072,), (1399441090,), (1399441091,), (1399441092,), (1399441118,), (1399441122,), (1399441124,), (1399441146,), (1399441148,), (1399441150,), (1399441155,), (1399441159,), (1399441163,), (1399441177,), (1399441179,), (1399441181,), (1399441183,), (1399441186,), (1399441202,), (1399441205,), (1399441210,), (1399441214,), (1399441221,), (1399441227,), (1399441234,), (1399441237,), (1399441240,), (1399441242,), (1399441247,), (1399441249,), (1399441251,), (1399441274,), (1399441275,), (1399441278,), (1399441283,), (1399441288,), (1399441293,), (1399441297,), (1399441299,), (1399441300,), (1399441304,), (1399441306,), (1399441309,), (1399441312,), (1399441337,), (1399441339,), (1399441342,), (1399441344,), (1399441704,), (1399441572,), (1399441605,), (1399441637,), (1399441668,), (1399442096,), (1399442124,), (1399442171,), (1399442225,), (1399442286,), (1399442825,), (1399442858,), (1399442890,), (1399443000,), (1399443002,), (1399443004,), (1399443006,), (1399443375,), (1399443381,), (1399443389,), (1399443390,), (1399443415,), (1399443573,), (1399443579,), (1399443580,), (1399443596,), (1399443598,), (1399443599,), (1399443601,), (1399443621,), (1399443622,), (1399443623,), (1399443646,), (1399443670,), (1399443691,), (1399443696,), (1399443954,), (1399443969,), (1399444076,), (1399444074,), (1399444075,), (1399444295,), (1399444329,), (1399444335,), (1399444337,), (1399444355,), (1399444470,), (1399444473,), (1399444475,), (1399444477,), (1399444480,), (1399444497,), (1399444500,), (1399444503,), (1399444506,), (1399444510,), (1399444528,), (1399444541,), (1399444629,), (1399444649,), (1399444652,), (1399444654,), (1399444665,), (1399444667,), (1399444670,), (1399444841,), (1399444842,), (1399444843,), (1399444844,), (1399444858,), (1399444860,), (1399444862,), (1399444898,), (1399444899,), (1399444900,), (1399444914,), (1399444916,), (1399444919,), (1399444921,), (1399444924,), (1399444951,), (1399444953,), (1399444955,), (1399444957,), (1399444972,), (1399444973,), (1399444974,), (1399444975,), (1399444996,), (1399444999,), (1399445001,), (1399445003,), (1399445006,), (1399445031,), (1399445023,), (1399445024,), (1399445026,), (1399445028,), (1399445056,), (1399445058,), (1399445060,), (1399445076,), (1399445078,), (1399445079,), (1399445080,), (1399445102,), (1399445103,), (1399445104,), (1399445105,), (1399445108,), (1399445111,), (1399445122,), (1399445124,), (1399445126,), (1399445128,), (1399445131,), (1399445153,), (1399445154,), (1399445155,), (1399445182,), (1399445184,), (1399445186,), (1399445188,), (1399445228,), (1399445247,), (1399445251,), (1399445254,), (1399445264,), (1399445267,), (1399445320,), (1399445323,), (1399445327,), (1399445332,), (1399445336,), (1399445343,), (1399445370,), (1399445374,), (1399445375,), (1399445602,), (1399445628,), (1399445664,), (1399445697,), (1399445731,), (1399445739,), (1399445759,), (1399445760,), (1399445761,), (1399445762,), (1399445765,), (1399445788,), (1399445789,), (1399445790,), (1399445791,), (1399445794,), (1399445797,), (1399445844,), (1399445853,), (1399445855,), (1399446035,), (1399446038,), (1399446040,), (1399446065,), (1399446252,), (1399446229,), (1399446248,), (1399446250,), (1399446278,), (1399446289,), (1399446329,), (1399446356,), (1399446359,), (1399446363,), (1399446379,), (1399446381,), (1399446383,), (1399446385,), (1399446388,), (1399446406,), (1399446408,), (1399446410,), (1399446414,), (1399446418,), (1399446421,), (1399446644,), (1399446680,), (1399446713,), (1399446747,), (1399446776,), (1399446787,), (1399446790,), (1399446793,), (1399446797,), (1399446801,), (1399446827,), (1399446829,), (1399446831,), (1399446833,), (1399446836,), (1399446838,), (1399446876,), (1399446884,), (1399446885,), (1399446886,), (1399446944,), (1399446951,), (1399446953,), (1399446955,), (1399446975,), (1399446977,), (1399446979,), (1399446981,), (1399446984,), (1399446987,), (1399447007,), (1399447008,), (1399447009,), (1399447012,), (1399447015,), (1399447018,), (1399447035,), (1399447037,), (1399447039,), (1399447042,), (1399447048,), (1399447050,), (1399447064,), (1399447065,), (1399447067,), (1399447069,), (1399447070,), (1399447071,), (1399447078,), (1399447079,), (1399447081,), (1399447082,), (1399447085,), (1399447086,), (1399447089,), (1399447090,), (1399447093,), (1399447094,), (1399452528,), (1399452527,), (1399452545,), (1399452546,), (1399452548,), (1399452550,), (1399452695,), (1399452697,), (1399452699,), (1399452701,), (1399452704,), (1399452743,), (1399452746,), (1399452757,), (1399452766,), (1399452774,), (1399452778,), (1399452881,), (1399452945,), (1399453013,), (1399453110,), (1399453396,), (1399453429,), (1399453440,), (1399453783,), (1399453824,), (1399453772,), (1399453774,), (1399453777,), (1399453780,), (1399453798,), (1399453799,), (1399453800,), (1399453803,), (1399453806,), (1399453809,), (1399453817,), (1399453819,), (1399453821,), (1399453829,), (1399453831,), (1399453834,), (1399453836,), (1399453857,), (1399453859,), (1399453861,), (1399454199,), (1399454203,), (1399454208,), (1399454224,), (1399454226,), (1399454228,), (1399454232,), (1399454236,), (1399454259,), (1399454261,), (1399454263,), (1399454265,), (1399454268,), (1399454282,), (1399454284,), (1399454285,), (1399454287,), (1399454326,), (1399454328,), (1399454329,), (1399454330,), (1399454352,), (1399454353,), (1399454354,), (1399454355,), (1399454372,), (1399454374,), (1399454381,), (1399454458,), (1399454459,), (1399454460,), (1399454461,), (1399454464,), (1399454465,), (1399454561,), (1399454595,), (1399454633,), (1399454929,), (1399454934,), (1399454939,), (1399454943,), (1399455355,), (1399455327,), (1399455349,), (1399455352,), (1399455523,), (1399455547,), (1399455571,), (1399455604,), (1399455934,), (1399455937,), (1399455941,), (1399455945,), (1399455949,), (1399455954,), (1399455971,), (1399455972,), (1399456006,), (1399456040,), (1399456077,), (1399456114,), (1399456212,), (1399456214,), (1399456216,), (1399456270,), (1399456272,), (1399456273,), (1399456274,), (1399456442,), (1399456443,), (1399456444,), (1399456445,), (1399456447,), (1399456449,), (1399456481,), (1399456483,), (1399456485,), (1399456487,), (1399456490,), (1399456504,), (1399456505,), (1399456507,), (1399456514,), (1399456519,), (1399456522,), (1399456591,), (1399456613,), (1399456615,), (1399456617,), (1399456620,), (1399456858,), (1399456859,), (1399456860,), (1399457001,), (1399457003,), (1399457010,), (1399457012,), (1399457015,), (1399457018,), (1399457109,), (1399457110,), (1399457113,), (1399457203,), (1399457287,), (1399457378,), (1399457458,), (1399457462,), (1399457472,), (1399457496,), (1399457498,), (1399457499,), (1399457500,), (1399457502,), (1399457504,), (1399457543,), (1399457538,), (1399457541,), (1399457586,), (1399457587,), (1399457610,), (1399457650,), (1399457693,), (1399457728,), (1399458077,), (1399458100,), (1399458102,), (1399458104,), (1399458107,), (1399458194,), (1399458214,), (1399458262,), (1399458285,), (1399458316,), (1399458330,), (1399458339,), (1399458340,), (1399458343,), (1399458356,), (1399458366,), (1399458399,), (1399458430,), (1399458462,), (1399458495,), (1399458764,), (1399458807,), (1399458816,), (1399458822,), (1399459076,), (1399459077,), (1399459078,), (1399459079,), (1399459082,), (1399459085,), (1399459109,), (1399459110,), (1399459111,), (1399459112,), (1399459156,), (1399459157,), (1399459159,), (1399459192,), (1399459193,), (1399459194,), (1399459195,), (1399459215,), (1399459217,), (1399459219,), (1399459221,), (1399459223,), (1399459266,), (1399459267,), (1399459282,), (1399459284,), (1399459286,), (1399459288,), (1399459347,), (1399459357,), (1399459360,), (1399459362,), (1399459365,), (1399459368,), (1399459396,), (1399459387,), (1399459389,), (1399459391,), (1399459394,), (1399459412,), (1399459414,), (1399459416,), (1399459417,), (1399459435,), (1399459437,), (1399459439,), (1399459441,), (1399459444,), (1399459447,), (1399459467,), (1399459468,), (1399459469,), (1399459470,), (1399459472,), (1399459488,), (1399459535,), (1399459536,), (1399459537,), (1399459538,), (1399459540,), (1399459561,), (1399459563,), (1399459564,), (1399459566,), (1399459569,), (1399459572,), (1399459587,), (1399459589,), (1399459594,), (1399459597,), (1399459600,), (1399459603,), (1399459612,), (1399459613,), (1399459614,), (1399459615,), (1399459693,), (1399459725,), (1399459755,), (1399459769,), (1399459783,), (1399459789,), (1399459830,), (1399459832,), (1399459834,), (1399459838,), (1399459841,), (1399459845,), (1399459877,), (1399459879,), (1399459881,), (1399459883,), (1399459986,), (1399459992,), (1399460001,), (1399460002,), (1399460005,), (1399460008,), (1399460020,), (1399460022,), (1399460024,), (1399460026,), (1399460028,), (1399460031,), (1399460103,), (1399460104,), (1399460105,), (1399460213,), (1399460218,), (1399460239,), (1399460242,), (1399460251,), (1399460258,), (1399460277,), (1399460278,), (1399460280,), (1399460282,), (1399460285,), (1399460383,), (1399460736,), (1399460372,), (1399460374,), (1399460376,), (1399460378,), (1399460381,), (1399460396,), (1399460397,), (1399460398,), (1399460401,), (1399460404,), (1399460407,), (1399460455,), (1399460545,), (1399460636,), (1399460729,), (1399460733,), (1399460808,), (1399460810,), (1399460863,), (1399460867,), (1399460936,), (1399460937,), (1399460938,), (1399460973,), (1399460975,), (1399460977,), (1399460979,), (1399460982,), (1399460996,), (1399461001,), (1399461009,), (1399461012,), (1399461049,), (1399461050,), (1399461070,), (1399461072,), (1399461074,), (1399461076,), (1399461079,), (1399461098,), (1399461099,), (1399461100,), (1399461101,), (1399461102,), (1399461105,), (1399461123,), (1399461125,), (1399461127,), (1399461129,), (1399461132,), (1399461151,), (1399461152,), (1399461154,), (1399461170,), (1399461171,), (1399461172,), (1399461173,), (1399461176,), (1399461179,), (1399461193,), (1399461195,), (1399461197,), (1399461199,), (1399461202,), (1399461545,), (1399461579,), (1399461613,), (1399461646,), (1399461680,), (1399461831,), (1399461832,), (1399461838,), (1399461996,), (1399461851,), (1399461887,), (1399461919,), (1399461955,), (1399462595,), (1399462665,), (1399462725,), (1399462789,), (1399462858,), (1399463633,), (1399463696,), (1399463758,), (1399463831,), (1399464668,), (1399464867,), (1399464917,), (1399464933,), (1399464943,), (1399464976,), (1399465186,), (1399465246,), (1399465309,), (1399465368,), (1399465752,), (1399465765,), (1399465780,), (1399465788,), (1399465792,), (1399465812,), (1399465834,), (1399465837,), (1399465838,), (1399465841,), (1399465844,), (1399465847,), (1399465856,), (1399465857,), (1399465860,), (1399465864,), (1399466011,), (1399466074,), (1399466302,), (1399466304,), (1399466306,), (1399466307,), (1399466310,), (1399466341,), (1399466342,), (1399466343,), (1399466411,), (1399466444,), (1399466499,), (1399466551,), (1399466553,), (1399466571,), (1399466626,), (1399466738,), (1399466742,), (1399466744,), (1399466871,), (1399466890,), (1399466898,), (1399466900,), (1399466902,), (1399466967,), (1399466984,), (1399466986,), (1399466987,), (1399466990,), (1399467027,), (1399467089,), (1399467018,), (1399467020,), (1399467022,), (1399467024,), (1399467041,), (1399467043,), (1399467046,), (1399467053,), (1399467058,), (1399467059,), (1399467067,), (1399467070,), (1399467085,), (1399467096,), (1399467136,), (1399467176,), (1399467240,), (1399467304,), (1399467695,), (1399467758,), (1399467829,), (1399467916,), (1399468028,), (1399469020,), (1399469114,), (1399469209,), (1399470213,), (1399470289,), (1399470344,), (1399470363,), (1399470367,), (1399470370,), (1399470428,), (1399470476,), (1399470514,), (1399470552,), (1399470588,), (1399470654,), (1399471445,), (1399471506,), (1399471599,), (1399472193,), (1399472273,), (1399472331,), (1399472371,), (1399472408,), (1399472441,), (1399472772,), (1399472805,), (1399472837,), (1399472872,), (1399472905,), (1399472942,), (1399473257,), (1399473291,), (1399473332,), (1399473342,), (1399473422,), (1399473458,), (1399473491,), (1399473572,), (1399473661,), (1399473783,), (1399474092,), (1399474162,), (1399474246,), (1399474315,), (1399474403,), (1399474816,), (1399474844,), (1399474863,), (1399474899,), (1399474903,), (1399474913,), (1399474953,), (1399474987,), (1399475025,), (1399475437,), (1399475318,), (1399475353,), (1399475394,), (1399475412,), (1399475451,), (1399475452,), (1399475453,), (1399475454,), (1399475471,), (1399475472,), (1399475474,), (1399475476,), (1399475516,), (1399475622,), (1399476381,), (1399476434,), (1399476435,), (1399476436,), (1399476438,), (1399476743,), (1399476789,), (1399476820,), (1399477634,), (1399477689,), (1399477847,), (1399477931,), (1399477967,), (1399478002,), (1399478427,), (1399478459,), (1399478473,), (1399478476,), (1399478487,), (1399478537,), (1399478760,), (1399478821,), (1399478874,), (1399479006,), (1399479129,), (1399479568,), (1399479569,), (1399479678,), (1399479693,), (1399479795,), (1399479804,), (1399479901,), (1399479917,), (1399480352,), (1399480390,), (1399480426,), (1399480456,), (1399480491,), (1399480922,), (1399481062,), (1399481172,), (1399481294,), (1399481350,), (1399481613,), (1399481614,), (1399481615,), (1399481616,), (1399481650,), (1399481651,), (1399481652,), (1399481653,), (1399481655,), (1399482532,), (1399482548,), (1399482551,), (1399482553,), (1399482555,), (1399482575,), (1399482580,), (1399482585,), (1399482644,), (1399482741,), (1399482828,), (1399482970,), (1399483008,), (1399483076,), (1399483287,), (1399483322,), (1399483360,), (1399483399,), (1399483435,), (1399483848,), (1399483736,), (1399483773,), (1399483809,), (1399483989,), (1399483991,), (1399483993,), (1399484089,), (1399484131,), (1399484173,), (1399484222,), (1399484256,), (1399484655,), (1399484695,), (1399484729,), (1399484791,), (1399484827,), (1399485331,), (1399485369,), (1399485401,), (1399485435,), (1399485468,), (1399486466,), (1399486611,), (1399486764,), (1399486917,), (1399487035,), (1399487810,), (1399487857,), (1399487892,), (1399487915,), (1399487917,), (1399487919,), (1399487941,), (1399487943,), (1399487971,), (1399488024,), (1399488091,), (1399489224,), (1399489352,), (1399489500,), (1399490144,), (1399490146,), (1399490148,), (1399490285,), (1399490379,), (1399490406,), (1399490439,), (1399490441,), (1399490443,), (1399490445,), (1399490448,), (1399490450,), (1399490459,), (1399490461,), (1399490463,), (1399490466,), (1399490469,), (1399490473,), (1399490481,), (1399490482,), (1399490484,), (1399490488,), (1399490543,), (1399490579,), (1399491791,), (1399491826,), (1399491861,), (1399491896,), (1399491931,), (1399492282,), (1399492370,), (1399492439,), (1399492527,), (1399492659,), (1399492648,), (1399492656,), (1399492736,), (1399492739,), (1399492746,), (1399492756,), (1399492764,), (1399492768,), (1399492772,), (1399492776,), (1399492784,), (1399492846,), (1399492882,), (1399492923,), (1399492956,), (1399492992,), (1399493324,), (1399493327,), (1399493329,), (1399493555,), (1399493573,), (1399493577,), (1399493590,), (1399493593,), (1399494769,), (1399494820,), (1399494852,), (1399495589,), (1399495618,), (1399496411,), (1399496432,), (1399496435,), (1399506887,), (1399506886,), (1399507057,), (1399507322,), (1399507486,), (1399507524,), (1399507526,), (1399507527,), (1399507528,), (1399507544,), (1399507545,), (1399507547,), (1399507549,), (1399507552,), (1399507555,), (1399507569,), (1399507570,), (1399507571,), (1399507572,), (1399507593,), (1399507594,), (1399507595,), (1399507596,), (1399507599,), (1399507602,), (1399507614,), (1399507616,), (1399507618,), (1399507620,), (1399507622,), (1399507640,), (1399507642,), (1399507644,), (1399507646,), (1399507667,), (1399507687,), (1399507720,), (1399507755,), (1399507788,), (1399507815,), (1399507817,), (1399507821,), (1399507856,), (1399507896,), (1399508332,), (1399508337,), (1399508342,), (1399508345,), (1399508348,), (1399508354,), (1399508355,), (1399508359,), (1399508362,), (1399508666,), (1399508495,), (1399508530,), (1399508563,), (1399508596,), (1399508631,), (1399508968,), (1399509057,), (1399509352,), (1399509354,), (1399509356,), (1399509358,), (1399509361,), (1399509457,), (1399509488,), (1399509518,), (1399509551,), (1399509586,), (1399509620,), (1399509963,), (1399509983,), (1399509985,), (1399510100,), (1399510134,), (1399510164,), (1399510195,), (1399510227,), (1399510366,), (1399510367,), (1399510369,), (1399510372,), (1399510375,), (1399510377,), (1399510388,), (1399510397,), (1399510401,), (1399510405,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'15122025': {'nb_upload': 36, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29433153]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399510405, 1399510401, 1399510397, 1399510388, 1399510377, 1399510375, 1399510372, 1399510369, 1399510367, 1399510366] map_info['map_portfolio_photo'] : {29433153: [1399510405, 1399510401, 1399510397, 1399510388, 1399510377, 1399510375, 1399510372, 1399510369, 1399510367, 1399510366, 1399510227, 1399510195, 1399510164, 1399510134, 1399510100, 1399509985, 1399509983, 1399509963, 1399509620, 1399509586, 1399509551, 1399509518, 1399509488, 1399509457, 1399509361, 1399509358, 1399509356, 1399509354, 1399509352, 1399509057, 1399508968, 1399508631, 1399508596, 1399508563, 1399508530, 1399508495]} final : True mtd_id 4302 list_pids : [1399510405, 1399510401, 1399510397, 1399510388, 1399510377, 1399510375, 1399510372, 1399510369, 1399510367, 1399510366] Looping around the photos to save general results len do output : 1 /29433153Didn'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, '4223435') ('4302', '29433153', '1399510405', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510401', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510397', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510388', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510377', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510375', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510372', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510369', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510367', None, None, None, None, None, '4223435') ('4302', None, None, None, None, None, None, None, '4223435') ('4302', '29433153', '1399510366', None, None, None, None, None, '4223435') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '29433153', 'None', None, None, None, None, '4223435'), ('4302', '29433153', '1399510405', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510401', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510397', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510388', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510377', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510375', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510372', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510369', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510367', None, None, None, None, None, '4223435'), ('4302', '29433153', '1399510366', None, None, None, None, None, '4223435')] time used for this insertion : 0.018398046493530273 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.355036735534668 time spend to save output : 0.018671751022338867 total time spend for step 5 : 2.373708486557007 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 (4223435) 2.07user 2.46system 0:08.00elapsed 56%CPU (0avgtext+0avgdata 166780maxresident)k 1584inputs+8808outputs (37major+67341minor)pagefaults 0swaps