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 : 4114534 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 (3815808) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3815808) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27430484 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3815808'] with mtr_portfolio_ids : ['27430484'] and first list_photo_ids : [] new path : /proc/4114534/ Name: python3 Umask: 0002 State: R (running) Tgid: 4114534 Ngid: 0 Pid: 4114534 PPid: 4114533 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4114534 NSpid: 4114534 NSpgid: 4113256 NSsid: 4113256 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98700 kB VmRSS: 98700 kB RssAnon: 59848 kB RssFile: 38852 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 51 nonvoluntary_ctxt_switches: 84 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4114534', 'Ngid': '0', 'Pid': '4114534', 'PPid': '4114533', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4114534', 'NSpid': '4114534', 'NSpgid': '4113256', 'NSsid': '4113256', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98700 kB', 'VmRSS': '98700 kB', 'RssAnon': '59848 kB', 'RssFile': '38852 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '51', 'nonvoluntary_ctxt_switches': '84'} ('datou_batch_current', '4114534', '1106868', '0', '1106868', '865620', '98700', b'', 'marlene', '3815808') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (27430484) 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 (3815808 ) ) 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 (27430484) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1387315165, 'portfolio_id': 27430484}, {'photo_id': 1387315164, 'portfolio_id': 27430484}, {'photo_id': 1387315163, 'portfolio_id': 27430484}, {'photo_id': 1387315139, 'portfolio_id': 27430484}, {'photo_id': 1387315136, 'portfolio_id': 27430484}, {'photo_id': 1387315134, 'portfolio_id': 27430484}, {'photo_id': 1387315129, 'portfolio_id': 27430484}, {'photo_id': 1387315128, 'portfolio_id': 27430484}, {'photo_id': 1387315122, 'portfolio_id': 27430484}, {'photo_id': 1387315119, 'portfolio_id': 27430484}, {'photo_id': 1387315117, 'portfolio_id': 27430484}, {'photo_id': 1387315114, 'portfolio_id': 27430484}, {'photo_id': 1387315097, 'portfolio_id': 27430484}, {'photo_id': 1387315095, 'portfolio_id': 27430484}, {'photo_id': 1387315092, 'portfolio_id': 27430484}, {'photo_id': 1387315089, 'portfolio_id': 27430484}, {'photo_id': 1387315067, 'portfolio_id': 27430484}, {'photo_id': 1387315066, 'portfolio_id': 27430484}, {'photo_id': 1387315065, 'portfolio_id': 27430484}, {'photo_id': 1387315047, 'portfolio_id': 27430484}, {'photo_id': 1387315044, 'portfolio_id': 27430484}, {'photo_id': 1387315040, 'portfolio_id': 27430484}, {'photo_id': 1387315037, 'portfolio_id': 27430484}, {'photo_id': 1387314984, 'portfolio_id': 27430484}, {'photo_id': 1387314964, 'portfolio_id': 27430484}, {'photo_id': 1387314961, 'portfolio_id': 27430484}, {'photo_id': 1387314958, 'portfolio_id': 27430484}, {'photo_id': 1387314956, 'portfolio_id': 27430484}, {'photo_id': 1387314936, 'portfolio_id': 27430484}, {'photo_id': 1387314934, 'portfolio_id': 27430484}, {'photo_id': 1387314932, 'portfolio_id': 27430484}, {'photo_id': 1387314930, 'portfolio_id': 27430484}, {'photo_id': 1387314927, 'portfolio_id': 27430484}, {'photo_id': 1387314906, 'portfolio_id': 27430484}, {'photo_id': 1387314903, 'portfolio_id': 27430484}, {'photo_id': 1387314885, 'portfolio_id': 27430484}, {'photo_id': 1387314884, 'portfolio_id': 27430484}, {'photo_id': 1387314883, 'portfolio_id': 27430484}, {'photo_id': 1387314863, 'portfolio_id': 27430484}, {'photo_id': 1387314860, 'portfolio_id': 27430484}, {'photo_id': 1387314830, 'portfolio_id': 27430484}, {'photo_id': 1387314826, 'portfolio_id': 27430484}, {'photo_id': 1387314821, 'portfolio_id': 27430484}] map_portfolio_id_photo_id: {27430484: [1387315165, 1387315164, 1387315163, 1387315139, 1387315136, 1387315134, 1387315129, 1387315128, 1387315122, 1387315119, 1387315117, 1387315114, 1387315097, 1387315095, 1387315092, 1387315089, 1387315067, 1387315066, 1387315065, 1387315047, 1387315044, 1387315040, 1387315037, 1387314984, 1387314964, 1387314961, 1387314958, 1387314956, 1387314936, 1387314934, 1387314932, 1387314930, 1387314927, 1387314906, 1387314903, 1387314885, 1387314884, 1387314883, 1387314863, 1387314860, 1387314830, 1387314826, 1387314821]} ##### 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.05525064468383789 #### 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 Thu Oct 2 03:42:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27430484) 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 : 27430484 get user id for portfolio 27430484 get sub ptf for main ptf 27430484, type 3726 and hashtags ['metal', 'Carton_brun', 'cartonnette', 'environnement', 'plastique', 'papier', 'kraft', 'autre_refus', 'flou', 'Teint_Dans_La_Masse', 'Carton_gris', 'mal_croppe'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27430484 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_brun','cartonnette','environnement','plastique','papier','kraft','autre_refus','flou','Teint_Dans_La_Masse','Carton_gris','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27430484 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_brun','cartonnette','environnement','plastique','papier','kraft','autre_refus','flou','Teint_Dans_La_Masse','Carton_gris','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 27430484, 'sub_port_id': 27430530, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535833, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 29)}, 'papier': {'main_port_id': 27430484, 'sub_port_id': 27430531, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535834, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 29)}, 'Carton_gris': {'main_port_id': 27430484, 'sub_port_id': 27430532, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535835, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 29)}, 'cartonnette': {'main_port_id': 27430484, 'sub_port_id': 27430533, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535836, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 27430484, 'sub_port_id': 27430534, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535837, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 29)}, 'autre_refus': {'main_port_id': 27430484, 'sub_port_id': 27430535, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535838, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 29)}, 'mal_croppe': {'main_port_id': 27430484, 'sub_port_id': 27430536, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535839, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 29)}, 'plastique': {'main_port_id': 27430484, 'sub_port_id': 27430537, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535840, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 29)}, 'metal': {'main_port_id': 27430484, 'sub_port_id': 27430538, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535841, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 29)}, 'flou': {'main_port_id': 27430484, 'sub_port_id': 27430539, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535842, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 29)}, 'Carton_brun': {'main_port_id': 27430484, 'sub_port_id': 27430540, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535843, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 29)}, 'environnement': {'main_port_id': 27430484, 'sub_port_id': 27430541, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535844, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27430530 , 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=27430484 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 (27430530) result : ((1387315126,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27430484) result : ((1387314821,), (1387314826,), (1387314830,), (1387314860,), (1387314863,), (1387314883,), (1387314884,), (1387314885,), (1387314903,), (1387314906,), (1387314927,), (1387314930,), (1387314932,), (1387314934,), (1387314936,), (1387314956,), (1387314958,), (1387314961,), (1387314964,), (1387314984,), (1387315037,), (1387315040,), (1387315044,), (1387315047,), (1387315065,), (1387315066,), (1387315067,), (1387315089,), (1387315092,), (1387315095,), (1387315097,), (1387315114,), (1387315117,), (1387315119,), (1387315122,), (1387315128,), (1387315129,), (1387315134,), (1387315136,), (1387315139,), (1387315163,), (1387315164,), (1387315165,)) 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 27430531 , 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=27430484 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 (27430531) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27430484) result : ((1387314821,), (1387314826,), (1387314830,), (1387314860,), (1387314863,), (1387314883,), (1387314884,), (1387314885,), (1387314903,), (1387314906,), (1387314927,), (1387314930,), (1387314932,), (1387314934,), (1387314936,), (1387314956,), (1387314958,), (1387314961,), (1387314964,), (1387314984,), (1387315037,), (1387315040,), (1387315044,), (1387315047,), (1387315065,), (1387315066,), (1387315067,), (1387315089,), (1387315092,), (1387315095,), (1387315097,), (1387315114,), (1387315117,), (1387315119,), (1387315122,), (1387315128,), (1387315129,), (1387315134,), (1387315136,), (1387315139,), (1387315163,), (1387315164,), (1387315165,)) 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 27430532 , 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=27430484 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 (27430532) result : ((1387315006,), (1387315123,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27430484) result : ((1387314821,), (1387314826,), (1387314830,), (1387314860,), (1387314863,), (1387314883,), (1387314884,), (1387314885,), (1387314903,), (1387314906,), (1387314927,), (1387314930,), (1387314932,), (1387314934,), (1387314936,), (1387314956,), (1387314958,), (1387314961,), (1387314964,), (1387314984,), (1387315037,), (1387315040,), (1387315044,), (1387315047,), (1387315065,), (1387315066,), (1387315067,), (1387315089,), (1387315092,), (1387315095,), (1387315097,), (1387315114,), (1387315117,), (1387315119,), (1387315122,), (1387315128,), (1387315129,), (1387315134,), (1387315136,), (1387315139,), (1387315163,), (1387315164,), (1387315165,)) 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 27430533 , 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=27430484 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 (27430533) result : ((1387315007,), (1387315072,), (1387315073,), (1387315074,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27430484) result : ((1387314821,), (1387314826,), (1387314830,), (1387314860,), (1387314863,), (1387314883,), (1387314884,), (1387314885,), (1387314903,), (1387314906,), (1387314927,), (1387314930,), (1387314932,), (1387314934,), (1387314936,), (1387314956,), (1387314958,), (1387314961,), (1387314964,), (1387314984,), (1387315037,), (1387315040,), (1387315044,), (1387315047,), (1387315065,), (1387315066,), (1387315067,), (1387315089,), (1387315092,), (1387315095,), (1387315097,), (1387315114,), (1387315117,), (1387315119,), (1387315122,), (1387315128,), (1387315129,), (1387315134,), (1387315136,), (1387315139,), (1387315163,), (1387315164,), (1387315165,)) 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 27430534 , 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=27430484 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 (27430534) result : ((1387314997,), (1387314998,), (1387314999,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27430484) result : ((1387314821,), (1387314826,), (1387314830,), (1387314860,), (1387314863,), (1387314883,), (1387314884,), (1387314885,), (1387314903,), (1387314906,), (1387314927,), (1387314930,), (1387314932,), (1387314934,), (1387314936,), (1387314956,), (1387314958,), (1387314961,), (1387314964,), (1387314984,), (1387315037,), (1387315040,), (1387315044,), (1387315047,), (1387315065,), (1387315066,), (1387315067,), (1387315089,), (1387315092,), (1387315095,), (1387315097,), (1387315114,), (1387315117,), (1387315119,), (1387315122,), (1387315128,), (1387315129,), (1387315134,), (1387315136,), (1387315139,), (1387315163,), (1387315164,), (1387315165,)) 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 27430535 , 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=27430484 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 (27430535) result : ((1387315000,), (1387315121,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27430484) result : ((1387314821,), (1387314826,), (1387314830,), (1387314860,), (1387314863,), (1387314883,), (1387314884,), (1387314885,), (1387314903,), (1387314906,), (1387314927,), (1387314930,), (1387314932,), (1387314934,), (1387314936,), (1387314956,), (1387314958,), (1387314961,), (1387314964,), (1387314984,), (1387315037,), (1387315040,), (1387315044,), (1387315047,), (1387315065,), (1387315066,), (1387315067,), (1387315089,), (1387315092,), (1387315095,), (1387315097,), (1387315114,), (1387315117,), (1387315119,), (1387315122,), (1387315128,), (1387315129,), (1387315134,), (1387315136,), (1387315139,), (1387315163,), (1387315164,), (1387315165,)) 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 27430536 , 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=27430484 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 (27430536) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27430484) result : ((1387314821,), (1387314826,), (1387314830,), (1387314860,), (1387314863,), (1387314883,), (1387314884,), (1387314885,), (1387314903,), (1387314906,), (1387314927,), (1387314930,), (1387314932,), (1387314934,), (1387314936,), (1387314956,), (1387314958,), (1387314961,), (1387314964,), (1387314984,), (1387315037,), (1387315040,), (1387315044,), (1387315047,), (1387315065,), (1387315066,), (1387315067,), (1387315089,), (1387315092,), (1387315095,), (1387315097,), (1387315114,), (1387315117,), (1387315119,), (1387315122,), (1387315128,), (1387315129,), (1387315134,), (1387315136,), (1387315139,), (1387315163,), (1387315164,), (1387315165,)) 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 27430537 , 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=27430484 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 (27430537) result : ((1387315011,), (1387315012,), (1387315124,), (1387315125,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27430484) result : ((1387314821,), (1387314826,), (1387314830,), (1387314860,), (1387314863,), (1387314883,), (1387314884,), (1387314885,), (1387314903,), (1387314906,), (1387314927,), (1387314930,), (1387314932,), (1387314934,), (1387314936,), (1387314956,), (1387314958,), (1387314961,), (1387314964,), (1387314984,), (1387315037,), (1387315040,), (1387315044,), (1387315047,), (1387315065,), (1387315066,), (1387315067,), (1387315089,), (1387315092,), (1387315095,), (1387315097,), (1387315114,), (1387315117,), (1387315119,), (1387315122,), (1387315128,), (1387315129,), (1387315134,), (1387315136,), (1387315139,), (1387315163,), (1387315164,), (1387315165,)) 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 27430538 , 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=27430484 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 (27430538) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27430484) result : ((1387314821,), (1387314826,), (1387314830,), (1387314860,), (1387314863,), (1387314883,), (1387314884,), (1387314885,), (1387314903,), (1387314906,), (1387314927,), (1387314930,), (1387314932,), (1387314934,), (1387314936,), (1387314956,), (1387314958,), (1387314961,), (1387314964,), (1387314984,), (1387315037,), (1387315040,), (1387315044,), (1387315047,), (1387315065,), (1387315066,), (1387315067,), (1387315089,), (1387315092,), (1387315095,), (1387315097,), (1387315114,), (1387315117,), (1387315119,), (1387315122,), (1387315128,), (1387315129,), (1387315134,), (1387315136,), (1387315139,), (1387315163,), (1387315164,), (1387315165,)) 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 27430539 , 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=27430484 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 (27430539) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27430484) result : ((1387314821,), (1387314826,), (1387314830,), (1387314860,), (1387314863,), (1387314883,), (1387314884,), (1387314885,), (1387314903,), (1387314906,), (1387314927,), (1387314930,), (1387314932,), (1387314934,), (1387314936,), (1387314956,), (1387314958,), (1387314961,), (1387314964,), (1387314984,), (1387315037,), (1387315040,), (1387315044,), (1387315047,), (1387315065,), (1387315066,), (1387315067,), (1387315089,), (1387315092,), (1387315095,), (1387315097,), (1387315114,), (1387315117,), (1387315119,), (1387315122,), (1387315128,), (1387315129,), (1387315134,), (1387315136,), (1387315139,), (1387315163,), (1387315164,), (1387315165,)) 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 27430540 , 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=27430484 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 (27430540) result : ((1387315009,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27430484) result : ((1387314821,), (1387314826,), (1387314830,), (1387314860,), (1387314863,), (1387314883,), (1387314884,), (1387314885,), (1387314903,), (1387314906,), (1387314927,), (1387314930,), (1387314932,), (1387314934,), (1387314936,), (1387314956,), (1387314958,), (1387314961,), (1387314964,), (1387314984,), (1387315037,), (1387315040,), (1387315044,), (1387315047,), (1387315065,), (1387315066,), (1387315067,), (1387315089,), (1387315092,), (1387315095,), (1387315097,), (1387315114,), (1387315117,), (1387315119,), (1387315122,), (1387315128,), (1387315129,), (1387315134,), (1387315136,), (1387315139,), (1387315163,), (1387315164,), (1387315165,)) 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 27430541 , 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=27430484 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 (27430541) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27430484) result : ((1387314821,), (1387314826,), (1387314830,), (1387314860,), (1387314863,), (1387314883,), (1387314884,), (1387314885,), (1387314903,), (1387314906,), (1387314927,), (1387314930,), (1387314932,), (1387314934,), (1387314936,), (1387314956,), (1387314958,), (1387314961,), (1387314964,), (1387314984,), (1387315037,), (1387315040,), (1387315044,), (1387315047,), (1387315065,), (1387315066,), (1387315067,), (1387315089,), (1387315092,), (1387315095,), (1387315097,), (1387315114,), (1387315117,), (1387315119,), (1387315122,), (1387315128,), (1387315129,), (1387315134,), (1387315136,), (1387315139,), (1387315163,), (1387315164,), (1387315165,)) 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`=27430484 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_brun','cartonnette','environnement','plastique','papier','kraft','autre_refus','flou','Teint_Dans_La_Masse','Carton_gris','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27430484 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_brun','cartonnette','environnement','plastique','papier','kraft','autre_refus','flou','Teint_Dans_La_Masse','Carton_gris','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 27430484, 'sub_port_id': 27430543, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535845, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 34)}, 'papier': {'main_port_id': 27430484, 'sub_port_id': 27430544, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535846, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 34)}, 'Carton_gris': {'main_port_id': 27430484, 'sub_port_id': 27430545, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535847, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 34)}, 'cartonnette': {'main_port_id': 27430484, 'sub_port_id': 27430546, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535848, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 27430484, 'sub_port_id': 27430547, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535849, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 34)}, 'autre_refus': {'main_port_id': 27430484, 'sub_port_id': 27430548, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535850, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 34)}, 'mal_croppe': {'main_port_id': 27430484, 'sub_port_id': 27430549, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535851, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 34)}, 'plastique': {'main_port_id': 27430484, 'sub_port_id': 27430550, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535852, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 34)}, 'metal': {'main_port_id': 27430484, 'sub_port_id': 27430551, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535853, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 34)}, 'flou': {'main_port_id': 27430484, 'sub_port_id': 27430552, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535854, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 34)}, 'Carton_brun': {'main_port_id': 27430484, 'sub_port_id': 27430553, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535855, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 34)}, 'environnement': {'main_port_id': 27430484, 'sub_port_id': 27430554, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18535856, 'last_updated_at': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 3, 41, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 3, 33, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27430543,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27430530 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27430544,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27430531 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27430545,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27430532 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27430546,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27430533 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27430547,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27430534 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27430548,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27430535 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27430549,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27430536 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27430550,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27430537 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27430551,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27430538 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27430552,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27430539 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27430553,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27430540 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27430554,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27430541 lien utilise dans velours : https://marlene.fotonower.com/velours/27430543,27430544,27430545,27430546,27430547,27430548,27430549,27430550,27430551,27430552,27430553,27430554?tags=kraft,papier,Carton_gris,cartonnette,Teint_Dans_La_Masse,autre_refus,mal_croppe,plastique,metal,flou,Carton_brun,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27430484]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1387315165, 1387315164, 1387315163, 1387315139, 1387315136, 1387315134, 1387315129, 1387315128, 1387315122, 1387315119, 1387315117, 1387315114] map_info['map_portfolio_photo'] : {27430484: [1387315165, 1387315164, 1387315163, 1387315139, 1387315136, 1387315134, 1387315129, 1387315128, 1387315122, 1387315119, 1387315117, 1387315114, 1387315097, 1387315095, 1387315092, 1387315089, 1387315067, 1387315066, 1387315065, 1387315047, 1387315044, 1387315040, 1387315037, 1387314984, 1387314964, 1387314961, 1387314958, 1387314956, 1387314936, 1387314934, 1387314932, 1387314930, 1387314927, 1387314906, 1387314903, 1387314885, 1387314884, 1387314883, 1387314863, 1387314860, 1387314830, 1387314826, 1387314821]} final : False mtd_id 4302 list_pids : [1387315165, 1387315164, 1387315163, 1387315139, 1387315136, 1387315134, 1387315129, 1387315128, 1387315122, 1387315119, 1387315117, 1387315114] Looping around the photos to save general results len do output : 1 /27430484. 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, '3815808') ('4302', '27430484', '1387315165', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315164', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315163', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315139', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315136', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315134', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315129', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315128', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315122', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315119', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315117', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315114', None, None, None, None, None, '3815808') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27430484', "{'kraft': 27430530, 'papier': 27430531, 'Carton_gris': 27430532, 'cartonnette': 27430533, 'Teint_Dans_La_Masse': 27430534, 'autre_refus': 27430535, 'mal_croppe': 27430536, 'plastique': 27430537, 'metal': 27430538, 'flou': 27430539, 'Carton_brun': 27430540, 'environnement': 27430541}", None, None, None, None, '3815808'), ('4302', '27430484', '1387315165', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315164', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315163', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315139', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315136', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315134', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315129', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315128', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315122', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315119', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315117', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315114', None, None, None, None, None, '3815808')] time used for this insertion : 0.03828072547912598 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.198760747909546 time spend to save output : 0.0386049747467041 total time spend for step 1 : 5.23736572265625 step2:final Thu Oct 2 03:43:04 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 (27430484) 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 27430484 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1387314830,1387314826,1387314821,1387314863,1387314860,1387314885,1387314884,1387314883,1387314906,1387314903,1387314936,1387314934,1387314932,1387314930,1387314927,1387314964,1387314961,1387314958,1387314956,1387314984,1387315047,1387315044,1387315040,1387315037,1387315067,1387315066,1387315065,1387315097,1387315139,1387315095,1387315136,1387315092,1387315134,1387315089,1387315129,1387315128,1387315122,1387315119,1387315117,1387315114,1387315165,1387315164,1387315163); 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([27430484]) Inside saveOutput : final : False verbose : True original output for save of step final : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ('0.04497570458523468',), 1387315122: ('0.04497570458523468',), 1387315119: ('0.04497570458523468',), 1387315117: ('0.04497570458523468',), 1387315114: ('0.04497570458523468',)} new output for save of step final : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ('0.04497570458523468',), 1387315122: ('0.04497570458523468',), 1387315119: ('0.04497570458523468',), 1387315117: ('0.04497570458523468',), 1387315114: ('0.04497570458523468',)} [1387315165, 1387315164, 1387315163, 1387315139, 1387315136, 1387315134, 1387315129, 1387315128, 1387315122, 1387315119, 1387315117, 1387315114] map_info['map_portfolio_photo'] : {27430484: [1387315165, 1387315164, 1387315163, 1387315139, 1387315136, 1387315134, 1387315129, 1387315128, 1387315122, 1387315119, 1387315117, 1387315114, 1387315097, 1387315095, 1387315092, 1387315089, 1387315067, 1387315066, 1387315065, 1387315047, 1387315044, 1387315040, 1387315037, 1387314984, 1387314964, 1387314961, 1387314958, 1387314956, 1387314936, 1387314934, 1387314932, 1387314930, 1387314927, 1387314906, 1387314903, 1387314885, 1387314884, 1387314883, 1387314863, 1387314860, 1387314830, 1387314826, 1387314821]} final : False mtd_id 4302 list_pids : [1387315165, 1387315164, 1387315163, 1387315139, 1387315136, 1387315134, 1387315129, 1387315128, 1387315122, 1387315119, 1387315117, 1387315114] Looping around the photos to save general results len do output : 12 /1387315165.Didn't retrieve data . /1387315164.Didn't retrieve data . /1387315163.Didn't retrieve data . /1387315139.Didn't retrieve data . /1387315136.Didn't retrieve data . /1387315134.Didn't retrieve data . /1387315129.Didn't retrieve data . /1387315128.Didn't retrieve data . /1387315122.Didn't retrieve data . /1387315119.Didn't retrieve data . /1387315117.Didn't retrieve data . /1387315114.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, '3815808') ('4302', '27430484', '1387315165', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315164', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315163', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315139', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315136', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315134', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315129', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315128', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315122', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315119', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315117', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315114', None, None, None, None, None, '3815808') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27430484', '1387315165', '0.04497570458523468', None, None, None, None, '3815808'), ('4302', '27430484', '1387315164', '0.04497570458523468', None, None, None, None, '3815808'), ('4302', '27430484', '1387315163', '0.04497570458523468', None, None, None, None, '3815808'), ('4302', '27430484', '1387315139', '0.04497570458523468', None, None, None, None, '3815808'), ('4302', '27430484', '1387315136', '0.04497570458523468', None, None, None, None, '3815808'), ('4302', '27430484', '1387315134', '0.04497570458523468', None, None, None, None, '3815808'), ('4302', '27430484', '1387315129', '0.04497570458523468', None, None, None, None, '3815808'), ('4302', '27430484', '1387315128', '0.04497570458523468', None, None, None, None, '3815808'), ('4302', '27430484', '1387315122', '0.04497570458523468', None, None, None, None, '3815808'), ('4302', '27430484', '1387315119', '0.04497570458523468', None, None, None, None, '3815808'), ('4302', '27430484', '1387315117', '0.04497570458523468', None, None, None, None, '3815808'), ('4302', '27430484', '1387315114', '0.04497570458523468', None, None, None, None, '3815808')] time used for this insertion : 0.03690385818481445 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2472677230834961 time spend to save output : 0.037529945373535156 total time spend for step 2 : 0.28479766845703125 step3:velours_tree Thu Oct 2 03:43:04 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 : {27430484: [{'kraft': 27430530, 'papier': 27430531, 'Carton_gris': 27430532, 'cartonnette': 27430533, 'Teint_Dans_La_Masse': 27430534, 'autre_refus': 27430535, 'mal_croppe': 27430536, 'plastique': 27430537, 'metal': 27430538, 'flou': 27430539, 'Carton_brun': 27430540, 'environnement': 27430541}]} input_args_next_step : {27430484: ()} output_args : {27430484: [{'kraft': 27430530, 'papier': 27430531, 'Carton_gris': 27430532, 'cartonnette': 27430533, 'Teint_Dans_La_Masse': 27430534, 'autre_refus': 27430535, 'mal_croppe': 27430536, 'plastique': 27430537, 'metal': 27430538, 'flou': 27430539, 'Carton_brun': 27430540, 'environnement': 27430541}]} args : 27430484 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 : ({'kraft': 27430530, 'papier': 27430531, 'Carton_gris': 27430532, 'cartonnette': 27430533, 'Teint_Dans_La_Masse': 27430534, 'autre_refus': 27430535, 'mal_croppe': 27430536, 'plastique': 27430537, 'metal': 27430538, 'flou': 27430539, 'Carton_brun': 27430540, 'environnement': 27430541},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27430484) 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([27430484]) 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.38088345527648926 time spend to save output : 6.079673767089844e-05 total time spend for step 3 : 0.38094425201416016 step4:send_mail_cod Thu Oct 2 03:43:04 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 : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ('0.04497570458523468',), 1387315122: ('0.04497570458523468',), 1387315119: ('0.04497570458523468',), 1387315117: ('0.04497570458523468',), 1387315114: ('0.04497570458523468',)} input_args_next_step : {1387315165: ()} output_args : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ('0.04497570458523468',), 1387315122: ('0.04497570458523468',), 1387315119: ('0.04497570458523468',), 1387315117: ('0.04497570458523468',), 1387315114: ('0.04497570458523468',)} args : 1387315165 depend.output_id : 0 input_args_next_step : {1387315165: ('0.04497570458523468',), 1387315164: ()} output_args : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ('0.04497570458523468',), 1387315122: ('0.04497570458523468',), 1387315119: ('0.04497570458523468',), 1387315117: ('0.04497570458523468',), 1387315114: ('0.04497570458523468',)} args : 1387315164 depend.output_id : 0 input_args_next_step : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ()} output_args : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ('0.04497570458523468',), 1387315122: ('0.04497570458523468',), 1387315119: ('0.04497570458523468',), 1387315117: ('0.04497570458523468',), 1387315114: ('0.04497570458523468',)} args : 1387315163 depend.output_id : 0 input_args_next_step : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ()} output_args : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ('0.04497570458523468',), 1387315122: ('0.04497570458523468',), 1387315119: ('0.04497570458523468',), 1387315117: ('0.04497570458523468',), 1387315114: ('0.04497570458523468',)} args : 1387315139 depend.output_id : 0 input_args_next_step : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ()} output_args : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ('0.04497570458523468',), 1387315122: ('0.04497570458523468',), 1387315119: ('0.04497570458523468',), 1387315117: ('0.04497570458523468',), 1387315114: ('0.04497570458523468',)} args : 1387315136 depend.output_id : 0 input_args_next_step : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ()} output_args : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ('0.04497570458523468',), 1387315122: ('0.04497570458523468',), 1387315119: ('0.04497570458523468',), 1387315117: ('0.04497570458523468',), 1387315114: ('0.04497570458523468',)} args : 1387315134 depend.output_id : 0 input_args_next_step : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ()} output_args : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ('0.04497570458523468',), 1387315122: ('0.04497570458523468',), 1387315119: ('0.04497570458523468',), 1387315117: ('0.04497570458523468',), 1387315114: ('0.04497570458523468',)} args : 1387315129 depend.output_id : 0 input_args_next_step : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ()} output_args : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ('0.04497570458523468',), 1387315122: ('0.04497570458523468',), 1387315119: ('0.04497570458523468',), 1387315117: ('0.04497570458523468',), 1387315114: ('0.04497570458523468',)} args : 1387315128 depend.output_id : 0 input_args_next_step : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ('0.04497570458523468',), 1387315122: ()} output_args : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ('0.04497570458523468',), 1387315122: ('0.04497570458523468',), 1387315119: ('0.04497570458523468',), 1387315117: ('0.04497570458523468',), 1387315114: ('0.04497570458523468',)} args : 1387315122 depend.output_id : 0 input_args_next_step : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ('0.04497570458523468',), 1387315122: ('0.04497570458523468',), 1387315119: ()} output_args : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ('0.04497570458523468',), 1387315122: ('0.04497570458523468',), 1387315119: ('0.04497570458523468',), 1387315117: ('0.04497570458523468',), 1387315114: ('0.04497570458523468',)} args : 1387315119 depend.output_id : 0 input_args_next_step : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ('0.04497570458523468',), 1387315122: ('0.04497570458523468',), 1387315119: ('0.04497570458523468',), 1387315117: ()} output_args : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ('0.04497570458523468',), 1387315122: ('0.04497570458523468',), 1387315119: ('0.04497570458523468',), 1387315117: ('0.04497570458523468',), 1387315114: ('0.04497570458523468',)} args : 1387315117 depend.output_id : 0 input_args_next_step : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ('0.04497570458523468',), 1387315122: ('0.04497570458523468',), 1387315119: ('0.04497570458523468',), 1387315117: ('0.04497570458523468',), 1387315114: ()} output_args : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ('0.04497570458523468',), 1387315122: ('0.04497570458523468',), 1387315119: ('0.04497570458523468',), 1387315117: ('0.04497570458523468',), 1387315114: ('0.04497570458523468',)} args : 1387315114 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 : {27430484: [{'kraft': 27430530, 'papier': 27430531, 'Carton_gris': 27430532, 'cartonnette': 27430533, 'Teint_Dans_La_Masse': 27430534, 'autre_refus': 27430535, 'mal_croppe': 27430536, 'plastique': 27430537, 'metal': 27430538, 'flou': 27430539, 'Carton_brun': 27430540, 'environnement': 27430541}]} input_args_next_step : {1387315165: ('0.04497570458523468',), 1387315164: ('0.04497570458523468',), 1387315163: ('0.04497570458523468',), 1387315139: ('0.04497570458523468',), 1387315136: ('0.04497570458523468',), 1387315134: ('0.04497570458523468',), 1387315129: ('0.04497570458523468',), 1387315128: ('0.04497570458523468',), 1387315122: ('0.04497570458523468',), 1387315119: ('0.04497570458523468',), 1387315117: ('0.04497570458523468',), 1387315114: ('0.04497570458523468',), 27430484: ()} output_args : {27430484: [{'kraft': 27430530, 'papier': 27430531, 'Carton_gris': 27430532, 'cartonnette': 27430533, 'Teint_Dans_La_Masse': 27430534, 'autre_refus': 27430535, 'mal_croppe': 27430536, 'plastique': 27430537, 'metal': 27430538, 'flou': 27430539, 'Carton_brun': 27430540, 'environnement': 27430541}]} args : 27430484 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :13, first value : ('0.04497570458523468',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27430484) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1387315165,1387315164,1387315163,1387315139,1387315136,1387315134,1387315129,1387315128,1387315122,1387315119,1387315117,1387315114) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1387315114 begin to download photo : 1387315122 begin to download photo : 1387315134 begin to download photo : 1387315163 download finish for photo 1387315163 begin to download photo : 1387315164 download finish for photo 1387315122 begin to download photo : 1387315128 download finish for photo 1387315114 begin to download photo : 1387315117 download finish for photo 1387315134 begin to download photo : 1387315136 download finish for photo 1387315164 begin to download photo : 1387315165 download finish for photo 1387315128 begin to download photo : 1387315129 download finish for photo 1387315117 begin to download photo : 1387315119 download finish for photo 1387315136 begin to download photo : 1387315139 download finish for photo 1387315119 download finish for photo 1387315165 download finish for photo 1387315129 download finish for photo 1387315139 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 : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P27430484_02-10-2025_03_43_05.pdf 27430530 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27430530 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387315126: '1759369264_3913027_1387314961_1426daae8f02196c04cda168fa111d71_rle_crop_3983472617_0.png'} change filename to text .imagette274305301759369385/ imagette274305301759369385/1759369264_3913027_1387314961_1426daae8f02196c04cda168fa111d71_rle_crop_3983472617_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/c624f38b023e284c23e811dac6974c9b_67813984.png imagette274305301759369385 27430533 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27430533 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387315007: '1759369025_3906049_1387314821_ccd5f7e697d1da35a620e282a821f1de_rle_crop_3983472289_0.png', 1387315072: '1759369144_3908693_1387314906_ad59b20cb4347567df0204d6db504b52_rle_crop_3983472390_0.png', 1387315073: '1759369144_3908693_1387314884_1b9fe072ece09b60def46ef98dc83325_rle_crop_3983472409_0.png', 1387315074: '1759369144_3908693_1387314883_bcddd50fd81297c465220fd681a1ddbe_rle_crop_3983472421_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/f85e1967a598a1ea8aae8b51ff76a731_49994108.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/04734e283532cb424ab2db1fb4379cc9_3818903.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/c68cf5890bd61287923ecaa0ae2fd01a_74373213.png change filename to text .imagette274305331759369385/ imagette274305331759369385/1759369144_3908693_1387314883_bcddd50fd81297c465220fd681a1ddbe_rle_crop_3983472421_0.png.png imagette274305331759369385/1759369144_3908693_1387314884_1b9fe072ece09b60def46ef98dc83325_rle_crop_3983472409_0.png.png imagette274305331759369385/1759369144_3908693_1387314906_ad59b20cb4347567df0204d6db504b52_rle_crop_3983472390_0.png.png imagette274305331759369385/1759369025_3906049_1387314821_ccd5f7e697d1da35a620e282a821f1de_rle_crop_3983472289_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/57a043035ff98c8b028fb11621eb2817_22038439.png imagette274305331759369385 27430535 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27430535 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387315000: '1759369025_3906049_1387314821_ccd5f7e697d1da35a620e282a821f1de_rle_crop_3983472295_0.png', 1387315121: '1759369264_3913027_1387314958_a931194234a6068ec95df6b75557af7e_rle_crop_3983472624_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/3dc21db5447a03c94fc30ddda0814606_34786437.png change filename to text .imagette274305351759369385/ imagette274305351759369385/1759369264_3913027_1387314958_a931194234a6068ec95df6b75557af7e_rle_crop_3983472624_0.png.png imagette274305351759369385/1759369025_3906049_1387314821_ccd5f7e697d1da35a620e282a821f1de_rle_crop_3983472295_0.png.png imagette274305361759369386/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/d4983a710fa049e2138e1f5ef4a44acc_44341612.png imagette274305351759369385 27430536 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27430536 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274305361759369386 27430537 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27430537 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387315011: '1759369025_3906049_1387314863_eba956b84cacc88ed46570dc8d930017_rle_crop_3983472254_0.png', 1387315012: '1759369025_3906049_1387314821_ccd5f7e697d1da35a620e282a821f1de_rle_crop_3983472302_0.png', 1387315124: '1759369264_3913027_1387314958_a931194234a6068ec95df6b75557af7e_rle_crop_3983472629_0.png', 1387315125: '1759369264_3913027_1387314956_b76c540c21b02882915b4e9c4b6807a1_rle_crop_3983472641_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/ad8eaae7059eba8df281b290c4039ce5_94563307.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/9202e21b64124347ba16cd1042f729ee_92970016.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/93190f2e955f4cd6a150ac4a8d638ab8_78617320.png change filename to text .imagette274305371759369386/ imagette274305371759369386/1759369025_3906049_1387314821_ccd5f7e697d1da35a620e282a821f1de_rle_crop_3983472302_0.png.png imagette274305371759369386/1759369025_3906049_1387314863_eba956b84cacc88ed46570dc8d930017_rle_crop_3983472254_0.png.png imagette274305371759369386/1759369264_3913027_1387314958_a931194234a6068ec95df6b75557af7e_rle_crop_3983472629_0.png.png imagette274305371759369386/1759369264_3913027_1387314956_b76c540c21b02882915b4e9c4b6807a1_rle_crop_3983472641_0.png.png imagette274305381759369386/ imagette274305391759369386/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/7197dffbbe4f5173e84da513e020b2c3_75974951.png imagette274305371759369386 27430538 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27430538 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274305381759369386 27430539 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27430539 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274305391759369386 27430532 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27430532 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387315006: '1759369025_3906049_1387314830_b15055e303a4f67f663b6b004be35759_rle_crop_3983472262_0.png', 1387315123: '1759369264_3913027_1387314958_a931194234a6068ec95df6b75557af7e_rle_crop_3983472625_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/13392e54726fe259f5947f4647321cfe_18000524.png change filename to text .imagette274305321759369386/ imagette274305321759369386/1759369264_3913027_1387314958_a931194234a6068ec95df6b75557af7e_rle_crop_3983472625_0.png.png imagette274305321759369386/1759369025_3906049_1387314830_b15055e303a4f67f663b6b004be35759_rle_crop_3983472262_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/f24e043b07ea04a7fb040f3db6c735eb_41169280.png imagette274305321759369386 27430534 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27430534 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387314997: '1759369025_3906049_1387314863_eba956b84cacc88ed46570dc8d930017_rle_crop_3983472248_0.png', 1387314998: '1759369025_3906049_1387314863_eba956b84cacc88ed46570dc8d930017_rle_crop_3983472252_0.png', 1387314999: '1759369025_3906049_1387314821_ccd5f7e697d1da35a620e282a821f1de_rle_crop_3983472298_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/5f89b4f8e4aa1569423f4369e22936a8_99029341.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/fa54527991b5d39efb211e930a34bb16_91179681.png change filename to text .imagette274305341759369386/ imagette274305341759369386/1759369025_3906049_1387314863_eba956b84cacc88ed46570dc8d930017_rle_crop_3983472252_0.png.png imagette274305341759369386/1759369025_3906049_1387314821_ccd5f7e697d1da35a620e282a821f1de_rle_crop_3983472298_0.png.png imagette274305341759369386/1759369025_3906049_1387314863_eba956b84cacc88ed46570dc8d930017_rle_crop_3983472248_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/31b4cadb583096b16d87dd74b06bfa5a_87394915.png imagette274305341759369386 27430540 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27430540 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387315009: '1759369025_3906049_1387314826_b11351d8e83abdc21f3bcedea90346e0_rle_crop_3983472280_0.png'} change filename to text .imagette274305401759369386/ imagette274305401759369386/1759369025_3906049_1387314826_b11351d8e83abdc21f3bcedea90346e0_rle_crop_3983472280_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/a048e24292c85488304f3f80eb161041_74876813.png imagette274305401759369386 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27430484 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27430543,27430544,27430545,27430546,27430547,27430548,27430549,27430550,27430551,27430552,27430553,27430554?tags=kraft,papier,Carton_gris,cartonnette,Teint_Dans_La_Masse,autre_refus,mal_croppe,plastique,metal,flou,Carton_brun,environnement your option no_mail is active, we will not send the real mail to your client args[1387315165] : ('0.04497570458523468',) no score found for photo 1387315165 We are sending mail with results at report@fotonower.com args[1387315164] : ('0.04497570458523468',) no score found for photo 1387315164 We are sending mail with results at report@fotonower.com args[1387315163] : ('0.04497570458523468',) no score found for photo 1387315163 We are sending mail with results at report@fotonower.com args[1387315139] : ('0.04497570458523468',) no score found for photo 1387315139 We are sending mail with results at report@fotonower.com args[1387315136] : ('0.04497570458523468',) no score found for photo 1387315136 We are sending mail with results at report@fotonower.com args[1387315134] : ('0.04497570458523468',) no score found for photo 1387315134 We are sending mail with results at report@fotonower.com args[1387315129] : ('0.04497570458523468',) no score found for photo 1387315129 We are sending mail with results at report@fotonower.com args[1387315128] : ('0.04497570458523468',) no score found for photo 1387315128 We are sending mail with results at report@fotonower.com args[1387315122] : ('0.04497570458523468',) no score found for photo 1387315122 We are sending mail with results at report@fotonower.com args[1387315119] : ('0.04497570458523468',) no score found for photo 1387315119 We are sending mail with results at report@fotonower.com args[1387315117] : ('0.04497570458523468',) no score found for photo 1387315117 We are sending mail with results at report@fotonower.com args[1387315114] : ('0.04497570458523468',) no score found for photo 1387315114 We are sending mail with results at report@fotonower.com refus_total : 0.04497570458523468 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27430484 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_P27430484_02-10-2025_03_43_05.pdf results_Auto_P27430484_02-10-2025_03_43_05.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27430484_02-10-2025_03_43_05.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','27430484','results_Auto_P27430484_02-10-2025_03_43_05.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27430484_02-10-2025_03_43_05.pdf','pdf','','0.17','0.04497570458523468') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27430484]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1387315165, 1387315164, 1387315163, 1387315139, 1387315136, 1387315134, 1387315129, 1387315128, 1387315122, 1387315119, 1387315117, 1387315114] map_info['map_portfolio_photo'] : {27430484: [1387315165, 1387315164, 1387315163, 1387315139, 1387315136, 1387315134, 1387315129, 1387315128, 1387315122, 1387315119, 1387315117, 1387315114, 1387315097, 1387315095, 1387315092, 1387315089, 1387315067, 1387315066, 1387315065, 1387315047, 1387315044, 1387315040, 1387315037, 1387314984, 1387314964, 1387314961, 1387314958, 1387314956, 1387314936, 1387314934, 1387314932, 1387314930, 1387314927, 1387314906, 1387314903, 1387314885, 1387314884, 1387314883, 1387314863, 1387314860, 1387314830, 1387314826, 1387314821]} final : False mtd_id 4302 list_pids : [1387315165, 1387315164, 1387315163, 1387315139, 1387315136, 1387315134, 1387315129, 1387315128, 1387315122, 1387315119, 1387315117, 1387315114] 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, '3815808') ('4302', '27430484', '1387315165', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315164', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315163', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315139', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315136', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315134', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315129', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315128', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315122', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315119', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315117', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315114', None, None, None, None, None, '3815808') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27430484', '1387315165', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315164', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315163', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315139', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315136', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315134', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315129', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315128', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315122', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315119', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315117', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315114', None, None, None, None, None, '3815808')] time used for this insertion : 0.038565874099731445 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.5886952877044678 time spend to save output : 0.03882646560668945 total time spend for step 4 : 3.6275217533111572 step5:split_time_score Thu Oct 2 03:43:08 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 : ['27430484'] 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 : [('27430484',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27430484) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1387315114: {'path': 'temp/1759369385_4114534_1387315114_0d7a5485fbd80bccf9421b1e795c019a.jpg', 'extension': 'jpg'}, 1387315117: {'path': 'temp/1759369385_4114534_1387315117_e129e17b43fcae81e62f0389a4bb1d5e.jpg', 'extension': 'jpg'}, 1387315119: {'path': 'temp/1759369385_4114534_1387315119_b49565e15743959eabf2e6009babe3c1.jpg', 'extension': 'jpg'}, 1387315163: {'path': 'temp/1759369385_4114534_1387315163_6fe71d1645e0d0543e213a0e6247990f.jpg', 'extension': 'jpg'}, 1387315164: {'path': 'temp/1759369385_4114534_1387315164_5edd1028508aa6a274a8e1e112b5b68b.jpg', 'extension': 'jpg'}, 1387315165: {'path': 'temp/1759369385_4114534_1387315165_874d39305cbe4d139ed81a1a2660c8eb.jpg', 'extension': 'jpg'}, 1387315122: {'path': 'temp/1759369385_4114534_1387315122_ec54091aed884173aacca1be4ae1d9b7.jpg', 'extension': 'jpg'}, 1387315128: {'path': 'temp/1759369385_4114534_1387315128_ec25af3b1e621157491cc9e5a8de37b8.jpg', 'extension': 'jpg'}, 1387315129: {'path': 'temp/1759369385_4114534_1387315129_840daa3c22f585e294b4ae759e383557.jpg', 'extension': 'jpg'}, 1387315134: {'path': 'temp/1759369385_4114534_1387315134_ffaa30a1a3d932bf69bc6bc42ef9f0a1.jpg', 'extension': 'jpg'}, 1387315136: {'path': 'temp/1759369385_4114534_1387315136_b7d80f5ab3342aff2f80f906e4a8cc69.jpg', 'extension': 'jpg'}, 1387315139: {'path': 'temp/1759369385_4114534_1387315139_1d734bb5fc387571e9f6f38eee505554.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 = 27430484; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27430484 group by h (('03', 43),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27430484 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 (27430484) 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 (27430484) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02102025 27430484 Nombre de photos uploadées : 43 / 23040 (0%) 02102025 27430484 Nombre de photos taguées (types de déchets): 0 / 43 (0%) 02102025 27430484 Nombre de photos taguées (volume) : 0 / 43 (0%) [{'photo_id': 1387314830, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/b15055e303a4f67f663b6b004be35759.jpg', 'username': None, 'uploaded_at': 1759368677, 'text': 'image_02102025_03_30_14_010143m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1387314826, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/b11351d8e83abdc21f3bcedea90346e0.jpg', 'username': None, 'uploaded_at': 1759368677, 'text': 'image_02102025_03_30_24_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1387314821, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/ccd5f7e697d1da35a620e282a821f1de.jpg', 'username': None, 'uploaded_at': 1759368663, 'text': 'image_02102025_03_30_35_010151m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1387314863, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/eba956b84cacc88ed46570dc8d930017.jpg', 'username': None, 'uploaded_at': 1759368728, 'text': 'image_02102025_03_30_45_010140m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 7.152557373046875e-06 ??????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002749919891357422 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27430484, '2025-10-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2377787,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.6358661651611328 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= 2377787 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2377787, 'dashboard_run_id': 2386011, 'mtr_portfolio_id': 27424686, 'dashboard_result_id': 15909528, '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_P27424686_02-10-2025_00_19_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27424695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27424696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27424697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27424698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27424699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27424700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27424701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27424702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27424703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27424704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27424705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27424706, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2386011, 'mtr_portfolio_id': 27425124, 'dashboard_result_id': 15909529, '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_P27425124_02-10-2025_00_33_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27425161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27425162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27425163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27425164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27425165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27425166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27425167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27425168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27425169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27425170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27425171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27425172, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2386011, 'mtr_portfolio_id': 27425471, 'dashboard_result_id': 15909530, '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_P27425471_02-10-2025_00_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27425502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27425503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27425504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27425505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27425506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27425507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27425508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27425509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27425510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27425511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27425512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27425513, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2386011, 'mtr_portfolio_id': 27425856, 'dashboard_result_id': 15909531, '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_P27425856_02-10-2025_01_05_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27425930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27425931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27425932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27425933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27425934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27425935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27425936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27425937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27425938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27425939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27425940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27425941, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2386011, 'mtr_portfolio_id': 27427278, 'dashboard_result_id': 15909532, '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_P27427278_02-10-2025_01_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27427281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27427282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27427283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27427284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27427285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27427286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27427287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27427288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27427289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27427290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27427291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27427292, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2386011, 'mtr_portfolio_id': 27427585, 'dashboard_result_id': 15909533, '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_P27427585_02-10-2025_02_03_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27427591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27427592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27427593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27427594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27427595, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27427596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27427597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27427598, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27427599, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27427600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27427601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27427602, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2386011, 'mtr_portfolio_id': 27427882, 'dashboard_result_id': 15909534, '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_P27427882_02-10-2025_02_19_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27427897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27427898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27427899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27427900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27427901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27427902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27427903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27427904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27427905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27427906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27427907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27427908, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2386011, 'mtr_portfolio_id': 27428370, 'dashboard_result_id': 15909535, '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_P27428370_02-10-2025_02_33_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27428376, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27428377, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27428378, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27428379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27428380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27428381, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27428382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27428383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27428384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27428385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27428386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27428387, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2386011, 'mtr_portfolio_id': 27428628, 'dashboard_result_id': 15909536, '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_P27428628_02-10-2025_02_49_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27428640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27428641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27428642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27428643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27428644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27428645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27428646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27428647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27428648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27428649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27428650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27428651, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2386011, 'mtr_portfolio_id': 27429102, 'dashboard_result_id': 15909537, '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_P27429102_02-10-2025_03_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27429142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27429143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27429144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27429145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27429146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27429147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27429148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27429149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27429150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27429151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27429152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27429153, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2386011, 'mtr_portfolio_id': 27429508, 'dashboard_result_id': 15909538, '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_P27429508_02-10-2025_03_17_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27429518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27429520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27429521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27429522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27429523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27429524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27429525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27429526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27429527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27429528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27429529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27429530, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2386011, 'mtr_portfolio_id': 27430058, 'dashboard_result_id': 15909539, '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_P27430058_02-10-2025_03_33_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27430069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27430070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27430071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27430072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27430073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27430074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27430075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27430076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27430077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27430078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27430079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27430080, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2386011, 'mtr_portfolio_id': 27430484, 'dashboard_result_id': 15909540, '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_P27430484_02-10-2025_03_41_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27430530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27430531, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27430532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27430533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27430534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27430535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27430536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27430537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27430538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27430539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27430540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27430541, '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 = 27424686 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': 3813971, 'mtr_portfolio_id': 27424686, 'created_at': datetime.datetime(2025, 10, 2, 0, 19, 3), 'result': '0.03805004351602606', 'result_long': None, 'result_double': None}] Qualite : 0.03805004351602606 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27424686 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27424686_02-10-2025_00_19_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27424686 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_P27424686_02-10-2025_00_19_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27424695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27424696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27424697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27424698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27424699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27424700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27424701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27424702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27424703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27424704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27424705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27424706, 'pht': 3726}}" where mtr_portfolio_id = 27424686 and dashboard_run_id = 2386011 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`=27424686 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15909528, 0.03805004351602606, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27424686_02-10-2025_00_19_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27424695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27424696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27424697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27424698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27424699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27424700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27424701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27424702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27424703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27424704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27424705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27424706, '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 = 27425124 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': 3814019, 'mtr_portfolio_id': 27425124, 'created_at': datetime.datetime(2025, 10, 2, 0, 33, 4), 'result': '0.05625780692897417', 'result_long': None, 'result_double': None}] Qualite : 0.05625780692897417 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27425124 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27425124_02-10-2025_00_33_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27425124 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_P27425124_02-10-2025_00_33_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27425161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27425162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27425163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27425164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27425165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27425166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27425167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27425168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27425169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27425170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27425171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27425172, 'pht': 3726}}" where mtr_portfolio_id = 27425124 and dashboard_run_id = 2386011 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`=27425124 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15909529, 0.05625780692897417, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27425124_02-10-2025_00_33_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27425161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27425162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27425163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27425164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27425165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27425166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27425167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27425168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27425169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27425170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27425171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27425172, '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 = 27425471 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': 3814055, 'mtr_portfolio_id': 27425471, 'created_at': datetime.datetime(2025, 10, 2, 0, 46, 59), 'result': '0.03831255894652447', 'result_long': None, 'result_double': None}] Qualite : 0.03831255894652447 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27425471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27425471_02-10-2025_00_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27425471 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_P27425471_02-10-2025_00_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27425502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27425503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27425504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27425505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27425506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27425507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27425508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27425509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27425510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27425511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27425512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27425513, 'pht': 3726}}" where mtr_portfolio_id = 27425471 and dashboard_run_id = 2386011 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`=27425471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15909530, 0.03831255894652447, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27425471_02-10-2025_00_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27425502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27425503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27425504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27425505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27425506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27425507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27425508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27425509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27425510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27425511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27425512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27425513, '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 = 27425856 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': 3814143, 'mtr_portfolio_id': 27425856, 'created_at': datetime.datetime(2025, 10, 2, 1, 5, 1), 'result': '0.0354915356971677', 'result_long': None, 'result_double': None}] Qualite : 0.0354915356971677 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27425856 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27425856_02-10-2025_01_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27425856 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_P27425856_02-10-2025_01_05_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27425930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27425931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27425932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27425933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27425934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27425935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27425936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27425937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27425938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27425939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27425940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27425941, 'pht': 3726}}" where mtr_portfolio_id = 27425856 and dashboard_run_id = 2386011 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`=27425856 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15909531, 0.0354915356971677, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27425856_02-10-2025_01_05_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27425930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27425931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27425932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27425933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27425934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27425935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27425936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27425937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27425938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27425939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27425940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27425941, '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 = 27427278 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': 3814473, 'mtr_portfolio_id': 27427278, 'created_at': datetime.datetime(2025, 10, 2, 1, 46, 58), 'result': '0.04926265473048963', 'result_long': None, 'result_double': None}] Qualite : 0.04926265473048963 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27427278 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27427278_02-10-2025_01_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27427278 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_P27427278_02-10-2025_01_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27427281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27427282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27427283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27427284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27427285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27427286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27427287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27427288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27427289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27427290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27427291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27427292, 'pht': 3726}}" where mtr_portfolio_id = 27427278 and dashboard_run_id = 2386011 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`=27427278 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15909532, 0.04926265473048963, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27427278_02-10-2025_01_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27427281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27427282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27427283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27427284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27427285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27427286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27427287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27427288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27427289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27427290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27427291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27427292, '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 = 27427585 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': 3814518, 'mtr_portfolio_id': 27427585, 'created_at': datetime.datetime(2025, 10, 2, 2, 3, 3), 'result': '0.01708173970276368', 'result_long': None, 'result_double': None}] Qualite : 0.01708173970276368 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27427585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27427585_02-10-2025_02_03_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27427585 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_P27427585_02-10-2025_02_03_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27427591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27427592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27427593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27427594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27427595, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27427596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27427597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27427598, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27427599, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27427600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27427601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27427602, 'pht': 3726}}" where mtr_portfolio_id = 27427585 and dashboard_run_id = 2386011 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`=27427585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15909533, 0.01708173970276368, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27427585_02-10-2025_02_03_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27427591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27427592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27427593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27427594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27427595, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27427596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27427597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27427598, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27427599, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27427600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27427601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27427602, '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 = 27427882 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': 3814630, 'mtr_portfolio_id': 27427882, 'created_at': datetime.datetime(2025, 10, 2, 2, 19, 2), 'result': '0.06765908013148027', 'result_long': None, 'result_double': None}] Qualite : 0.06765908013148027 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27427882 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27427882_02-10-2025_02_19_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27427882 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_P27427882_02-10-2025_02_19_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27427897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27427898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27427899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27427900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27427901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27427902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27427903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27427904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27427905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27427906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27427907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27427908, 'pht': 3726}}" where mtr_portfolio_id = 27427882 and dashboard_run_id = 2386011 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`=27427882 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15909534, 0.06765908013148027, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27427882_02-10-2025_02_19_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27427897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27427898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27427899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27427900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27427901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27427902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27427903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27427904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27427905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27427906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27427907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27427908, '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 = 27428370 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': 3814750, 'mtr_portfolio_id': 27428370, 'created_at': datetime.datetime(2025, 10, 2, 2, 33, 34), 'result': '0.03452068329432425', 'result_long': None, 'result_double': None}] Qualite : 0.03452068329432425 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27428370 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27428370_02-10-2025_02_33_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27428370 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_P27428370_02-10-2025_02_33_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27428376, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27428377, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27428378, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27428379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27428380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27428381, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27428382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27428383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27428384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27428385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27428386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27428387, 'pht': 3726}}" where mtr_portfolio_id = 27428370 and dashboard_run_id = 2386011 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`=27428370 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15909535, 0.03452068329432425, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27428370_02-10-2025_02_33_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27428376, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27428377, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27428378, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27428379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27428380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27428381, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27428382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27428383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27428384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27428385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27428386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27428387, '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 = 27428628 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': 3814848, 'mtr_portfolio_id': 27428628, 'created_at': datetime.datetime(2025, 10, 2, 2, 49, 3), 'result': '0.053651344287180054', 'result_long': None, 'result_double': None}] Qualite : 0.053651344287180054 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27428628 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27428628_02-10-2025_02_49_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27428628 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_P27428628_02-10-2025_02_49_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27428640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27428641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27428642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27428643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27428644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27428645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27428646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27428647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27428648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27428649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27428650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27428651, 'pht': 3726}}" where mtr_portfolio_id = 27428628 and dashboard_run_id = 2386011 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`=27428628 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15909536, 0.053651344287180054, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27428628_02-10-2025_02_49_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27428640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27428641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27428642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27428643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27428644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27428645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27428646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27428647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27428648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27428649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27428650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27428651, '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 = 27429102 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': 3815080, 'mtr_portfolio_id': 27429102, 'created_at': datetime.datetime(2025, 10, 2, 3, 3, 32), 'result': '0.07121791707557865', 'result_long': None, 'result_double': None}] Qualite : 0.07121791707557865 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27429102 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27429102_02-10-2025_03_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27429102 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_P27429102_02-10-2025_03_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27429142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27429143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27429144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27429145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27429146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27429147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27429148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27429149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27429150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27429151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27429152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27429153, 'pht': 3726}}" where mtr_portfolio_id = 27429102 and dashboard_run_id = 2386015 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`=27429102 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15909537, 0.07121791707557865, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27429102_02-10-2025_03_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27429142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27429143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27429144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27429145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27429146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27429147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27429148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27429149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27429150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27429151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27429152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27429153, '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 = 27429508 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': 3815317, 'mtr_portfolio_id': 27429508, 'created_at': datetime.datetime(2025, 10, 2, 3, 17, 4), 'result': '0.0662636551408121', 'result_long': None, 'result_double': None}] Qualite : 0.0662636551408121 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27429508 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27429508_02-10-2025_03_17_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27429508 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_P27429508_02-10-2025_03_17_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27429518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27429520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27429521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27429522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27429523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27429524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27429525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27429526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27429527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27429528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27429529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27429530, 'pht': 3726}}" where mtr_portfolio_id = 27429508 and dashboard_run_id = 2386015 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`=27429508 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15909538, 0.0662636551408121, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27429508_02-10-2025_03_17_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27429518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27429520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27429521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27429522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27429523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27429524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27429525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27429526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27429527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27429528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27429529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27429530, '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 = 27430058 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': 3815562, 'mtr_portfolio_id': 27430058, 'created_at': datetime.datetime(2025, 10, 2, 3, 33, 4), 'result': '0.04965569586558937', 'result_long': None, 'result_double': None}] Qualite : 0.04965569586558937 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27430058 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27430058_02-10-2025_03_33_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27430058 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_P27430058_02-10-2025_03_33_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27430069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27430070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27430071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27430072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27430073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27430074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27430075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27430076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27430077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27430078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27430079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27430080, 'pht': 3726}}" where mtr_portfolio_id = 27430058 and dashboard_run_id = 2386015 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`=27430058 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15909539, 0.04965569586558937, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27430058_02-10-2025_03_33_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27430069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27430070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27430071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27430072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27430073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27430074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27430075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27430076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27430077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27430078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27430079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27430080, '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 = 27430484 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': 3815808, 'mtr_portfolio_id': 27430484, 'created_at': datetime.datetime(2025, 10, 2, 3, 43, 4), 'result': '0.04497570458523468', 'result_long': None, 'result_double': None}] Qualite : 0.04497570458523468 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27430484 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27430484_02-10-2025_03_43_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27430484 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_P27430484_02-10-2025_03_43_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27430530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27430531, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27430532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27430533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27430534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27430535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27430536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27430537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27430538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27430539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27430540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27430541, 'pht': 3726}}" where mtr_portfolio_id = 27430484 and dashboard_run_id = 2386015 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`=27430484 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15909540, 0.04497570458523468, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27430484_02-10-2025_03_43_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27430530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27430531, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27430532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27430533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27430534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27430535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27430536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27430537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27430538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27430539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27430540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27430541, '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 (27424686,27425124,27425471,27425856,27427278,27427585,27427882,27428370,27428628,27429102,27429508,27430058,27430484) result : ((1387291774,), (1387291778,), (1387291781,), (1387291812,), (1387291813,), (1387291814,), (1387291816,), (1387291819,), (1387291841,), (1387291844,), (1387291846,), (1387291967,), (1387292459,), (1387292461,), (1387292465,), (1387292467,), (1387292616,), (1387292621,), (1387292626,), (1387292631,), (1387292635,), (1387292637,), (1387292648,), (1387292650,), (1387292651,), (1387292654,), (1387292674,), (1387292677,), (1387292680,), (1387292683,), (1387292702,), (1387292704,), (1387292705,), (1387292706,), (1387295337,), (1387295331,), (1387295334,), (1387295936,), (1387296090,), (1387296143,), (1387296147,), (1387296163,), (1387296164,), (1387296183,), (1387296186,), (1387296189,), (1387296192,), (1387296210,), (1387296213,), (1387296215,), (1387296218,), (1387296238,), (1387296241,), (1387296244,), (1387296247,), (1387296253,), (1387296503,), (1387297042,), (1387297086,), (1387297104,), (1387297107,), (1387297109,), (1387297112,), (1387297251,), (1387297487,), (1387297494,), (1387297497,), (1387297501,), (1387297504,), (1387297507,), (1387297518,), (1387297521,), (1387297524,), (1387297546,), (1387297551,), (1387297582,), (1387297585,), (1387297588,), (1387297577,), (1387297579,), (1387297608,), (1387297611,), (1387297613,), (1387297615,), (1387297617,), (1387297635,), (1387297637,), (1387297745,), (1387297990,), (1387297994,), (1387298190,), (1387298193,), (1387298195,), (1387298199,), (1387298203,), (1387298217,), (1387298220,), (1387298223,), (1387298225,), (1387298231,), (1387298234,), (1387298247,), (1387298249,), (1387298267,), (1387298271,), (1387298275,), (1387298299,), (1387298301,), (1387298304,), (1387298321,), (1387298323,), (1387298679,), (1387298681,), (1387298864,), (1387298866,), (1387298869,), (1387298884,), (1387298887,), (1387298890,), (1387298893,), (1387298895,), (1387298896,), (1387298900,), (1387298908,), (1387298909,), (1387298910,), (1387298929,), (1387298933,), (1387298936,), (1387298956,), (1387298958,), (1387298960,), (1387298963,), (1387298966,), (1387298977,), (1387298980,), (1387299006,), (1387299000,), (1387299003,), (1387299024,), (1387299026,), (1387299028,), (1387299030,), (1387299043,), (1387299046,), (1387299048,), (1387299063,), (1387299065,), (1387299101,), (1387299557,), (1387299561,), (1387299564,), (1387299567,), (1387299860,), (1387299863,), (1387299864,), (1387299865,), (1387299883,), (1387300134,), (1387300238,), (1387300418,), (1387300425,), (1387300427,), (1387300430,), (1387300565,), (1387300622,), (1387300655,), (1387300658,), (1387300661,), (1387300665,), (1387300669,), (1387300698,), (1387300701,), (1387300704,), (1387300706,), (1387300708,), (1387300710,), (1387300738,), (1387300740,), (1387300742,), (1387300745,), (1387300769,), (1387300772,), (1387300773,), (1387300776,), (1387300778,), (1387300780,), (1387301423,), (1387301623,), (1387301626,), (1387301629,), (1387301632,), (1387301633,), (1387304300,), (1387304301,), (1387304303,), (1387304884,), (1387304911,), (1387305176,), (1387305177,), (1387305179,), (1387305270,), (1387305273,), (1387305276,), (1387305278,), (1387305936,), (1387305941,), (1387305942,), (1387305967,), (1387305970,), (1387306250,), (1387306349,), (1387306352,), (1387306523,), (1387306525,), (1387306541,), (1387306544,), (1387306545,), (1387306575,), (1387306577,), (1387306580,), (1387306603,), (1387306607,), (1387306628,), (1387306631,), (1387306634,), (1387306637,), (1387306652,), (1387306656,), (1387306658,), (1387306675,), (1387306674,), (1387306702,), (1387306707,), (1387306711,), (1387306736,), (1387306737,), (1387306764,), (1387306767,), (1387306788,), (1387306791,), (1387306794,), (1387306818,), (1387306820,), (1387306823,), (1387306827,), (1387306831,), (1387306834,), (1387306840,), (1387306845,), (1387306849,), (1387306852,), (1387306854,), (1387306892,), (1387306903,), (1387306924,), (1387306926,), (1387306928,), (1387306931,), (1387306935,), (1387306959,), (1387306961,), (1387306963,), (1387306985,), (1387306987,), (1387306991,), (1387307013,), (1387307016,), (1387307019,), (1387307072,), (1387307076,), (1387307382,), (1387307384,), (1387307386,), (1387307389,), (1387307393,), (1387307408,), (1387307411,), (1387307413,), (1387307416,), (1387307418,), (1387307420,), (1387307421,), (1387307422,), (1387307423,), (1387307405,), (1387307406,), (1387307407,), (1387307424,), (1387307425,), (1387307427,), (1387307457,), (1387307459,), (1387307473,), (1387307475,), (1387307477,), (1387307489,), (1387307899,), (1387308326,), (1387308328,), (1387308701,), (1387308703,), (1387308705,), (1387308709,), (1387308725,), (1387308729,), (1387308730,), (1387308732,), (1387308735,), (1387308738,), (1387308743,), (1387308745,), (1387308753,), (1387308755,), (1387308758,), (1387308761,), (1387308773,), (1387308774,), (1387308775,), (1387308777,), (1387308786,), (1387308788,), (1387308791,), (1387308793,), (1387308795,), (1387308797,), (1387308820,), (1387308822,), (1387310324,), (1387310279,), (1387310337,), (1387310338,), (1387310361,), (1387310363,), (1387310376,), (1387310378,), (1387310379,), (1387310381,), (1387310385,), (1387310390,), (1387310392,), (1387310394,), (1387310430,), (1387310431,), (1387310432,), (1387310433,), (1387310447,), (1387310450,), (1387310454,), (1387310469,), (1387310471,), (1387310472,), (1387310473,), (1387310475,), (1387310483,), (1387310485,), (1387310487,), (1387310497,), (1387310499,), (1387310532,), (1387310534,), (1387310536,), (1387310539,), (1387310541,), (1387310552,), (1387310554,), (1387310556,), (1387310558,), (1387310569,), (1387310573,), (1387310575,), (1387310601,), (1387310608,), (1387310612,), (1387310615,), (1387310596,), (1387310598,), (1387310622,), (1387310625,), (1387310640,), (1387310645,), (1387310647,), (1387310706,), (1387310708,), (1387310712,), (1387310716,), (1387310719,), (1387310722,), (1387310729,), (1387310730,), (1387310731,), (1387310733,), (1387310734,), (1387310736,), (1387310742,), (1387310744,), (1387310746,), (1387310749,), (1387310751,), (1387310760,), (1387310762,), (1387310763,), (1387310765,), (1387310770,), (1387310795,), (1387310797,), (1387310799,), (1387310812,), (1387310814,), (1387310816,), (1387310841,), (1387310845,), (1387310849,), (1387310858,), (1387310860,), (1387310862,), (1387310870,), (1387310871,), (1387310872,), (1387310878,), (1387310880,), (1387310920,), (1387310923,), (1387310926,), (1387310928,), (1387310942,), (1387310954,), (1387310958,), (1387310959,), (1387310986,), (1387310976,), (1387310978,), (1387310981,), (1387310983,), (1387310997,), (1387310998,), (1387310999,), (1387311010,), (1387311039,), (1387311043,), (1387311047,), (1387311065,), (1387311067,), (1387311069,), (1387311071,), (1387311075,), (1387311080,), (1387311082,), (1387311096,), (1387311097,), (1387311098,), (1387311107,), (1387311109,), (1387311111,), (1387311113,), (1387311117,), (1387311120,), (1387311123,), (1387311126,), (1387311129,), (1387311137,), (1387311150,), (1387311151,), (1387311152,), (1387311155,), (1387311172,), (1387311174,), (1387311176,), (1387311178,), (1387311206,), (1387311207,), (1387311208,), (1387311209,), (1387311223,), (1387311225,), (1387311227,), (1387311228,), (1387311238,), (1387311268,), (1387311270,), (1387311292,), (1387311295,), (1387311298,), (1387311322,), (1387311320,), (1387311321,), (1387311359,), (1387311363,), (1387311392,), (1387311395,), (1387312556,), (1387313794,), (1387313796,), (1387313837,), (1387313839,), (1387313984,), (1387314049,), (1387314053,), (1387314055,), (1387314061,), (1387314064,), (1387314067,), (1387314087,), (1387314091,), (1387314115,), (1387314118,), (1387314121,), (1387314124,), (1387314146,), (1387314149,), (1387314152,), (1387314155,), (1387314159,), (1387314178,), (1387314181,), (1387314203,), (1387314223,), (1387314226,), (1387314229,), (1387314232,), (1387314268,), (1387314271,), (1387314276,), (1387314277,), (1387314281,), (1387314284,), (1387314296,), (1387314299,), (1387314301,), (1387314312,), (1387314314,), (1387314317,), (1387314354,), (1387314351,), (1387314373,), (1387314376,), (1387314379,), (1387314381,), (1387314442,), (1387314446,), (1387314451,), (1387314455,), (1387314459,), (1387314474,), (1387314477,), (1387314502,), (1387314505,), (1387314508,), (1387314510,), (1387314523,), (1387314525,), (1387314528,), (1387314533,), (1387314536,), (1387314539,), (1387314550,), (1387314553,), (1387314559,), (1387314561,), (1387314584,), (1387314587,), (1387314590,), (1387314592,), (1387314606,), (1387314609,), (1387314610,), (1387314636,), (1387314638,), (1387314640,), (1387314642,), (1387314649,), (1387314652,), (1387314659,), (1387314661,), (1387314663,), (1387314666,), (1387314669,), (1387314683,), (1387314686,), (1387314688,), (1387314740,), (1387314744,), (1387314747,), (1387314770,), (1387314772,), (1387314773,), (1387314774,), (1387314779,), (1387314793,), (1387314795,), (1387314797,), (1387314837,), (1387314821,), (1387314826,), (1387314830,), (1387314860,), (1387314863,), (1387314883,), (1387314884,), (1387314885,), (1387314903,), (1387314906,), (1387314927,), (1387314930,), (1387314932,), (1387314934,), (1387314936,), (1387314956,), (1387314958,), (1387314961,), (1387314964,), (1387314984,), (1387315037,), (1387315040,), (1387315044,), (1387315047,), (1387315065,), (1387315066,), (1387315067,), (1387315089,), (1387315092,), (1387315095,), (1387315097,), (1387315114,), (1387315117,), (1387315119,), (1387315122,), (1387315128,), (1387315129,), (1387315134,), (1387315136,), (1387315139,), (1387315163,), (1387315164,), (1387315165,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02102025': {'nb_upload': 43, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27430484]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1387315165, 1387315164, 1387315163, 1387315139, 1387315136, 1387315134, 1387315129, 1387315128, 1387315122, 1387315119, 1387315117, 1387315114] map_info['map_portfolio_photo'] : {27430484: [1387315165, 1387315164, 1387315163, 1387315139, 1387315136, 1387315134, 1387315129, 1387315128, 1387315122, 1387315119, 1387315117, 1387315114, 1387315097, 1387315095, 1387315092, 1387315089, 1387315067, 1387315066, 1387315065, 1387315047, 1387315044, 1387315040, 1387315037, 1387314984, 1387314964, 1387314961, 1387314958, 1387314956, 1387314936, 1387314934, 1387314932, 1387314930, 1387314927, 1387314906, 1387314903, 1387314885, 1387314884, 1387314883, 1387314863, 1387314860, 1387314830, 1387314826, 1387314821]} final : True mtd_id 4302 list_pids : [1387315165, 1387315164, 1387315163, 1387315139, 1387315136, 1387315134, 1387315129, 1387315128, 1387315122, 1387315119, 1387315117, 1387315114] Looping around the photos to save general results len do output : 1 /27430484Didn'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, '3815808') ('4302', '27430484', '1387315165', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315164', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315163', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315139', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315136', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315134', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315129', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315128', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315122', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315119', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315117', None, None, None, None, None, '3815808') ('4302', None, None, None, None, None, None, None, '3815808') ('4302', '27430484', '1387315114', None, None, None, None, None, '3815808') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27430484', 'None', None, None, None, None, '3815808'), ('4302', '27430484', '1387315165', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315164', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315163', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315139', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315136', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315134', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315129', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315128', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315122', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315119', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315117', None, None, None, None, None, '3815808'), ('4302', '27430484', '1387315114', None, None, None, None, None, '3815808')] time used for this insertion : 0.03832054138183594 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.694600820541382 time spend to save output : 0.03854513168334961 total time spend for step 5 : 3.7331459522247314 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 (3815808) 2.09user 2.45system 0:17.63elapsed 25%CPU (0avgtext+0avgdata 160592maxresident)k 1616inputs+10136outputs (56major+64212minor)pagefaults 0swaps