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 : 1287011 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 (2691589) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2691589) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21692496 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2691589'] with mtr_portfolio_ids : ['21692496'] and first list_photo_ids : [] new path : /proc/1287011/ Name: python3 Umask: 0002 State: R (running) Tgid: 1287011 Ngid: 0 Pid: 1287011 PPid: 1287008 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1287011 NSpid: 1287011 NSpgid: 1285983 NSsid: 1285983 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97792 kB VmRSS: 97792 kB RssAnon: 59756 kB RssFile: 38036 kB RssShmem: 0 kB VmData: 865588 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 556 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 46 nonvoluntary_ctxt_switches: 97 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1287011', 'Ngid': '0', 'Pid': '1287011', 'PPid': '1287008', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1287011', 'NSpid': '1287011', 'NSpgid': '1285983', 'NSsid': '1285983', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97792 kB', 'VmRSS': '97792 kB', 'RssAnon': '59756 kB', 'RssFile': '38036 kB', 'RssShmem': '0 kB', 'VmData': '865588 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '556 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '46', 'nonvoluntary_ctxt_switches': '97'} ('datou_batch_current', '1287011', '1106840', '0', '1106840', '865588', '97792', b'', 'marlene', '2691589') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (21692496) 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 (2691589 ) ) 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 (21692496) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1347203467, 'portfolio_id': 21692496}, {'photo_id': 1347202832, 'portfolio_id': 21692496}, {'photo_id': 1347202657, 'portfolio_id': 21692496}, {'photo_id': 1347202652, 'portfolio_id': 21692496}, {'photo_id': 1347202586, 'portfolio_id': 21692496}, {'photo_id': 1347202562, 'portfolio_id': 21692496}, {'photo_id': 1347202188, 'portfolio_id': 21692496}, {'photo_id': 1347202157, 'portfolio_id': 21692496}, {'photo_id': 1347201616, 'portfolio_id': 21692496}, {'photo_id': 1347201585, 'portfolio_id': 21692496}, {'photo_id': 1347201400, 'portfolio_id': 21692496}, {'photo_id': 1347201396, 'portfolio_id': 21692496}, {'photo_id': 1347201393, 'portfolio_id': 21692496}, {'photo_id': 1347201389, 'portfolio_id': 21692496}, {'photo_id': 1347201275, 'portfolio_id': 21692496}, {'photo_id': 1347201240, 'portfolio_id': 21692496}, {'photo_id': 1347201204, 'portfolio_id': 21692496}, {'photo_id': 1347201169, 'portfolio_id': 21692496}] map_portfolio_id_photo_id: {21692496: [1347203467, 1347202832, 1347202657, 1347202652, 1347202586, 1347202562, 1347202188, 1347202157, 1347201616, 1347201585, 1347201400, 1347201396, 1347201393, 1347201389, 1347201275, 1347201240, 1347201204, 1347201169]} ##### 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.021700620651245117 #### 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 Wed Mar 26 05:43:28 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 (21692496) 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 : 21692496 get user id for portfolio 21692496 get sub ptf for main ptf 21692496, type 3726 and hashtags ['autre_refus', 'plastique', 'metal', 'Carton_brun', 'environnement', 'papier', 'mal_croppe', 'Carton_gris', 'cartonnette', 'flou', 'Teint_Dans_La_Masse', 'kraft'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21692496 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','metal','Carton_brun','environnement','papier','mal_croppe','Carton_gris','cartonnette','flou','Teint_Dans_La_Masse','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21692496 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','metal','Carton_brun','environnement','papier','mal_croppe','Carton_gris','cartonnette','flou','Teint_Dans_La_Masse','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 21692496, 'sub_port_id': 21692497, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223369, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 56)}, 'papier': {'main_port_id': 21692496, 'sub_port_id': 21692498, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223370, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 56)}, 'Carton_brun': {'main_port_id': 21692496, 'sub_port_id': 21692499, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223371, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 21692496, 'sub_port_id': 21692500, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223372, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 56)}, 'flou': {'main_port_id': 21692496, 'sub_port_id': 21692501, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223373, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 56)}, 'metal': {'main_port_id': 21692496, 'sub_port_id': 21692502, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223374, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 56)}, 'mal_croppe': {'main_port_id': 21692496, 'sub_port_id': 21692503, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223375, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 56)}, 'environnement': {'main_port_id': 21692496, 'sub_port_id': 21692504, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223376, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 56)}, 'cartonnette': {'main_port_id': 21692496, 'sub_port_id': 21692505, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223377, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 56)}, 'autre_refus': {'main_port_id': 21692496, 'sub_port_id': 21692506, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223378, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 56)}, 'Carton_gris': {'main_port_id': 21692496, 'sub_port_id': 21692507, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223379, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 56)}, 'kraft': {'main_port_id': 21692496, 'sub_port_id': 21692508, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223380, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 17, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21692497 , 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=21692496 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 (21692497) result : ((1347202380,), (1347202646,), (1347202648,), (1347202767,), (1347202920,), (1347203084,), (1347203085,), (1347203086,), (1347203191,), (1347207496,), (1347207497,), (1347207498,), (1347207499,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21692496) result : ((1347201169,), (1347201204,), (1347201240,), (1347201275,), (1347201389,), (1347201393,), (1347201396,), (1347201400,), (1347201585,), (1347201616,), (1347202157,), (1347202188,), (1347202562,), (1347202586,), (1347202652,), (1347202657,), (1347202832,), (1347203467,)) 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 (1347201400) 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 21692498 , 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=21692496 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 (21692498) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21692496) result : ((1347201169,), (1347201204,), (1347201240,), (1347201275,), (1347201389,), (1347201393,), (1347201396,), (1347201400,), (1347201585,), (1347201616,), (1347202157,), (1347202188,), (1347202562,), (1347202586,), (1347202652,), (1347202657,), (1347202832,), (1347203467,)) 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 (1347201400) 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 21692499 , 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=21692496 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 (21692499) result : ((1347202643,), (1347202644,), (1347202645,), (1347202762,), (1347202763,), (1347202764,), (1347202765,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21692496) result : ((1347201169,), (1347201204,), (1347201240,), (1347201275,), (1347201389,), (1347201393,), (1347201396,), (1347201400,), (1347201585,), (1347201616,), (1347202157,), (1347202188,), (1347202562,), (1347202586,), (1347202652,), (1347202657,), (1347202832,), (1347203467,)) 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 (1347201400) 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 21692500 , 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=21692496 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 (21692500) result : ((1347202021,), (1347202022,), (1347202023,), (1347202024,), (1347202308,), (1347202311,), (1347202639,), (1347202640,), (1347202758,), (1347202759,), (1347202918,), (1347202919,), (1347203079,), (1347203080,), (1347203081,), (1347203188,), (1347203189,), (1347207481,), (1347207482,), (1347207483,), (1347207484,), (1347207485,), (1347207486,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21692496) result : ((1347201169,), (1347201204,), (1347201240,), (1347201275,), (1347201389,), (1347201393,), (1347201396,), (1347201400,), (1347201585,), (1347201616,), (1347202157,), (1347202188,), (1347202562,), (1347202586,), (1347202652,), (1347202657,), (1347202832,), (1347203467,)) 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 (1347201400) 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 21692501 , 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=21692496 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 (21692501) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21692496) result : ((1347201169,), (1347201204,), (1347201240,), (1347201275,), (1347201389,), (1347201393,), (1347201396,), (1347201400,), (1347201585,), (1347201616,), (1347202157,), (1347202188,), (1347202562,), (1347202586,), (1347202652,), (1347202657,), (1347202832,), (1347203467,)) 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 (1347201400) 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 21692502 , 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=21692496 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 (21692502) result : ((1347202769,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21692496) result : ((1347201169,), (1347201204,), (1347201240,), (1347201275,), (1347201389,), (1347201393,), (1347201396,), (1347201400,), (1347201585,), (1347201616,), (1347202157,), (1347202188,), (1347202562,), (1347202586,), (1347202652,), (1347202657,), (1347202832,), (1347203467,)) 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 (1347201400) 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 21692503 , 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=21692496 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 (21692503) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21692496) result : ((1347201169,), (1347201204,), (1347201240,), (1347201275,), (1347201389,), (1347201393,), (1347201396,), (1347201400,), (1347201585,), (1347201616,), (1347202157,), (1347202188,), (1347202562,), (1347202586,), (1347202652,), (1347202657,), (1347202832,), (1347203467,)) 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 (1347201400) 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 21692504 , 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=21692496 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 (21692504) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21692496) result : ((1347201169,), (1347201204,), (1347201240,), (1347201275,), (1347201389,), (1347201393,), (1347201396,), (1347201400,), (1347201585,), (1347201616,), (1347202157,), (1347202188,), (1347202562,), (1347202586,), (1347202652,), (1347202657,), (1347202832,), (1347203467,)) 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 (1347201400) 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 21692505 , 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=21692496 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 (21692505) result : ((1347202080,), (1347202081,), (1347202355,), (1347207493,), (1347207494,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21692496) result : ((1347201169,), (1347201204,), (1347201240,), (1347201275,), (1347201389,), (1347201393,), (1347201396,), (1347201400,), (1347201585,), (1347201616,), (1347202157,), (1347202188,), (1347202562,), (1347202586,), (1347202652,), (1347202657,), (1347202832,), (1347203467,)) 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 (1347201400) 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 21692506 , 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=21692496 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 (21692506) result : ((1347202047,), (1347202048,), (1347202331,), (1347202332,), (1347207488,), (1347207489,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21692496) result : ((1347201169,), (1347201204,), (1347201240,), (1347201275,), (1347201389,), (1347201393,), (1347201396,), (1347201400,), (1347201585,), (1347201616,), (1347202157,), (1347202188,), (1347202562,), (1347202586,), (1347202652,), (1347202657,), (1347202832,), (1347203467,)) 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 (1347201400) 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 21692507 , 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=21692496 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 (21692507) result : ((1347202061,), (1347207491,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21692496) result : ((1347201169,), (1347201204,), (1347201240,), (1347201275,), (1347201389,), (1347201393,), (1347201396,), (1347201400,), (1347201585,), (1347201616,), (1347202157,), (1347202188,), (1347202562,), (1347202586,), (1347202652,), (1347202657,), (1347202832,), (1347203467,)) 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 (1347201400) 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 21692508 , 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=21692496 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 (21692508) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21692496) result : ((1347201169,), (1347201204,), (1347201240,), (1347201275,), (1347201389,), (1347201393,), (1347201396,), (1347201400,), (1347201585,), (1347201616,), (1347202157,), (1347202188,), (1347202562,), (1347202586,), (1347202652,), (1347202657,), (1347202832,), (1347203467,)) 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 (1347201400) 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`=21692496 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','metal','Carton_brun','environnement','papier','mal_croppe','Carton_gris','cartonnette','flou','Teint_Dans_La_Masse','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21692496 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','metal','Carton_brun','environnement','papier','mal_croppe','Carton_gris','cartonnette','flou','Teint_Dans_La_Masse','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 21692496, 'sub_port_id': 21692509, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223381, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 57)}, 'papier': {'main_port_id': 21692496, 'sub_port_id': 21692510, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223382, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 57)}, 'Carton_brun': {'main_port_id': 21692496, 'sub_port_id': 21692511, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223383, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21692496, 'sub_port_id': 21692512, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223384, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 57)}, 'flou': {'main_port_id': 21692496, 'sub_port_id': 21692513, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223385, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 57)}, 'metal': {'main_port_id': 21692496, 'sub_port_id': 21692514, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223386, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 57)}, 'mal_croppe': {'main_port_id': 21692496, 'sub_port_id': 21692515, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223387, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 57)}, 'environnement': {'main_port_id': 21692496, 'sub_port_id': 21692516, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223388, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 57)}, 'cartonnette': {'main_port_id': 21692496, 'sub_port_id': 21692517, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223389, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 57)}, 'autre_refus': {'main_port_id': 21692496, 'sub_port_id': 21692518, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223390, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 57)}, 'Carton_gris': {'main_port_id': 21692496, 'sub_port_id': 21692519, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223391, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 57)}, 'kraft': {'main_port_id': 21692496, 'sub_port_id': 21692520, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14223392, 'last_updated_at': datetime.datetime(2025, 3, 25, 14, 17, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 14, 17, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 14, 6, 57)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21692509,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21692497 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21692510,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21692498 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21692511,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21692499 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21692512,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21692500 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21692513,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21692501 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21692514,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21692502 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21692515,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21692503 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21692516,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21692504 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21692517,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21692505 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21692518,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21692506 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21692519,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21692507 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21692520,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21692508 lien utilise dans velours : https://www.fotonower.com/velours/21692509,21692510,21692511,21692512,21692513,21692514,21692515,21692516,21692517,21692518,21692519,21692520?tags=plastique,papier,Carton_brun,Teint_Dans_La_Masse,flou,metal,mal_croppe,environnement,cartonnette,autre_refus,Carton_gris,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21692496]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347203467, 1347202832, 1347202657, 1347202652, 1347202586, 1347202562, 1347202188, 1347202157, 1347201616, 1347201585, 1347201400, 1347201396, 1347201393, 1347201389, 1347201275, 1347201240, 1347201204, 1347201169] map_info['map_portfolio_photo'] : {21692496: [1347203467, 1347202832, 1347202657, 1347202652, 1347202586, 1347202562, 1347202188, 1347202157, 1347201616, 1347201585, 1347201400, 1347201396, 1347201393, 1347201389, 1347201275, 1347201240, 1347201204, 1347201169]} final : False mtd_id 4302 list_pids : [1347203467, 1347202832, 1347202657, 1347202652, 1347202586, 1347202562, 1347202188, 1347202157, 1347201616, 1347201585, 1347201400, 1347201396, 1347201393, 1347201389, 1347201275, 1347201240, 1347201204, 1347201169] Looping around the photos to save general results len do output : 1 /21692496. 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, '2691589') ('4302', '21692496', '1347203467', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202832', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202657', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202652', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202586', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202562', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202188', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202157', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201616', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201585', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201400', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201396', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201393', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201389', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201275', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201240', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201204', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201169', None, None, None, None, None, '2691589') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '21692496', "{'plastique': 21692497, 'papier': 21692498, 'Carton_brun': 21692499, 'Teint_Dans_La_Masse': 21692500, 'flou': 21692501, 'metal': 21692502, 'mal_croppe': 21692503, 'environnement': 21692504, 'cartonnette': 21692505, 'autre_refus': 21692506, 'Carton_gris': 21692507, 'kraft': 21692508}", None, None, None, None, '2691589'), ('4302', '21692496', '1347203467', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202832', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202657', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202652', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202586', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202562', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202188', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202157', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201616', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201585', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201400', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201396', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201393', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201389', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201275', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201240', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201204', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201169', None, None, None, None, None, '2691589')] time used for this insertion : 0.018883228302001953 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.738452672958374 time spend to save output : 0.019276857376098633 total time spend for step 1 : 0.7577295303344727 step2:final Wed Mar 26 05:43:28 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 (21692496) 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 21692496 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347201275,1347201240,1347201204,1347201169,1347201400,1347201396,1347201393,1347201389,1347201616,1347201585,1347202188,1347202157,1347202586,1347202562,1347202657,1347202652,1347202832,1347203467); 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([21692496]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} new output for save of step final : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} [1347203467, 1347202832, 1347202657, 1347202652, 1347202586, 1347202562, 1347202188, 1347202157, 1347201616, 1347201585, 1347201400, 1347201396, 1347201393, 1347201389, 1347201275, 1347201240, 1347201204, 1347201169] map_info['map_portfolio_photo'] : {21692496: [1347203467, 1347202832, 1347202657, 1347202652, 1347202586, 1347202562, 1347202188, 1347202157, 1347201616, 1347201585, 1347201400, 1347201396, 1347201393, 1347201389, 1347201275, 1347201240, 1347201204, 1347201169]} final : False mtd_id 4302 list_pids : [1347203467, 1347202832, 1347202657, 1347202652, 1347202586, 1347202562, 1347202188, 1347202157, 1347201616, 1347201585, 1347201400, 1347201396, 1347201393, 1347201389, 1347201275, 1347201240, 1347201204, 1347201169] Looping around the photos to save general results len do output : 18 /1347203467.Didn't retrieve data . /1347202832.Didn't retrieve data . /1347202657.Didn't retrieve data . /1347202652.Didn't retrieve data . /1347202586.Didn't retrieve data . /1347202562.Didn't retrieve data . /1347202188.Didn't retrieve data . /1347202157.Didn't retrieve data . /1347201616.Didn't retrieve data . /1347201585.Didn't retrieve data . /1347201400.Didn't retrieve data . /1347201396.Didn't retrieve data . /1347201393.Didn't retrieve data . /1347201389.Didn't retrieve data . /1347201275.Didn't retrieve data . /1347201240.Didn't retrieve data . /1347201204.Didn't retrieve data . /1347201169.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, '2691589') ('4302', '21692496', '1347203467', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202832', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202657', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202652', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202586', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202562', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202188', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202157', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201616', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201585', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201400', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201396', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201393', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201389', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201275', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201240', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201204', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201169', None, None, None, None, None, '2691589') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 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', '21692496', '1347203467', '0.10334752239330441', None, None, None, None, '2691589'), ('4302', '21692496', '1347202832', '0.10334752239330441', None, None, None, None, '2691589'), ('4302', '21692496', '1347202657', '0.10334752239330441', None, None, None, None, '2691589'), ('4302', '21692496', '1347202652', '0.10334752239330441', None, None, None, None, '2691589'), ('4302', '21692496', '1347202586', '0.10334752239330441', None, None, None, None, '2691589'), ('4302', '21692496', '1347202562', '0.10334752239330441', None, None, None, None, '2691589'), ('4302', '21692496', '1347202188', '0.10334752239330441', None, None, None, None, '2691589'), ('4302', '21692496', '1347202157', '0.10334752239330441', None, None, None, None, '2691589'), ('4302', '21692496', '1347201616', '0.10334752239330441', None, None, None, None, '2691589'), ('4302', '21692496', '1347201585', '0.10334752239330441', None, None, None, None, '2691589'), ('4302', '21692496', '1347201400', '0.10334752239330441', None, None, None, None, '2691589'), ('4302', '21692496', '1347201396', '0.10334752239330441', None, None, None, None, '2691589'), ('4302', '21692496', '1347201393', '0.10334752239330441', None, None, None, None, '2691589'), ('4302', '21692496', '1347201389', '0.10334752239330441', None, None, None, None, '2691589'), ('4302', '21692496', '1347201275', '0.10334752239330441', None, None, None, None, '2691589'), ('4302', '21692496', '1347201240', '0.10334752239330441', None, None, None, None, '2691589'), ('4302', '21692496', '1347201204', '0.10334752239330441', None, None, None, None, '2691589'), ('4302', '21692496', '1347201169', '0.10334752239330441', None, None, None, None, '2691589')] time used for this insertion : 0.017337322235107422 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0666816234588623 time spend to save output : 0.017925024032592773 total time spend for step 2 : 0.08460664749145508 step3:velours_tree Wed Mar 26 05:43:28 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 : {21692496: [{'plastique': 21692497, 'papier': 21692498, 'Carton_brun': 21692499, 'Teint_Dans_La_Masse': 21692500, 'flou': 21692501, 'metal': 21692502, 'mal_croppe': 21692503, 'environnement': 21692504, 'cartonnette': 21692505, 'autre_refus': 21692506, 'Carton_gris': 21692507, 'kraft': 21692508}]} input_args_next_step : {21692496: ()} output_args : {21692496: [{'plastique': 21692497, 'papier': 21692498, 'Carton_brun': 21692499, 'Teint_Dans_La_Masse': 21692500, 'flou': 21692501, 'metal': 21692502, 'mal_croppe': 21692503, 'environnement': 21692504, 'cartonnette': 21692505, 'autre_refus': 21692506, 'Carton_gris': 21692507, 'kraft': 21692508}]} args : 21692496 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 : ({'plastique': 21692497, 'papier': 21692498, 'Carton_brun': 21692499, 'Teint_Dans_La_Masse': 21692500, 'flou': 21692501, 'metal': 21692502, 'mal_croppe': 21692503, 'environnement': 21692504, 'cartonnette': 21692505, 'autre_refus': 21692506, 'Carton_gris': 21692507, 'kraft': 21692508},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21692496) 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([21692496]) 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.29480957984924316 time spend to save output : 5.2928924560546875e-05 total time spend for step 3 : 0.2948625087738037 step4:send_mail_cod Wed Mar 26 05:43:29 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 : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} input_args_next_step : {1347203467: ()} output_args : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} args : 1347203467 depend.output_id : 0 input_args_next_step : {1347203467: ('0.10334752239330441',), 1347202832: ()} output_args : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} args : 1347202832 depend.output_id : 0 input_args_next_step : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ()} output_args : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} args : 1347202657 depend.output_id : 0 input_args_next_step : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ()} output_args : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} args : 1347202652 depend.output_id : 0 input_args_next_step : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ()} output_args : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} args : 1347202586 depend.output_id : 0 input_args_next_step : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ()} output_args : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} args : 1347202562 depend.output_id : 0 input_args_next_step : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ()} output_args : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} args : 1347202188 depend.output_id : 0 input_args_next_step : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ()} output_args : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} args : 1347202157 depend.output_id : 0 input_args_next_step : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ()} output_args : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} args : 1347201616 depend.output_id : 0 input_args_next_step : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ()} output_args : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} args : 1347201585 depend.output_id : 0 input_args_next_step : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ()} output_args : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} args : 1347201400 depend.output_id : 0 input_args_next_step : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ()} output_args : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} args : 1347201396 depend.output_id : 0 input_args_next_step : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ()} output_args : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} args : 1347201393 depend.output_id : 0 input_args_next_step : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ()} output_args : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} args : 1347201389 depend.output_id : 0 input_args_next_step : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ()} output_args : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} args : 1347201275 depend.output_id : 0 input_args_next_step : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ()} output_args : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} args : 1347201240 depend.output_id : 0 input_args_next_step : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ()} output_args : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} args : 1347201204 depend.output_id : 0 input_args_next_step : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ()} output_args : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',)} args : 1347201169 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 : {21692496: [{'plastique': 21692497, 'papier': 21692498, 'Carton_brun': 21692499, 'Teint_Dans_La_Masse': 21692500, 'flou': 21692501, 'metal': 21692502, 'mal_croppe': 21692503, 'environnement': 21692504, 'cartonnette': 21692505, 'autre_refus': 21692506, 'Carton_gris': 21692507, 'kraft': 21692508}]} input_args_next_step : {1347203467: ('0.10334752239330441',), 1347202832: ('0.10334752239330441',), 1347202657: ('0.10334752239330441',), 1347202652: ('0.10334752239330441',), 1347202586: ('0.10334752239330441',), 1347202562: ('0.10334752239330441',), 1347202188: ('0.10334752239330441',), 1347202157: ('0.10334752239330441',), 1347201616: ('0.10334752239330441',), 1347201585: ('0.10334752239330441',), 1347201400: ('0.10334752239330441',), 1347201396: ('0.10334752239330441',), 1347201393: ('0.10334752239330441',), 1347201389: ('0.10334752239330441',), 1347201275: ('0.10334752239330441',), 1347201240: ('0.10334752239330441',), 1347201204: ('0.10334752239330441',), 1347201169: ('0.10334752239330441',), 21692496: ()} output_args : {21692496: [{'plastique': 21692497, 'papier': 21692498, 'Carton_brun': 21692499, 'Teint_Dans_La_Masse': 21692500, 'flou': 21692501, 'metal': 21692502, 'mal_croppe': 21692503, 'environnement': 21692504, 'cartonnette': 21692505, 'autre_refus': 21692506, 'Carton_gris': 21692507, 'kraft': 21692508}]} args : 21692496 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 :19, first value : ('0.10334752239330441',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21692496) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1347203467,1347202832,1347202657,1347202652,1347202586,1347202562,1347202188,1347202157,1347201616,1347201585,1347201400,1347201396,1347201393,1347201389,1347201275,1347201240,1347201204,1347201169) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347201169 begin to download photo : 1347201389 begin to download photo : 1347201585 begin to download photo : 1347202562 begin to download photo : 1347202832 download finish for photo 1347202562 begin to download photo : 1347202586 download finish for photo 1347202832 begin to download photo : 1347203467 download finish for photo 1347201585 begin to download photo : 1347201616 download finish for photo 1347201169 begin to download photo : 1347201204 download finish for photo 1347201389 begin to download photo : 1347201393 download finish for photo 1347202586 begin to download photo : 1347202652 download finish for photo 1347203467 download finish for photo 1347201204 begin to download photo : 1347201240 download finish for photo 1347201616 begin to download photo : 1347202157 download finish for photo 1347201393 begin to download photo : 1347201396 download finish for photo 1347202652 begin to download photo : 1347202657 download finish for photo 1347201240 begin to download photo : 1347201275 download finish for photo 1347201275 download finish for photo 1347202657 download finish for photo 1347201396 begin to download photo : 1347201400 download finish for photo 1347202157 begin to download photo : 1347202188 download finish for photo 1347202188 download finish for photo 1347201400 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P21692496_26-03-2025_05_43_29.pdf 21692497 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21692497 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347202380: '1742907975_553056_1347201204_c8cb29d688c6d6c23a11207ffd79d300_rle_crop_3729207962_0.png', 1347202646: '1742908053_554086_1347201585_c87713ab4f7aafb60b011cd732974dea_rle_crop_3729208842_0.png', 1347202648: '1742908053_554086_1347201585_c87713ab4f7aafb60b011cd732974dea_rle_crop_3729208843_0.png', 1347202767: '1742908225_3552180_1347202586_02afee693a4ee76c99724f43bb98eeff_rle_crop_3729209945_0.png', 1347202920: '1742908252_561997_1347202657_59a22f169657aa58714f60cfed2be9f0_rle_crop_3729210231_0.png', 1347203084: '1742908363_2302757_1347202832_2eaad15d2c9bfade6881a42335713a23_bib_crop_3729210529_0.jpg', 1347203085: '1742908363_2302757_1347202832_2eaad15d2c9bfade6881a42335713a23_rle_crop_3729210641_0.png', 1347203086: '1742908363_2302757_1347202652_e3dacb3ee01f0866fa9b41068af1f98d_rle_crop_3729210539_0.png', 1347203191: '1742908393_567740_1347202657_59a22f169657aa58714f60cfed2be9f0_rle_crop_3729210231_0.png', 1347207496: '1742910334_593416_1347201616_f45d3cdd6ff83c44686f3f61b1df6993_rle_crop_3729231429_0.png', 1347207497: '1742910334_593416_1347201616_f45d3cdd6ff83c44686f3f61b1df6993_rle_crop_3729231423_0.png', 1347207498: '1742910334_593416_1347201616_f45d3cdd6ff83c44686f3f61b1df6993_rle_crop_3729231424_0.png', 1347207499: '1742910334_593416_1347201616_f45d3cdd6ff83c44686f3f61b1df6993_rle_crop_3729231427_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/7d03f9b4da9209743cc7b96580a4496f_75471840.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/d983521aad8b48f715dae3f9a6930c30_94255423.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/33c2a686aa7d293dfe3b0851f82cbf44_204940.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/6850c3656680c72ca3e4d38e96f5259b_15505740.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/d24c7ddd382982040e9efff10a147775_12287448.png change filename to text .wget -O 6.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/9b6e62803f6b4392524a160ff4d7ea6e_93271074.jpg change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/27b9919b8dc858e22375ff64f0d507ca_68268783.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/0e5e80f326fd7d7580b092d0be7b3433_28833641.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/d24c7ddd382982040e9efff10a147775_68602905.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/0353f490724d5c4fa05d94ebd16122dc_43073052.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/76916f674fa4be7d50e43ca77ed3a590_75623756.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/b8c21ada6054bf40b5e4549514b76d52_84115732.png change filename to text .imagette216924971742964209/ imagette216924971742964209/1742908393_567740_1347202657_59a22f169657aa58714f60cfed2be9f0_rle_crop_3729210231_0.png.png imagette216924971742964209/1742908363_2302757_1347202832_2eaad15d2c9bfade6881a42335713a23_bib_crop_3729210529_0.jpg.jpg imagette216924971742964209/1742910334_593416_1347201616_f45d3cdd6ff83c44686f3f61b1df6993_rle_crop_3729231429_0.png.png imagette216924971742964209/1742908053_554086_1347201585_c87713ab4f7aafb60b011cd732974dea_rle_crop_3729208842_0.png.png imagette216924971742964209/1742908363_2302757_1347202652_e3dacb3ee01f0866fa9b41068af1f98d_rle_crop_3729210539_0.png.png imagette216924971742964209/1742910334_593416_1347201616_f45d3cdd6ff83c44686f3f61b1df6993_rle_crop_3729231427_0.png.png imagette216924971742964209/1742907975_553056_1347201204_c8cb29d688c6d6c23a11207ffd79d300_rle_crop_3729207962_0.png.png imagette216924971742964209/1742910334_593416_1347201616_f45d3cdd6ff83c44686f3f61b1df6993_rle_crop_3729231423_0.png.png imagette216924971742964209/1742908225_3552180_1347202586_02afee693a4ee76c99724f43bb98eeff_rle_crop_3729209945_0.png.png imagette216924971742964209/1742908252_561997_1347202657_59a22f169657aa58714f60cfed2be9f0_rle_crop_3729210231_0.png.png imagette216924971742964209/1742908363_2302757_1347202832_2eaad15d2c9bfade6881a42335713a23_rle_crop_3729210641_0.png.png imagette216924971742964209/1742910334_593416_1347201616_f45d3cdd6ff83c44686f3f61b1df6993_rle_crop_3729231424_0.png.png imagette216924971742964209/1742908053_554086_1347201585_c87713ab4f7aafb60b011cd732974dea_rle_crop_3729208843_0.png.png imagette216925011742964211/ wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/53aeb19f803271fc1ee5a945c773e007_6746174.png imagette216924971742964209 21692501 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21692501 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216925011742964211 21692502 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21692502 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347202769: '1742908225_3552180_1347202157_db899cb24417ecf2418fcaf0444595ef_rle_crop_3729209959_0.png'} change filename to text .imagette216925021742964211/ imagette216925021742964211/1742908225_3552180_1347202157_db899cb24417ecf2418fcaf0444595ef_rle_crop_3729209959_0.png.png imagette216925031742964211/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/1db0e98ba38bfff88f6b3b0bb018bd77_85194251.png imagette216925021742964211 21692503 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21692503 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216925031742964211 21692505 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21692505 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347202080: '1742907954_552835_1347201389_7320a3ff483fe84bddb734c12fb447c1_rle_crop_3729207870_0.png', 1347202081: '1742907954_552835_1347201389_7320a3ff483fe84bddb734c12fb447c1_rle_crop_3729207874_0.png', 1347202355: '1742907975_553056_1347201169_7c73d9a6f9fa62085c22cfc9589bd4c8_rle_crop_3729207983_0.png', 1347207493: '1742910334_593416_1347201389_7320a3ff483fe84bddb734c12fb447c1_rle_crop_3729207870_0.png', 1347207494: '1742910334_593416_1347201389_7320a3ff483fe84bddb734c12fb447c1_rle_crop_3729207874_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/d2196d4d8d7799a873630357d1cea2fb_845909.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/07fa5364805d483376cba0dec8a0a4de_88183055.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/94c606f73f89a20d731b328943eb33b3_91405703.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/d2196d4d8d7799a873630357d1cea2fb_44555750.png change filename to text .imagette216925051742964211/ imagette216925051742964211/1742910334_593416_1347201389_7320a3ff483fe84bddb734c12fb447c1_rle_crop_3729207874_0.png.png imagette216925051742964211/1742907975_553056_1347201169_7c73d9a6f9fa62085c22cfc9589bd4c8_rle_crop_3729207983_0.png.png imagette216925051742964211/1742907954_552835_1347201389_7320a3ff483fe84bddb734c12fb447c1_rle_crop_3729207870_0.png.png imagette216925051742964211/1742910334_593416_1347201389_7320a3ff483fe84bddb734c12fb447c1_rle_crop_3729207870_0.png.png imagette216925051742964211/1742907954_552835_1347201389_7320a3ff483fe84bddb734c12fb447c1_rle_crop_3729207874_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/07fa5364805d483376cba0dec8a0a4de_43270967.png imagette216925051742964211 21692506 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21692506 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347202047: '1742907954_552835_1347201389_7320a3ff483fe84bddb734c12fb447c1_rle_crop_3729207873_0.png', 1347202048: '1742907954_552835_1347201389_7320a3ff483fe84bddb734c12fb447c1_rle_crop_3729207871_0.png', 1347202331: '1742907975_553056_1347201240_d61eb619f4534b77bd95ffd31d20cef5_rle_crop_3729207950_0.png', 1347202332: '1742907975_553056_1347201169_7c73d9a6f9fa62085c22cfc9589bd4c8_rle_crop_3729207982_0.png', 1347207488: '1742910334_593416_1347201389_7320a3ff483fe84bddb734c12fb447c1_rle_crop_3729207873_0.png', 1347207489: '1742910334_593416_1347201389_7320a3ff483fe84bddb734c12fb447c1_rle_crop_3729207871_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/4a9e457b5cd398c3ca90fec493a22394_29924850.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/d80cc0b42bfdec695f0b15d7e4c3eaed_57118288.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/38489493561314940aa66eca3dd4c5fc_64599984.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/8cbcdec1e29156494c9c03e76b197ba4_15936671.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/4a9e457b5cd398c3ca90fec493a22394_14168981.png change filename to text .imagette216925061742964212/ imagette216925061742964212/1742907975_553056_1347201240_d61eb619f4534b77bd95ffd31d20cef5_rle_crop_3729207950_0.png.png imagette216925061742964212/1742907975_553056_1347201169_7c73d9a6f9fa62085c22cfc9589bd4c8_rle_crop_3729207982_0.png.png imagette216925061742964212/1742910334_593416_1347201389_7320a3ff483fe84bddb734c12fb447c1_rle_crop_3729207873_0.png.png imagette216925061742964212/1742910334_593416_1347201389_7320a3ff483fe84bddb734c12fb447c1_rle_crop_3729207871_0.png.png imagette216925061742964212/1742907954_552835_1347201389_7320a3ff483fe84bddb734c12fb447c1_rle_crop_3729207873_0.png.png imagette216925061742964212/1742907954_552835_1347201389_7320a3ff483fe84bddb734c12fb447c1_rle_crop_3729207871_0.png.png imagette216925081742964213/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/d80cc0b42bfdec695f0b15d7e4c3eaed_48570822.png imagette216925061742964212 21692508 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21692508 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216925081742964213 21692499 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21692499 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347202643: '1742908053_554086_1347202188_61ca2f2d4617faa1d4eed18021b4dc38_rle_crop_3729208440_0.png', 1347202644: '1742908053_554086_1347202188_61ca2f2d4617faa1d4eed18021b4dc38_rle_crop_3729208435_0.png', 1347202645: '1742908053_554086_1347201585_c87713ab4f7aafb60b011cd732974dea_rle_crop_3729208836_0.png', 1347202762: '1742908225_3552180_1347202586_02afee693a4ee76c99724f43bb98eeff_rle_crop_3729209940_0.png', 1347202763: '1742908225_3552180_1347202157_db899cb24417ecf2418fcaf0444595ef_rle_crop_3729209962_0.png', 1347202764: '1742908225_3552180_1347202157_db899cb24417ecf2418fcaf0444595ef_rle_crop_3729209956_0.png', 1347202765: '1742908225_3552180_1347202157_db899cb24417ecf2418fcaf0444595ef_rle_crop_3729209961_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/bea4e18a77a211953f17a9956a2d35e6_82668827.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/88753b86fdd73d797e8c012151cf6438_67784326.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/e79977c392043ca9696c46ab51671c29_49867887.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/6fd8c6758a250820bfed6e1fee447398_28107796.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/2f5cc1927a01e7d41d47676a1655f83b_70265689.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/87e5c7cb0b492c85c804b044d4491f81_94893359.png change filename to text .imagette216924991742964213/ imagette216924991742964213/1742908225_3552180_1347202586_02afee693a4ee76c99724f43bb98eeff_rle_crop_3729209940_0.png.png imagette216924991742964213/1742908225_3552180_1347202157_db899cb24417ecf2418fcaf0444595ef_rle_crop_3729209956_0.png.png imagette216924991742964213/1742908053_554086_1347202188_61ca2f2d4617faa1d4eed18021b4dc38_rle_crop_3729208440_0.png.png imagette216924991742964213/1742908225_3552180_1347202157_db899cb24417ecf2418fcaf0444595ef_rle_crop_3729209961_0.png.png imagette216924991742964213/1742908053_554086_1347201585_c87713ab4f7aafb60b011cd732974dea_rle_crop_3729208836_0.png.png imagette216924991742964213/1742908053_554086_1347202188_61ca2f2d4617faa1d4eed18021b4dc38_rle_crop_3729208435_0.png.png imagette216924991742964213/1742908225_3552180_1347202157_db899cb24417ecf2418fcaf0444595ef_rle_crop_3729209962_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/73fe201363c416fefe5abeac4669eea0_26470855.png imagette216924991742964213 21692500 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21692500 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347202919: '1742908252_561997_1347202562_9c8ea34bf63a4a49c9e23f8329d64a52_rle_crop_3729210283_0.png', 1347207486: '1742910334_593416_1347201389_7320a3ff483fe84bddb734c12fb447c1_rle_crop_3729207881_0.png', 1347207485: '1742910334_593416_1347201393_7d9425dc1b17ba0e165bc6234e7de4f0_rle_crop_3729207859_0.png', 1347207484: '1742910334_593416_1347201393_7d9425dc1b17ba0e165bc6234e7de4f0_rle_crop_3729231684_0.png', 1347207483: '1742910334_593416_1347201393_7d9425dc1b17ba0e165bc6234e7de4f0_bib_crop_3729207852_0.jpg', 1347207482: '1742910334_593416_1347201396_e3c32e16f0cb8cd1644fc4d3487e3ea6_rle_crop_3729207721_0.png', 1347207481: '1742910334_593416_1347201616_f45d3cdd6ff83c44686f3f61b1df6993_rle_crop_3729231430_0.png', 1347203189: '1742908393_567740_1347202562_9c8ea34bf63a4a49c9e23f8329d64a52_rle_crop_3729210283_0.png', 1347203188: '1742908393_567740_1347202657_59a22f169657aa58714f60cfed2be9f0_rle_crop_3729210228_0.png', 1347203081: '1742908363_2302757_1347202652_e3dacb3ee01f0866fa9b41068af1f98d_rle_crop_3729210541_0.png', 1347203080: '1742908363_2302757_1347202832_2eaad15d2c9bfade6881a42335713a23_rle_crop_3729210526_0.png', 1347203079: '1742908363_2302757_1347202832_2eaad15d2c9bfade6881a42335713a23_rle_crop_3729210525_0.png', 1347202021: '1742907954_552835_1347201396_e3c32e16f0cb8cd1644fc4d3487e3ea6_rle_crop_3729207721_0.png', 1347202918: '1742908252_561997_1347202657_59a22f169657aa58714f60cfed2be9f0_rle_crop_3729210228_0.png', 1347202759: '1742908225_3552180_1347202157_db899cb24417ecf2418fcaf0444595ef_rle_crop_3729209963_0.png', 1347202758: '1742908225_3552180_1347202586_02afee693a4ee76c99724f43bb98eeff_rle_crop_3729209947_0.png', 1347202640: '1742908053_554086_1347201585_c87713ab4f7aafb60b011cd732974dea_rle_crop_3729208839_0.png', 1347202639: '1742908053_554086_1347202188_61ca2f2d4617faa1d4eed18021b4dc38_rle_crop_3729208448_0.png', 1347202311: '1742907975_553056_1347201204_c8cb29d688c6d6c23a11207ffd79d300_rle_crop_3729207965_0.png', 1347202308: '1742907975_553056_1347201400_d4c862626fc25c819a09b6fd6837ff01_rle_crop_3729207929_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/cbd8e5d4f5f9ce17a51efd37a2df55af_21358999.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/de81468ecd14ba8b6c890bc463858347_85556108.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/36121d3f5f304bb7796092d79b6a4f5a_16294382.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/c51c09dcd4e6a5538d225c17453f56de_76876457.png change filename to text .wget -O 5.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/15ace81bc465824d6a60f3b5e8e5ed7d_27649404.jpg change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/a940637c9cc00fe6f94dd1f95a79f737_7569025.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/8aa69ebfe27f4c45c1f0e86ce153e64d_66234041.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/cbd8e5d4f5f9ce17a51efd37a2df55af_44319278.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/529ef15aeff672c6b678381b98d4f0bb_67237381.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/0c8329d2955c78c39ba12b142478d6db_56606090.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/30ca1d960ca526a511a7a34c784b186d_8340649.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/4362b82a1aee60341bd326a6c8dc9c7d_28693545.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/a940637c9cc00fe6f94dd1f95a79f737_14570416.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/529ef15aeff672c6b678381b98d4f0bb_94902955.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/e15b11d23163c9f5814f450e57832de4_81153595.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/0e8f5ef2940a3edd73ecf16ee5a545e7_21549159.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/df5906e72d6ea1598b7e573ccbd47e28_17734177.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/19f43772b05543228f97102be9c4653f_63729525.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/fc3a0a34ff90147fcf7c9fcd670c3c65_15576858.png change filename to text .imagette216925001742964214/ imagette216925001742964214/1742907954_552835_1347201396_e3c32e16f0cb8cd1644fc4d3487e3ea6_rle_crop_3729207721_0.png.png imagette216925001742964214/1742907975_553056_1347201400_d4c862626fc25c819a09b6fd6837ff01_rle_crop_3729207929_0.png.png imagette216925001742964214/1742908252_561997_1347202562_9c8ea34bf63a4a49c9e23f8329d64a52_rle_crop_3729210283_0.png.png imagette216925001742964214/1742908252_561997_1347202657_59a22f169657aa58714f60cfed2be9f0_rle_crop_3729210228_0.png.png imagette216925001742964214/1742908053_554086_1347201585_c87713ab4f7aafb60b011cd732974dea_rle_crop_3729208839_0.png.png imagette216925001742964214/1742908053_554086_1347202188_61ca2f2d4617faa1d4eed18021b4dc38_rle_crop_3729208448_0.png.png imagette216925001742964214/1742910334_593416_1347201393_7d9425dc1b17ba0e165bc6234e7de4f0_bib_crop_3729207852_0.jpg.jpg imagette216925001742964214/1742910334_593416_1347201393_7d9425dc1b17ba0e165bc6234e7de4f0_rle_crop_3729231684_0.png.png imagette216925001742964214/1742908393_567740_1347202657_59a22f169657aa58714f60cfed2be9f0_rle_crop_3729210228_0.png.png imagette216925001742964214/1742910334_593416_1347201393_7d9425dc1b17ba0e165bc6234e7de4f0_rle_crop_3729207859_0.png.png imagette216925001742964214/1742907975_553056_1347201204_c8cb29d688c6d6c23a11207ffd79d300_rle_crop_3729207965_0.png.png imagette216925001742964214/1742910334_593416_1347201616_f45d3cdd6ff83c44686f3f61b1df6993_rle_crop_3729231430_0.png.png imagette216925001742964214/1742908363_2302757_1347202832_2eaad15d2c9bfade6881a42335713a23_rle_crop_3729210526_0.png.png imagette216925001742964214/1742908225_3552180_1347202157_db899cb24417ecf2418fcaf0444595ef_rle_crop_3729209963_0.png.png imagette216925001742964214/1742908363_2302757_1347202652_e3dacb3ee01f0866fa9b41068af1f98d_rle_crop_3729210541_0.png.png imagette216925001742964214/1742908225_3552180_1347202586_02afee693a4ee76c99724f43bb98eeff_rle_crop_3729209947_0.png.png imagette216925001742964214/1742908393_567740_1347202562_9c8ea34bf63a4a49c9e23f8329d64a52_rle_crop_3729210283_0.png.png imagette216925001742964214/1742908363_2302757_1347202832_2eaad15d2c9bfade6881a42335713a23_rle_crop_3729210525_0.png.png imagette216925001742964214/1742910334_593416_1347201396_e3c32e16f0cb8cd1644fc4d3487e3ea6_rle_crop_3729207721_0.png.png imagette216925001742964214/1742910334_593416_1347201389_7320a3ff483fe84bddb734c12fb447c1_rle_crop_3729207881_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/fb3a15eaccab47e2bb09f44e879b38f6_38585877.png imagette216925001742964214 21692507 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21692507 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347202061: '1742907954_552835_1347201396_e3c32e16f0cb8cd1644fc4d3487e3ea6_rle_crop_3729207715_0.png', 1347207491: '1742910334_593416_1347201396_e3c32e16f0cb8cd1644fc4d3487e3ea6_rle_crop_3729207715_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/5cf2af5817d1faf636b936f38e6113d5_80365867.png change filename to text .imagette216925071742964216/ imagette216925071742964216/1742907954_552835_1347201396_e3c32e16f0cb8cd1644fc4d3487e3ea6_rle_crop_3729207715_0.png.png imagette216925071742964216/1742910334_593416_1347201396_e3c32e16f0cb8cd1644fc4d3487e3ea6_rle_crop_3729207715_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/5cf2af5817d1faf636b936f38e6113d5_72492992.png imagette216925071742964216 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21692496 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21692509,21692510,21692511,21692512,21692513,21692514,21692515,21692516,21692517,21692518,21692519,21692520?tags=plastique,papier,Carton_brun,Teint_Dans_La_Masse,flou,metal,mal_croppe,environnement,cartonnette,autre_refus,Carton_gris,kraft your option no_mail is active, we will not send the real mail to your client args[1347203467] : ('0.10334752239330441',) no score found for photo 1347203467 We are sending mail with results at report@fotonower.com args[1347202832] : ('0.10334752239330441',) no score found for photo 1347202832 We are sending mail with results at report@fotonower.com args[1347202657] : ('0.10334752239330441',) no score found for photo 1347202657 We are sending mail with results at report@fotonower.com args[1347202652] : ('0.10334752239330441',) no score found for photo 1347202652 We are sending mail with results at report@fotonower.com args[1347202586] : ('0.10334752239330441',) no score found for photo 1347202586 We are sending mail with results at report@fotonower.com args[1347202562] : ('0.10334752239330441',) no score found for photo 1347202562 We are sending mail with results at report@fotonower.com args[1347202188] : ('0.10334752239330441',) no score found for photo 1347202188 We are sending mail with results at report@fotonower.com args[1347202157] : ('0.10334752239330441',) no score found for photo 1347202157 We are sending mail with results at report@fotonower.com args[1347201616] : ('0.10334752239330441',) no score found for photo 1347201616 We are sending mail with results at report@fotonower.com args[1347201585] : ('0.10334752239330441',) no score found for photo 1347201585 We are sending mail with results at report@fotonower.com args[1347201400] : ('0.10334752239330441',) no score found for photo 1347201400 We are sending mail with results at report@fotonower.com args[1347201396] : ('0.10334752239330441',) no score found for photo 1347201396 We are sending mail with results at report@fotonower.com args[1347201393] : ('0.10334752239330441',) no score found for photo 1347201393 We are sending mail with results at report@fotonower.com args[1347201389] : ('0.10334752239330441',) no score found for photo 1347201389 We are sending mail with results at report@fotonower.com args[1347201275] : ('0.10334752239330441',) no score found for photo 1347201275 We are sending mail with results at report@fotonower.com args[1347201240] : ('0.10334752239330441',) no score found for photo 1347201240 We are sending mail with results at report@fotonower.com args[1347201204] : ('0.10334752239330441',) no score found for photo 1347201204 We are sending mail with results at report@fotonower.com args[1347201169] : ('0.10334752239330441',) no score found for photo 1347201169 We are sending mail with results at report@fotonower.com refus_total : 0.10334752239330441 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21692496 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_P21692496_26-03-2025_05_43_29.pdf results_Auto_P21692496_26-03-2025_05_43_29.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21692496_26-03-2025_05_43_29.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','21692496','results_Auto_P21692496_26-03-2025_05_43_29.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21692496_26-03-2025_05_43_29.pdf','pdf','','0.35','0.10334752239330441') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21692496]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347203467, 1347202832, 1347202657, 1347202652, 1347202586, 1347202562, 1347202188, 1347202157, 1347201616, 1347201585, 1347201400, 1347201396, 1347201393, 1347201389, 1347201275, 1347201240, 1347201204, 1347201169] map_info['map_portfolio_photo'] : {21692496: [1347203467, 1347202832, 1347202657, 1347202652, 1347202586, 1347202562, 1347202188, 1347202157, 1347201616, 1347201585, 1347201400, 1347201396, 1347201393, 1347201389, 1347201275, 1347201240, 1347201204, 1347201169]} final : False mtd_id 4302 list_pids : [1347203467, 1347202832, 1347202657, 1347202652, 1347202586, 1347202562, 1347202188, 1347202157, 1347201616, 1347201585, 1347201400, 1347201396, 1347201393, 1347201389, 1347201275, 1347201240, 1347201204, 1347201169] 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, '2691589') ('4302', '21692496', '1347203467', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202832', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202657', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202652', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202586', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202562', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202188', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202157', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201616', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201585', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201400', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201396', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201393', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201389', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201275', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201240', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201204', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201169', None, None, None, None, None, '2691589') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '21692496', '1347203467', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202832', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202657', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202652', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202586', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202562', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202188', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202157', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201616', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201585', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201400', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201396', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201393', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201389', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201275', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201240', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201204', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201169', None, None, None, None, None, '2691589')] time used for this insertion : 0.015493154525756836 save_final save missing photos in datou_result : time spend for datou_step_exec : 9.773929119110107 time spend to save output : 0.015868663787841797 total time spend for step 4 : 9.78979778289795 step5:split_time_score Wed Mar 26 05:43:38 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 : ['21692496'] 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 : [('21692496',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21692496) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347202832: {'path': 'temp/1742964209_1287011_1347202832_2eaad15d2c9bfade6881a42335713a23.jpg', 'extension': 'jpg'}, 1347203467: {'path': 'temp/1742964209_1287011_1347203467_93edd404951261101072db623fde08e7.jpg', 'extension': 'jpg'}, 1347201169: {'path': 'temp/1742964209_1287011_1347201169_7c73d9a6f9fa62085c22cfc9589bd4c8.jpg', 'extension': 'jpg'}, 1347201204: {'path': 'temp/1742964209_1287011_1347201204_c8cb29d688c6d6c23a11207ffd79d300.jpg', 'extension': 'jpg'}, 1347201240: {'path': 'temp/1742964209_1287011_1347201240_d61eb619f4534b77bd95ffd31d20cef5.jpg', 'extension': 'jpg'}, 1347201275: {'path': 'temp/1742964209_1287011_1347201275_c0fadd376fb3361f5fbd127f56b71117.jpg', 'extension': 'jpg'}, 1347202562: {'path': 'temp/1742964209_1287011_1347202562_9c8ea34bf63a4a49c9e23f8329d64a52.jpg', 'extension': 'jpg'}, 1347202586: {'path': 'temp/1742964209_1287011_1347202586_02afee693a4ee76c99724f43bb98eeff.jpg', 'extension': 'jpg'}, 1347202652: {'path': 'temp/1742964209_1287011_1347202652_e3dacb3ee01f0866fa9b41068af1f98d.jpg', 'extension': 'jpg'}, 1347202657: {'path': 'temp/1742964209_1287011_1347202657_59a22f169657aa58714f60cfed2be9f0.jpg', 'extension': 'jpg'}, 1347201585: {'path': 'temp/1742964209_1287011_1347201585_c87713ab4f7aafb60b011cd732974dea.jpg', 'extension': 'jpg'}, 1347201616: {'path': 'temp/1742964209_1287011_1347201616_f45d3cdd6ff83c44686f3f61b1df6993.jpg', 'extension': 'jpg'}, 1347202157: {'path': 'temp/1742964209_1287011_1347202157_db899cb24417ecf2418fcaf0444595ef.jpg', 'extension': 'jpg'}, 1347202188: {'path': 'temp/1742964209_1287011_1347202188_61ca2f2d4617faa1d4eed18021b4dc38.jpg', 'extension': 'jpg'}, 1347201389: {'path': 'temp/1742964209_1287011_1347201389_7320a3ff483fe84bddb734c12fb447c1.jpg', 'extension': 'jpg'}, 1347201393: {'path': 'temp/1742964209_1287011_1347201393_7d9425dc1b17ba0e165bc6234e7de4f0.jpg', 'extension': 'jpg'}, 1347201396: {'path': 'temp/1742964209_1287011_1347201396_e3c32e16f0cb8cd1644fc4d3487e3ea6.jpg', 'extension': 'jpg'}, 1347201400: {'path': 'temp/1742964209_1287011_1347201400_d4c862626fc25c819a09b6fd6837ff01.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 = 21692496; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 21692496 group by h (('14', 18),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21692496 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 (21692496) 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 (21692496) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25032025 21692496 Nombre de photos uploadées : 18 / 23040 (0%) 25032025 21692496 Nombre de photos taguées (types de déchets): 0 / 18 (0%) 25032025 21692496 Nombre de photos taguées (volume) : 0 / 18 (0%) [{'photo_id': 1347201275, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/c0fadd376fb3361f5fbd127f56b71117.jpg', 'username': None, 'uploaded_at': 1742907852, 'text': 'image_25032025_14_01_44_10138.jpg'}, {'photo_id': 1347201240, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/d61eb619f4534b77bd95ffd31d20cef5.jpg', 'username': None, 'uploaded_at': 1742907852, 'text': 'image_25032025_14_02_04_010162m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347201204, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/c8cb29d688c6d6c23a11207ffd79d300.jpg', 'username': None, 'uploaded_at': 1742907852, 'text': 'image_25032025_14_02_14_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347201169, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/7c73d9a6f9fa62085c22cfc9589bd4c8.jpg', 'username': None, 'uploaded_at': 1742907852, 'text': 'image_25032025_14_02_24_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 1.1205673217773438e-05 ?????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0009198188781738281 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21692496, '2025-03-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1685799,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023328304290771484 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= 1685799 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21677868, 'dashboard_result_id': 9627905, '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_P21677868_26-03-2025_05_34_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21677881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21677882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21677883, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21677884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21677885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21677886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21677887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21677888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21677889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21677890, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21677891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21677892, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21677990, 'dashboard_result_id': 9627906, '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_P21677990_26-03-2025_05_35_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21678027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21678028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21678029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21678030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21678031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21678032, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21678033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21678034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21678035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21678036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21678037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21678038, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21678453, 'dashboard_result_id': 9627907, '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_P21678453_26-03-2025_05_35_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21678478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21678479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21678480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21678481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21678482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21678483, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21678484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21678485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21678486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21678487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21678488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21678489, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21678764, 'dashboard_result_id': 9627908, '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_P21678764_26-03-2025_05_36_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21678790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21678791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21678792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21678793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21678794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21678795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21678796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21678797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21678798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21678799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21678800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21678801, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21679339, 'dashboard_result_id': 9627909, '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_P21679339_26-03-2025_05_36_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21679340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21679341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21679342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21679343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21679344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21679345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21679346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21679347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21679348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21679349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21679350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21679351, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21679980, 'dashboard_result_id': 9627910, '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_P21679980_26-03-2025_05_37_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21679981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21679982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21679983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21679984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21679985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21679986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21679987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21679988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21679989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21679990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21679991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21679992, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21680463, 'dashboard_result_id': 9627911, '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_P21680463_26-03-2025_05_38_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21680464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21680465, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21680466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21680467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21680468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21680469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21680470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21680471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21680472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21680473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21680474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21680475, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21680843, 'dashboard_result_id': 9627912, '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_P21680843_26-03-2025_05_38_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21680858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21680860, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21680862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21680864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21680866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21680868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21680870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21680872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21680874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21680876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21680878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21680879, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21681615, 'dashboard_result_id': 9627913, '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_P21681615_26-03-2025_05_38_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21681616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21681617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21681618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21681619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21681620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21681621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21681622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21681623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21681624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21681625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21681626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21681627, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21681919, 'dashboard_result_id': 9627914, '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_P21681919_26-03-2025_05_39_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21681938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21681939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21681940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21681941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21681942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21681943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21681944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21681945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21681946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21681947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21681948, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21681949, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21682484, 'dashboard_result_id': 9627915, '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_P21682484_26-03-2025_05_39_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21682545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21682546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21682547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21682548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21682549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21682550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21682551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21682552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21682553, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21682554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21682555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21682556, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21683084, 'dashboard_result_id': 9627916, '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_P21683084_26-03-2025_05_40_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21683085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21683086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21683087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21683088, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21683089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21683090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21683091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21683092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21683093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21683094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21683095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21683096, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21683744, 'dashboard_result_id': 9627917, '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_P21683744_26-03-2025_05_40_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21683745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21683746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21683747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21683748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21683749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21683750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21683751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21683752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21683753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21683754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21683755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21683756, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21684719, 'dashboard_result_id': 9627918, '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_P21684719_26-03-2025_05_41_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21684747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21684748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21684749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21684750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21684751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21684752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21684753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21684754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21684755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21684756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21684757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21684758, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21685604, 'dashboard_result_id': 9627919, '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_P21685604_26-03-2025_05_42_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21685657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21685658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21685659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21685660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21685661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21685662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21685663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21685664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21685665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21685666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21685667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21685668, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21686497, 'dashboard_result_id': 9627920, '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_P21686497_26-03-2025_05_43_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21686535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21686536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21686537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21686538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21686539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21686540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21686541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21686542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21686543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21686544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21686545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21686546, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21692496, 'dashboard_result_id': 9627921, '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_P21692496_25-03-2025_14_17_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21692497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21692498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21692499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21692500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21692501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21692502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21692503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21692504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21692505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21692506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21692507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21692508, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21692901, 'dashboard_result_id': 9627922, '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_P21692901_25-03-2025_14_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21692902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21692903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21692904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21692905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21692906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21692907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21692908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21692909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21692910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21692911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21692912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21692913, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21693404, 'dashboard_result_id': 9627923, '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_P21693404_25-03-2025_14_47_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21693461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21693462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21693463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21693465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21693466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21693467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21693469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21693470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21693471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21693473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21693474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21693475, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21693948, 'dashboard_result_id': 9627924, '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_P21693948_25-03-2025_15_05_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21693953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21693954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21693955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21693956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21693957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21693958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21693959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21693960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21693961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21693962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21693963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21693964, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21694587, 'dashboard_result_id': 9627925, '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_P21694587_25-03-2025_15_18_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21694588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21694589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21694590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21694591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21694592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21694593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21694594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21694595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21694596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21694597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21694598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21694599, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21695129, 'dashboard_result_id': 9627926, '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_P21695129_25-03-2025_15_33_48.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21695134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21695135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21695136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21695137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21695138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21695139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21695140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21695141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21695142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21695143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21695144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21695145, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21696146, 'dashboard_result_id': 9627927, '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_P21696146_25-03-2025_15_48_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21696171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21696172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21696173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21696174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21696175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21696176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21696177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21696178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21696179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21696180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21696181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21696182, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21697166, 'dashboard_result_id': 9627928, '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_P21697166_25-03-2025_16_06_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21697181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21697182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21697183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21697184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21697185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21697186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21697187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21697188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21697189, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21697190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21697191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21697192, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21697624, 'dashboard_result_id': 9627929, '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_P21697624_25-03-2025_16_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21697655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21697656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21697657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21697658, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21697659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21697660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21697661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21697662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21697663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21697664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21697665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21697666, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21698231, 'dashboard_result_id': 9627930, '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_P21698231_25-03-2025_16_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21698253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21698254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21698255, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21698256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21698257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21698258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21698259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21698260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21698261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21698262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21698263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21698264, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21699089, 'dashboard_result_id': 9627931, '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_P21699089_25-03-2025_16_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21699115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21699116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21699117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21699118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21699119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21699120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21699121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21699122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21699123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21699124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21699125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21699126, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21700039, 'dashboard_result_id': 9627932, '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_P21700039_25-03-2025_17_05_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21700055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21700056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21700057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21700058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21700059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21700060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21700061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21700062, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21700063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21700064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21700065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21700066, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21700672, 'dashboard_result_id': 9627933, '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_P21700672_25-03-2025_17_17_56.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21700686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21700687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21700688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21700689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21700690, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21700691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21700692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21700693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21700694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21700695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21700696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21700697, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21701715, 'dashboard_result_id': 9627934, '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_P21701715_26-03-2025_00_02_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21701735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21701736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21701737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21701738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21701739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21701740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21701741, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21701742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21701743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21701744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21701745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21701746, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21704505, 'dashboard_result_id': 9627935, '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_P21704505_25-03-2025_19_34_27.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21704509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21704510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21704511, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21704512, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21704513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21704514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21704515, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21704516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21704517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21704518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21704519, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21704520, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21704931, 'dashboard_result_id': 9627936, '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_P21704931_25-03-2025_19_50_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21704935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21704936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21704937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21704938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21704939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21704940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21704941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21704942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21704943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21704944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21704945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21704946, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21705744, 'dashboard_result_id': 9627937, '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_P21705744_25-03-2025_20_05_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21705745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21705746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21705747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21705748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21705749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21705750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21705751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21705752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21705753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21705754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21705755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21705756, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21706355, 'dashboard_result_id': 9627938, '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_P21706355_25-03-2025_20_18_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21706481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21706482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21706483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21706484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21706485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21706486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21706487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21706488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21706489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21706490, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21706491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21706492, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21707261, 'dashboard_result_id': 9627939, '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_P21707261_25-03-2025_20_35_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21707323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21707324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21707325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21707326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21707327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21707328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21707329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21707330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21707331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21707332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21707333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21707334, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21707953, 'dashboard_result_id': 9627940, '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_P21707953_25-03-2025_20_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21708025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21708026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21708027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21708028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21708029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21708030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21708031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21708032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21708033, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21708034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21708035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21708036, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21708597, 'dashboard_result_id': 9627941, '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_P21708597_25-03-2025_21_06_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21708664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21708665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21708666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21708667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21708668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21708669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21708670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21708671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21708672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21708673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21708674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21708675, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21709627, 'dashboard_result_id': 9627942, '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_P21709627_25-03-2025_21_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21709628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21709629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21709630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21709631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21709632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21709633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21709634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21709635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21709636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21709637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21709638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21709639, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21709947, 'dashboard_result_id': 9627943, '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_P21709947_25-03-2025_21_34_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21709948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21709949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21709950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21709951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21709952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21709953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21709954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21709955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21709956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21709957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21709958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21709959, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21710365, 'dashboard_result_id': 9627944, '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_P21710365_25-03-2025_21_48_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21710366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21710367, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21710368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21710369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21710370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21710371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21710372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21710373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21710374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21710375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21710376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21710377, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21710866, 'dashboard_result_id': 9627945, '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_P21710866_25-03-2025_22_04_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21710867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21710868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21710869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21710870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21710871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21710872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21710873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21710874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21710875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21710876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21710877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21710878, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21711534, 'dashboard_result_id': 9627946, '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_P21711534_25-03-2025_22_18_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21711535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21711536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21711537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21711538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21711539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21711540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21711541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21711542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21711543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21711544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21711545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21711546, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21712415, 'dashboard_result_id': 9627947, '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_P21712415_25-03-2025_22_34_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21712450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21712451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21712452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21712453, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21712454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21712455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21712456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21712457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21712458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21712460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21712461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21712462, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1697247, 'mtr_portfolio_id': 21713262, 'dashboard_result_id': 9627948, '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_P21713262_25-03-2025_22_57_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21713283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21713285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21713286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21713287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21713289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21713290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21713291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21713293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21713294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21713295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21713297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21713298, '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 = 21677868 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': 2691573, 'mtr_portfolio_id': 21677868, 'created_at': datetime.datetime(2025, 3, 26, 5, 34, 34), 'result': '0.0715825959855595', 'result_long': None, 'result_double': None}] Qualite : 0.0715825959855595 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21677868 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21677868_26-03-2025_05_34_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21677868 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_P21677868_26-03-2025_05_34_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21677881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21677882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21677883, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21677884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21677885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21677886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21677887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21677888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21677889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21677890, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21677891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21677892, 'pht': 3726}}" where mtr_portfolio_id = 21677868 and dashboard_run_id = 1697247 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`=21677868 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627905, 0.0715825959855595, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21677868_26-03-2025_05_34_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21677881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21677882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21677883, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21677884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21677885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21677886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21677887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21677888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21677889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21677890, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21677891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21677892, '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 = 21677990 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': 2691574, 'mtr_portfolio_id': 21677990, 'created_at': datetime.datetime(2025, 3, 26, 5, 35), 'result': '0.08025695816266848', 'result_long': None, 'result_double': None}] Qualite : 0.08025695816266848 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21677990 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21677990_26-03-2025_05_35_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21677990 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_P21677990_26-03-2025_05_35_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21678027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21678028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21678029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21678030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21678031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21678032, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21678033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21678034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21678035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21678036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21678037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21678038, 'pht': 3726}}" where mtr_portfolio_id = 21677990 and dashboard_run_id = 1697247 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`=21677990 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627906, 0.08025695816266848, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21677990_26-03-2025_05_35_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21678027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21678028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21678029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21678030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21678031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21678032, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21678033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21678034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21678035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21678036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21678037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21678038, '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 = 21678453 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': 2691575, 'mtr_portfolio_id': 21678453, 'created_at': datetime.datetime(2025, 3, 26, 5, 35, 31), 'result': '0.06718621733038112', 'result_long': None, 'result_double': None}] Qualite : 0.06718621733038112 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21678453 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21678453_26-03-2025_05_35_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21678453 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_P21678453_26-03-2025_05_35_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21678478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21678479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21678480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21678481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21678482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21678483, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21678484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21678485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21678486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21678487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21678488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21678489, 'pht': 3726}}" where mtr_portfolio_id = 21678453 and dashboard_run_id = 1697247 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`=21678453 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627907, 0.06718621733038112, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21678453_26-03-2025_05_35_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21678478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21678479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21678480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21678481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21678482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21678483, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21678484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21678485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21678486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21678487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21678488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21678489, '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 = 21678764 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': 2691576, 'mtr_portfolio_id': 21678764, 'created_at': datetime.datetime(2025, 3, 26, 5, 35, 59), 'result': '0.06925618892467911', 'result_long': None, 'result_double': None}] Qualite : 0.06925618892467911 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21678764 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21678764_26-03-2025_05_36_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21678764 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_P21678764_26-03-2025_05_36_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21678790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21678791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21678792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21678793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21678794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21678795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21678796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21678797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21678798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21678799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21678800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21678801, 'pht': 3726}}" where mtr_portfolio_id = 21678764 and dashboard_run_id = 1697247 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`=21678764 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627908, 0.06925618892467911, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21678764_26-03-2025_05_36_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21678790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21678791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21678792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21678793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21678794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21678795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21678796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21678797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21678798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21678799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21678800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21678801, '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 = 21679339 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': 2691577, 'mtr_portfolio_id': 21679339, 'created_at': datetime.datetime(2025, 3, 26, 5, 36, 33), 'result': '0.06791707972966063', 'result_long': None, 'result_double': None}] Qualite : 0.06791707972966063 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21679339 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21679339_26-03-2025_05_36_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21679339 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_P21679339_26-03-2025_05_36_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21679340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21679341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21679342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21679343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21679344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21679345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21679346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21679347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21679348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21679349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21679350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21679351, 'pht': 3726}}" where mtr_portfolio_id = 21679339 and dashboard_run_id = 1697247 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`=21679339 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627909, 0.06791707972966063, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21679339_26-03-2025_05_36_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21679340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21679341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21679342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21679343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21679344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21679345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21679346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21679347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21679348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21679349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21679350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21679351, '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 = 21679980 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': 2691578, 'mtr_portfolio_id': 21679980, 'created_at': datetime.datetime(2025, 3, 26, 5, 37, 29), 'result': '0.0772240459006402', 'result_long': None, 'result_double': None}] Qualite : 0.0772240459006402 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21679980 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21679980_26-03-2025_05_37_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21679980 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_P21679980_26-03-2025_05_37_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21679981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21679982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21679983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21679984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21679985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21679986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21679987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21679988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21679989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21679990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21679991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21679992, 'pht': 3726}}" where mtr_portfolio_id = 21679980 and dashboard_run_id = 1697247 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`=21679980 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627910, 0.0772240459006402, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21679980_26-03-2025_05_37_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21679981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21679982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21679983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21679984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21679985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21679986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21679987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21679988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21679989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21679990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21679991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21679992, '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 = 21680463 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': 2691579, 'mtr_portfolio_id': 21680463, 'created_at': datetime.datetime(2025, 3, 26, 5, 37, 58), 'result': '0.08460389695755587', 'result_long': None, 'result_double': None}] Qualite : 0.08460389695755587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21680463 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21680463_26-03-2025_05_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21680463 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_P21680463_26-03-2025_05_38_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21680464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21680465, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21680466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21680467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21680468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21680469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21680470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21680471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21680472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21680473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21680474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21680475, 'pht': 3726}}" where mtr_portfolio_id = 21680463 and dashboard_run_id = 1697247 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`=21680463 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627911, 0.08460389695755587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21680463_26-03-2025_05_38_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21680464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21680465, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21680466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21680467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21680468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21680469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21680470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21680471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21680472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21680473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21680474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21680475, '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 = 21680843 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': 2691580, 'mtr_portfolio_id': 21680843, 'created_at': datetime.datetime(2025, 3, 26, 5, 38, 52), 'result': '0.07059091180379333', 'result_long': None, 'result_double': None}] Qualite : 0.07059091180379333 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21680843 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21680843_26-03-2025_05_38_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21680843 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_P21680843_26-03-2025_05_38_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21680858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21680860, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21680862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21680864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21680866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21680868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21680870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21680872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21680874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21680876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21680878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21680879, 'pht': 3726}}" where mtr_portfolio_id = 21680843 and dashboard_run_id = 1697247 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`=21680843 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627912, 0.07059091180379333, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21680843_26-03-2025_05_38_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21680858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21680860, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21680862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21680864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21680866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21680868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21680870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21680872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21680874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21680876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21680878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21680879, '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 = 21681615 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': 2691581, 'mtr_portfolio_id': 21681615, 'created_at': datetime.datetime(2025, 3, 26, 5, 38, 29), 'result': '0.07010301939141994', 'result_long': None, 'result_double': None}] Qualite : 0.07010301939141994 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21681615 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21681615_26-03-2025_05_38_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21681615 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_P21681615_26-03-2025_05_38_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21681616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21681617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21681618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21681619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21681620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21681621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21681622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21681623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21681624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21681625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21681626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21681627, 'pht': 3726}}" where mtr_portfolio_id = 21681615 and dashboard_run_id = 1697247 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`=21681615 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627913, 0.07010301939141994, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21681615_26-03-2025_05_38_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21681616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21681617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21681618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21681619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21681620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21681621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21681622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21681623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21681624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21681625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21681626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21681627, '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 = 21681919 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': 2691582, 'mtr_portfolio_id': 21681919, 'created_at': datetime.datetime(2025, 3, 26, 5, 39, 2), 'result': '0.08167730373687396', 'result_long': None, 'result_double': None}] Qualite : 0.08167730373687396 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21681919 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21681919_26-03-2025_05_39_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21681919 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_P21681919_26-03-2025_05_39_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21681938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21681939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21681940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21681941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21681942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21681943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21681944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21681945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21681946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21681947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21681948, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21681949, 'pht': 3726}}" where mtr_portfolio_id = 21681919 and dashboard_run_id = 1697247 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`=21681919 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627914, 0.08167730373687396, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21681919_26-03-2025_05_39_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21681938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21681939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21681940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21681941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21681942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21681943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21681944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21681945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21681946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21681947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21681948, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21681949, '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 = 21682484 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': 2691583, 'mtr_portfolio_id': 21682484, 'created_at': datetime.datetime(2025, 3, 26, 5, 39, 32), 'result': '0.06573097830226139', 'result_long': None, 'result_double': None}] Qualite : 0.06573097830226139 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21682484 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21682484_26-03-2025_05_39_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21682484 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_P21682484_26-03-2025_05_39_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21682545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21682546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21682547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21682548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21682549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21682550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21682551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21682552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21682553, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21682554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21682555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21682556, 'pht': 3726}}" where mtr_portfolio_id = 21682484 and dashboard_run_id = 1697247 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`=21682484 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627915, 0.06573097830226139, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21682484_26-03-2025_05_39_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21682545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21682546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21682547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21682548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21682549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21682550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21682551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21682552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21682553, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21682554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21682555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21682556, '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 = 21683084 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': 2691584, 'mtr_portfolio_id': 21683084, 'created_at': datetime.datetime(2025, 3, 26, 5, 40), 'result': '0.07915996440660478', 'result_long': None, 'result_double': None}] Qualite : 0.07915996440660478 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21683084 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21683084_26-03-2025_05_40_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21683084 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_P21683084_26-03-2025_05_40_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21683085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21683086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21683087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21683088, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21683089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21683090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21683091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21683092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21683093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21683094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21683095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21683096, 'pht': 3726}}" where mtr_portfolio_id = 21683084 and dashboard_run_id = 1697247 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`=21683084 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627916, 0.07915996440660478, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21683084_26-03-2025_05_40_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21683085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21683086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21683087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21683088, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21683089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21683090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21683091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21683092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21683093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21683094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21683095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21683096, '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 = 21683744 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': 2691585, 'mtr_portfolio_id': 21683744, 'created_at': datetime.datetime(2025, 3, 26, 5, 40, 30), 'result': '0.07823332183563945', 'result_long': None, 'result_double': None}] Qualite : 0.07823332183563945 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21683744 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21683744_26-03-2025_05_40_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21683744 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_P21683744_26-03-2025_05_40_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21683745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21683746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21683747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21683748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21683749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21683750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21683751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21683752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21683753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21683754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21683755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21683756, 'pht': 3726}}" where mtr_portfolio_id = 21683744 and dashboard_run_id = 1697247 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`=21683744 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627917, 0.07823332183563945, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21683744_26-03-2025_05_40_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21683745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21683746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21683747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21683748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21683749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21683750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21683751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21683752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21683753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21683754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21683755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21683756, '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 = 21684719 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': 2691586, 'mtr_portfolio_id': 21684719, 'created_at': datetime.datetime(2025, 3, 26, 5, 41, 28), 'result': '0.07033571087430354', 'result_long': None, 'result_double': None}] Qualite : 0.07033571087430354 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21684719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21684719_26-03-2025_05_41_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21684719 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_P21684719_26-03-2025_05_41_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21684747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21684748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21684749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21684750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21684751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21684752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21684753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21684754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21684755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21684756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21684757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21684758, 'pht': 3726}}" where mtr_portfolio_id = 21684719 and dashboard_run_id = 1697247 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`=21684719 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627918, 0.07033571087430354, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21684719_26-03-2025_05_41_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21684747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21684748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21684749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21684750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21684751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21684752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21684753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21684754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21684755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21684756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21684757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21684758, '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 = 21685604 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': 2691587, 'mtr_portfolio_id': 21685604, 'created_at': datetime.datetime(2025, 3, 26, 5, 42), 'result': '0.08158108187186815', 'result_long': None, 'result_double': None}] Qualite : 0.08158108187186815 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21685604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21685604_26-03-2025_05_42_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21685604 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_P21685604_26-03-2025_05_42_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21685657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21685658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21685659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21685660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21685661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21685662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21685663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21685664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21685665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21685666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21685667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21685668, 'pht': 3726}}" where mtr_portfolio_id = 21685604 and dashboard_run_id = 1697247 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`=21685604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627919, 0.08158108187186815, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21685604_26-03-2025_05_42_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21685657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21685658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21685659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21685660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21685661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21685662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21685663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21685664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21685665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21685666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21685667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21685668, '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 = 21686497 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': 2691588, 'mtr_portfolio_id': 21686497, 'created_at': datetime.datetime(2025, 3, 26, 5, 42, 57), 'result': '0.06912904835081517', 'result_long': None, 'result_double': None}] Qualite : 0.06912904835081517 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21686497 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21686497_26-03-2025_05_43_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21686497 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_P21686497_26-03-2025_05_43_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21686535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21686536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21686537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21686538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21686539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21686540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21686541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21686542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21686543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21686544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21686545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21686546, 'pht': 3726}}" where mtr_portfolio_id = 21686497 and dashboard_run_id = 1697247 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`=21686497 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627920, 0.06912904835081517, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21686497_26-03-2025_05_43_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21686535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21686536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21686537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21686538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21686539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21686540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21686541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21686542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21686543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21686544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21686545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21686546, '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 = 21692496 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': 2691589, 'mtr_portfolio_id': 21692496, 'created_at': datetime.datetime(2025, 3, 26, 5, 43, 28), 'result': '0.10334752239330441', 'result_long': None, 'result_double': None}] Qualite : 0.10334752239330441 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21692496 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21692496_26-03-2025_05_43_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21692496 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_P21692496_26-03-2025_05_43_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21692497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21692498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21692499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21692500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21692501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21692502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21692503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21692504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21692505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21692506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21692507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21692508, 'pht': 3726}}" where mtr_portfolio_id = 21692496 and dashboard_run_id = 1697247 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`=21692496 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627921, 0.10334752239330441, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21692496_26-03-2025_05_43_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21692497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21692498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21692499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21692500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21692501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21692502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21692503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21692504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21692505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21692506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21692507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21692508, '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 = 21692901 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': 2689442, 'mtr_portfolio_id': 21692901, 'created_at': datetime.datetime(2025, 3, 25, 14, 34, 58), 'result': '0.04243008138523738', 'result_long': None, 'result_double': None}] Qualite : 0.04243008138523738 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21692901 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21692901_25-03-2025_14_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21692901 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_P21692901_25-03-2025_14_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21692902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21692903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21692904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21692905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21692906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21692907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21692908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21692909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21692910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21692911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21692912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21692913, 'pht': 3726}}" where mtr_portfolio_id = 21692901 and dashboard_run_id = 1697247 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`=21692901 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627922, 0.04243008138523738, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21692901_25-03-2025_14_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21692902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21692903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21692904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21692905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21692906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21692907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21692908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21692909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21692910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21692911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21692912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21692913, '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 = 21693404 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': 2689490, 'mtr_portfolio_id': 21693404, 'created_at': datetime.datetime(2025, 3, 25, 14, 47, 59), 'result': '0.038239692288605825', 'result_long': None, 'result_double': None}] Qualite : 0.038239692288605825 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21693404 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21693404_25-03-2025_14_47_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21693404 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_P21693404_25-03-2025_14_47_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21693461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21693462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21693463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21693465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21693466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21693467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21693469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21693470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21693471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21693473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21693474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21693475, 'pht': 3726}}" where mtr_portfolio_id = 21693404 and dashboard_run_id = 1697247 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`=21693404 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627923, 0.038239692288605825, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21693404_25-03-2025_14_47_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21693461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21693462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21693463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21693465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21693466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21693467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21693469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21693470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21693471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21693473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21693474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21693475, '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 = 21693948 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': 2689520, 'mtr_portfolio_id': 21693948, 'created_at': datetime.datetime(2025, 3, 25, 15, 5, 2), 'result': '0.030763039521575417', 'result_long': None, 'result_double': None}] Qualite : 0.030763039521575417 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21693948 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21693948_25-03-2025_15_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21693948 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_P21693948_25-03-2025_15_05_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21693953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21693954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21693955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21693956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21693957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21693958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21693959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21693960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21693961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21693962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21693963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21693964, 'pht': 3726}}" where mtr_portfolio_id = 21693948 and dashboard_run_id = 1697247 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`=21693948 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627924, 0.030763039521575417, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21693948_25-03-2025_15_05_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21693953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21693954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21693955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21693956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21693957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21693958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21693959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21693960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21693961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21693962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21693963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21693964, '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 = 21694587 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': 2689585, 'mtr_portfolio_id': 21694587, 'created_at': datetime.datetime(2025, 3, 25, 15, 18), 'result': '0.028907160095087463', 'result_long': None, 'result_double': None}] Qualite : 0.028907160095087463 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21694587 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21694587_25-03-2025_15_18_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21694587 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_P21694587_25-03-2025_15_18_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21694588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21694589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21694590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21694591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21694592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21694593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21694594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21694595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21694596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21694597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21694598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21694599, 'pht': 3726}}" where mtr_portfolio_id = 21694587 and dashboard_run_id = 1697247 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`=21694587 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627925, 0.028907160095087463, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21694587_25-03-2025_15_18_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21694588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21694589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21694590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21694591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21694592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21694593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21694594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21694595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21694596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21694597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21694598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21694599, '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 = 21695129 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': 2689625, 'mtr_portfolio_id': 21695129, 'created_at': datetime.datetime(2025, 3, 25, 15, 33, 48), 'result': '0.02786714646111607', 'result_long': None, 'result_double': None}] Qualite : 0.02786714646111607 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21695129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21695129_25-03-2025_15_33_48.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21695129 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_P21695129_25-03-2025_15_33_48.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21695134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21695135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21695136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21695137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21695138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21695139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21695140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21695141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21695142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21695143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21695144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21695145, 'pht': 3726}}" where mtr_portfolio_id = 21695129 and dashboard_run_id = 1697247 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`=21695129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627926, 0.02786714646111607, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21695129_25-03-2025_15_33_48.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21695134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21695135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21695136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21695137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21695138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21695139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21695140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21695141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21695142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21695143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21695144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21695145, '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 = 21696146 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': 2689712, 'mtr_portfolio_id': 21696146, 'created_at': datetime.datetime(2025, 3, 25, 15, 48, 11), 'result': '0.024122471735302825', 'result_long': None, 'result_double': None}] Qualite : 0.024122471735302825 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21696146 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21696146_25-03-2025_15_48_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21696146 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_P21696146_25-03-2025_15_48_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21696171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21696172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21696173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21696174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21696175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21696176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21696177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21696178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21696179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21696180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21696181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21696182, 'pht': 3726}}" where mtr_portfolio_id = 21696146 and dashboard_run_id = 1697247 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`=21696146 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627927, 0.024122471735302825, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21696146_25-03-2025_15_48_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21696171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21696172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21696173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21696174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21696175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21696176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21696177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21696178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21696179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21696180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21696181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21696182, '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 = 21697166 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': 2689759, 'mtr_portfolio_id': 21697166, 'created_at': datetime.datetime(2025, 3, 25, 16, 6, 29), 'result': '0.024229411176945187', 'result_long': None, 'result_double': None}] Qualite : 0.024229411176945187 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21697166 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21697166_25-03-2025_16_06_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21697166 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_P21697166_25-03-2025_16_06_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21697181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21697182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21697183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21697184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21697185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21697186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21697187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21697188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21697189, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21697190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21697191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21697192, 'pht': 3726}}" where mtr_portfolio_id = 21697166 and dashboard_run_id = 1697247 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`=21697166 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627928, 0.024229411176945187, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21697166_25-03-2025_16_06_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21697181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21697182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21697183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21697184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21697185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21697186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21697187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21697188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21697189, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21697190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21697191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21697192, '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 = 21697624 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': 2689816, 'mtr_portfolio_id': 21697624, 'created_at': datetime.datetime(2025, 3, 25, 16, 18, 58), 'result': '0.023003178792020525', 'result_long': None, 'result_double': None}] Qualite : 0.023003178792020525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21697624 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21697624_25-03-2025_16_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21697624 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_P21697624_25-03-2025_16_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21697655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21697656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21697657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21697658, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21697659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21697660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21697661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21697662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21697663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21697664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21697665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21697666, 'pht': 3726}}" where mtr_portfolio_id = 21697624 and dashboard_run_id = 1697247 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`=21697624 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627929, 0.023003178792020525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21697624_25-03-2025_16_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21697655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21697656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21697657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21697658, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21697659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21697660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21697661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21697662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21697663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21697664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21697665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21697666, '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 = 21698231 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': 2689845, 'mtr_portfolio_id': 21698231, 'created_at': datetime.datetime(2025, 3, 25, 16, 33), 'result': '0.03905241123885982', 'result_long': None, 'result_double': None}] Qualite : 0.03905241123885982 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21698231 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21698231_25-03-2025_16_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21698231 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_P21698231_25-03-2025_16_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21698253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21698254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21698255, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21698256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21698257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21698258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21698259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21698260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21698261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21698262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21698263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21698264, 'pht': 3726}}" where mtr_portfolio_id = 21698231 and dashboard_run_id = 1697247 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`=21698231 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627930, 0.03905241123885982, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21698231_25-03-2025_16_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21698253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21698254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21698255, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21698256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21698257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21698258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21698259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21698260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21698261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21698262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21698263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21698264, '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 = 21699089 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': 2689911, 'mtr_portfolio_id': 21699089, 'created_at': datetime.datetime(2025, 3, 25, 16, 48, 59), 'result': '0.04860963579605444', 'result_long': None, 'result_double': None}] Qualite : 0.04860963579605444 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21699089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21699089_25-03-2025_16_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21699089 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_P21699089_25-03-2025_16_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21699115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21699116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21699117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21699118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21699119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21699120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21699121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21699122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21699123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21699124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21699125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21699126, 'pht': 3726}}" where mtr_portfolio_id = 21699089 and dashboard_run_id = 1697247 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`=21699089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627931, 0.04860963579605444, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21699089_25-03-2025_16_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21699115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21699116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21699117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21699118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21699119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21699120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21699121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21699122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21699123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21699124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21699125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21699126, '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 = 21700039 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': 2690023, 'mtr_portfolio_id': 21700039, 'created_at': datetime.datetime(2025, 3, 25, 17, 4, 59), 'result': '0.04290373396819406', 'result_long': None, 'result_double': None}] Qualite : 0.04290373396819406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21700039 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21700039_25-03-2025_17_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21700039 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_P21700039_25-03-2025_17_05_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21700055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21700056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21700057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21700058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21700059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21700060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21700061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21700062, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21700063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21700064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21700065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21700066, 'pht': 3726}}" where mtr_portfolio_id = 21700039 and dashboard_run_id = 1697247 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`=21700039 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627932, 0.04290373396819406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21700039_25-03-2025_17_05_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21700055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21700056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21700057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21700058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21700059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21700060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21700061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21700062, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21700063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21700064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21700065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21700066, '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 = 21700672 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': 2690068, 'mtr_portfolio_id': 21700672, 'created_at': datetime.datetime(2025, 3, 25, 17, 17, 56), 'result': '0.031433546771438906', 'result_long': None, 'result_double': None}] Qualite : 0.031433546771438906 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21700672 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21700672_25-03-2025_17_17_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21700672 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_P21700672_25-03-2025_17_17_56.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21700686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21700687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21700688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21700689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21700690, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21700691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21700692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21700693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21700694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21700695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21700696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21700697, 'pht': 3726}}" where mtr_portfolio_id = 21700672 and dashboard_run_id = 1697247 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`=21700672 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627933, 0.031433546771438906, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21700672_25-03-2025_17_17_56.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21700686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21700687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21700688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21700689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21700690, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21700691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21700692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21700693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21700694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21700695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21700696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21700697, '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 = 21701715 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': 2690121, 'mtr_portfolio_id': 21701715, 'created_at': datetime.datetime(2025, 3, 26, 0, 2, 31), 'result': '0.038716811417085086', 'result_long': None, 'result_double': None}] Qualite : 0.038716811417085086 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21701715 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21701715_26-03-2025_00_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21701715 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_P21701715_26-03-2025_00_02_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21701735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21701736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21701737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21701738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21701739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21701740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21701741, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21701742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21701743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21701744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21701745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21701746, 'pht': 3726}}" where mtr_portfolio_id = 21701715 and dashboard_run_id = 1697247 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`=21701715 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627934, 0.038716811417085086, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21701715_26-03-2025_00_02_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21701735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21701736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21701737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21701738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21701739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21701740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21701741, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21701742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21701743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21701744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21701745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21701746, '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 = 21704505 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': 2690350, 'mtr_portfolio_id': 21704505, 'created_at': datetime.datetime(2025, 3, 25, 19, 34, 27), 'result': '0.05062935631658604', 'result_long': None, 'result_double': None}] Qualite : 0.05062935631658604 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21704505 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21704505_25-03-2025_19_34_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21704505 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_P21704505_25-03-2025_19_34_27.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21704509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21704510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21704511, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21704512, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21704513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21704514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21704515, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21704516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21704517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21704518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21704519, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21704520, 'pht': 3726}}" where mtr_portfolio_id = 21704505 and dashboard_run_id = 1697247 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`=21704505 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627935, 0.05062935631658604, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21704505_25-03-2025_19_34_27.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21704509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21704510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21704511, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21704512, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21704513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21704514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21704515, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21704516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21704517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21704518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21704519, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21704520, '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 = 21704931 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': 2690392, 'mtr_portfolio_id': 21704931, 'created_at': datetime.datetime(2025, 3, 25, 19, 50, 29), 'result': '0.044781338509724974', 'result_long': None, 'result_double': None}] Qualite : 0.044781338509724974 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21704931 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21704931_25-03-2025_19_50_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21704931 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_P21704931_25-03-2025_19_50_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21704935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21704936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21704937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21704938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21704939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21704940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21704941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21704942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21704943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21704944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21704945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21704946, 'pht': 3726}}" where mtr_portfolio_id = 21704931 and dashboard_run_id = 1697247 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`=21704931 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627936, 0.044781338509724974, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21704931_25-03-2025_19_50_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21704935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21704936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21704937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21704938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21704939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21704940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21704941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21704942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21704943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21704944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21704945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21704946, '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 = 21705744 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': 2690433, 'mtr_portfolio_id': 21705744, 'created_at': datetime.datetime(2025, 3, 25, 20, 5, 7), 'result': '0.04577946720757211', 'result_long': None, 'result_double': None}] Qualite : 0.04577946720757211 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21705744 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21705744_25-03-2025_20_05_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21705744 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_P21705744_25-03-2025_20_05_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21705745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21705746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21705747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21705748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21705749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21705750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21705751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21705752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21705753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21705754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21705755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21705756, 'pht': 3726}}" where mtr_portfolio_id = 21705744 and dashboard_run_id = 1697247 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`=21705744 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627937, 0.04577946720757211, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21705744_25-03-2025_20_05_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21705745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21705746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21705747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21705748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21705749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21705750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21705751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21705752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21705753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21705754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21705755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21705756, '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 = 21706355 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': 2690493, 'mtr_portfolio_id': 21706355, 'created_at': datetime.datetime(2025, 3, 25, 20, 18, 32), 'result': '0.05466395004213558', 'result_long': None, 'result_double': None}] Qualite : 0.05466395004213558 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21706355 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21706355_25-03-2025_20_18_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21706355 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_P21706355_25-03-2025_20_18_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21706481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21706482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21706483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21706484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21706485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21706486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21706487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21706488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21706489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21706490, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21706491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21706492, 'pht': 3726}}" where mtr_portfolio_id = 21706355 and dashboard_run_id = 1697247 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`=21706355 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627938, 0.05466395004213558, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21706355_25-03-2025_20_18_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21706481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21706482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21706483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21706484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21706485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21706486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21706487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21706488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21706489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21706490, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21706491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21706492, '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 = 21707261 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': 2690533, 'mtr_portfolio_id': 21707261, 'created_at': datetime.datetime(2025, 3, 25, 20, 35, 1), 'result': '0.029453294160891177', 'result_long': None, 'result_double': None}] Qualite : 0.029453294160891177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21707261 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21707261_25-03-2025_20_35_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21707261 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_P21707261_25-03-2025_20_35_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21707323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21707324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21707325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21707326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21707327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21707328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21707329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21707330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21707331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21707332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21707333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21707334, 'pht': 3726}}" where mtr_portfolio_id = 21707261 and dashboard_run_id = 1697247 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`=21707261 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627939, 0.029453294160891177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21707261_25-03-2025_20_35_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21707323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21707324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21707325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21707326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21707327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21707328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21707329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21707330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21707331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21707332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21707333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21707334, '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 = 21707953 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': 2690582, 'mtr_portfolio_id': 21707953, 'created_at': datetime.datetime(2025, 3, 25, 20, 48, 59), 'result': '0.05040768491453269', 'result_long': None, 'result_double': None}] Qualite : 0.05040768491453269 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21707953 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21707953_25-03-2025_20_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21707953 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_P21707953_25-03-2025_20_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21708025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21708026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21708027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21708028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21708029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21708030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21708031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21708032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21708033, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21708034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21708035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21708036, 'pht': 3726}}" where mtr_portfolio_id = 21707953 and dashboard_run_id = 1697247 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`=21707953 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627940, 0.05040768491453269, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21707953_25-03-2025_20_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21708025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21708026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21708027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21708028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21708029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21708030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21708031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21708032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21708033, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21708034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21708035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21708036, '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 = 21708597 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': 2690616, 'mtr_portfolio_id': 21708597, 'created_at': datetime.datetime(2025, 3, 25, 21, 6, 58), 'result': '0.03552667540840205', 'result_long': None, 'result_double': None}] Qualite : 0.03552667540840205 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21708597 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21708597_25-03-2025_21_06_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21708597 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_P21708597_25-03-2025_21_06_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21708664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21708665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21708666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21708667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21708668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21708669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21708670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21708671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21708672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21708673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21708674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21708675, 'pht': 3726}}" where mtr_portfolio_id = 21708597 and dashboard_run_id = 1697247 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`=21708597 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627941, 0.03552667540840205, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21708597_25-03-2025_21_06_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21708664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21708665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21708666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21708667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21708668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21708669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21708670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21708671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21708672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21708673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21708674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21708675, '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 = 21709627 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': 2690675, 'mtr_portfolio_id': 21709627, 'created_at': datetime.datetime(2025, 3, 25, 21, 18, 58), 'result': '0.029460588873851532', 'result_long': None, 'result_double': None}] Qualite : 0.029460588873851532 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21709627 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21709627_25-03-2025_21_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21709627 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_P21709627_25-03-2025_21_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21709628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21709629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21709630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21709631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21709632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21709633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21709634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21709635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21709636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21709637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21709638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21709639, 'pht': 3726}}" where mtr_portfolio_id = 21709627 and dashboard_run_id = 1697247 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`=21709627 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627942, 0.029460588873851532, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21709627_25-03-2025_21_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21709628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21709629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21709630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21709631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21709632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21709633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21709634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21709635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21709636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21709637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21709638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21709639, '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 = 21709947 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': 2690692, 'mtr_portfolio_id': 21709947, 'created_at': datetime.datetime(2025, 3, 25, 21, 34, 1), 'result': '0.07255758893752548', 'result_long': None, 'result_double': None}] Qualite : 0.07255758893752548 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21709947 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21709947_25-03-2025_21_34_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21709947 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_P21709947_25-03-2025_21_34_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21709948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21709949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21709950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21709951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21709952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21709953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21709954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21709955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21709956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21709957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21709958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21709959, 'pht': 3726}}" where mtr_portfolio_id = 21709947 and dashboard_run_id = 1697247 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`=21709947 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627943, 0.07255758893752548, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21709947_25-03-2025_21_34_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21709948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21709949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21709950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21709951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21709952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21709953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21709954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21709955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21709956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21709957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21709958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21709959, '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 = 21710365 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': 2690723, 'mtr_portfolio_id': 21710365, 'created_at': datetime.datetime(2025, 3, 25, 21, 48), 'result': '0.05375270878866383', 'result_long': None, 'result_double': None}] Qualite : 0.05375270878866383 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21710365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21710365_25-03-2025_21_48_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21710365 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_P21710365_25-03-2025_21_48_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21710366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21710367, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21710368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21710369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21710370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21710371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21710372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21710373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21710374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21710375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21710376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21710377, 'pht': 3726}}" where mtr_portfolio_id = 21710365 and dashboard_run_id = 1697247 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`=21710365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627944, 0.05375270878866383, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21710365_25-03-2025_21_48_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21710366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21710367, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21710368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21710369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21710370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21710371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21710372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21710373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21710374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21710375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21710376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21710377, '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 = 21710866 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': 2690760, 'mtr_portfolio_id': 21710866, 'created_at': datetime.datetime(2025, 3, 25, 22, 3, 59), 'result': '0.05562681950865728', 'result_long': None, 'result_double': None}] Qualite : 0.05562681950865728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21710866 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21710866_25-03-2025_22_04_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21710866 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_P21710866_25-03-2025_22_04_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21710867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21710868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21710869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21710870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21710871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21710872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21710873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21710874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21710875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21710876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21710877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21710878, 'pht': 3726}}" where mtr_portfolio_id = 21710866 and dashboard_run_id = 1697247 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`=21710866 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627945, 0.05562681950865728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21710866_25-03-2025_22_04_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21710867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21710868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21710869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21710870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21710871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21710872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21710873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21710874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21710875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21710876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21710877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21710878, '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 = 21711534 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': 2690864, 'mtr_portfolio_id': 21711534, 'created_at': datetime.datetime(2025, 3, 25, 22, 18, 2), 'result': '0.07301631710143765', 'result_long': None, 'result_double': None}] Qualite : 0.07301631710143765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21711534 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21711534_25-03-2025_22_18_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21711534 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_P21711534_25-03-2025_22_18_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21711535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21711536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21711537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21711538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21711539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21711540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21711541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21711542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21711543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21711544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21711545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21711546, 'pht': 3726}}" where mtr_portfolio_id = 21711534 and dashboard_run_id = 1697247 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`=21711534 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627946, 0.07301631710143765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21711534_25-03-2025_22_18_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21711535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21711536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21711537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21711538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21711539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21711540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21711541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21711542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21711543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21711544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21711545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21711546, '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 = 21712415 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': 2690911, 'mtr_portfolio_id': 21712415, 'created_at': datetime.datetime(2025, 3, 25, 22, 34, 3), 'result': '0.07915081851170958', 'result_long': None, 'result_double': None}] Qualite : 0.07915081851170958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21712415 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21712415_25-03-2025_22_34_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21712415 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_P21712415_25-03-2025_22_34_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21712450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21712451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21712452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21712453, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21712454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21712455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21712456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21712457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21712458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21712460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21712461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21712462, 'pht': 3726}}" where mtr_portfolio_id = 21712415 and dashboard_run_id = 1697247 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`=21712415 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627947, 0.07915081851170958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21712415_25-03-2025_22_34_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21712450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21712451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21712452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21712453, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21712454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21712455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21712456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21712457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21712458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21712460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21712461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21712462, '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 = 21713262 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': 2690954, 'mtr_portfolio_id': 21713262, 'created_at': datetime.datetime(2025, 3, 25, 22, 56, 59), 'result': '0.06766338717633107', 'result_long': None, 'result_double': None}] Qualite : 0.06766338717633107 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21713262 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21713262_25-03-2025_22_57_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21713262 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_P21713262_25-03-2025_22_57_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21713283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21713285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21713286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21713287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21713289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21713290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21713291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21713293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21713294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21713295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21713297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21713298, 'pht': 3726}}" where mtr_portfolio_id = 21713262 and dashboard_run_id = 1697247 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`=21713262 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9627948, 0.06766338717633107, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21713262_25-03-2025_22_57_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21713283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21713285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21713286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21713287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21713289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21713290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21713291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21713293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21713294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21713295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21713297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21713298, '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 (21677868,21677990,21678453,21678764,21679339,21679980,21680463,21680843,21681615,21681919,21682484,21683084,21683744,21684719,21685604,21686497,21692496,21692901,21693404,21693948,21694587,21695129,21696146,21697166,21697624,21698231,21699089,21700039,21700672,21701715,21704505,21704931,21705744,21706355,21707261,21707953,21708597,21709627,21709947,21710365,21710866,21711534,21712415,21713262) result : ((1347087237,), (1347087310,), (1347087314,), (1347087346,), (1347087491,), (1347087499,), (1347087508,), (1347087514,), (1347087519,), (1347087718,), (1347087924,), (1347087961,), (1347087963,), (1347087967,), (1347087972,), (1347088091,), (1347088260,), (1347088280,), (1347088292,), (1347088506,), (1347088499,), (1347088502,), (1347088687,), (1347088693,), (1347088698,), (1347088715,), (1347088719,), (1347088979,), (1347089010,), (1347089012,), (1347089023,), (1347089026,), (1347089032,), (1347089177,), (1347089178,), (1347089181,), (1347089188,), (1347089222,), (1347089228,), (1347089233,), (1347089235,), (1347089255,), (1347089268,), (1347089271,), (1347089274,), (1347089277,), (1347089313,), (1347089344,), (1347089347,), (1347089351,), (1347089355,), (1347089361,), (1347089365,), (1347089435,), (1347089499,), (1347089620,), (1347089631,), (1347089705,), (1347089708,), (1347089715,), (1347089736,), (1347089742,), (1347089747,), (1347089808,), (1347089832,), (1347089840,), (1347089846,), (1347089850,), (1347089880,), (1347089882,), (1347089884,), (1347089887,), (1347089892,), (1347089895,), (1347089917,), (1347089920,), (1347089923,), (1347089992,), (1347089998,), (1347090010,), (1347090038,), (1347090042,), (1347090045,), (1347090091,), (1347090093,), (1347090095,), (1347090149,), (1347090128,), (1347090129,), (1347090132,), (1347090136,), (1347090146,), (1347090185,), (1347090186,), (1347090189,), (1347090193,), (1347090198,), (1347090202,), (1347090267,), (1347090270,), (1347090287,), (1347090292,), (1347090364,), (1347090373,), (1347090375,), (1347090382,), (1347090395,), (1347090450,), (1347090529,), (1347090532,), (1347090535,), (1347090538,), (1347090541,), (1347090542,), (1347090719,), (1347090740,), (1347090768,), (1347090796,), (1347091166,), (1347091194,), (1347091214,), (1347091239,), (1347091340,), (1347091346,), (1347091370,), (1347091394,), (1347091420,), (1347091443,), (1347091502,), (1347091548,), (1347091556,), (1347091606,), (1347091610,), (1347092019,), (1347092003,), (1347092007,), (1347092093,), (1347092095,), (1347092097,), (1347092217,), (1347092222,), (1347092226,), (1347092233,), (1347092238,), (1347092245,), (1347092252,), (1347092256,), (1347092260,), (1347092264,), (1347092269,), (1347092286,), (1347092292,), (1347092298,), (1347092304,), (1347092308,), (1347092322,), (1347092324,), (1347092329,), (1347092333,), (1347092347,), (1347092351,), (1347092354,), (1347092363,), (1347092367,), (1347092371,), (1347092388,), (1347092391,), (1347092393,), (1347092396,), (1347092399,), (1347092408,), (1347092458,), (1347092460,), (1347092462,), (1347092465,), (1347092492,), (1347092493,), (1347092494,), (1347092497,), (1347092507,), (1347092519,), (1347092549,), (1347092561,), (1347092564,), (1347092567,), (1347092570,), (1347092576,), (1347092620,), (1347092622,), (1347092624,), (1347092835,), (1347092863,), (1347093137,), (1347093746,), (1347093780,), (1347093811,), (1347093843,), (1347093857,), (1347093905,), (1347093983,), (1347094006,), (1347094027,), (1347094049,), (1347094073,), (1347094227,), (1347094150,), (1347094174,), (1347094196,), (1347094201,), (1347094310,), (1347094345,), (1347094379,), (1347094401,), (1347094429,), (1347094506,), (1347094520,), (1347094532,), (1347094537,), (1347094545,), (1347094549,), (1347094617,), (1347094625,), (1347094634,), (1347094645,), (1347094761,), (1347094778,), (1347094786,), (1347094806,), (1347094809,), (1347094848,), (1347094852,), (1347094860,), (1347094866,), (1347094873,), (1347094882,), (1347094897,), (1347094898,), (1347094972,), (1347094975,), (1347094982,), (1347094988,), (1347094995,), (1347095020,), (1347095072,), (1347095074,), (1347095078,), (1347095127,), (1347095131,), (1347095136,), (1347095184,), (1347095191,), (1347095193,), (1347095197,), (1347095245,), (1347095246,), (1347095247,), (1347095251,), (1347095254,), (1347095280,), (1347095281,), (1347095282,), (1347095287,), (1347095596,), (1347095598,), (1347095610,), (1347095618,), (1347095635,), (1347095676,), (1347095680,), (1347095685,), (1347095691,), (1347095695,), (1347095726,), (1347095729,), (1347095732,), (1347095738,), (1347095822,), (1347095782,), (1347095794,), (1347095798,), (1347095806,), (1347095814,), (1347095855,), (1347095865,), (1347095880,), (1347095894,), (1347095898,), (1347095916,), (1347095932,), (1347095935,), (1347095956,), (1347095963,), (1347095997,), (1347095999,), (1347096001,), (1347096053,), (1347096055,), (1347096061,), (1347096066,), (1347096069,), (1347096075,), (1347096096,), (1347096103,), (1347096131,), (1347096136,), (1347096149,), (1347096176,), (1347096268,), (1347096276,), (1347096278,), (1347096297,), (1347096321,), (1347096324,), (1347096326,), (1347096331,), (1347096334,), (1347096340,), (1347096484,), (1347096633,), (1347096636,), (1347096833,), (1347096836,), (1347096840,), (1347096844,), (1347096848,), (1347096853,), (1347096881,), (1347096903,), (1347096912,), (1347096951,), (1347096962,), (1347096975,), (1347097009,), (1347097011,), (1347097013,), (1347097014,), (1347097020,), (1347097083,), (1347097110,), (1347097166,), (1347097174,), (1347097180,), (1347097313,), (1347097315,), (1347097334,), (1347097338,), (1347097352,), (1347097475,), (1347097446,), (1347097449,), (1347097460,), (1347097470,), (1347097592,), (1347097593,), (1347097657,), (1347097661,), (1347097664,), (1347097668,), (1347097674,), (1347097677,), (1347097697,), (1347097707,), (1347097729,), (1347097742,), (1347097748,), (1347097750,), (1347097768,), (1347097771,), (1347097775,), (1347097780,), (1347098050,), (1347098139,), (1347098141,), (1347098176,), (1347098179,), (1347098186,), (1347098204,), (1347098233,), (1347098235,), (1347098237,), (1347098239,), (1347098299,), (1347098302,), (1347098305,), (1347098310,), (1347098316,), (1347098351,), (1347098353,), (1347098355,), (1347098359,), (1347098394,), (1347098397,), (1347098401,), (1347098405,), (1347098430,), (1347098432,), (1347098434,), (1347098438,), (1347098443,), (1347098448,), (1347098464,), (1347098473,), (1347098478,), (1347098520,), (1347098525,), (1347098528,), (1347098533,), (1347098537,), (1347098555,), (1347098710,), (1347098609,), (1347098618,), (1347098627,), (1347098640,), (1347098671,), (1347098952,), (1347098964,), (1347098983,), (1347099105,), (1347099114,), (1347099120,), (1347099130,), (1347099161,), (1347099162,), (1347099164,), (1347099168,), (1347099173,), (1347099212,), (1347099215,), (1347099218,), (1347099223,), (1347099234,), (1347099263,), (1347099267,), (1347099270,), (1347099328,), (1347099332,), (1347099338,), (1347099364,), (1347099366,), (1347099369,), (1347099376,), (1347099384,), (1347099388,), (1347099993,), (1347100663,), (1347100692,), (1347100726,), (1347100753,), (1347100782,), (1347100887,), (1347100891,), (1347100911,), (1347100913,), (1347100934,), (1347100937,), (1347100986,), (1347100989,), (1347101190,), (1347101118,), (1347101148,), (1347101165,), (1347101179,), (1347101338,), (1347101379,), (1347101410,), (1347101566,), (1347101574,), (1347101666,), (1347101671,), (1347101780,), (1347101809,), (1347101822,), (1347101827,), (1347101912,), (1347101919,), (1347102154,), (1347102307,), (1347102317,), (1347102328,), (1347102339,), (1347102351,), (1347102364,), (1347102367,), (1347102373,), (1347102377,), (1347102379,), (1347102381,), (1347102383,), (1347102392,), (1347102399,), (1347102409,), (1347102419,), (1347102429,), (1347102440,), (1347102465,), (1347102470,), (1347102475,), (1347102491,), (1347102497,), (1347102504,), (1347102511,), (1347102514,), (1347102518,), (1347102620,), (1347102627,), (1347102633,), (1347102641,), (1347102656,), (1347102671,), (1347102723,), (1347102900,), (1347102928,), (1347102942,), (1347102952,), (1347102970,), (1347102991,), (1347102454,), (1347102457,), (1347102461,), (1347102536,), (1347102555,), (1347102567,), (1347102576,), (1347102582,), (1347102589,), (1347102694,), (1347102702,), (1347102708,), (1347102714,), (1347102719,), (1347102786,), (1347102808,), (1347102833,), (1347102855,), (1347102877,), (1347103057,), (1347103076,), (1347103081,), (1347103084,), (1347103089,), (1347103094,), (1347103113,), (1347103125,), (1347103133,), (1347103140,), (1347103186,), (1347103194,), (1347103199,), (1347103207,), (1347103219,), (1347103238,), (1347103282,), (1347103292,), (1347103296,), (1347103301,), (1347103306,), (1347103366,), (1347103375,), (1347103383,), (1347103394,), (1347103439,), (1347103725,), (1347103729,), (1347103733,), (1347103917,), (1347103920,), (1347103925,), (1347103933,), (1347103939,), (1347104127,), (1347104145,), (1347104166,), (1347104188,), (1347104217,), (1347104239,), (1347104493,), (1347104509,), (1347104530,), (1347104570,), (1347104729,), (1347104755,), (1347104769,), (1347104787,), (1347104796,), (1347104802,), (1347104855,), (1347104862,), (1347104864,), (1347104870,), (1347104875,), (1347104966,), (1347105251,), (1347105202,), (1347105224,), (1347105233,), (1347105245,), (1347105338,), (1347105346,), (1347105351,), (1347105362,), (1347105504,), (1347105511,), (1347105514,), (1347105572,), (1347105590,), (1347105705,), (1347105736,), (1347105751,), (1347105757,), (1347105897,), (1347105929,), (1347105950,), (1347105958,), (1347105974,), (1347105982,), (1347106156,), (1347106164,), (1347106166,), (1347106324,), (1347106331,), (1347106335,), (1347106343,), (1347106353,), (1347106360,), (1347106393,), (1347106404,), (1347106413,), (1347106419,), (1347106468,), (1347106471,), (1347106479,), (1347106495,), (1347106511,), (1347106721,), (1347106733,), (1347106736,), (1347106745,), (1347106748,), (1347106756,), (1347106793,), (1347106798,), (1347106801,), (1347106860,), (1347106863,), (1347106866,), (1347106918,), (1347106923,), (1347107024,), (1347107027,), (1347107029,), (1347107040,), (1347107048,), (1347107055,), (1347107221,), (1347107224,), (1347107228,), (1347107298,), (1347107465,), (1347107470,), (1347107475,), (1347107481,), (1347107484,), (1347107492,), (1347107681,), (1347107610,), (1347107619,), (1347107671,), (1347107768,), (1347107773,), (1347107778,), (1347107784,), (1347107789,), (1347107817,), (1347107967,), (1347108010,), (1347108018,), (1347108105,), (1347108109,), (1347108113,), (1347108119,), (1347108177,), (1347108179,), (1347108180,), (1347108186,), (1347108293,), (1347108297,), (1347108301,), (1347108311,), (1347108322,), (1347108544,), (1347108555,), (1347108562,), (1347108570,), (1347108580,), (1347108842,), (1347108849,), (1347108901,), (1347108905,), (1347108910,), (1347108970,), (1347108976,), (1347108980,), (1347108988,), (1347108992,), (1347108997,), (1347109304,), (1347109342,), (1347109414,), (1347109433,), (1347109565,), (1347109566,), (1347109583,), (1347109646,), (1347109717,), (1347109801,), (1347110063,), (1347110066,), (1347110070,), (1347110093,), (1347110108,), (1347110116,), (1347110195,), (1347110206,), (1347110209,), (1347110212,), (1347110239,), (1347110243,), (1347111070,), (1347111101,), (1347111156,), (1347111205,), (1347111255,), (1347111654,), (1347111485,), (1347111538,), (1347111605,), (1347111872,), (1347111913,), (1347112024,), (1347112166,), (1347112235,), (1347112304,), (1347112619,), (1347112676,), (1347112705,), (1347112721,), (1347113014,), (1347113024,), (1347113036,), (1347113075,), (1347113083,), (1347113088,), (1347113137,), (1347113302,), (1347113448,), (1347113535,), (1347113566,), (1347113583,), (1347113868,), (1347113908,), (1347114256,), (1347114278,), (1347114302,), (1347114327,), (1347114348,), (1347114365,), (1347114414,), (1347114418,), (1347114424,), (1347114430,), (1347114439,), (1347114446,), (1347114516,), (1347114532,), (1347114544,), (1347114550,), (1347114679,), (1347114684,), (1347114701,), (1347114707,), (1347114735,), (1347114749,), (1347115304,), (1347115332,), (1347115350,), (1347115356,), (1347115363,), (1347115390,), (1347115468,), (1347115530,), (1347115589,), (1347115612,), (1347115637,), (1347115780,), (1347115680,), (1347115684,), (1347115693,), (1347115728,), (1347115756,), (1347116011,), (1347116046,), (1347116113,), (1347116176,), (1347116226,), (1347116461,), (1347116470,), (1347116495,), (1347116511,), (1347116558,), (1347116604,), (1347116759,), (1347116828,), (1347116854,), (1347116903,), (1347116919,), (1347117074,), (1347117092,), (1347117104,), (1347117123,), (1347117129,), (1347117212,), (1347117238,), (1347117268,), (1347117319,), (1347117334,), (1347117366,), (1347117369,), (1347117418,), (1347117433,), (1347117738,), (1347117751,), (1347117781,), (1347117811,), (1347117868,), (1347117906,), (1347118059,), (1347118067,), (1347118074,), (1347118079,), (1347118091,), (1347118098,), (1347118191,), (1347118203,), (1347118303,), (1347118338,), (1347118350,), (1347118360,), (1347118371,), (1347118393,), (1347118535,), (1347118556,), (1347118575,), (1347118581,), (1347118587,), (1347118772,), (1347118799,), (1347118824,), (1347118828,), (1347118836,), (1347118923,), (1347118952,), (1347118980,), (1347119013,), (1347119061,), (1347119089,), (1347119490,), (1347119518,), (1347119544,), (1347119574,), (1347119820,), (1347119738,), (1347119776,), (1347119793,), (1347119807,), (1347119813,), (1347120013,), (1347120028,), (1347120035,), (1347120042,), (1347120205,), (1347120209,), (1347120213,), (1347120413,), (1347120420,), (1347120426,), (1347120432,), (1347120440,), (1347120508,), (1347120654,), (1347120659,), (1347120664,), (1347120669,), (1347120686,), (1347120696,), (1347120759,), (1347120763,), (1347120769,), (1347120778,), (1347120837,), (1347120848,), (1347120860,), (1347120868,), (1347120872,), (1347121000,), (1347121004,), (1347121021,), (1347121052,), (1347121070,), (1347121101,), (1347121140,), (1347121141,), (1347121145,), (1347121152,), (1347121253,), (1347121257,), (1347121261,), (1347121295,), (1347121328,), (1347121343,), (1347121430,), (1347121433,), (1347121444,), (1347121549,), (1347121553,), (1347121559,), (1347121645,), (1347121648,), (1347121651,), (1347121655,), (1347121663,), (1347121707,), (1347121715,), (1347121720,), (1347121767,), (1347121771,), (1347121772,), (1347121782,), (1347121790,), (1347122063,), (1347122028,), (1347122045,), (1347122050,), (1347122055,), (1347122059,), (1347122229,), (1347122234,), (1347122238,), (1347122480,), (1347122496,), (1347122525,), (1347122544,), (1347122549,), (1347122642,), (1347122682,), (1347122690,), (1347122706,), (1347122710,), (1347122807,), (1347122810,), (1347122812,), (1347122815,), (1347122921,), (1347122945,), (1347122946,), (1347122963,), (1347123080,), (1347123090,), (1347123099,), (1347123138,), (1347123427,), (1347123435,), (1347123500,), (1347123513,), (1347123546,), (1347123569,), (1347123613,), (1347123618,), (1347123621,), (1347123669,), (1347123671,), (1347124016,), (1347124066,), (1347124122,), (1347124159,), (1347124183,), (1347124322,), (1347124898,), (1347124946,), (1347125008,), (1347125043,), (1347125890,), (1347125903,), (1347125969,), (1347125981,), (1347126025,), (1347126074,), (1347201169,), (1347201204,), (1347201240,), (1347201275,), (1347201389,), (1347201393,), (1347201396,), (1347201400,), (1347201585,), (1347201616,), (1347202157,), (1347202188,), (1347202562,), (1347202586,), (1347202652,), (1347202657,), (1347202832,), (1347203467,), (1347203464,), (1347203605,), (1347203609,), (1347203614,), (1347204008,), (1347204010,), (1347204012,), (1347204043,), (1347204049,), (1347204096,), (1347204100,), (1347204102,), (1347204105,), (1347204160,), (1347204164,), (1347204168,), (1347204173,), (1347204178,), (1347204212,), (1347204215,), (1347204242,), (1347204254,), (1347204270,), (1347204275,), (1347204343,), (1347204347,), (1347204351,), (1347204356,), (1347204362,), (1347204552,), (1347204555,), (1347204557,), (1347204560,), (1347204662,), (1347204668,), (1347204671,), (1347204708,), (1347204719,), (1347204725,), (1347204794,), (1347204805,), (1347204808,), (1347204812,), (1347204817,), (1347204889,), (1347204895,), (1347204902,), (1347204905,), (1347204908,), (1347204952,), (1347204957,), (1347204959,), (1347204963,), (1347204968,), (1347205032,), (1347205050,), (1347205085,), (1347205099,), (1347205104,), (1347205106,), (1347205129,), (1347205134,), (1347205137,), (1347205142,), (1347205173,), (1347205179,), (1347205186,), (1347205190,), (1347205192,), (1347205196,), (1347205378,), (1347205356,), (1347205363,), (1347205366,), (1347205375,), (1347205531,), (1347205551,), (1347205559,), (1347205573,), (1347205575,), (1347205593,), (1347205646,), (1347205662,), (1347205692,), (1347205718,), (1347205956,), (1347205993,), (1347206017,), (1347206046,), (1347206970,), (1347206973,), (1347206975,), (1347206980,), (1347206984,), (1347207016,), (1347207020,), (1347207023,), (1347207045,), (1347207077,), (1347207172,), (1347207174,), (1347207177,), (1347207210,), (1347207217,), (1347207221,), (1347207302,), (1347207307,), (1347207312,), (1347207316,), (1347207382,), (1347207391,), (1347207394,), (1347207400,), (1347207404,), (1347207409,), (1347207439,), (1347207441,), (1347207443,), (1347207448,), (1347207511,), (1347207502,), (1347207504,), (1347207506,), (1347207509,), (1347207750,), (1347207860,), (1347207871,), (1347207876,), (1347207889,), (1347207954,), (1347207962,), (1347207965,), (1347207969,), (1347207996,), (1347208002,), (1347208005,), (1347208007,), (1347208013,), (1347208020,), (1347208099,), (1347208105,), (1347208113,), (1347208198,), (1347208201,), (1347208204,), (1347208209,), (1347208219,), (1347208231,), (1347208292,), (1347208309,), (1347208318,), (1347208325,), (1347208373,), (1347208377,), (1347208380,), (1347208385,), (1347208390,), (1347208452,), (1347208539,), (1347208578,), (1347208585,), (1347208856,), (1347208859,), (1347208893,), (1347208901,), (1347208905,), (1347208965,), (1347208968,), (1347208976,), (1347208983,), (1347209028,), (1347209030,), (1347209033,), (1347209038,), (1347209044,), (1347209049,), (1347209080,), (1347209167,), (1347209195,), (1347209216,), (1347209242,), (1347210248,), (1347210313,), (1347210358,), (1347210384,), (1347210909,), (1347210751,), (1347210784,), (1347210835,), (1347210871,), (1347211453,), (1347211506,), (1347211524,), (1347211569,), (1347211667,), (1347211670,), (1347211673,), (1347211676,), (1347211683,), (1347211690,), (1347211733,), (1347211735,), (1347211749,), (1347211755,), (1347211937,), (1347211938,), (1347212011,), (1347212028,), (1347212033,), (1347212040,), (1347212047,), (1347212053,), (1347212082,), (1347212085,), (1347212179,), (1347212181,), (1347212237,), (1347212242,), (1347212246,), (1347212250,), (1347212255,), (1347212328,), (1347212330,), (1347212332,), (1347212335,), (1347212342,), (1347212507,), (1347212535,), (1347212567,), (1347212627,), (1347212633,), (1347212636,), (1347212642,), (1347212647,), (1347212652,), (1347212688,), (1347212695,), (1347212701,), (1347212706,), (1347212764,), (1347212747,), (1347212749,), (1347212751,), (1347212754,), (1347212759,), (1347212915,), (1347212959,), (1347212962,), (1347212965,), (1347212972,), (1347213005,), (1347213011,), (1347213018,), (1347213023,), (1347213027,), (1347213031,), (1347213073,), (1347213077,), (1347213240,), (1347213336,), (1347213476,), (1347213498,), (1347213505,), (1347213514,), (1347213519,), (1347213542,), (1347213704,), (1347213705,), (1347213711,), (1347213715,), (1347213773,), (1347213777,), (1347213780,), (1347213812,), (1347213841,), (1347213845,), (1347214091,), (1347214104,), (1347214112,), (1347214121,), (1347214128,), (1347214560,), (1347214564,), (1347214572,), (1347214581,), (1347214629,), (1347214655,), (1347214674,), (1347214691,), (1347214783,), (1347214831,), (1347214879,), (1347214881,), (1347214885,), (1347214896,), (1347214904,), (1347214985,), (1347215006,), (1347215010,), (1347215031,), (1347215040,), (1347215137,), (1347215140,), (1347215142,), (1347215147,), (1347215151,), (1347215193,), (1347215197,), (1347215201,), (1347215206,), (1347215507,), (1347215510,), (1347215538,), (1347215561,), (1347215566,), (1347215624,), (1347215609,), (1347215613,), (1347215617,), (1347215621,), (1347215653,), (1347215677,), (1347215701,), (1347215733,), (1347215783,), (1347216059,), (1347216079,), (1347216097,), (1347216125,), (1347216150,), (1347216333,), (1347216354,), (1347216406,), (1347216441,), (1347216483,), (1347216514,), (1347216629,), (1347216637,), (1347216640,), (1347216645,), (1347216659,), (1347216746,), (1347216749,), (1347216759,), (1347216767,), (1347216772,), (1347216777,), (1347216929,), (1347216956,), (1347216983,), (1347217011,), (1347217148,), (1347217165,), (1347217187,), (1347217236,), (1347217265,), (1347217600,), (1347217624,), (1347217647,), (1347217699,), (1347217718,), (1347217737,), (1347218057,), (1347218077,), (1347218099,), (1347218154,), (1347218275,), (1347218294,), (1347218328,), (1347218364,), (1347218403,), (1347218635,), (1347218669,), (1347218692,), (1347218725,), (1347218754,), (1347219010,), (1347219012,), (1347219015,), (1347219035,), (1347219508,), (1347219548,), (1347219569,), (1347219575,), (1347219602,), (1347219644,), (1347219941,), (1347219945,), (1347219948,), (1347219953,), (1347219957,), (1347220022,), (1347220002,), (1347220006,), (1347220015,), (1347220144,), (1347220150,), (1347220156,), (1347220165,), (1347220171,), (1347220176,), (1347220219,), (1347220223,), (1347220232,), (1347220285,), (1347220289,), (1347220292,), (1347220295,), (1347220299,), (1347220348,), (1347220352,), (1347220356,), (1347220455,), (1347220567,), (1347220576,), (1347220591,), (1347220678,), (1347220681,), (1347220684,), (1347220686,), (1347220693,), (1347220697,), (1347220727,), (1347220731,), (1347220735,), (1347220740,), (1347220747,), (1347220771,), (1347220775,), (1347220779,), (1347220786,), (1347220790,), (1347220794,), (1347220867,), (1347220876,), (1347220893,), (1347220898,), (1347220901,), (1347220904,), (1347220967,), (1347220988,), (1347221000,), (1347221011,), (1347221022,), (1347221046,), (1347221053,), (1347221069,), (1347221076,), (1347221140,), (1347221985,), (1347221965,), (1347222306,), (1347222331,), (1347222357,), (1347222469,), (1347222510,), (1347222977,), (1347223024,), (1347223042,), (1347223078,), (1347223112,), (1347223158,), (1347223354,), (1347223381,), (1347223404,), (1347223780,), (1347223819,), (1347223856,), (1347224135,), (1347224163,), (1347225762,), (1347225767,), (1347226400,), (1347226464,), (1347226524,), (1347226572,), (1347226589,), (1347226595,), (1347226675,), (1347226682,), (1347226688,), (1347226710,), (1347227141,), (1347226965,), (1347226990,), (1347226996,), (1347227027,), (1347227121,), (1347227234,), (1347227239,), (1347227242,), (1347227260,), (1347227537,), (1347227539,), (1347227546,), (1347227556,), (1347227561,), (1347227564,), (1347227824,), (1347227841,), (1347227878,), (1347228173,), (1347228202,), (1347228231,), (1347228265,), (1347228299,), (1347228338,), (1347228664,), (1347228698,), (1347228718,), (1347228726,), (1347228912,), (1347228966,), (1347229014,), (1347229044,), (1347229071,), (1347229100,), (1347229507,), (1347229548,), (1347229585,), (1347229620,), (1347229647,), (1347229720,), (1347229723,), (1347229729,), (1347229747,), (1347229767,), (1347229798,), (1347230438,), (1347230489,), (1347230537,), (1347230591,), (1347230912,), (1347230922,), (1347230932,), (1347230955,), (1347230986,), (1347231011,), (1347231356,), (1347231427,), (1347231461,), (1347231490,), (1347231811,), (1347231818,), (1347231824,), (1347231828,), (1347232060,), (1347232064,), (1347232067,), (1347232072,), (1347232076,), (1347232080,), (1347232254,), (1347232272,), (1347232279,), (1347232285,), (1347232310,), (1347232336,), (1347232416,), (1347232396,), (1347232400,), (1347232405,), (1347232409,), (1347232571,), (1347232616,), (1347232634,), (1347232640,), (1347232644,), (1347232696,), (1347232699,), (1347232703,), (1347232708,), (1347232713,), (1347232802,), (1347232884,), (1347232945,), (1347232961,), (1347232993,), (1347233013,), (1347233113,), (1347233122,), (1347233127,), (1347233162,), (1347233231,), (1347233268,), (1347233272,), (1347233276,), (1347233290,), (1347233294,), (1347233325,), (1347233340,), (1347233348,), (1347233461,), (1347233463,), (1347233467,), (1347233470,), (1347233504,), (1347233513,), (1347233517,), (1347233522,), (1347233526,), (1347233529,), (1347233569,), (1347233572,), (1347233577,), (1347233581,), (1347233647,), (1347233651,), (1347233656,), (1347233665,), (1347233682,), (1347233719,), (1347233783,), (1347233826,), (1347233850,), (1347233878,), (1347233910,), (1347234019,), (1347234023,), (1347234024,), (1347234027,), (1347234031,), (1347234038,), (1347234085,), (1347234093,), (1347234096,), (1347234106,), (1347234109,), (1347234327,), (1347234358,), (1347234394,), (1347234412,), (1347234451,), (1347234469,), (1347234560,), (1347234549,), (1347234553,), (1347234556,), (1347234611,), (1347234700,), (1347234706,), (1347234708,), (1347234710,), (1347234719,), (1347234763,), (1347234770,), (1347234775,), (1347234778,), (1347234940,), (1347234973,), (1347235014,), (1347235029,), (1347235051,), (1347235089,), (1347235330,), (1347235334,), (1347235340,), (1347235346,), (1347235389,), (1347235392,), (1347235396,), (1347235402,), (1347235407,), (1347235413,), (1347235435,), (1347235443,), (1347235497,), (1347235502,), (1347235545,), (1347235570,), (1347235589,), (1347235657,), (1347235663,), (1347235667,), (1347235835,), (1347235852,), (1347235876,), (1347235886,), (1347235894,), (1347235948,), (1347235951,), (1347235953,), (1347235958,), (1347235963,), (1347235991,), (1347235993,), (1347235997,), (1347235999,), (1347236002,), (1347236007,), (1347236151,), (1347236192,), (1347236275,), (1347236334,), (1347237058,), (1347237089,), (1347237132,), (1347237157,), (1347237186,), (1347237722,), (1347237762,), (1347237798,), (1347237852,), (1347237881,), (1347237906,), (1347237993,), (1347238031,), (1347238074,), (1347238544,), (1347238217,), (1347238300,), (1347238340,), (1347238382,), (1347238440,), (1347238875,), (1347238917,), (1347238943,), (1347238981,), (1347239046,), (1347239344,), (1347239389,), (1347239440,), (1347239478,), (1347240437,), (1347240493,), (1347240554,), (1347240659,), (1347240733,), (1347240781,), (1347241151,), (1347241158,), (1347241189,), (1347241195,), (1347241202,), (1347241442,), (1347241490,), (1347241542,), (1347241593,), (1347241616,), (1347241706,), (1347242191,), (1347242261,), (1347242308,), (1347242353,), (1347242744,), (1347242760,), (1347242778,), (1347242792,), (1347242998,), (1347243032,), (1347243904,), (1347243945,), (1347244220,), (1347244245,), (1347244253,), (1347244261,), (1347244390,), (1347244449,), (1347244489,), (1347244498,), (1347244536,), (1347244540,), (1347244546,), (1347244568,), (1347244574,), (1347244630,), (1347244635,), (1347244639,), (1347244645,), (1347244652,), (1347244710,), (1347244689,), (1347244693,), (1347244700,), (1347244704,), (1347244708,), (1347244744,), (1347244748,), (1347244765,), (1347244793,), (1347245193,), (1347245222,), (1347245251,), (1347245273,), (1347245299,), (1347245303,), (1347245340,), (1347245345,), (1347245350,), (1347245357,), (1347245363,), (1347245471,), (1347245475,), (1347245479,), (1347245484,), (1347245526,), (1347245531,), (1347245541,), (1347245545,), (1347245549,), (1347245554,), (1347245590,), (1347245595,), (1347245598,), (1347245606,), (1347245610,), (1347245656,), (1347245667,), (1347245676,), (1347245706,), (1347245713,), (1347245913,), (1347245933,), (1347245938,), (1347245958,), (1347245964,), (1347246025,), (1347246027,), (1347246030,), (1347246069,), (1347246073,), (1347246084,), (1347246091,), (1347246093,), (1347246148,), (1347246151,), (1347246154,), (1347246159,), (1347246163,), (1347246199,), (1347246209,), (1347246211,), (1347246215,), (1347246218,), (1347246222,), (1347246253,), (1347246256,), (1347246257,), (1347246319,), (1347264070,), (1347274872,), (1347274920,), (1347274923,), (1347275008,), (1347275013,), (1347275017,), (1347275150,), (1347275183,), (1347275217,), (1347275246,), (1347275313,), (1347275315,), (1347275352,), (1347275470,), (1347275478,), (1347275487,), (1347275500,), (1347275503,), (1347275510,), (1347275513,), (1347275517,), (1347275525,), (1347275543,), (1347275555,), (1347275565,), (1347275571,), (1347275573,), (1347275613,), (1347275614,), (1347275629,), (1347275639,), (1347275715,), (1347275835,), (1347275839,), (1347275858,), (1347275882,), (1347276118,), (1347276145,), (1347276169,), (1347276183,), (1347276211,), (1347276539,), (1347276541,), (1347276542,), (1347276546,), (1347276568,), (1347276748,), (1347276759,), (1347276773,), (1347276783,), (1347276802,), (1347276842,), (1347277032,), (1347276964,), (1347276977,), (1347277004,), (1347277088,), (1347277132,), (1347277147,), (1347277171,), (1347277194,), (1347277360,), (1347277374,), (1347277377,), (1347277381,), (1347277385,), (1347277389,), (1347277779,), (1347277835,), (1347277945,), (1347278009,), (1347278185,), (1347278274,), (1347278298,), (1347278352,), (1347278360,), (1347278368,), (1347278474,), (1347278498,), (1347278503,), (1347278514,), (1347278534,), (1347278903,), (1347278918,), (1347278922,), (1347278934,), (1347279127,), (1347279138,), (1347279147,), (1347279155,), (1347279181,), (1347279202,), (1347279283,), (1347279287,), (1347279291,), (1347279295,), (1347279300,), (1347279385,), (1347279412,), (1347279443,), (1347279453,), (1347279458,), (1347279547,), (1347279550,), (1347279584,), (1347279610,), (1347279680,), (1347279903,), (1347279904,), (1347279927,), (1347279993,), (1347280047,), (1347280420,), (1347280471,), (1347280514,), (1347280554,), (1347280630,), (1347280660,), (1347280982,), (1347280989,), (1347281026,), (1347281066,), (1347281110,), (1347281564,), (1347281590,), (1347281611,), (1347281927,), (1347281779,), (1347281819,), (1347281850,), (1347281859,), (1347281881,), (1347282160,), (1347282261,), (1347282306,), (1347282318,), (1347282473,), (1347282475,), (1347282478,), (1347282487,), (1347282495,), (1347282503,), (1347282552,), (1347282556,), (1347282572,), (1347282583,), (1347282590,), (1347282703,), (1347282712,), (1347282731,), (1347282761,), (1347282784,), (1347282817,), (1347283044,), (1347283072,), (1347283177,), (1347283468,), (1347284156,), (1347284427,), (1347284456,), (1347284474,), (1347284520,), (1347284542,), (1347284699,), (1347284724,), (1347284752,), (1347284773,), (1347284797,), (1347284811,), (1347284837,), (1347284840,), (1347284843,), (1347284844,), (1347285118,), (1347285172,), (1347285210,), (1347285281,), (1347285341,), (1347285409,), (1347285586,), (1347285645,), (1347285717,), (1347285787,), (1347285851,), (1347286187,), (1347286017,), (1347286073,), (1347286128,), (1347287063,), (1347287124,), (1347287189,), (1347287245,), (1347287320,), (1347287386,), (1347288016,), (1347288081,), (1347288136,), (1347288261,), (1347288320,), (1347288732,), (1347288750,), (1347288792,), (1347288844,), (1347288882,), (1347288921,), (1347289314,), (1347289360,), (1347289389,), (1347289444,), (1347289475,), (1347289982,), (1347290033,), (1347290061,), (1347290079,), (1347290205,), (1347290223,), (1347290228,), (1347290244,), (1347290247,), (1347290258,), (1347290282,), (1347290390,), (1347290538,), (1347290549,), (1347290556,), (1347290615,), (1347290629,), (1347290638,), (1347290641,), (1347290646,), (1347290650,), (1347290681,), (1347290708,), (1347290720,), (1347290745,), (1347290753,), (1347290869,), (1347290874,), (1347290878,), (1347290884,), (1347291121,), (1347291122,), (1347291125,), (1347291129,), (1347291134,), (1347291220,), (1347291225,), (1347291230,), (1347291235,), (1347291240,), (1347291244,), (1347291360,), (1347291366,), (1347291372,), (1347291483,), (1347291548,), (1347291630,), (1347291648,), (1347291665,), (1347291695,), (1347291810,), (1347291760,), (1347291786,), (1347291799,), (1347291986,), (1347291994,), (1347292005,), (1347292017,), (1347292043,), (1347292065,), (1347292202,), (1347292238,), (1347292261,), (1347292291,), (1347292560,), (1347292585,), (1347292628,), (1347292679,), (1347292950,), (1347293571,), (1347293587,), (1347293592,), (1347293666,), (1347293672,), (1347293678,), (1347293685,), (1347293723,), (1347293728,), (1347293732,), (1347293745,), (1347293756,), (1347293762,), (1347293886,), (1347293891,), (1347293897,), (1347293903,), (1347293907,), (1347293990,), (1347293998,), (1347294021,), (1347294059,), (1347294096,), (1347294143,), (1347294450,), (1347294482,), (1347294538,), (1347294592,), (1347294749,), (1347294756,), (1347294763,), (1347294770,), (1347294777,), (1347294784,), (1347294802,), (1347294808,), (1347294883,), (1347294942,), (1347294965,), (1347295427,), (1347295679,), (1347295164,), (1347295206,), (1347295230,), (1347295313,), (1347295389,), (1347295507,), (1347295516,), (1347295540,), (1347295608,), (1347295635,), (1347295648,), (1347295670,), (1347295674,), (1347296006,), (1347296022,), (1347296039,), (1347296055,), (1347296139,), (1347296143,), (1347296147,), (1347296151,), (1347296377,), (1347296530,), (1347296553,), (1347296576,), (1347296663,), (1347296667,), (1347296671,), (1347296675,), (1347296787,), (1347296806,), (1347296827,), (1347296853,), (1347296879,), (1347296902,), (1347297113,), (1347297136,), (1347297164,), (1347297436,), (1347297441,), (1347297443,), (1347297447,), (1347297455,), (1347297465,), (1347298000,), (1347298073,), (1347298103,), (1347298176,), (1347298262,), (1347298306,), (1347298782,), (1347298851,), (1347298940,), (1347299425,), (1347299475,), (1347299533,), (1347299594,), (1347299667,), (1347299734,), (1347300414,), (1347300253,), (1347300339,), (1347300366,), (1347300408,), (1347300537,), (1347300558,), (1347300576,), (1347300584,), (1347300594,), (1347300603,), (1347300642,), (1347300652,), (1347300654,), (1347300659,), (1347300663,), (1347300825,), (1347300832,), (1347300850,), (1347300861,), (1347300863,), (1347300927,), (1347300938,), (1347300947,), (1347300960,), (1347300997,), (1347301002,), (1347301286,), (1347301308,), (1347301318,), (1347301327,), (1347301333,), (1347301415,), (1347301421,), (1347301427,), (1347301430,), (1347301435,), (1347301461,), (1347301465,), (1347301468,), (1347301472,), (1347301509,), (1347301515,), (1347301524,), (1347301532,), (1347301539,), (1347301544,), (1347301595,), (1347301600,), (1347301605,), (1347301611,), (1347301637,), (1347301642,), (1347301652,), (1347301661,), (1347301668,), (1347301854,), (1347301904,), (1347301937,), (1347304330,), (1347304305,), (1347304482,), (1347305156,), (1347305181,), (1347305210,), (1347305821,), (1347306149,), (1347306307,), (1347306651,), (1347306655,), (1347306763,), (1347307045,), (1347307341,), (1347307552,), (1347307558,), (1347307567,), (1347307569,), (1347307757,), (1347307786,), (1347307788,), (1347307854,), (1347307856,), (1347307858,), (1347307862,), (1347307894,), (1347307896,), (1347307902,), (1347307906,), (1347307909,), (1347307918,), (1347307987,), (1347307993,), (1347307998,), (1347308000,), (1347308004,), (1347308043,), (1347308047,), (1347308049,), (1347308078,), (1347308501,), (1347308588,), (1347308698,), (1347308930,), (1347308952,), (1347308954,), (1347308962,), (1347308998,), (1347309159,), (1347309162,), (1347309165,), (1347309183,), (1347309185,), (1347309195,), (1347309240,), (1347309298,), (1347309302,), (1347309305,), (1347309341,), (1347309343,), (1347309345,), (1347309347,), (1347309370,), (1347309406,), (1347309401,), (1347309404,), (1347309613,), (1347309762,), (1347309768,), (1347309775,), (1347309812,), (1347310018,), (1347310022,), (1347310113,), (1347310120,), (1347310127,), (1347310259,), (1347310262,), (1347310265,), (1347310269,), (1347310273,), (1347310308,), (1347310311,), (1347310317,), (1347310320,), (1347310334,), (1347310433,), (1347310437,), (1347310440,), (1347310467,), (1347310579,), (1347310584,), (1347310686,), (1347310690,), (1347310693,), (1347310696,), (1347310746,), (1347310751,), (1347310756,), (1347310764,), (1347310766,), (1347310813,), (1347310816,), (1347310819,), (1347310940,), (1347310946,), (1347310948,), (1347311075,), (1347311079,), (1347311083,), (1347311086,), (1347311088,), (1347311091,), (1347311115,), (1347311117,), (1347311121,), (1347311124,), (1347311160,), (1347311164,), (1347311174,), (1347311182,), (1347311185,), (1347311246,), (1347311224,), (1347311226,), (1347311229,), (1347311236,), (1347311296,), (1347311331,), (1347311341,), (1347311348,), (1347311352,), (1347311356,), (1347311418,), (1347311421,), (1347311425,), (1347311429,), (1347311432,), (1347311602,), (1347311607,), (1347311611,), (1347311666,), (1347311668,), (1347311670,), (1347311672,), (1347311673,), (1347311803,), (1347311922,), (1347311924,), (1347311926,), (1347311954,), (1347311958,), (1347311974,), (1347311988,), (1347311995,), (1347312021,), (1347312025,), (1347312030,), (1347312036,), (1347312046,), (1347312084,), (1347312090,), (1347312094,), (1347312101,), (1347312120,), (1347312124,), (1347312129,), (1347312137,), (1347312142,), (1347312180,), (1347312186,), (1347312199,), (1347312202,), (1347312206,), (1347312219,), (1347312291,), (1347312295,), (1347312320,), (1347312350,), (1347312381,), (1347312728,), (1347312745,), (1347312750,), (1347313527,), (1347313558,), (1347313585,), (1347313613,), (1347313646,), (1347313652,), (1347313687,), (1347313695,), (1347313719,), (1347313837,), (1347313796,), (1347313822,), (1347314525,), (1347314634,), (1347314761,), (1347314831,), (1347314866,), (1347314979,), (1347314981,), (1347314983,), (1347314987,), (1347314995,), (1347315070,), (1347315076,), (1347315126,), (1347315203,), (1347315261,), (1347315319,), (1347315736,), (1347315765,), (1347316162,), (1347316168,), (1347316196,), (1347316246,), (1347316276,), (1347316496,), (1347316538,), (1347316589,), (1347316626,), (1347316903,), (1347316942,), (1347316969,), (1347316997,), (1347318108,), (1347318377,), (1347319408,), (1347319424,), (1347319440,), (1347319459,), (1347319797,), (1347319841,), (1347319887,), (1347319908,), (1347319942,), (1347320647,), (1347320670,), (1347320724,), (1347320768,), (1347320785,), (1347320837,), (1347321265,), (1347321294,), (1347321317,), (1347321334,), (1347321639,), (1347321666,), (1347321691,), (1347321709,), (1347322125,), (1347322142,), (1347322192,), (1347322248,), (1347322962,), (1347322754,), (1347322799,), (1347322827,), (1347322891,), (1347322939,), (1347323201,), (1347323223,), (1347323831,), (1347323841,), (1347323858,), (1347323902,), (1347324028,), (1347324504,), (1347324507,), (1347324513,), (1347324523,), (1347324531,), (1347324556,), (1347324980,), (1347325003,), (1347325058,), (1347325459,), (1347325495,), (1347325565,), (1347325616,), (1347325665,), (1347325955,), (1347325989,), (1347326020,), (1347326045,), (1347326350,), (1347326392,), (1347326440,), (1347326497,), (1347326566,), (1347326948,), (1347326994,), (1347327030,), (1347327553,), (1347327631,), (1347327777,), (1347328445,), (1347328484,), (1347328540,), (1347328590,), (1347328662,), (1347329122,), (1347329267,), (1347329347,), (1347329439,), (1347329487,), (1347329980,), (1347330027,), (1347330063,), (1347330096,), (1347330135,), (1347330178,), (1347330389,), (1347330413,), (1347330459,), (1347330656,), (1347330683,), (1347330709,), (1347330738,), (1347330763,), (1347331377,), (1347331111,), (1347331193,), (1347331228,), (1347331291,), (1347331764,), (1347331808,), (1347332405,), (1347332440,), (1347332470,), (1347332498,), (1347332522,), (1347333709,), (1347334566,), (1347338666,), (1347338695,), (1347339427,), (1347343022,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25032025': {'nb_upload': 18, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21692496]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347203467, 1347202832, 1347202657, 1347202652, 1347202586, 1347202562, 1347202188, 1347202157, 1347201616, 1347201585, 1347201400, 1347201396, 1347201393, 1347201389, 1347201275, 1347201240, 1347201204, 1347201169] map_info['map_portfolio_photo'] : {21692496: [1347203467, 1347202832, 1347202657, 1347202652, 1347202586, 1347202562, 1347202188, 1347202157, 1347201616, 1347201585, 1347201400, 1347201396, 1347201393, 1347201389, 1347201275, 1347201240, 1347201204, 1347201169]} final : True mtd_id 4302 list_pids : [1347203467, 1347202832, 1347202657, 1347202652, 1347202586, 1347202562, 1347202188, 1347202157, 1347201616, 1347201585, 1347201400, 1347201396, 1347201393, 1347201389, 1347201275, 1347201240, 1347201204, 1347201169] Looping around the photos to save general results len do output : 1 /21692496Didn'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, '2691589') ('4302', '21692496', '1347203467', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202832', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202657', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202652', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202586', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202562', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202188', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347202157', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201616', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201585', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201400', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201396', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201393', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201389', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201275', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201240', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201204', None, None, None, None, None, '2691589') ('4302', None, None, None, None, None, None, None, '2691589') ('4302', '21692496', '1347201169', None, None, None, None, None, '2691589') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '21692496', 'None', None, None, None, None, '2691589'), ('4302', '21692496', '1347203467', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202832', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202657', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202652', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202586', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202562', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202188', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347202157', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201616', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201585', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201400', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201396', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201393', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201389', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201275', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201240', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201204', None, None, None, None, None, '2691589'), ('4302', '21692496', '1347201169', None, None, None, None, None, '2691589')] time used for this insertion : 0.015570640563964844 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.5995380878448486 time spend to save output : 0.01585221290588379 total time spend for step 5 : 2.6153903007507324 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 (2691589) 2.56user 2.09system 0:15.60elapsed 29%CPU (0avgtext+0avgdata 159816maxresident)k 192inputs+23272outputs (0major+77309minor)pagefaults 0swaps