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 : 1010092 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 (4108099) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4108099) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28856969 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4108099'] with mtr_portfolio_ids : ['28856969'] and first list_photo_ids : [] new path : /proc/1010092/ Name: python3 Umask: 0002 State: R (running) Tgid: 1010092 Ngid: 0 Pid: 1010092 PPid: 1010091 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1010092 NSpid: 1010092 NSpgid: 1009331 NSsid: 1009331 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97812 kB VmRSS: 97812 kB RssAnon: 59900 kB RssFile: 37912 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 540 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: 40 nonvoluntary_ctxt_switches: 177 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1010092', 'Ngid': '0', 'Pid': '1010092', 'PPid': '1010091', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1010092', 'NSpid': '1010092', 'NSpgid': '1009331', 'NSsid': '1009331', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97812 kB', 'VmRSS': '97812 kB', 'RssAnon': '59900 kB', 'RssFile': '37912 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '540 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': '40', 'nonvoluntary_ctxt_switches': '177'} ('datou_batch_current', '1010092', '1106908', '0', '1106884', '865636', '97812', b'', 'marlene', '4108099') 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 (28856969) 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 (4108099 ) ) 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 (28856969) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1396000777, 'portfolio_id': 28856969}, {'photo_id': 1396000774, 'portfolio_id': 28856969}, {'photo_id': 1396000772, 'portfolio_id': 28856969}, {'photo_id': 1396000770, 'portfolio_id': 28856969}, {'photo_id': 1396000752, 'portfolio_id': 28856969}, {'photo_id': 1396000749, 'portfolio_id': 28856969}, {'photo_id': 1396000747, 'portfolio_id': 28856969}, {'photo_id': 1396000746, 'portfolio_id': 28856969}, {'photo_id': 1396000745, 'portfolio_id': 28856969}, {'photo_id': 1396000721, 'portfolio_id': 28856969}, {'photo_id': 1396000718, 'portfolio_id': 28856969}, {'photo_id': 1396000716, 'portfolio_id': 28856969}, {'photo_id': 1396000714, 'portfolio_id': 28856969}, {'photo_id': 1396000712, 'portfolio_id': 28856969}, {'photo_id': 1396000710, 'portfolio_id': 28856969}, {'photo_id': 1396000694, 'portfolio_id': 28856969}, {'photo_id': 1396000692, 'portfolio_id': 28856969}, {'photo_id': 1396000690, 'portfolio_id': 28856969}, {'photo_id': 1396000670, 'portfolio_id': 28856969}, {'photo_id': 1396000663, 'portfolio_id': 28856969}, {'photo_id': 1396000662, 'portfolio_id': 28856969}] map_portfolio_id_photo_id: {28856969: [1396000777, 1396000774, 1396000772, 1396000770, 1396000752, 1396000749, 1396000747, 1396000746, 1396000745, 1396000721, 1396000718, 1396000716, 1396000714, 1396000712, 1396000710, 1396000694, 1396000692, 1396000690, 1396000670, 1396000663, 1396000662]} ##### 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.018793821334838867 #### 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 Tue Nov 25 02:50:30 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 (28856969) 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 : 28856969 get user id for portfolio 28856969 get sub ptf for main ptf 28856969, type 3726 and hashtags ['environnement', 'cartonnette', 'Carton_brun', 'autre_refus', 'Carton_gris', 'Teint_Dans_La_Masse', 'metal', 'kraft', 'plastique', 'mal_croppe', 'papier', 'flou'] 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`=28856969 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','cartonnette','Carton_brun','autre_refus','Carton_gris','Teint_Dans_La_Masse','metal','kraft','plastique','mal_croppe','papier','flou')) 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`=28856969 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','cartonnette','Carton_brun','autre_refus','Carton_gris','Teint_Dans_La_Masse','metal','kraft','plastique','mal_croppe','papier','flou')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 28856969, 'sub_port_id': 28856995, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586729, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 28)}, 'metal': {'main_port_id': 28856969, 'sub_port_id': 28856996, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586730, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 28)}, 'Carton_gris': {'main_port_id': 28856969, 'sub_port_id': 28856997, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586731, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 28)}, 'environnement': {'main_port_id': 28856969, 'sub_port_id': 28856998, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586732, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 28)}, 'autre_refus': {'main_port_id': 28856969, 'sub_port_id': 28856999, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586733, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 28)}, 'kraft': {'main_port_id': 28856969, 'sub_port_id': 28857000, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586734, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 28)}, 'papier': {'main_port_id': 28856969, 'sub_port_id': 28857001, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586735, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 28)}, 'Carton_brun': {'main_port_id': 28856969, 'sub_port_id': 28857002, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586736, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 28)}, 'flou': {'main_port_id': 28856969, 'sub_port_id': 28857003, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586737, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 28)}, 'cartonnette': {'main_port_id': 28856969, 'sub_port_id': 28857004, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586738, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 28)}, 'plastique': {'main_port_id': 28856969, 'sub_port_id': 28857005, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586739, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 28)}, 'mal_croppe': {'main_port_id': 28856969, 'sub_port_id': 28857006, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586740, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28856995 , 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=28856969 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 (28856995) result : ((1396000760,), (1396000761,), (1396000762,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28856969) result : ((1396000662,), (1396000663,), (1396000670,), (1396000690,), (1396000692,), (1396000694,), (1396000710,), (1396000712,), (1396000714,), (1396000716,), (1396000718,), (1396000721,), (1396000745,), (1396000746,), (1396000747,), (1396000749,), (1396000752,), (1396000770,), (1396000772,), (1396000774,), (1396000777,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28856996 , 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=28856969 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 (28856996) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28856969) result : ((1396000662,), (1396000663,), (1396000670,), (1396000690,), (1396000692,), (1396000694,), (1396000710,), (1396000712,), (1396000714,), (1396000716,), (1396000718,), (1396000721,), (1396000745,), (1396000746,), (1396000747,), (1396000749,), (1396000752,), (1396000770,), (1396000772,), (1396000774,), (1396000777,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28856997 , 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=28856969 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 (28856997) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28856969) result : ((1396000662,), (1396000663,), (1396000670,), (1396000690,), (1396000692,), (1396000694,), (1396000710,), (1396000712,), (1396000714,), (1396000716,), (1396000718,), (1396000721,), (1396000745,), (1396000746,), (1396000747,), (1396000749,), (1396000752,), (1396000770,), (1396000772,), (1396000774,), (1396000777,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28856998 , 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=28856969 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 (28856998) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28856969) result : ((1396000662,), (1396000663,), (1396000670,), (1396000690,), (1396000692,), (1396000694,), (1396000710,), (1396000712,), (1396000714,), (1396000716,), (1396000718,), (1396000721,), (1396000745,), (1396000746,), (1396000747,), (1396000749,), (1396000752,), (1396000770,), (1396000772,), (1396000774,), (1396000777,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28856999 , 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=28856969 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 (28856999) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28856969) result : ((1396000662,), (1396000663,), (1396000670,), (1396000690,), (1396000692,), (1396000694,), (1396000710,), (1396000712,), (1396000714,), (1396000716,), (1396000718,), (1396000721,), (1396000745,), (1396000746,), (1396000747,), (1396000749,), (1396000752,), (1396000770,), (1396000772,), (1396000774,), (1396000777,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28857000 , 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=28856969 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 (28857000) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28856969) result : ((1396000662,), (1396000663,), (1396000670,), (1396000690,), (1396000692,), (1396000694,), (1396000710,), (1396000712,), (1396000714,), (1396000716,), (1396000718,), (1396000721,), (1396000745,), (1396000746,), (1396000747,), (1396000749,), (1396000752,), (1396000770,), (1396000772,), (1396000774,), (1396000777,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28857001 , 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=28856969 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 (28857001) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28856969) result : ((1396000662,), (1396000663,), (1396000670,), (1396000690,), (1396000692,), (1396000694,), (1396000710,), (1396000712,), (1396000714,), (1396000716,), (1396000718,), (1396000721,), (1396000745,), (1396000746,), (1396000747,), (1396000749,), (1396000752,), (1396000770,), (1396000772,), (1396000774,), (1396000777,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28857002 , 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=28856969 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 (28857002) result : ((1396000764,), (1396000765,), (1396000766,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28856969) result : ((1396000662,), (1396000663,), (1396000670,), (1396000690,), (1396000692,), (1396000694,), (1396000710,), (1396000712,), (1396000714,), (1396000716,), (1396000718,), (1396000721,), (1396000745,), (1396000746,), (1396000747,), (1396000749,), (1396000752,), (1396000770,), (1396000772,), (1396000774,), (1396000777,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28857003 , 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=28856969 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 (28857003) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28856969) result : ((1396000662,), (1396000663,), (1396000670,), (1396000690,), (1396000692,), (1396000694,), (1396000710,), (1396000712,), (1396000714,), (1396000716,), (1396000718,), (1396000721,), (1396000745,), (1396000746,), (1396000747,), (1396000749,), (1396000752,), (1396000770,), (1396000772,), (1396000774,), (1396000777,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28857004 , 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=28856969 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 (28857004) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28856969) result : ((1396000662,), (1396000663,), (1396000670,), (1396000690,), (1396000692,), (1396000694,), (1396000710,), (1396000712,), (1396000714,), (1396000716,), (1396000718,), (1396000721,), (1396000745,), (1396000746,), (1396000747,), (1396000749,), (1396000752,), (1396000770,), (1396000772,), (1396000774,), (1396000777,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28857005 , 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=28856969 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 (28857005) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28856969) result : ((1396000662,), (1396000663,), (1396000670,), (1396000690,), (1396000692,), (1396000694,), (1396000710,), (1396000712,), (1396000714,), (1396000716,), (1396000718,), (1396000721,), (1396000745,), (1396000746,), (1396000747,), (1396000749,), (1396000752,), (1396000770,), (1396000772,), (1396000774,), (1396000777,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28857006 , 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=28856969 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 (28857006) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28856969) result : ((1396000662,), (1396000663,), (1396000670,), (1396000690,), (1396000692,), (1396000694,), (1396000710,), (1396000712,), (1396000714,), (1396000716,), (1396000718,), (1396000721,), (1396000745,), (1396000746,), (1396000747,), (1396000749,), (1396000752,), (1396000770,), (1396000772,), (1396000774,), (1396000777,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28856969 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','cartonnette','Carton_brun','autre_refus','Carton_gris','Teint_Dans_La_Masse','metal','kraft','plastique','mal_croppe','papier','flou')) 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`=28856969 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','cartonnette','Carton_brun','autre_refus','Carton_gris','Teint_Dans_La_Masse','metal','kraft','plastique','mal_croppe','papier','flou')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 28856969, 'sub_port_id': 28857008, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586741, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 34)}, 'metal': {'main_port_id': 28856969, 'sub_port_id': 28857009, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586742, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 34)}, 'Carton_gris': {'main_port_id': 28856969, 'sub_port_id': 28857010, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586743, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 34)}, 'environnement': {'main_port_id': 28856969, 'sub_port_id': 28857011, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586744, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 34)}, 'autre_refus': {'main_port_id': 28856969, 'sub_port_id': 28857012, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586745, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 34)}, 'kraft': {'main_port_id': 28856969, 'sub_port_id': 28857013, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586746, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 34)}, 'papier': {'main_port_id': 28856969, 'sub_port_id': 28857014, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586747, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 34)}, 'Carton_brun': {'main_port_id': 28856969, 'sub_port_id': 28857015, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586748, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 34)}, 'flou': {'main_port_id': 28856969, 'sub_port_id': 28857016, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586749, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 34)}, 'cartonnette': {'main_port_id': 28856969, 'sub_port_id': 28857017, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586750, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 34)}, 'plastique': {'main_port_id': 28856969, 'sub_port_id': 28857018, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586751, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 47, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 34)}, 'mal_croppe': {'main_port_id': 28856969, 'sub_port_id': 28857019, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19586752, 'last_updated_at': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 2, 49), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 2, 47, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28857008,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28856995 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28857009,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28856996 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28857010,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28856997 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28857011,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28856998 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28857012,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28856999 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28857013,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28857000 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28857014,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28857001 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28857015,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28857002 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28857016,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28857003 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28857017,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28857004 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28857018,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28857005 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28857019,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28857006 lien utilise dans velours : https://marlene.fotonower.com/velours/28857008,28857009,28857010,28857011,28857012,28857013,28857014,28857015,28857016,28857017,28857018,28857019?tags=Teint_Dans_La_Masse,metal,Carton_gris,environnement,autre_refus,kraft,papier,Carton_brun,flou,cartonnette,plastique,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28856969]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1396000777, 1396000774, 1396000772, 1396000770, 1396000752, 1396000749, 1396000747, 1396000746, 1396000745, 1396000721, 1396000718, 1396000716, 1396000714, 1396000712, 1396000710] map_info['map_portfolio_photo'] : {28856969: [1396000777, 1396000774, 1396000772, 1396000770, 1396000752, 1396000749, 1396000747, 1396000746, 1396000745, 1396000721, 1396000718, 1396000716, 1396000714, 1396000712, 1396000710, 1396000694, 1396000692, 1396000690, 1396000670, 1396000663, 1396000662]} final : False mtd_id 4302 list_pids : [1396000777, 1396000774, 1396000772, 1396000770, 1396000752, 1396000749, 1396000747, 1396000746, 1396000745, 1396000721, 1396000718, 1396000716, 1396000714, 1396000712, 1396000710] Looping around the photos to save general results len do output : 1 /28856969. 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, '4108099') ('4302', '28856969', '1396000777', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000774', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000772', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000770', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000752', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000749', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000747', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000746', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000745', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000721', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000718', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000716', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000714', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000712', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000710', None, None, None, None, None, '4108099') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28856969', "{'Teint_Dans_La_Masse': 28856995, 'metal': 28856996, 'Carton_gris': 28856997, 'environnement': 28856998, 'autre_refus': 28856999, 'kraft': 28857000, 'papier': 28857001, 'Carton_brun': 28857002, 'flou': 28857003, 'cartonnette': 28857004, 'plastique': 28857005, 'mal_croppe': 28857006}", None, None, None, None, '4108099'), ('4302', '28856969', '1396000777', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000774', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000772', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000770', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000752', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000749', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000747', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000746', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000745', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000721', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000718', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000716', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000714', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000712', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000710', None, None, None, None, None, '4108099')] time used for this insertion : 0.01936817169189453 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9215350151062012 time spend to save output : 0.019704580307006836 total time spend for step 1 : 1.941239595413208 step2:final Tue Nov 25 02:50:31 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 (28856969) 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 28856969 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1396000670,1396000663,1396000662,1396000694,1396000692,1396000690,1396000721,1396000718,1396000716,1396000714,1396000712,1396000710,1396000752,1396000749,1396000747,1396000746,1396000745,1396000777,1396000774,1396000772,1396000770); 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([28856969]) Inside saveOutput : final : False verbose : True original output for save of step final : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ('0.05450850636700407',), 1396000710: ('0.05450850636700407',)} new output for save of step final : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ('0.05450850636700407',), 1396000710: ('0.05450850636700407',)} [1396000777, 1396000774, 1396000772, 1396000770, 1396000752, 1396000749, 1396000747, 1396000746, 1396000745, 1396000721, 1396000718, 1396000716, 1396000714, 1396000712, 1396000710] map_info['map_portfolio_photo'] : {28856969: [1396000777, 1396000774, 1396000772, 1396000770, 1396000752, 1396000749, 1396000747, 1396000746, 1396000745, 1396000721, 1396000718, 1396000716, 1396000714, 1396000712, 1396000710, 1396000694, 1396000692, 1396000690, 1396000670, 1396000663, 1396000662]} final : False mtd_id 4302 list_pids : [1396000777, 1396000774, 1396000772, 1396000770, 1396000752, 1396000749, 1396000747, 1396000746, 1396000745, 1396000721, 1396000718, 1396000716, 1396000714, 1396000712, 1396000710] Looping around the photos to save general results len do output : 15 /1396000777.Didn't retrieve data . /1396000774.Didn't retrieve data . /1396000772.Didn't retrieve data . /1396000770.Didn't retrieve data . /1396000752.Didn't retrieve data . /1396000749.Didn't retrieve data . /1396000747.Didn't retrieve data . /1396000746.Didn't retrieve data . /1396000745.Didn't retrieve data . /1396000721.Didn't retrieve data . /1396000718.Didn't retrieve data . /1396000716.Didn't retrieve data . /1396000714.Didn't retrieve data . /1396000712.Didn't retrieve data . /1396000710.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, '4108099') ('4302', '28856969', '1396000777', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000774', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000772', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000770', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000752', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000749', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000747', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000746', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000745', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000721', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000718', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000716', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000714', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000712', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000710', None, None, None, None, None, '4108099') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '28856969', '1396000777', '0.05450850636700407', None, None, None, None, '4108099'), ('4302', '28856969', '1396000774', '0.05450850636700407', None, None, None, None, '4108099'), ('4302', '28856969', '1396000772', '0.05450850636700407', None, None, None, None, '4108099'), ('4302', '28856969', '1396000770', '0.05450850636700407', None, None, None, None, '4108099'), ('4302', '28856969', '1396000752', '0.05450850636700407', None, None, None, None, '4108099'), ('4302', '28856969', '1396000749', '0.05450850636700407', None, None, None, None, '4108099'), ('4302', '28856969', '1396000747', '0.05450850636700407', None, None, None, None, '4108099'), ('4302', '28856969', '1396000746', '0.05450850636700407', None, None, None, None, '4108099'), ('4302', '28856969', '1396000745', '0.05450850636700407', None, None, None, None, '4108099'), ('4302', '28856969', '1396000721', '0.05450850636700407', None, None, None, None, '4108099'), ('4302', '28856969', '1396000718', '0.05450850636700407', None, None, None, None, '4108099'), ('4302', '28856969', '1396000716', '0.05450850636700407', None, None, None, None, '4108099'), ('4302', '28856969', '1396000714', '0.05450850636700407', None, None, None, None, '4108099'), ('4302', '28856969', '1396000712', '0.05450850636700407', None, None, None, None, '4108099'), ('4302', '28856969', '1396000710', '0.05450850636700407', None, None, None, None, '4108099')] time used for this insertion : 0.01639246940612793 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08450889587402344 time spend to save output : 0.01714468002319336 total time spend for step 2 : 0.1016535758972168 step3:velours_tree Tue Nov 25 02:50:32 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 : {28856969: [{'Teint_Dans_La_Masse': 28856995, 'metal': 28856996, 'Carton_gris': 28856997, 'environnement': 28856998, 'autre_refus': 28856999, 'kraft': 28857000, 'papier': 28857001, 'Carton_brun': 28857002, 'flou': 28857003, 'cartonnette': 28857004, 'plastique': 28857005, 'mal_croppe': 28857006}]} input_args_next_step : {28856969: ()} output_args : {28856969: [{'Teint_Dans_La_Masse': 28856995, 'metal': 28856996, 'Carton_gris': 28856997, 'environnement': 28856998, 'autre_refus': 28856999, 'kraft': 28857000, 'papier': 28857001, 'Carton_brun': 28857002, 'flou': 28857003, 'cartonnette': 28857004, 'plastique': 28857005, 'mal_croppe': 28857006}]} args : 28856969 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 : ({'Teint_Dans_La_Masse': 28856995, 'metal': 28856996, 'Carton_gris': 28856997, 'environnement': 28856998, 'autre_refus': 28856999, 'kraft': 28857000, 'papier': 28857001, 'Carton_brun': 28857002, 'flou': 28857003, 'cartonnette': 28857004, 'plastique': 28857005, 'mal_croppe': 28857006},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28856969) 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([28856969]) 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.2983074188232422 time spend to save output : 4.601478576660156e-05 total time spend for step 3 : 0.2983534336090088 step4:send_mail_cod Tue Nov 25 02:50:32 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 : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ('0.05450850636700407',), 1396000710: ('0.05450850636700407',)} input_args_next_step : {1396000777: ()} output_args : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ('0.05450850636700407',), 1396000710: ('0.05450850636700407',)} args : 1396000777 depend.output_id : 0 input_args_next_step : {1396000777: ('0.05450850636700407',), 1396000774: ()} output_args : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ('0.05450850636700407',), 1396000710: ('0.05450850636700407',)} args : 1396000774 depend.output_id : 0 input_args_next_step : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ()} output_args : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ('0.05450850636700407',), 1396000710: ('0.05450850636700407',)} args : 1396000772 depend.output_id : 0 input_args_next_step : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ()} output_args : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ('0.05450850636700407',), 1396000710: ('0.05450850636700407',)} args : 1396000770 depend.output_id : 0 input_args_next_step : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ()} output_args : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ('0.05450850636700407',), 1396000710: ('0.05450850636700407',)} args : 1396000752 depend.output_id : 0 input_args_next_step : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ()} output_args : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ('0.05450850636700407',), 1396000710: ('0.05450850636700407',)} args : 1396000749 depend.output_id : 0 input_args_next_step : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ()} output_args : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ('0.05450850636700407',), 1396000710: ('0.05450850636700407',)} args : 1396000747 depend.output_id : 0 input_args_next_step : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ()} output_args : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ('0.05450850636700407',), 1396000710: ('0.05450850636700407',)} args : 1396000746 depend.output_id : 0 input_args_next_step : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ()} output_args : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ('0.05450850636700407',), 1396000710: ('0.05450850636700407',)} args : 1396000745 depend.output_id : 0 input_args_next_step : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ()} output_args : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ('0.05450850636700407',), 1396000710: ('0.05450850636700407',)} args : 1396000721 depend.output_id : 0 input_args_next_step : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ()} output_args : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ('0.05450850636700407',), 1396000710: ('0.05450850636700407',)} args : 1396000718 depend.output_id : 0 input_args_next_step : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ()} output_args : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ('0.05450850636700407',), 1396000710: ('0.05450850636700407',)} args : 1396000716 depend.output_id : 0 input_args_next_step : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ()} output_args : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ('0.05450850636700407',), 1396000710: ('0.05450850636700407',)} args : 1396000714 depend.output_id : 0 input_args_next_step : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ()} output_args : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ('0.05450850636700407',), 1396000710: ('0.05450850636700407',)} args : 1396000712 depend.output_id : 0 input_args_next_step : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ('0.05450850636700407',), 1396000710: ()} output_args : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ('0.05450850636700407',), 1396000710: ('0.05450850636700407',)} args : 1396000710 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 : {28856969: [{'Teint_Dans_La_Masse': 28856995, 'metal': 28856996, 'Carton_gris': 28856997, 'environnement': 28856998, 'autre_refus': 28856999, 'kraft': 28857000, 'papier': 28857001, 'Carton_brun': 28857002, 'flou': 28857003, 'cartonnette': 28857004, 'plastique': 28857005, 'mal_croppe': 28857006}]} input_args_next_step : {1396000777: ('0.05450850636700407',), 1396000774: ('0.05450850636700407',), 1396000772: ('0.05450850636700407',), 1396000770: ('0.05450850636700407',), 1396000752: ('0.05450850636700407',), 1396000749: ('0.05450850636700407',), 1396000747: ('0.05450850636700407',), 1396000746: ('0.05450850636700407',), 1396000745: ('0.05450850636700407',), 1396000721: ('0.05450850636700407',), 1396000718: ('0.05450850636700407',), 1396000716: ('0.05450850636700407',), 1396000714: ('0.05450850636700407',), 1396000712: ('0.05450850636700407',), 1396000710: ('0.05450850636700407',), 28856969: ()} output_args : {28856969: [{'Teint_Dans_La_Masse': 28856995, 'metal': 28856996, 'Carton_gris': 28856997, 'environnement': 28856998, 'autre_refus': 28856999, 'kraft': 28857000, 'papier': 28857001, 'Carton_brun': 28857002, 'flou': 28857003, 'cartonnette': 28857004, 'plastique': 28857005, 'mal_croppe': 28857006}]} args : 28856969 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 :16, first value : ('0.05450850636700407',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28856969) 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 (1396000777,1396000774,1396000772,1396000770,1396000752,1396000749,1396000747,1396000746,1396000745,1396000721,1396000718,1396000716,1396000714,1396000712,1396000710) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1396000710 begin to download photo : 1396000718 begin to download photo : 1396000747 begin to download photo : 1396000772 download finish for photo 1396000747 begin to download photo : 1396000749 download finish for photo 1396000772 begin to download photo : 1396000774 download finish for photo 1396000710 begin to download photo : 1396000712 download finish for photo 1396000718 begin to download photo : 1396000721 download finish for photo 1396000749 begin to download photo : 1396000752 download finish for photo 1396000774 begin to download photo : 1396000777 download finish for photo 1396000712 begin to download photo : 1396000714 download finish for photo 1396000721 begin to download photo : 1396000745 download finish for photo 1396000752 begin to download photo : 1396000770 download finish for photo 1396000714 begin to download photo : 1396000716 download finish for photo 1396000777 download finish for photo 1396000745 begin to download photo : 1396000746 download finish for photo 1396000770 download finish for photo 1396000716 download finish for photo 1396000746 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette288569961764035433/ imagette288569991764035433/ imagette288570001764035433/ imagette288570031764035433/ imagette288570041764035433/ imagette288570051764035433/ imagette288570061764035433/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P28856969_25-11-2025_02_50_33.pdf 28856996 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=28856996 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288569961764035433 28856999 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=28856999 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288569991764035433 28857000 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=28857000 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288570001764035433 28857003 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=28857003 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288570031764035433 28857004 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=28857004 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288570041764035433 28857005 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=28857005 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288570051764035433 28857006 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=28857006 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288570061764035433 28856995 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=28856995 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396000760: '1764035347_4188645_1396000670_66a355598aab207d705e8724b45e4967_rle_crop_4044465870_0.png', 1396000761: '1764035347_4188645_1396000663_46bb25ddfb3b53d9095333c0aa9fa158_rle_crop_4044465889_0.png', 1396000762: '1764035347_4188645_1396000663_46bb25ddfb3b53d9095333c0aa9fa158_rle_crop_4044465887_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/58507d55bf4cd252d6ab5d835d87b44d_75832777.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/b82a9bbb5dceeef8acc3de36e13d7eda_33144903.png change filename to text .imagette288569951764035433/ imagette288569951764035433/1764035347_4188645_1396000663_46bb25ddfb3b53d9095333c0aa9fa158_rle_crop_4044465887_0.png.png imagette288569951764035433/1764035347_4188645_1396000670_66a355598aab207d705e8724b45e4967_rle_crop_4044465870_0.png.png imagette288569951764035433/1764035347_4188645_1396000663_46bb25ddfb3b53d9095333c0aa9fa158_rle_crop_4044465889_0.png.png imagette288569971764035433/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/77282ed50e127ea6857649c3d1909535_56089138.png imagette288569951764035433 28856997 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=28856997 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288569971764035433 28857002 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=28857002 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396000764: '1764035347_4188645_1396000670_66a355598aab207d705e8724b45e4967_rle_crop_4044465872_0.png', 1396000765: '1764035347_4188645_1396000663_46bb25ddfb3b53d9095333c0aa9fa158_rle_crop_4044465891_0.png', 1396000766: '1764035347_4188645_1396000663_46bb25ddfb3b53d9095333c0aa9fa158_rle_crop_4044465890_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/de89268a93f33e06f1f9bd4e8dfc1599_97342688.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/362330a327e4bfc154a1cb7a1b409f0d_55498668.png change filename to text .imagette288570021764035433/ imagette288570021764035433/1764035347_4188645_1396000663_46bb25ddfb3b53d9095333c0aa9fa158_rle_crop_4044465890_0.png.png imagette288570021764035433/1764035347_4188645_1396000663_46bb25ddfb3b53d9095333c0aa9fa158_rle_crop_4044465891_0.png.png imagette288570021764035433/1764035347_4188645_1396000670_66a355598aab207d705e8724b45e4967_rle_crop_4044465872_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/38923a8b1416da36055686536b82bfbb_39910848.png imagette288570021764035433 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28856969 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28857008,28857009,28857010,28857011,28857012,28857013,28857014,28857015,28857016,28857017,28857018,28857019?tags=Teint_Dans_La_Masse,metal,Carton_gris,environnement,autre_refus,kraft,papier,Carton_brun,flou,cartonnette,plastique,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1396000777] : ('0.05450850636700407',) no score found for photo 1396000777 We are sending mail with results at report@fotonower.com args[1396000774] : ('0.05450850636700407',) no score found for photo 1396000774 We are sending mail with results at report@fotonower.com args[1396000772] : ('0.05450850636700407',) no score found for photo 1396000772 We are sending mail with results at report@fotonower.com args[1396000770] : ('0.05450850636700407',) no score found for photo 1396000770 We are sending mail with results at report@fotonower.com args[1396000752] : ('0.05450850636700407',) no score found for photo 1396000752 We are sending mail with results at report@fotonower.com args[1396000749] : ('0.05450850636700407',) no score found for photo 1396000749 We are sending mail with results at report@fotonower.com args[1396000747] : ('0.05450850636700407',) no score found for photo 1396000747 We are sending mail with results at report@fotonower.com args[1396000746] : ('0.05450850636700407',) no score found for photo 1396000746 We are sending mail with results at report@fotonower.com args[1396000745] : ('0.05450850636700407',) no score found for photo 1396000745 We are sending mail with results at report@fotonower.com args[1396000721] : ('0.05450850636700407',) no score found for photo 1396000721 We are sending mail with results at report@fotonower.com args[1396000718] : ('0.05450850636700407',) no score found for photo 1396000718 We are sending mail with results at report@fotonower.com args[1396000716] : ('0.05450850636700407',) no score found for photo 1396000716 We are sending mail with results at report@fotonower.com args[1396000714] : ('0.05450850636700407',) no score found for photo 1396000714 We are sending mail with results at report@fotonower.com args[1396000712] : ('0.05450850636700407',) no score found for photo 1396000712 We are sending mail with results at report@fotonower.com args[1396000710] : ('0.05450850636700407',) no score found for photo 1396000710 We are sending mail with results at report@fotonower.com refus_total : 0.05450850636700407 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=28856969 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_P28856969_25-11-2025_02_50_33.pdf results_Auto_P28856969_25-11-2025_02_50_33.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28856969_25-11-2025_02_50_33.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','28856969','results_Auto_P28856969_25-11-2025_02_50_33.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28856969_25-11-2025_02_50_33.pdf','pdf','','0.14','0.05450850636700407') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28856969]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1396000777, 1396000774, 1396000772, 1396000770, 1396000752, 1396000749, 1396000747, 1396000746, 1396000745, 1396000721, 1396000718, 1396000716, 1396000714, 1396000712, 1396000710] map_info['map_portfolio_photo'] : {28856969: [1396000777, 1396000774, 1396000772, 1396000770, 1396000752, 1396000749, 1396000747, 1396000746, 1396000745, 1396000721, 1396000718, 1396000716, 1396000714, 1396000712, 1396000710, 1396000694, 1396000692, 1396000690, 1396000670, 1396000663, 1396000662]} final : False mtd_id 4302 list_pids : [1396000777, 1396000774, 1396000772, 1396000770, 1396000752, 1396000749, 1396000747, 1396000746, 1396000745, 1396000721, 1396000718, 1396000716, 1396000714, 1396000712, 1396000710] 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, '4108099') ('4302', '28856969', '1396000777', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000774', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000772', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000770', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000752', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000749', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000747', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000746', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000745', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000721', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000718', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000716', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000714', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000712', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000710', None, None, None, None, None, '4108099') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '28856969', '1396000777', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000774', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000772', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000770', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000752', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000749', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000747', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000746', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000745', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000721', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000718', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000716', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000714', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000712', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000710', None, None, None, None, None, '4108099')] time used for this insertion : 0.01853179931640625 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.246859550476074 time spend to save output : 0.018857955932617188 total time spend for step 4 : 2.2657175064086914 step5:split_time_score Tue Nov 25 02:50:34 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 : ['28856969'] 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 : [('28856969',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28856969) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1396000772: {'path': 'temp/1764035432_1010092_1396000772_d73fbb324a8a9ae9aeeede15fa15d382.jpg', 'extension': 'jpg'}, 1396000774: {'path': 'temp/1764035432_1010092_1396000774_10b15e2ec730fb37bf1b5499586db804.jpg', 'extension': 'jpg'}, 1396000777: {'path': 'temp/1764035432_1010092_1396000777_c5794dbd4db0023c91072d1ea7c8a0c3.jpg', 'extension': 'jpg'}, 1396000747: {'path': 'temp/1764035432_1010092_1396000747_4c00a7b9ea4e07cfb5eb5f032bfa3233.jpg', 'extension': 'jpg'}, 1396000749: {'path': 'temp/1764035432_1010092_1396000749_06246ed43644ca7d04568d8ccb01fd83.jpg', 'extension': 'jpg'}, 1396000752: {'path': 'temp/1764035432_1010092_1396000752_7b1055c44631a84b1f02f339de47a634.jpg', 'extension': 'jpg'}, 1396000770: {'path': 'temp/1764035432_1010092_1396000770_f324291b6e0d0acf76b739481b81b19c.jpg', 'extension': 'jpg'}, 1396000710: {'path': 'temp/1764035432_1010092_1396000710_1cde9276cb05b511bf564a6c0cbc0aaa.jpg', 'extension': 'jpg'}, 1396000712: {'path': 'temp/1764035432_1010092_1396000712_79d4061722e816801c81411b2922523b.jpg', 'extension': 'jpg'}, 1396000714: {'path': 'temp/1764035432_1010092_1396000714_9cb228aaff794bdc5487b75523e4fc9a.jpg', 'extension': 'jpg'}, 1396000716: {'path': 'temp/1764035432_1010092_1396000716_f6b60cc6526841b144271f0f98ea19e7.jpg', 'extension': 'jpg'}, 1396000718: {'path': 'temp/1764035432_1010092_1396000718_0643e23968e6622203564fd451b4ce89.jpg', 'extension': 'jpg'}, 1396000721: {'path': 'temp/1764035432_1010092_1396000721_a6a63a514066b5a05e1965b63eac01ff.jpg', 'extension': 'jpg'}, 1396000745: {'path': 'temp/1764035432_1010092_1396000745_773cbcd486892f8b78338ba2f351d6c4.jpg', 'extension': 'jpg'}, 1396000746: {'path': 'temp/1764035432_1010092_1396000746_4c11a9b27e2198d215fbc47ff258846e.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 = 28856969; (('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 = 28856969 group by h (('02', 21),) 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=28856969 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 (28856969) 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 (28856969) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25112025 28856969 Nombre de photos uploadées : 21 / 23040 (0%) 25112025 28856969 Nombre de photos taguées (types de déchets): 0 / 21 (0%) 25112025 28856969 Nombre de photos taguées (volume) : 0 / 21 (0%) [{'photo_id': 1396000670, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/66a355598aab207d705e8724b45e4967.jpg', 'username': None, 'uploaded_at': 1764035168, 'text': 'image_25112025_02_45_04_10149.jpg'}, {'photo_id': 1396000663, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/46bb25ddfb3b53d9095333c0aa9fa158.jpg', 'username': None, 'uploaded_at': 1764035168, 'text': 'image_25112025_02_45_14_9124.jpg'}, {'photo_id': 1396000662, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/1217438761aebaaaf044e9016fcd98ad.jpg', 'username': None, 'uploaded_at': 1764035168, 'text': 'image_25112025_02_45_24_10141.jpg'}, {'photo_id': 1396000694, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/47e060173774d31bf6bea535d1008e06.jpg', 'username': None, 'uploaded_at': 1764035227, 'text': 'image_25112025_02_45_54_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 2.0265579223632812e-05 ????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0010876655578613281 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28856969, '2025-11-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-25' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2638238,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.25014185905456543 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= 2638238 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2638238, 'dashboard_run_id': 2645669, 'mtr_portfolio_id': 28852271, 'dashboard_result_id': 17665614, '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_P28852271_25-11-2025_00_18_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28852280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28852281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28852282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28852283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28852284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28852285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28852286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28852287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28852288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28852289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28852290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28852291, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2645669, 'mtr_portfolio_id': 28852822, 'dashboard_result_id': 17665615, '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_P28852822_25-11-2025_00_37_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28852827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28852828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28852829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28852830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28852831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28852832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28852833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28852834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28852835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28852836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28852837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28852838, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2645669, 'mtr_portfolio_id': 28853228, 'dashboard_result_id': 17665616, '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_P28853228_25-11-2025_00_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28853234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28853235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28853236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28853237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28853238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28853239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28853240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28853241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28853242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28853243, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28853244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28853245, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2645669, 'mtr_portfolio_id': 28853609, 'dashboard_result_id': 17665617, '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_P28853609_25-11-2025_01_02_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28853618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28853619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28853620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28853621, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28853622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28853623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28853624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28853625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28853626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28853627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28853628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28853629, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2645669, 'mtr_portfolio_id': 28854780, 'dashboard_result_id': 17665618, '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_P28854780_25-11-2025_01_47_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28854785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28854786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28854787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28854788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28854789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28854790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28854791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28854792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28854793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28854794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28854795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28854796, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2645669, 'mtr_portfolio_id': 28855135, 'dashboard_result_id': 17665619, '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_P28855135_25-11-2025_01_59_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28855144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28855145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28855146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28855147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28855148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28855149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28855151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28855152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28855153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28855154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28855155, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28855156, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2645669, 'mtr_portfolio_id': 28855515, 'dashboard_result_id': 17665620, '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_P28855515_25-11-2025_02_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28855520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28855521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28855522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28855523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28855524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28855525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28855526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28855527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28855528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28855529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28855530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28855531, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2645669, 'mtr_portfolio_id': 28856051, 'dashboard_result_id': 17665621, '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_P28856051_25-11-2025_02_32_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28856076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28856077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28856078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28856079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28856080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28856081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28856082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28856083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28856084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28856085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28856086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28856087, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2645669, 'mtr_portfolio_id': 28856612, 'dashboard_result_id': 17665622, '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_P28856612_25-11-2025_02_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28856613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28856614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28856615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28856616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28856617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28856618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28856619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28856620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28856621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28856622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28856623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28856624, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2645669, 'mtr_portfolio_id': 28856969, 'dashboard_result_id': 17665623, '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_P28856969_25-11-2025_02_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28856995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28856996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28856997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28856998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28856999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28857000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28857001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28857002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28857003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28857004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28857005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28857006, '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 = 28852271 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': 4107309, 'mtr_portfolio_id': 28852271, 'created_at': datetime.datetime(2025, 11, 25, 0, 18, 56), 'result': '0.052829884978118274', 'result_long': None, 'result_double': None}] Qualite : 0.052829884978118274 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28852271 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28852271_25-11-2025_00_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28852271 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_P28852271_25-11-2025_00_18_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28852280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28852281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28852282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28852283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28852284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28852285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28852286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28852287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28852288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28852289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28852290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28852291, 'pht': 3726}}" where mtr_portfolio_id = 28852271 and dashboard_run_id = 2645669 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`=28852271 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17665614, 0.052829884978118274, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28852271_25-11-2025_00_18_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28852280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28852281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28852282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28852283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28852284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28852285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28852286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28852287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28852288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28852289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28852290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28852291, '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 = 28852822 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': 4107352, 'mtr_portfolio_id': 28852822, 'created_at': datetime.datetime(2025, 11, 25, 0, 36, 59), 'result': '0.050277136503886134', 'result_long': None, 'result_double': None}] Qualite : 0.050277136503886134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28852822 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28852822_25-11-2025_00_37_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28852822 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_P28852822_25-11-2025_00_37_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28852827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28852828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28852829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28852830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28852831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28852832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28852833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28852834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28852835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28852836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28852837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28852838, 'pht': 3726}}" where mtr_portfolio_id = 28852822 and dashboard_run_id = 2645669 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`=28852822 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17665615, 0.050277136503886134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28852822_25-11-2025_00_37_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28852827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28852828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28852829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28852830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28852831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28852832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28852833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28852834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28852835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28852836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28852837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28852838, '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 = 28853228 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': 4107391, 'mtr_portfolio_id': 28853228, 'created_at': datetime.datetime(2025, 11, 25, 0, 47), 'result': '0.04629312725946812', 'result_long': None, 'result_double': None}] Qualite : 0.04629312725946812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28853228 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28853228_25-11-2025_00_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28853228 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_P28853228_25-11-2025_00_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28853234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28853235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28853236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28853237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28853238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28853239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28853240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28853241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28853242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28853243, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28853244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28853245, 'pht': 3726}}" where mtr_portfolio_id = 28853228 and dashboard_run_id = 2645669 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`=28853228 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17665616, 0.04629312725946812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28853228_25-11-2025_00_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28853234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28853235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28853236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28853237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28853238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28853239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28853240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28853241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28853242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28853243, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28853244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28853245, '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 = 28853609 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': 4107445, 'mtr_portfolio_id': 28853609, 'created_at': datetime.datetime(2025, 11, 25, 1, 2, 58), 'result': '0.06889379943972387', 'result_long': None, 'result_double': None}] Qualite : 0.06889379943972387 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28853609 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28853609_25-11-2025_01_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28853609 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_P28853609_25-11-2025_01_02_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28853618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28853619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28853620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28853621, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28853622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28853623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28853624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28853625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28853626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28853627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28853628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28853629, 'pht': 3726}}" where mtr_portfolio_id = 28853609 and dashboard_run_id = 2645669 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`=28853609 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17665617, 0.06889379943972387, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28853609_25-11-2025_01_02_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28853618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28853619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28853620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28853621, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28853622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28853623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28853624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28853625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28853626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28853627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28853628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28853629, '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 = 28854780 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': 4107667, 'mtr_portfolio_id': 28854780, 'created_at': datetime.datetime(2025, 11, 25, 1, 47), 'result': '0.07321344474055182', 'result_long': None, 'result_double': None}] Qualite : 0.07321344474055182 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28854780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28854780_25-11-2025_01_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28854780 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_P28854780_25-11-2025_01_47_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28854785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28854786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28854787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28854788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28854789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28854790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28854791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28854792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28854793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28854794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28854795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28854796, 'pht': 3726}}" where mtr_portfolio_id = 28854780 and dashboard_run_id = 2645669 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`=28854780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17665618, 0.07321344474055182, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28854780_25-11-2025_01_47_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28854785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28854786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28854787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28854788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28854789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28854790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28854791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28854792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28854793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28854794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28854795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28854796, '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 = 28855135 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': 4107722, 'mtr_portfolio_id': 28855135, 'created_at': datetime.datetime(2025, 11, 25, 2, 2, 59), 'result': '0.04671919249018938', 'result_long': None, 'result_double': None}] Qualite : 0.04671919249018938 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28855135 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28855135_25-11-2025_02_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28855135 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_P28855135_25-11-2025_02_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28855144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28855145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28855146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28855147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28855148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28855149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28855151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28855152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28855153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28855154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28855155, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28855156, 'pht': 3726}}" where mtr_portfolio_id = 28855135 and dashboard_run_id = 2645669 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`=28855135 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17665619, 0.04671919249018938, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28855135_25-11-2025_02_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28855144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28855145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28855146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28855147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28855148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28855149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28855151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28855152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28855153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28855154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28855155, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28855156, '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 = 28855515 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': 4107858, 'mtr_portfolio_id': 28855515, 'created_at': datetime.datetime(2025, 11, 25, 2, 16, 58), 'result': '0.062058169839097115', 'result_long': None, 'result_double': None}] Qualite : 0.062058169839097115 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28855515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28855515_25-11-2025_02_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28855515 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_P28855515_25-11-2025_02_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28855520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28855521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28855522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28855523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28855524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28855525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28855526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28855527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28855528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28855529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28855530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28855531, 'pht': 3726}}" where mtr_portfolio_id = 28855515 and dashboard_run_id = 2645669 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`=28855515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17665620, 0.062058169839097115, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28855515_25-11-2025_02_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28855520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28855521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28855522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28855523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28855524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28855525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28855526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28855527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28855528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28855529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28855530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28855531, '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 = 28856051 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': 4107914, 'mtr_portfolio_id': 28856051, 'created_at': datetime.datetime(2025, 11, 25, 2, 32, 57), 'result': '0.025691592978774644', 'result_long': None, 'result_double': None}] Qualite : 0.025691592978774644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28856051 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28856051_25-11-2025_02_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28856051 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_P28856051_25-11-2025_02_32_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28856076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28856077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28856078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28856079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28856080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28856081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28856082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28856083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28856084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28856085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28856086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28856087, 'pht': 3726}}" where mtr_portfolio_id = 28856051 and dashboard_run_id = 2645669 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`=28856051 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17665621, 0.025691592978774644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28856051_25-11-2025_02_32_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28856076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28856077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28856078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28856079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28856080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28856081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28856082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28856083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28856084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28856085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28856086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28856087, '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 = 28856612 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': 4108058, 'mtr_portfolio_id': 28856612, 'created_at': datetime.datetime(2025, 11, 25, 2, 46, 59), 'result': '0.08509524127273435', 'result_long': None, 'result_double': None}] Qualite : 0.08509524127273435 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28856612 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28856612_25-11-2025_02_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28856612 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_P28856612_25-11-2025_02_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28856613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28856614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28856615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28856616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28856617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28856618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28856619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28856620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28856621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28856622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28856623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28856624, 'pht': 3726}}" where mtr_portfolio_id = 28856612 and dashboard_run_id = 2645669 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`=28856612 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17665622, 0.08509524127273435, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28856612_25-11-2025_02_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28856613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28856614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28856615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28856616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28856617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28856618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28856619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28856620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28856621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28856622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28856623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28856624, '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 = 28856969 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': 4108099, 'mtr_portfolio_id': 28856969, 'created_at': datetime.datetime(2025, 11, 25, 2, 50, 32), 'result': '0.05450850636700407', 'result_long': None, 'result_double': None}] Qualite : 0.05450850636700407 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28856969 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28856969_25-11-2025_02_50_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28856969 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_P28856969_25-11-2025_02_50_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28856995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28856996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28856997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28856998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28856999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28857000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28857001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28857002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28857003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28857004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28857005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28857006, 'pht': 3726}}" where mtr_portfolio_id = 28856969 and dashboard_run_id = 2645669 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`=28856969 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17665623, 0.05450850636700407, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28856969_25-11-2025_02_50_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28856995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28856996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28856997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28856998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28856999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28857000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28857001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28857002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28857003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28857004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28857005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28857006, '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 (28852271,28852822,28853228,28853609,28854780,28855135,28855515,28856051,28856612,28856969) result : ((1395986523,), (1395986530,), (1395986538,), (1395986562,), (1395986615,), (1395986617,), (1395986634,), (1395986650,), (1395986669,), (1395986712,), (1395987195,), (1395987196,), (1395987197,), (1395987203,), (1395987237,), (1395987363,), (1395987365,), (1395987367,), (1395987370,), (1395987387,), (1395987388,), (1395987391,), (1395987393,), (1395987397,), (1395987400,), (1395987416,), (1395987429,), (1395987440,), (1395987442,), (1395987444,), (1395987448,), (1395987524,), (1395987525,), (1395987526,), (1395987657,), (1395987695,), (1395987733,), (1395987743,), (1395987746,), (1395987827,), (1395987830,), (1395987832,), (1395987835,), (1395987838,), (1395987847,), (1395987871,), (1395987873,), (1395987877,), (1395987882,), (1395987886,), (1395987889,), (1395987892,), (1395987893,), (1395987895,), (1395987897,), (1395987899,), (1395987929,), (1395987930,), (1395987933,), (1395987935,), (1395987940,), (1395987941,), (1395987943,), (1395987945,), (1395988007,), (1395988009,), (1395988011,), (1395988014,), (1395988015,), (1395988016,), (1395988020,), (1395988021,), (1395988024,), (1395988028,), (1395988032,), (1395988035,), (1395988053,), (1395988054,), (1395988055,), (1395988057,), (1395988063,), (1395988085,), (1395988089,), (1395988093,), (1395988098,), (1395988150,), (1395988135,), (1395988141,), (1395988142,), (1395988144,), (1395988148,), (1395988188,), (1395988189,), (1395988191,), (1395988193,), (1395988197,), (1395988432,), (1395988433,), (1395988436,), (1395988442,), (1395988587,), (1395988589,), (1395988591,), (1395989172,), (1395989237,), (1395989279,), (1395989320,), (1395989375,), (1395989434,), (1395989571,), (1395989572,), (1395989573,), (1395989575,), (1395989578,), (1395989833,), (1395989834,), (1395989859,), (1395989932,), (1395989933,), (1395989934,), (1395989961,), (1395989963,), (1395989965,), (1395989968,), (1395989972,), (1395989984,), (1395989987,), (1395989991,), (1395989996,), (1395990011,), (1395990013,), (1395990015,), (1395990018,), (1395990021,), (1395990033,), (1395990035,), (1395990037,), (1395990039,), (1395990069,), (1395990070,), (1395990071,), (1395990073,), (1395990124,), (1395990125,), (1395990126,), (1395990363,), (1395990366,), (1395990399,), (1395990406,), (1395990410,), (1395990415,), (1395990443,), (1395990453,), (1395990455,), (1395990456,), (1395990458,), (1395990460,), (1395990461,), (1395990489,), (1395990490,), (1395990492,), (1395990555,), (1395990562,), (1395990563,), (1395990564,), (1395990565,), (1395990432,), (1395990434,), (1395990435,), (1395990438,), (1395990441,), (1395990484,), (1395990486,), (1395990488,), (1395990505,), (1395990509,), (1395990518,), (1395990526,), (1395990528,), (1395990529,), (1395990533,), (1395990534,), (1395990539,), (1395990548,), (1395990552,), (1395990569,), (1395990573,), (1395990577,), (1395990587,), (1395990591,), (1395990615,), (1395990616,), (1395990628,), (1395990652,), (1395990683,), (1395990767,), (1395990769,), (1395990772,), (1395990777,), (1395990798,), (1395990800,), (1395990802,), (1395990805,), (1395990809,), (1395990823,), (1395990824,), (1395990825,), (1395990827,), (1395990870,), (1395990872,), (1395990875,), (1395990878,), (1395990881,), (1395990885,), (1395990892,), (1395990895,), (1395990898,), (1395990901,), (1395990907,), (1395990909,), (1395990912,), (1395990939,), (1395990941,), (1395990943,), (1395990946,), (1395990950,), (1395990953,), (1395990966,), (1395990967,), (1395990968,), (1395990970,), (1395990982,), (1395991015,), (1395991017,), (1395991019,), (1395991029,), (1395991066,), (1395991267,), (1395991277,), (1395991296,), (1395991300,), (1395991305,), (1395991401,), (1395991381,), (1395991383,), (1395991385,), (1395991454,), (1395991455,), (1395991456,), (1395991458,), (1395991461,), (1395991487,), (1395991489,), (1395991491,), (1395991494,), (1395991516,), (1395991523,), (1395991527,), (1395991529,), (1395991533,), (1395991535,), (1395991549,), (1395991551,), (1395991553,), (1395991556,), (1395991559,), (1395991560,), (1395991566,), (1395991568,), (1395991570,), (1395991572,), (1395991574,), (1395991580,), (1395991588,), (1395991592,), (1395991596,), (1395991619,), (1395991621,), (1395991625,), (1395991633,), (1395991684,), (1395991746,), (1395991748,), (1395991750,), (1395991769,), (1395991771,), (1395991773,), (1395991776,), (1395991793,), (1395991795,), (1395991798,), (1395991803,), (1395991808,), (1395991854,), (1395991858,), (1395991862,), (1395991867,), (1395991870,), (1395991881,), (1395991885,), (1395991890,), (1395991918,), (1395993393,), (1395993394,), (1395993396,), (1395993399,), (1395993403,), (1395993407,), (1395993429,), (1395993431,), (1395993433,), (1395993455,), (1395993456,), (1395993489,), (1395993491,), (1395993498,), (1395993507,), (1395993518,), (1395993538,), (1395993539,), (1395993540,), (1395993542,), (1395993569,), (1395993570,), (1395993571,), (1395993610,), (1395993611,), (1395993612,), (1395993614,), (1395993618,), (1395993622,), (1395993648,), (1395993650,), (1395993653,), (1395993657,), (1395993661,), (1395993664,), (1395993672,), (1395993674,), (1395993675,), (1395993676,), (1395993677,), (1395993678,), (1395993681,), (1395993684,), (1395993688,), (1395993691,), (1395993705,), (1395993707,), (1395993709,), (1395993712,), (1395993738,), (1395993739,), (1395993740,), (1395993742,), (1395993763,), (1395993768,), (1395993771,), (1395993773,), (1395993777,), (1395993789,), (1395993791,), (1395993794,), (1395993797,), (1395993839,), (1395993828,), (1395993830,), (1395993832,), (1395993835,), (1395993852,), (1395993854,), (1395993856,), (1395993859,), (1395993862,), (1395993875,), (1395993877,), (1395993879,), (1395993901,), (1395993903,), (1395993905,), (1395993924,), (1395993928,), (1395993931,), (1395993935,), (1395993939,), (1395993942,), (1395993949,), (1395993951,), (1395993953,), (1395993956,), (1395993960,), (1395993964,), (1395993987,), (1395993989,), (1395993992,), (1395994010,), (1395994011,), (1395994012,), (1395994014,), (1395994018,), (1395994020,), (1395994031,), (1395994033,), (1395994035,), (1395994064,), (1395994066,), (1395994068,), (1395994091,), (1395994093,), (1395994113,), (1395994115,), (1395994116,), (1395994118,), (1395994122,), (1395994145,), (1395994147,), (1395994149,), (1395994172,), (1395994174,), (1395994177,), (1395994190,), (1395994193,), (1395994296,), (1395994262,), (1395994837,), (1395994868,), (1395994900,), (1395994933,), (1395994981,), (1395995453,), (1395995484,), (1395995514,), (1395995545,), (1395995579,), (1395995719,), (1395995721,), (1395995752,), (1395995783,), (1395995818,), (1395996016,), (1395996029,), (1395996030,), (1395996033,), (1395996070,), (1395996314,), (1395996346,), (1395996378,), (1395996413,), (1395996451,), (1395996812,), (1395996844,), (1395996874,), (1395996907,), (1395997267,), (1395997278,), (1395997311,), (1395997343,), (1395997381,), (1395997417,), (1395998050,), (1395998145,), (1395998209,), (1395998279,), (1395998740,), (1395998741,), (1395998744,), (1395998775,), (1395999130,), (1395999165,), (1395999196,), (1395999224,), (1395999228,), (1395999230,), (1395999296,), (1395999298,), (1395999300,), (1395999308,), (1395999316,), (1395999348,), (1395999349,), (1395999392,), (1395999393,), (1395999394,), (1395999396,), (1395999400,), (1395999413,), (1395999415,), (1395999418,), (1395999421,), (1395999423,), (1395999427,), (1395999462,), (1395999458,), (1395999460,), (1395999511,), (1395999542,), (1395999544,), (1395999548,), (1395999555,), (1395999559,), (1395999561,), (1395999571,), (1395999574,), (1395999578,), (1395999582,), (1395999585,), (1395999586,), (1395999590,), (1395999601,), (1395999609,), (1395999610,), (1395999611,), (1395999629,), (1395999642,), (1395999646,), (1395999650,), (1395999653,), (1395999664,), (1395999666,), (1395999668,), (1395999671,), (1395999675,), (1395999707,), (1395999708,), (1395999709,), (1395999711,), (1395999714,), (1395999717,), (1395999730,), (1395999732,), (1395999734,), (1395999737,), (1395999740,), (1395999744,), (1395999750,), (1395999774,), (1395999775,), (1395999777,), (1395999780,), (1395999786,), (1395999805,), (1395999806,), (1395999807,), (1395999809,), (1395999845,), (1395999847,), (1395999849,), (1395999856,), (1395999860,), (1395999875,), (1395999877,), (1395999880,), (1395999898,), (1395999900,), (1395999902,), (1395999905,), (1395999909,), (1395999937,), (1396000043,), (1396000045,), (1396000077,), (1396000079,), (1396000081,), (1396000098,), (1396000102,), (1396000154,), (1396000156,), (1396000403,), (1396000411,), (1396000420,), (1396000426,), (1396000429,), (1396000603,), (1396000608,), (1396000609,), (1396000628,), (1396000630,), (1396000633,), (1396000638,), (1396000644,), (1396000650,), (1396000672,), (1396000662,), (1396000663,), (1396000670,), (1396000690,), (1396000692,), (1396000694,), (1396000710,), (1396000712,), (1396000714,), (1396000716,), (1396000718,), (1396000721,), (1396000745,), (1396000746,), (1396000747,), (1396000749,), (1396000752,), (1396000770,), (1396000772,), (1396000774,), (1396000777,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25112025': {'nb_upload': 21, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28856969]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1396000777, 1396000774, 1396000772, 1396000770, 1396000752, 1396000749, 1396000747, 1396000746, 1396000745, 1396000721, 1396000718, 1396000716, 1396000714, 1396000712, 1396000710] map_info['map_portfolio_photo'] : {28856969: [1396000777, 1396000774, 1396000772, 1396000770, 1396000752, 1396000749, 1396000747, 1396000746, 1396000745, 1396000721, 1396000718, 1396000716, 1396000714, 1396000712, 1396000710, 1396000694, 1396000692, 1396000690, 1396000670, 1396000663, 1396000662]} final : True mtd_id 4302 list_pids : [1396000777, 1396000774, 1396000772, 1396000770, 1396000752, 1396000749, 1396000747, 1396000746, 1396000745, 1396000721, 1396000718, 1396000716, 1396000714, 1396000712, 1396000710] Looping around the photos to save general results len do output : 1 /28856969Didn'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, '4108099') ('4302', '28856969', '1396000777', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000774', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000772', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000770', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000752', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000749', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000747', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000746', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000745', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000721', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000718', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000716', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000714', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000712', None, None, None, None, None, '4108099') ('4302', None, None, None, None, None, None, None, '4108099') ('4302', '28856969', '1396000710', None, None, None, None, None, '4108099') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28856969', 'None', None, None, None, None, '4108099'), ('4302', '28856969', '1396000777', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000774', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000772', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000770', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000752', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000749', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000747', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000746', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000745', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000721', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000718', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000716', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000714', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000712', None, None, None, None, None, '4108099'), ('4302', '28856969', '1396000710', None, None, None, None, None, '4108099')] time used for this insertion : 0.016557931900024414 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.0225450992584229 time spend to save output : 0.016788244247436523 total time spend for step 5 : 1.0393333435058594 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 (4108099) 2.62user 2.22system 0:09.68elapsed 50%CPU (0avgtext+0avgdata 159332maxresident)k 304inputs+8496outputs (0major+78947minor)pagefaults 0swaps