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 : 3254986 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 (3950184) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3950184) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27857927 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3950184'] with mtr_portfolio_ids : ['27857927'] and first list_photo_ids : [] new path : /proc/3254986/ Name: python3 Umask: 0002 State: R (running) Tgid: 3254986 Ngid: 0 Pid: 3254986 PPid: 3254985 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3254986 NSpid: 3254986 NSpgid: 3253768 NSsid: 3253768 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99504 kB VmRSS: 99504 kB RssAnon: 59848 kB RssFile: 39656 kB RssShmem: 0 kB VmData: 865608 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 56 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3254986', 'Ngid': '0', 'Pid': '3254986', 'PPid': '3254985', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3254986', 'NSpid': '3254986', 'NSpgid': '3253768', 'NSsid': '3253768', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99504 kB', 'VmRSS': '99504 kB', 'RssAnon': '59848 kB', 'RssFile': '39656 kB', 'RssShmem': '0 kB', 'VmData': '865608 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '56', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '3254986', '1106856', '0', '1106856', '865608', '99504', b'', 'marlene', '3950184') 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 (27857927) 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 (3950184 ) ) 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 (27857927) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1389707131, 'portfolio_id': 27857927}, {'photo_id': 1389707129, 'portfolio_id': 27857927}, {'photo_id': 1389707128, 'portfolio_id': 27857927}, {'photo_id': 1389707124, 'portfolio_id': 27857927}, {'photo_id': 1389707120, 'portfolio_id': 27857927}, {'photo_id': 1389707118, 'portfolio_id': 27857927}, {'photo_id': 1389707115, 'portfolio_id': 27857927}, {'photo_id': 1389707112, 'portfolio_id': 27857927}, {'photo_id': 1389707110, 'portfolio_id': 27857927}, {'photo_id': 1389707108, 'portfolio_id': 27857927}, {'photo_id': 1389707097, 'portfolio_id': 27857927}, {'photo_id': 1389707095, 'portfolio_id': 27857927}, {'photo_id': 1389707090, 'portfolio_id': 27857927}, {'photo_id': 1389707085, 'portfolio_id': 27857927}, {'photo_id': 1389707082, 'portfolio_id': 27857927}, {'photo_id': 1389707080, 'portfolio_id': 27857927}, {'photo_id': 1389707070, 'portfolio_id': 27857927}, {'photo_id': 1389707067, 'portfolio_id': 27857927}, {'photo_id': 1389707065, 'portfolio_id': 27857927}, {'photo_id': 1389707063, 'portfolio_id': 27857927}, {'photo_id': 1389707061, 'portfolio_id': 27857927}, {'photo_id': 1389707040, 'portfolio_id': 27857927}, {'photo_id': 1389707038, 'portfolio_id': 27857927}, {'photo_id': 1389707036, 'portfolio_id': 27857927}, {'photo_id': 1389707026, 'portfolio_id': 27857927}, {'photo_id': 1389707024, 'portfolio_id': 27857927}, {'photo_id': 1389707021, 'portfolio_id': 27857927}, {'photo_id': 1389707019, 'portfolio_id': 27857927}, {'photo_id': 1389707009, 'portfolio_id': 27857927}, {'photo_id': 1389707006, 'portfolio_id': 27857927}, {'photo_id': 1389707004, 'portfolio_id': 27857927}, {'photo_id': 1389707002, 'portfolio_id': 27857927}, {'photo_id': 1389707000, 'portfolio_id': 27857927}, {'photo_id': 1389706986, 'portfolio_id': 27857927}, {'photo_id': 1389706984, 'portfolio_id': 27857927}, {'photo_id': 1389706907, 'portfolio_id': 27857927}, {'photo_id': 1389706903, 'portfolio_id': 27857927}, {'photo_id': 1389706665, 'portfolio_id': 27857927}] map_portfolio_id_photo_id: {27857927: [1389707131, 1389707129, 1389707128, 1389707124, 1389707120, 1389707118, 1389707115, 1389707112, 1389707110, 1389707108, 1389707097, 1389707095, 1389707090, 1389707085, 1389707082, 1389707080, 1389707070, 1389707067, 1389707065, 1389707063, 1389707061, 1389707040, 1389707038, 1389707036, 1389707026, 1389707024, 1389707021, 1389707019, 1389707009, 1389707006, 1389707004, 1389707002, 1389707000, 1389706986, 1389706984, 1389706907, 1389706903, 1389706665]} ##### 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.0681922435760498 #### 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 16 05:14:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27857927) 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 : 27857927 get user id for portfolio 27857927 get sub ptf for main ptf 27857927, type 3726 and hashtags ['mal_croppe', 'Carton_gris', 'metal', 'autre_refus', 'kraft', 'cartonnette', 'papier', 'plastique', 'Carton_brun', 'environnement', 'flou', 'Teint_Dans_La_Masse'] 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`=27857927 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_gris','metal','autre_refus','kraft','cartonnette','papier','plastique','Carton_brun','environnement','flou','Teint_Dans_La_Masse')) 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`=27857927 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_gris','metal','autre_refus','kraft','cartonnette','papier','plastique','Carton_brun','environnement','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 27857927, 'sub_port_id': 27857946, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802797, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3)}, 'environnement': {'main_port_id': 27857927, 'sub_port_id': 27857947, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802798, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3)}, 'flou': {'main_port_id': 27857927, 'sub_port_id': 27857948, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802799, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3)}, 'Carton_brun': {'main_port_id': 27857927, 'sub_port_id': 27857949, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802800, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3)}, 'kraft': {'main_port_id': 27857927, 'sub_port_id': 27857950, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802801, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3)}, 'metal': {'main_port_id': 27857927, 'sub_port_id': 27857951, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802802, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3)}, 'Teint_Dans_La_Masse': {'main_port_id': 27857927, 'sub_port_id': 27857952, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802803, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3)}, 'autre_refus': {'main_port_id': 27857927, 'sub_port_id': 27857953, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802804, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3)}, 'Carton_gris': {'main_port_id': 27857927, 'sub_port_id': 27857954, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802805, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3)}, 'papier': {'main_port_id': 27857927, 'sub_port_id': 27857955, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802806, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3)}, 'cartonnette': {'main_port_id': 27857927, 'sub_port_id': 27857956, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802807, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3)}, 'mal_croppe': {'main_port_id': 27857927, 'sub_port_id': 27857957, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802808, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27857946 , 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=27857927 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 (27857946) result : ((1389707049,), (1389707105,), (1389707145,), (1389707159,), (1389707160,), (1389707161,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27857927) result : ((1389706665,), (1389706903,), (1389706907,), (1389706984,), (1389706986,), (1389707000,), (1389707002,), (1389707004,), (1389707006,), (1389707009,), (1389707019,), (1389707021,), (1389707024,), (1389707026,), (1389707036,), (1389707038,), (1389707040,), (1389707061,), (1389707063,), (1389707065,), (1389707067,), (1389707070,), (1389707080,), (1389707082,), (1389707085,), (1389707090,), (1389707095,), (1389707097,), (1389707108,), (1389707110,), (1389707112,), (1389707115,), (1389707118,), (1389707120,), (1389707124,), (1389707128,), (1389707129,), (1389707131,)) 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 (1389707000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27857947 , 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=27857927 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 (27857947) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27857927) result : ((1389706665,), (1389706903,), (1389706907,), (1389706984,), (1389706986,), (1389707000,), (1389707002,), (1389707004,), (1389707006,), (1389707009,), (1389707019,), (1389707021,), (1389707024,), (1389707026,), (1389707036,), (1389707038,), (1389707040,), (1389707061,), (1389707063,), (1389707065,), (1389707067,), (1389707070,), (1389707080,), (1389707082,), (1389707085,), (1389707090,), (1389707095,), (1389707097,), (1389707108,), (1389707110,), (1389707112,), (1389707115,), (1389707118,), (1389707120,), (1389707124,), (1389707128,), (1389707129,), (1389707131,)) 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 (1389707000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27857948 , 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=27857927 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 (27857948) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27857927) result : ((1389706665,), (1389706903,), (1389706907,), (1389706984,), (1389706986,), (1389707000,), (1389707002,), (1389707004,), (1389707006,), (1389707009,), (1389707019,), (1389707021,), (1389707024,), (1389707026,), (1389707036,), (1389707038,), (1389707040,), (1389707061,), (1389707063,), (1389707065,), (1389707067,), (1389707070,), (1389707080,), (1389707082,), (1389707085,), (1389707090,), (1389707095,), (1389707097,), (1389707108,), (1389707110,), (1389707112,), (1389707115,), (1389707118,), (1389707120,), (1389707124,), (1389707128,), (1389707129,), (1389707131,)) 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 (1389707000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27857949 , 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=27857927 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 (27857949) result : ((1389707144,), (1389707155,), (1389707156,), (1389707157,), (1389707158,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27857927) result : ((1389706665,), (1389706903,), (1389706907,), (1389706984,), (1389706986,), (1389707000,), (1389707002,), (1389707004,), (1389707006,), (1389707009,), (1389707019,), (1389707021,), (1389707024,), (1389707026,), (1389707036,), (1389707038,), (1389707040,), (1389707061,), (1389707063,), (1389707065,), (1389707067,), (1389707070,), (1389707080,), (1389707082,), (1389707085,), (1389707090,), (1389707095,), (1389707097,), (1389707108,), (1389707110,), (1389707112,), (1389707115,), (1389707118,), (1389707120,), (1389707124,), (1389707128,), (1389707129,), (1389707131,)) 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 (1389707000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27857950 , 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=27857927 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 (27857950) result : ((1389707091,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27857927) result : ((1389706665,), (1389706903,), (1389706907,), (1389706984,), (1389706986,), (1389707000,), (1389707002,), (1389707004,), (1389707006,), (1389707009,), (1389707019,), (1389707021,), (1389707024,), (1389707026,), (1389707036,), (1389707038,), (1389707040,), (1389707061,), (1389707063,), (1389707065,), (1389707067,), (1389707070,), (1389707080,), (1389707082,), (1389707085,), (1389707090,), (1389707095,), (1389707097,), (1389707108,), (1389707110,), (1389707112,), (1389707115,), (1389707118,), (1389707120,), (1389707124,), (1389707128,), (1389707129,), (1389707131,)) 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 (1389707000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27857951 , 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=27857927 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 (27857951) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27857927) result : ((1389706665,), (1389706903,), (1389706907,), (1389706984,), (1389706986,), (1389707000,), (1389707002,), (1389707004,), (1389707006,), (1389707009,), (1389707019,), (1389707021,), (1389707024,), (1389707026,), (1389707036,), (1389707038,), (1389707040,), (1389707061,), (1389707063,), (1389707065,), (1389707067,), (1389707070,), (1389707080,), (1389707082,), (1389707085,), (1389707090,), (1389707095,), (1389707097,), (1389707108,), (1389707110,), (1389707112,), (1389707115,), (1389707118,), (1389707120,), (1389707124,), (1389707128,), (1389707129,), (1389707131,)) 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 (1389707000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27857952 , 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=27857927 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 (27857952) result : ((1389706933,), (1389706934,), (1389706935,), (1389707088,), (1389707099,), (1389707100,), (1389707139,), (1389707140,), (1389707150,), (1389707151,), (1389707152,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27857927) result : ((1389706665,), (1389706903,), (1389706907,), (1389706984,), (1389706986,), (1389707000,), (1389707002,), (1389707004,), (1389707006,), (1389707009,), (1389707019,), (1389707021,), (1389707024,), (1389707026,), (1389707036,), (1389707038,), (1389707040,), (1389707061,), (1389707063,), (1389707065,), (1389707067,), (1389707070,), (1389707080,), (1389707082,), (1389707085,), (1389707090,), (1389707095,), (1389707097,), (1389707108,), (1389707110,), (1389707112,), (1389707115,), (1389707118,), (1389707120,), (1389707124,), (1389707128,), (1389707129,), (1389707131,)) 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 (1389707000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27857953 , 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=27857927 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 (27857953) result : ((1389707101,), (1389707102,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27857927) result : ((1389706665,), (1389706903,), (1389706907,), (1389706984,), (1389706986,), (1389707000,), (1389707002,), (1389707004,), (1389707006,), (1389707009,), (1389707019,), (1389707021,), (1389707024,), (1389707026,), (1389707036,), (1389707038,), (1389707040,), (1389707061,), (1389707063,), (1389707065,), (1389707067,), (1389707070,), (1389707080,), (1389707082,), (1389707085,), (1389707090,), (1389707095,), (1389707097,), (1389707108,), (1389707110,), (1389707112,), (1389707115,), (1389707118,), (1389707120,), (1389707124,), (1389707128,), (1389707129,), (1389707131,)) 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 (1389707000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27857954 , 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=27857927 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 (27857954) result : ((1389707103,), (1389707104,), (1389707141,), (1389707142,), (1389707143,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27857927) result : ((1389706665,), (1389706903,), (1389706907,), (1389706984,), (1389706986,), (1389707000,), (1389707002,), (1389707004,), (1389707006,), (1389707009,), (1389707019,), (1389707021,), (1389707024,), (1389707026,), (1389707036,), (1389707038,), (1389707040,), (1389707061,), (1389707063,), (1389707065,), (1389707067,), (1389707070,), (1389707080,), (1389707082,), (1389707085,), (1389707090,), (1389707095,), (1389707097,), (1389707108,), (1389707110,), (1389707112,), (1389707115,), (1389707118,), (1389707120,), (1389707124,), (1389707128,), (1389707129,), (1389707131,)) 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 (1389707000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27857955 , 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=27857927 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 (27857955) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27857927) result : ((1389706665,), (1389706903,), (1389706907,), (1389706984,), (1389706986,), (1389707000,), (1389707002,), (1389707004,), (1389707006,), (1389707009,), (1389707019,), (1389707021,), (1389707024,), (1389707026,), (1389707036,), (1389707038,), (1389707040,), (1389707061,), (1389707063,), (1389707065,), (1389707067,), (1389707070,), (1389707080,), (1389707082,), (1389707085,), (1389707090,), (1389707095,), (1389707097,), (1389707108,), (1389707110,), (1389707112,), (1389707115,), (1389707118,), (1389707120,), (1389707124,), (1389707128,), (1389707129,), (1389707131,)) 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 (1389707000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27857956 , 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=27857927 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 (27857956) result : ((1389707046,), (1389707153,), (1389707154,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27857927) result : ((1389706665,), (1389706903,), (1389706907,), (1389706984,), (1389706986,), (1389707000,), (1389707002,), (1389707004,), (1389707006,), (1389707009,), (1389707019,), (1389707021,), (1389707024,), (1389707026,), (1389707036,), (1389707038,), (1389707040,), (1389707061,), (1389707063,), (1389707065,), (1389707067,), (1389707070,), (1389707080,), (1389707082,), (1389707085,), (1389707090,), (1389707095,), (1389707097,), (1389707108,), (1389707110,), (1389707112,), (1389707115,), (1389707118,), (1389707120,), (1389707124,), (1389707128,), (1389707129,), (1389707131,)) 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 (1389707000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27857957 , 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=27857927 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 (27857957) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27857927) result : ((1389706665,), (1389706903,), (1389706907,), (1389706984,), (1389706986,), (1389707000,), (1389707002,), (1389707004,), (1389707006,), (1389707009,), (1389707019,), (1389707021,), (1389707024,), (1389707026,), (1389707036,), (1389707038,), (1389707040,), (1389707061,), (1389707063,), (1389707065,), (1389707067,), (1389707070,), (1389707080,), (1389707082,), (1389707085,), (1389707090,), (1389707095,), (1389707097,), (1389707108,), (1389707110,), (1389707112,), (1389707115,), (1389707118,), (1389707120,), (1389707124,), (1389707128,), (1389707129,), (1389707131,)) 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 (1389707000) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27857927 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_gris','metal','autre_refus','kraft','cartonnette','papier','plastique','Carton_brun','environnement','flou','Teint_Dans_La_Masse')) 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`=27857927 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_gris','metal','autre_refus','kraft','cartonnette','papier','plastique','Carton_brun','environnement','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 27857927, 'sub_port_id': 27857976, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802827, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3, 7)}, 'environnement': {'main_port_id': 27857927, 'sub_port_id': 27857977, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802828, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3, 7)}, 'flou': {'main_port_id': 27857927, 'sub_port_id': 27857978, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802829, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3, 7)}, 'Carton_brun': {'main_port_id': 27857927, 'sub_port_id': 27857979, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802830, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3, 7)}, 'kraft': {'main_port_id': 27857927, 'sub_port_id': 27857980, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802831, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3, 7)}, 'metal': {'main_port_id': 27857927, 'sub_port_id': 27857981, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802832, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3, 7)}, 'Teint_Dans_La_Masse': {'main_port_id': 27857927, 'sub_port_id': 27857982, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802833, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3, 7)}, 'autre_refus': {'main_port_id': 27857927, 'sub_port_id': 27857983, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802834, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3, 7)}, 'Carton_gris': {'main_port_id': 27857927, 'sub_port_id': 27857984, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802835, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3, 7)}, 'papier': {'main_port_id': 27857927, 'sub_port_id': 27857985, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802836, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3, 7)}, 'cartonnette': {'main_port_id': 27857927, 'sub_port_id': 27857986, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802837, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3, 7)}, 'mal_croppe': {'main_port_id': 27857927, 'sub_port_id': 27857987, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18802838, 'last_updated_at': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 5, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 5, 3, 7)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27857976,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27857946 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27857977,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27857947 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27857978,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27857948 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27857979,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27857949 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27857980,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27857950 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27857981,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27857951 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27857982,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27857952 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27857983,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27857953 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27857984,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27857954 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27857985,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27857955 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27857986,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27857956 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27857987,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27857957 lien utilise dans velours : https://marlene.fotonower.com/velours/27857976,27857977,27857978,27857979,27857980,27857981,27857982,27857983,27857984,27857985,27857986,27857987?tags=plastique,environnement,flou,Carton_brun,kraft,metal,Teint_Dans_La_Masse,autre_refus,Carton_gris,papier,cartonnette,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27857927]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1389707131, 1389707129, 1389707128, 1389707124, 1389707120, 1389707118, 1389707115, 1389707112, 1389707110, 1389707108] map_info['map_portfolio_photo'] : {27857927: [1389707131, 1389707129, 1389707128, 1389707124, 1389707120, 1389707118, 1389707115, 1389707112, 1389707110, 1389707108, 1389707097, 1389707095, 1389707090, 1389707085, 1389707082, 1389707080, 1389707070, 1389707067, 1389707065, 1389707063, 1389707061, 1389707040, 1389707038, 1389707036, 1389707026, 1389707024, 1389707021, 1389707019, 1389707009, 1389707006, 1389707004, 1389707002, 1389707000, 1389706986, 1389706984, 1389706907, 1389706903, 1389706665]} final : False mtd_id 4302 list_pids : [1389707131, 1389707129, 1389707128, 1389707124, 1389707120, 1389707118, 1389707115, 1389707112, 1389707110, 1389707108] Looping around the photos to save general results len do output : 1 /27857927. 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, '3950184') ('4302', '27857927', '1389707131', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707129', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707128', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707124', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707120', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707118', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707115', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707112', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707110', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707108', None, None, None, None, None, '3950184') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27857927', "{'plastique': 27857946, 'environnement': 27857947, 'flou': 27857948, 'Carton_brun': 27857949, 'kraft': 27857950, 'metal': 27857951, 'Teint_Dans_La_Masse': 27857952, 'autre_refus': 27857953, 'Carton_gris': 27857954, 'papier': 27857955, 'cartonnette': 27857956, 'mal_croppe': 27857957}", None, None, None, None, '3950184'), ('4302', '27857927', '1389707131', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707129', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707128', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707124', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707120', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707118', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707115', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707112', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707110', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707108', None, None, None, None, None, '3950184')] time used for this insertion : 0.04725503921508789 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.2064807415008545 time spend to save output : 0.047547340393066406 total time spend for step 1 : 2.254028081893921 step2:final Thu Oct 16 05:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27857927) 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 27857927 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1389706665,1389706907,1389706903,1389706986,1389706984,1389707009,1389707006,1389707004,1389707002,1389707000,1389707026,1389707024,1389707021,1389707019,1389707040,1389707038,1389707036,1389707070,1389707067,1389707065,1389707063,1389707061,1389707131,1389707097,1389707095,1389707129,1389707090,1389707128,1389707085,1389707124,1389707082,1389707120,1389707118,1389707080,1389707115,1389707112,1389707110,1389707108); 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([27857927]) Inside saveOutput : final : False verbose : True original output for save of step final : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ('0.04293571705645288',), 1389707120: ('0.04293571705645288',), 1389707118: ('0.04293571705645288',), 1389707115: ('0.04293571705645288',), 1389707112: ('0.04293571705645288',), 1389707110: ('0.04293571705645288',), 1389707108: ('0.04293571705645288',)} new output for save of step final : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ('0.04293571705645288',), 1389707120: ('0.04293571705645288',), 1389707118: ('0.04293571705645288',), 1389707115: ('0.04293571705645288',), 1389707112: ('0.04293571705645288',), 1389707110: ('0.04293571705645288',), 1389707108: ('0.04293571705645288',)} [1389707131, 1389707129, 1389707128, 1389707124, 1389707120, 1389707118, 1389707115, 1389707112, 1389707110, 1389707108] map_info['map_portfolio_photo'] : {27857927: [1389707131, 1389707129, 1389707128, 1389707124, 1389707120, 1389707118, 1389707115, 1389707112, 1389707110, 1389707108, 1389707097, 1389707095, 1389707090, 1389707085, 1389707082, 1389707080, 1389707070, 1389707067, 1389707065, 1389707063, 1389707061, 1389707040, 1389707038, 1389707036, 1389707026, 1389707024, 1389707021, 1389707019, 1389707009, 1389707006, 1389707004, 1389707002, 1389707000, 1389706986, 1389706984, 1389706907, 1389706903, 1389706665]} final : False mtd_id 4302 list_pids : [1389707131, 1389707129, 1389707128, 1389707124, 1389707120, 1389707118, 1389707115, 1389707112, 1389707110, 1389707108] Looping around the photos to save general results len do output : 10 /1389707131.Didn't retrieve data . /1389707129.Didn't retrieve data . /1389707128.Didn't retrieve data . /1389707124.Didn't retrieve data . /1389707120.Didn't retrieve data . /1389707118.Didn't retrieve data . /1389707115.Didn't retrieve data . /1389707112.Didn't retrieve data . /1389707110.Didn't retrieve data . /1389707108.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, '3950184') ('4302', '27857927', '1389707131', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707129', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707128', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707124', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707120', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707118', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707115', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707112', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707110', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707108', None, None, None, None, None, '3950184') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27857927', '1389707131', '0.04293571705645288', None, None, None, None, '3950184'), ('4302', '27857927', '1389707129', '0.04293571705645288', None, None, None, None, '3950184'), ('4302', '27857927', '1389707128', '0.04293571705645288', None, None, None, None, '3950184'), ('4302', '27857927', '1389707124', '0.04293571705645288', None, None, None, None, '3950184'), ('4302', '27857927', '1389707120', '0.04293571705645288', None, None, None, None, '3950184'), ('4302', '27857927', '1389707118', '0.04293571705645288', None, None, None, None, '3950184'), ('4302', '27857927', '1389707115', '0.04293571705645288', None, None, None, None, '3950184'), ('4302', '27857927', '1389707112', '0.04293571705645288', None, None, None, None, '3950184'), ('4302', '27857927', '1389707110', '0.04293571705645288', None, None, None, None, '3950184'), ('4302', '27857927', '1389707108', '0.04293571705645288', None, None, None, None, '3950184')] time used for this insertion : 0.047347068786621094 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.31793785095214844 time spend to save output : 0.04793548583984375 total time spend for step 2 : 0.3658733367919922 step3:velours_tree Thu Oct 16 05:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {27857927: [{'plastique': 27857946, 'environnement': 27857947, 'flou': 27857948, 'Carton_brun': 27857949, 'kraft': 27857950, 'metal': 27857951, 'Teint_Dans_La_Masse': 27857952, 'autre_refus': 27857953, 'Carton_gris': 27857954, 'papier': 27857955, 'cartonnette': 27857956, 'mal_croppe': 27857957}]} input_args_next_step : {27857927: ()} output_args : {27857927: [{'plastique': 27857946, 'environnement': 27857947, 'flou': 27857948, 'Carton_brun': 27857949, 'kraft': 27857950, 'metal': 27857951, 'Teint_Dans_La_Masse': 27857952, 'autre_refus': 27857953, 'Carton_gris': 27857954, 'papier': 27857955, 'cartonnette': 27857956, 'mal_croppe': 27857957}]} args : 27857927 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'plastique': 27857946, 'environnement': 27857947, 'flou': 27857948, 'Carton_brun': 27857949, 'kraft': 27857950, 'metal': 27857951, 'Teint_Dans_La_Masse': 27857952, 'autre_refus': 27857953, 'Carton_gris': 27857954, 'papier': 27857955, 'cartonnette': 27857956, 'mal_croppe': 27857957},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27857927) 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([27857927]) 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.3513917922973633 time spend to save output : 3.9577484130859375e-05 total time spend for step 3 : 0.35143136978149414 step4:send_mail_cod Thu Oct 16 05:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ('0.04293571705645288',), 1389707120: ('0.04293571705645288',), 1389707118: ('0.04293571705645288',), 1389707115: ('0.04293571705645288',), 1389707112: ('0.04293571705645288',), 1389707110: ('0.04293571705645288',), 1389707108: ('0.04293571705645288',)} input_args_next_step : {1389707131: ()} output_args : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ('0.04293571705645288',), 1389707120: ('0.04293571705645288',), 1389707118: ('0.04293571705645288',), 1389707115: ('0.04293571705645288',), 1389707112: ('0.04293571705645288',), 1389707110: ('0.04293571705645288',), 1389707108: ('0.04293571705645288',)} args : 1389707131 depend.output_id : 0 input_args_next_step : {1389707131: ('0.04293571705645288',), 1389707129: ()} output_args : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ('0.04293571705645288',), 1389707120: ('0.04293571705645288',), 1389707118: ('0.04293571705645288',), 1389707115: ('0.04293571705645288',), 1389707112: ('0.04293571705645288',), 1389707110: ('0.04293571705645288',), 1389707108: ('0.04293571705645288',)} args : 1389707129 depend.output_id : 0 input_args_next_step : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ()} output_args : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ('0.04293571705645288',), 1389707120: ('0.04293571705645288',), 1389707118: ('0.04293571705645288',), 1389707115: ('0.04293571705645288',), 1389707112: ('0.04293571705645288',), 1389707110: ('0.04293571705645288',), 1389707108: ('0.04293571705645288',)} args : 1389707128 depend.output_id : 0 input_args_next_step : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ()} output_args : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ('0.04293571705645288',), 1389707120: ('0.04293571705645288',), 1389707118: ('0.04293571705645288',), 1389707115: ('0.04293571705645288',), 1389707112: ('0.04293571705645288',), 1389707110: ('0.04293571705645288',), 1389707108: ('0.04293571705645288',)} args : 1389707124 depend.output_id : 0 input_args_next_step : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ('0.04293571705645288',), 1389707120: ()} output_args : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ('0.04293571705645288',), 1389707120: ('0.04293571705645288',), 1389707118: ('0.04293571705645288',), 1389707115: ('0.04293571705645288',), 1389707112: ('0.04293571705645288',), 1389707110: ('0.04293571705645288',), 1389707108: ('0.04293571705645288',)} args : 1389707120 depend.output_id : 0 input_args_next_step : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ('0.04293571705645288',), 1389707120: ('0.04293571705645288',), 1389707118: ()} output_args : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ('0.04293571705645288',), 1389707120: ('0.04293571705645288',), 1389707118: ('0.04293571705645288',), 1389707115: ('0.04293571705645288',), 1389707112: ('0.04293571705645288',), 1389707110: ('0.04293571705645288',), 1389707108: ('0.04293571705645288',)} args : 1389707118 depend.output_id : 0 input_args_next_step : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ('0.04293571705645288',), 1389707120: ('0.04293571705645288',), 1389707118: ('0.04293571705645288',), 1389707115: ()} output_args : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ('0.04293571705645288',), 1389707120: ('0.04293571705645288',), 1389707118: ('0.04293571705645288',), 1389707115: ('0.04293571705645288',), 1389707112: ('0.04293571705645288',), 1389707110: ('0.04293571705645288',), 1389707108: ('0.04293571705645288',)} args : 1389707115 depend.output_id : 0 input_args_next_step : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ('0.04293571705645288',), 1389707120: ('0.04293571705645288',), 1389707118: ('0.04293571705645288',), 1389707115: ('0.04293571705645288',), 1389707112: ()} output_args : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ('0.04293571705645288',), 1389707120: ('0.04293571705645288',), 1389707118: ('0.04293571705645288',), 1389707115: ('0.04293571705645288',), 1389707112: ('0.04293571705645288',), 1389707110: ('0.04293571705645288',), 1389707108: ('0.04293571705645288',)} args : 1389707112 depend.output_id : 0 input_args_next_step : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ('0.04293571705645288',), 1389707120: ('0.04293571705645288',), 1389707118: ('0.04293571705645288',), 1389707115: ('0.04293571705645288',), 1389707112: ('0.04293571705645288',), 1389707110: ()} output_args : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ('0.04293571705645288',), 1389707120: ('0.04293571705645288',), 1389707118: ('0.04293571705645288',), 1389707115: ('0.04293571705645288',), 1389707112: ('0.04293571705645288',), 1389707110: ('0.04293571705645288',), 1389707108: ('0.04293571705645288',)} args : 1389707110 depend.output_id : 0 input_args_next_step : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ('0.04293571705645288',), 1389707120: ('0.04293571705645288',), 1389707118: ('0.04293571705645288',), 1389707115: ('0.04293571705645288',), 1389707112: ('0.04293571705645288',), 1389707110: ('0.04293571705645288',), 1389707108: ()} output_args : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ('0.04293571705645288',), 1389707120: ('0.04293571705645288',), 1389707118: ('0.04293571705645288',), 1389707115: ('0.04293571705645288',), 1389707112: ('0.04293571705645288',), 1389707110: ('0.04293571705645288',), 1389707108: ('0.04293571705645288',)} args : 1389707108 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 : {27857927: [{'plastique': 27857946, 'environnement': 27857947, 'flou': 27857948, 'Carton_brun': 27857949, 'kraft': 27857950, 'metal': 27857951, 'Teint_Dans_La_Masse': 27857952, 'autre_refus': 27857953, 'Carton_gris': 27857954, 'papier': 27857955, 'cartonnette': 27857956, 'mal_croppe': 27857957}]} input_args_next_step : {1389707131: ('0.04293571705645288',), 1389707129: ('0.04293571705645288',), 1389707128: ('0.04293571705645288',), 1389707124: ('0.04293571705645288',), 1389707120: ('0.04293571705645288',), 1389707118: ('0.04293571705645288',), 1389707115: ('0.04293571705645288',), 1389707112: ('0.04293571705645288',), 1389707110: ('0.04293571705645288',), 1389707108: ('0.04293571705645288',), 27857927: ()} output_args : {27857927: [{'plastique': 27857946, 'environnement': 27857947, 'flou': 27857948, 'Carton_brun': 27857949, 'kraft': 27857950, 'metal': 27857951, 'Teint_Dans_La_Masse': 27857952, 'autre_refus': 27857953, 'Carton_gris': 27857954, 'papier': 27857955, 'cartonnette': 27857956, 'mal_croppe': 27857957}]} args : 27857927 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.04293571705645288',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27857927) 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 (1389707131,1389707129,1389707128,1389707124,1389707120,1389707118,1389707115,1389707112,1389707110,1389707108) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1389707108 begin to download photo : 1389707115 begin to download photo : 1389707124 begin to download photo : 1389707131 download finish for photo 1389707115 begin to download photo : 1389707118 download finish for photo 1389707124 begin to download photo : 1389707128 download finish for photo 1389707131 download finish for photo 1389707108 begin to download photo : 1389707110 download finish for photo 1389707118 begin to download photo : 1389707120 download finish for photo 1389707128 begin to download photo : 1389707129 download finish for photo 1389707110 begin to download photo : 1389707112 download finish for photo 1389707120 download finish for photo 1389707129 download finish for photo 1389707112 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 : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P27857927_16-10-2025_05_15_01.pdf 27857946 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=27857946 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389707049: '1760584144_238663_1389707021_8743c17b1f8a6bd5d740b2efb12a7544_rle_crop_3999744810_0.png', 1389707105: '1760584286_246383_1389707004_761c1df045d040acd7db2047bd06f795_rle_crop_3999745098_0.png', 1389707145: '1760584385_252013_1389707090_9fc75fa1a4bde14259a4a30cffd7beef_rle_crop_3999745311_0.png', 1389707159: '1760584406_252450_1389707097_c9263c9617d3ddcab9c44f16ac3a7c47_rle_crop_3999745467_0.png', 1389707160: '1760584406_252450_1389707065_d9ff5c7c8484a71a0ea44a0da823bcf3_rle_crop_3999745483_0.png', 1389707161: '1760584406_252450_1389707063_0552d4b02930fbc73f15b19106fbd36c_rle_crop_3999745498_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/ccda1b80c93a30d20826dee0f3b32c8e_3082727.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/e81b26eb28bd56fe41a60f6a5d772ea2_1257848.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/31d3dbd17ff46e9a4b46006a7a96e83b_97732105.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/b453928ade8067d6aab50f0981c1ac3c_17502690.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/d1dde6cd6b8e47590e98d2f0bea59a98_96128680.png change filename to text .imagette278579461760584501/ imagette278579461760584501/1760584385_252013_1389707090_9fc75fa1a4bde14259a4a30cffd7beef_rle_crop_3999745311_0.png.png imagette278579461760584501/1760584286_246383_1389707004_761c1df045d040acd7db2047bd06f795_rle_crop_3999745098_0.png.png imagette278579461760584501/1760584406_252450_1389707063_0552d4b02930fbc73f15b19106fbd36c_rle_crop_3999745498_0.png.png imagette278579461760584501/1760584144_238663_1389707021_8743c17b1f8a6bd5d740b2efb12a7544_rle_crop_3999744810_0.png.png imagette278579461760584501/1760584406_252450_1389707065_d9ff5c7c8484a71a0ea44a0da823bcf3_rle_crop_3999745483_0.png.png imagette278579461760584501/1760584406_252450_1389707097_c9263c9617d3ddcab9c44f16ac3a7c47_rle_crop_3999745467_0.png.png imagette278579481760584501/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/a91c71089137797d653c9e093babdc1d_48402761.png imagette278579461760584501 27857948 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=27857948 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette278579481760584501 27857950 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=27857950 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389707091: '1760584263_245655_1389707036_379e246d69bcad170bfa0f19a46066d5_rle_crop_3999744944_0.png'} change filename to text .imagette278579501760584501/ imagette278579501760584501/1760584263_245655_1389707036_379e246d69bcad170bfa0f19a46066d5_rle_crop_3999744944_0.png.png imagette278579511760584501/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/f449012435ab1b4be5f348e644629c45_32235176.png imagette278579501760584501 27857951 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=27857951 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette278579511760584501 27857953 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=27857953 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389707101: '1760584286_246383_1389707004_761c1df045d040acd7db2047bd06f795_rle_crop_3999745100_0.png', 1389707102: '1760584286_246383_1389707002_7463300e51ffe47e38e7d2b7893b78d0_rle_crop_3999745114_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/bc4663b0a86f57eea0000689ecf7382a_5197236.png change filename to text .imagette278579531760584501/ imagette278579531760584501/1760584286_246383_1389707004_761c1df045d040acd7db2047bd06f795_rle_crop_3999745100_0.png.png imagette278579531760584501/1760584286_246383_1389707002_7463300e51ffe47e38e7d2b7893b78d0_rle_crop_3999745114_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/3f157e1ce38632d84b0bd59902c8a522_15145803.png imagette278579531760584501 27857956 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=27857956 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389707046: '1760584144_238663_1389707024_1e3b555e023a8ec6ae212fcb41d421b3_rle_crop_3999744791_0.png', 1389707153: '1760584406_252450_1389707063_0552d4b02930fbc73f15b19106fbd36c_rle_crop_3999745490_0.png', 1389707154: '1760584406_252450_1389707061_c04a1ae98f816ac2f4ebd8959288434c_rle_crop_3999745505_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/7b42884e18057730779bc5212835cc3f_99886172.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/1515e74281dd9e966c3f9c992069fcbe_13253874.png change filename to text .imagette278579561760584502/ imagette278579561760584502/1760584406_252450_1389707061_c04a1ae98f816ac2f4ebd8959288434c_rle_crop_3999745505_0.png.png imagette278579561760584502/1760584144_238663_1389707024_1e3b555e023a8ec6ae212fcb41d421b3_rle_crop_3999744791_0.png.png imagette278579561760584502/1760584406_252450_1389707063_0552d4b02930fbc73f15b19106fbd36c_rle_crop_3999745490_0.png.png imagette278579571760584502/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/98558a19f24ccdc508442687bbe232e1_17107513.png imagette278579561760584502 27857957 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=27857957 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette278579571760584502 27857949 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=27857949 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389707144: '1760584385_252013_1389707095_f5739aadde48ef862f83947ede43ba92_rle_crop_3999745302_0.png', 1389707155: '1760584406_252450_1389707097_c9263c9617d3ddcab9c44f16ac3a7c47_rle_crop_3999745469_0.png', 1389707156: '1760584406_252450_1389707065_d9ff5c7c8484a71a0ea44a0da823bcf3_rle_crop_3999745482_0.png', 1389707157: '1760584406_252450_1389707063_0552d4b02930fbc73f15b19106fbd36c_rle_crop_3999745493_0.png', 1389707158: '1760584406_252450_1389707061_c04a1ae98f816ac2f4ebd8959288434c_rle_crop_3999745508_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/16aa0b80af3b54d7a9e36820fb0ae4c2_69945138.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/a90bc7f1ee65ad37bdac8278f0e60a23_83400494.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/6ad746b9b5080b8b9456551628855b7b_9959377.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/5106e8f169b45dae7bcfc1db3f0f24f8_27252236.png change filename to text .imagette278579491760584502/ imagette278579491760584502/1760584385_252013_1389707095_f5739aadde48ef862f83947ede43ba92_rle_crop_3999745302_0.png.png imagette278579491760584502/1760584406_252450_1389707061_c04a1ae98f816ac2f4ebd8959288434c_rle_crop_3999745508_0.png.png imagette278579491760584502/1760584406_252450_1389707063_0552d4b02930fbc73f15b19106fbd36c_rle_crop_3999745493_0.png.png imagette278579491760584502/1760584406_252450_1389707097_c9263c9617d3ddcab9c44f16ac3a7c47_rle_crop_3999745469_0.png.png imagette278579491760584502/1760584406_252450_1389707065_d9ff5c7c8484a71a0ea44a0da823bcf3_rle_crop_3999745482_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/1bc071d26d32bc477411cf169aaeb037_40324338.png imagette278579491760584502 27857952 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=27857952 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389706933: '1760583785_224230_1389706907_ac3a240a3d6e8901c4607b0120fe36c6_rle_crop_3999744398_0.png', 1389706934: '1760583785_224230_1389706907_ac3a240a3d6e8901c4607b0120fe36c6_rle_crop_3999744400_0.png', 1389706935: '1760583785_224230_1389706665_926914a5fa7a82ca5d9e8ad82c6f5b4e_rle_crop_3999744409_0.png', 1389707088: '1760584263_245655_1389707036_379e246d69bcad170bfa0f19a46066d5_rle_crop_3999744947_0.png', 1389707099: '1760584286_246383_1389707026_9dfecc8c67715b94b0d16c2c8ff20c6d_rle_crop_3999745084_0.png', 1389707100: '1760584286_246383_1389707000_b03ace380ae7420a3f6ea5d3f3416c7b_rle_crop_3999745130_0.png', 1389707139: '1760584385_252013_1389707082_603a41fc95a0fe00b8f6df0a895f2ae5_rle_crop_3999745344_0.png', 1389707140: '1760584385_252013_1389707080_aa0b80e8bdb786054b4d43e23e526c1c_rle_crop_3999745360_0.png', 1389707150: '1760584406_252450_1389707097_c9263c9617d3ddcab9c44f16ac3a7c47_rle_crop_3999745474_0.png', 1389707151: '1760584406_252450_1389707063_0552d4b02930fbc73f15b19106fbd36c_rle_crop_3999745494_0.png', 1389707152: '1760584406_252450_1389707061_c04a1ae98f816ac2f4ebd8959288434c_rle_crop_3999745507_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/28081e1c83eb47a2a953412ffbd08609_30368702.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/fd8893c74e5fd33d45c7ef5b5d4b401a_79036254.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/b332615e29076de996dcdab677053c83_89456179.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/649dc78252f9faa5e0499ea31a2b71a0_23247035.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/2f7357bf94fe6fee3e60776c284fe50b_74987810.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/3f122115a8da41e99d810d3365bfc5b4_71674547.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/67e67c3a627c519e1cc684970773ce37_3423738.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/15df64a0417998f9939a4aa7d53f380d_57967151.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/ae67db2b2bed5c58353924fd18efeb03_27609902.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/15366210be440c1a03984bec193c4880_73579125.png change filename to text .imagette278579521760584502/ imagette278579521760584502/1760584385_252013_1389707082_603a41fc95a0fe00b8f6df0a895f2ae5_rle_crop_3999745344_0.png.png imagette278579521760584502/1760584406_252450_1389707063_0552d4b02930fbc73f15b19106fbd36c_rle_crop_3999745494_0.png.png imagette278579521760584502/1760583785_224230_1389706907_ac3a240a3d6e8901c4607b0120fe36c6_rle_crop_3999744398_0.png.png imagette278579521760584502/1760584286_246383_1389707000_b03ace380ae7420a3f6ea5d3f3416c7b_rle_crop_3999745130_0.png.png imagette278579521760584502/1760584286_246383_1389707026_9dfecc8c67715b94b0d16c2c8ff20c6d_rle_crop_3999745084_0.png.png imagette278579521760584502/1760583785_224230_1389706665_926914a5fa7a82ca5d9e8ad82c6f5b4e_rle_crop_3999744409_0.png.png imagette278579521760584502/1760584406_252450_1389707061_c04a1ae98f816ac2f4ebd8959288434c_rle_crop_3999745507_0.png.png imagette278579521760584502/1760583785_224230_1389706907_ac3a240a3d6e8901c4607b0120fe36c6_rle_crop_3999744400_0.png.png imagette278579521760584502/1760584385_252013_1389707080_aa0b80e8bdb786054b4d43e23e526c1c_rle_crop_3999745360_0.png.png imagette278579521760584502/1760584263_245655_1389707036_379e246d69bcad170bfa0f19a46066d5_rle_crop_3999744947_0.png.png imagette278579521760584502/1760584406_252450_1389707097_c9263c9617d3ddcab9c44f16ac3a7c47_rle_crop_3999745474_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/8a915dacdd954526933c8b40a92f59f9_95276813.png imagette278579521760584502 27857954 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=27857954 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389707103: '1760584286_246383_1389707002_7463300e51ffe47e38e7d2b7893b78d0_rle_crop_3999745111_0.png', 1389707104: '1760584286_246383_1389707000_b03ace380ae7420a3f6ea5d3f3416c7b_rle_crop_3999745129_0.png', 1389707141: '1760584385_252013_1389707095_f5739aadde48ef862f83947ede43ba92_rle_crop_3999745301_0.png', 1389707142: '1760584385_252013_1389707085_e6d639bdad5de626044928cc2b398887_rle_crop_3999745324_0.png', 1389707143: '1760584385_252013_1389707082_603a41fc95a0fe00b8f6df0a895f2ae5_rle_crop_3999745347_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/95b9ad89549cf6ac0166da08d0339b43_46991961.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/67324d18489fb4f0359b710c90f24503_9015968.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/3cd6de41bba144381b06e616c64b1710_64774766.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/482026ae82cd6678be14d3b61441a126_89596792.png change filename to text .imagette278579541760584503/ imagette278579541760584503/1760584385_252013_1389707095_f5739aadde48ef862f83947ede43ba92_rle_crop_3999745301_0.png.png imagette278579541760584503/1760584385_252013_1389707082_603a41fc95a0fe00b8f6df0a895f2ae5_rle_crop_3999745347_0.png.png imagette278579541760584503/1760584286_246383_1389707000_b03ace380ae7420a3f6ea5d3f3416c7b_rle_crop_3999745129_0.png.png imagette278579541760584503/1760584385_252013_1389707085_e6d639bdad5de626044928cc2b398887_rle_crop_3999745324_0.png.png imagette278579541760584503/1760584286_246383_1389707002_7463300e51ffe47e38e7d2b7893b78d0_rle_crop_3999745111_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/42c45a064b0434dbf78974bc83190b34_69786389.png imagette278579541760584503 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27857927 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27857976,27857977,27857978,27857979,27857980,27857981,27857982,27857983,27857984,27857985,27857986,27857987?tags=plastique,environnement,flou,Carton_brun,kraft,metal,Teint_Dans_La_Masse,autre_refus,Carton_gris,papier,cartonnette,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1389707131] : ('0.04293571705645288',) no score found for photo 1389707131 We are sending mail with results at report@fotonower.com args[1389707129] : ('0.04293571705645288',) no score found for photo 1389707129 We are sending mail with results at report@fotonower.com args[1389707128] : ('0.04293571705645288',) no score found for photo 1389707128 We are sending mail with results at report@fotonower.com args[1389707124] : ('0.04293571705645288',) no score found for photo 1389707124 We are sending mail with results at report@fotonower.com args[1389707120] : ('0.04293571705645288',) no score found for photo 1389707120 We are sending mail with results at report@fotonower.com args[1389707118] : ('0.04293571705645288',) no score found for photo 1389707118 We are sending mail with results at report@fotonower.com args[1389707115] : ('0.04293571705645288',) no score found for photo 1389707115 We are sending mail with results at report@fotonower.com args[1389707112] : ('0.04293571705645288',) no score found for photo 1389707112 We are sending mail with results at report@fotonower.com args[1389707110] : ('0.04293571705645288',) no score found for photo 1389707110 We are sending mail with results at report@fotonower.com args[1389707108] : ('0.04293571705645288',) no score found for photo 1389707108 We are sending mail with results at report@fotonower.com refus_total : 0.04293571705645288 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=27857927 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_P27857927_16-10-2025_05_15_01.pdf results_Auto_P27857927_16-10-2025_05_15_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27857927_16-10-2025_05_15_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','27857927','results_Auto_P27857927_16-10-2025_05_15_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27857927_16-10-2025_05_15_01.pdf','pdf','','0.19','0.04293571705645288') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27857927]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1389707131, 1389707129, 1389707128, 1389707124, 1389707120, 1389707118, 1389707115, 1389707112, 1389707110, 1389707108] map_info['map_portfolio_photo'] : {27857927: [1389707131, 1389707129, 1389707128, 1389707124, 1389707120, 1389707118, 1389707115, 1389707112, 1389707110, 1389707108, 1389707097, 1389707095, 1389707090, 1389707085, 1389707082, 1389707080, 1389707070, 1389707067, 1389707065, 1389707063, 1389707061, 1389707040, 1389707038, 1389707036, 1389707026, 1389707024, 1389707021, 1389707019, 1389707009, 1389707006, 1389707004, 1389707002, 1389707000, 1389706986, 1389706984, 1389706907, 1389706903, 1389706665]} final : False mtd_id 4302 list_pids : [1389707131, 1389707129, 1389707128, 1389707124, 1389707120, 1389707118, 1389707115, 1389707112, 1389707110, 1389707108] 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, '3950184') ('4302', '27857927', '1389707131', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707129', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707128', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707124', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707120', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707118', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707115', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707112', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707110', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707108', None, None, None, None, None, '3950184') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27857927', '1389707131', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707129', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707128', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707124', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707120', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707118', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707115', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707112', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707110', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707108', None, None, None, None, None, '3950184')] time used for this insertion : 0.04769444465637207 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.769071578979492 time spend to save output : 0.04798388481140137 total time spend for step 4 : 4.8170554637908936 step5:split_time_score Thu Oct 16 05:15:05 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 : ['27857927'] 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 : [('27857927',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27857927) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1389707131: {'path': 'temp/1760584500_3254986_1389707131_1cbaef72d87490d6bd62ffe354e454b5.jpg', 'extension': 'jpg'}, 1389707115: {'path': 'temp/1760584500_3254986_1389707115_dab511ecd804231eae3d7af1d6221848.jpg', 'extension': 'jpg'}, 1389707118: {'path': 'temp/1760584500_3254986_1389707118_c3da496e668415629e1e635324675078.jpg', 'extension': 'jpg'}, 1389707120: {'path': 'temp/1760584500_3254986_1389707120_0cb6efc32f72df4e931f580f1766b3c0.jpg', 'extension': 'jpg'}, 1389707124: {'path': 'temp/1760584500_3254986_1389707124_0ef386437aed4ec254bad6ddac0891c0.jpg', 'extension': 'jpg'}, 1389707128: {'path': 'temp/1760584500_3254986_1389707128_b527332baf5c4d71b9a8dc2993cc02ad.jpg', 'extension': 'jpg'}, 1389707129: {'path': 'temp/1760584500_3254986_1389707129_ba29b5722c11e8fec363e93f00c0f21a.jpg', 'extension': 'jpg'}, 1389707108: {'path': 'temp/1760584500_3254986_1389707108_1ef194a42388022b5490216e2289b2c1.jpg', 'extension': 'jpg'}, 1389707110: {'path': 'temp/1760584500_3254986_1389707110_73e64255da1db77dae5c1048261a4780.jpg', 'extension': 'jpg'}, 1389707112: {'path': 'temp/1760584500_3254986_1389707112_10a9873745e734004a9863ed54e72621.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 = 27857927; (('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 = 27857927 group by h (('05', 38),) 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=27857927 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 (27857927) 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 (27857927) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16102025 27857927 Nombre de photos uploadées : 38 / 23040 (0%) 16102025 27857927 Nombre de photos taguées (types de déchets): 0 / 38 (0%) 16102025 27857927 Nombre de photos taguées (volume) : 0 / 38 (0%) [{'photo_id': 1389706665, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/926914a5fa7a82ca5d9e8ad82c6f5b4e.jpg', 'username': None, 'uploaded_at': 1760583668, 'text': 'image_16102025_05_00_33_009142m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1389706907, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/ac3a240a3d6e8901c4607b0120fe36c6.jpg', 'username': None, 'uploaded_at': 1760583729, 'text': 'image_16102025_05_00_54_010135m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1389706903, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/2b66237a59faca8d71b05da63a39c37d.jpg', 'username': None, 'uploaded_at': 1760583729, 'text': 'image_16102025_05_01_04_010147m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1389706986, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/6b2d8562e1269b3638a799e00c5b7ea2.jpg', 'username': None, 'uploaded_at': 1760583968, 'text': 'image_16102025_05_01_53_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ?????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0009126663208007812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27857927, '2025-10-16' ) 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 (2458333,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.82417893409729 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= 2458333 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466951, 'mtr_portfolio_id': 27849662, 'dashboard_result_id': 16446325, '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_P27849662_16-10-2025_00_20_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27849671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27849672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27849673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27849674, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27849675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27849676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27849677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27849678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27849679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27849680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27849681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27849682, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466951, 'mtr_portfolio_id': 27850314, 'dashboard_result_id': 16446326, '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_P27850314_16-10-2025_00_34_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27850317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27850318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27850319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27850320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27850321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27850322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27850323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27850324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27850325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27850326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27850327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27850328, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466951, 'mtr_portfolio_id': 27850796, 'dashboard_result_id': 16446327, '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_P27850796_16-10-2025_00_49_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27850821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27850822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27850823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27850824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27850825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27850826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27850827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27850828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27850829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27850830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27850831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27850832, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466951, 'mtr_portfolio_id': 27851368, 'dashboard_result_id': 16446328, '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_P27851368_16-10-2025_01_03_06.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27851374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27851375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27851376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27851377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27851378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27851379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27851380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27851381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27851382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27851383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27851384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27851385, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466951, 'mtr_portfolio_id': 27852357, 'dashboard_result_id': 16446329, '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_P27852357_16-10-2025_01_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27852422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27852423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27852424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27852425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27852426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27852427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27852428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27852429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27852430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27852431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27852432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27852433, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466951, 'mtr_portfolio_id': 27852802, 'dashboard_result_id': 16446330, '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_P27852802_16-10-2025_02_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27852805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27852806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27852807, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27852808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27852809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27852810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27852811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27852812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27852813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27852814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27852815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27852816, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466951, 'mtr_portfolio_id': 27853105, 'dashboard_result_id': 16446331, '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_P27853105_16-10-2025_02_19_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27853111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27853112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27853113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27853114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27853115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27853116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27853117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27853118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27853119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27853120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27853121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27853122, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466951, 'mtr_portfolio_id': 27853775, 'dashboard_result_id': 16446332, '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_P27853775_16-10-2025_02_34_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27853780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27853781, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27853782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27853783, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27853785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27853786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27853787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27853788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27853789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27853790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27853791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27853792, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466951, 'mtr_portfolio_id': 27854208, 'dashboard_result_id': 16446333, '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_P27854208_16-10-2025_02_49_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27854240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27854241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27854242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27854243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27854244, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27854245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27854246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27854247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27854248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27854249, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27854250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27854251, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466951, 'mtr_portfolio_id': 27854642, 'dashboard_result_id': 16446334, '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_P27854642_16-10-2025_03_03_09.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27854651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27854652, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27854653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27854654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27854655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27854656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27854657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27854658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27854659, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27854660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27854661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27854662, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466951, 'mtr_portfolio_id': 27854965, 'dashboard_result_id': 16446335, '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_P27854965_16-10-2025_03_19_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27854991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27854992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27854993, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27854994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27854995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27854996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27854997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27854998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27854999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27855000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27855001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27855002, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466951, 'mtr_portfolio_id': 27855559, 'dashboard_result_id': 16446337, '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_P27855559_16-10-2025_03_39_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27855567, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27855568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27855569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27855570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27855571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27855572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27855573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27855574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27855575, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27855576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27855577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27855578, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466951, 'mtr_portfolio_id': 27855931, 'dashboard_result_id': 16446338, '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_P27855931_16-10-2025_03_49_40.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27855963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27855964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27855965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27855966, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27855967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27855968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27855969, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27855970, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27855971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27855972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27855973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27855974, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466951, 'mtr_portfolio_id': 27856418, 'dashboard_result_id': 16446339, '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_P27856418_16-10-2025_04_19_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27856443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27856444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27856445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27856446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27856447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27856448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27856449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27856450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27856451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27856452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27856453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27856454, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466951, 'mtr_portfolio_id': 27856780, 'dashboard_result_id': 16446340, '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_P27856780_16-10-2025_04_19_24.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27856794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27856795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27856796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27856797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27856798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27856799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27856800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27856801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27856802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27856803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27856804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27856805, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466951, 'mtr_portfolio_id': 27857927, 'dashboard_result_id': 16446341, '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_P27857927_16-10-2025_05_13_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27857946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27857947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27857948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27857949, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27857950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27857951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27857952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27857953, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27857954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27857955, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27857956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27857957, '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 = 27849662 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': 3948919, 'mtr_portfolio_id': 27849662, 'created_at': datetime.datetime(2025, 10, 16, 0, 20, 29), 'result': '0.05962900866521991', 'result_long': None, 'result_double': None}] Qualite : 0.05962900866521991 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27849662 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27849662_16-10-2025_00_20_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27849662 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_P27849662_16-10-2025_00_20_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27849671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27849672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27849673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27849674, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27849675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27849676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27849677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27849678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27849679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27849680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27849681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27849682, 'pht': 3726}}" where mtr_portfolio_id = 27849662 and dashboard_run_id = 2466951 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`=27849662 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16446325, 0.05962900866521991, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27849662_16-10-2025_00_20_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27849671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27849672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27849673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27849674, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27849675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27849676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27849677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27849678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27849679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27849680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27849681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27849682, '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 = 27850314 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': 3948976, 'mtr_portfolio_id': 27850314, 'created_at': datetime.datetime(2025, 10, 16, 0, 34, 1), 'result': '0.051392392926112695', 'result_long': None, 'result_double': None}] Qualite : 0.051392392926112695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27850314 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27850314_16-10-2025_00_34_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27850314 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_P27850314_16-10-2025_00_34_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27850317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27850318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27850319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27850320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27850321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27850322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27850323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27850324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27850325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27850326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27850327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27850328, 'pht': 3726}}" where mtr_portfolio_id = 27850314 and dashboard_run_id = 2466951 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`=27850314 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16446326, 0.051392392926112695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27850314_16-10-2025_00_34_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27850317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27850318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27850319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27850320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27850321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27850322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27850323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27850324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27850325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27850326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27850327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27850328, '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 = 27850796 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': 3949013, 'mtr_portfolio_id': 27850796, 'created_at': datetime.datetime(2025, 10, 16, 0, 49, 36), 'result': '0.054089594746434155', 'result_long': None, 'result_double': None}] Qualite : 0.054089594746434155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27850796 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27850796_16-10-2025_00_49_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27850796 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_P27850796_16-10-2025_00_49_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27850821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27850822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27850823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27850824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27850825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27850826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27850827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27850828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27850829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27850830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27850831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27850832, 'pht': 3726}}" where mtr_portfolio_id = 27850796 and dashboard_run_id = 2466951 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`=27850796 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16446327, 0.054089594746434155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27850796_16-10-2025_00_49_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27850821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27850822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27850823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27850824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27850825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27850826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27850827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27850828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27850829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27850830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27850831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27850832, '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 = 27851368 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': 3949070, 'mtr_portfolio_id': 27851368, 'created_at': datetime.datetime(2025, 10, 16, 1, 3, 5), 'result': '0.0461043911335413', 'result_long': None, 'result_double': None}] Qualite : 0.0461043911335413 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27851368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27851368_16-10-2025_01_03_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27851368 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_P27851368_16-10-2025_01_03_06.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27851374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27851375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27851376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27851377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27851378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27851379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27851380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27851381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27851382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27851383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27851384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27851385, 'pht': 3726}}" where mtr_portfolio_id = 27851368 and dashboard_run_id = 2466951 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`=27851368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16446328, 0.0461043911335413, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27851368_16-10-2025_01_03_06.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27851374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27851375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27851376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27851377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27851378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27851379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27851380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27851381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27851382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27851383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27851384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27851385, '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 = 27852357 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': 3949216, 'mtr_portfolio_id': 27852357, 'created_at': datetime.datetime(2025, 10, 16, 1, 48, 59), 'result': '0.068391160702413', 'result_long': None, 'result_double': None}] Qualite : 0.068391160702413 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27852357 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27852357_16-10-2025_01_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27852357 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_P27852357_16-10-2025_01_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27852422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27852423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27852424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27852425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27852426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27852427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27852428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27852429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27852430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27852431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27852432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27852433, 'pht': 3726}}" where mtr_portfolio_id = 27852357 and dashboard_run_id = 2466951 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`=27852357 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16446329, 0.068391160702413, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27852357_16-10-2025_01_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27852422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27852423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27852424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27852425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27852426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27852427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27852428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27852429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27852430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27852431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27852432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27852433, '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 = 27852802 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': 3949256, 'mtr_portfolio_id': 27852802, 'created_at': datetime.datetime(2025, 10, 16, 2, 3, 32), 'result': '0.08685790384533715', 'result_long': None, 'result_double': None}] Qualite : 0.08685790384533715 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27852802 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27852802_16-10-2025_02_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27852802 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_P27852802_16-10-2025_02_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27852805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27852806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27852807, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27852808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27852809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27852810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27852811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27852812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27852813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27852814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27852815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27852816, 'pht': 3726}}" where mtr_portfolio_id = 27852802 and dashboard_run_id = 2466951 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`=27852802 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16446330, 0.08685790384533715, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27852802_16-10-2025_02_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27852805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27852806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27852807, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27852808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27852809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27852810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27852811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27852812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27852813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27852814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27852815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27852816, '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 = 27853105 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': 3949317, 'mtr_portfolio_id': 27853105, 'created_at': datetime.datetime(2025, 10, 16, 2, 19, 35), 'result': '0.04838532829097457', 'result_long': None, 'result_double': None}] Qualite : 0.04838532829097457 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27853105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27853105_16-10-2025_02_19_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27853105 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_P27853105_16-10-2025_02_19_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27853111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27853112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27853113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27853114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27853115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27853116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27853117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27853118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27853119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27853120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27853121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27853122, 'pht': 3726}}" where mtr_portfolio_id = 27853105 and dashboard_run_id = 2466951 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`=27853105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16446331, 0.04838532829097457, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27853105_16-10-2025_02_19_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27853111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27853112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27853113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27853114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27853115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27853116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27853117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27853118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27853119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27853120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27853121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27853122, '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 = 27853775 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': 3949393, 'mtr_portfolio_id': 27853775, 'created_at': datetime.datetime(2025, 10, 16, 2, 34, 30), 'result': '0.05537800652678027', 'result_long': None, 'result_double': None}] Qualite : 0.05537800652678027 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27853775 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27853775_16-10-2025_02_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27853775 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_P27853775_16-10-2025_02_34_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27853780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27853781, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27853782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27853783, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27853785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27853786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27853787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27853788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27853789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27853790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27853791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27853792, 'pht': 3726}}" where mtr_portfolio_id = 27853775 and dashboard_run_id = 2466951 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`=27853775 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16446332, 0.05537800652678027, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27853775_16-10-2025_02_34_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27853780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27853781, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27853782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27853783, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27853785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27853786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27853787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27853788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27853789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27853790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27853791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27853792, '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 = 27854208 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': 3949470, 'mtr_portfolio_id': 27854208, 'created_at': datetime.datetime(2025, 10, 16, 2, 49, 1), 'result': '0.05463024295267013', 'result_long': None, 'result_double': None}] Qualite : 0.05463024295267013 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27854208 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27854208_16-10-2025_02_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27854208 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_P27854208_16-10-2025_02_49_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27854240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27854241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27854242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27854243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27854244, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27854245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27854246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27854247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27854248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27854249, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27854250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27854251, 'pht': 3726}}" where mtr_portfolio_id = 27854208 and dashboard_run_id = 2466951 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`=27854208 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16446333, 0.05463024295267013, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27854208_16-10-2025_02_49_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27854240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27854241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27854242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27854243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27854244, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27854245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27854246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27854247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27854248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27854249, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27854250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27854251, '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 = 27854642 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': 3949565, 'mtr_portfolio_id': 27854642, 'created_at': datetime.datetime(2025, 10, 16, 3, 3, 8), 'result': '0.056917338220735254', 'result_long': None, 'result_double': None}] Qualite : 0.056917338220735254 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27854642 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27854642_16-10-2025_03_03_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27854642 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_P27854642_16-10-2025_03_03_09.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27854651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27854652, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27854653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27854654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27854655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27854656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27854657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27854658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27854659, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27854660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27854661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27854662, 'pht': 3726}}" where mtr_portfolio_id = 27854642 and dashboard_run_id = 2466951 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`=27854642 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16446334, 0.056917338220735254, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27854642_16-10-2025_03_03_09.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27854651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27854652, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27854653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27854654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27854655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27854656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27854657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27854658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27854659, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27854660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27854661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27854662, '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 = 27854965 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': 3949645, 'mtr_portfolio_id': 27854965, 'created_at': datetime.datetime(2025, 10, 16, 3, 19, 3), 'result': '0.04542878494278811', 'result_long': None, 'result_double': None}] Qualite : 0.04542878494278811 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27854965 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27854965_16-10-2025_03_19_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27854965 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_P27854965_16-10-2025_03_19_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27854991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27854992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27854993, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27854994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27854995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27854996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27854997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27854998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27854999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27855000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27855001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27855002, 'pht': 3726}}" where mtr_portfolio_id = 27854965 and dashboard_run_id = 2466951 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`=27854965 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16446335, 0.04542878494278811, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27854965_16-10-2025_03_19_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27854991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27854992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27854993, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27854994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27854995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27854996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27854997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27854998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27854999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27855000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27855001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27855002, '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 = 27855559 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': 3949719, 'mtr_portfolio_id': 27855559, 'created_at': datetime.datetime(2025, 10, 16, 3, 39, 31), 'result': '0.06052732698847466', 'result_long': None, 'result_double': None}] Qualite : 0.06052732698847466 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27855559 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27855559_16-10-2025_03_39_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27855559 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_P27855559_16-10-2025_03_39_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27855567, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27855568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27855569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27855570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27855571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27855572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27855573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27855574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27855575, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27855576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27855577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27855578, 'pht': 3726}}" where mtr_portfolio_id = 27855559 and dashboard_run_id = 2466951 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`=27855559 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16446337, 0.06052732698847466, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27855559_16-10-2025_03_39_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27855567, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27855568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27855569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27855570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27855571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27855572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27855573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27855574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27855575, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27855576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27855577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27855578, '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 = 27855931 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': 3949794, 'mtr_portfolio_id': 27855931, 'created_at': datetime.datetime(2025, 10, 16, 3, 49, 40), 'result': '0.031152881683538476', 'result_long': None, 'result_double': None}] Qualite : 0.031152881683538476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27855931 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27855931_16-10-2025_03_49_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27855931 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_P27855931_16-10-2025_03_49_40.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27855963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27855964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27855965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27855966, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27855967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27855968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27855969, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27855970, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27855971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27855972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27855973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27855974, 'pht': 3726}}" where mtr_portfolio_id = 27855931 and dashboard_run_id = 2466951 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`=27855931 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16446338, 0.031152881683538476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27855931_16-10-2025_03_49_40.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27855963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27855964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27855965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27855966, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27855967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27855968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27855969, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27855970, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27855971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27855972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27855973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27855974, '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 = 27856418 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': 3949891, 'mtr_portfolio_id': 27856418, 'created_at': datetime.datetime(2025, 10, 16, 4, 19, 1), 'result': '0.08359258884789343', 'result_long': None, 'result_double': None}] Qualite : 0.08359258884789343 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27856418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27856418_16-10-2025_04_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27856418 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_P27856418_16-10-2025_04_19_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27856443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27856444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27856445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27856446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27856447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27856448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27856449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27856450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27856451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27856452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27856453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27856454, 'pht': 3726}}" where mtr_portfolio_id = 27856418 and dashboard_run_id = 2466951 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`=27856418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16446339, 0.08359258884789343, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27856418_16-10-2025_04_19_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27856443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27856444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27856445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27856446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27856447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27856448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27856449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27856450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27856451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27856452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27856453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27856454, '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 = 27856780 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': 3949976, 'mtr_portfolio_id': 27856780, 'created_at': datetime.datetime(2025, 10, 16, 4, 19, 24), 'result': '0.07552220384973139', 'result_long': None, 'result_double': None}] Qualite : 0.07552220384973139 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27856780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27856780_16-10-2025_04_19_24.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27856780 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_P27856780_16-10-2025_04_19_24.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27856794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27856795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27856796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27856797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27856798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27856799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27856800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27856801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27856802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27856803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27856804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27856805, 'pht': 3726}}" where mtr_portfolio_id = 27856780 and dashboard_run_id = 2466951 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`=27856780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16446340, 0.07552220384973139, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27856780_16-10-2025_04_19_24.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27856794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27856795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27856796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27856797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27856798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27856799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27856800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27856801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27856802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27856803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27856804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27856805, '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 = 27857927 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': 3950184, 'mtr_portfolio_id': 27857927, 'created_at': datetime.datetime(2025, 10, 16, 5, 15), 'result': '0.04293571705645288', 'result_long': None, 'result_double': None}] Qualite : 0.04293571705645288 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27857927 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27857927_16-10-2025_05_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27857927 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_P27857927_16-10-2025_05_15_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27857946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27857947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27857948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27857949, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27857950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27857951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27857952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27857953, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27857954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27857955, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27857956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27857957, 'pht': 3726}}" where mtr_portfolio_id = 27857927 and dashboard_run_id = 2466951 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`=27857927 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16446341, 0.04293571705645288, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27857927_16-10-2025_05_15_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27857946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27857947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27857948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27857949, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27857950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27857951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27857952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27857953, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27857954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27857955, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27857956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27857957, '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 (27849662,27850314,27850796,27851368,27852357,27852802,27853105,27853775,27854208,27854642,27854965,27855559,27855931,27856418,27856780,27857927) result : ((1389674570,), (1389674571,), (1389674572,), (1389674582,), (1389674583,), (1389674584,), (1389674782,), (1389674784,), (1389674786,), (1389675930,), (1389675932,), (1389675935,), (1389675940,), (1389675947,), (1389675950,), (1389676259,), (1389676298,), (1389676300,), (1389676304,), (1389676319,), (1389676321,), (1389676322,), (1389676323,), (1389676327,), (1389676343,), (1389676344,), (1389676345,), (1389676347,), (1389676349,), (1389676351,), (1389676377,), (1389676378,), (1389676389,), (1389676390,), (1389676391,), (1389676457,), (1389676642,), (1389676644,), (1389676646,), (1389676648,), (1389676740,), (1389676781,), (1389676783,), (1389676786,), (1389676790,), (1389676792,), (1389676832,), (1389676833,), (1389676834,), (1389676842,), (1389676843,), (1389676844,), (1389676846,), (1389677213,), (1389677215,), (1389677216,), (1389677217,), (1389677219,), (1389677251,), (1389677252,), (1389677253,), (1389677255,), (1389677260,), (1389677274,), (1389677276,), (1389678296,), (1389678607,), (1389678608,), (1389678612,), (1389678655,), (1389678872,), (1389678873,), (1389678874,), (1389678915,), (1389678916,), (1389678917,), (1389678926,), (1389678927,), (1389678928,), (1389678930,), (1389678934,), (1389678948,), (1389678949,), (1389678950,), (1389678953,), (1389678983,), (1389678984,), (1389678985,), (1389678987,), (1389678992,), (1389679001,), (1389679022,), (1389679025,), (1389679027,), (1389679029,), (1389679031,), (1389679033,), (1389679035,), (1389679037,), (1389679044,), (1389679054,), (1389679056,), (1389679077,), (1389679079,), (1389679080,), (1389679081,), (1389679082,), (1389679083,), (1389679084,), (1389679088,), (1389679090,), (1389679114,), (1389679159,), (1389679197,), (1389679245,), (1389679357,), (1389679400,), (1389679443,), (1389679487,), (1389679534,), (1389679579,), (1389679589,), (1389679599,), (1389679879,), (1389679882,), (1389679885,), (1389679894,), (1389679898,), (1389679903,), (1389679906,), (1389679909,), (1389679911,), (1389679871,), (1389679873,), (1389679876,), (1389679887,), (1389679888,), (1389679891,), (1389679892,), (1389679912,), (1389679915,), (1389680202,), (1389680242,), (1389680281,), (1389680323,), (1389680368,), (1389680408,), (1389680485,), (1389680530,), (1389680569,), (1389680578,), (1389680581,), (1389680614,), (1389680658,), (1389680660,), (1389681111,), (1389681119,), (1389681121,), (1389681123,), (1389681308,), (1389681351,), (1389681384,), (1389681493,), (1389681504,), (1389681515,), (1389681517,), (1389681538,), (1389681540,), (1389681542,), (1389681954,), (1389681955,), (1389681965,), (1389681966,), (1389681968,), (1389681969,), (1389682362,), (1389682363,), (1389682856,), (1389682857,), (1389682858,), (1389682859,), (1389683013,), (1389683014,), (1389683015,), (1389683017,), (1389683020,), (1389683027,), (1389683030,), (1389683032,), (1389683035,), (1389683037,), (1389683057,), (1389683820,), (1389683866,), (1389683891,), (1389683896,), (1389683897,), (1389683898,), (1389683787,), (1389683817,), (1389683901,), (1389683904,), (1389683905,), (1389683907,), (1389683909,), (1389683910,), (1389683922,), (1389683923,), (1389683924,), (1389683925,), (1389683941,), (1389683942,), (1389683943,), (1389683944,), (1389683989,), (1389684397,), (1389684440,), (1389684485,), (1389684530,), (1389684561,), (1389684688,), (1389684731,), (1389684749,), (1389684757,), (1389684767,), (1389684881,), (1389684882,), (1389684883,), (1389684885,), (1389684888,), (1389684893,), (1389684894,), (1389684895,), (1389684897,), (1389684908,), (1389685388,), (1389685438,), (1389685481,), (1389685524,), (1389686013,), (1389686015,), (1389686017,), (1389686019,), (1389686215,), (1389686221,), (1389686248,), (1389686253,), (1389686255,), (1389686256,), (1389686259,), (1389686260,), (1389686262,), (1389686265,), (1389686268,), (1389686270,), (1389686275,), (1389686285,), (1389686286,), (1389686288,), (1389686290,), (1389686293,), (1389687129,), (1389687131,), (1389687361,), (1389689277,), (1389689291,), (1389689292,), (1389689293,), (1389689339,), (1389689340,), (1389689343,), (1389689402,), (1389689403,), (1389689404,), (1389689406,), (1389689407,), (1389689409,), (1389689414,), (1389689416,), (1389689418,), (1389689422,), (1389689425,), (1389689427,), (1389689433,), (1389689435,), (1389689437,), (1389689439,), (1389689440,), (1389689442,), (1389689452,), (1389689455,), (1389689456,), (1389689457,), (1389689459,), (1389689465,), (1389689475,), (1389689482,), (1389689546,), (1389689551,), (1389689575,), (1389689577,), (1389689579,), (1389689581,), (1389689600,), (1389689602,), (1389689603,), (1389689605,), (1389689607,), (1389689612,), (1389689613,), (1389689614,), (1389689615,), (1389689617,), (1389689622,), (1389689629,), (1389689630,), (1389689631,), (1389689633,), (1389689636,), (1389689638,), (1389689654,), (1389689656,), (1389689657,), (1389689679,), (1389689680,), (1389689681,), (1389689682,), (1389689690,), (1389689691,), (1389689692,), (1389689693,), (1389689697,), (1389689698,), (1389689745,), (1389689747,), (1389689749,), (1389689753,), (1389689754,), (1389689755,), (1389689756,), (1389689741,), (1389689742,), (1389689743,), (1389689758,), (1389689759,), (1389689761,), (1389689773,), (1389689777,), (1389689785,), (1389689786,), (1389689787,), (1389689788,), (1389689790,), (1389689792,), (1389689812,), (1389689813,), (1389689814,), (1389689816,), (1389689844,), (1389689845,), (1389689846,), (1389689848,), (1389689851,), (1389689853,), (1389689859,), (1389689861,), (1389689864,), (1389689867,), (1389689895,), (1389689897,), (1389689900,), (1389689903,), (1389689909,), (1389689910,), (1389689911,), (1389689913,), (1389689916,), (1389689945,), (1389689946,), (1389689947,), (1389689949,), (1389689966,), (1389689969,), (1389689971,), (1389689974,), (1389689977,), (1389689985,), (1389689986,), (1389689987,), (1389689989,), (1389689991,), (1389689993,), (1389690004,), (1389690017,), (1389690019,), (1389690020,), (1389690022,), (1389690034,), (1389690039,), (1389690041,), (1389690055,), (1389690057,), (1389690849,), (1389690855,), (1389690857,), (1389690862,), (1389690864,), (1389690865,), (1389690891,), (1389690883,), (1389690885,), (1389690886,), (1389690888,), (1389691725,), (1389691727,), (1389691882,), (1389691884,), (1389691921,), (1389691964,), (1389691965,), (1389691966,), (1389691968,), (1389691970,), (1389692523,), (1389692524,), (1389692526,), (1389692529,), (1389692530,), (1389692780,), (1389692781,), (1389692783,), (1389692785,), (1389692787,), (1389692792,), (1389692805,), (1389692806,), (1389692807,), (1389692808,), (1389692810,), (1389692812,), (1389692821,), (1389692823,), (1389692831,), (1389692844,), (1389692845,), (1389692847,), (1389692851,), (1389693173,), (1389693606,), (1389693617,), (1389693618,), (1389693619,), (1389693806,), (1389693827,), (1389693856,), (1389693857,), (1389693858,), (1389693859,), (1389693861,), (1389693925,), (1389693926,), (1389693927,), (1389693938,), (1389693939,), (1389693940,), (1389693941,), (1389693958,), (1389693962,), (1389693968,), (1389693971,), (1389693990,), (1389693992,), (1389694026,), (1389694028,), (1389694032,), (1389694060,), (1389694437,), (1389694913,), (1389694943,), (1389695156,), (1389695157,), (1389695204,), (1389695208,), (1389695257,), (1389695260,), (1389695261,), (1389695262,), (1389695263,), (1389695249,), (1389695250,), (1389695251,), (1389695253,), (1389695255,), (1389695264,), (1389695265,), (1389695267,), (1389695306,), (1389695307,), (1389695308,), (1389695310,), (1389695313,), (1389695315,), (1389695349,), (1389695350,), (1389695351,), (1389695353,), (1389695363,), (1389695364,), (1389695365,), (1389695367,), (1389695375,), (1389695376,), (1389695377,), (1389695429,), (1389695430,), (1389695432,), (1389695445,), (1389695452,), (1389695457,), (1389695489,), (1389695490,), (1389695491,), (1389695493,), (1389695495,), (1389695498,), (1389695522,), (1389695523,), (1389695524,), (1389695527,), (1389695566,), (1389695567,), (1389695568,), (1389695570,), (1389695573,), (1389695587,), (1389695588,), (1389695589,), (1389695591,), (1389695593,), (1389695595,), (1389695598,), (1389695599,), (1389695600,), (1389695601,), (1389695602,), (1389695607,), (1389695620,), (1389695637,), (1389695639,), (1389695700,), (1389695702,), (1389695704,), (1389695706,), (1389695708,), (1389695710,), (1389695715,), (1389695717,), (1389695719,), (1389695720,), (1389695723,), (1389695739,), (1389695741,), (1389695742,), (1389695813,), (1389695838,), (1389695780,), (1389695782,), (1389695783,), (1389695802,), (1389695811,), (1389695816,), (1389695818,), (1389695821,), (1389695822,), (1389695824,), (1389695826,), (1389695830,), (1389695831,), (1389695832,), (1389695833,), (1389695835,), (1389695843,), (1389695844,), (1389695846,), (1389695847,), (1389695852,), (1389695853,), (1389695855,), (1389695856,), (1389695857,), (1389695858,), (1389695859,), (1389695860,), (1389695868,), (1389695869,), (1389695870,), (1389695872,), (1389695874,), (1389695881,), (1389695899,), (1389695900,), (1389695901,), (1389695903,), (1389695905,), (1389695907,), (1389695911,), (1389695914,), (1389695918,), (1389695919,), (1389695920,), (1389695921,), (1389695924,), (1389695932,), (1389695935,), (1389695938,), (1389695941,), (1389695952,), (1389695963,), (1389695964,), (1389695983,), (1389695984,), (1389695985,), (1389695986,), (1389695988,), (1389695993,), (1389695994,), (1389695996,), (1389695997,), (1389695999,), (1389696009,), (1389696023,), (1389696024,), (1389696026,), (1389696028,), (1389696030,), (1389696032,), (1389696039,), (1389696040,), (1389696042,), (1389696062,), (1389696063,), (1389696066,), (1389696068,), (1389696070,), (1389696072,), (1389696076,), (1389696078,), (1389696080,), (1389696081,), (1389696110,), (1389696114,), (1389696115,), (1389696116,), (1389696117,), (1389696102,), (1389696103,), (1389696104,), (1389696106,), (1389696108,), (1389696118,), (1389696120,), (1389696122,), (1389696124,), (1389696139,), (1389696141,), (1389696143,), (1389696145,), (1389696147,), (1389696153,), (1389696154,), (1389696155,), (1389696166,), (1389696167,), (1389696169,), (1389696170,), (1389696172,), (1389696174,), (1389696178,), (1389696179,), (1389696180,), (1389696181,), (1389696184,), (1389696189,), (1389696201,), (1389696202,), (1389696203,), (1389696205,), (1389696214,), (1389696215,), (1389696216,), (1389696218,), (1389696221,), (1389696243,), (1389696244,), (1389696245,), (1389696248,), (1389696250,), (1389696252,), (1389696258,), (1389696260,), (1389696262,), (1389696265,), (1389696278,), (1389696279,), (1389696280,), (1389696282,), (1389696284,), (1389696286,), (1389696290,), (1389696291,), (1389696292,), (1389696294,), (1389696301,), (1389696303,), (1389696312,), (1389696351,), (1389696352,), (1389696353,), (1389696373,), (1389696375,), (1389696378,), (1389696380,), (1389696534,), (1389697287,), (1389697289,), (1389697290,), (1389697511,), (1389697439,), (1389697441,), (1389697479,), (1389697505,), (1389697506,), (1389698508,), (1389698509,), (1389698512,), (1389698514,), (1389698516,), (1389698518,), (1389698810,), (1389698811,), (1389698850,), (1389698851,), (1389698853,), (1389698868,), (1389698869,), (1389698871,), (1389698872,), (1389698874,), (1389698879,), (1389698880,), (1389698881,), (1389698882,), (1389698884,), (1389698901,), (1389698902,), (1389698904,), (1389698905,), (1389698907,), (1389698909,), (1389698918,), (1389698927,), (1389698935,), (1389698939,), (1389698942,), (1389698949,), (1389698954,), (1389698957,), (1389698960,), (1389698968,), (1389698969,), (1389698970,), (1389698972,), (1389698974,), (1389698981,), (1389698982,), (1389698983,), (1389698984,), (1389699000,), (1389699001,), (1389699002,), (1389699004,), (1389699018,), (1389699019,), (1389699020,), (1389699023,), (1389699026,), (1389699036,), (1389699046,), (1389699047,), (1389699048,), (1389699050,), (1389699076,), (1389699110,), (1389699149,), (1389699142,), (1389699143,), (1389699144,), (1389699145,), (1389699147,), (1389699162,), (1389699163,), (1389699164,), (1389699165,), (1389699195,), (1389699198,), (1389699200,), (1389699203,), (1389699205,), (1389699211,), (1389699212,), (1389699214,), (1389699215,), (1389699218,), (1389699220,), (1389699225,), (1389699226,), (1389699227,), (1389699228,), (1389699230,), (1389699232,), (1389699239,), (1389699240,), (1389699241,), (1389699267,), (1389699274,), (1389699282,), (1389699284,), (1389699286,), (1389699294,), (1389699296,), (1389699315,), (1389699336,), (1389699388,), (1389699389,), (1389699397,), (1389699398,), (1389699399,), (1389699435,), (1389699437,), (1389699438,), (1389699441,), (1389699444,), (1389699483,), (1389699582,), (1389699677,), (1389699469,), (1389699470,), (1389699471,), (1389699472,), (1389699473,), (1389699526,), (1389699527,), (1389699528,), (1389699529,), (1389699530,), (1389699532,), (1389699539,), (1389699541,), (1389699561,), (1389699563,), (1389699564,), (1389699565,), (1389699567,), (1389699570,), (1389699572,), (1389699574,), (1389699576,), (1389699578,), (1389699580,), (1389699581,), (1389699598,), (1389699599,), (1389699600,), (1389699602,), (1389699605,), (1389699607,), (1389699618,), (1389699620,), (1389699621,), (1389699622,), (1389699624,), (1389699625,), (1389699627,), (1389699631,), (1389699637,), (1389699657,), (1389699669,), (1389699684,), (1389699686,), (1389699688,), (1389699691,), (1389699692,), (1389699698,), (1389699699,), (1389699701,), (1389699730,), (1389699731,), (1389699732,), (1389699734,), (1389699737,), (1389699743,), (1389699744,), (1389699747,), (1389699750,), (1389699752,), (1389699760,), (1389699765,), (1389699770,), (1389699790,), (1389699793,), (1389699802,), (1389699804,), (1389699805,), (1389699815,), (1389699817,), (1389699819,), (1389699821,), (1389699827,), (1389699830,), (1389699832,), (1389699834,), (1389699881,), (1389699882,), (1389699884,), (1389699887,), (1389699889,), (1389699873,), (1389699875,), (1389699877,), (1389699879,), (1389699896,), (1389699897,), (1389699900,), (1389699901,), (1389699903,), (1389699904,), (1389699906,), (1389699907,), (1389699909,), (1389699911,), (1389699913,), (1389699914,), (1389699935,), (1389699937,), (1389699944,), (1389699945,), (1389699948,), (1389699952,), (1389699956,), (1389699957,), (1389699958,), (1389699961,), (1389699964,), (1389699966,), (1389699968,), (1389699970,), (1389699973,), (1389699974,), (1389699986,), (1389700005,), (1389700007,), (1389700010,), (1389700012,), (1389700015,), (1389700016,), (1389700017,), (1389700018,), (1389700020,), (1389700024,), (1389700025,), (1389700028,), (1389700030,), (1389700034,), (1389700035,), (1389700037,), (1389700038,), (1389700039,), (1389700040,), (1389700042,), (1389700043,), (1389700051,), (1389700063,), (1389700071,), (1389700075,), (1389700078,), (1389700080,), (1389700084,), (1389700088,), (1389700091,), (1389700095,), (1389700099,), (1389700101,), (1389700104,), (1389700106,), (1389700108,), (1389700109,), (1389700111,), (1389700113,), (1389700118,), (1389700120,), (1389700125,), (1389700132,), (1389700136,), (1389700139,), (1389700141,), (1389700143,), (1389700145,), (1389700147,), (1389700148,), (1389700149,), (1389700151,), (1389700160,), (1389700163,), (1389700168,), (1389700171,), (1389700195,), (1389700418,), (1389700480,), (1389702076,), (1389702079,), (1389702082,), (1389702085,), (1389702345,), (1389702364,), (1389702365,), (1389702369,), (1389702371,), (1389702374,), (1389702377,), (1389702379,), (1389702381,), (1389702393,), (1389702395,), (1389702396,), (1389702404,), (1389702408,), (1389702411,), (1389702417,), (1389702428,), (1389702430,), (1389703393,), (1389703471,), (1389703474,), (1389703477,), (1389703479,), (1389703481,), (1389703487,), (1389703489,), (1389703494,), (1389703499,), (1389703751,), (1389703752,), (1389703822,), (1389703825,), (1389703828,), (1389703838,), (1389703840,), (1389703841,), (1389703845,), (1389703847,), (1389703850,), (1389703853,), (1389703855,), (1389703857,), (1389703866,), (1389703869,), (1389703871,), (1389703873,), (1389703877,), (1389703878,), (1389703891,), (1389703894,), (1389703895,), (1389703926,), (1389703928,), (1389703930,), (1389700360,), (1389700377,), (1389700389,), (1389700408,), (1389700544,), (1389700548,), (1389700551,), (1389700561,), (1389700590,), (1389700720,), (1389700743,), (1389700764,), (1389700768,), (1389700774,), (1389700776,), (1389700777,), (1389700783,), (1389700786,), (1389700790,), (1389700792,), (1389700797,), (1389700919,), (1389700983,), (1389701242,), (1389701329,), (1389701334,), (1389701352,), (1389701370,), (1389701484,), (1389701486,), (1389701489,), (1389701492,), (1389701493,), (1389701495,), (1389701499,), (1389701500,), (1389701501,), (1389701508,), (1389701823,), (1389702055,), (1389702070,), (1389702073,), (1389702317,), (1389702337,), (1389702341,), (1389702343,), (1389702344,), (1389702352,), (1389702356,), (1389702360,), (1389702363,), (1389702387,), (1389702389,), (1389702391,), (1389703886,), (1389703922,), (1389706665,), (1389706903,), (1389706907,), (1389706984,), (1389706986,), (1389707000,), (1389707002,), (1389707004,), (1389707006,), (1389707009,), (1389707019,), (1389707021,), (1389707024,), (1389707026,), (1389707036,), (1389707038,), (1389707040,), (1389707061,), (1389707063,), (1389707065,), (1389707067,), (1389707070,), (1389707080,), (1389707082,), (1389707085,), (1389707090,), (1389707095,), (1389707097,), (1389707108,), (1389707110,), (1389707112,), (1389707115,), (1389707118,), (1389707120,), (1389707124,), (1389707128,), (1389707129,), (1389707131,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16102025': {'nb_upload': 38, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27857927]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1389707131, 1389707129, 1389707128, 1389707124, 1389707120, 1389707118, 1389707115, 1389707112, 1389707110, 1389707108] map_info['map_portfolio_photo'] : {27857927: [1389707131, 1389707129, 1389707128, 1389707124, 1389707120, 1389707118, 1389707115, 1389707112, 1389707110, 1389707108, 1389707097, 1389707095, 1389707090, 1389707085, 1389707082, 1389707080, 1389707070, 1389707067, 1389707065, 1389707063, 1389707061, 1389707040, 1389707038, 1389707036, 1389707026, 1389707024, 1389707021, 1389707019, 1389707009, 1389707006, 1389707004, 1389707002, 1389707000, 1389706986, 1389706984, 1389706907, 1389706903, 1389706665]} final : True mtd_id 4302 list_pids : [1389707131, 1389707129, 1389707128, 1389707124, 1389707120, 1389707118, 1389707115, 1389707112, 1389707110, 1389707108] Looping around the photos to save general results len do output : 1 /27857927Didn'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, '3950184') ('4302', '27857927', '1389707131', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707129', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707128', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707124', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707120', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707118', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707115', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707112', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707110', None, None, None, None, None, '3950184') ('4302', None, None, None, None, None, None, None, '3950184') ('4302', '27857927', '1389707108', None, None, None, None, None, '3950184') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27857927', 'None', None, None, None, None, '3950184'), ('4302', '27857927', '1389707131', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707129', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707128', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707124', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707120', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707118', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707115', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707112', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707110', None, None, None, None, None, '3950184'), ('4302', '27857927', '1389707108', None, None, None, None, None, '3950184')] time used for this insertion : 0.04689359664916992 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.790710210800171 time spend to save output : 0.047112226486206055 total time spend for step 5 : 5.837822437286377 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 (3950184) 2.12user 2.25system 0:16.53elapsed 26%CPU (0avgtext+0avgdata 161700maxresident)k 24inputs+11216outputs (7major+64118minor)pagefaults 0swaps