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 : 3685135 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 (4178602) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4178602) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29136449 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4178602'] with mtr_portfolio_ids : ['29136449'] and first list_photo_ids : [] new path : /proc/3685135/ Name: python3 Umask: 0002 State: R (running) Tgid: 3685135 Ngid: 0 Pid: 3685135 PPid: 3685134 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3685135 NSpid: 3685135 NSpgid: 3683757 NSsid: 3683757 VmPeak: 1113360 kB VmSize: 1113360 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105332 kB VmRSS: 105332 kB RssAnon: 66288 kB RssFile: 39044 kB RssShmem: 0 kB VmData: 872088 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 45 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3685135', 'Ngid': '0', 'Pid': '3685135', 'PPid': '3685134', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3685135', 'NSpid': '3685135', 'NSpgid': '3683757', 'NSsid': '3683757', 'VmPeak': '1113360 kB', 'VmSize': '1113360 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105332 kB', 'VmRSS': '105332 kB', 'RssAnon': '66288 kB', 'RssFile': '39044 kB', 'RssShmem': '0 kB', 'VmData': '872088 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '45', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '3685135', '1113360', '0', '1113360', '872088', '105332', b'', 'marlene', '4178602') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29136449) 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 (4178602 ) ) 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 (29136449) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1397606311, 'portfolio_id': 29136449}, {'photo_id': 1397606310, 'portfolio_id': 29136449}, {'photo_id': 1397606309, 'portfolio_id': 29136449}, {'photo_id': 1397606308, 'portfolio_id': 29136449}, {'photo_id': 1397606300, 'portfolio_id': 29136449}, {'photo_id': 1397606298, 'portfolio_id': 29136449}, {'photo_id': 1397606296, 'portfolio_id': 29136449}, {'photo_id': 1397606294, 'portfolio_id': 29136449}, {'photo_id': 1397606293, 'portfolio_id': 29136449}, {'photo_id': 1397606261, 'portfolio_id': 29136449}, {'photo_id': 1397606119, 'portfolio_id': 29136449}, {'photo_id': 1397606117, 'portfolio_id': 29136449}, {'photo_id': 1397606115, 'portfolio_id': 29136449}, {'photo_id': 1397606114, 'portfolio_id': 29136449}, {'photo_id': 1397606113, 'portfolio_id': 29136449}, {'photo_id': 1397606105, 'portfolio_id': 29136449}, {'photo_id': 1397606042, 'portfolio_id': 29136449}, {'photo_id': 1397606036, 'portfolio_id': 29136449}, {'photo_id': 1397606033, 'portfolio_id': 29136449}, {'photo_id': 1397606028, 'portfolio_id': 29136449}, {'photo_id': 1397605961, 'portfolio_id': 29136449}, {'photo_id': 1397605951, 'portfolio_id': 29136449}, {'photo_id': 1397605949, 'portfolio_id': 29136449}, {'photo_id': 1397605948, 'portfolio_id': 29136449}, {'photo_id': 1397605947, 'portfolio_id': 29136449}, {'photo_id': 1397605946, 'portfolio_id': 29136449}, {'photo_id': 1397605938, 'portfolio_id': 29136449}, {'photo_id': 1397605936, 'portfolio_id': 29136449}, {'photo_id': 1397605935, 'portfolio_id': 29136449}, {'photo_id': 1397605934, 'portfolio_id': 29136449}, {'photo_id': 1397605929, 'portfolio_id': 29136449}, {'photo_id': 1397605927, 'portfolio_id': 29136449}, {'photo_id': 1397605926, 'portfolio_id': 29136449}, {'photo_id': 1397605925, 'portfolio_id': 29136449}, {'photo_id': 1397605924, 'portfolio_id': 29136449}, {'photo_id': 1397605898, 'portfolio_id': 29136449}, {'photo_id': 1397605896, 'portfolio_id': 29136449}, {'photo_id': 1397605895, 'portfolio_id': 29136449}, {'photo_id': 1397605894, 'portfolio_id': 29136449}, {'photo_id': 1397605893, 'portfolio_id': 29136449}, {'photo_id': 1397605886, 'portfolio_id': 29136449}, {'photo_id': 1397605885, 'portfolio_id': 29136449}] map_portfolio_id_photo_id: {29136449: [1397606311, 1397606310, 1397606309, 1397606308, 1397606300, 1397606298, 1397606296, 1397606294, 1397606293, 1397606261, 1397606119, 1397606117, 1397606115, 1397606114, 1397606113, 1397606105, 1397606042, 1397606036, 1397606033, 1397606028, 1397605961, 1397605951, 1397605949, 1397605948, 1397605947, 1397605946, 1397605938, 1397605936, 1397605935, 1397605934, 1397605929, 1397605927, 1397605926, 1397605925, 1397605924, 1397605898, 1397605896, 1397605895, 1397605894, 1397605893, 1397605886, 1397605885]} ##### 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.018955469131469727 #### 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 Dec 3 08:40:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29136449) 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 : 29136449 get user id for portfolio 29136449 get sub ptf for main ptf 29136449, type 3726 and hashtags ['autre_refus', 'metal', 'mal_croppe', 'Teint_Dans_La_Masse', 'Carton_brun', 'papier', 'plastique', 'kraft', 'flou', 'cartonnette', 'Carton_gris', 'environnement'] 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`=29136449 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','mal_croppe','Teint_Dans_La_Masse','Carton_brun','papier','plastique','kraft','flou','cartonnette','Carton_gris','environnement')) 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`=29136449 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','mal_croppe','Teint_Dans_La_Masse','Carton_brun','papier','plastique','kraft','flou','cartonnette','Carton_gris','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29136449, 'sub_port_id': 29136461, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799079, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 28)}, 'plastique': {'main_port_id': 29136449, 'sub_port_id': 29136462, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799080, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 28)}, 'flou': {'main_port_id': 29136449, 'sub_port_id': 29136463, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799081, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 29136449, 'sub_port_id': 29136464, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799082, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 28)}, 'kraft': {'main_port_id': 29136449, 'sub_port_id': 29136465, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799083, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 28)}, 'environnement': {'main_port_id': 29136449, 'sub_port_id': 29136466, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799084, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 28)}, 'Carton_brun': {'main_port_id': 29136449, 'sub_port_id': 29136467, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799085, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 28)}, 'cartonnette': {'main_port_id': 29136449, 'sub_port_id': 29136468, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799086, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 28)}, 'metal': {'main_port_id': 29136449, 'sub_port_id': 29136469, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799087, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 28)}, 'mal_croppe': {'main_port_id': 29136449, 'sub_port_id': 29136470, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799088, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 28)}, 'papier': {'main_port_id': 29136449, 'sub_port_id': 29136471, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799089, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 28)}, 'autre_refus': {'main_port_id': 29136449, 'sub_port_id': 29136472, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799090, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29136461 , 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=29136449 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 (29136461) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29136449) result : ((1397605885,), (1397605886,), (1397605893,), (1397605894,), (1397605895,), (1397605896,), (1397605898,), (1397605924,), (1397605925,), (1397605926,), (1397605927,), (1397605929,), (1397605934,), (1397605935,), (1397605936,), (1397605938,), (1397605946,), (1397605947,), (1397605948,), (1397605949,), (1397605951,), (1397605961,), (1397606028,), (1397606033,), (1397606036,), (1397606042,), (1397606105,), (1397606113,), (1397606114,), (1397606115,), (1397606117,), (1397606119,), (1397606261,), (1397606293,), (1397606294,), (1397606296,), (1397606298,), (1397606300,), (1397606308,), (1397606309,), (1397606310,), (1397606311,)) 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 (1397606300) 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 29136462 , 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=29136449 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 (29136462) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29136449) result : ((1397605885,), (1397605886,), (1397605893,), (1397605894,), (1397605895,), (1397605896,), (1397605898,), (1397605924,), (1397605925,), (1397605926,), (1397605927,), (1397605929,), (1397605934,), (1397605935,), (1397605936,), (1397605938,), (1397605946,), (1397605947,), (1397605948,), (1397605949,), (1397605951,), (1397605961,), (1397606028,), (1397606033,), (1397606036,), (1397606042,), (1397606105,), (1397606113,), (1397606114,), (1397606115,), (1397606117,), (1397606119,), (1397606261,), (1397606293,), (1397606294,), (1397606296,), (1397606298,), (1397606300,), (1397606308,), (1397606309,), (1397606310,), (1397606311,)) 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 (1397606300) 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 29136463 , 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=29136449 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 (29136463) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29136449) result : ((1397605885,), (1397605886,), (1397605893,), (1397605894,), (1397605895,), (1397605896,), (1397605898,), (1397605924,), (1397605925,), (1397605926,), (1397605927,), (1397605929,), (1397605934,), (1397605935,), (1397605936,), (1397605938,), (1397605946,), (1397605947,), (1397605948,), (1397605949,), (1397605951,), (1397605961,), (1397606028,), (1397606033,), (1397606036,), (1397606042,), (1397606105,), (1397606113,), (1397606114,), (1397606115,), (1397606117,), (1397606119,), (1397606261,), (1397606293,), (1397606294,), (1397606296,), (1397606298,), (1397606300,), (1397606308,), (1397606309,), (1397606310,), (1397606311,)) 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 (1397606300) 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 29136464 , 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=29136449 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 (29136464) result : ((1397605941,), (1397606340,), (1397606341,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29136449) result : ((1397605885,), (1397605886,), (1397605893,), (1397605894,), (1397605895,), (1397605896,), (1397605898,), (1397605924,), (1397605925,), (1397605926,), (1397605927,), (1397605929,), (1397605934,), (1397605935,), (1397605936,), (1397605938,), (1397605946,), (1397605947,), (1397605948,), (1397605949,), (1397605951,), (1397605961,), (1397606028,), (1397606033,), (1397606036,), (1397606042,), (1397606105,), (1397606113,), (1397606114,), (1397606115,), (1397606117,), (1397606119,), (1397606261,), (1397606293,), (1397606294,), (1397606296,), (1397606298,), (1397606300,), (1397606308,), (1397606309,), (1397606310,), (1397606311,)) 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 (1397606300) 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 29136465 , 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=29136449 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 (29136465) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29136449) result : ((1397605885,), (1397605886,), (1397605893,), (1397605894,), (1397605895,), (1397605896,), (1397605898,), (1397605924,), (1397605925,), (1397605926,), (1397605927,), (1397605929,), (1397605934,), (1397605935,), (1397605936,), (1397605938,), (1397605946,), (1397605947,), (1397605948,), (1397605949,), (1397605951,), (1397605961,), (1397606028,), (1397606033,), (1397606036,), (1397606042,), (1397606105,), (1397606113,), (1397606114,), (1397606115,), (1397606117,), (1397606119,), (1397606261,), (1397606293,), (1397606294,), (1397606296,), (1397606298,), (1397606300,), (1397606308,), (1397606309,), (1397606310,), (1397606311,)) 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 (1397606300) 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 29136466 , 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=29136449 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 (29136466) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29136449) result : ((1397605885,), (1397605886,), (1397605893,), (1397605894,), (1397605895,), (1397605896,), (1397605898,), (1397605924,), (1397605925,), (1397605926,), (1397605927,), (1397605929,), (1397605934,), (1397605935,), (1397605936,), (1397605938,), (1397605946,), (1397605947,), (1397605948,), (1397605949,), (1397605951,), (1397605961,), (1397606028,), (1397606033,), (1397606036,), (1397606042,), (1397606105,), (1397606113,), (1397606114,), (1397606115,), (1397606117,), (1397606119,), (1397606261,), (1397606293,), (1397606294,), (1397606296,), (1397606298,), (1397606300,), (1397606308,), (1397606309,), (1397606310,), (1397606311,)) 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 (1397606300) 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 29136467 , 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=29136449 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 (29136467) result : ((1397605942,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29136449) result : ((1397605885,), (1397605886,), (1397605893,), (1397605894,), (1397605895,), (1397605896,), (1397605898,), (1397605924,), (1397605925,), (1397605926,), (1397605927,), (1397605929,), (1397605934,), (1397605935,), (1397605936,), (1397605938,), (1397605946,), (1397605947,), (1397605948,), (1397605949,), (1397605951,), (1397605961,), (1397606028,), (1397606033,), (1397606036,), (1397606042,), (1397606105,), (1397606113,), (1397606114,), (1397606115,), (1397606117,), (1397606119,), (1397606261,), (1397606293,), (1397606294,), (1397606296,), (1397606298,), (1397606300,), (1397606308,), (1397606309,), (1397606310,), (1397606311,)) 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 (1397606300) 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 29136468 , 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=29136449 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 (29136468) result : ((1397606301,), (1397606302,), (1397606303,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29136449) result : ((1397605885,), (1397605886,), (1397605893,), (1397605894,), (1397605895,), (1397605896,), (1397605898,), (1397605924,), (1397605925,), (1397605926,), (1397605927,), (1397605929,), (1397605934,), (1397605935,), (1397605936,), (1397605938,), (1397605946,), (1397605947,), (1397605948,), (1397605949,), (1397605951,), (1397605961,), (1397606028,), (1397606033,), (1397606036,), (1397606042,), (1397606105,), (1397606113,), (1397606114,), (1397606115,), (1397606117,), (1397606119,), (1397606261,), (1397606293,), (1397606294,), (1397606296,), (1397606298,), (1397606300,), (1397606308,), (1397606309,), (1397606310,), (1397606311,)) 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 (1397606300) 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 29136469 , 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=29136449 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 (29136469) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29136449) result : ((1397605885,), (1397605886,), (1397605893,), (1397605894,), (1397605895,), (1397605896,), (1397605898,), (1397605924,), (1397605925,), (1397605926,), (1397605927,), (1397605929,), (1397605934,), (1397605935,), (1397605936,), (1397605938,), (1397605946,), (1397605947,), (1397605948,), (1397605949,), (1397605951,), (1397605961,), (1397606028,), (1397606033,), (1397606036,), (1397606042,), (1397606105,), (1397606113,), (1397606114,), (1397606115,), (1397606117,), (1397606119,), (1397606261,), (1397606293,), (1397606294,), (1397606296,), (1397606298,), (1397606300,), (1397606308,), (1397606309,), (1397606310,), (1397606311,)) 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 (1397606300) 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 29136470 , 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=29136449 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 (29136470) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29136449) result : ((1397605885,), (1397605886,), (1397605893,), (1397605894,), (1397605895,), (1397605896,), (1397605898,), (1397605924,), (1397605925,), (1397605926,), (1397605927,), (1397605929,), (1397605934,), (1397605935,), (1397605936,), (1397605938,), (1397605946,), (1397605947,), (1397605948,), (1397605949,), (1397605951,), (1397605961,), (1397606028,), (1397606033,), (1397606036,), (1397606042,), (1397606105,), (1397606113,), (1397606114,), (1397606115,), (1397606117,), (1397606119,), (1397606261,), (1397606293,), (1397606294,), (1397606296,), (1397606298,), (1397606300,), (1397606308,), (1397606309,), (1397606310,), (1397606311,)) 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 (1397606300) 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 29136471 , 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=29136449 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 (29136471) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29136449) result : ((1397605885,), (1397605886,), (1397605893,), (1397605894,), (1397605895,), (1397605896,), (1397605898,), (1397605924,), (1397605925,), (1397605926,), (1397605927,), (1397605929,), (1397605934,), (1397605935,), (1397605936,), (1397605938,), (1397605946,), (1397605947,), (1397605948,), (1397605949,), (1397605951,), (1397605961,), (1397606028,), (1397606033,), (1397606036,), (1397606042,), (1397606105,), (1397606113,), (1397606114,), (1397606115,), (1397606117,), (1397606119,), (1397606261,), (1397606293,), (1397606294,), (1397606296,), (1397606298,), (1397606300,), (1397606308,), (1397606309,), (1397606310,), (1397606311,)) 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 (1397606300) 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 29136472 , 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=29136449 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 (29136472) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29136449) result : ((1397605885,), (1397605886,), (1397605893,), (1397605894,), (1397605895,), (1397605896,), (1397605898,), (1397605924,), (1397605925,), (1397605926,), (1397605927,), (1397605929,), (1397605934,), (1397605935,), (1397605936,), (1397605938,), (1397605946,), (1397605947,), (1397605948,), (1397605949,), (1397605951,), (1397605961,), (1397606028,), (1397606033,), (1397606036,), (1397606042,), (1397606105,), (1397606113,), (1397606114,), (1397606115,), (1397606117,), (1397606119,), (1397606261,), (1397606293,), (1397606294,), (1397606296,), (1397606298,), (1397606300,), (1397606308,), (1397606309,), (1397606310,), (1397606311,)) 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 (1397606300) 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`=29136449 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','mal_croppe','Teint_Dans_La_Masse','Carton_brun','papier','plastique','kraft','flou','cartonnette','Carton_gris','environnement')) 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`=29136449 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','mal_croppe','Teint_Dans_La_Masse','Carton_brun','papier','plastique','kraft','flou','cartonnette','Carton_gris','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29136449, 'sub_port_id': 29136473, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799091, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 30)}, 'plastique': {'main_port_id': 29136449, 'sub_port_id': 29136474, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799092, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 30)}, 'flou': {'main_port_id': 29136449, 'sub_port_id': 29136475, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799093, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 29136449, 'sub_port_id': 29136476, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799094, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 30)}, 'kraft': {'main_port_id': 29136449, 'sub_port_id': 29136477, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799095, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 30)}, 'environnement': {'main_port_id': 29136449, 'sub_port_id': 29136478, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799096, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 30)}, 'Carton_brun': {'main_port_id': 29136449, 'sub_port_id': 29136479, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799097, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 30)}, 'cartonnette': {'main_port_id': 29136449, 'sub_port_id': 29136480, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799098, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 30)}, 'metal': {'main_port_id': 29136449, 'sub_port_id': 29136481, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799099, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 30)}, 'mal_croppe': {'main_port_id': 29136449, 'sub_port_id': 29136482, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799100, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 30)}, 'papier': {'main_port_id': 29136449, 'sub_port_id': 29136483, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799101, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 30)}, 'autre_refus': {'main_port_id': 29136449, 'sub_port_id': 29136484, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19799102, 'last_updated_at': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 8, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 8, 33, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29136473,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29136461 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29136474,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29136462 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29136475,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29136463 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29136476,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29136464 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29136477,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29136465 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29136478,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29136466 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29136479,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29136467 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29136480,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29136468 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29136481,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29136469 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29136482,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29136470 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29136483,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29136471 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29136484,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29136472 lien utilise dans velours : https://marlene.fotonower.com/velours/29136473,29136474,29136475,29136476,29136477,29136478,29136479,29136480,29136481,29136482,29136483,29136484?tags=Carton_gris,plastique,flou,Teint_Dans_La_Masse,kraft,environnement,Carton_brun,cartonnette,metal,mal_croppe,papier,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29136449]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1397606311, 1397606310, 1397606309, 1397606308, 1397606300, 1397606298, 1397606296, 1397606294, 1397606293, 1397606261, 1397606119, 1397606117, 1397606115, 1397606114, 1397606113, 1397606105] map_info['map_portfolio_photo'] : {29136449: [1397606311, 1397606310, 1397606309, 1397606308, 1397606300, 1397606298, 1397606296, 1397606294, 1397606293, 1397606261, 1397606119, 1397606117, 1397606115, 1397606114, 1397606113, 1397606105, 1397606042, 1397606036, 1397606033, 1397606028, 1397605961, 1397605951, 1397605949, 1397605948, 1397605947, 1397605946, 1397605938, 1397605936, 1397605935, 1397605934, 1397605929, 1397605927, 1397605926, 1397605925, 1397605924, 1397605898, 1397605896, 1397605895, 1397605894, 1397605893, 1397605886, 1397605885]} final : False mtd_id 4302 list_pids : [1397606311, 1397606310, 1397606309, 1397606308, 1397606300, 1397606298, 1397606296, 1397606294, 1397606293, 1397606261, 1397606119, 1397606117, 1397606115, 1397606114, 1397606113, 1397606105] Looping around the photos to save general results len do output : 1 /29136449. 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, '4178602') ('4302', '29136449', '1397606311', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606310', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606309', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606308', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606300', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606298', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606296', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606294', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606293', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606261', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606119', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606117', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606115', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606114', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606113', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606105', None, None, None, None, None, '4178602') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '29136449', "{'Carton_gris': 29136461, 'plastique': 29136462, 'flou': 29136463, 'Teint_Dans_La_Masse': 29136464, 'kraft': 29136465, 'environnement': 29136466, 'Carton_brun': 29136467, 'cartonnette': 29136468, 'metal': 29136469, 'mal_croppe': 29136470, 'papier': 29136471, 'autre_refus': 29136472}", None, None, None, None, '4178602'), ('4302', '29136449', '1397606311', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606310', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606309', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606308', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606300', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606298', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606296', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606294', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606293', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606261', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606119', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606117', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606115', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606114', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606113', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606105', None, None, None, None, None, '4178602')] time used for this insertion : 0.01980137825012207 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5204358100891113 time spend to save output : 0.020114898681640625 total time spend for step 1 : 0.540550708770752 step2:final Wed Dec 3 08:40:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (29136449) 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 29136449 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1397605886,1397605885,1397605898,1397605896,1397605895,1397605894,1397605893,1397605929,1397605927,1397605926,1397605925,1397605924,1397605938,1397605936,1397605935,1397605934,1397605961,1397605951,1397605949,1397605948,1397605947,1397605946,1397606042,1397606036,1397606033,1397606028,1397606311,1397606119,1397606117,1397606310,1397606115,1397606309,1397606114,1397606308,1397606113,1397606300,1397606298,1397606105,1397606296,1397606294,1397606293,1397606261); 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([29136449]) Inside saveOutput : final : False verbose : True original output for save of step final : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ('0.03965501060043461',)} new output for save of step final : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ('0.03965501060043461',)} [1397606311, 1397606310, 1397606309, 1397606308, 1397606300, 1397606298, 1397606296, 1397606294, 1397606293, 1397606261, 1397606119, 1397606117, 1397606115, 1397606114, 1397606113, 1397606105] map_info['map_portfolio_photo'] : {29136449: [1397606311, 1397606310, 1397606309, 1397606308, 1397606300, 1397606298, 1397606296, 1397606294, 1397606293, 1397606261, 1397606119, 1397606117, 1397606115, 1397606114, 1397606113, 1397606105, 1397606042, 1397606036, 1397606033, 1397606028, 1397605961, 1397605951, 1397605949, 1397605948, 1397605947, 1397605946, 1397605938, 1397605936, 1397605935, 1397605934, 1397605929, 1397605927, 1397605926, 1397605925, 1397605924, 1397605898, 1397605896, 1397605895, 1397605894, 1397605893, 1397605886, 1397605885]} final : False mtd_id 4302 list_pids : [1397606311, 1397606310, 1397606309, 1397606308, 1397606300, 1397606298, 1397606296, 1397606294, 1397606293, 1397606261, 1397606119, 1397606117, 1397606115, 1397606114, 1397606113, 1397606105] Looping around the photos to save general results len do output : 16 /1397606311.Didn't retrieve data . /1397606310.Didn't retrieve data . /1397606309.Didn't retrieve data . /1397606308.Didn't retrieve data . /1397606300.Didn't retrieve data . /1397606298.Didn't retrieve data . /1397606296.Didn't retrieve data . /1397606294.Didn't retrieve data . /1397606293.Didn't retrieve data . /1397606261.Didn't retrieve data . /1397606119.Didn't retrieve data . /1397606117.Didn't retrieve data . /1397606115.Didn't retrieve data . /1397606114.Didn't retrieve data . /1397606113.Didn't retrieve data . /1397606105.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, '4178602') ('4302', '29136449', '1397606311', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606310', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606309', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606308', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606300', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606298', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606296', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606294', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606293', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606261', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606119', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606117', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606115', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606114', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606113', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606105', None, None, None, None, None, '4178602') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '29136449', '1397606311', '0.03965501060043461', None, None, None, None, '4178602'), ('4302', '29136449', '1397606310', '0.03965501060043461', None, None, None, None, '4178602'), ('4302', '29136449', '1397606309', '0.03965501060043461', None, None, None, None, '4178602'), ('4302', '29136449', '1397606308', '0.03965501060043461', None, None, None, None, '4178602'), ('4302', '29136449', '1397606300', '0.03965501060043461', None, None, None, None, '4178602'), ('4302', '29136449', '1397606298', '0.03965501060043461', None, None, None, None, '4178602'), ('4302', '29136449', '1397606296', '0.03965501060043461', None, None, None, None, '4178602'), ('4302', '29136449', '1397606294', '0.03965501060043461', None, None, None, None, '4178602'), ('4302', '29136449', '1397606293', '0.03965501060043461', None, None, None, None, '4178602'), ('4302', '29136449', '1397606261', '0.03965501060043461', None, None, None, None, '4178602'), ('4302', '29136449', '1397606119', '0.03965501060043461', None, None, None, None, '4178602'), ('4302', '29136449', '1397606117', '0.03965501060043461', None, None, None, None, '4178602'), ('4302', '29136449', '1397606115', '0.03965501060043461', None, None, None, None, '4178602'), ('4302', '29136449', '1397606114', '0.03965501060043461', None, None, None, None, '4178602'), ('4302', '29136449', '1397606113', '0.03965501060043461', None, None, None, None, '4178602'), ('4302', '29136449', '1397606105', '0.03965501060043461', None, None, None, None, '4178602')] time used for this insertion : 0.019333362579345703 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07989692687988281 time spend to save output : 0.02003955841064453 total time spend for step 2 : 0.09993648529052734 step3:velours_tree Wed Dec 3 08:40:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {29136449: [{'Carton_gris': 29136461, 'plastique': 29136462, 'flou': 29136463, 'Teint_Dans_La_Masse': 29136464, 'kraft': 29136465, 'environnement': 29136466, 'Carton_brun': 29136467, 'cartonnette': 29136468, 'metal': 29136469, 'mal_croppe': 29136470, 'papier': 29136471, 'autre_refus': 29136472}]} input_args_next_step : {29136449: ()} output_args : {29136449: [{'Carton_gris': 29136461, 'plastique': 29136462, 'flou': 29136463, 'Teint_Dans_La_Masse': 29136464, 'kraft': 29136465, 'environnement': 29136466, 'Carton_brun': 29136467, 'cartonnette': 29136468, 'metal': 29136469, 'mal_croppe': 29136470, 'papier': 29136471, 'autre_refus': 29136472}]} args : 29136449 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 29136461, 'plastique': 29136462, 'flou': 29136463, 'Teint_Dans_La_Masse': 29136464, 'kraft': 29136465, 'environnement': 29136466, 'Carton_brun': 29136467, 'cartonnette': 29136468, 'metal': 29136469, 'mal_croppe': 29136470, 'papier': 29136471, 'autre_refus': 29136472},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29136449) 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([29136449]) 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.2509448528289795 time spend to save output : 3.814697265625e-05 total time spend for step 3 : 0.25098299980163574 step4:send_mail_cod Wed Dec 3 08:41:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ('0.03965501060043461',)} input_args_next_step : {1397606311: ()} output_args : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ('0.03965501060043461',)} args : 1397606311 depend.output_id : 0 input_args_next_step : {1397606311: ('0.03965501060043461',), 1397606310: ()} output_args : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ('0.03965501060043461',)} args : 1397606310 depend.output_id : 0 input_args_next_step : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ()} output_args : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ('0.03965501060043461',)} args : 1397606309 depend.output_id : 0 input_args_next_step : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ()} output_args : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ('0.03965501060043461',)} args : 1397606308 depend.output_id : 0 input_args_next_step : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ()} output_args : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ('0.03965501060043461',)} args : 1397606300 depend.output_id : 0 input_args_next_step : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ()} output_args : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ('0.03965501060043461',)} args : 1397606298 depend.output_id : 0 input_args_next_step : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ()} output_args : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ('0.03965501060043461',)} args : 1397606296 depend.output_id : 0 input_args_next_step : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ()} output_args : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ('0.03965501060043461',)} args : 1397606294 depend.output_id : 0 input_args_next_step : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ()} output_args : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ('0.03965501060043461',)} args : 1397606293 depend.output_id : 0 input_args_next_step : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ()} output_args : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ('0.03965501060043461',)} args : 1397606261 depend.output_id : 0 input_args_next_step : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ()} output_args : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ('0.03965501060043461',)} args : 1397606119 depend.output_id : 0 input_args_next_step : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ()} output_args : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ('0.03965501060043461',)} args : 1397606117 depend.output_id : 0 input_args_next_step : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ()} output_args : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ('0.03965501060043461',)} args : 1397606115 depend.output_id : 0 input_args_next_step : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ()} output_args : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ('0.03965501060043461',)} args : 1397606114 depend.output_id : 0 input_args_next_step : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ()} output_args : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ('0.03965501060043461',)} args : 1397606113 depend.output_id : 0 input_args_next_step : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ()} output_args : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ('0.03965501060043461',)} args : 1397606105 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 : {29136449: [{'Carton_gris': 29136461, 'plastique': 29136462, 'flou': 29136463, 'Teint_Dans_La_Masse': 29136464, 'kraft': 29136465, 'environnement': 29136466, 'Carton_brun': 29136467, 'cartonnette': 29136468, 'metal': 29136469, 'mal_croppe': 29136470, 'papier': 29136471, 'autre_refus': 29136472}]} input_args_next_step : {1397606311: ('0.03965501060043461',), 1397606310: ('0.03965501060043461',), 1397606309: ('0.03965501060043461',), 1397606308: ('0.03965501060043461',), 1397606300: ('0.03965501060043461',), 1397606298: ('0.03965501060043461',), 1397606296: ('0.03965501060043461',), 1397606294: ('0.03965501060043461',), 1397606293: ('0.03965501060043461',), 1397606261: ('0.03965501060043461',), 1397606119: ('0.03965501060043461',), 1397606117: ('0.03965501060043461',), 1397606115: ('0.03965501060043461',), 1397606114: ('0.03965501060043461',), 1397606113: ('0.03965501060043461',), 1397606105: ('0.03965501060043461',), 29136449: ()} output_args : {29136449: [{'Carton_gris': 29136461, 'plastique': 29136462, 'flou': 29136463, 'Teint_Dans_La_Masse': 29136464, 'kraft': 29136465, 'environnement': 29136466, 'Carton_brun': 29136467, 'cartonnette': 29136468, 'metal': 29136469, 'mal_croppe': 29136470, 'papier': 29136471, 'autre_refus': 29136472}]} args : 29136449 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 :17, first value : ('0.03965501060043461',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29136449) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1397606311,1397606310,1397606309,1397606308,1397606300,1397606298,1397606296,1397606294,1397606293,1397606261,1397606119,1397606117,1397606115,1397606114,1397606113,1397606105) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1397606105 begin to download photo : 1397606117 begin to download photo : 1397606294 begin to download photo : 1397606308 download finish for photo 1397606294 begin to download photo : 1397606296 download finish for photo 1397606105 begin to download photo : 1397606113 download finish for photo 1397606308 begin to download photo : 1397606309 download finish for photo 1397606117 begin to download photo : 1397606119 download finish for photo 1397606113 begin to download photo : 1397606114 download finish for photo 1397606309 begin to download photo : 1397606310 download finish for photo 1397606296 begin to download photo : 1397606298 download finish for photo 1397606119 begin to download photo : 1397606261 download finish for photo 1397606298 begin to download photo : 1397606300 download finish for photo 1397606114 begin to download photo : 1397606115 download finish for photo 1397606261 begin to download photo : 1397606293 download finish for photo 1397606310 begin to download photo : 1397606311 download finish for photo 1397606300 download finish for photo 1397606115 download finish for photo 1397606293 download finish for photo 1397606311 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette291364621764747660/ imagette291364631764747660/ imagette291364651764747660/ length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P29136449_03-12-2025_08_41_00.pdf 29136462 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29136462 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291364621764747660 29136463 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29136463 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291364631764747660 29136465 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29136465 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291364651764747660 29136468 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29136468 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397606301: '1764747547_206817_1397605936_3f6fa10f4a9bd7b28ceac7175a179000_rle_crop_4056585039_0.png', 1397606302: '1764747547_206817_1397605935_4123ec1e5321c42261d44895a7f046fa_rle_crop_4056585050_0.png', 1397606303: '1764747547_206817_1397605934_2db2486f7b089dc7c4d753e55e4c4c96_rle_crop_4056585067_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/82a4cb0aa8667a4e1be6d1b4d559d835_57153460.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/f4609c6eb965c8c5215e7334e40b5ea9_45659271.png change filename to text .imagette291364681764747660/ imagette291364681764747660/1764747547_206817_1397605935_4123ec1e5321c42261d44895a7f046fa_rle_crop_4056585050_0.png.png imagette291364681764747660/1764747547_206817_1397605934_2db2486f7b089dc7c4d753e55e4c4c96_rle_crop_4056585067_0.png.png imagette291364681764747660/1764747547_206817_1397605936_3f6fa10f4a9bd7b28ceac7175a179000_rle_crop_4056585039_0.png.png imagette291364691764747661/ imagette291364701764747661/ imagette291364721764747661/ imagette291364611764747661/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/0ef221760c15e4f26c54276dccaa9c43_34003929.png imagette291364681764747660 29136469 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29136469 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291364691764747661 29136470 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29136470 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291364701764747661 29136472 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29136472 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291364721764747661 29136461 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29136461 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291364611764747661 29136464 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29136464 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397605941: '1764747308_197905_1397605885_0876e77ccc4e68907df5b28f15e5c99c_rle_crop_4056581170_0.png', 1397606340: '1764747627_213087_1397606033_40fdd702b7955da87b7ebaa4f4f4d54d_rle_crop_4056585620_0.png', 1397606341: '1764747627_213087_1397606028_1a915b0806a967b5b43020535c2d0ad2_rle_crop_4056585630_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/3ca3a0a2f8b2bc41864c0718e5f75415_19483144.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/6be5820b87759e2181f7fff2b75ddf6f_35844461.png change filename to text .imagette291364641764747661/ imagette291364641764747661/1764747627_213087_1397606028_1a915b0806a967b5b43020535c2d0ad2_rle_crop_4056585630_0.png.png imagette291364641764747661/1764747308_197905_1397605885_0876e77ccc4e68907df5b28f15e5c99c_rle_crop_4056581170_0.png.png imagette291364641764747661/1764747627_213087_1397606033_40fdd702b7955da87b7ebaa4f4f4d54d_rle_crop_4056585620_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/283522cf946555248182ab5744eef301_175378.png imagette291364641764747661 29136467 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29136467 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397605942: '1764747308_197905_1397605885_0876e77ccc4e68907df5b28f15e5c99c_rle_crop_4056581167_0.png'} change filename to text .imagette291364671764747661/ imagette291364671764747661/1764747308_197905_1397605885_0876e77ccc4e68907df5b28f15e5c99c_rle_crop_4056581167_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/32c716ac5b711941f5d719b8817e092c_93318347.png imagette291364671764747661 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29136449 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29136473,29136474,29136475,29136476,29136477,29136478,29136479,29136480,29136481,29136482,29136483,29136484?tags=Carton_gris,plastique,flou,Teint_Dans_La_Masse,kraft,environnement,Carton_brun,cartonnette,metal,mal_croppe,papier,autre_refus your option no_mail is active, we will not send the real mail to your client args[1397606311] : ('0.03965501060043461',) no score found for photo 1397606311 We are sending mail with results at report@fotonower.com args[1397606310] : ('0.03965501060043461',) no score found for photo 1397606310 We are sending mail with results at report@fotonower.com args[1397606309] : ('0.03965501060043461',) no score found for photo 1397606309 We are sending mail with results at report@fotonower.com args[1397606308] : ('0.03965501060043461',) no score found for photo 1397606308 We are sending mail with results at report@fotonower.com args[1397606300] : ('0.03965501060043461',) no score found for photo 1397606300 We are sending mail with results at report@fotonower.com args[1397606298] : ('0.03965501060043461',) no score found for photo 1397606298 We are sending mail with results at report@fotonower.com args[1397606296] : ('0.03965501060043461',) no score found for photo 1397606296 We are sending mail with results at report@fotonower.com args[1397606294] : ('0.03965501060043461',) no score found for photo 1397606294 We are sending mail with results at report@fotonower.com args[1397606293] : ('0.03965501060043461',) no score found for photo 1397606293 We are sending mail with results at report@fotonower.com args[1397606261] : ('0.03965501060043461',) no score found for photo 1397606261 We are sending mail with results at report@fotonower.com args[1397606119] : ('0.03965501060043461',) no score found for photo 1397606119 We are sending mail with results at report@fotonower.com args[1397606117] : ('0.03965501060043461',) no score found for photo 1397606117 We are sending mail with results at report@fotonower.com args[1397606115] : ('0.03965501060043461',) no score found for photo 1397606115 We are sending mail with results at report@fotonower.com args[1397606114] : ('0.03965501060043461',) no score found for photo 1397606114 We are sending mail with results at report@fotonower.com args[1397606113] : ('0.03965501060043461',) no score found for photo 1397606113 We are sending mail with results at report@fotonower.com args[1397606105] : ('0.03965501060043461',) no score found for photo 1397606105 We are sending mail with results at report@fotonower.com refus_total : 0.03965501060043461 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29136449 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_P29136449_03-12-2025_08_41_00.pdf results_Auto_P29136449_03-12-2025_08_41_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29136449_03-12-2025_08_41_00.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','29136449','results_Auto_P29136449_03-12-2025_08_41_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29136449_03-12-2025_08_41_00.pdf','pdf','','0.16','0.03965501060043461') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29136449]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1397606311, 1397606310, 1397606309, 1397606308, 1397606300, 1397606298, 1397606296, 1397606294, 1397606293, 1397606261, 1397606119, 1397606117, 1397606115, 1397606114, 1397606113, 1397606105] map_info['map_portfolio_photo'] : {29136449: [1397606311, 1397606310, 1397606309, 1397606308, 1397606300, 1397606298, 1397606296, 1397606294, 1397606293, 1397606261, 1397606119, 1397606117, 1397606115, 1397606114, 1397606113, 1397606105, 1397606042, 1397606036, 1397606033, 1397606028, 1397605961, 1397605951, 1397605949, 1397605948, 1397605947, 1397605946, 1397605938, 1397605936, 1397605935, 1397605934, 1397605929, 1397605927, 1397605926, 1397605925, 1397605924, 1397605898, 1397605896, 1397605895, 1397605894, 1397605893, 1397605886, 1397605885]} final : False mtd_id 4302 list_pids : [1397606311, 1397606310, 1397606309, 1397606308, 1397606300, 1397606298, 1397606296, 1397606294, 1397606293, 1397606261, 1397606119, 1397606117, 1397606115, 1397606114, 1397606113, 1397606105] 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, '4178602') ('4302', '29136449', '1397606311', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606310', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606309', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606308', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606300', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606298', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606296', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606294', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606293', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606261', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606119', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606117', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606115', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606114', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606113', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606105', None, None, None, None, None, '4178602') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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', '29136449', '1397606311', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606310', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606309', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606308', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606300', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606298', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606296', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606294', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606293', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606261', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606119', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606117', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606115', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606114', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606113', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606105', None, None, None, None, None, '4178602')] time used for this insertion : 0.019802093505859375 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.536963939666748 time spend to save output : 0.0200498104095459 total time spend for step 4 : 2.557013750076294 step5:split_time_score Wed Dec 3 08:41:02 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 : ['29136449'] 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 : [('29136449',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29136449) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1397606294: {'path': 'temp/1764747660_3685135_1397606294_f079cdce5d110b722aad7784c028f1af.jpg', 'extension': 'jpg'}, 1397606296: {'path': 'temp/1764747660_3685135_1397606296_6824ccea9dfefc6335d495877ae5da36.jpg', 'extension': 'jpg'}, 1397606298: {'path': 'temp/1764747660_3685135_1397606298_31f0861ec0d35177defd17ab2d901ed4.jpg', 'extension': 'jpg'}, 1397606300: {'path': 'temp/1764747660_3685135_1397606300_80851a8295779063a7433c4b09963d5f.jpg', 'extension': 'jpg'}, 1397606105: {'path': 'temp/1764747660_3685135_1397606105_e2b2576da6a9847c5adc385cecd362d4.jpg', 'extension': 'jpg'}, 1397606113: {'path': 'temp/1764747660_3685135_1397606113_d72241f108cc2d89da5bcd9b8d086313.jpg', 'extension': 'jpg'}, 1397606114: {'path': 'temp/1764747660_3685135_1397606114_a98c1e6c7aa1094abce02062ef4b3a95.jpg', 'extension': 'jpg'}, 1397606115: {'path': 'temp/1764747660_3685135_1397606115_4af5e829d8bcdd81ba0c0c5ae18e135d.jpg', 'extension': 'jpg'}, 1397606117: {'path': 'temp/1764747660_3685135_1397606117_745cd4059898947bb16575dcd8a0547f.jpg', 'extension': 'jpg'}, 1397606119: {'path': 'temp/1764747660_3685135_1397606119_afc941ff3256eb51e93aa8a6dce645a2.jpg', 'extension': 'jpg'}, 1397606261: {'path': 'temp/1764747660_3685135_1397606261_aa27fb00a0b8973d22f04878e3735767.jpg', 'extension': 'jpg'}, 1397606293: {'path': 'temp/1764747660_3685135_1397606293_08c1154d4e45e90b88a63ae3eebadb8a.jpg', 'extension': 'jpg'}, 1397606308: {'path': 'temp/1764747660_3685135_1397606308_91ab7efffb57bbdb49fa475c236b68ea.jpg', 'extension': 'jpg'}, 1397606309: {'path': 'temp/1764747660_3685135_1397606309_9161b444d500482a70199adde39fedd1.jpg', 'extension': 'jpg'}, 1397606310: {'path': 'temp/1764747660_3685135_1397606310_e602fab4a2a7f59f65536e118cadc5ee.jpg', 'extension': 'jpg'}, 1397606311: {'path': 'temp/1764747660_3685135_1397606311_aa374cbede64154871d25a2a49dbd532.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 = 29136449; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29136449 group by h (('08', 42),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29136449 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 (29136449) 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 (29136449) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03122025 29136449 Nombre de photos uploadées : 42 / 23040 (0%) 03122025 29136449 Nombre de photos taguées (types de déchets): 0 / 42 (0%) 03122025 29136449 Nombre de photos taguées (volume) : 0 / 42 (0%) [{'photo_id': 1397605886, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/f8e2630d6a1e66cf0abd06c5c171550d.jpg', 'username': None, 'uploaded_at': 1764747128, 'text': 'image_03122025_08_31_24_010140m0.jpg 1e-05 for time 1, id_amount 4 this amount prod time diff : 1e-05'}, {'photo_id': 1397605885, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/0876e77ccc4e68907df5b28f15e5c99c.jpg', 'username': None, 'uploaded_at': 1764747128, 'text': 'image_03122025_08_31_43_009127m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1397605898, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/3746b44da916e80bae6ee869d64dedfb.jpg', 'username': None, 'uploaded_at': 1764747188, 'text': 'image_03122025_08_31_53_10143.jpg'}, {'photo_id': 1397605896, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/7d63f8e346c6265a037751b237348286.jpg', 'username': None, 'uploaded_at': 1764747188, 'text': 'image_03122025_08_32_03_10146.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ?????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017762184143066406 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29136449, '2025-12-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-03' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2683135,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.29335904121398926 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= 2683135 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29118472, 'dashboard_result_id': 17996861, '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_P29118472_03-12-2025_00_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29118473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29118474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29118475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29118476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29118477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29118478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29118479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29118480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29118481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29118482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29118483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29118484, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29119115, 'dashboard_result_id': 17996862, '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_P29119115_03-12-2025_00_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29119121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29119122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29119123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29119124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29119125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29119126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29119127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29119128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29119129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29119130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29119131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29119132, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29119691, 'dashboard_result_id': 17996863, '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_P29119691_03-12-2025_00_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29119699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29119700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29119701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29119702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29119703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29119704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29119705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29119706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29119707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29119708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29119709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29119710, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29120310, 'dashboard_result_id': 17996864, '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_P29120310_03-12-2025_01_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29120319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29120320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29120321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29120322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29120323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29120324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29120325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29120326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29120327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29120328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29120329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29120330, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29122211, 'dashboard_result_id': 17996865, '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_P29122211_03-12-2025_01_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29122252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29122253, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29122254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29122255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29122256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29122257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29122258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29122259, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29122260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29122261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29122262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29122263, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29122760, 'dashboard_result_id': 17996866, '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_P29122760_03-12-2025_02_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29122768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29122769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29122770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29122771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29122772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29122773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29122774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29122775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29122776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29122777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29122778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29122779, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29123215, 'dashboard_result_id': 17996867, '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_P29123215_03-12-2025_02_23_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29123264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29123265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29123266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29123268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29123269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29123270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29123271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29123272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29123273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29123274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29123275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29123276, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29123936, 'dashboard_result_id': 17996868, '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_P29123936_03-12-2025_02_33_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29123977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29123978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29123979, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29123980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29123981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29123982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29123983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29123984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29123985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29123986, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29123987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29123988, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29124511, 'dashboard_result_id': 17996869, '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_P29124511_03-12-2025_02_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29124515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29124516, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29124517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29124518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29124519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29124520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29124521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29124522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29124523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29124524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29124525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29124526, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29125212, 'dashboard_result_id': 17996870, '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_P29125212_03-12-2025_03_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29125222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29125223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29125224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29125225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29125226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29125227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29125228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29125229, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29125230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29125231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29125232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29125233, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29125708, 'dashboard_result_id': 17996871, '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_P29125708_03-12-2025_03_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29125724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29125725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29125726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29125727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29125728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29125729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29125730, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29125731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29125732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29125733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29125734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29125735, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29126179, 'dashboard_result_id': 17996872, '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_P29126179_03-12-2025_03_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29126220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29126221, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29126222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29126223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29126224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29126225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29126226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29126227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29126228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29126229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29126230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29126231, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29126661, 'dashboard_result_id': 17996873, '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_P29126661_03-12-2025_03_49_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29126663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29126664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29126665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29126666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29126667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29126668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29126669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29126670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29126671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29126672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29126673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29126674, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29126976, 'dashboard_result_id': 17996874, '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_P29126976_03-12-2025_04_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29126985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29126986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29126987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29126988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29126989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29126990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29126991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29126992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29126993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29126994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29126995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29126996, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29127436, 'dashboard_result_id': 17996875, '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_P29127436_03-12-2025_06_01_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29127500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29127501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29127503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29127504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29127505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29127506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29127507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29127508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29127509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29127510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29127511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29127512, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29129057, 'dashboard_result_id': 17996876, '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_P29129057_03-12-2025_05_19_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29129058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29129059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29129060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29129061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29129062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29129063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29129064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29129065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29129066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29129067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29129068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29129069, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29129398, 'dashboard_result_id': 17996877, '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_P29129398_03-12-2025_05_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29129402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29129403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29129404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29129405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29129406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29129407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29129408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29129409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29129410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29129411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29129412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29129413, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29129845, 'dashboard_result_id': 17996878, '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_P29129845_03-12-2025_05_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29129887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29129888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29129889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29129890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29129891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29129892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29129893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29129894, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29129895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29129896, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29129897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29129898, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29130321, 'dashboard_result_id': 17996879, '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_P29130321_03-12-2025_06_04_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29130328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29130329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29130330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29130331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29130332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29130333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29130334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29130335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29130336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29130337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29130338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29130339, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29130674, 'dashboard_result_id': 17996880, '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_P29130674_03-12-2025_06_21_12.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29130686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29130687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29130688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29130689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29130690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29130691, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29130692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29130693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29130694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29130695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29130696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29130697, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29131471, 'dashboard_result_id': 17996881, '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_P29131471_03-12-2025_06_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29131493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29131494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29131495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29131496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29131497, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29131498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29131499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29131500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29131501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29131502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29131503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29131504, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29131997, 'dashboard_result_id': 17996882, '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_P29131997_03-12-2025_06_51_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29132038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29132039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29132040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29132041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29132042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29132043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29132044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29132045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29132046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29132047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29132048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29132049, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29132670, 'dashboard_result_id': 17996883, '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_P29132670_03-12-2025_07_04_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29132708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29132709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29132710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29132711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29132712, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29132713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29132714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29132715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29132716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29132717, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29132718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29132719, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29133186, 'dashboard_result_id': 17996884, '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_P29133186_03-12-2025_07_20_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29133187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29133188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29133189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29133190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29133191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29133192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29133193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29133194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29133195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29133196, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29133197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29133198, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29133916, 'dashboard_result_id': 17996885, '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_P29133916_03-12-2025_07_33_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29133958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29133959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29133960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29133961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29133962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29133963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29133964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29133965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29133966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29133967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29133968, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29133969, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29134419, 'dashboard_result_id': 17996886, '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_P29134419_03-12-2025_07_49_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29134421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29134422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29134423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29134424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29134426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29134427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29134428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29134429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29134430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29134431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29134432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29134433, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29135015, 'dashboard_result_id': 17996887, '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_P29135015_03-12-2025_08_04_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29135019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29135020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29135021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29135022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29135023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29135024, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29135025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29135026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29135027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29135028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29135029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29135030, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29135469, 'dashboard_result_id': 17996888, '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_P29135469_03-12-2025_08_19_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29135475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29135476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29135477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29135478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29135479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29135480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29135481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29135482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29135483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29135484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29135485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29135486, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29136074, 'dashboard_result_id': 17996889, '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_P29136074_03-12-2025_08_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29136075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29136076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29136077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29136078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29136079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29136080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29136081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29136082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29136083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29136084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29136085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29136086, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2692139, 'mtr_portfolio_id': 29136449, 'dashboard_result_id': 17996890, '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_P29136449_03-12-2025_08_39_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29136461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29136462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29136463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29136464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29136465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29136466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29136467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29136468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29136469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29136470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29136471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29136472, '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 = 29118472 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': 4176628, 'mtr_portfolio_id': 29118472, 'created_at': datetime.datetime(2025, 12, 3, 0, 16, 59), 'result': '0.04905352563667279', 'result_long': None, 'result_double': None}] Qualite : 0.04905352563667279 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29118472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29118472_03-12-2025_00_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29118472 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_P29118472_03-12-2025_00_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29118473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29118474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29118475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29118476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29118477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29118478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29118479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29118480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29118481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29118482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29118483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29118484, 'pht': 3726}}" where mtr_portfolio_id = 29118472 and dashboard_run_id = 2692139 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`=29118472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996861, 0.04905352563667279, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29118472_03-12-2025_00_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29118473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29118474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29118475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29118476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29118477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29118478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29118479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29118480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29118481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29118482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29118483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29118484, '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 = 29119115 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': 4176666, 'mtr_portfolio_id': 29119115, 'created_at': datetime.datetime(2025, 12, 3, 0, 33), 'result': '0.03304120601130474', 'result_long': None, 'result_double': None}] Qualite : 0.03304120601130474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29119115 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29119115_03-12-2025_00_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29119115 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_P29119115_03-12-2025_00_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29119121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29119122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29119123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29119124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29119125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29119126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29119127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29119128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29119129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29119130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29119131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29119132, 'pht': 3726}}" where mtr_portfolio_id = 29119115 and dashboard_run_id = 2692139 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`=29119115 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996862, 0.03304120601130474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29119115_03-12-2025_00_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29119121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29119122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29119123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29119124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29119125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29119126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29119127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29119128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29119129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29119130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29119131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29119132, '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 = 29119691 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': 4176732, 'mtr_portfolio_id': 29119691, 'created_at': datetime.datetime(2025, 12, 3, 0, 47), 'result': '0.03837649725504374', 'result_long': None, 'result_double': None}] Qualite : 0.03837649725504374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29119691 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29119691_03-12-2025_00_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29119691 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_P29119691_03-12-2025_00_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29119699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29119700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29119701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29119702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29119703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29119704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29119705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29119706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29119707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29119708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29119709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29119710, 'pht': 3726}}" where mtr_portfolio_id = 29119691 and dashboard_run_id = 2692139 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`=29119691 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996863, 0.03837649725504374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29119691_03-12-2025_00_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29119699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29119700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29119701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29119702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29119703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29119704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29119705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29119706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29119707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29119708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29119709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29119710, '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 = 29120310 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': 4176800, 'mtr_portfolio_id': 29120310, 'created_at': datetime.datetime(2025, 12, 3, 1, 33, 2), 'result': '0.038083180487468386', 'result_long': None, 'result_double': None}] Qualite : 0.038083180487468386 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29120310 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29120310_03-12-2025_01_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29120310 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_P29120310_03-12-2025_01_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29120319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29120320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29120321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29120322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29120323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29120324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29120325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29120326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29120327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29120328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29120329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29120330, 'pht': 3726}}" where mtr_portfolio_id = 29120310 and dashboard_run_id = 2692139 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`=29120310 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996864, 0.038083180487468386, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29120310_03-12-2025_01_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29120319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29120320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29120321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29120322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29120323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29120324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29120325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29120326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29120327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29120328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29120329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29120330, '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 = 29122211 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': 4176968, 'mtr_portfolio_id': 29122211, 'created_at': datetime.datetime(2025, 12, 3, 1, 46, 59), 'result': '0.056521657679935486', 'result_long': None, 'result_double': None}] Qualite : 0.056521657679935486 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29122211 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29122211_03-12-2025_01_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29122211 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_P29122211_03-12-2025_01_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29122252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29122253, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29122254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29122255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29122256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29122257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29122258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29122259, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29122260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29122261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29122262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29122263, 'pht': 3726}}" where mtr_portfolio_id = 29122211 and dashboard_run_id = 2692139 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`=29122211 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996865, 0.056521657679935486, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29122211_03-12-2025_01_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29122252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29122253, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29122254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29122255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29122256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29122257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29122258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29122259, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29122260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29122261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29122262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29122263, '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 = 29122760 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': 4177003, 'mtr_portfolio_id': 29122760, 'created_at': datetime.datetime(2025, 12, 3, 2, 3), 'result': '0.05216261271663149', 'result_long': None, 'result_double': None}] Qualite : 0.05216261271663149 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29122760 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29122760_03-12-2025_02_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29122760 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_P29122760_03-12-2025_02_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29122768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29122769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29122770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29122771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29122772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29122773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29122774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29122775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29122776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29122777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29122778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29122779, 'pht': 3726}}" where mtr_portfolio_id = 29122760 and dashboard_run_id = 2692139 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`=29122760 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996866, 0.05216261271663149, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29122760_03-12-2025_02_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29122768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29122769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29122770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29122771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29122772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29122773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29122774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29122775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29122776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29122777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29122778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29122779, '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 = 29123215 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': 4177085, 'mtr_portfolio_id': 29123215, 'created_at': datetime.datetime(2025, 12, 3, 2, 23, 27), 'result': '0.04066275432172213', 'result_long': None, 'result_double': None}] Qualite : 0.04066275432172213 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29123215 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29123215_03-12-2025_02_23_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29123215 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_P29123215_03-12-2025_02_23_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29123264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29123265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29123266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29123268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29123269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29123270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29123271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29123272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29123273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29123274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29123275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29123276, 'pht': 3726}}" where mtr_portfolio_id = 29123215 and dashboard_run_id = 2692139 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`=29123215 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996867, 0.04066275432172213, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29123215_03-12-2025_02_23_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29123264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29123265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29123266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29123268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29123269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29123270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29123271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29123272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29123273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29123274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29123275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29123276, '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 = 29123936 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': 4177161, 'mtr_portfolio_id': 29123936, 'created_at': datetime.datetime(2025, 12, 3, 2, 33, 27), 'result': '0.03559125110950435', 'result_long': None, 'result_double': None}] Qualite : 0.03559125110950435 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29123936 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29123936_03-12-2025_02_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29123936 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_P29123936_03-12-2025_02_33_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29123977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29123978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29123979, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29123980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29123981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29123982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29123983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29123984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29123985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29123986, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29123987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29123988, 'pht': 3726}}" where mtr_portfolio_id = 29123936 and dashboard_run_id = 2692139 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`=29123936 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996868, 0.03559125110950435, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29123936_03-12-2025_02_33_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29123977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29123978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29123979, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29123980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29123981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29123982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29123983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29123984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29123985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29123986, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29123987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29123988, '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 = 29124511 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': 4177225, 'mtr_portfolio_id': 29124511, 'created_at': datetime.datetime(2025, 12, 3, 2, 48, 58), 'result': '0.04545517111056412', 'result_long': None, 'result_double': None}] Qualite : 0.04545517111056412 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29124511 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29124511_03-12-2025_02_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29124511 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_P29124511_03-12-2025_02_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29124515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29124516, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29124517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29124518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29124519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29124520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29124521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29124522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29124523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29124524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29124525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29124526, 'pht': 3726}}" where mtr_portfolio_id = 29124511 and dashboard_run_id = 2692139 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`=29124511 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996869, 0.04545517111056412, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29124511_03-12-2025_02_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29124515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29124516, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29124517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29124518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29124519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29124520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29124521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29124522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29124523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29124524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29124525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29124526, '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 = 29125212 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': 4177298, 'mtr_portfolio_id': 29125212, 'created_at': datetime.datetime(2025, 12, 3, 3, 2, 59), 'result': '0.03758967905490408', 'result_long': None, 'result_double': None}] Qualite : 0.03758967905490408 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29125212 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29125212_03-12-2025_03_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29125212 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_P29125212_03-12-2025_03_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29125222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29125223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29125224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29125225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29125226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29125227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29125228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29125229, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29125230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29125231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29125232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29125233, 'pht': 3726}}" where mtr_portfolio_id = 29125212 and dashboard_run_id = 2692139 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`=29125212 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996870, 0.03758967905490408, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29125212_03-12-2025_03_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29125222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29125223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29125224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29125225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29125226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29125227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29125228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29125229, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29125230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29125231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29125232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29125233, '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 = 29125708 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': 4177350, 'mtr_portfolio_id': 29125708, 'created_at': datetime.datetime(2025, 12, 3, 3, 19), 'result': '0.06190909768276253', 'result_long': None, 'result_double': None}] Qualite : 0.06190909768276253 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29125708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29125708_03-12-2025_03_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29125708 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_P29125708_03-12-2025_03_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29125724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29125725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29125726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29125727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29125728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29125729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29125730, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29125731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29125732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29125733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29125734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29125735, 'pht': 3726}}" where mtr_portfolio_id = 29125708 and dashboard_run_id = 2692139 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`=29125708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996871, 0.06190909768276253, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29125708_03-12-2025_03_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29125724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29125725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29125726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29125727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29125728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29125729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29125730, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29125731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29125732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29125733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29125734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29125735, '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 = 29126179 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': 4177422, 'mtr_portfolio_id': 29126179, 'created_at': datetime.datetime(2025, 12, 3, 3, 35), 'result': '0.1106890530209358', 'result_long': None, 'result_double': None}] Qualite : 0.1106890530209358 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29126179 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29126179_03-12-2025_03_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29126179 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_P29126179_03-12-2025_03_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29126220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29126221, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29126222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29126223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29126224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29126225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29126226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29126227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29126228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29126229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29126230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29126231, 'pht': 3726}}" where mtr_portfolio_id = 29126179 and dashboard_run_id = 2692139 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`=29126179 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996872, 0.1106890530209358, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29126179_03-12-2025_03_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29126220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29126221, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29126222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29126223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29126224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29126225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29126226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29126227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29126228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29126229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29126230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29126231, '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 = 29126661 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': 4177467, 'mtr_portfolio_id': 29126661, 'created_at': datetime.datetime(2025, 12, 3, 3, 49, 1), 'result': '0.04568220365483323', 'result_long': None, 'result_double': None}] Qualite : 0.04568220365483323 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29126661 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29126661_03-12-2025_03_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29126661 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_P29126661_03-12-2025_03_49_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29126663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29126664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29126665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29126666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29126667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29126668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29126669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29126670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29126671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29126672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29126673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29126674, 'pht': 3726}}" where mtr_portfolio_id = 29126661 and dashboard_run_id = 2692139 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`=29126661 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996873, 0.04568220365483323, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29126661_03-12-2025_03_49_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29126663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29126664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29126665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29126666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29126667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29126668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29126669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29126670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29126671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29126672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29126673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29126674, '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 = 29126976 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': 4177509, 'mtr_portfolio_id': 29126976, 'created_at': datetime.datetime(2025, 12, 3, 4, 2, 59), 'result': '0.028423060964911283', 'result_long': None, 'result_double': None}] Qualite : 0.028423060964911283 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29126976 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29126976_03-12-2025_04_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29126976 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_P29126976_03-12-2025_04_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29126985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29126986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29126987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29126988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29126989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29126990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29126991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29126992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29126993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29126994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29126995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29126996, 'pht': 3726}}" where mtr_portfolio_id = 29126976 and dashboard_run_id = 2692139 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`=29126976 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996874, 0.028423060964911283, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29126976_03-12-2025_04_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29126985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29126986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29126987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29126988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29126989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29126990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29126991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29126992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29126993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29126994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29126995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29126996, '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 = 29127436 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': 4177589, 'mtr_portfolio_id': 29127436, 'created_at': datetime.datetime(2025, 12, 3, 6, 1), 'result': '0.07838707616961561', 'result_long': None, 'result_double': None}] Qualite : 0.07838707616961561 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29127436 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29127436_03-12-2025_06_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29127436 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_P29127436_03-12-2025_06_01_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29127500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29127501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29127503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29127504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29127505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29127506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29127507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29127508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29127509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29127510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29127511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29127512, 'pht': 3726}}" where mtr_portfolio_id = 29127436 and dashboard_run_id = 2692139 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`=29127436 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996875, 0.07838707616961561, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29127436_03-12-2025_06_01_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29127500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29127501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29127503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29127504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29127505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29127506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29127507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29127508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29127509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29127510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29127511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29127512, '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 = 29129057 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': 4177747, 'mtr_portfolio_id': 29129057, 'created_at': datetime.datetime(2025, 12, 3, 5, 19, 1), 'result': '0.05435106143964792', 'result_long': None, 'result_double': None}] Qualite : 0.05435106143964792 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29129057 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29129057_03-12-2025_05_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29129057 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_P29129057_03-12-2025_05_19_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29129058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29129059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29129060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29129061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29129062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29129063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29129064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29129065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29129066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29129067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29129068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29129069, 'pht': 3726}}" where mtr_portfolio_id = 29129057 and dashboard_run_id = 2692139 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`=29129057 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996876, 0.05435106143964792, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29129057_03-12-2025_05_19_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29129058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29129059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29129060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29129061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29129062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29129063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29129064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29129065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29129066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29129067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29129068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29129069, '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 = 29129398 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': 4177782, 'mtr_portfolio_id': 29129398, 'created_at': datetime.datetime(2025, 12, 3, 5, 33), 'result': '0.0350081392479544', 'result_long': None, 'result_double': None}] Qualite : 0.0350081392479544 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29129398 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29129398_03-12-2025_05_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29129398 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_P29129398_03-12-2025_05_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29129402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29129403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29129404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29129405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29129406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29129407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29129408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29129409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29129410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29129411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29129412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29129413, 'pht': 3726}}" where mtr_portfolio_id = 29129398 and dashboard_run_id = 2692139 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`=29129398 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996877, 0.0350081392479544, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29129398_03-12-2025_05_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29129402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29129403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29129404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29129405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29129406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29129407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29129408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29129409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29129410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29129411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29129412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29129413, '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 = 29129845 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': 4177827, 'mtr_portfolio_id': 29129845, 'created_at': datetime.datetime(2025, 12, 3, 5, 48, 58), 'result': '0.035962289287376', 'result_long': None, 'result_double': None}] Qualite : 0.035962289287376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29129845 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29129845_03-12-2025_05_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29129845 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_P29129845_03-12-2025_05_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29129887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29129888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29129889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29129890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29129891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29129892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29129893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29129894, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29129895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29129896, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29129897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29129898, 'pht': 3726}}" where mtr_portfolio_id = 29129845 and dashboard_run_id = 2692139 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`=29129845 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996878, 0.035962289287376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29129845_03-12-2025_05_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29129887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29129888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29129889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29129890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29129891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29129892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29129893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29129894, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29129895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29129896, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29129897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29129898, '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 = 29130321 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': 4177877, 'mtr_portfolio_id': 29130321, 'created_at': datetime.datetime(2025, 12, 3, 6, 4, 56), 'result': '0.04031805102042683', 'result_long': None, 'result_double': None}] Qualite : 0.04031805102042683 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29130321 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29130321_03-12-2025_06_04_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29130321 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_P29130321_03-12-2025_06_04_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29130328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29130329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29130330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29130331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29130332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29130333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29130334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29130335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29130336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29130337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29130338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29130339, 'pht': 3726}}" where mtr_portfolio_id = 29130321 and dashboard_run_id = 2692139 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`=29130321 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996879, 0.04031805102042683, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29130321_03-12-2025_06_04_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29130328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29130329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29130330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29130331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29130332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29130333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29130334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29130335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29130336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29130337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29130338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29130339, '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 = 29130674 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': 4177936, 'mtr_portfolio_id': 29130674, 'created_at': datetime.datetime(2025, 12, 3, 6, 21, 11), 'result': '0.049840240333532515', 'result_long': None, 'result_double': None}] Qualite : 0.049840240333532515 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29130674 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29130674_03-12-2025_06_21_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29130674 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_P29130674_03-12-2025_06_21_12.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29130686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29130687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29130688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29130689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29130690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29130691, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29130692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29130693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29130694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29130695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29130696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29130697, 'pht': 3726}}" where mtr_portfolio_id = 29130674 and dashboard_run_id = 2692139 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`=29130674 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996880, 0.049840240333532515, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29130674_03-12-2025_06_21_12.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29130686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29130687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29130688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29130689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29130690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29130691, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29130692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29130693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29130694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29130695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29130696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29130697, '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 = 29131471 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': 4178008, 'mtr_portfolio_id': 29131471, 'created_at': datetime.datetime(2025, 12, 3, 6, 32, 59), 'result': '0.04287265568183878', 'result_long': None, 'result_double': None}] Qualite : 0.04287265568183878 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29131471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29131471_03-12-2025_06_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29131471 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_P29131471_03-12-2025_06_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29131493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29131494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29131495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29131496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29131497, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29131498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29131499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29131500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29131501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29131502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29131503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29131504, 'pht': 3726}}" where mtr_portfolio_id = 29131471 and dashboard_run_id = 2692139 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`=29131471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996881, 0.04287265568183878, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29131471_03-12-2025_06_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29131493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29131494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29131495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29131496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29131497, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29131498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29131499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29131500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29131501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29131502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29131503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29131504, '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 = 29131997 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': 4178086, 'mtr_portfolio_id': 29131997, 'created_at': datetime.datetime(2025, 12, 3, 6, 51, 7), 'result': '0.03798116958510068', 'result_long': None, 'result_double': None}] Qualite : 0.03798116958510068 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29131997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29131997_03-12-2025_06_51_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29131997 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_P29131997_03-12-2025_06_51_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29132038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29132039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29132040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29132041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29132042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29132043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29132044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29132045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29132046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29132047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29132048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29132049, 'pht': 3726}}" where mtr_portfolio_id = 29131997 and dashboard_run_id = 2692139 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`=29131997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996882, 0.03798116958510068, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29131997_03-12-2025_06_51_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29132038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29132039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29132040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29132041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29132042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29132043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29132044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29132045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29132046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29132047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29132048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29132049, '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 = 29132670 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': 4178164, 'mtr_portfolio_id': 29132670, 'created_at': datetime.datetime(2025, 12, 3, 7, 4, 30), 'result': '0.0480326725939615', 'result_long': None, 'result_double': None}] Qualite : 0.0480326725939615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29132670 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29132670_03-12-2025_07_04_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29132670 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_P29132670_03-12-2025_07_04_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29132708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29132709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29132710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29132711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29132712, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29132713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29132714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29132715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29132716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29132717, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29132718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29132719, 'pht': 3726}}" where mtr_portfolio_id = 29132670 and dashboard_run_id = 2692139 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`=29132670 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996883, 0.0480326725939615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29132670_03-12-2025_07_04_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29132708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29132709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29132710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29132711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29132712, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29132713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29132714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29132715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29132716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29132717, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29132718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29132719, '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 = 29133186 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': 4178229, 'mtr_portfolio_id': 29133186, 'created_at': datetime.datetime(2025, 12, 3, 7, 20, 59), 'result': '0.05051463886876292', 'result_long': None, 'result_double': None}] Qualite : 0.05051463886876292 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29133186 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29133186_03-12-2025_07_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29133186 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_P29133186_03-12-2025_07_20_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29133187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29133188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29133189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29133190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29133191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29133192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29133193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29133194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29133195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29133196, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29133197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29133198, 'pht': 3726}}" where mtr_portfolio_id = 29133186 and dashboard_run_id = 2692139 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`=29133186 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996884, 0.05051463886876292, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29133186_03-12-2025_07_20_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29133187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29133188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29133189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29133190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29133191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29133192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29133193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29133194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29133195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29133196, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29133197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29133198, '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 = 29133916 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': 4178291, 'mtr_portfolio_id': 29133916, 'created_at': datetime.datetime(2025, 12, 3, 7, 33, 29), 'result': '0.03148997860809222', 'result_long': None, 'result_double': None}] Qualite : 0.03148997860809222 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29133916 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29133916_03-12-2025_07_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29133916 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_P29133916_03-12-2025_07_33_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29133958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29133959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29133960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29133961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29133962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29133963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29133964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29133965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29133966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29133967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29133968, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29133969, 'pht': 3726}}" where mtr_portfolio_id = 29133916 and dashboard_run_id = 2692139 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`=29133916 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996885, 0.03148997860809222, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29133916_03-12-2025_07_33_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29133958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29133959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29133960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29133961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29133962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29133963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29133964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29133965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29133966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29133967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29133968, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29133969, '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 = 29134419 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': 4178347, 'mtr_portfolio_id': 29134419, 'created_at': datetime.datetime(2025, 12, 3, 7, 49, 33), 'result': '0.03826618607657612', 'result_long': None, 'result_double': None}] Qualite : 0.03826618607657612 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29134419 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29134419_03-12-2025_07_49_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29134419 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_P29134419_03-12-2025_07_49_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29134421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29134422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29134423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29134424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29134426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29134427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29134428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29134429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29134430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29134431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29134432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29134433, 'pht': 3726}}" where mtr_portfolio_id = 29134419 and dashboard_run_id = 2692139 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`=29134419 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996886, 0.03826618607657612, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29134419_03-12-2025_07_49_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29134421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29134422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29134423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29134424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29134426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29134427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29134428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29134429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29134430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29134431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29134432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29134433, '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 = 29135015 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': 4178412, 'mtr_portfolio_id': 29135015, 'created_at': datetime.datetime(2025, 12, 3, 8, 4, 59), 'result': '0.03496624896856487', 'result_long': None, 'result_double': None}] Qualite : 0.03496624896856487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29135015 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29135015_03-12-2025_08_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29135015 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_P29135015_03-12-2025_08_04_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29135019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29135020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29135021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29135022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29135023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29135024, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29135025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29135026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29135027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29135028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29135029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29135030, 'pht': 3726}}" where mtr_portfolio_id = 29135015 and dashboard_run_id = 2692139 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`=29135015 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996887, 0.03496624896856487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29135015_03-12-2025_08_04_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29135019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29135020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29135021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29135022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29135023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29135024, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29135025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29135026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29135027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29135028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29135029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29135030, '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 = 29135469 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': 4178492, 'mtr_portfolio_id': 29135469, 'created_at': datetime.datetime(2025, 12, 3, 8, 19, 27), 'result': '0.038644445358584224', 'result_long': None, 'result_double': None}] Qualite : 0.038644445358584224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29135469 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29135469_03-12-2025_08_19_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29135469 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_P29135469_03-12-2025_08_19_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29135475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29135476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29135477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29135478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29135479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29135480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29135481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29135482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29135483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29135484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29135485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29135486, 'pht': 3726}}" where mtr_portfolio_id = 29135469 and dashboard_run_id = 2692139 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`=29135469 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996888, 0.038644445358584224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29135469_03-12-2025_08_19_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29135475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29135476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29135477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29135478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29135479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29135480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29135481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29135482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29135483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29135484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29135485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29135486, '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 = 29136074 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': 4178548, 'mtr_portfolio_id': 29136074, 'created_at': datetime.datetime(2025, 12, 3, 8, 33), 'result': '0.07547133557713472', 'result_long': None, 'result_double': None}] Qualite : 0.07547133557713472 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29136074 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29136074_03-12-2025_08_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29136074 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_P29136074_03-12-2025_08_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29136075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29136076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29136077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29136078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29136079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29136080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29136081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29136082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29136083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29136084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29136085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29136086, 'pht': 3726}}" where mtr_portfolio_id = 29136074 and dashboard_run_id = 2692139 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`=29136074 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996889, 0.07547133557713472, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29136074_03-12-2025_08_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29136075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29136076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29136077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29136078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29136079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29136080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29136081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29136082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29136083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29136084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29136085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29136086, '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 = 29136449 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': 4178602, 'mtr_portfolio_id': 29136449, 'created_at': datetime.datetime(2025, 12, 3, 8, 40, 59), 'result': '0.03965501060043461', 'result_long': None, 'result_double': None}] Qualite : 0.03965501060043461 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29136449 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29136449_03-12-2025_08_41_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29136449 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_P29136449_03-12-2025_08_41_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29136461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29136462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29136463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29136464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29136465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29136466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29136467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29136468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29136469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29136470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29136471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29136472, 'pht': 3726}}" where mtr_portfolio_id = 29136449 and dashboard_run_id = 2692139 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`=29136449 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17996890, 0.03965501060043461, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29136449_03-12-2025_08_41_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29136461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29136462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29136463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29136464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29136465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29136466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29136467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29136468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29136469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29136470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29136471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29136472, '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 (29118472,29119115,29119691,29120310,29122211,29122760,29123215,29123936,29124511,29125212,29125708,29126179,29126661,29126976,29127436,29129057,29129398,29129845,29130321,29130674,29131471,29131997,29132670,29133186,29133916,29134419,29135015,29135469,29136074,29136449) result : ((1397526149,), (1397526182,), (1397526188,), (1397526201,), (1397526203,), (1397526336,), (1397526338,), (1397526374,), (1397526412,), (1397526447,), (1397526815,), (1397526849,), (1397526884,), (1397526941,), (1397527079,), (1397527162,), (1397527749,), (1397527807,), (1397527824,), (1397527825,), (1397527827,), (1397528273,), (1397528309,), (1397528341,), (1397528389,), (1397528390,), (1397528394,), (1397528478,), (1397528479,), (1397528480,), (1397528503,), (1397528515,), (1397528700,), (1397528738,), (1397528772,), (1397528807,), (1397528845,), (1397528915,), (1397529116,), (1397529160,), (1397529192,), (1397529228,), (1397529265,), (1397529355,), (1397529357,), (1397529359,), (1397529435,), (1397529474,), (1397529508,), (1397529547,), (1397529701,), (1397529747,), (1397529801,), (1397529806,), (1397529884,), (1397529892,), (1397529898,), (1397529900,), (1397529923,), (1397529924,), (1397529927,), (1397529931,), (1397529932,), (1397529934,), (1397529978,), (1397529983,), (1397529984,), (1397529985,), (1397529987,), (1397530010,), (1397530012,), (1397530016,), (1397530098,), (1397530096,), (1397530097,), (1397530104,), (1397530105,), (1397530106,), (1397530107,), (1397530109,), (1397530156,), (1397530157,), (1397530158,), (1397530160,), (1397530163,), (1397530164,), (1397530191,), (1397530228,), (1397530264,), (1397530306,), (1397530470,), (1397530507,), (1397530546,), (1397530717,), (1397530718,), (1397530719,), (1397530720,), (1397530722,), (1397530896,), (1397530948,), (1397530949,), (1397530951,), (1397530991,), (1397531033,), (1397531144,), (1397531145,), (1397531146,), (1397531147,), (1397531149,), (1397531151,), (1397531155,), (1397531156,), (1397531157,), (1397531247,), (1397531286,), (1397531295,), (1397531303,), (1397531379,), (1397531447,), (1397531477,), (1397531498,), (1397531625,), (1397531626,), (1397531627,), (1397531672,), (1397531716,), (1397531718,), (1397531724,), (1397531725,), (1397531726,), (1397531735,), (1397531736,), (1397531737,), (1397531768,), (1397532189,), (1397532223,), (1397532258,), (1397532294,), (1397532331,), (1397532698,), (1397532700,), (1397532703,), (1397532705,), (1397532790,), (1397532825,), (1397532696,), (1397532697,), (1397532905,), (1397532906,), (1397532918,), (1397533399,), (1397533435,), (1397533472,), (1397533505,), (1397533541,), (1397533920,), (1397533960,), (1397533996,), (1397534050,), (1397534088,), (1397534125,), (1397534338,), (1397534339,), (1397534389,), (1397534424,), (1397534702,), (1397534703,), (1397534704,), (1397534714,), (1397534775,), (1397534776,), (1397534777,), (1397534905,), (1397534911,), (1397534913,), (1397534914,), (1397534918,), (1397534929,), (1397534980,), (1397535132,), (1397535169,), (1397535204,), (1397535240,), (1397535274,), (1397535652,), (1397535688,), (1397535727,), (1397535769,), (1397535806,), (1397535842,), (1397536008,), (1397536010,), (1397536012,), (1397536015,), (1397536047,), (1397536083,), (1397536255,), (1397536322,), (1397536387,), (1397536686,), (1397536723,), (1397536760,), (1397536810,), (1397536887,), (1397537339,), (1397537385,), (1397537416,), (1397537451,), (1397537878,), (1397537923,), (1397537966,), (1397538038,), (1397538109,), (1397538634,), (1397538675,), (1397538714,), (1397538773,), (1397538802,), (1397538829,), (1397539013,), (1397538883,), (1397538928,), (1397538973,), (1397539186,), (1397539187,), (1397539188,), (1397539189,), (1397539440,), (1397539473,), (1397539515,), (1397539548,), (1397539918,), (1397539988,), (1397540055,), (1397540126,), (1397540643,), (1397540686,), (1397540716,), (1397541136,), (1397541180,), (1397541416,), (1397541417,), (1397541418,), (1397541728,), (1397541761,), (1397541793,), (1397541832,), (1397541865,), (1397542168,), (1397542169,), (1397542422,), (1397542423,), (1397542932,), (1397542963,), (1397543265,), (1397543280,), (1397543287,), (1397543295,), (1397543421,), (1397543422,), (1397543423,), (1397543424,), (1397543913,), (1397543962,), (1397543997,), (1397544036,), (1397551260,), (1397551257,), (1397551258,), (1397551259,), (1397551323,), (1397551324,), (1397551325,), (1397551326,), (1397551331,), (1397551332,), (1397551333,), (1397551334,), (1397551357,), (1397551948,), (1397551998,), (1397552081,), (1397552445,), (1397552452,), (1397552492,), (1397552531,), (1397552731,), (1397552764,), (1397553007,), (1397553008,), (1397553023,), (1397553024,), (1397553047,), (1397553140,), (1397553141,), (1397553180,), (1397553181,), (1397553183,), (1397553185,), (1397553196,), (1397553263,), (1397553264,), (1397553265,), (1397553266,), (1397553272,), (1397553273,), (1397553274,), (1397553275,), (1397553282,), (1397553283,), (1397553284,), (1397553316,), (1397553317,), (1397553318,), (1397553490,), (1397553491,), (1397553492,), (1397553647,), (1397553674,), (1397553694,), (1397553697,), (1397553700,), (1397553800,), (1397553789,), (1397553790,), (1397553799,), (1397553882,), (1397553914,), (1397553915,), (1397553939,), (1397553940,), (1397553941,), (1397553948,), (1397553949,), (1397553950,), (1397553952,), (1397553967,), (1397553968,), (1397553969,), (1397553971,), (1397553977,), (1397553978,), (1397553979,), (1397553980,), (1397553982,), (1397554001,), (1397554002,), (1397554003,), (1397554004,), (1397554006,), (1397554008,), (1397554022,), (1397554029,), (1397554036,), (1397554092,), (1397554093,), (1397554094,), (1397554095,), (1397554171,), (1397554173,), (1397554184,), (1397554185,), (1397554186,), (1397554187,), (1397554190,), (1397554191,), (1397554192,), (1397554193,), (1397554195,), (1397554197,), (1397554207,), (1397554208,), (1397554209,), (1397554210,), (1397554212,), (1397554214,), (1397554393,), (1397554401,), (1397554420,), (1397554440,), (1397554475,), (1397554518,), (1397554728,), (1397554772,), (1397554816,), (1397554861,), (1397554894,), (1397554944,), (1397555342,), (1397555146,), (1397555196,), (1397555238,), (1397555275,), (1397555498,), (1397555648,), (1397555713,), (1397555782,), (1397555837,), (1397556225,), (1397556265,), (1397556300,), (1397556338,), (1397556353,), (1397556354,), (1397556507,), (1397556573,), (1397557131,), (1397557175,), (1397557194,), (1397557423,), (1397557427,), (1397557428,), (1397557430,), (1397557432,), (1397557433,), (1397557521,), (1397557558,), (1397557591,), (1397558146,), (1397558150,), (1397558160,), (1397558467,), (1397558468,), (1397558469,), (1397558471,), (1397558473,), (1397558494,), (1397558654,), (1397558655,), (1397558668,), (1397558669,), (1397558761,), (1397558762,), (1397558806,), (1397558809,), (1397558811,), (1397558813,), (1397558855,), (1397558856,), (1397558857,), (1397558858,), (1397558860,), (1397558956,), (1397558968,), (1397558971,), (1397559076,), (1397559083,), (1397559084,), (1397559102,), (1397559198,), (1397559199,), (1397559201,), (1397559202,), (1397559203,), (1397559228,), (1397560843,), (1397559223,), (1397559224,), (1397559225,), (1397559226,), (1397559232,), (1397559233,), (1397559234,), (1397559236,), (1397559238,), (1397559240,), (1397559247,), (1397559256,), (1397559261,), (1397559273,), (1397559275,), (1397559285,), (1397559396,), (1397559398,), (1397559400,), (1397559402,), (1397559412,), (1397559461,), (1397559501,), (1397559558,), (1397559608,), (1397559642,), (1397559674,), (1397559707,), (1397559813,), (1397559845,), (1397559880,), (1397559918,), (1397559953,), (1397560029,), (1397560153,), (1397560208,), (1397560278,), (1397560354,), (1397560428,), (1397560545,), (1397560799,), (1397560975,), (1397560976,), (1397560983,), (1397561362,), (1397561376,), (1397561410,), (1397561430,), (1397561512,), (1397561513,), (1397561514,), (1397561515,), (1397561575,), (1397561576,), (1397561577,), (1397561578,), (1397561580,), (1397561685,), (1397561704,), (1397561750,), (1397561803,), (1397561804,), (1397561825,), (1397561826,), (1397561862,), (1397561863,), (1397561864,), (1397561871,), (1397561873,), (1397561878,), (1397561960,), (1397561962,), (1397561969,), (1397561973,), (1397561976,), (1397561983,), (1397562002,), (1397562003,), (1397562004,), (1397562053,), (1397562054,), (1397562056,), (1397562058,), (1397562061,), (1397562085,), (1397562081,), (1397562083,), (1397562084,), (1397562093,), (1397562094,), (1397562100,), (1397562109,), (1397562110,), (1397562114,), (1397562120,), (1397562132,), (1397562173,), (1397562174,), (1397562175,), (1397562176,), (1397562178,), (1397562219,), (1397562239,), (1397562240,), (1397562247,), (1397562257,), (1397562304,), (1397562305,), (1397562325,), (1397562328,), (1397562337,), (1397562415,), (1397562417,), (1397562427,), (1397562461,), (1397562538,), (1397562539,), (1397562541,), (1397562551,), (1397562656,), (1397562657,), (1397562658,), (1397562684,), (1397562686,), (1397562698,), (1397562717,), (1397562719,), (1397562721,), (1397562722,), (1397562732,), (1397562741,), (1397562748,), (1397562750,), (1397562752,), (1397562754,), (1397562756,), (1397562757,), (1397562758,), (1397562764,), (1397562765,), (1397562769,), (1397562777,), (1397562779,), (1397562781,), (1397562809,), (1397562810,), (1397562811,), (1397562812,), (1397562865,), (1397562866,), (1397562867,), (1397562887,), (1397562894,), (1397562895,), (1397562904,), (1397562908,), (1397563065,), (1397562943,), (1397562952,), (1397563026,), (1397563063,), (1397563150,), (1397563152,), (1397563177,), (1397563187,), (1397563253,), (1397563254,), (1397563255,), (1397563256,), (1397563258,), (1397563263,), (1397563265,), (1397563268,), (1397563271,), (1397563274,), (1397563277,), (1397563288,), (1397563289,), (1397563290,), (1397563300,), (1397563306,), (1397563308,), (1397563309,), (1397563311,), (1397563313,), (1397563366,), (1397563367,), (1397563368,), (1397563369,), (1397563371,), (1397563391,), (1397563392,), (1397563393,), (1397563394,), (1397563396,), (1397563398,), (1397563482,), (1397563506,), (1397563544,), (1397563548,), (1397563549,), (1397563664,), (1397563670,), (1397563714,), (1397563715,), (1397563716,), (1397563717,), (1397563719,), (1397563721,), (1397563789,), (1397563790,), (1397563791,), (1397563808,), (1397563820,), (1397563833,), (1397563867,), (1397563868,), (1397563869,), (1397563870,), (1397563872,), (1397563893,), (1397563896,), (1397563898,), (1397563900,), (1397563946,), (1397563949,), (1397563951,), (1397563953,), (1397563955,), (1397563957,), (1397563994,), (1397563995,), (1397564000,), (1397564021,), (1397564004,), (1397564019,), (1397564078,), (1397564083,), (1397564085,), (1397564095,), (1397564096,), (1397564097,), (1397564098,), (1397564112,), (1397564114,), (1397564116,), (1397564118,), (1397564213,), (1397564215,), (1397564216,), (1397564217,), (1397564219,), (1397564228,), (1397564229,), (1397564277,), (1397564301,), (1397564363,), (1397564365,), (1397564395,), (1397564398,), (1397564401,), (1397564419,), (1397564423,), (1397564424,), (1397564425,), (1397564426,), (1397564427,), (1397564428,), (1397564429,), (1397564430,), (1397564431,), (1397564433,), (1397564457,), (1397564466,), (1397564469,), (1397564471,), (1397564473,), (1397564487,), (1397564506,), (1397564508,), (1397564510,), (1397564512,), (1397564516,), (1397564520,), (1397564550,), (1397564590,), (1397564616,), (1397564620,), (1397564621,), (1397564643,), (1397564695,), (1397564696,), (1397564697,), (1397564698,), (1397564737,), (1397564738,), (1397564739,), (1397564740,), (1397564748,), (1397564750,), (1397564782,), (1397564783,), (1397564784,), (1397564785,), (1397564810,), (1397565005,), (1397564970,), (1397564985,), (1397564988,), (1397564997,), (1397564999,), (1397565018,), (1397565020,), (1397565021,), (1397565079,), (1397565099,), (1397565170,), (1397565171,), (1397565278,), (1397565945,), (1397565944,), (1397566195,), (1397566204,), (1397566226,), (1397566321,), (1397566705,), (1397566731,), (1397566805,), (1397566939,), (1397566940,), (1397566941,), (1397566942,), (1397567007,), (1397567008,), (1397567009,), (1397567011,), (1397567013,), (1397567015,), (1397567041,), (1397567046,), (1397567047,), (1397567048,), (1397567074,), (1397567076,), (1397567078,), (1397567080,), (1397567082,), (1397567084,), (1397567137,), (1397567138,), (1397567144,), (1397567145,), (1397567236,), (1397567237,), (1397567238,), (1397567239,), (1397567382,), (1397567395,), (1397567407,), (1397567415,), (1397567417,), (1397567472,), (1397567473,), (1397567507,), (1397567539,), (1397567586,), (1397567592,), (1397567616,), (1397567622,), (1397567625,), (1397567782,), (1397567746,), (1397567752,), (1397567756,), (1397567770,), (1397567774,), (1397567846,), (1397567849,), (1397567864,), (1397567947,), (1397567948,), (1397567949,), (1397567950,), (1397567952,), (1397567997,), (1397568019,), (1397568025,), (1397568028,), (1397568031,), (1397568036,), (1397568046,), (1397568047,), (1397568048,), (1397568049,), (1397568050,), (1397568053,), (1397568054,), (1397568057,), (1397568058,), (1397568061,), (1397568062,), (1397568065,), (1397568066,), (1397568125,), (1397568126,), (1397568127,), (1397568236,), (1397568237,), (1397568405,), (1397568406,), (1397568488,), (1397568490,), (1397568527,), (1397568528,), (1397568534,), (1397568615,), (1397568616,), (1397568617,), (1397568618,), (1397568620,), (1397569031,), (1397569039,), (1397569126,), (1397569194,), (1397569267,), (1397569337,), (1397569555,), (1397569607,), (1397569673,), (1397569718,), (1397569920,), (1397569843,), (1397569885,), (1397570136,), (1397570175,), (1397570230,), (1397570295,), (1397570363,), (1397570864,), (1397570931,), (1397570998,), (1397571486,), (1397571552,), (1397571626,), (1397572012,), (1397572047,), (1397572081,), (1397572180,), (1397572367,), (1397572385,), (1397572418,), (1397572452,), (1397572565,), (1397572566,), (1397572584,), (1397572587,), (1397572694,), (1397572921,), (1397573405,), (1397573439,), (1397573787,), (1397579372,), (1397579371,), (1397579765,), (1397579775,), (1397579874,), (1397579888,), (1397579892,), (1397579893,), (1397579895,), (1397579961,), (1397579963,), (1397579997,), (1397580023,), (1397580028,), (1397580034,), (1397580071,), (1397580073,), (1397580076,), (1397580081,), (1397580111,), (1397580114,), (1397580115,), (1397580116,), (1397580118,), (1397580158,), (1397580165,), (1397580166,), (1397580167,), (1397580172,), (1397580209,), (1397580216,), (1397580226,), (1397580258,), (1397580292,), (1397580415,), (1397580398,), (1397580405,), (1397580412,), (1397580413,), (1397580488,), (1397580489,), (1397580490,), (1397580491,), (1397580511,), (1397580522,), (1397580528,), (1397580529,), (1397580531,), (1397580573,), (1397580574,), (1397580575,), (1397580578,), (1397580580,), (1397580582,), (1397580605,), (1397580606,), (1397580612,), (1397580619,), (1397580648,), (1397580650,), (1397580652,), (1397580654,), (1397580656,), (1397580658,), (1397580660,), (1397580663,), (1397580665,), (1397580678,), (1397580679,), (1397580680,), (1397580681,), (1397580684,), (1397580692,), (1397580773,), (1397580774,), (1397580775,), (1397580776,), (1397580781,), (1397580821,), (1397580822,), (1397580835,), (1397580836,), (1397580839,), (1397580873,), (1397580877,), (1397580880,), (1397580930,), (1397580933,), (1397580957,), (1397580958,), (1397580959,), (1397580960,), (1397581042,), (1397581044,), (1397581046,), (1397581049,), (1397581118,), (1397581121,), (1397581243,), (1397581263,), (1397581264,), (1397581275,), (1397581428,), (1397581430,), (1397581431,), (1397581439,), (1397581499,), (1397581502,), (1397581543,), (1397581545,), (1397581551,), (1397581582,), (1397581595,), (1397581592,), (1397581593,), (1397581594,), (1397581849,), (1397581850,), (1397581851,), (1397581852,), (1397581854,), (1397581888,), (1397581889,), (1397581890,), (1397581891,), (1397581893,), (1397581899,), (1397581919,), (1397581927,), (1397581928,), (1397581929,), (1397581950,), (1397581951,), (1397581952,), (1397581953,), (1397581964,), (1397581989,), (1397582019,), (1397582036,), (1397582037,), (1397582038,), (1397582071,), (1397582072,), (1397582073,), (1397582074,), (1397582075,), (1397582077,), (1397582114,), (1397582122,), (1397582145,), (1397582149,), (1397582151,), (1397582158,), (1397582159,), (1397582160,), (1397582162,), (1397582164,), (1397582166,), (1397582172,), (1397582173,), (1397582181,), (1397582182,), (1397582183,), (1397582184,), (1397582186,), (1397582192,), (1397582193,), (1397582194,), (1397582236,), (1397582238,), (1397582248,), (1397582249,), (1397582253,), (1397582262,), (1397582336,), (1397582398,), (1397582406,), (1397582408,), (1397582409,), (1397582412,), (1397582498,), (1397582500,), (1397582501,), (1397582502,), (1397582503,), (1397582551,), (1397582553,), (1397582563,), (1397582570,), (1397582572,), (1397582573,), (1397582628,), (1397582606,), (1397582607,), (1397582608,), (1397582611,), (1397582653,), (1397582654,), (1397582655,), (1397582656,), (1397582658,), (1397582660,), (1397582675,), (1397582676,), (1397582677,), (1397582678,), (1397582725,), (1397582726,), (1397582727,), (1397582730,), (1397582749,), (1397582794,), (1397582828,), (1397582838,), (1397582908,), (1397582990,), (1397583095,), (1397583096,), (1397583097,), (1397583098,), (1397583100,), (1397583155,), (1397583159,), (1397583160,), (1397583179,), (1397583182,), (1397583185,), (1397583188,), (1397583190,), (1397583198,), (1397583205,), (1397583219,), (1397583236,), (1397583267,), (1397583268,), (1397583272,), (1397583273,), (1397583275,), (1397583278,), (1397583332,), (1397583333,), (1397583334,), (1397583335,), (1397583336,), (1397583392,), (1397583394,), (1397583396,), (1397583399,), (1397583401,), (1397583403,), (1397583406,), (1397583437,), (1397583438,), (1397583439,), (1397583440,), (1397583512,), (1397584125,), (1397584797,), (1397584865,), (1397585091,), (1397583742,), (1397583816,), (1397583883,), (1397583962,), (1397584032,), (1397584527,), (1397584599,), (1397584666,), (1397584734,), (1397585104,), (1397585109,), (1397585141,), (1397585172,), (1397585204,), (1397585550,), (1397585576,), (1397585578,), (1397585580,), (1397585606,), (1397585790,), (1397585825,), (1397585865,), (1397585970,), (1397586460,), (1397586492,), (1397586523,), (1397586558,), (1397586590,), (1397586681,), (1397586741,), (1397586742,), (1397586743,), (1397586766,), (1397586801,), (1397586987,), (1397587015,), (1397587049,), (1397587085,), (1397587118,), (1397587154,), (1397587554,), (1397587611,), (1397587645,), (1397587686,), (1397587719,), (1397587759,), (1397587912,), (1397587950,), (1397587984,), (1397588019,), (1397588189,), (1397588226,), (1397588271,), (1397588307,), (1397588347,), (1397588393,), (1397588733,), (1397588802,), (1397588853,), (1397589013,), (1397589014,), (1397589015,), (1397589033,), (1397589074,), (1397589117,), (1397589339,), (1397589368,), (1397589385,), (1397589425,), (1397589753,), (1397589799,), (1397589834,), (1397589867,), (1397589905,), (1397590036,), (1397590037,), (1397590039,), (1397590040,), (1397590042,), (1397590581,), (1397590442,), (1397590501,), (1397590538,), (1397590569,), (1397590786,), (1397590790,), (1397590792,), (1397590793,), (1397590795,), (1397590797,), (1397590812,), (1397590813,), (1397590814,), (1397590815,), (1397590849,), (1397590850,), (1397590851,), (1397590853,), (1397590855,), (1397590857,), (1397590907,), (1397590995,), (1397591108,), (1397591143,), (1397591177,), (1397591213,), (1397591258,), (1397591291,), (1397591544,), (1397591577,), (1397591613,), (1397591648,), (1397591654,), (1397591772,), (1397591807,), (1397591841,), (1397591902,), (1397591935,), (1397592162,), (1397592190,), (1397592207,), (1397592214,), (1397592217,), (1397592220,), (1397592244,), (1397592245,), (1397592246,), (1397592247,), (1397592290,), (1397592291,), (1397592320,), (1397592321,), (1397592323,), (1397592325,), (1397592342,), (1397592343,), (1397592344,), (1397592389,), (1397592390,), (1397592403,), (1397592404,), (1397592406,), (1397592408,), (1397592488,), (1397592490,), (1397592491,), (1397592493,), (1397592577,), (1397592578,), (1397592579,), (1397592617,), (1397592620,), (1397592627,), (1397592631,), (1397592632,), (1397592633,), (1397592640,), (1397592688,), (1397592694,), (1397592700,), (1397592708,), (1397592818,), (1397592769,), (1397592770,), (1397592780,), (1397592805,), (1397592812,), (1397592848,), (1397592849,), (1397592850,), (1397592851,), (1397592853,), (1397593038,), (1397593039,), (1397593040,), (1397593041,), (1397593043,), (1397593045,), (1397593059,), (1397593060,), (1397593061,), (1397593062,), (1397593119,), (1397593120,), (1397593121,), (1397593122,), (1397593124,), (1397593151,), (1397593288,), (1397593349,), (1397593364,), (1397593368,), (1397593431,), (1397593443,), (1397593445,), (1397593467,), (1397593482,), (1397593492,), (1397593514,), (1397593515,), (1397593538,), (1397593542,), (1397593546,), (1397593632,), (1397593667,), (1397593671,), (1397593673,), (1397593685,), (1397593691,), (1397593698,), (1397593700,), (1397593701,), (1397593702,), (1397593707,), (1397593708,), (1397593710,), (1397593712,), (1397593714,), (1397593716,), (1397593724,), (1397593726,), (1397593728,), (1397593731,), (1397593750,), (1397593753,), (1397593758,), (1397593760,), (1397593762,), (1397593771,), (1397593793,), (1397593794,), (1397593795,), (1397593796,), (1397593829,), (1397593849,), (1397593850,), (1397593857,), (1397593859,), (1397593861,), (1397593919,), (1397593921,), (1397593924,), (1397594071,), (1397594043,), (1397594047,), (1397594063,), (1397594069,), (1397594093,), (1397594100,), (1397594114,), (1397594126,), (1397594134,), (1397594156,), (1397594173,), (1397594176,), (1397594177,), (1397594179,), (1397594231,), (1397594232,), (1397594233,), (1397594235,), (1397594239,), (1397594243,), (1397594253,), (1397594255,), (1397594261,), (1397594262,), (1397594263,), (1397594265,), (1397594267,), (1397594289,), (1397594291,), (1397594293,), (1397594295,), (1397594296,), (1397594297,), (1397594298,), (1397594352,), (1397594359,), (1397594363,), (1397594364,), (1397594383,), (1397594407,), (1397594463,), (1397594464,), (1397594484,), (1397594515,), (1397594517,), (1397594546,), (1397594550,), (1397594551,), (1397594552,), (1397594553,), (1397594584,), (1397594649,), (1397594651,), (1397594653,), (1397594655,), (1397594672,), (1397594674,), (1397594675,), (1397594676,), (1397594689,), (1397594694,), (1397594703,), (1397594704,), (1397594705,), (1397594754,), (1397594756,), (1397594764,), (1397594765,), (1397594767,), (1397594769,), (1397594812,), (1397594815,), (1397594817,), (1397594819,), (1397594821,), (1397594823,), (1397594847,), (1397594856,), (1397594861,), (1397594865,), (1397594866,), (1397594882,), (1397594955,), (1397594988,), (1397594990,), (1397595025,), (1397594900,), (1397594932,), (1397594936,), (1397594937,), (1397594938,), (1397595042,), (1397595043,), (1397595052,), (1397595054,), (1397595072,), (1397595085,), (1397595086,), (1397595087,), (1397595088,), (1397595089,), (1397595125,), (1397595127,), (1397595132,), (1397595137,), (1397595141,), (1397595148,), (1397595169,), (1397595182,), (1397595194,), (1397595318,), (1397595320,), (1397595321,), (1397595336,), (1397595355,), (1397595382,), (1397595405,), (1397595406,), (1397595407,), (1397595408,), (1397595464,), (1397595477,), (1397595490,), (1397595496,), (1397595498,), (1397595500,), (1397595535,), (1397595567,), (1397595600,), (1397595602,), (1397595604,), (1397595608,), (1397595622,), (1397595623,), (1397595624,), (1397595625,), (1397595626,), (1397595632,), (1397595640,), (1397595643,), (1397595646,), (1397595664,), (1397595666,), (1397595668,), (1397595671,), (1397595674,), (1397595688,), (1397595689,), (1397595690,), (1397595691,), (1397595750,), (1397595751,), (1397595753,), (1397595755,), (1397595757,), (1397595759,), (1397595766,), (1397595768,), (1397595769,), (1397595771,), (1397595801,), (1397595809,), (1397595812,), (1397595814,), (1397595818,), (1397595820,), (1397595850,), (1397595843,), (1397595844,), (1397595846,), (1397595847,), (1397595906,), (1397595907,), (1397595908,), (1397595910,), (1397595913,), (1397595927,), (1397596034,), (1397596035,), (1397596036,), (1397596037,), (1397596039,), (1397596294,), (1397596332,), (1397596398,), (1397596434,), (1397596467,), (1397596502,), (1397596540,), (1397596542,), (1397596562,), (1397596601,), (1397596635,), (1397596677,), (1397596679,), (1397596682,), (1397596795,), (1397596796,), (1397596874,), (1397596891,), (1397596893,), (1397597025,), (1397597085,), (1397597094,), (1397597096,), (1397597145,), (1397597180,), (1397597181,), (1397597182,), (1397597183,), (1397597185,), (1397597211,), (1397597231,), (1397597331,), (1397597764,), (1397597771,), (1397597772,), (1397597774,), (1397597777,), (1397597779,), (1397597790,), (1397597797,), (1397597798,), (1397597800,), (1397597804,), (1397597806,), (1397597815,), (1397597816,), (1397597817,), (1397597818,), (1397597853,), (1397597854,), (1397597855,), (1397597856,), (1397597863,), (1397597878,), (1397597924,), (1397597925,), (1397597941,), (1397597983,), (1397597998,), (1397598011,), (1397598034,), (1397598056,), (1397598063,), (1397598069,), (1397598070,), (1397598073,), (1397598093,), (1397598095,), (1397598097,), (1397598160,), (1397598150,), (1397598152,), (1397598154,), (1397598157,), (1397598188,), (1397598189,), (1397598190,), (1397598191,), (1397598193,), (1397598218,), (1397598231,), (1397598232,), (1397598233,), (1397598267,), (1397598268,), (1397598269,), (1397598270,), (1397598272,), (1397598274,), (1397598315,), (1397598316,), (1397598317,), (1397598318,), (1397598320,), (1397598345,), (1397598346,), (1397598348,), (1397598350,), (1397598370,), (1397598372,), (1397598374,), (1397598375,), (1397598378,), (1397598381,), (1397598440,), (1397598448,), (1397598450,), (1397598483,), (1397598485,), (1397598486,), (1397598489,), (1397598492,), (1397598495,), (1397598517,), (1397598518,), (1397598519,), (1397598572,), (1397598573,), (1397598575,), (1397598578,), (1397598588,), (1397598589,), (1397598590,), (1397598591,), (1397598593,), (1397598619,), (1397598620,), (1397598621,), (1397598622,), (1397598624,), (1397598649,), (1397598650,), (1397598651,), (1397598652,), (1397598654,), (1397598679,), (1397598680,), (1397598681,), (1397598682,), (1397598684,), (1397598703,), (1397598706,), (1397598708,), (1397598711,), (1397598715,), (1397598788,), (1397598781,), (1397598782,), (1397598783,), (1397598784,), (1397598786,), (1397598796,), (1397598797,), (1397598798,), (1397598799,), (1397598816,), (1397598817,), (1397598818,), (1397598819,), (1397598821,), (1397598823,), (1397598836,), (1397598837,), (1397598838,), (1397598840,), (1397598846,), (1397598853,), (1397598874,), (1397598875,), (1397598876,), (1397598877,), (1397598878,), (1397598879,), (1397598881,), (1397598883,), (1397598885,), (1397598887,), (1397598890,), (1397598891,), (1397598892,), (1397598893,), (1397598914,), (1397598921,), (1397598922,), (1397598923,), (1397598925,), (1397598927,), (1397598932,), (1397598935,), (1397598938,), (1397598940,), (1397598943,), (1397598998,), (1397598999,), (1397599000,), (1397599001,), (1397599003,), (1397599004,), (1397599020,), (1397599021,), (1397599031,), (1397599039,), (1397599046,), (1397599071,), (1397599075,), (1397599076,), (1397599077,), (1397599086,), (1397599087,), (1397599088,), (1397599089,), (1397599091,), (1397599156,), (1397599157,), (1397599158,), (1397599159,), (1397599161,), (1397599163,), (1397599177,), (1397599178,), (1397599180,), (1397599181,), (1397599183,), (1397599186,), (1397599196,), (1397599197,), (1397599198,), (1397599199,), (1397599204,), (1397599205,), (1397599303,), (1397599337,), (1397599368,), (1397599402,), (1397599200,), (1397599201,), (1397599202,), (1397599203,), (1397599551,), (1397599583,), (1397599616,), (1397599634,), (1397599635,), (1397599636,), (1397599675,), (1397599709,), (1397599741,), (1397599774,), (1397599869,), (1397599870,), (1397599871,), (1397599872,), (1397599873,), (1397599895,), (1397600394,), (1397600458,), (1397600522,), (1397600587,), (1397601071,), (1397601072,), (1397601073,), (1397601074,), (1397601099,), (1397601133,), (1397601491,), (1397601536,), (1397601561,), (1397601582,), (1397601600,), (1397601633,), (1397601700,), (1397601702,), (1397601703,), (1397601712,), (1397601927,), (1397601958,), (1397601993,), (1397602032,), (1397602071,), (1397602105,), (1397602260,), (1397602301,), (1397602336,), (1397602461,), (1397602499,), (1397602532,), (1397602566,), (1397602811,), (1397602844,), (1397602874,), (1397602906,), (1397602941,), (1397602981,), (1397603495,), (1397603526,), (1397603559,), (1397603613,), (1397603739,), (1397603740,), (1397603750,), (1397603782,), (1397603817,), (1397603854,), (1397604012,), (1397604043,), (1397604077,), (1397604104,), (1397604106,), (1397604171,), (1397604201,), (1397604233,), (1397604269,), (1397604856,), (1397604681,), (1397604716,), (1397604752,), (1397604783,), (1397604818,), (1397605115,), (1397605212,), (1397605213,), (1397605215,), (1397605303,), (1397605339,), (1397605369,), (1397605399,), (1397605418,), (1397605562,), (1397605563,), (1397605564,), (1397605566,), (1397605568,), (1397605570,), (1397605576,), (1397605582,), (1397605586,), (1397605713,), (1397605714,), (1397605715,), (1397605716,), (1397605732,), (1397605736,), (1397605737,), (1397605738,), (1397605740,), (1397605741,), (1397605746,), (1397605747,), (1397605780,), (1397605786,), (1397605792,), (1397605808,), (1397605817,), (1397605818,), (1397605819,), (1397605821,), (1397605887,), (1397605885,), (1397605886,), (1397605893,), (1397605894,), (1397605895,), (1397605896,), (1397605898,), (1397605924,), (1397605925,), (1397605926,), (1397605927,), (1397605929,), (1397605934,), (1397605935,), (1397605936,), (1397605938,), (1397605946,), (1397605947,), (1397605948,), (1397605949,), (1397605951,), (1397605961,), (1397606028,), (1397606033,), (1397606036,), (1397606042,), (1397606105,), (1397606113,), (1397606114,), (1397606115,), (1397606117,), (1397606119,), (1397606261,), (1397606293,), (1397606294,), (1397606296,), (1397606298,), (1397606300,), (1397606308,), (1397606309,), (1397606310,), (1397606311,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03122025': {'nb_upload': 42, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29136449]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1397606311, 1397606310, 1397606309, 1397606308, 1397606300, 1397606298, 1397606296, 1397606294, 1397606293, 1397606261, 1397606119, 1397606117, 1397606115, 1397606114, 1397606113, 1397606105] map_info['map_portfolio_photo'] : {29136449: [1397606311, 1397606310, 1397606309, 1397606308, 1397606300, 1397606298, 1397606296, 1397606294, 1397606293, 1397606261, 1397606119, 1397606117, 1397606115, 1397606114, 1397606113, 1397606105, 1397606042, 1397606036, 1397606033, 1397606028, 1397605961, 1397605951, 1397605949, 1397605948, 1397605947, 1397605946, 1397605938, 1397605936, 1397605935, 1397605934, 1397605929, 1397605927, 1397605926, 1397605925, 1397605924, 1397605898, 1397605896, 1397605895, 1397605894, 1397605893, 1397605886, 1397605885]} final : True mtd_id 4302 list_pids : [1397606311, 1397606310, 1397606309, 1397606308, 1397606300, 1397606298, 1397606296, 1397606294, 1397606293, 1397606261, 1397606119, 1397606117, 1397606115, 1397606114, 1397606113, 1397606105] Looping around the photos to save general results len do output : 1 /29136449Didn'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, '4178602') ('4302', '29136449', '1397606311', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606310', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606309', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606308', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606300', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606298', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606296', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606294', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606293', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606261', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606119', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606117', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606115', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606114', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606113', None, None, None, None, None, '4178602') ('4302', None, None, None, None, None, None, None, '4178602') ('4302', '29136449', '1397606105', None, None, None, None, None, '4178602') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '29136449', 'None', None, None, None, None, '4178602'), ('4302', '29136449', '1397606311', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606310', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606309', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606308', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606300', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606298', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606296', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606294', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606293', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606261', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606119', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606117', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606115', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606114', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606113', None, None, None, None, None, '4178602'), ('4302', '29136449', '1397606105', None, None, None, None, None, '4178602')] time used for this insertion : 0.01644110679626465 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.3732385635375977 time spend to save output : 0.016697406768798828 total time spend for step 5 : 2.3899359703063965 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 (4178602) 2.23user 2.49system 0:09.95elapsed 47%CPU (0avgtext+0avgdata 167348maxresident)k 1912inputs+11432outputs (42major+75739minor)pagefaults 0swaps