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 : 771344 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 (3640893) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3640893) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26361584 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3640893'] with mtr_portfolio_ids : ['26361584'] and first list_photo_ids : [] new path : /proc/771344/ Name: python3 Umask: 0002 State: R (running) Tgid: 771344 Ngid: 0 Pid: 771344 PPid: 771343 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 771344 NSpid: 771344 NSpgid: 770101 NSsid: 770101 VmPeak: 1107248 kB VmSize: 1107248 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100248 kB VmRSS: 100248 kB RssAnon: 60168 kB RssFile: 40080 kB RssShmem: 0 kB VmData: 866000 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 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: 59 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '771344', 'Ngid': '0', 'Pid': '771344', 'PPid': '771343', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '771344', 'NSpid': '771344', 'NSpgid': '770101', 'NSsid': '770101', 'VmPeak': '1107248 kB', 'VmSize': '1107248 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100248 kB', 'VmRSS': '100248 kB', 'RssAnon': '60168 kB', 'RssFile': '40080 kB', 'RssShmem': '0 kB', 'VmData': '866000 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 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': '59', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '771344', '1107248', '0', '1107248', '866000', '100248', b'', 'marlene', '3640893') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26361584) 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 (3640893 ) ) 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 (26361584) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1380233508, 'portfolio_id': 26361584}, {'photo_id': 1380233507, 'portfolio_id': 26361584}, {'photo_id': 1380233506, 'portfolio_id': 26361584}, {'photo_id': 1380233505, 'portfolio_id': 26361584}, {'photo_id': 1380233504, 'portfolio_id': 26361584}, {'photo_id': 1380233503, 'portfolio_id': 26361584}, {'photo_id': 1380233464, 'portfolio_id': 26361584}, {'photo_id': 1380233463, 'portfolio_id': 26361584}, {'photo_id': 1380233462, 'portfolio_id': 26361584}, {'photo_id': 1380233450, 'portfolio_id': 26361584}, {'photo_id': 1380233449, 'portfolio_id': 26361584}, {'photo_id': 1380233448, 'portfolio_id': 26361584}, {'photo_id': 1380233447, 'portfolio_id': 26361584}, {'photo_id': 1380233446, 'portfolio_id': 26361584}, {'photo_id': 1380233408, 'portfolio_id': 26361584}, {'photo_id': 1380233407, 'portfolio_id': 26361584}, {'photo_id': 1380233406, 'portfolio_id': 26361584}, {'photo_id': 1380233405, 'portfolio_id': 26361584}, {'photo_id': 1380233404, 'portfolio_id': 26361584}, {'photo_id': 1380233381, 'portfolio_id': 26361584}, {'photo_id': 1380233380, 'portfolio_id': 26361584}, {'photo_id': 1380233379, 'portfolio_id': 26361584}, {'photo_id': 1380233378, 'portfolio_id': 26361584}, {'photo_id': 1380233377, 'portfolio_id': 26361584}, {'photo_id': 1380233304, 'portfolio_id': 26361584}, {'photo_id': 1380233303, 'portfolio_id': 26361584}, {'photo_id': 1380233302, 'portfolio_id': 26361584}, {'photo_id': 1380233273, 'portfolio_id': 26361584}, {'photo_id': 1380233272, 'portfolio_id': 26361584}, {'photo_id': 1380233271, 'portfolio_id': 26361584}, {'photo_id': 1380233270, 'portfolio_id': 26361584}, {'photo_id': 1380233269, 'portfolio_id': 26361584}, {'photo_id': 1380233246, 'portfolio_id': 26361584}, {'photo_id': 1380233245, 'portfolio_id': 26361584}, {'photo_id': 1380233244, 'portfolio_id': 26361584}, {'photo_id': 1380233243, 'portfolio_id': 26361584}, {'photo_id': 1380233242, 'portfolio_id': 26361584}, {'photo_id': 1380233223, 'portfolio_id': 26361584}, {'photo_id': 1380233222, 'portfolio_id': 26361584}, {'photo_id': 1380233221, 'portfolio_id': 26361584}, {'photo_id': 1380233220, 'portfolio_id': 26361584}, {'photo_id': 1380233219, 'portfolio_id': 26361584}] map_portfolio_id_photo_id: {26361584: [1380233508, 1380233507, 1380233506, 1380233505, 1380233504, 1380233503, 1380233464, 1380233463, 1380233462, 1380233450, 1380233449, 1380233448, 1380233447, 1380233446, 1380233408, 1380233407, 1380233406, 1380233405, 1380233404, 1380233381, 1380233380, 1380233379, 1380233378, 1380233377, 1380233304, 1380233303, 1380233302, 1380233273, 1380233272, 1380233271, 1380233270, 1380233269, 1380233246, 1380233245, 1380233244, 1380233243, 1380233242, 1380233223, 1380233222, 1380233221, 1380233220, 1380233219]} ##### 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.01488637924194336 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Sat Aug 30 03:54:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26361584) 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 : 26361584 get user id for portfolio 26361584 get sub ptf for main ptf 26361584, type 3726 and hashtags ['cartonnette', 'papier', 'plastique', 'Teint_Dans_La_Masse', 'Carton_gris', 'Carton_brun', 'autre_refus', 'kraft', 'mal_croppe', 'flou', 'metal', '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`=26361584 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','plastique','Teint_Dans_La_Masse','Carton_gris','Carton_brun','autre_refus','kraft','mal_croppe','flou','metal','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`=26361584 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','plastique','Teint_Dans_La_Masse','Carton_gris','Carton_brun','autre_refus','kraft','mal_croppe','flou','metal','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 26361584, 'sub_port_id': 26361596, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736877, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 28)}, 'papier': {'main_port_id': 26361584, 'sub_port_id': 26361597, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736878, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 28)}, 'cartonnette': {'main_port_id': 26361584, 'sub_port_id': 26361598, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736879, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 26361584, 'sub_port_id': 26361599, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736880, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 28)}, 'flou': {'main_port_id': 26361584, 'sub_port_id': 26361600, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736881, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 28)}, 'metal': {'main_port_id': 26361584, 'sub_port_id': 26361601, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736882, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 28)}, 'mal_croppe': {'main_port_id': 26361584, 'sub_port_id': 26361602, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736883, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 28)}, 'Carton_gris': {'main_port_id': 26361584, 'sub_port_id': 26361603, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736884, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 28)}, 'kraft': {'main_port_id': 26361584, 'sub_port_id': 26361604, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736885, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 28)}, 'environnement': {'main_port_id': 26361584, 'sub_port_id': 26361605, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736886, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 28)}, 'autre_refus': {'main_port_id': 26361584, 'sub_port_id': 26361606, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736887, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 28)}, 'plastique': {'main_port_id': 26361584, 'sub_port_id': 26361607, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736888, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26361596 , 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=26361584 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 (26361596) result : ((1380233373,), (1380233435,), (1380233443,), (1380233444,), (1380233445,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26361584) result : ((1380233219,), (1380233220,), (1380233221,), (1380233222,), (1380233223,), (1380233242,), (1380233243,), (1380233244,), (1380233245,), (1380233246,), (1380233269,), (1380233270,), (1380233271,), (1380233272,), (1380233273,), (1380233302,), (1380233303,), (1380233304,), (1380233377,), (1380233378,), (1380233379,), (1380233380,), (1380233381,), (1380233404,), (1380233405,), (1380233406,), (1380233407,), (1380233408,), (1380233446,), (1380233447,), (1380233448,), (1380233449,), (1380233450,), (1380233462,), (1380233463,), (1380233464,), (1380233503,), (1380233504,), (1380233505,), (1380233506,), (1380233507,), (1380233508,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26361597 , 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=26361584 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 (26361597) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26361584) result : ((1380233219,), (1380233220,), (1380233221,), (1380233222,), (1380233223,), (1380233242,), (1380233243,), (1380233244,), (1380233245,), (1380233246,), (1380233269,), (1380233270,), (1380233271,), (1380233272,), (1380233273,), (1380233302,), (1380233303,), (1380233304,), (1380233377,), (1380233378,), (1380233379,), (1380233380,), (1380233381,), (1380233404,), (1380233405,), (1380233406,), (1380233407,), (1380233408,), (1380233446,), (1380233447,), (1380233448,), (1380233449,), (1380233450,), (1380233462,), (1380233463,), (1380233464,), (1380233503,), (1380233504,), (1380233505,), (1380233506,), (1380233507,), (1380233508,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26361598 , 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=26361584 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 (26361598) result : ((1380233398,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26361584) result : ((1380233219,), (1380233220,), (1380233221,), (1380233222,), (1380233223,), (1380233242,), (1380233243,), (1380233244,), (1380233245,), (1380233246,), (1380233269,), (1380233270,), (1380233271,), (1380233272,), (1380233273,), (1380233302,), (1380233303,), (1380233304,), (1380233377,), (1380233378,), (1380233379,), (1380233380,), (1380233381,), (1380233404,), (1380233405,), (1380233406,), (1380233407,), (1380233408,), (1380233446,), (1380233447,), (1380233448,), (1380233449,), (1380233450,), (1380233462,), (1380233463,), (1380233464,), (1380233503,), (1380233504,), (1380233505,), (1380233506,), (1380233507,), (1380233508,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26361599 , 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=26361584 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 (26361599) result : ((1380233369,), (1380233397,), (1380233429,), (1380233430,), (1380233439,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26361584) result : ((1380233219,), (1380233220,), (1380233221,), (1380233222,), (1380233223,), (1380233242,), (1380233243,), (1380233244,), (1380233245,), (1380233246,), (1380233269,), (1380233270,), (1380233271,), (1380233272,), (1380233273,), (1380233302,), (1380233303,), (1380233304,), (1380233377,), (1380233378,), (1380233379,), (1380233380,), (1380233381,), (1380233404,), (1380233405,), (1380233406,), (1380233407,), (1380233408,), (1380233446,), (1380233447,), (1380233448,), (1380233449,), (1380233450,), (1380233462,), (1380233463,), (1380233464,), (1380233503,), (1380233504,), (1380233505,), (1380233506,), (1380233507,), (1380233508,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26361600 , 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=26361584 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 (26361600) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26361584) result : ((1380233219,), (1380233220,), (1380233221,), (1380233222,), (1380233223,), (1380233242,), (1380233243,), (1380233244,), (1380233245,), (1380233246,), (1380233269,), (1380233270,), (1380233271,), (1380233272,), (1380233273,), (1380233302,), (1380233303,), (1380233304,), (1380233377,), (1380233378,), (1380233379,), (1380233380,), (1380233381,), (1380233404,), (1380233405,), (1380233406,), (1380233407,), (1380233408,), (1380233446,), (1380233447,), (1380233448,), (1380233449,), (1380233450,), (1380233462,), (1380233463,), (1380233464,), (1380233503,), (1380233504,), (1380233505,), (1380233506,), (1380233507,), (1380233508,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26361601 , 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=26361584 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 (26361601) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26361584) result : ((1380233219,), (1380233220,), (1380233221,), (1380233222,), (1380233223,), (1380233242,), (1380233243,), (1380233244,), (1380233245,), (1380233246,), (1380233269,), (1380233270,), (1380233271,), (1380233272,), (1380233273,), (1380233302,), (1380233303,), (1380233304,), (1380233377,), (1380233378,), (1380233379,), (1380233380,), (1380233381,), (1380233404,), (1380233405,), (1380233406,), (1380233407,), (1380233408,), (1380233446,), (1380233447,), (1380233448,), (1380233449,), (1380233450,), (1380233462,), (1380233463,), (1380233464,), (1380233503,), (1380233504,), (1380233505,), (1380233506,), (1380233507,), (1380233508,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26361602 , 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=26361584 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 (26361602) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26361584) result : ((1380233219,), (1380233220,), (1380233221,), (1380233222,), (1380233223,), (1380233242,), (1380233243,), (1380233244,), (1380233245,), (1380233246,), (1380233269,), (1380233270,), (1380233271,), (1380233272,), (1380233273,), (1380233302,), (1380233303,), (1380233304,), (1380233377,), (1380233378,), (1380233379,), (1380233380,), (1380233381,), (1380233404,), (1380233405,), (1380233406,), (1380233407,), (1380233408,), (1380233446,), (1380233447,), (1380233448,), (1380233449,), (1380233450,), (1380233462,), (1380233463,), (1380233464,), (1380233503,), (1380233504,), (1380233505,), (1380233506,), (1380233507,), (1380233508,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26361603 , 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=26361584 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 (26361603) result : ((1380233371,), (1380233372,), (1380233432,), (1380233433,), (1380233440,), (1380233441,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26361584) result : ((1380233219,), (1380233220,), (1380233221,), (1380233222,), (1380233223,), (1380233242,), (1380233243,), (1380233244,), (1380233245,), (1380233246,), (1380233269,), (1380233270,), (1380233271,), (1380233272,), (1380233273,), (1380233302,), (1380233303,), (1380233304,), (1380233377,), (1380233378,), (1380233379,), (1380233380,), (1380233381,), (1380233404,), (1380233405,), (1380233406,), (1380233407,), (1380233408,), (1380233446,), (1380233447,), (1380233448,), (1380233449,), (1380233450,), (1380233462,), (1380233463,), (1380233464,), (1380233503,), (1380233504,), (1380233505,), (1380233506,), (1380233507,), (1380233508,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26361604 , 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=26361584 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 (26361604) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26361584) result : ((1380233219,), (1380233220,), (1380233221,), (1380233222,), (1380233223,), (1380233242,), (1380233243,), (1380233244,), (1380233245,), (1380233246,), (1380233269,), (1380233270,), (1380233271,), (1380233272,), (1380233273,), (1380233302,), (1380233303,), (1380233304,), (1380233377,), (1380233378,), (1380233379,), (1380233380,), (1380233381,), (1380233404,), (1380233405,), (1380233406,), (1380233407,), (1380233408,), (1380233446,), (1380233447,), (1380233448,), (1380233449,), (1380233450,), (1380233462,), (1380233463,), (1380233464,), (1380233503,), (1380233504,), (1380233505,), (1380233506,), (1380233507,), (1380233508,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26361605 , 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=26361584 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 (26361605) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26361584) result : ((1380233219,), (1380233220,), (1380233221,), (1380233222,), (1380233223,), (1380233242,), (1380233243,), (1380233244,), (1380233245,), (1380233246,), (1380233269,), (1380233270,), (1380233271,), (1380233272,), (1380233273,), (1380233302,), (1380233303,), (1380233304,), (1380233377,), (1380233378,), (1380233379,), (1380233380,), (1380233381,), (1380233404,), (1380233405,), (1380233406,), (1380233407,), (1380233408,), (1380233446,), (1380233447,), (1380233448,), (1380233449,), (1380233450,), (1380233462,), (1380233463,), (1380233464,), (1380233503,), (1380233504,), (1380233505,), (1380233506,), (1380233507,), (1380233508,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26361606 , 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=26361584 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 (26361606) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26361584) result : ((1380233219,), (1380233220,), (1380233221,), (1380233222,), (1380233223,), (1380233242,), (1380233243,), (1380233244,), (1380233245,), (1380233246,), (1380233269,), (1380233270,), (1380233271,), (1380233272,), (1380233273,), (1380233302,), (1380233303,), (1380233304,), (1380233377,), (1380233378,), (1380233379,), (1380233380,), (1380233381,), (1380233404,), (1380233405,), (1380233406,), (1380233407,), (1380233408,), (1380233446,), (1380233447,), (1380233448,), (1380233449,), (1380233450,), (1380233462,), (1380233463,), (1380233464,), (1380233503,), (1380233504,), (1380233505,), (1380233506,), (1380233507,), (1380233508,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26361607 , 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=26361584 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 (26361607) result : ((1380233399,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26361584) result : ((1380233219,), (1380233220,), (1380233221,), (1380233222,), (1380233223,), (1380233242,), (1380233243,), (1380233244,), (1380233245,), (1380233246,), (1380233269,), (1380233270,), (1380233271,), (1380233272,), (1380233273,), (1380233302,), (1380233303,), (1380233304,), (1380233377,), (1380233378,), (1380233379,), (1380233380,), (1380233381,), (1380233404,), (1380233405,), (1380233406,), (1380233407,), (1380233408,), (1380233446,), (1380233447,), (1380233448,), (1380233449,), (1380233450,), (1380233462,), (1380233463,), (1380233464,), (1380233503,), (1380233504,), (1380233505,), (1380233506,), (1380233507,), (1380233508,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") 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`=26361584 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','plastique','Teint_Dans_La_Masse','Carton_gris','Carton_brun','autre_refus','kraft','mal_croppe','flou','metal','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`=26361584 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','plastique','Teint_Dans_La_Masse','Carton_gris','Carton_brun','autre_refus','kraft','mal_croppe','flou','metal','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 26361584, 'sub_port_id': 26361609, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736889, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 34)}, 'papier': {'main_port_id': 26361584, 'sub_port_id': 26361610, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736890, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 34)}, 'cartonnette': {'main_port_id': 26361584, 'sub_port_id': 26361611, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736891, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 26361584, 'sub_port_id': 26361612, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736892, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 34)}, 'flou': {'main_port_id': 26361584, 'sub_port_id': 26361613, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736893, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 34)}, 'metal': {'main_port_id': 26361584, 'sub_port_id': 26361614, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736894, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 34)}, 'mal_croppe': {'main_port_id': 26361584, 'sub_port_id': 26361615, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736895, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 34)}, 'Carton_gris': {'main_port_id': 26361584, 'sub_port_id': 26361616, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736896, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 34)}, 'kraft': {'main_port_id': 26361584, 'sub_port_id': 26361617, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736897, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 34)}, 'environnement': {'main_port_id': 26361584, 'sub_port_id': 26361618, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736898, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 34)}, 'autre_refus': {'main_port_id': 26361584, 'sub_port_id': 26361619, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736899, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 34)}, 'plastique': {'main_port_id': 26361584, 'sub_port_id': 26361620, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17736900, 'last_updated_at': datetime.datetime(2025, 8, 30, 3, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 3, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 3, 47, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26361609,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26361596 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26361610,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26361597 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26361611,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26361598 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26361612,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26361599 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26361613,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26361600 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26361614,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26361601 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26361615,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26361602 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26361616,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26361603 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26361617,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26361604 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26361618,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26361605 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26361619,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26361606 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26361620,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26361607 lien utilise dans velours : https://marlene.fotonower.com/velours/26361609,26361610,26361611,26361612,26361613,26361614,26361615,26361616,26361617,26361618,26361619,26361620?tags=Carton_brun,papier,cartonnette,Teint_Dans_La_Masse,flou,metal,mal_croppe,Carton_gris,kraft,environnement,autre_refus,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26361584]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1380233508, 1380233507, 1380233506, 1380233505, 1380233504, 1380233503, 1380233464, 1380233463, 1380233462] map_info['map_portfolio_photo'] : {26361584: [1380233508, 1380233507, 1380233506, 1380233505, 1380233504, 1380233503, 1380233464, 1380233463, 1380233462, 1380233450, 1380233449, 1380233448, 1380233447, 1380233446, 1380233408, 1380233407, 1380233406, 1380233405, 1380233404, 1380233381, 1380233380, 1380233379, 1380233378, 1380233377, 1380233304, 1380233303, 1380233302, 1380233273, 1380233272, 1380233271, 1380233270, 1380233269, 1380233246, 1380233245, 1380233244, 1380233243, 1380233242, 1380233223, 1380233222, 1380233221, 1380233220, 1380233219]} final : False mtd_id 4302 list_pids : [1380233508, 1380233507, 1380233506, 1380233505, 1380233504, 1380233503, 1380233464, 1380233463, 1380233462] Looping around the photos to save general results len do output : 1 /26361584. 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, '3640893') ('4302', '26361584', '1380233508', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233507', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233506', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233505', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233504', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233503', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233464', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233463', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233462', None, None, None, None, None, '3640893') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26361584', "{'Carton_brun': 26361596, 'papier': 26361597, 'cartonnette': 26361598, 'Teint_Dans_La_Masse': 26361599, 'flou': 26361600, 'metal': 26361601, 'mal_croppe': 26361602, 'Carton_gris': 26361603, 'kraft': 26361604, 'environnement': 26361605, 'autre_refus': 26361606, 'plastique': 26361607}", None, None, None, None, '3640893'), ('4302', '26361584', '1380233508', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233507', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233506', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233505', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233504', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233503', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233464', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233463', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233462', None, None, None, None, None, '3640893')] time used for this insertion : 0.01546335220336914 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.525449275970459 time spend to save output : 0.015743017196655273 total time spend for step 1 : 1.5411922931671143 step2:final Sat Aug 30 03:55:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26361584) 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 26361584 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1380233223,1380233222,1380233221,1380233220,1380233219,1380233246,1380233245,1380233244,1380233243,1380233242,1380233273,1380233272,1380233271,1380233270,1380233269,1380233304,1380233303,1380233302,1380233381,1380233380,1380233379,1380233378,1380233377,1380233408,1380233407,1380233406,1380233405,1380233404,1380233450,1380233449,1380233448,1380233447,1380233446,1380233464,1380233463,1380233462,1380233508,1380233507,1380233506,1380233505,1380233504,1380233503); 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([26361584]) Inside saveOutput : final : False verbose : True original output for save of step final : {1380233508: ('0.09133953307963329',), 1380233507: ('0.09133953307963329',), 1380233506: ('0.09133953307963329',), 1380233505: ('0.09133953307963329',), 1380233504: ('0.09133953307963329',), 1380233503: ('0.09133953307963329',), 1380233464: ('0.09133953307963329',), 1380233463: ('0.09133953307963329',), 1380233462: ('0.09133953307963329',)} new output for save of step final : {1380233508: ('0.09133953307963329',), 1380233507: ('0.09133953307963329',), 1380233506: ('0.09133953307963329',), 1380233505: ('0.09133953307963329',), 1380233504: ('0.09133953307963329',), 1380233503: ('0.09133953307963329',), 1380233464: ('0.09133953307963329',), 1380233463: ('0.09133953307963329',), 1380233462: ('0.09133953307963329',)} [1380233508, 1380233507, 1380233506, 1380233505, 1380233504, 1380233503, 1380233464, 1380233463, 1380233462] map_info['map_portfolio_photo'] : {26361584: [1380233508, 1380233507, 1380233506, 1380233505, 1380233504, 1380233503, 1380233464, 1380233463, 1380233462, 1380233450, 1380233449, 1380233448, 1380233447, 1380233446, 1380233408, 1380233407, 1380233406, 1380233405, 1380233404, 1380233381, 1380233380, 1380233379, 1380233378, 1380233377, 1380233304, 1380233303, 1380233302, 1380233273, 1380233272, 1380233271, 1380233270, 1380233269, 1380233246, 1380233245, 1380233244, 1380233243, 1380233242, 1380233223, 1380233222, 1380233221, 1380233220, 1380233219]} final : False mtd_id 4302 list_pids : [1380233508, 1380233507, 1380233506, 1380233505, 1380233504, 1380233503, 1380233464, 1380233463, 1380233462] Looping around the photos to save general results len do output : 9 /1380233508.Didn't retrieve data . /1380233507.Didn't retrieve data . /1380233506.Didn't retrieve data . /1380233505.Didn't retrieve data . /1380233504.Didn't retrieve data . /1380233503.Didn't retrieve data . /1380233464.Didn't retrieve data . /1380233463.Didn't retrieve data . /1380233462.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, '3640893') ('4302', '26361584', '1380233508', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233507', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233506', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233505', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233504', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233503', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233464', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233463', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233462', None, None, None, None, None, '3640893') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '26361584', '1380233508', '0.09133953307963329', None, None, None, None, '3640893'), ('4302', '26361584', '1380233507', '0.09133953307963329', None, None, None, None, '3640893'), ('4302', '26361584', '1380233506', '0.09133953307963329', None, None, None, None, '3640893'), ('4302', '26361584', '1380233505', '0.09133953307963329', None, None, None, None, '3640893'), ('4302', '26361584', '1380233504', '0.09133953307963329', None, None, None, None, '3640893'), ('4302', '26361584', '1380233503', '0.09133953307963329', None, None, None, None, '3640893'), ('4302', '26361584', '1380233464', '0.09133953307963329', None, None, None, None, '3640893'), ('4302', '26361584', '1380233463', '0.09133953307963329', None, None, None, None, '3640893'), ('4302', '26361584', '1380233462', '0.09133953307963329', None, None, None, None, '3640893')] time used for this insertion : 0.01488947868347168 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06365585327148438 time spend to save output : 0.015194177627563477 total time spend for step 2 : 0.07885003089904785 step3:velours_tree Sat Aug 30 03:55:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {26361584: [{'Carton_brun': 26361596, 'papier': 26361597, 'cartonnette': 26361598, 'Teint_Dans_La_Masse': 26361599, 'flou': 26361600, 'metal': 26361601, 'mal_croppe': 26361602, 'Carton_gris': 26361603, 'kraft': 26361604, 'environnement': 26361605, 'autre_refus': 26361606, 'plastique': 26361607}]} input_args_next_step : {26361584: ()} output_args : {26361584: [{'Carton_brun': 26361596, 'papier': 26361597, 'cartonnette': 26361598, 'Teint_Dans_La_Masse': 26361599, 'flou': 26361600, 'metal': 26361601, 'mal_croppe': 26361602, 'Carton_gris': 26361603, 'kraft': 26361604, 'environnement': 26361605, 'autre_refus': 26361606, 'plastique': 26361607}]} args : 26361584 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 26361596, 'papier': 26361597, 'cartonnette': 26361598, 'Teint_Dans_La_Masse': 26361599, 'flou': 26361600, 'metal': 26361601, 'mal_croppe': 26361602, 'Carton_gris': 26361603, 'kraft': 26361604, 'environnement': 26361605, 'autre_refus': 26361606, 'plastique': 26361607},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26361584) 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([26361584]) 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.2822744846343994 time spend to save output : 4.9591064453125e-05 total time spend for step 3 : 0.28232407569885254 step4:send_mail_cod Sat Aug 30 03:55: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 : {1380233508: ('0.09133953307963329',), 1380233507: ('0.09133953307963329',), 1380233506: ('0.09133953307963329',), 1380233505: ('0.09133953307963329',), 1380233504: ('0.09133953307963329',), 1380233503: ('0.09133953307963329',), 1380233464: ('0.09133953307963329',), 1380233463: ('0.09133953307963329',), 1380233462: ('0.09133953307963329',)} input_args_next_step : {1380233508: ()} output_args : {1380233508: ('0.09133953307963329',), 1380233507: ('0.09133953307963329',), 1380233506: ('0.09133953307963329',), 1380233505: ('0.09133953307963329',), 1380233504: ('0.09133953307963329',), 1380233503: ('0.09133953307963329',), 1380233464: ('0.09133953307963329',), 1380233463: ('0.09133953307963329',), 1380233462: ('0.09133953307963329',)} args : 1380233508 depend.output_id : 0 input_args_next_step : {1380233508: ('0.09133953307963329',), 1380233507: ()} output_args : {1380233508: ('0.09133953307963329',), 1380233507: ('0.09133953307963329',), 1380233506: ('0.09133953307963329',), 1380233505: ('0.09133953307963329',), 1380233504: ('0.09133953307963329',), 1380233503: ('0.09133953307963329',), 1380233464: ('0.09133953307963329',), 1380233463: ('0.09133953307963329',), 1380233462: ('0.09133953307963329',)} args : 1380233507 depend.output_id : 0 input_args_next_step : {1380233508: ('0.09133953307963329',), 1380233507: ('0.09133953307963329',), 1380233506: ()} output_args : {1380233508: ('0.09133953307963329',), 1380233507: ('0.09133953307963329',), 1380233506: ('0.09133953307963329',), 1380233505: ('0.09133953307963329',), 1380233504: ('0.09133953307963329',), 1380233503: ('0.09133953307963329',), 1380233464: ('0.09133953307963329',), 1380233463: ('0.09133953307963329',), 1380233462: ('0.09133953307963329',)} args : 1380233506 depend.output_id : 0 input_args_next_step : {1380233508: ('0.09133953307963329',), 1380233507: ('0.09133953307963329',), 1380233506: ('0.09133953307963329',), 1380233505: ()} output_args : {1380233508: ('0.09133953307963329',), 1380233507: ('0.09133953307963329',), 1380233506: ('0.09133953307963329',), 1380233505: ('0.09133953307963329',), 1380233504: ('0.09133953307963329',), 1380233503: ('0.09133953307963329',), 1380233464: ('0.09133953307963329',), 1380233463: ('0.09133953307963329',), 1380233462: ('0.09133953307963329',)} args : 1380233505 depend.output_id : 0 input_args_next_step : {1380233508: ('0.09133953307963329',), 1380233507: ('0.09133953307963329',), 1380233506: ('0.09133953307963329',), 1380233505: ('0.09133953307963329',), 1380233504: ()} output_args : {1380233508: ('0.09133953307963329',), 1380233507: ('0.09133953307963329',), 1380233506: ('0.09133953307963329',), 1380233505: ('0.09133953307963329',), 1380233504: ('0.09133953307963329',), 1380233503: ('0.09133953307963329',), 1380233464: ('0.09133953307963329',), 1380233463: ('0.09133953307963329',), 1380233462: ('0.09133953307963329',)} args : 1380233504 depend.output_id : 0 input_args_next_step : {1380233508: ('0.09133953307963329',), 1380233507: ('0.09133953307963329',), 1380233506: ('0.09133953307963329',), 1380233505: ('0.09133953307963329',), 1380233504: ('0.09133953307963329',), 1380233503: ()} output_args : {1380233508: ('0.09133953307963329',), 1380233507: ('0.09133953307963329',), 1380233506: ('0.09133953307963329',), 1380233505: ('0.09133953307963329',), 1380233504: ('0.09133953307963329',), 1380233503: ('0.09133953307963329',), 1380233464: ('0.09133953307963329',), 1380233463: ('0.09133953307963329',), 1380233462: ('0.09133953307963329',)} args : 1380233503 depend.output_id : 0 input_args_next_step : {1380233508: ('0.09133953307963329',), 1380233507: ('0.09133953307963329',), 1380233506: ('0.09133953307963329',), 1380233505: ('0.09133953307963329',), 1380233504: ('0.09133953307963329',), 1380233503: ('0.09133953307963329',), 1380233464: ()} output_args : {1380233508: ('0.09133953307963329',), 1380233507: ('0.09133953307963329',), 1380233506: ('0.09133953307963329',), 1380233505: ('0.09133953307963329',), 1380233504: ('0.09133953307963329',), 1380233503: ('0.09133953307963329',), 1380233464: ('0.09133953307963329',), 1380233463: ('0.09133953307963329',), 1380233462: ('0.09133953307963329',)} args : 1380233464 depend.output_id : 0 input_args_next_step : {1380233508: ('0.09133953307963329',), 1380233507: ('0.09133953307963329',), 1380233506: ('0.09133953307963329',), 1380233505: ('0.09133953307963329',), 1380233504: ('0.09133953307963329',), 1380233503: ('0.09133953307963329',), 1380233464: ('0.09133953307963329',), 1380233463: ()} output_args : {1380233508: ('0.09133953307963329',), 1380233507: ('0.09133953307963329',), 1380233506: ('0.09133953307963329',), 1380233505: ('0.09133953307963329',), 1380233504: ('0.09133953307963329',), 1380233503: ('0.09133953307963329',), 1380233464: ('0.09133953307963329',), 1380233463: ('0.09133953307963329',), 1380233462: ('0.09133953307963329',)} args : 1380233463 depend.output_id : 0 input_args_next_step : {1380233508: ('0.09133953307963329',), 1380233507: ('0.09133953307963329',), 1380233506: ('0.09133953307963329',), 1380233505: ('0.09133953307963329',), 1380233504: ('0.09133953307963329',), 1380233503: ('0.09133953307963329',), 1380233464: ('0.09133953307963329',), 1380233463: ('0.09133953307963329',), 1380233462: ()} output_args : {1380233508: ('0.09133953307963329',), 1380233507: ('0.09133953307963329',), 1380233506: ('0.09133953307963329',), 1380233505: ('0.09133953307963329',), 1380233504: ('0.09133953307963329',), 1380233503: ('0.09133953307963329',), 1380233464: ('0.09133953307963329',), 1380233463: ('0.09133953307963329',), 1380233462: ('0.09133953307963329',)} args : 1380233462 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 : {26361584: [{'Carton_brun': 26361596, 'papier': 26361597, 'cartonnette': 26361598, 'Teint_Dans_La_Masse': 26361599, 'flou': 26361600, 'metal': 26361601, 'mal_croppe': 26361602, 'Carton_gris': 26361603, 'kraft': 26361604, 'environnement': 26361605, 'autre_refus': 26361606, 'plastique': 26361607}]} input_args_next_step : {1380233508: ('0.09133953307963329',), 1380233507: ('0.09133953307963329',), 1380233506: ('0.09133953307963329',), 1380233505: ('0.09133953307963329',), 1380233504: ('0.09133953307963329',), 1380233503: ('0.09133953307963329',), 1380233464: ('0.09133953307963329',), 1380233463: ('0.09133953307963329',), 1380233462: ('0.09133953307963329',), 26361584: ()} output_args : {26361584: [{'Carton_brun': 26361596, 'papier': 26361597, 'cartonnette': 26361598, 'Teint_Dans_La_Masse': 26361599, 'flou': 26361600, 'metal': 26361601, 'mal_croppe': 26361602, 'Carton_gris': 26361603, 'kraft': 26361604, 'environnement': 26361605, 'autre_refus': 26361606, 'plastique': 26361607}]} args : 26361584 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 :10, first value : ('0.09133953307963329',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26361584) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1380233508,1380233507,1380233506,1380233505,1380233504,1380233503,1380233464,1380233463,1380233462) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1380233462 begin to download photo : 1380233464 begin to download photo : 1380233504 begin to download photo : 1380233508 begin to download photo : 1380233506 download finish for photo 1380233506 begin to download photo : 1380233507 download finish for photo 1380233504 begin to download photo : 1380233505 download finish for photo 1380233462 begin to download photo : 1380233463 download finish for photo 1380233464 begin to download photo : 1380233503 download finish for photo 1380233508 download finish for photo 1380233505 download finish for photo 1380233507 download finish for photo 1380233463 download finish for photo 1380233503 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P26361584_30-08-2025_03_55_01.pdf 26361598 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26361598 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380233398: '1756518627_1582343_1380233271_f5c420e048c9305567d3a8ab9efbbcba_39503510_rle_crop_3936351165_0.png'} change filename to text .imagette263615981756518901/ imagette263615981756518901/1756518627_1582343_1380233271_f5c420e048c9305567d3a8ab9efbbcba_39503510_rle_crop_3936351165_0.png.png imagette263616001756518901/ imagette263616011756518901/ imagette263616021756518901/ imagette263616041756518901/ imagette263616061756518901/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/226d94d275a77ead9a77c28058595cea_83574869.png imagette263615981756518901 26361600 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26361600 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette263616001756518901 26361601 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26361601 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette263616011756518901 26361602 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26361602 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette263616021756518901 26361604 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26361604 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette263616041756518901 26361606 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26361606 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette263616061756518901 26361607 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26361607 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380233399: '1756518627_1582343_1380233269_bb0c980a112acab9dd2976371c24df4a_84293134_rle_crop_3936351191_0.png'} change filename to text .imagette263616071756518901/ imagette263616071756518901/1756518627_1582343_1380233269_bb0c980a112acab9dd2976371c24df4a_84293134_rle_crop_3936351191_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/b335b228319b27dea5f298be660958c2_99546737.png imagette263616071756518901 26361596 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26361596 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380233373: '1756518565_1578310_1380233219_e094dbe5c394164f6e44fa92a2f9a076_19861946_rle_crop_3936351041_0.png', 1380233435: '1756518665_1583666_1380233219_e094dbe5c394164f6e44fa92a2f9a076_19861946_rle_crop_3936351041_0.png', 1380233443: '1756518686_1585430_1380233244_6b0fd4d31cae8c833349d86d27d2b57e_47840537_rle_crop_3936351681_0.png', 1380233444: '1756518686_1585430_1380233242_172085260b2416080e9e4cab6832bc6b_64075737_rle_crop_3936351710_0.png', 1380233445: '1756518686_1585430_1380233242_172085260b2416080e9e4cab6832bc6b_64075737_rle_crop_3936351714_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/5baf47a5e639212eca3477c1ed637753_88895572.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/5baf47a5e639212eca3477c1ed637753_11597448.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/39cd9d5411f014ec13a4bfaedeafce33_31259592.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/3decd8590308c7fffdecb7919b7cdf56_44643041.png change filename to text .imagette263615961756518901/ imagette263615961756518901/1756518686_1585430_1380233242_172085260b2416080e9e4cab6832bc6b_64075737_rle_crop_3936351714_0.png.png imagette263615961756518901/1756518565_1578310_1380233219_e094dbe5c394164f6e44fa92a2f9a076_19861946_rle_crop_3936351041_0.png.png imagette263615961756518901/1756518686_1585430_1380233244_6b0fd4d31cae8c833349d86d27d2b57e_47840537_rle_crop_3936351681_0.png.png imagette263615961756518901/1756518665_1583666_1380233219_e094dbe5c394164f6e44fa92a2f9a076_19861946_rle_crop_3936351041_0.png.png imagette263615961756518901/1756518686_1585430_1380233242_172085260b2416080e9e4cab6832bc6b_64075737_rle_crop_3936351710_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/4d93e7f4d5aecf0d65aec9b60895aa34_21831976.png imagette263615961756518901 26361599 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26361599 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380233369: '1756518565_1578310_1380233220_e7849fdd5d2fc636e3bb73fd25255df1_29300716_rle_crop_3936351028_0.png', 1380233397: '1756518627_1582343_1380233271_f5c420e048c9305567d3a8ab9efbbcba_39503510_rle_crop_3936351166_0.png', 1380233429: '1756518665_1583666_1380233246_16d4100cc8b3db348704d3f476feee4e_77644029_rle_crop_3936351303_0.png', 1380233430: '1756518665_1583666_1380233220_e7849fdd5d2fc636e3bb73fd25255df1_29300716_rle_crop_3936351028_0.png', 1380233439: '1756518686_1585430_1380233245_5834971c96e9d826b47e8e53abf5350e_10551460_rle_crop_3936351666_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/c053f011dcf1495eac94f113e235e0b5_60998369.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/02a14d513eed0bff4e88898683bb1b1e_54108038.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/26ebc7cefc4444c1a2706f03304a2e7f_57000085.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/c053f011dcf1495eac94f113e235e0b5_50908971.png change filename to text .imagette263615991756518901/ imagette263615991756518901/1756518565_1578310_1380233220_e7849fdd5d2fc636e3bb73fd25255df1_29300716_rle_crop_3936351028_0.png.png imagette263615991756518901/1756518665_1583666_1380233220_e7849fdd5d2fc636e3bb73fd25255df1_29300716_rle_crop_3936351028_0.png.png imagette263615991756518901/1756518686_1585430_1380233245_5834971c96e9d826b47e8e53abf5350e_10551460_rle_crop_3936351666_0.png.png imagette263615991756518901/1756518665_1583666_1380233246_16d4100cc8b3db348704d3f476feee4e_77644029_rle_crop_3936351303_0.png.png imagette263615991756518901/1756518627_1582343_1380233271_f5c420e048c9305567d3a8ab9efbbcba_39503510_rle_crop_3936351166_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/8317397a8c67188eeec4312f61ef1963_17016051.png imagette263615991756518901 26361603 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26361603 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380233371: '1756518565_1578310_1380233222_657fee7d6e7a3546aacd5607d23575ff_24282956_rle_crop_3936351009_0.png', 1380233372: '1756518565_1578310_1380233221_d0e4b51a68e041b77ab507dd9a7b2a64_8952493_rle_crop_3936351016_0.png', 1380233432: '1756518665_1583666_1380233222_657fee7d6e7a3546aacd5607d23575ff_24282956_rle_crop_3936351009_0.png', 1380233433: '1756518665_1583666_1380233221_d0e4b51a68e041b77ab507dd9a7b2a64_8952493_rle_crop_3936351016_0.png', 1380233440: '1756518686_1585430_1380233244_6b0fd4d31cae8c833349d86d27d2b57e_47840537_rle_crop_3936351683_0.png', 1380233441: '1756518686_1585430_1380233244_6b0fd4d31cae8c833349d86d27d2b57e_47840537_rle_crop_3936351684_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/465098b455c92123a54432159702accb_46719364.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/8a7061379bc42c4b1746de6d090de134_11875207.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/465098b455c92123a54432159702accb_12255958.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/8a7061379bc42c4b1746de6d090de134_87036406.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/7c90829bbfade627c627ae1b159984d1_77303758.png change filename to text .imagette263616031756518901/ imagette263616031756518901/1756518686_1585430_1380233244_6b0fd4d31cae8c833349d86d27d2b57e_47840537_rle_crop_3936351684_0.png.png imagette263616031756518901/1756518686_1585430_1380233244_6b0fd4d31cae8c833349d86d27d2b57e_47840537_rle_crop_3936351683_0.png.png imagette263616031756518901/1756518565_1578310_1380233222_657fee7d6e7a3546aacd5607d23575ff_24282956_rle_crop_3936351009_0.png.png imagette263616031756518901/1756518665_1583666_1380233222_657fee7d6e7a3546aacd5607d23575ff_24282956_rle_crop_3936351009_0.png.png imagette263616031756518901/1756518665_1583666_1380233221_d0e4b51a68e041b77ab507dd9a7b2a64_8952493_rle_crop_3936351016_0.png.png imagette263616031756518901/1756518565_1578310_1380233221_d0e4b51a68e041b77ab507dd9a7b2a64_8952493_rle_crop_3936351016_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/d797ce4b0ff696ded8c8c4a5046cee11_61161333.png imagette263616031756518901 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26361584 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26361609,26361610,26361611,26361612,26361613,26361614,26361615,26361616,26361617,26361618,26361619,26361620?tags=Carton_brun,papier,cartonnette,Teint_Dans_La_Masse,flou,metal,mal_croppe,Carton_gris,kraft,environnement,autre_refus,plastique your option no_mail is active, we will not send the real mail to your client args[1380233508] : ('0.09133953307963329',) no score found for photo 1380233508 We are sending mail with results at report@fotonower.com args[1380233507] : ('0.09133953307963329',) no score found for photo 1380233507 We are sending mail with results at report@fotonower.com args[1380233506] : ('0.09133953307963329',) no score found for photo 1380233506 We are sending mail with results at report@fotonower.com args[1380233505] : ('0.09133953307963329',) no score found for photo 1380233505 We are sending mail with results at report@fotonower.com args[1380233504] : ('0.09133953307963329',) no score found for photo 1380233504 We are sending mail with results at report@fotonower.com args[1380233503] : ('0.09133953307963329',) no score found for photo 1380233503 We are sending mail with results at report@fotonower.com args[1380233464] : ('0.09133953307963329',) no score found for photo 1380233464 We are sending mail with results at report@fotonower.com args[1380233463] : ('0.09133953307963329',) no score found for photo 1380233463 We are sending mail with results at report@fotonower.com args[1380233462] : ('0.09133953307963329',) no score found for photo 1380233462 We are sending mail with results at report@fotonower.com refus_total : 0.09133953307963329 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26361584 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_P26361584_30-08-2025_03_55_01.pdf results_Auto_P26361584_30-08-2025_03_55_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26361584_30-08-2025_03_55_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','26361584','results_Auto_P26361584_30-08-2025_03_55_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26361584_30-08-2025_03_55_01.pdf','pdf','','0.12','0.09133953307963329') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26361584]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1380233508, 1380233507, 1380233506, 1380233505, 1380233504, 1380233503, 1380233464, 1380233463, 1380233462] map_info['map_portfolio_photo'] : {26361584: [1380233508, 1380233507, 1380233506, 1380233505, 1380233504, 1380233503, 1380233464, 1380233463, 1380233462, 1380233450, 1380233449, 1380233448, 1380233447, 1380233446, 1380233408, 1380233407, 1380233406, 1380233405, 1380233404, 1380233381, 1380233380, 1380233379, 1380233378, 1380233377, 1380233304, 1380233303, 1380233302, 1380233273, 1380233272, 1380233271, 1380233270, 1380233269, 1380233246, 1380233245, 1380233244, 1380233243, 1380233242, 1380233223, 1380233222, 1380233221, 1380233220, 1380233219]} final : False mtd_id 4302 list_pids : [1380233508, 1380233507, 1380233506, 1380233505, 1380233504, 1380233503, 1380233464, 1380233463, 1380233462] 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, '3640893') ('4302', '26361584', '1380233508', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233507', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233506', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233505', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233504', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233503', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233464', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233463', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233462', None, None, None, None, None, '3640893') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '26361584', '1380233508', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233507', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233506', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233505', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233504', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233503', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233464', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233463', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233462', None, None, None, None, None, '3640893')] time used for this insertion : 0.016569852828979492 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.557548999786377 time spend to save output : 0.016849756240844727 total time spend for step 4 : 2.5743987560272217 step5:split_time_score Sat Aug 30 03:55:03 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 : ['26361584'] 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 : [('26361584',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26361584) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1380233508: {'path': 'temp/1756518900_771344_1380233508_902ae6b2c8b198416d1043e2cef79632_21072404.jpg', 'extension': 'jpg'}, 1380233504: {'path': 'temp/1756518900_771344_1380233504_9afd1e7eeb0fea6f9420e21c28367947_39075218.jpg', 'extension': 'jpg'}, 1380233505: {'path': 'temp/1756518900_771344_1380233505_938f5459a2225c439d4446e029d87a14_57175495.jpg', 'extension': 'jpg'}, 1380233506: {'path': 'temp/1756518900_771344_1380233506_47d3881bf382b80892c668d2895ff7d3_85467884.jpg', 'extension': 'jpg'}, 1380233507: {'path': 'temp/1756518900_771344_1380233507_03f51583a57557b7e0b9322dff1f0275_73213748.jpg', 'extension': 'jpg'}, 1380233462: {'path': 'temp/1756518900_771344_1380233462_017f0b0bdf519e3bd360c24ab16b161e_83997953.jpg', 'extension': 'jpg'}, 1380233463: {'path': 'temp/1756518900_771344_1380233463_c27660c7020566eea4ad24b3fc4e8ef5_32652374.jpg', 'extension': 'jpg'}, 1380233464: {'path': 'temp/1756518900_771344_1380233464_49edf43f839137eb73f8accf48b8176a_20674756.jpg', 'extension': 'jpg'}, 1380233503: {'path': 'temp/1756518900_771344_1380233503_59237ddfcdbc9d93b6648c9f623369e4_22215.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 = 26361584; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26361584 group by h (('03', 42),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26361584 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 (26361584) 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 (26361584) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30082025 26361584 Nombre de photos uploadées : 42 / 23040 (0%) 30082025 26361584 Nombre de photos taguées (types de déchets): 0 / 42 (0%) 30082025 26361584 Nombre de photos taguées (volume) : 0 / 42 (0%) [{'photo_id': 1380233223, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/f052d20459472a5bf918915e43d6a01e_36312277.jpg', 'username': None, 'uploaded_at': 1756518372, 'text': 'image_30082025_03_45_05_010168m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1380233222, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/657fee7d6e7a3546aacd5607d23575ff_24282956.jpg', 'username': None, 'uploaded_at': 1756518372, 'text': 'image_30082025_03_45_15_010133m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1380233221, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/d0e4b51a68e041b77ab507dd9a7b2a64_8952493.jpg', 'username': None, 'uploaded_at': 1756518372, 'text': 'image_30082025_03_45_25_010133m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1380233220, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/e7849fdd5d2fc636e3bb73fd25255df1_29300716.jpg', 'username': None, 'uploaded_at': 1756518372, 'text': 'image_30082025_03_45_34_009135m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 6.4373016357421875e-06 ?????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003376483917236328 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26361584, '2025-08-30' ) 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-08-30' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2200963,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2231767177581787 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= 2200963 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2200963, 'dashboard_run_id': 2209221, 'mtr_portfolio_id': 26354311, 'dashboard_result_id': 14486766, '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_P26354311_30-08-2025_00_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26354313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26354314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26354315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26354316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26354317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26354318, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26354319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26354320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26354321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26354322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26354323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26354324, 'pht': 3726}}"}, {'dashboat_entry_day': 2200963, 'dashboard_run_id': 2209221, 'mtr_portfolio_id': 26354941, 'dashboard_result_id': 14486767, '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_P26354941_30-08-2025_02_01_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26354982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26354983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26354984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26354985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26354986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26354987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26354988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26354989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26354990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26354991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26354992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26354993, 'pht': 3726}}"}, {'dashboat_entry_day': 2200963, 'dashboard_run_id': 2209221, 'mtr_portfolio_id': 26355515, 'dashboard_result_id': 14486768, '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_P26355515_30-08-2025_00_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26355521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26355522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26355523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26355524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26355525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26355526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26355527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26355528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26355529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26355530, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26355531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26355532, 'pht': 3726}}"}, {'dashboat_entry_day': 2200963, 'dashboard_run_id': 2209221, 'mtr_portfolio_id': 26356029, 'dashboard_result_id': 14486769, '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_P26356029_30-08-2025_01_30_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26356038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26356039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26356040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26356041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26356042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26356043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26356044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26356045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26356046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26356047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26356048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26356049, 'pht': 3726}}"}, {'dashboat_entry_day': 2200963, 'dashboard_run_id': 2209221, 'mtr_portfolio_id': 26357329, 'dashboard_result_id': 14486770, '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_P26357329_30-08-2025_01_47_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26357332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26357333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26357334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26357335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26357336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26357337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26357338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26357339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26357340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26357341, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26357342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26357343, 'pht': 3726}}"}, {'dashboat_entry_day': 2200963, 'dashboard_run_id': 2209221, 'mtr_portfolio_id': 26357677, 'dashboard_result_id': 14486771, '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_P26357677_30-08-2025_02_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26357682, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26357683, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26357684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26357685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26357686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26357687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26357688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26357689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26357690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26357691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26357692, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26357693, 'pht': 3726}}"}, {'dashboat_entry_day': 2200963, 'dashboard_run_id': 2209221, 'mtr_portfolio_id': 26358007, 'dashboard_result_id': 14486772, '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_P26358007_30-08-2025_02_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26358069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26358070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26358071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26358072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26358073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26358074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26358075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26358076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26358077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26358078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26358079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26358080, 'pht': 3726}}"}, {'dashboat_entry_day': 2200963, 'dashboard_run_id': 2209221, 'mtr_portfolio_id': 26358604, 'dashboard_result_id': 14486773, '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_P26358604_30-08-2025_02_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26358614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26358615, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26358616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26358617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26358618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26358619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26358620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26358621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26358622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26358623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26358624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26358625, 'pht': 3726}}"}, {'dashboat_entry_day': 2200963, 'dashboard_run_id': 2209221, 'mtr_portfolio_id': 26359171, 'dashboard_result_id': 14486774, '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_P26359171_30-08-2025_02_47_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26359182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26359183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26359184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26359185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26359186, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26359187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26359188, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26359189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26359190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26359192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26359193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26359194, 'pht': 3726}}"}, {'dashboat_entry_day': 2200963, 'dashboard_run_id': 2209221, 'mtr_portfolio_id': 26359561, 'dashboard_result_id': 14486775, '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_P26359561_30-08-2025_03_00_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26359567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26359568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26359569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26359570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26359571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26359572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26359573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26359574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26359575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26359576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26359577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26359578, 'pht': 3726}}"}, {'dashboat_entry_day': 2200963, 'dashboard_run_id': 2209221, 'mtr_portfolio_id': 26360086, 'dashboard_result_id': 14486776, '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_P26360086_30-08-2025_03_17_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26360097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26360098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26360099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26360100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26360101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26360102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26360103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26360104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26360105, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26360106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26360107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26360108, 'pht': 3726}}"}, {'dashboat_entry_day': 2200963, 'dashboard_run_id': 2209221, 'mtr_portfolio_id': 26360691, 'dashboard_result_id': 14486777, '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_P26360691_30-08-2025_03_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26360697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26360698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26360699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26360700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26360701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26360702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26360703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26360704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26360705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26360706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26360707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26360708, 'pht': 3726}}"}, {'dashboat_entry_day': 2200963, 'dashboard_run_id': 2209221, 'mtr_portfolio_id': 26361210, 'dashboard_result_id': 14486778, '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_P26361210_30-08-2025_03_46_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26361232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26361233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26361234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26361235, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26361236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26361237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26361238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26361239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26361240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26361242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26361243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26361244, 'pht': 3726}}"}, {'dashboat_entry_day': 2200963, 'dashboard_run_id': 2209221, 'mtr_portfolio_id': 26361584, 'dashboard_result_id': 14486779, '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_P26361584_30-08-2025_03_50_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26361596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26361597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26361598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26361599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26361600, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26361601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26361602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26361603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26361604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26361605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26361606, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26361607, '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 = 26354311 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': 3639788, 'mtr_portfolio_id': 26354311, 'created_at': datetime.datetime(2025, 8, 30, 0, 17), 'result': '0.05259478752757879', 'result_long': None, 'result_double': None}] Qualite : 0.05259478752757879 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26354311 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26354311_30-08-2025_00_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26354311 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_P26354311_30-08-2025_00_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26354313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26354314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26354315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26354316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26354317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26354318, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26354319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26354320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26354321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26354322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26354323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26354324, 'pht': 3726}}" where mtr_portfolio_id = 26354311 and dashboard_run_id = 2209221 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`=26354311 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14486766, 0.05259478752757879, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26354311_30-08-2025_00_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26354313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26354314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26354315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26354316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26354317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26354318, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26354319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26354320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26354321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26354322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26354323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26354324, '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 = 26354941 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': 3639846, 'mtr_portfolio_id': 26354941, 'created_at': datetime.datetime(2025, 8, 30, 2, 1, 30), 'result': '0.0541874581559304', 'result_long': None, 'result_double': None}] Qualite : 0.0541874581559304 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26354941 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26354941_30-08-2025_02_01_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26354941 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_P26354941_30-08-2025_02_01_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26354982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26354983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26354984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26354985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26354986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26354987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26354988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26354989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26354990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26354991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26354992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26354993, 'pht': 3726}}" where mtr_portfolio_id = 26354941 and dashboard_run_id = 2209221 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`=26354941 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14486767, 0.0541874581559304, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26354941_30-08-2025_02_01_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26354982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26354983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26354984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26354985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26354986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26354987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26354988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26354989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26354990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26354991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26354992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26354993, '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 = 26355515 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': 3639925, 'mtr_portfolio_id': 26355515, 'created_at': datetime.datetime(2025, 8, 30, 0, 47, 1), 'result': '0.038339709308548096', 'result_long': None, 'result_double': None}] Qualite : 0.038339709308548096 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26355515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26355515_30-08-2025_00_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26355515 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_P26355515_30-08-2025_00_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26355521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26355522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26355523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26355524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26355525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26355526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26355527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26355528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26355529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26355530, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26355531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26355532, 'pht': 3726}}" where mtr_portfolio_id = 26355515 and dashboard_run_id = 2209221 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`=26355515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14486768, 0.038339709308548096, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26355515_30-08-2025_00_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26355521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26355522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26355523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26355524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26355525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26355526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26355527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26355528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26355529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26355530, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26355531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26355532, '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 = 26356029 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': 3640011, 'mtr_portfolio_id': 26356029, 'created_at': datetime.datetime(2025, 8, 30, 1, 30, 28), 'result': '0.0645348043026146', 'result_long': None, 'result_double': None}] Qualite : 0.0645348043026146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26356029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26356029_30-08-2025_01_30_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26356029 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_P26356029_30-08-2025_01_30_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26356038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26356039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26356040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26356041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26356042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26356043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26356044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26356045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26356046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26356047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26356048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26356049, 'pht': 3726}}" where mtr_portfolio_id = 26356029 and dashboard_run_id = 2209221 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`=26356029 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14486769, 0.0645348043026146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26356029_30-08-2025_01_30_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26356038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26356039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26356040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26356041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26356042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26356043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26356044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26356045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26356046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26356047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26356048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26356049, '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 = 26357329 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': 3640209, 'mtr_portfolio_id': 26357329, 'created_at': datetime.datetime(2025, 8, 30, 1, 47, 1), 'result': '0.034956030996926596', 'result_long': None, 'result_double': None}] Qualite : 0.034956030996926596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26357329 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26357329_30-08-2025_01_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26357329 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_P26357329_30-08-2025_01_47_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26357332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26357333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26357334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26357335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26357336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26357337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26357338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26357339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26357340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26357341, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26357342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26357343, 'pht': 3726}}" where mtr_portfolio_id = 26357329 and dashboard_run_id = 2209221 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`=26357329 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14486770, 0.034956030996926596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26357329_30-08-2025_01_47_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26357332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26357333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26357334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26357335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26357336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26357337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26357338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26357339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26357340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26357341, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26357342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26357343, '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 = 26357677 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': 3640245, 'mtr_portfolio_id': 26357677, 'created_at': datetime.datetime(2025, 8, 30, 2, 2, 59), 'result': '0.042465975591740306', 'result_long': None, 'result_double': None}] Qualite : 0.042465975591740306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26357677 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26357677_30-08-2025_02_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26357677 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_P26357677_30-08-2025_02_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26357682, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26357683, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26357684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26357685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26357686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26357687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26357688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26357689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26357690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26357691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26357692, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26357693, 'pht': 3726}}" where mtr_portfolio_id = 26357677 and dashboard_run_id = 2209221 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`=26357677 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14486771, 0.042465975591740306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26357677_30-08-2025_02_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26357682, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26357683, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26357684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26357685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26357686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26357687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26357688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26357689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26357690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26357691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26357692, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26357693, '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 = 26358007 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': 3640319, 'mtr_portfolio_id': 26358007, 'created_at': datetime.datetime(2025, 8, 30, 2, 17), 'result': '0.05083260333324252', 'result_long': None, 'result_double': None}] Qualite : 0.05083260333324252 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26358007 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26358007_30-08-2025_02_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26358007 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_P26358007_30-08-2025_02_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26358069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26358070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26358071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26358072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26358073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26358074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26358075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26358076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26358077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26358078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26358079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26358080, 'pht': 3726}}" where mtr_portfolio_id = 26358007 and dashboard_run_id = 2209221 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`=26358007 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14486772, 0.05083260333324252, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26358007_30-08-2025_02_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26358069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26358070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26358071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26358072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26358073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26358074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26358075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26358076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26358077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26358078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26358079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26358080, '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 = 26358604 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': 3640394, 'mtr_portfolio_id': 26358604, 'created_at': datetime.datetime(2025, 8, 30, 2, 32, 58), 'result': '0.05610939559169867', 'result_long': None, 'result_double': None}] Qualite : 0.05610939559169867 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26358604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26358604_30-08-2025_02_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26358604 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_P26358604_30-08-2025_02_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26358614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26358615, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26358616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26358617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26358618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26358619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26358620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26358621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26358622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26358623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26358624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26358625, 'pht': 3726}}" where mtr_portfolio_id = 26358604 and dashboard_run_id = 2209221 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`=26358604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14486773, 0.05610939559169867, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26358604_30-08-2025_02_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26358614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26358615, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26358616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26358617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26358618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26358619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26358620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26358621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26358622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26358623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26358624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26358625, '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 = 26359171 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': 3640483, 'mtr_portfolio_id': 26359171, 'created_at': datetime.datetime(2025, 8, 30, 2, 47, 33), 'result': '0.0585220596335806', 'result_long': None, 'result_double': None}] Qualite : 0.0585220596335806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26359171 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26359171_30-08-2025_02_47_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26359171 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_P26359171_30-08-2025_02_47_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26359182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26359183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26359184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26359185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26359186, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26359187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26359188, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26359189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26359190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26359192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26359193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26359194, 'pht': 3726}}" where mtr_portfolio_id = 26359171 and dashboard_run_id = 2209221 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`=26359171 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14486774, 0.0585220596335806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26359171_30-08-2025_02_47_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26359182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26359183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26359184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26359185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26359186, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26359187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26359188, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26359189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26359190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26359192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26359193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26359194, '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 = 26359561 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': 3640553, 'mtr_portfolio_id': 26359561, 'created_at': datetime.datetime(2025, 8, 30, 3, 2, 57), 'result': '0.07274488792551499', 'result_long': None, 'result_double': None}] Qualite : 0.07274488792551499 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26359561 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26359561_30-08-2025_03_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26359561 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_P26359561_30-08-2025_03_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26359567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26359568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26359569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26359570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26359571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26359572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26359573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26359574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26359575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26359576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26359577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26359578, 'pht': 3726}}" where mtr_portfolio_id = 26359561 and dashboard_run_id = 2209221 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`=26359561 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14486775, 0.07274488792551499, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26359561_30-08-2025_03_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26359567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26359568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26359569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26359570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26359571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26359572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26359573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26359574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26359575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26359576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26359577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26359578, '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 = 26360086 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': 3640638, 'mtr_portfolio_id': 26360086, 'created_at': datetime.datetime(2025, 8, 30, 3, 17, 30), 'result': '0.06085764187413855', 'result_long': None, 'result_double': None}] Qualite : 0.06085764187413855 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26360086 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26360086_30-08-2025_03_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26360086 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_P26360086_30-08-2025_03_17_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26360097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26360098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26360099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26360100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26360101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26360102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26360103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26360104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26360105, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26360106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26360107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26360108, 'pht': 3726}}" where mtr_portfolio_id = 26360086 and dashboard_run_id = 2209219 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`=26360086 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14486776, 0.06085764187413855, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26360086_30-08-2025_03_17_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26360097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26360098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26360099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26360100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26360101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26360102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26360103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26360104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26360105, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26360106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26360107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26360108, '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 = 26360691 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': 3640719, 'mtr_portfolio_id': 26360691, 'created_at': datetime.datetime(2025, 8, 30, 3, 32, 58), 'result': '0.06614401221533198', 'result_long': None, 'result_double': None}] Qualite : 0.06614401221533198 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26360691 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26360691_30-08-2025_03_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26360691 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_P26360691_30-08-2025_03_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26360697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26360698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26360699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26360700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26360701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26360702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26360703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26360704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26360705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26360706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26360707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26360708, 'pht': 3726}}" where mtr_portfolio_id = 26360691 and dashboard_run_id = 2209219 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`=26360691 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14486777, 0.06614401221533198, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26360691_30-08-2025_03_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26360697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26360698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26360699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26360700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26360701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26360702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26360703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26360704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26360705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26360706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26360707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26360708, '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 = 26361210 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': 3640799, 'mtr_portfolio_id': 26361210, 'created_at': datetime.datetime(2025, 8, 30, 3, 46, 58), 'result': '0.05496646531738665', 'result_long': None, 'result_double': None}] Qualite : 0.05496646531738665 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26361210 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26361210_30-08-2025_03_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26361210 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_P26361210_30-08-2025_03_46_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26361232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26361233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26361234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26361235, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26361236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26361237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26361238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26361239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26361240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26361242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26361243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26361244, 'pht': 3726}}" where mtr_portfolio_id = 26361210 and dashboard_run_id = 2209219 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`=26361210 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14486778, 0.05496646531738665, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26361210_30-08-2025_03_46_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26361232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26361233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26361234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26361235, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26361236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26361237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26361238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26361239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26361240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26361242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26361243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26361244, '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 = 26361584 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': 3640893, 'mtr_portfolio_id': 26361584, 'created_at': datetime.datetime(2025, 8, 30, 3, 55), 'result': '0.09133953307963329', 'result_long': None, 'result_double': None}] Qualite : 0.09133953307963329 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26361584 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26361584_30-08-2025_03_55_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26361584 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_P26361584_30-08-2025_03_55_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26361596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26361597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26361598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26361599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26361600, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26361601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26361602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26361603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26361604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26361605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26361606, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26361607, 'pht': 3726}}" where mtr_portfolio_id = 26361584 and dashboard_run_id = 2209219 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`=26361584 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14486779, 0.09133953307963329, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26361584_30-08-2025_03_55_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26361596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26361597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26361598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26361599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26361600, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26361601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26361602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26361603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26361604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26361605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26361606, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26361607, '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 (26354311,26354941,26355515,26356029,26357329,26357677,26358007,26358604,26359171,26359561,26360086,26360691,26361210,26361584) result : ((1380209529,), (1380209532,), (1380210237,), (1380210240,), (1380210243,), (1380210649,), (1380210652,), (1380210655,), (1380210658,), (1380210661,), (1380211446,), (1380211447,), (1380211448,), (1380211449,), (1380211450,), (1380211649,), (1380211650,), (1380211651,), (1380211652,), (1380211653,), (1380211654,), (1380211705,), (1380211706,), (1380211707,), (1380211708,), (1380211709,), (1380211775,), (1380211776,), (1380211777,), (1380211778,), (1380211845,), (1380211846,), (1380211847,), (1380211848,), (1380211849,), (1380211850,), (1380211870,), (1380211871,), (1380211872,), (1380211873,), (1380211874,), (1380211917,), (1380211918,), (1380211919,), (1380211939,), (1380211940,), (1380211941,), (1380211942,), (1380211972,), (1380211973,), (1380211974,), (1380211975,), (1380211976,), (1380211977,), (1380212006,), (1380212008,), (1380212010,), (1380212063,), (1380212064,), (1380212065,), (1380212223,), (1380212224,), (1380212225,), (1380212226,), (1380212352,), (1380212349,), (1380212350,), (1380212351,), (1380212436,), (1380212437,), (1380212438,), (1380212439,), (1380212440,), (1380212731,), (1380212733,), (1380212734,), (1380212735,), (1380212736,), (1380212847,), (1380212848,), (1380213045,), (1380213047,), (1380213049,), (1380213051,), (1380213053,), (1380213055,), (1380213157,), (1380213158,), (1380213159,), (1380213160,), (1380213161,), (1380213210,), (1380213212,), (1380213214,), (1380213217,), (1380213219,), (1380213524,), (1380213525,), (1380213526,), (1380213527,), (1380213528,), (1380213529,), (1380213622,), (1380213623,), (1380213624,), (1380213773,), (1380213775,), (1380213777,), (1380213779,), (1380213899,), (1380213900,), (1380213901,), (1380213902,), (1380213903,), (1380213943,), (1380213944,), (1380213945,), (1380213946,), (1380213947,), (1380213948,), (1380214087,), (1380214088,), (1380214089,), (1380214090,), (1380214091,), (1380214114,), (1380214116,), (1380214118,), (1380214479,), (1380214480,), (1380214481,), (1380214586,), (1380214582,), (1380214583,), (1380214584,), (1380214585,), (1380214614,), (1380214615,), (1380214616,), (1380214617,), (1380214678,), (1380214680,), (1380214682,), (1380214684,), (1380215002,), (1380215004,), (1380215089,), (1380215090,), (1380215091,), (1380215092,), (1380215093,), (1380215160,), (1380215161,), (1380215162,), (1380215163,), (1380215164,), (1380215183,), (1380215184,), (1380215185,), (1380215186,), (1380215187,), (1380215209,), (1380215210,), (1380215212,), (1380215213,), (1380215214,), (1380215215,), (1380215240,), (1380215241,), (1380215242,), (1380215275,), (1380215276,), (1380215277,), (1380215278,), (1380215279,), (1380215299,), (1380215300,), (1380215301,), (1380215302,), (1380215303,), (1380215336,), (1380215337,), (1380215338,), (1380215423,), (1380215424,), (1380215489,), (1380215490,), (1380215491,), (1380215492,), (1380215528,), (1380215524,), (1380215525,), (1380215526,), (1380215527,), (1380215561,), (1380215562,), (1380215563,), (1380215564,), (1380215565,), (1380215566,), (1380215641,), (1380215642,), (1380215643,), (1380215668,), (1380215669,), (1380215670,), (1380215671,), (1380215672,), (1380215673,), (1380215700,), (1380215701,), (1380215702,), (1380215703,), (1380215704,), (1380215756,), (1380215757,), (1380215758,), (1380215901,), (1380215902,), (1380215903,), (1380215904,), (1380215905,), (1380215935,), (1380215936,), (1380215937,), (1380215938,), (1380215939,), (1380215940,), (1380215973,), (1380215974,), (1380215976,), (1380215978,), (1380216105,), (1380216106,), (1380216107,), (1380216108,), (1380216109,), (1380216110,), (1380216142,), (1380216143,), (1380216144,), (1380216145,), (1380216146,), (1380216147,), (1380216232,), (1380216233,), (1380216234,), (1380216272,), (1380216273,), (1380216274,), (1380216275,), (1380216276,), (1380216277,), (1380222266,), (1380222284,), (1380222285,), (1380222286,), (1380222287,), (1380222311,), (1380222312,), (1380222313,), (1380222314,), (1380222315,), (1380222316,), (1380222441,), (1380222442,), (1380222443,), (1380222460,), (1380222461,), (1380222482,), (1380222483,), (1380222484,), (1380222504,), (1380222505,), (1380222506,), (1380222507,), (1380222569,), (1380222570,), (1380222571,), (1380222590,), (1380222591,), (1380222592,), (1380222620,), (1380222621,), (1380222637,), (1380222638,), (1380222640,), (1380222668,), (1380222669,), (1380222670,), (1380222671,), (1380222697,), (1380222698,), (1380222699,), (1380222700,), (1380222722,), (1380222723,), (1380222724,), (1380222725,), (1380222726,), (1380222748,), (1380222749,), (1380222750,), (1380222794,), (1380222789,), (1380222790,), (1380222791,), (1380222792,), (1380222793,), (1380222823,), (1380222824,), (1380222825,), (1380222826,), (1380222827,), (1380222850,), (1380222851,), (1380222852,), (1380222853,), (1380222854,), (1380222872,), (1380222873,), (1380222874,), (1380222875,), (1380222977,), (1380222978,), (1380222979,), (1380222980,), (1380222981,), (1380222996,), (1380222997,), (1380222998,), (1380222999,), (1380223000,), (1380223021,), (1380223022,), (1380223023,), (1380223024,), (1380223045,), (1380223046,), (1380223047,), (1380223048,), (1380223068,), (1380223069,), (1380223070,), (1380223071,), (1380223072,), (1380223086,), (1380223087,), (1380223088,), (1380223140,), (1380223141,), (1380223142,), (1380223143,), (1380223162,), (1380223163,), (1380223164,), (1380223165,), (1380223166,), (1380223190,), (1380223191,), (1380223215,), (1380223216,), (1380223218,), (1380223219,), (1380223220,), (1380223225,), (1380223226,), (1380223227,), (1380223228,), (1380223260,), (1380223257,), (1380223258,), (1380223259,), (1380223329,), (1380223330,), (1380223331,), (1380223332,), (1380223348,), (1380223349,), (1380223626,), (1380223628,), (1380223630,), (1380223632,), (1380223634,), (1380223636,), (1380224001,), (1380224003,), (1380224005,), (1380224007,), (1380224009,), (1380224352,), (1380224359,), (1380224367,), (1380224374,), (1380224381,), (1380224730,), (1380224731,), (1380224732,), (1380224828,), (1380224829,), (1380224830,), (1380224831,), (1380224832,), (1380224846,), (1380224847,), (1380224848,), (1380224849,), (1380224850,), (1380224884,), (1380224885,), (1380224886,), (1380224887,), (1380224888,), (1380224977,), (1380224978,), (1380224979,), (1380224980,), (1380225214,), (1380225216,), (1380225218,), (1380225220,), (1380225610,), (1380225612,), (1380225614,), (1380226082,), (1380226084,), (1380227110,), (1380227105,), (1380227106,), (1380227107,), (1380227108,), (1380227109,), (1380227212,), (1380227274,), (1380227276,), (1380227278,), (1380227280,), (1380227448,), (1380227449,), (1380227450,), (1380227451,), (1380227470,), (1380227471,), (1380227472,), (1380227473,), (1380227558,), (1380227559,), (1380227560,), (1380227561,), (1380227597,), (1380227598,), (1380227599,), (1380227600,), (1380227601,), (1380227727,), (1380227728,), (1380227729,), (1380227730,), (1380227788,), (1380227789,), (1380227790,), (1380227791,), (1380227792,), (1380227818,), (1380227827,), (1380227828,), (1380227829,), (1380227830,), (1380227848,), (1380227849,), (1380227850,), (1380227851,), (1380227955,), (1380227956,), (1380227957,), (1380227958,), (1380227959,), (1380227960,), (1380227977,), (1380227978,), (1380227979,), (1380228007,), (1380228008,), (1380228009,), (1380228028,), (1380228025,), (1380228026,), (1380228027,), (1380228052,), (1380228053,), (1380228054,), (1380228055,), (1380228056,), (1380228111,), (1380228112,), (1380228113,), (1380228114,), (1380228129,), (1380228130,), (1380228131,), (1380228132,), (1380228133,), (1380228157,), (1380228160,), (1380228161,), (1380228162,), (1380228185,), (1380228186,), (1380228187,), (1380228188,), (1380228213,), (1380228214,), (1380228215,), (1380228216,), (1380228249,), (1380228251,), (1380228253,), (1380228255,), (1380228256,), (1380228274,), (1380228275,), (1380228276,), (1380228277,), (1380228314,), (1380228315,), (1380228337,), (1380228338,), (1380228339,), (1380228340,), (1380228341,), (1380228366,), (1380228367,), (1380228368,), (1380228369,), (1380228391,), (1380228392,), (1380228393,), (1380228431,), (1380228432,), (1380228433,), (1380228434,), (1380228435,), (1380228451,), (1380228452,), (1380228479,), (1380228477,), (1380228478,), (1380228500,), (1380228501,), (1380228502,), (1380228503,), (1380228504,), (1380228571,), (1380228572,), (1380228573,), (1380228574,), (1380228594,), (1380228595,), (1380228597,), (1380228598,), (1380228627,), (1380228628,), (1380228629,), (1380228674,), (1380228675,), (1380228712,), (1380228713,), (1380228714,), (1380228715,), (1380228780,), (1380228781,), (1380228782,), (1380228823,), (1380228824,), (1380228825,), (1380228839,), (1380228840,), (1380228841,), (1380228842,), (1380228863,), (1380228893,), (1380228895,), (1380228897,), (1380228899,), (1380229256,), (1380229257,), (1380229258,), (1380229259,), (1380229260,), (1380229261,), (1380229401,), (1380229403,), (1380229405,), (1380229406,), (1380229772,), (1380229760,), (1380229763,), (1380229766,), (1380229769,), (1380230520,), (1380230523,), (1380230526,), (1380230529,), (1380230532,), (1380230535,), (1380231134,), (1380231136,), (1380231138,), (1380231140,), (1380231142,), (1380231144,), (1380231563,), (1380231564,), (1380231785,), (1380231786,), (1380231787,), (1380231788,), (1380231789,), (1380231854,), (1380231855,), (1380231856,), (1380231857,), (1380231858,), (1380231859,), (1380231921,), (1380231922,), (1380231923,), (1380231924,), (1380231990,), (1380231991,), (1380231992,), (1380231993,), (1380232016,), (1380232017,), (1380232018,), (1380232019,), (1380232020,), (1380232021,), (1380232049,), (1380232050,), (1380232051,), (1380232052,), (1380232080,), (1380232081,), (1380232082,), (1380232083,), (1380232110,), (1380232111,), (1380232112,), (1380232113,), (1380232195,), (1380232196,), (1380232197,), (1380232198,), (1380232199,), (1380232235,), (1380232236,), (1380232237,), (1380232238,), (1380232257,), (1380232258,), (1380232259,), (1380232261,), (1380232262,), (1380232296,), (1380232293,), (1380232294,), (1380232295,), (1380232316,), (1380232317,), (1380232318,), (1380232373,), (1380232374,), (1380232375,), (1380232394,), (1380232395,), (1380232396,), (1380232397,), (1380232398,), (1380232437,), (1380232438,), (1380232439,), (1380232440,), (1380232441,), (1380232442,), (1380232458,), (1380232459,), (1380232460,), (1380232461,), (1380232492,), (1380232493,), (1380232494,), (1380232495,), (1380232538,), (1380232539,), (1380232540,), (1380232541,), (1380232542,), (1380232567,), (1380232568,), (1380232569,), (1380232570,), (1380232571,), (1380232572,), (1380232597,), (1380232598,), (1380232599,), (1380232600,), (1380232601,), (1380232634,), (1380232635,), (1380232636,), (1380232637,), (1380232638,), (1380232639,), (1380232655,), (1380232656,), (1380232657,), (1380232658,), (1380232690,), (1380232691,), (1380232692,), (1380232693,), (1380232712,), (1380232713,), (1380232714,), (1380232715,), (1380232716,), (1380232740,), (1380232741,), (1380232742,), (1380232743,), (1380232770,), (1380232768,), (1380232769,), (1380232857,), (1380232858,), (1380232941,), (1380232942,), (1380232984,), (1380232985,), (1380232986,), (1380233012,), (1380233013,), (1380233014,), (1380233015,), (1380233055,), (1380233056,), (1380233079,), (1380233080,), (1380233081,), (1380233082,), (1380233083,), (1380233119,), (1380233120,), (1380233121,), (1380233122,), (1380233140,), (1380233141,), (1380233142,), (1380233143,), (1380233144,), (1380233145,), (1380233172,), (1380233173,), (1380233174,), (1380233175,), (1380233176,), (1380233192,), (1380233193,), (1380233194,), (1380233195,), (1380233224,), (1380233219,), (1380233220,), (1380233221,), (1380233222,), (1380233223,), (1380233242,), (1380233243,), (1380233244,), (1380233245,), (1380233246,), (1380233269,), (1380233270,), (1380233271,), (1380233272,), (1380233273,), (1380233302,), (1380233303,), (1380233304,), (1380233377,), (1380233378,), (1380233379,), (1380233380,), (1380233381,), (1380233404,), (1380233405,), (1380233406,), (1380233407,), (1380233408,), (1380233446,), (1380233447,), (1380233448,), (1380233449,), (1380233450,), (1380233462,), (1380233463,), (1380233464,), (1380233503,), (1380233504,), (1380233505,), (1380233506,), (1380233507,), (1380233508,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30082025': {'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([26361584]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1380233508, 1380233507, 1380233506, 1380233505, 1380233504, 1380233503, 1380233464, 1380233463, 1380233462] map_info['map_portfolio_photo'] : {26361584: [1380233508, 1380233507, 1380233506, 1380233505, 1380233504, 1380233503, 1380233464, 1380233463, 1380233462, 1380233450, 1380233449, 1380233448, 1380233447, 1380233446, 1380233408, 1380233407, 1380233406, 1380233405, 1380233404, 1380233381, 1380233380, 1380233379, 1380233378, 1380233377, 1380233304, 1380233303, 1380233302, 1380233273, 1380233272, 1380233271, 1380233270, 1380233269, 1380233246, 1380233245, 1380233244, 1380233243, 1380233242, 1380233223, 1380233222, 1380233221, 1380233220, 1380233219]} final : True mtd_id 4302 list_pids : [1380233508, 1380233507, 1380233506, 1380233505, 1380233504, 1380233503, 1380233464, 1380233463, 1380233462] Looping around the photos to save general results len do output : 1 /26361584Didn'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, '3640893') ('4302', '26361584', '1380233508', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233507', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233506', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233505', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233504', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233503', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233464', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233463', None, None, None, None, None, '3640893') ('4302', None, None, None, None, None, None, None, '3640893') ('4302', '26361584', '1380233462', None, None, None, None, None, '3640893') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26361584', 'None', None, None, None, None, '3640893'), ('4302', '26361584', '1380233508', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233507', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233506', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233505', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233504', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233503', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233464', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233463', None, None, None, None, None, '3640893'), ('4302', '26361584', '1380233462', None, None, None, None, None, '3640893')] time used for this insertion : 0.017515182495117188 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1791908740997314 time spend to save output : 0.017739295959472656 total time spend for step 5 : 1.196930170059204 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 (3640893) 2.07user 2.36system 0:08.80elapsed 50%CPU (0avgtext+0avgdata 161520maxresident)k 1088inputs+6504outputs (15major+64241minor)pagefaults 0swaps