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 : 2873653 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 (4013422) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4013422) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28285972 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4013422'] with mtr_portfolio_ids : ['28285972'] and first list_photo_ids : [] new path : /proc/2873653/ Name: python3 Umask: 0002 State: R (running) Tgid: 2873653 Ngid: 0 Pid: 2873653 PPid: 2873652 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2873653 NSpid: 2873653 NSpgid: 2872527 NSsid: 2872527 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99392 kB VmRSS: 99392 kB RssAnon: 59900 kB RssFile: 39492 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 48 nonvoluntary_ctxt_switches: 86 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2873653', 'Ngid': '0', 'Pid': '2873653', 'PPid': '2873652', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2873653', 'NSpid': '2873653', 'NSpgid': '2872527', 'NSsid': '2872527', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99392 kB', 'VmRSS': '99392 kB', 'RssAnon': '59900 kB', 'RssFile': '39492 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '48', 'nonvoluntary_ctxt_switches': '86'} ('datou_batch_current', '2873653', '1106908', '0', '1106884', '865636', '99392', b'', 'marlene', '4013422') 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 (28285972) 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 (4013422 ) ) 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 (28285972) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1393039115, 'portfolio_id': 28285972}, {'photo_id': 1393039113, 'portfolio_id': 28285972}, {'photo_id': 1393039085, 'portfolio_id': 28285972}, {'photo_id': 1393039083, 'portfolio_id': 28285972}, {'photo_id': 1393039079, 'portfolio_id': 28285972}, {'photo_id': 1393039077, 'portfolio_id': 28285972}, {'photo_id': 1393039076, 'portfolio_id': 28285972}, {'photo_id': 1393039075, 'portfolio_id': 28285972}, {'photo_id': 1393039040, 'portfolio_id': 28285972}, {'photo_id': 1393039036, 'portfolio_id': 28285972}, {'photo_id': 1393039033, 'portfolio_id': 28285972}, {'photo_id': 1393039031, 'portfolio_id': 28285972}, {'photo_id': 1393039029, 'portfolio_id': 28285972}, {'photo_id': 1393038998, 'portfolio_id': 28285972}, {'photo_id': 1393038995, 'portfolio_id': 28285972}, {'photo_id': 1393038992, 'portfolio_id': 28285972}, {'photo_id': 1393038973, 'portfolio_id': 28285972}, {'photo_id': 1393038967, 'portfolio_id': 28285972}, {'photo_id': 1393038966, 'portfolio_id': 28285972}, {'photo_id': 1393038965, 'portfolio_id': 28285972}, {'photo_id': 1393038964, 'portfolio_id': 28285972}, {'photo_id': 1393038942, 'portfolio_id': 28285972}, {'photo_id': 1393038937, 'portfolio_id': 28285972}, {'photo_id': 1393038933, 'portfolio_id': 28285972}, {'photo_id': 1393038930, 'portfolio_id': 28285972}, {'photo_id': 1393038923, 'portfolio_id': 28285972}, {'photo_id': 1393038840, 'portfolio_id': 28285972}, {'photo_id': 1393038832, 'portfolio_id': 28285972}, {'photo_id': 1393038829, 'portfolio_id': 28285972}, {'photo_id': 1393038827, 'portfolio_id': 28285972}, {'photo_id': 1393038826, 'portfolio_id': 28285972}, {'photo_id': 1393038824, 'portfolio_id': 28285972}, {'photo_id': 1393038798, 'portfolio_id': 28285972}] map_portfolio_id_photo_id: {28285972: [1393039115, 1393039113, 1393039085, 1393039083, 1393039079, 1393039077, 1393039076, 1393039075, 1393039040, 1393039036, 1393039033, 1393039031, 1393039029, 1393038998, 1393038995, 1393038992, 1393038973, 1393038967, 1393038966, 1393038965, 1393038964, 1393038942, 1393038937, 1393038933, 1393038930, 1393038923, 1393038840, 1393038832, 1393038829, 1393038827, 1393038826, 1393038824, 1393038798]} ##### 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.016102075576782227 #### 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 Fri Nov 7 02:38:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28285972) 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 : 28285972 get user id for portfolio 28285972 get sub ptf for main ptf 28285972, type 3726 and hashtags ['papier', 'mal_croppe', 'Carton_gris', 'metal', 'Carton_brun', 'Teint_Dans_La_Masse', 'environnement', 'kraft', 'autre_refus', 'cartonnette', 'flou', 'plastique'] 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`=28285972 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','mal_croppe','Carton_gris','metal','Carton_brun','Teint_Dans_La_Masse','environnement','kraft','autre_refus','cartonnette','flou','plastique')) 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`=28285972 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','mal_croppe','Carton_gris','metal','Carton_brun','Teint_Dans_La_Masse','environnement','kraft','autre_refus','cartonnette','flou','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 28285972, 'sub_port_id': 28285977, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142670, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 34, 59)}, 'papier': {'main_port_id': 28285972, 'sub_port_id': 28285978, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142671, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 34, 59)}, 'cartonnette': {'main_port_id': 28285972, 'sub_port_id': 28285979, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142672, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 34, 59)}, 'plastique': {'main_port_id': 28285972, 'sub_port_id': 28285980, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142673, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 34, 59)}, 'autre_refus': {'main_port_id': 28285972, 'sub_port_id': 28285981, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142674, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 34, 59)}, 'flou': {'main_port_id': 28285972, 'sub_port_id': 28285982, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142675, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 34, 59)}, 'environnement': {'main_port_id': 28285972, 'sub_port_id': 28285983, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142676, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 34, 59)}, 'kraft': {'main_port_id': 28285972, 'sub_port_id': 28285984, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142677, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 34, 59)}, 'mal_croppe': {'main_port_id': 28285972, 'sub_port_id': 28285985, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142678, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 28285972, 'sub_port_id': 28285986, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142679, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 34, 59)}, 'Carton_gris': {'main_port_id': 28285972, 'sub_port_id': 28285987, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142680, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 34, 59)}, 'metal': {'main_port_id': 28285972, 'sub_port_id': 28285988, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142681, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28285977 , 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=28285972 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 (28285977) result : ((1393039110,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28285972) result : ((1393038798,), (1393038824,), (1393038826,), (1393038827,), (1393038829,), (1393038832,), (1393038840,), (1393038923,), (1393038930,), (1393038933,), (1393038937,), (1393038942,), (1393038964,), (1393038965,), (1393038966,), (1393038967,), (1393038973,), (1393038992,), (1393038995,), (1393038998,), (1393039029,), (1393039031,), (1393039033,), (1393039036,), (1393039040,), (1393039075,), (1393039076,), (1393039077,), (1393039079,), (1393039083,), (1393039085,), (1393039113,), (1393039115,)) 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 28285978 , 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=28285972 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 (28285978) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28285972) result : ((1393038798,), (1393038824,), (1393038826,), (1393038827,), (1393038829,), (1393038832,), (1393038840,), (1393038923,), (1393038930,), (1393038933,), (1393038937,), (1393038942,), (1393038964,), (1393038965,), (1393038966,), (1393038967,), (1393038973,), (1393038992,), (1393038995,), (1393038998,), (1393039029,), (1393039031,), (1393039033,), (1393039036,), (1393039040,), (1393039075,), (1393039076,), (1393039077,), (1393039079,), (1393039083,), (1393039085,), (1393039113,), (1393039115,)) 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 28285979 , 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=28285972 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 (28285979) result : ((1393039106,), (1393039107,), (1393039108,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28285972) result : ((1393038798,), (1393038824,), (1393038826,), (1393038827,), (1393038829,), (1393038832,), (1393038840,), (1393038923,), (1393038930,), (1393038933,), (1393038937,), (1393038942,), (1393038964,), (1393038965,), (1393038966,), (1393038967,), (1393038973,), (1393038992,), (1393038995,), (1393038998,), (1393039029,), (1393039031,), (1393039033,), (1393039036,), (1393039040,), (1393039075,), (1393039076,), (1393039077,), (1393039079,), (1393039083,), (1393039085,), (1393039113,), (1393039115,)) 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 28285980 , 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=28285972 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 (28285980) result : ((1393039111,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28285972) result : ((1393038798,), (1393038824,), (1393038826,), (1393038827,), (1393038829,), (1393038832,), (1393038840,), (1393038923,), (1393038930,), (1393038933,), (1393038937,), (1393038942,), (1393038964,), (1393038965,), (1393038966,), (1393038967,), (1393038973,), (1393038992,), (1393038995,), (1393038998,), (1393039029,), (1393039031,), (1393039033,), (1393039036,), (1393039040,), (1393039075,), (1393039076,), (1393039077,), (1393039079,), (1393039083,), (1393039085,), (1393039113,), (1393039115,)) 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 28285981 , 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=28285972 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 (28285981) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28285972) result : ((1393038798,), (1393038824,), (1393038826,), (1393038827,), (1393038829,), (1393038832,), (1393038840,), (1393038923,), (1393038930,), (1393038933,), (1393038937,), (1393038942,), (1393038964,), (1393038965,), (1393038966,), (1393038967,), (1393038973,), (1393038992,), (1393038995,), (1393038998,), (1393039029,), (1393039031,), (1393039033,), (1393039036,), (1393039040,), (1393039075,), (1393039076,), (1393039077,), (1393039079,), (1393039083,), (1393039085,), (1393039113,), (1393039115,)) 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 28285982 , 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=28285972 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 (28285982) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28285972) result : ((1393038798,), (1393038824,), (1393038826,), (1393038827,), (1393038829,), (1393038832,), (1393038840,), (1393038923,), (1393038930,), (1393038933,), (1393038937,), (1393038942,), (1393038964,), (1393038965,), (1393038966,), (1393038967,), (1393038973,), (1393038992,), (1393038995,), (1393038998,), (1393039029,), (1393039031,), (1393039033,), (1393039036,), (1393039040,), (1393039075,), (1393039076,), (1393039077,), (1393039079,), (1393039083,), (1393039085,), (1393039113,), (1393039115,)) 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 28285983 , 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=28285972 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 (28285983) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28285972) result : ((1393038798,), (1393038824,), (1393038826,), (1393038827,), (1393038829,), (1393038832,), (1393038840,), (1393038923,), (1393038930,), (1393038933,), (1393038937,), (1393038942,), (1393038964,), (1393038965,), (1393038966,), (1393038967,), (1393038973,), (1393038992,), (1393038995,), (1393038998,), (1393039029,), (1393039031,), (1393039033,), (1393039036,), (1393039040,), (1393039075,), (1393039076,), (1393039077,), (1393039079,), (1393039083,), (1393039085,), (1393039113,), (1393039115,)) 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 28285984 , 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=28285972 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 (28285984) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28285972) result : ((1393038798,), (1393038824,), (1393038826,), (1393038827,), (1393038829,), (1393038832,), (1393038840,), (1393038923,), (1393038930,), (1393038933,), (1393038937,), (1393038942,), (1393038964,), (1393038965,), (1393038966,), (1393038967,), (1393038973,), (1393038992,), (1393038995,), (1393038998,), (1393039029,), (1393039031,), (1393039033,), (1393039036,), (1393039040,), (1393039075,), (1393039076,), (1393039077,), (1393039079,), (1393039083,), (1393039085,), (1393039113,), (1393039115,)) 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 28285985 , 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=28285972 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 (28285985) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28285972) result : ((1393038798,), (1393038824,), (1393038826,), (1393038827,), (1393038829,), (1393038832,), (1393038840,), (1393038923,), (1393038930,), (1393038933,), (1393038937,), (1393038942,), (1393038964,), (1393038965,), (1393038966,), (1393038967,), (1393038973,), (1393038992,), (1393038995,), (1393038998,), (1393039029,), (1393039031,), (1393039033,), (1393039036,), (1393039040,), (1393039075,), (1393039076,), (1393039077,), (1393039079,), (1393039083,), (1393039085,), (1393039113,), (1393039115,)) 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 28285986 , 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=28285972 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 (28285986) result : ((1393039100,), (1393039101,), (1393039102,), (1393039103,), (1393039104,), (1393039164,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28285972) result : ((1393038798,), (1393038824,), (1393038826,), (1393038827,), (1393038829,), (1393038832,), (1393038840,), (1393038923,), (1393038930,), (1393038933,), (1393038937,), (1393038942,), (1393038964,), (1393038965,), (1393038966,), (1393038967,), (1393038973,), (1393038992,), (1393038995,), (1393038998,), (1393039029,), (1393039031,), (1393039033,), (1393039036,), (1393039040,), (1393039075,), (1393039076,), (1393039077,), (1393039079,), (1393039083,), (1393039085,), (1393039113,), (1393039115,)) 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 28285987 , 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=28285972 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 (28285987) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28285972) result : ((1393038798,), (1393038824,), (1393038826,), (1393038827,), (1393038829,), (1393038832,), (1393038840,), (1393038923,), (1393038930,), (1393038933,), (1393038937,), (1393038942,), (1393038964,), (1393038965,), (1393038966,), (1393038967,), (1393038973,), (1393038992,), (1393038995,), (1393038998,), (1393039029,), (1393039031,), (1393039033,), (1393039036,), (1393039040,), (1393039075,), (1393039076,), (1393039077,), (1393039079,), (1393039083,), (1393039085,), (1393039113,), (1393039115,)) 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 28285988 , 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=28285972 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 (28285988) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28285972) result : ((1393038798,), (1393038824,), (1393038826,), (1393038827,), (1393038829,), (1393038832,), (1393038840,), (1393038923,), (1393038930,), (1393038933,), (1393038937,), (1393038942,), (1393038964,), (1393038965,), (1393038966,), (1393038967,), (1393038973,), (1393038992,), (1393038995,), (1393038998,), (1393039029,), (1393039031,), (1393039033,), (1393039036,), (1393039040,), (1393039075,), (1393039076,), (1393039077,), (1393039079,), (1393039083,), (1393039085,), (1393039113,), (1393039115,)) 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`=28285972 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','mal_croppe','Carton_gris','metal','Carton_brun','Teint_Dans_La_Masse','environnement','kraft','autre_refus','cartonnette','flou','plastique')) 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`=28285972 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','mal_croppe','Carton_gris','metal','Carton_brun','Teint_Dans_La_Masse','environnement','kraft','autre_refus','cartonnette','flou','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 28285972, 'sub_port_id': 28285989, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142682, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 35, 1)}, 'papier': {'main_port_id': 28285972, 'sub_port_id': 28285990, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142683, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 35, 1)}, 'cartonnette': {'main_port_id': 28285972, 'sub_port_id': 28285991, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142684, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 35, 1)}, 'plastique': {'main_port_id': 28285972, 'sub_port_id': 28285992, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142685, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 35, 1)}, 'autre_refus': {'main_port_id': 28285972, 'sub_port_id': 28285993, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142686, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 35, 1)}, 'flou': {'main_port_id': 28285972, 'sub_port_id': 28285994, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142687, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 35, 1)}, 'environnement': {'main_port_id': 28285972, 'sub_port_id': 28285995, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142688, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 35, 1)}, 'kraft': {'main_port_id': 28285972, 'sub_port_id': 28285996, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142689, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 35, 1)}, 'mal_croppe': {'main_port_id': 28285972, 'sub_port_id': 28285997, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142690, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 35, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 28285972, 'sub_port_id': 28285998, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142691, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 35, 1)}, 'Carton_gris': {'main_port_id': 28285972, 'sub_port_id': 28285999, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142692, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 35, 1)}, 'metal': {'main_port_id': 28285972, 'sub_port_id': 28286000, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19142693, 'last_updated_at': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 2, 36, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 2, 35, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28285989,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28285977 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28285990,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28285978 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28285991,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28285979 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28285992,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28285980 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28285993,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28285981 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28285994,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28285982 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28285995,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28285983 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28285996,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28285984 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28285997,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28285985 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28285998,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28285986 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28285999,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28285987 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28286000,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28285988 lien utilise dans velours : https://marlene.fotonower.com/velours/28285989,28285990,28285991,28285992,28285993,28285994,28285995,28285996,28285997,28285998,28285999,28286000?tags=Carton_brun,papier,cartonnette,plastique,autre_refus,flou,environnement,kraft,mal_croppe,Teint_Dans_La_Masse,Carton_gris,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28285972]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1393039115, 1393039113, 1393039085, 1393039083, 1393039079, 1393039077, 1393039076, 1393039075, 1393039040, 1393039036, 1393039033, 1393039031, 1393039029] map_info['map_portfolio_photo'] : {28285972: [1393039115, 1393039113, 1393039085, 1393039083, 1393039079, 1393039077, 1393039076, 1393039075, 1393039040, 1393039036, 1393039033, 1393039031, 1393039029, 1393038998, 1393038995, 1393038992, 1393038973, 1393038967, 1393038966, 1393038965, 1393038964, 1393038942, 1393038937, 1393038933, 1393038930, 1393038923, 1393038840, 1393038832, 1393038829, 1393038827, 1393038826, 1393038824, 1393038798]} final : False mtd_id 4302 list_pids : [1393039115, 1393039113, 1393039085, 1393039083, 1393039079, 1393039077, 1393039076, 1393039075, 1393039040, 1393039036, 1393039033, 1393039031, 1393039029] Looping around the photos to save general results len do output : 1 /28285972. 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, '4013422') ('4302', '28285972', '1393039115', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039113', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039085', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039083', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039079', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039077', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039076', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039075', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039040', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039036', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039033', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039031', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039029', None, None, None, None, None, '4013422') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '28285972', "{'Carton_brun': 28285977, 'papier': 28285978, 'cartonnette': 28285979, 'plastique': 28285980, 'autre_refus': 28285981, 'flou': 28285982, 'environnement': 28285983, 'kraft': 28285984, 'mal_croppe': 28285985, 'Teint_Dans_La_Masse': 28285986, 'Carton_gris': 28285987, 'metal': 28285988}", None, None, None, None, '4013422'), ('4302', '28285972', '1393039115', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039113', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039085', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039083', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039079', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039077', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039076', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039075', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039040', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039036', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039033', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039031', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039029', None, None, None, None, None, '4013422')] time used for this insertion : 0.014690637588500977 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5511317253112793 time spend to save output : 0.015014886856079102 total time spend for step 1 : 1.5661466121673584 step2:final Fri Nov 7 02:39:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28285972) 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 28285972 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1393038798,1393038840,1393038832,1393038829,1393038827,1393038826,1393038824,1393038942,1393038937,1393038933,1393038930,1393038923,1393038973,1393038967,1393038966,1393038965,1393038964,1393038998,1393038995,1393038992,1393039040,1393039036,1393039033,1393039031,1393039029,1393039085,1393039083,1393039079,1393039077,1393039076,1393039075,1393039115,1393039113); 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([28285972]) Inside saveOutput : final : False verbose : True original output for save of step final : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ('0.046122821466681126',), 1393039033: ('0.046122821466681126',), 1393039031: ('0.046122821466681126',), 1393039029: ('0.046122821466681126',)} new output for save of step final : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ('0.046122821466681126',), 1393039033: ('0.046122821466681126',), 1393039031: ('0.046122821466681126',), 1393039029: ('0.046122821466681126',)} [1393039115, 1393039113, 1393039085, 1393039083, 1393039079, 1393039077, 1393039076, 1393039075, 1393039040, 1393039036, 1393039033, 1393039031, 1393039029] map_info['map_portfolio_photo'] : {28285972: [1393039115, 1393039113, 1393039085, 1393039083, 1393039079, 1393039077, 1393039076, 1393039075, 1393039040, 1393039036, 1393039033, 1393039031, 1393039029, 1393038998, 1393038995, 1393038992, 1393038973, 1393038967, 1393038966, 1393038965, 1393038964, 1393038942, 1393038937, 1393038933, 1393038930, 1393038923, 1393038840, 1393038832, 1393038829, 1393038827, 1393038826, 1393038824, 1393038798]} final : False mtd_id 4302 list_pids : [1393039115, 1393039113, 1393039085, 1393039083, 1393039079, 1393039077, 1393039076, 1393039075, 1393039040, 1393039036, 1393039033, 1393039031, 1393039029] Looping around the photos to save general results len do output : 13 /1393039115.Didn't retrieve data . /1393039113.Didn't retrieve data . /1393039085.Didn't retrieve data . /1393039083.Didn't retrieve data . /1393039079.Didn't retrieve data . /1393039077.Didn't retrieve data . /1393039076.Didn't retrieve data . /1393039075.Didn't retrieve data . /1393039040.Didn't retrieve data . /1393039036.Didn't retrieve data . /1393039033.Didn't retrieve data . /1393039031.Didn't retrieve data . /1393039029.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, '4013422') ('4302', '28285972', '1393039115', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039113', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039085', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039083', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039079', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039077', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039076', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039075', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039040', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039036', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039033', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039031', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039029', None, None, None, None, None, '4013422') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '28285972', '1393039115', '0.046122821466681126', None, None, None, None, '4013422'), ('4302', '28285972', '1393039113', '0.046122821466681126', None, None, None, None, '4013422'), ('4302', '28285972', '1393039085', '0.046122821466681126', None, None, None, None, '4013422'), ('4302', '28285972', '1393039083', '0.046122821466681126', None, None, None, None, '4013422'), ('4302', '28285972', '1393039079', '0.046122821466681126', None, None, None, None, '4013422'), ('4302', '28285972', '1393039077', '0.046122821466681126', None, None, None, None, '4013422'), ('4302', '28285972', '1393039076', '0.046122821466681126', None, None, None, None, '4013422'), ('4302', '28285972', '1393039075', '0.046122821466681126', None, None, None, None, '4013422'), ('4302', '28285972', '1393039040', '0.046122821466681126', None, None, None, None, '4013422'), ('4302', '28285972', '1393039036', '0.046122821466681126', None, None, None, None, '4013422'), ('4302', '28285972', '1393039033', '0.046122821466681126', None, None, None, None, '4013422'), ('4302', '28285972', '1393039031', '0.046122821466681126', None, None, None, None, '4013422'), ('4302', '28285972', '1393039029', '0.046122821466681126', None, None, None, None, '4013422')] time used for this insertion : 0.013652801513671875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06365728378295898 time spend to save output : 0.014326810836791992 total time spend for step 2 : 0.07798409461975098 step3:velours_tree Fri Nov 7 02:39:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28285972: [{'Carton_brun': 28285977, 'papier': 28285978, 'cartonnette': 28285979, 'plastique': 28285980, 'autre_refus': 28285981, 'flou': 28285982, 'environnement': 28285983, 'kraft': 28285984, 'mal_croppe': 28285985, 'Teint_Dans_La_Masse': 28285986, 'Carton_gris': 28285987, 'metal': 28285988}]} input_args_next_step : {28285972: ()} output_args : {28285972: [{'Carton_brun': 28285977, 'papier': 28285978, 'cartonnette': 28285979, 'plastique': 28285980, 'autre_refus': 28285981, 'flou': 28285982, 'environnement': 28285983, 'kraft': 28285984, 'mal_croppe': 28285985, 'Teint_Dans_La_Masse': 28285986, 'Carton_gris': 28285987, 'metal': 28285988}]} args : 28285972 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 28285977, 'papier': 28285978, 'cartonnette': 28285979, 'plastique': 28285980, 'autre_refus': 28285981, 'flou': 28285982, 'environnement': 28285983, 'kraft': 28285984, 'mal_croppe': 28285985, 'Teint_Dans_La_Masse': 28285986, 'Carton_gris': 28285987, 'metal': 28285988},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28285972) 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([28285972]) 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.36284518241882324 time spend to save output : 0.0001437664031982422 total time spend for step 3 : 0.3629889488220215 step4:send_mail_cod Fri Nov 7 02:39:01 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 : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ('0.046122821466681126',), 1393039033: ('0.046122821466681126',), 1393039031: ('0.046122821466681126',), 1393039029: ('0.046122821466681126',)} input_args_next_step : {1393039115: ()} output_args : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ('0.046122821466681126',), 1393039033: ('0.046122821466681126',), 1393039031: ('0.046122821466681126',), 1393039029: ('0.046122821466681126',)} args : 1393039115 depend.output_id : 0 input_args_next_step : {1393039115: ('0.046122821466681126',), 1393039113: ()} output_args : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ('0.046122821466681126',), 1393039033: ('0.046122821466681126',), 1393039031: ('0.046122821466681126',), 1393039029: ('0.046122821466681126',)} args : 1393039113 depend.output_id : 0 input_args_next_step : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ()} output_args : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ('0.046122821466681126',), 1393039033: ('0.046122821466681126',), 1393039031: ('0.046122821466681126',), 1393039029: ('0.046122821466681126',)} args : 1393039085 depend.output_id : 0 input_args_next_step : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ()} output_args : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ('0.046122821466681126',), 1393039033: ('0.046122821466681126',), 1393039031: ('0.046122821466681126',), 1393039029: ('0.046122821466681126',)} args : 1393039083 depend.output_id : 0 input_args_next_step : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ()} output_args : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ('0.046122821466681126',), 1393039033: ('0.046122821466681126',), 1393039031: ('0.046122821466681126',), 1393039029: ('0.046122821466681126',)} args : 1393039079 depend.output_id : 0 input_args_next_step : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ()} output_args : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ('0.046122821466681126',), 1393039033: ('0.046122821466681126',), 1393039031: ('0.046122821466681126',), 1393039029: ('0.046122821466681126',)} args : 1393039077 depend.output_id : 0 input_args_next_step : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ()} output_args : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ('0.046122821466681126',), 1393039033: ('0.046122821466681126',), 1393039031: ('0.046122821466681126',), 1393039029: ('0.046122821466681126',)} args : 1393039076 depend.output_id : 0 input_args_next_step : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ()} output_args : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ('0.046122821466681126',), 1393039033: ('0.046122821466681126',), 1393039031: ('0.046122821466681126',), 1393039029: ('0.046122821466681126',)} args : 1393039075 depend.output_id : 0 input_args_next_step : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ()} output_args : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ('0.046122821466681126',), 1393039033: ('0.046122821466681126',), 1393039031: ('0.046122821466681126',), 1393039029: ('0.046122821466681126',)} args : 1393039040 depend.output_id : 0 input_args_next_step : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ()} output_args : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ('0.046122821466681126',), 1393039033: ('0.046122821466681126',), 1393039031: ('0.046122821466681126',), 1393039029: ('0.046122821466681126',)} args : 1393039036 depend.output_id : 0 input_args_next_step : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ('0.046122821466681126',), 1393039033: ()} output_args : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ('0.046122821466681126',), 1393039033: ('0.046122821466681126',), 1393039031: ('0.046122821466681126',), 1393039029: ('0.046122821466681126',)} args : 1393039033 depend.output_id : 0 input_args_next_step : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ('0.046122821466681126',), 1393039033: ('0.046122821466681126',), 1393039031: ()} output_args : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ('0.046122821466681126',), 1393039033: ('0.046122821466681126',), 1393039031: ('0.046122821466681126',), 1393039029: ('0.046122821466681126',)} args : 1393039031 depend.output_id : 0 input_args_next_step : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ('0.046122821466681126',), 1393039033: ('0.046122821466681126',), 1393039031: ('0.046122821466681126',), 1393039029: ()} output_args : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ('0.046122821466681126',), 1393039033: ('0.046122821466681126',), 1393039031: ('0.046122821466681126',), 1393039029: ('0.046122821466681126',)} args : 1393039029 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 : {28285972: [{'Carton_brun': 28285977, 'papier': 28285978, 'cartonnette': 28285979, 'plastique': 28285980, 'autre_refus': 28285981, 'flou': 28285982, 'environnement': 28285983, 'kraft': 28285984, 'mal_croppe': 28285985, 'Teint_Dans_La_Masse': 28285986, 'Carton_gris': 28285987, 'metal': 28285988}]} input_args_next_step : {1393039115: ('0.046122821466681126',), 1393039113: ('0.046122821466681126',), 1393039085: ('0.046122821466681126',), 1393039083: ('0.046122821466681126',), 1393039079: ('0.046122821466681126',), 1393039077: ('0.046122821466681126',), 1393039076: ('0.046122821466681126',), 1393039075: ('0.046122821466681126',), 1393039040: ('0.046122821466681126',), 1393039036: ('0.046122821466681126',), 1393039033: ('0.046122821466681126',), 1393039031: ('0.046122821466681126',), 1393039029: ('0.046122821466681126',), 28285972: ()} output_args : {28285972: [{'Carton_brun': 28285977, 'papier': 28285978, 'cartonnette': 28285979, 'plastique': 28285980, 'autre_refus': 28285981, 'flou': 28285982, 'environnement': 28285983, 'kraft': 28285984, 'mal_croppe': 28285985, 'Teint_Dans_La_Masse': 28285986, 'Carton_gris': 28285987, 'metal': 28285988}]} args : 28285972 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 :14, first value : ('0.046122821466681126',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28285972) 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 (1393039115,1393039113,1393039085,1393039083,1393039079,1393039077,1393039076,1393039075,1393039040,1393039036,1393039033,1393039031,1393039029) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1393039029 begin to download photo : 1393039036 begin to download photo : 1393039076 begin to download photo : 1393039083 begin to download photo : 1393039115 download finish for photo 1393039036 begin to download photo : 1393039040 download finish for photo 1393039115 download finish for photo 1393039076 begin to download photo : 1393039077 download finish for photo 1393039029 begin to download photo : 1393039031 download finish for photo 1393039083 begin to download photo : 1393039085 download finish for photo 1393039040 begin to download photo : 1393039075 download finish for photo 1393039085 begin to download photo : 1393039113 download finish for photo 1393039077 begin to download photo : 1393039079 download finish for photo 1393039031 begin to download photo : 1393039033 download finish for photo 1393039075 download finish for photo 1393039113 download finish for photo 1393039079 download finish for photo 1393039033 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P28285972_07-11-2025_02_39_01.pdf 28285979 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=28285979 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393039106: '1762479445_582433_1393038973_594314dea4a6b5845e3bfde5947fe2c9_rle_crop_4024281102_0.png', 1393039107: '1762479445_582433_1393038973_594314dea4a6b5845e3bfde5947fe2c9_rle_crop_4024281103_0.png', 1393039108: '1762479445_582433_1393038930_4822846fb8e15c769b1bf6b872c90f77_rle_crop_4024281157_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/08d2cebc4905fdb1798dd3e22ecf01ce_86934966.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/6182af2cc081bc465fecdcc06f2cc79c_72479217.png change filename to text .imagette282859791762479541/ imagette282859791762479541/1762479445_582433_1393038973_594314dea4a6b5845e3bfde5947fe2c9_rle_crop_4024281102_0.png.png imagette282859791762479541/1762479445_582433_1393038930_4822846fb8e15c769b1bf6b872c90f77_rle_crop_4024281157_0.png.png imagette282859791762479541/1762479445_582433_1393038973_594314dea4a6b5845e3bfde5947fe2c9_rle_crop_4024281103_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/c9e9bdfbad866f1f6d35ba3b9a820481_83572222.png imagette282859791762479541 28285980 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=28285980 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393039111: '1762479445_582433_1393038937_06b1f7e13eb40f20a041c7be9c89d6c9_rle_crop_4024281128_0.png'} change filename to text .imagette282859801762479541/ imagette282859801762479541/1762479445_582433_1393038937_06b1f7e13eb40f20a041c7be9c89d6c9_rle_crop_4024281128_0.png.png imagette282859811762479541/ imagette282859821762479541/ imagette282859841762479542/ imagette282859851762479542/ imagette282859881762479542/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/abaf02e65e56a6b21bb97cc3c0e0b15a_10351409.png imagette282859801762479541 28285981 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=28285981 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282859811762479541 28285982 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=28285982 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282859821762479541 28285984 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=28285984 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282859841762479542 28285985 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=28285985 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282859851762479542 28285988 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=28285988 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282859881762479542 28285977 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=28285977 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393039110: '1762479445_582433_1393038973_594314dea4a6b5845e3bfde5947fe2c9_rle_crop_4024281106_0.png'} change filename to text .imagette282859771762479542/ imagette282859771762479542/1762479445_582433_1393038973_594314dea4a6b5845e3bfde5947fe2c9_rle_crop_4024281106_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/c5d1bab261c38259d01a65744cf1dc0f_96137542.png imagette282859771762479542 28285986 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=28285986 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393039100: '1762479445_582433_1393038937_06b1f7e13eb40f20a041c7be9c89d6c9_rle_crop_4024281124_0.png', 1393039101: '1762479445_582433_1393038933_452f24b6db69b4b912139cf4aa44d2db_rle_crop_4024281139_0.png', 1393039102: '1762479445_582433_1393038930_4822846fb8e15c769b1bf6b872c90f77_rle_crop_4024281159_0.png', 1393039103: '1762479445_582433_1393038930_4822846fb8e15c769b1bf6b872c90f77_rle_crop_4024281155_0.png', 1393039104: '1762479445_582433_1393038923_a46fc4c771c96a2a1dbd818b0bab30f0_rle_crop_4024281167_0.png', 1393039164: '1762479505_583894_1393038995_6dfaaa0a7d194f29145c46544b8f386b_rle_crop_4024281415_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/a39172e1aea5616bf2f403f701ca275b_1640025.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/1a549502d76d4fc4cf079f373e22aadd_24883520.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/ed69ea0981175ad7bffef3a41f086583_23469113.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/e2854b8e05cad902c7a7919bb2b705ba_7392629.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/1f1c9d2b539960c846aa61db8bb55c26_30169792.png change filename to text .imagette282859861762479542/ imagette282859861762479542/1762479445_582433_1393038933_452f24b6db69b4b912139cf4aa44d2db_rle_crop_4024281139_0.png.png imagette282859861762479542/1762479445_582433_1393038923_a46fc4c771c96a2a1dbd818b0bab30f0_rle_crop_4024281167_0.png.png imagette282859861762479542/1762479445_582433_1393038930_4822846fb8e15c769b1bf6b872c90f77_rle_crop_4024281155_0.png.png imagette282859861762479542/1762479505_583894_1393038995_6dfaaa0a7d194f29145c46544b8f386b_rle_crop_4024281415_0.png.png imagette282859861762479542/1762479445_582433_1393038930_4822846fb8e15c769b1bf6b872c90f77_rle_crop_4024281159_0.png.png imagette282859861762479542/1762479445_582433_1393038937_06b1f7e13eb40f20a041c7be9c89d6c9_rle_crop_4024281124_0.png.png imagette282859871762479542/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/c56cd0a309041f1b9a7026b9f67acff4_93128760.png imagette282859861762479542 28285987 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=28285987 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282859871762479542 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28285972 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28285989,28285990,28285991,28285992,28285993,28285994,28285995,28285996,28285997,28285998,28285999,28286000?tags=Carton_brun,papier,cartonnette,plastique,autre_refus,flou,environnement,kraft,mal_croppe,Teint_Dans_La_Masse,Carton_gris,metal your option no_mail is active, we will not send the real mail to your client args[1393039115] : ('0.046122821466681126',) no score found for photo 1393039115 We are sending mail with results at report@fotonower.com args[1393039113] : ('0.046122821466681126',) no score found for photo 1393039113 We are sending mail with results at report@fotonower.com args[1393039085] : ('0.046122821466681126',) no score found for photo 1393039085 We are sending mail with results at report@fotonower.com args[1393039083] : ('0.046122821466681126',) no score found for photo 1393039083 We are sending mail with results at report@fotonower.com args[1393039079] : ('0.046122821466681126',) no score found for photo 1393039079 We are sending mail with results at report@fotonower.com args[1393039077] : ('0.046122821466681126',) no score found for photo 1393039077 We are sending mail with results at report@fotonower.com args[1393039076] : ('0.046122821466681126',) no score found for photo 1393039076 We are sending mail with results at report@fotonower.com args[1393039075] : ('0.046122821466681126',) no score found for photo 1393039075 We are sending mail with results at report@fotonower.com args[1393039040] : ('0.046122821466681126',) no score found for photo 1393039040 We are sending mail with results at report@fotonower.com args[1393039036] : ('0.046122821466681126',) no score found for photo 1393039036 We are sending mail with results at report@fotonower.com args[1393039033] : ('0.046122821466681126',) no score found for photo 1393039033 We are sending mail with results at report@fotonower.com args[1393039031] : ('0.046122821466681126',) no score found for photo 1393039031 We are sending mail with results at report@fotonower.com args[1393039029] : ('0.046122821466681126',) no score found for photo 1393039029 We are sending mail with results at report@fotonower.com refus_total : 0.046122821466681126 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=28285972 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_P28285972_07-11-2025_02_39_01.pdf results_Auto_P28285972_07-11-2025_02_39_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28285972_07-11-2025_02_39_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','28285972','results_Auto_P28285972_07-11-2025_02_39_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28285972_07-11-2025_02_39_01.pdf','pdf','','0.15','0.046122821466681126') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28285972]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1393039115, 1393039113, 1393039085, 1393039083, 1393039079, 1393039077, 1393039076, 1393039075, 1393039040, 1393039036, 1393039033, 1393039031, 1393039029] map_info['map_portfolio_photo'] : {28285972: [1393039115, 1393039113, 1393039085, 1393039083, 1393039079, 1393039077, 1393039076, 1393039075, 1393039040, 1393039036, 1393039033, 1393039031, 1393039029, 1393038998, 1393038995, 1393038992, 1393038973, 1393038967, 1393038966, 1393038965, 1393038964, 1393038942, 1393038937, 1393038933, 1393038930, 1393038923, 1393038840, 1393038832, 1393038829, 1393038827, 1393038826, 1393038824, 1393038798]} final : False mtd_id 4302 list_pids : [1393039115, 1393039113, 1393039085, 1393039083, 1393039079, 1393039077, 1393039076, 1393039075, 1393039040, 1393039036, 1393039033, 1393039031, 1393039029] 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, '4013422') ('4302', '28285972', '1393039115', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039113', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039085', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039083', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039079', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039077', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039076', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039075', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039040', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039036', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039033', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039031', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039029', None, None, None, None, None, '4013422') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28285972', '1393039115', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039113', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039085', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039083', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039079', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039077', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039076', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039075', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039040', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039036', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039033', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039031', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039029', None, None, None, None, None, '4013422')] time used for this insertion : 0.014177322387695312 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.526840925216675 time spend to save output : 0.014411211013793945 total time spend for step 4 : 2.5412521362304688 step5:split_time_score Fri Nov 7 02:39:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['28285972'] 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 : [('28285972',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28285972) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1393039115: {'path': 'temp/1762479541_2873653_1393039115_2114ebeca68cb31641b90e4fcfb89238.jpg', 'extension': 'jpg'}, 1393039036: {'path': 'temp/1762479541_2873653_1393039036_9e8229de2ee0d8808f23aed1797c7628.jpg', 'extension': 'jpg'}, 1393039040: {'path': 'temp/1762479541_2873653_1393039040_9ba79443202660d530799b94ddbbd6d9.jpg', 'extension': 'jpg'}, 1393039075: {'path': 'temp/1762479541_2873653_1393039075_9d07824c9a200aee1722065ec0251e6b.jpg', 'extension': 'jpg'}, 1393039083: {'path': 'temp/1762479541_2873653_1393039083_81acbc9001e78ccee1dd41cc5be3b508.jpg', 'extension': 'jpg'}, 1393039085: {'path': 'temp/1762479541_2873653_1393039085_ff0a74e34381d06ba2293ef6726d1195.jpg', 'extension': 'jpg'}, 1393039113: {'path': 'temp/1762479541_2873653_1393039113_f33016edb5d0bb349b1cbb19c133f86b.jpg', 'extension': 'jpg'}, 1393039076: {'path': 'temp/1762479541_2873653_1393039076_18d12bbc8d848785c69a88a6705132d9.jpg', 'extension': 'jpg'}, 1393039077: {'path': 'temp/1762479541_2873653_1393039077_440c0a5b30b034135358872369cd00ff.jpg', 'extension': 'jpg'}, 1393039079: {'path': 'temp/1762479541_2873653_1393039079_a7af904573a87e23a8cd9e355221edd5.jpg', 'extension': 'jpg'}, 1393039029: {'path': 'temp/1762479541_2873653_1393039029_802142756d185ccb61678ce612d6fd9f.jpg', 'extension': 'jpg'}, 1393039031: {'path': 'temp/1762479541_2873653_1393039031_bbccfa3fe37157cfdbd322f1cbdc4f81.jpg', 'extension': 'jpg'}, 1393039033: {'path': 'temp/1762479541_2873653_1393039033_8924e4eedeeb5ff1d075abea871dcde1.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 = 28285972; (('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 = 28285972 group by h (('02', 33),) 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=28285972 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 (28285972) 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 (28285972) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07112025 28285972 Nombre de photos uploadées : 33 / 23040 (0%) 07112025 28285972 Nombre de photos taguées (types de déchets): 0 / 33 (0%) 07112025 28285972 Nombre de photos taguées (volume) : 0 / 33 (0%) [{'photo_id': 1393038798, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/a3f1bde54f09561ee6442ae60e5caf23.jpg', 'username': None, 'uploaded_at': 1762479073, 'text': 'image_07112025_02_30_14_10137.jpg'}, {'photo_id': 1393038840, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/3919cf013157116360947e348c94d447.jpg', 'username': None, 'uploaded_at': 1762479128, 'text': 'image_07112025_02_30_44_9123.jpg'}, {'photo_id': 1393038832, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/8e5be935478e2433780aa0d23c03f578.jpg', 'username': None, 'uploaded_at': 1762479128, 'text': 'image_07112025_02_31_04_10139.jpg'}, {'photo_id': 1393038829, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/20226a8459256690c5e0f15f428a4177.jpg', 'username': None, 'uploaded_at': 1762479128, 'text': 'image_07112025_02_31_14_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 9.5367431640625e-07 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0014340877532958984 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28285972, '2025-11-07' ) 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-07' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2530388,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20763754844665527 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= 2530388 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2530388, 'dashboard_run_id': 2538286, 'mtr_portfolio_id': 28281663, 'dashboard_result_id': 16955883, '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_P28281663_07-11-2025_00_16_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28281664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28281665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28281666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28281667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28281668, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28281669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28281670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28281671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28281672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28281673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28281674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28281675, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2538286, 'mtr_portfolio_id': 28282061, 'dashboard_result_id': 16955884, '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_P28282061_07-11-2025_00_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28282065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28282066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28282067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28282068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28282069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28282070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28282071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28282072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28282073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28282074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28282075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28282076, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2538286, 'mtr_portfolio_id': 28282493, 'dashboard_result_id': 16955885, '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_P28282493_07-11-2025_00_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28282515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28282516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28282517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28282518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28282519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28282520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28282521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28282522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28282523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28282524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28282525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28282526, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2538286, 'mtr_portfolio_id': 28282879, 'dashboard_result_id': 16955886, '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_P28282879_07-11-2025_00_58_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28282885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28282886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28282887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28282888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28282889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28282890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28282891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28282892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28282893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28282894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28282895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28282896, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2538286, 'mtr_portfolio_id': 28284433, 'dashboard_result_id': 16955887, '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_P28284433_07-11-2025_02_04_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28284438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28284439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28284440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28284441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28284442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28284443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28284444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28284445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28284446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28284447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28284448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28284449, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2538286, 'mtr_portfolio_id': 28284864, 'dashboard_result_id': 16955888, '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_P28284864_07-11-2025_02_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28284877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28284878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28284879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28284880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28284881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28284882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28284883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28284884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28284885, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28284886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28284887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28284888, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2538286, 'mtr_portfolio_id': 28285404, 'dashboard_result_id': 16955889, '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_P28285404_07-11-2025_02_32_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28285405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28285406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28285407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28285408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28285409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28285410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28285411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28285412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28285413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28285414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28285415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28285416, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2538286, 'mtr_portfolio_id': 28285972, 'dashboard_result_id': 16955890, '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_P28285972_07-11-2025_02_36_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28285977, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28285978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28285979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28285980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28285981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28285982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28285983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28285984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28285985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28285986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28285987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28285988, '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 = 28281663 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': 4012870, 'mtr_portfolio_id': 28281663, 'created_at': datetime.datetime(2025, 11, 7, 0, 16, 31), 'result': '0.06994011922776774', 'result_long': None, 'result_double': None}] Qualite : 0.06994011922776774 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28281663 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28281663_07-11-2025_00_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28281663 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_P28281663_07-11-2025_00_16_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28281664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28281665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28281666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28281667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28281668, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28281669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28281670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28281671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28281672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28281673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28281674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28281675, 'pht': 3726}}" where mtr_portfolio_id = 28281663 and dashboard_run_id = 2538286 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`=28281663 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16955883, 0.06994011922776774, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28281663_07-11-2025_00_16_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28281664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28281665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28281666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28281667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28281668, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28281669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28281670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28281671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28281672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28281673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28281674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28281675, '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 = 28282061 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': 4012907, 'mtr_portfolio_id': 28282061, 'created_at': datetime.datetime(2025, 11, 7, 0, 33), 'result': '0.06573653328970364', 'result_long': None, 'result_double': None}] Qualite : 0.06573653328970364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28282061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28282061_07-11-2025_00_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28282061 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_P28282061_07-11-2025_00_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28282065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28282066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28282067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28282068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28282069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28282070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28282071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28282072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28282073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28282074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28282075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28282076, 'pht': 3726}}" where mtr_portfolio_id = 28282061 and dashboard_run_id = 2538286 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`=28282061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16955884, 0.06573653328970364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28282061_07-11-2025_00_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28282065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28282066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28282067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28282068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28282069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28282070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28282071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28282072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28282073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28282074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28282075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28282076, '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 = 28282493 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': 4012955, 'mtr_portfolio_id': 28282493, 'created_at': datetime.datetime(2025, 11, 7, 0, 46, 57), 'result': '0.04170168947747759', 'result_long': None, 'result_double': None}] Qualite : 0.04170168947747759 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28282493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28282493_07-11-2025_00_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28282493 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_P28282493_07-11-2025_00_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28282515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28282516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28282517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28282518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28282519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28282520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28282521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28282522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28282523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28282524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28282525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28282526, 'pht': 3726}}" where mtr_portfolio_id = 28282493 and dashboard_run_id = 2538286 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`=28282493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16955885, 0.04170168947747759, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28282493_07-11-2025_00_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28282515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28282516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28282517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28282518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28282519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28282520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28282521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28282522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28282523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28282524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28282525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28282526, '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 = 28282879 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': 4013013, 'mtr_portfolio_id': 28282879, 'created_at': datetime.datetime(2025, 11, 7, 1, 33), 'result': '0.043413504435388425', 'result_long': None, 'result_double': None}] Qualite : 0.043413504435388425 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28282879 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28282879_07-11-2025_01_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28282879 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_P28282879_07-11-2025_01_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28282885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28282886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28282887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28282888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28282889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28282890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28282891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28282892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28282893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28282894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28282895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28282896, 'pht': 3726}}" where mtr_portfolio_id = 28282879 and dashboard_run_id = 2538286 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`=28282879 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16955886, 0.043413504435388425, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28282879_07-11-2025_01_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28282885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28282886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28282887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28282888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28282889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28282890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28282891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28282892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28282893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28282894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28282895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28282896, '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 = 28284433 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': 4013207, 'mtr_portfolio_id': 28284433, 'created_at': datetime.datetime(2025, 11, 7, 2, 4, 57), 'result': '0.030626207918634917', 'result_long': None, 'result_double': None}] Qualite : 0.030626207918634917 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28284433 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28284433_07-11-2025_02_04_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28284433 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_P28284433_07-11-2025_02_04_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28284438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28284439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28284440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28284441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28284442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28284443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28284444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28284445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28284446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28284447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28284448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28284449, 'pht': 3726}}" where mtr_portfolio_id = 28284433 and dashboard_run_id = 2538286 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`=28284433 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16955887, 0.030626207918634917, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28284433_07-11-2025_02_04_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28284438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28284439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28284440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28284441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28284442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28284443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28284444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28284445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28284446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28284447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28284448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28284449, '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 = 28284864 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': 4013270, 'mtr_portfolio_id': 28284864, 'created_at': datetime.datetime(2025, 11, 7, 2, 18, 59), 'result': '0.05010641372657096', 'result_long': None, 'result_double': None}] Qualite : 0.05010641372657096 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28284864 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28284864_07-11-2025_02_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28284864 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_P28284864_07-11-2025_02_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28284877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28284878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28284879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28284880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28284881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28284882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28284883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28284884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28284885, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28284886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28284887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28284888, 'pht': 3726}}" where mtr_portfolio_id = 28284864 and dashboard_run_id = 2538286 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`=28284864 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16955888, 0.05010641372657096, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28284864_07-11-2025_02_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28284877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28284878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28284879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28284880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28284881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28284882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28284883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28284884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28284885, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28284886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28284887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28284888, '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 = 28285404 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': 4013344, 'mtr_portfolio_id': 28285404, 'created_at': datetime.datetime(2025, 11, 7, 2, 32, 30), 'result': '0.049493852273826675', 'result_long': None, 'result_double': None}] Qualite : 0.049493852273826675 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28285404 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28285404_07-11-2025_02_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28285404 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_P28285404_07-11-2025_02_32_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28285405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28285406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28285407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28285408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28285409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28285410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28285411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28285412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28285413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28285414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28285415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28285416, 'pht': 3726}}" where mtr_portfolio_id = 28285404 and dashboard_run_id = 2538286 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`=28285404 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16955889, 0.049493852273826675, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28285404_07-11-2025_02_32_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28285405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28285406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28285407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28285408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28285409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28285410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28285411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28285412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28285413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28285414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28285415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28285416, '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 = 28285972 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': 4013422, 'mtr_portfolio_id': 28285972, 'created_at': datetime.datetime(2025, 11, 7, 2, 39), 'result': '0.046122821466681126', 'result_long': None, 'result_double': None}] Qualite : 0.046122821466681126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28285972 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28285972_07-11-2025_02_39_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28285972 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_P28285972_07-11-2025_02_39_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28285977, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28285978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28285979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28285980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28285981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28285982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28285983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28285984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28285985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28285986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28285987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28285988, 'pht': 3726}}" where mtr_portfolio_id = 28285972 and dashboard_run_id = 2538286 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`=28285972 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16955890, 0.046122821466681126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28285972_07-11-2025_02_39_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28285977, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28285978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28285979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28285980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28285981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28285982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28285983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28285984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28285985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28285986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28285987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28285988, '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 (28281663,28282061,28282493,28282879,28284433,28284864,28285404,28285972) result : ((1393022676,), (1393022677,), (1393022680,), (1393022682,), (1393022711,), (1393022714,), (1393022715,), (1393023161,), (1393023195,), (1393023228,), (1393023259,), (1393023289,), (1393023323,), (1393023664,), (1393023696,), (1393023731,), (1393023854,), (1393023965,), (1393024015,), (1393024378,), (1393024410,), (1393024416,), (1393024712,), (1393024753,), (1393024789,), (1393024826,), (1393024864,), (1393025240,), (1393025273,), (1393025310,), (1393025348,), (1393025418,), (1393025422,), (1393025424,), (1393025426,), (1393025457,), (1393025459,), (1393025460,), (1393025461,), (1393025548,), (1393025550,), (1393025551,), (1393025573,), (1393025575,), (1393025576,), (1393025577,), (1393025612,), (1393025614,), (1393025615,), (1393025616,), (1393025619,), (1393025671,), (1393025674,), (1393025678,), (1393025712,), (1393025711,), (1393025745,), (1393025747,), (1393025748,), (1393025817,), (1393025848,), (1393025850,), (1393025853,), (1393025856,), (1393025870,), (1393025891,), (1393025899,), (1393025905,), (1393025909,), (1393025912,), (1393025914,), (1393025926,), (1393025928,), (1393026111,), (1393026117,), (1393026119,), (1393026122,), (1393026127,), (1393026131,), (1393026146,), (1393026149,), (1393026151,), (1393026155,), (1393026165,), (1393026219,), (1393026220,), (1393026222,), (1393026226,), (1393026230,), (1393026244,), (1393026250,), (1393026257,), (1393026292,), (1393026297,), (1393026299,), (1393026308,), (1393026317,), (1393026598,), (1393026635,), (1393026688,), (1393026728,), (1393026759,), (1393026807,), (1393026809,), (1393026812,), (1393026815,), (1393026820,), (1393026836,), (1393026837,), (1393026838,), (1393026839,), (1393026846,), (1393026894,), (1393026896,), (1393026898,), (1393026899,), (1393026901,), (1393026938,), (1393026955,), (1393026958,), (1393026964,), (1393026981,), (1393026983,), (1393026934,), (1393026936,), (1393026989,), (1393026991,), (1393026996,), (1393027046,), (1393027048,), (1393027051,), (1393027066,), (1393027067,), (1393027068,), (1393027071,), (1393027085,), (1393027087,), (1393027089,), (1393027091,), (1393027094,), (1393027097,), (1393027146,), (1393027148,), (1393027162,), (1393027186,), (1393027187,), (1393027188,), (1393027191,), (1393027195,), (1393027198,), (1393027230,), (1393027232,), (1393027236,), (1393027240,), (1393027349,), (1393027388,), (1393027422,), (1393027457,), (1393027492,), (1393027529,), (1393027792,), (1393027797,), (1393027800,), (1393027891,), (1393027984,), (1393027987,), (1393027990,), (1393027994,), (1393028006,), (1393028039,), (1393028042,), (1393028045,), (1393028048,), (1393028052,), (1393028079,), (1393028075,), (1393028077,), (1393028118,), (1393028122,), (1393028131,), (1393028197,), (1393028202,), (1393028204,), (1393028224,), (1393028226,), (1393028230,), (1393028235,), (1393028239,), (1393028281,), (1393028282,), (1393028304,), (1393028309,), (1393028312,), (1393028456,), (1393028492,), (1393028527,), (1393028561,), (1393028595,), (1393028633,), (1393028914,), (1393028916,), (1393028917,), (1393028919,), (1393028922,), (1393028943,), (1393028945,), (1393028947,), (1393029005,), (1393029014,), (1393029017,), (1393029021,), (1393029049,), (1393029097,), (1393029102,), (1393029103,), (1393029105,), (1393029109,), (1393029153,), (1393029155,), (1393029157,), (1393029161,), (1393029208,), (1393029221,), (1393029229,), (1393029231,), (1393029235,), (1393029271,), (1393029273,), (1393029276,), (1393029278,), (1393029283,), (1393029285,), (1393029327,), (1393029342,), (1393029363,), (1393029382,), (1393029395,), (1393029403,), (1393029425,), (1393033090,), (1393035295,), (1393035330,), (1393035339,), (1393035341,), (1393035343,), (1393035346,), (1393035400,), (1393035401,), (1393035402,), (1393035417,), (1393035422,), (1393035425,), (1393035429,), (1393035432,), (1393035434,), (1393035450,), (1393035455,), (1393035456,), (1393035457,), (1393035472,), (1393035473,), (1393035474,), (1393035475,), (1393035477,), (1393035479,), (1393035492,), (1393035499,), (1393035501,), (1393035503,), (1393035506,), (1393035508,), (1393035557,), (1393035558,), (1393035559,), (1393035560,), (1393035562,), (1393035603,), (1393035605,), (1393035632,), (1393035633,), (1393035634,), (1393035636,), (1393035657,), (1393035658,), (1393035659,), (1393035661,), (1393035723,), (1393035724,), (1393035725,), (1393035727,), (1393035743,), (1393035744,), (1393035745,), (1393035747,), (1393035791,), (1393035795,), (1393035801,), (1393035805,), (1393035810,), (1393035818,), (1393035820,), (1393035822,), (1393035869,), (1393035872,), (1393035910,), (1393035921,), (1393035855,), (1393035859,), (1393035863,), (1393035867,), (1393035875,), (1393035878,), (1393035882,), (1393035889,), (1393035934,), (1393035936,), (1393035938,), (1393035940,), (1393036210,), (1393036239,), (1393036270,), (1393036693,), (1393036725,), (1393036755,), (1393037238,), (1393037239,), (1393037241,), (1393037243,), (1393037266,), (1393037268,), (1393037270,), (1393037272,), (1393037584,), (1393037621,), (1393037652,), (1393037839,), (1393037850,), (1393037865,), (1393037868,), (1393037892,), (1393037896,), (1393037897,), (1393037899,), (1393037901,), (1393037912,), (1393037914,), (1393037916,), (1393037920,), (1393037922,), (1393037926,), (1393037977,), (1393037979,), (1393037980,), (1393038037,), (1393038039,), (1393038054,), (1393038087,), (1393038089,), (1393038091,), (1393038094,), (1393038146,), (1393038149,), (1393038151,), (1393038153,), (1393038156,), (1393038189,), (1393038181,), (1393038183,), (1393038185,), (1393038187,), (1393038219,), (1393038225,), (1393038239,), (1393038298,), (1393038300,), (1393038301,), (1393038302,), (1393038316,), (1393038322,), (1393038323,), (1393038326,), (1393038346,), (1393038349,), (1393038351,), (1393038353,), (1393038403,), (1393038405,), (1393038407,), (1393038429,), (1393038485,), (1393038488,), (1393038546,), (1393038578,), (1393038582,), (1393038608,), (1393038611,), (1393038628,), (1393038629,), (1393038633,), (1393038635,), (1393038685,), (1393038687,), (1393038688,), (1393038690,), (1393038691,), (1393038718,), (1393038720,), (1393038722,), (1393038724,), (1393038727,), (1393038771,), (1393038774,), (1393038776,), (1393038799,), (1393038801,), (1393038804,), (1393038809,), (1393038798,), (1393038824,), (1393038826,), (1393038827,), (1393038829,), (1393038832,), (1393038840,), (1393038923,), (1393038930,), (1393038933,), (1393038937,), (1393038942,), (1393038964,), (1393038965,), (1393038966,), (1393038967,), (1393038973,), (1393038992,), (1393038995,), (1393038998,), (1393039029,), (1393039031,), (1393039033,), (1393039036,), (1393039040,), (1393039075,), (1393039076,), (1393039077,), (1393039079,), (1393039083,), (1393039085,), (1393039113,), (1393039115,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07112025': {'nb_upload': 33, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28285972]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1393039115, 1393039113, 1393039085, 1393039083, 1393039079, 1393039077, 1393039076, 1393039075, 1393039040, 1393039036, 1393039033, 1393039031, 1393039029] map_info['map_portfolio_photo'] : {28285972: [1393039115, 1393039113, 1393039085, 1393039083, 1393039079, 1393039077, 1393039076, 1393039075, 1393039040, 1393039036, 1393039033, 1393039031, 1393039029, 1393038998, 1393038995, 1393038992, 1393038973, 1393038967, 1393038966, 1393038965, 1393038964, 1393038942, 1393038937, 1393038933, 1393038930, 1393038923, 1393038840, 1393038832, 1393038829, 1393038827, 1393038826, 1393038824, 1393038798]} final : True mtd_id 4302 list_pids : [1393039115, 1393039113, 1393039085, 1393039083, 1393039079, 1393039077, 1393039076, 1393039075, 1393039040, 1393039036, 1393039033, 1393039031, 1393039029] Looping around the photos to save general results len do output : 1 /28285972Didn'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, '4013422') ('4302', '28285972', '1393039115', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039113', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039085', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039083', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039079', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039077', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039076', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039075', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039040', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039036', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039033', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039031', None, None, None, None, None, '4013422') ('4302', None, None, None, None, None, None, None, '4013422') ('4302', '28285972', '1393039029', None, None, None, None, None, '4013422') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '28285972', 'None', None, None, None, None, '4013422'), ('4302', '28285972', '1393039115', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039113', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039085', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039083', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039079', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039077', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039076', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039075', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039040', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039036', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039033', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039031', None, None, None, None, None, '4013422'), ('4302', '28285972', '1393039029', None, None, None, None, None, '4013422')] time used for this insertion : 0.017157554626464844 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7534310817718506 time spend to save output : 0.017401456832885742 total time spend for step 5 : 0.7708325386047363 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 (4013422) 2.05user 2.08system 0:09.11elapsed 45%CPU (0avgtext+0avgdata 161344maxresident)k 64inputs+10424outputs (2major+64576minor)pagefaults 0swaps