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 : 62012 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 (3332680) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3332680) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25248727 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3332680'] with mtr_portfolio_ids : ['25248727'] and first list_photo_ids : [] new path : /proc/62012/ Name: python3 Umask: 0002 State: R (running) Tgid: 62012 Ngid: 0 Pid: 62012 PPid: 62011 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 62012 NSpid: 62012 NSpgid: 60218 NSsid: 60218 VmPeak: 1106968 kB VmSize: 1106968 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99532 kB VmRSS: 99532 kB RssAnon: 59792 kB RssFile: 39740 kB RssShmem: 0 kB VmData: 865720 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 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: 49 nonvoluntary_ctxt_switches: 98 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '62012', 'Ngid': '0', 'Pid': '62012', 'PPid': '62011', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '62012', 'NSpid': '62012', 'NSpgid': '60218', 'NSsid': '60218', 'VmPeak': '1106968 kB', 'VmSize': '1106968 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99532 kB', 'VmRSS': '99532 kB', 'RssAnon': '59792 kB', 'RssFile': '39740 kB', 'RssShmem': '0 kB', 'VmData': '865720 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 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': '49', 'nonvoluntary_ctxt_switches': '98'} ('datou_batch_current', '62012', '1106968', '0', '1106968', '865720', '99532', b'', 'marlene', '3332680') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25248727) 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 (3332680 ) ) 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 (25248727) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1373441320, 'portfolio_id': 25248727}, {'photo_id': 1373441315, 'portfolio_id': 25248727}, {'photo_id': 1373441310, 'portfolio_id': 25248727}, {'photo_id': 1373441308, 'portfolio_id': 25248727}, {'photo_id': 1373441305, 'portfolio_id': 25248727}, {'photo_id': 1373441303, 'portfolio_id': 25248727}, {'photo_id': 1373441293, 'portfolio_id': 25248727}, {'photo_id': 1373441290, 'portfolio_id': 25248727}, {'photo_id': 1373441288, 'portfolio_id': 25248727}, {'photo_id': 1373441287, 'portfolio_id': 25248727}, {'photo_id': 1373441285, 'portfolio_id': 25248727}, {'photo_id': 1373441282, 'portfolio_id': 25248727}, {'photo_id': 1373441256, 'portfolio_id': 25248727}, {'photo_id': 1373441243, 'portfolio_id': 25248727}, {'photo_id': 1373441230, 'portfolio_id': 25248727}, {'photo_id': 1373441228, 'portfolio_id': 25248727}, {'photo_id': 1373441224, 'portfolio_id': 25248727}, {'photo_id': 1373441220, 'portfolio_id': 25248727}, {'photo_id': 1373441218, 'portfolio_id': 25248727}, {'photo_id': 1373441212, 'portfolio_id': 25248727}, {'photo_id': 1373441198, 'portfolio_id': 25248727}, {'photo_id': 1373441195, 'portfolio_id': 25248727}, {'photo_id': 1373441193, 'portfolio_id': 25248727}, {'photo_id': 1373441192, 'portfolio_id': 25248727}, {'photo_id': 1373441190, 'portfolio_id': 25248727}, {'photo_id': 1373441187, 'portfolio_id': 25248727}, {'photo_id': 1373441170, 'portfolio_id': 25248727}, {'photo_id': 1373441167, 'portfolio_id': 25248727}, {'photo_id': 1373441165, 'portfolio_id': 25248727}, {'photo_id': 1373441158, 'portfolio_id': 25248727}, {'photo_id': 1373441154, 'portfolio_id': 25248727}, {'photo_id': 1373441152, 'portfolio_id': 25248727}, {'photo_id': 1373441122, 'portfolio_id': 25248727}, {'photo_id': 1373441107, 'portfolio_id': 25248727}, {'photo_id': 1373441104, 'portfolio_id': 25248727}, {'photo_id': 1373441094, 'portfolio_id': 25248727}, {'photo_id': 1373441088, 'portfolio_id': 25248727}, {'photo_id': 1373441087, 'portfolio_id': 25248727}, {'photo_id': 1373441086, 'portfolio_id': 25248727}] map_portfolio_id_photo_id: {25248727: [1373441320, 1373441315, 1373441310, 1373441308, 1373441305, 1373441303, 1373441293, 1373441290, 1373441288, 1373441287, 1373441285, 1373441282, 1373441256, 1373441243, 1373441230, 1373441228, 1373441224, 1373441220, 1373441218, 1373441212, 1373441198, 1373441195, 1373441193, 1373441192, 1373441190, 1373441187, 1373441170, 1373441167, 1373441165, 1373441158, 1373441154, 1373441152, 1373441122, 1373441107, 1373441104, 1373441094, 1373441088, 1373441087, 1373441086]} ##### 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.014569759368896484 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Jul 24 01:54:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25248727) 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 : 25248727 get user id for portfolio 25248727 get sub ptf for main ptf 25248727, type 3726 and hashtags ['kraft', 'cartonnette', 'metal', 'Carton_gris', 'flou', 'environnement', 'plastique', 'autre_refus', 'mal_croppe', 'Teint_Dans_La_Masse', 'papier', 'Carton_brun'] 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`=25248727 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','metal','Carton_gris','flou','environnement','plastique','autre_refus','mal_croppe','Teint_Dans_La_Masse','papier','Carton_brun')) 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`=25248727 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','metal','Carton_gris','flou','environnement','plastique','autre_refus','mal_croppe','Teint_Dans_La_Masse','papier','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 25248727, 'sub_port_id': 25248754, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031328, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 26)}, 'Carton_brun': {'main_port_id': 25248727, 'sub_port_id': 25248755, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031329, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 26)}, 'environnement': {'main_port_id': 25248727, 'sub_port_id': 25248756, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031330, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 26)}, 'autre_refus': {'main_port_id': 25248727, 'sub_port_id': 25248757, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031331, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 25248727, 'sub_port_id': 25248758, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031332, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 26)}, 'cartonnette': {'main_port_id': 25248727, 'sub_port_id': 25248759, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031333, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 26)}, 'Carton_gris': {'main_port_id': 25248727, 'sub_port_id': 25248760, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031334, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 26)}, 'papier': {'main_port_id': 25248727, 'sub_port_id': 25248761, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031335, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 26)}, 'mal_croppe': {'main_port_id': 25248727, 'sub_port_id': 25248762, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031336, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 26)}, 'metal': {'main_port_id': 25248727, 'sub_port_id': 25248763, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031337, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 26)}, 'kraft': {'main_port_id': 25248727, 'sub_port_id': 25248764, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031338, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 26)}, 'plastique': {'main_port_id': 25248727, 'sub_port_id': 25248765, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031339, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25248754 , 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=25248727 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 (25248754) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25248727) result : ((1373441086,), (1373441087,), (1373441088,), (1373441094,), (1373441104,), (1373441107,), (1373441122,), (1373441152,), (1373441154,), (1373441158,), (1373441165,), (1373441167,), (1373441170,), (1373441187,), (1373441190,), (1373441192,), (1373441193,), (1373441195,), (1373441198,), (1373441212,), (1373441218,), (1373441220,), (1373441224,), (1373441228,), (1373441230,), (1373441243,), (1373441256,), (1373441282,), (1373441285,), (1373441287,), (1373441288,), (1373441290,), (1373441293,), (1373441303,), (1373441305,), (1373441308,), (1373441310,), (1373441315,), (1373441320,)) 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 25248755 , 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=25248727 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 (25248755) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25248727) result : ((1373441086,), (1373441087,), (1373441088,), (1373441094,), (1373441104,), (1373441107,), (1373441122,), (1373441152,), (1373441154,), (1373441158,), (1373441165,), (1373441167,), (1373441170,), (1373441187,), (1373441190,), (1373441192,), (1373441193,), (1373441195,), (1373441198,), (1373441212,), (1373441218,), (1373441220,), (1373441224,), (1373441228,), (1373441230,), (1373441243,), (1373441256,), (1373441282,), (1373441285,), (1373441287,), (1373441288,), (1373441290,), (1373441293,), (1373441303,), (1373441305,), (1373441308,), (1373441310,), (1373441315,), (1373441320,)) 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 25248756 , 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=25248727 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 (25248756) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25248727) result : ((1373441086,), (1373441087,), (1373441088,), (1373441094,), (1373441104,), (1373441107,), (1373441122,), (1373441152,), (1373441154,), (1373441158,), (1373441165,), (1373441167,), (1373441170,), (1373441187,), (1373441190,), (1373441192,), (1373441193,), (1373441195,), (1373441198,), (1373441212,), (1373441218,), (1373441220,), (1373441224,), (1373441228,), (1373441230,), (1373441243,), (1373441256,), (1373441282,), (1373441285,), (1373441287,), (1373441288,), (1373441290,), (1373441293,), (1373441303,), (1373441305,), (1373441308,), (1373441310,), (1373441315,), (1373441320,)) 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 25248757 , 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=25248727 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 (25248757) result : ((1373441314,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25248727) result : ((1373441086,), (1373441087,), (1373441088,), (1373441094,), (1373441104,), (1373441107,), (1373441122,), (1373441152,), (1373441154,), (1373441158,), (1373441165,), (1373441167,), (1373441170,), (1373441187,), (1373441190,), (1373441192,), (1373441193,), (1373441195,), (1373441198,), (1373441212,), (1373441218,), (1373441220,), (1373441224,), (1373441228,), (1373441230,), (1373441243,), (1373441256,), (1373441282,), (1373441285,), (1373441287,), (1373441288,), (1373441290,), (1373441293,), (1373441303,), (1373441305,), (1373441308,), (1373441310,), (1373441315,), (1373441320,)) 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 25248758 , 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=25248727 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 (25248758) result : ((1373441239,), (1373441240,), (1373441311,), (1373441313,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25248727) result : ((1373441086,), (1373441087,), (1373441088,), (1373441094,), (1373441104,), (1373441107,), (1373441122,), (1373441152,), (1373441154,), (1373441158,), (1373441165,), (1373441167,), (1373441170,), (1373441187,), (1373441190,), (1373441192,), (1373441193,), (1373441195,), (1373441198,), (1373441212,), (1373441218,), (1373441220,), (1373441224,), (1373441228,), (1373441230,), (1373441243,), (1373441256,), (1373441282,), (1373441285,), (1373441287,), (1373441288,), (1373441290,), (1373441293,), (1373441303,), (1373441305,), (1373441308,), (1373441310,), (1373441315,), (1373441320,)) 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 25248759 , 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=25248727 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 (25248759) result : ((1373441241,), (1373441242,), (1373441319,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25248727) result : ((1373441086,), (1373441087,), (1373441088,), (1373441094,), (1373441104,), (1373441107,), (1373441122,), (1373441152,), (1373441154,), (1373441158,), (1373441165,), (1373441167,), (1373441170,), (1373441187,), (1373441190,), (1373441192,), (1373441193,), (1373441195,), (1373441198,), (1373441212,), (1373441218,), (1373441220,), (1373441224,), (1373441228,), (1373441230,), (1373441243,), (1373441256,), (1373441282,), (1373441285,), (1373441287,), (1373441288,), (1373441290,), (1373441293,), (1373441303,), (1373441305,), (1373441308,), (1373441310,), (1373441315,), (1373441320,)) 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 25248760 , 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=25248727 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 (25248760) result : ((1373441316,), (1373441317,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25248727) result : ((1373441086,), (1373441087,), (1373441088,), (1373441094,), (1373441104,), (1373441107,), (1373441122,), (1373441152,), (1373441154,), (1373441158,), (1373441165,), (1373441167,), (1373441170,), (1373441187,), (1373441190,), (1373441192,), (1373441193,), (1373441195,), (1373441198,), (1373441212,), (1373441218,), (1373441220,), (1373441224,), (1373441228,), (1373441230,), (1373441243,), (1373441256,), (1373441282,), (1373441285,), (1373441287,), (1373441288,), (1373441290,), (1373441293,), (1373441303,), (1373441305,), (1373441308,), (1373441310,), (1373441315,), (1373441320,)) 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 25248761 , 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=25248727 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 (25248761) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25248727) result : ((1373441086,), (1373441087,), (1373441088,), (1373441094,), (1373441104,), (1373441107,), (1373441122,), (1373441152,), (1373441154,), (1373441158,), (1373441165,), (1373441167,), (1373441170,), (1373441187,), (1373441190,), (1373441192,), (1373441193,), (1373441195,), (1373441198,), (1373441212,), (1373441218,), (1373441220,), (1373441224,), (1373441228,), (1373441230,), (1373441243,), (1373441256,), (1373441282,), (1373441285,), (1373441287,), (1373441288,), (1373441290,), (1373441293,), (1373441303,), (1373441305,), (1373441308,), (1373441310,), (1373441315,), (1373441320,)) 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 25248762 , 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=25248727 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 (25248762) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25248727) result : ((1373441086,), (1373441087,), (1373441088,), (1373441094,), (1373441104,), (1373441107,), (1373441122,), (1373441152,), (1373441154,), (1373441158,), (1373441165,), (1373441167,), (1373441170,), (1373441187,), (1373441190,), (1373441192,), (1373441193,), (1373441195,), (1373441198,), (1373441212,), (1373441218,), (1373441220,), (1373441224,), (1373441228,), (1373441230,), (1373441243,), (1373441256,), (1373441282,), (1373441285,), (1373441287,), (1373441288,), (1373441290,), (1373441293,), (1373441303,), (1373441305,), (1373441308,), (1373441310,), (1373441315,), (1373441320,)) 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 25248763 , 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=25248727 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 (25248763) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25248727) result : ((1373441086,), (1373441087,), (1373441088,), (1373441094,), (1373441104,), (1373441107,), (1373441122,), (1373441152,), (1373441154,), (1373441158,), (1373441165,), (1373441167,), (1373441170,), (1373441187,), (1373441190,), (1373441192,), (1373441193,), (1373441195,), (1373441198,), (1373441212,), (1373441218,), (1373441220,), (1373441224,), (1373441228,), (1373441230,), (1373441243,), (1373441256,), (1373441282,), (1373441285,), (1373441287,), (1373441288,), (1373441290,), (1373441293,), (1373441303,), (1373441305,), (1373441308,), (1373441310,), (1373441315,), (1373441320,)) 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 25248764 , 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=25248727 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 (25248764) result : ((1373441321,), (1373441322,), (1373441323,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25248727) result : ((1373441086,), (1373441087,), (1373441088,), (1373441094,), (1373441104,), (1373441107,), (1373441122,), (1373441152,), (1373441154,), (1373441158,), (1373441165,), (1373441167,), (1373441170,), (1373441187,), (1373441190,), (1373441192,), (1373441193,), (1373441195,), (1373441198,), (1373441212,), (1373441218,), (1373441220,), (1373441224,), (1373441228,), (1373441230,), (1373441243,), (1373441256,), (1373441282,), (1373441285,), (1373441287,), (1373441288,), (1373441290,), (1373441293,), (1373441303,), (1373441305,), (1373441308,), (1373441310,), (1373441315,), (1373441320,)) 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 25248765 , 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=25248727 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 (25248765) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25248727) result : ((1373441086,), (1373441087,), (1373441088,), (1373441094,), (1373441104,), (1373441107,), (1373441122,), (1373441152,), (1373441154,), (1373441158,), (1373441165,), (1373441167,), (1373441170,), (1373441187,), (1373441190,), (1373441192,), (1373441193,), (1373441195,), (1373441198,), (1373441212,), (1373441218,), (1373441220,), (1373441224,), (1373441228,), (1373441230,), (1373441243,), (1373441256,), (1373441282,), (1373441285,), (1373441287,), (1373441288,), (1373441290,), (1373441293,), (1373441303,), (1373441305,), (1373441308,), (1373441310,), (1373441315,), (1373441320,)) 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`=25248727 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','metal','Carton_gris','flou','environnement','plastique','autre_refus','mal_croppe','Teint_Dans_La_Masse','papier','Carton_brun')) 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`=25248727 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','metal','Carton_gris','flou','environnement','plastique','autre_refus','mal_croppe','Teint_Dans_La_Masse','papier','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 25248727, 'sub_port_id': 25248766, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031340, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 28)}, 'Carton_brun': {'main_port_id': 25248727, 'sub_port_id': 25248767, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031341, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 28)}, 'environnement': {'main_port_id': 25248727, 'sub_port_id': 25248768, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031342, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 28)}, 'autre_refus': {'main_port_id': 25248727, 'sub_port_id': 25248769, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031343, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 25248727, 'sub_port_id': 25248770, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031344, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 28)}, 'cartonnette': {'main_port_id': 25248727, 'sub_port_id': 25248771, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031345, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 28)}, 'Carton_gris': {'main_port_id': 25248727, 'sub_port_id': 25248772, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031346, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 28)}, 'papier': {'main_port_id': 25248727, 'sub_port_id': 25248773, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031347, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 28)}, 'mal_croppe': {'main_port_id': 25248727, 'sub_port_id': 25248774, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031348, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 28)}, 'metal': {'main_port_id': 25248727, 'sub_port_id': 25248775, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031349, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 28)}, 'kraft': {'main_port_id': 25248727, 'sub_port_id': 25248776, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031350, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 28)}, 'plastique': {'main_port_id': 25248727, 'sub_port_id': 25248777, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17031351, 'last_updated_at': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 1, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 1, 47, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25248766,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25248754 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25248767,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25248755 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25248768,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25248756 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25248769,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25248757 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25248770,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25248758 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25248771,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25248759 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25248772,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25248760 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25248773,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25248761 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25248774,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25248762 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25248775,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25248763 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25248776,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25248764 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25248777,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25248765 lien utilise dans velours : https://www.fotonower.com/velours/25248766,25248767,25248768,25248769,25248770,25248771,25248772,25248773,25248774,25248775,25248776,25248777?tags=flou,Carton_brun,environnement,autre_refus,Teint_Dans_La_Masse,cartonnette,Carton_gris,papier,mal_croppe,metal,kraft,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25248727]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1373441320, 1373441315, 1373441310, 1373441308, 1373441305, 1373441303, 1373441293, 1373441290, 1373441288, 1373441287, 1373441285, 1373441282] map_info['map_portfolio_photo'] : {25248727: [1373441320, 1373441315, 1373441310, 1373441308, 1373441305, 1373441303, 1373441293, 1373441290, 1373441288, 1373441287, 1373441285, 1373441282, 1373441256, 1373441243, 1373441230, 1373441228, 1373441224, 1373441220, 1373441218, 1373441212, 1373441198, 1373441195, 1373441193, 1373441192, 1373441190, 1373441187, 1373441170, 1373441167, 1373441165, 1373441158, 1373441154, 1373441152, 1373441122, 1373441107, 1373441104, 1373441094, 1373441088, 1373441087, 1373441086]} final : False mtd_id 4302 list_pids : [1373441320, 1373441315, 1373441310, 1373441308, 1373441305, 1373441303, 1373441293, 1373441290, 1373441288, 1373441287, 1373441285, 1373441282] Looping around the photos to save general results len do output : 1 /25248727. 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, '3332680') ('4302', '25248727', '1373441320', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441315', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441310', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441308', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441305', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441303', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441293', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441290', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441288', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441287', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441285', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441282', None, None, None, None, None, '3332680') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25248727', "{'flou': 25248754, 'Carton_brun': 25248755, 'environnement': 25248756, 'autre_refus': 25248757, 'Teint_Dans_La_Masse': 25248758, 'cartonnette': 25248759, 'Carton_gris': 25248760, 'papier': 25248761, 'mal_croppe': 25248762, 'metal': 25248763, 'kraft': 25248764, 'plastique': 25248765}", None, None, None, None, '3332680'), ('4302', '25248727', '1373441320', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441315', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441310', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441308', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441305', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441303', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441293', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441290', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441288', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441287', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441285', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441282', None, None, None, None, None, '3332680')] time used for this insertion : 0.01766657829284668 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5970056056976318 time spend to save output : 0.01801609992980957 total time spend for step 1 : 1.6150217056274414 step2:final Thu Jul 24 01:55:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25248727) 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 25248727 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1373441107,1373441104,1373441094,1373441088,1373441087,1373441086,1373441122,1373441170,1373441167,1373441165,1373441158,1373441154,1373441152,1373441198,1373441195,1373441193,1373441192,1373441190,1373441187,1373441230,1373441228,1373441224,1373441220,1373441218,1373441212,1373441243,1373441256,1373441293,1373441290,1373441288,1373441287,1373441285,1373441282,1373441320,1373441315,1373441310,1373441308,1373441305,1373441303); 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([25248727]) Inside saveOutput : final : False verbose : True original output for save of step final : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ('0.024204558295511498',), 1373441288: ('0.024204558295511498',), 1373441287: ('0.024204558295511498',), 1373441285: ('0.024204558295511498',), 1373441282: ('0.024204558295511498',)} new output for save of step final : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ('0.024204558295511498',), 1373441288: ('0.024204558295511498',), 1373441287: ('0.024204558295511498',), 1373441285: ('0.024204558295511498',), 1373441282: ('0.024204558295511498',)} [1373441320, 1373441315, 1373441310, 1373441308, 1373441305, 1373441303, 1373441293, 1373441290, 1373441288, 1373441287, 1373441285, 1373441282] map_info['map_portfolio_photo'] : {25248727: [1373441320, 1373441315, 1373441310, 1373441308, 1373441305, 1373441303, 1373441293, 1373441290, 1373441288, 1373441287, 1373441285, 1373441282, 1373441256, 1373441243, 1373441230, 1373441228, 1373441224, 1373441220, 1373441218, 1373441212, 1373441198, 1373441195, 1373441193, 1373441192, 1373441190, 1373441187, 1373441170, 1373441167, 1373441165, 1373441158, 1373441154, 1373441152, 1373441122, 1373441107, 1373441104, 1373441094, 1373441088, 1373441087, 1373441086]} final : False mtd_id 4302 list_pids : [1373441320, 1373441315, 1373441310, 1373441308, 1373441305, 1373441303, 1373441293, 1373441290, 1373441288, 1373441287, 1373441285, 1373441282] Looping around the photos to save general results len do output : 12 /1373441320.Didn't retrieve data . /1373441315.Didn't retrieve data . /1373441310.Didn't retrieve data . /1373441308.Didn't retrieve data . /1373441305.Didn't retrieve data . /1373441303.Didn't retrieve data . /1373441293.Didn't retrieve data . /1373441290.Didn't retrieve data . /1373441288.Didn't retrieve data . /1373441287.Didn't retrieve data . /1373441285.Didn't retrieve data . /1373441282.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, '3332680') ('4302', '25248727', '1373441320', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441315', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441310', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441308', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441305', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441303', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441293', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441290', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441288', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441287', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441285', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441282', None, None, None, None, None, '3332680') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25248727', '1373441320', '0.024204558295511498', None, None, None, None, '3332680'), ('4302', '25248727', '1373441315', '0.024204558295511498', None, None, None, None, '3332680'), ('4302', '25248727', '1373441310', '0.024204558295511498', None, None, None, None, '3332680'), ('4302', '25248727', '1373441308', '0.024204558295511498', None, None, None, None, '3332680'), ('4302', '25248727', '1373441305', '0.024204558295511498', None, None, None, None, '3332680'), ('4302', '25248727', '1373441303', '0.024204558295511498', None, None, None, None, '3332680'), ('4302', '25248727', '1373441293', '0.024204558295511498', None, None, None, None, '3332680'), ('4302', '25248727', '1373441290', '0.024204558295511498', None, None, None, None, '3332680'), ('4302', '25248727', '1373441288', '0.024204558295511498', None, None, None, None, '3332680'), ('4302', '25248727', '1373441287', '0.024204558295511498', None, None, None, None, '3332680'), ('4302', '25248727', '1373441285', '0.024204558295511498', None, None, None, None, '3332680'), ('4302', '25248727', '1373441282', '0.024204558295511498', None, None, None, None, '3332680')] time used for this insertion : 0.016254425048828125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06882524490356445 time spend to save output : 0.016904354095458984 total time spend for step 2 : 0.08572959899902344 step3:velours_tree Thu Jul 24 01:55:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25248727: [{'flou': 25248754, 'Carton_brun': 25248755, 'environnement': 25248756, 'autre_refus': 25248757, 'Teint_Dans_La_Masse': 25248758, 'cartonnette': 25248759, 'Carton_gris': 25248760, 'papier': 25248761, 'mal_croppe': 25248762, 'metal': 25248763, 'kraft': 25248764, 'plastique': 25248765}]} input_args_next_step : {25248727: ()} output_args : {25248727: [{'flou': 25248754, 'Carton_brun': 25248755, 'environnement': 25248756, 'autre_refus': 25248757, 'Teint_Dans_La_Masse': 25248758, 'cartonnette': 25248759, 'Carton_gris': 25248760, 'papier': 25248761, 'mal_croppe': 25248762, 'metal': 25248763, 'kraft': 25248764, 'plastique': 25248765}]} args : 25248727 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 : ({'flou': 25248754, 'Carton_brun': 25248755, 'environnement': 25248756, 'autre_refus': 25248757, 'Teint_Dans_La_Masse': 25248758, 'cartonnette': 25248759, 'Carton_gris': 25248760, 'papier': 25248761, 'mal_croppe': 25248762, 'metal': 25248763, 'kraft': 25248764, 'plastique': 25248765},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25248727) 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([25248727]) 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.29739809036254883 time spend to save output : 5.817413330078125e-05 total time spend for step 3 : 0.2974562644958496 step4:send_mail_cod Thu Jul 24 01:55:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ('0.024204558295511498',), 1373441288: ('0.024204558295511498',), 1373441287: ('0.024204558295511498',), 1373441285: ('0.024204558295511498',), 1373441282: ('0.024204558295511498',)} input_args_next_step : {1373441320: ()} output_args : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ('0.024204558295511498',), 1373441288: ('0.024204558295511498',), 1373441287: ('0.024204558295511498',), 1373441285: ('0.024204558295511498',), 1373441282: ('0.024204558295511498',)} args : 1373441320 depend.output_id : 0 input_args_next_step : {1373441320: ('0.024204558295511498',), 1373441315: ()} output_args : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ('0.024204558295511498',), 1373441288: ('0.024204558295511498',), 1373441287: ('0.024204558295511498',), 1373441285: ('0.024204558295511498',), 1373441282: ('0.024204558295511498',)} args : 1373441315 depend.output_id : 0 input_args_next_step : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ()} output_args : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ('0.024204558295511498',), 1373441288: ('0.024204558295511498',), 1373441287: ('0.024204558295511498',), 1373441285: ('0.024204558295511498',), 1373441282: ('0.024204558295511498',)} args : 1373441310 depend.output_id : 0 input_args_next_step : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ()} output_args : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ('0.024204558295511498',), 1373441288: ('0.024204558295511498',), 1373441287: ('0.024204558295511498',), 1373441285: ('0.024204558295511498',), 1373441282: ('0.024204558295511498',)} args : 1373441308 depend.output_id : 0 input_args_next_step : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ()} output_args : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ('0.024204558295511498',), 1373441288: ('0.024204558295511498',), 1373441287: ('0.024204558295511498',), 1373441285: ('0.024204558295511498',), 1373441282: ('0.024204558295511498',)} args : 1373441305 depend.output_id : 0 input_args_next_step : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ()} output_args : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ('0.024204558295511498',), 1373441288: ('0.024204558295511498',), 1373441287: ('0.024204558295511498',), 1373441285: ('0.024204558295511498',), 1373441282: ('0.024204558295511498',)} args : 1373441303 depend.output_id : 0 input_args_next_step : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ()} output_args : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ('0.024204558295511498',), 1373441288: ('0.024204558295511498',), 1373441287: ('0.024204558295511498',), 1373441285: ('0.024204558295511498',), 1373441282: ('0.024204558295511498',)} args : 1373441293 depend.output_id : 0 input_args_next_step : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ()} output_args : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ('0.024204558295511498',), 1373441288: ('0.024204558295511498',), 1373441287: ('0.024204558295511498',), 1373441285: ('0.024204558295511498',), 1373441282: ('0.024204558295511498',)} args : 1373441290 depend.output_id : 0 input_args_next_step : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ('0.024204558295511498',), 1373441288: ()} output_args : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ('0.024204558295511498',), 1373441288: ('0.024204558295511498',), 1373441287: ('0.024204558295511498',), 1373441285: ('0.024204558295511498',), 1373441282: ('0.024204558295511498',)} args : 1373441288 depend.output_id : 0 input_args_next_step : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ('0.024204558295511498',), 1373441288: ('0.024204558295511498',), 1373441287: ()} output_args : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ('0.024204558295511498',), 1373441288: ('0.024204558295511498',), 1373441287: ('0.024204558295511498',), 1373441285: ('0.024204558295511498',), 1373441282: ('0.024204558295511498',)} args : 1373441287 depend.output_id : 0 input_args_next_step : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ('0.024204558295511498',), 1373441288: ('0.024204558295511498',), 1373441287: ('0.024204558295511498',), 1373441285: ()} output_args : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ('0.024204558295511498',), 1373441288: ('0.024204558295511498',), 1373441287: ('0.024204558295511498',), 1373441285: ('0.024204558295511498',), 1373441282: ('0.024204558295511498',)} args : 1373441285 depend.output_id : 0 input_args_next_step : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ('0.024204558295511498',), 1373441288: ('0.024204558295511498',), 1373441287: ('0.024204558295511498',), 1373441285: ('0.024204558295511498',), 1373441282: ()} output_args : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ('0.024204558295511498',), 1373441288: ('0.024204558295511498',), 1373441287: ('0.024204558295511498',), 1373441285: ('0.024204558295511498',), 1373441282: ('0.024204558295511498',)} args : 1373441282 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 : {25248727: [{'flou': 25248754, 'Carton_brun': 25248755, 'environnement': 25248756, 'autre_refus': 25248757, 'Teint_Dans_La_Masse': 25248758, 'cartonnette': 25248759, 'Carton_gris': 25248760, 'papier': 25248761, 'mal_croppe': 25248762, 'metal': 25248763, 'kraft': 25248764, 'plastique': 25248765}]} input_args_next_step : {1373441320: ('0.024204558295511498',), 1373441315: ('0.024204558295511498',), 1373441310: ('0.024204558295511498',), 1373441308: ('0.024204558295511498',), 1373441305: ('0.024204558295511498',), 1373441303: ('0.024204558295511498',), 1373441293: ('0.024204558295511498',), 1373441290: ('0.024204558295511498',), 1373441288: ('0.024204558295511498',), 1373441287: ('0.024204558295511498',), 1373441285: ('0.024204558295511498',), 1373441282: ('0.024204558295511498',), 25248727: ()} output_args : {25248727: [{'flou': 25248754, 'Carton_brun': 25248755, 'environnement': 25248756, 'autre_refus': 25248757, 'Teint_Dans_La_Masse': 25248758, 'cartonnette': 25248759, 'Carton_gris': 25248760, 'papier': 25248761, 'mal_croppe': 25248762, 'metal': 25248763, 'kraft': 25248764, 'plastique': 25248765}]} args : 25248727 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :13, first value : ('0.024204558295511498',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25248727) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1373441320,1373441315,1373441310,1373441308,1373441305,1373441303,1373441293,1373441290,1373441288,1373441287,1373441285,1373441282) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1373441282 begin to download photo : 1373441288 begin to download photo : 1373441303 begin to download photo : 1373441310 download finish for photo 1373441303 begin to download photo : 1373441305 download finish for photo 1373441310 begin to download photo : 1373441315 download finish for photo 1373441288 begin to download photo : 1373441290 download finish for photo 1373441282 begin to download photo : 1373441285 download finish for photo 1373441315 begin to download photo : 1373441320 download finish for photo 1373441305 begin to download photo : 1373441308 download finish for photo 1373441290 begin to download photo : 1373441293 download finish for photo 1373441285 begin to download photo : 1373441287 download finish for photo 1373441308 download finish for photo 1373441320 download finish for photo 1373441293 download finish for photo 1373441287 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette252487541753314901/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P25248727_24-07-2025_01_55_01.pdf 25248754 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25248754 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252487541753314901 25248757 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25248757 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373441314: '1753314806_1785516_1373441094_ca1e5ee11e56265e319777ff32a60e61_rle_crop_3892018906_0.png'} change filename to text .imagette252487571753314901/ imagette252487571753314901/1753314806_1785516_1373441094_ca1e5ee11e56265e319777ff32a60e61_rle_crop_3892018906_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/5ed17a380067b36899d674fe146e886b_42090175.png imagette252487571753314901 25248759 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25248759 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373441241: '1753314627_1777224_1373441154_030ffd5f41f3ab6a22bf5253bb0f9818_rle_crop_3892018266_0.png', 1373441242: '1753314627_1777224_1373441152_ae6b771fe14254bc997a81a155c57531_rle_crop_3892018280_0.png', 1373441319: '1753314806_1785516_1373441104_2ed4e995c7e6e15761c11670f0332e7b_rle_crop_3892018889_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/6e78913aaf3fa8500dfc9f81e425a5fb_49103280.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/f6ee5c3086f1a599491cc1e94606c301_40491106.png change filename to text .imagette252487591753314901/ imagette252487591753314901/1753314806_1785516_1373441104_2ed4e995c7e6e15761c11670f0332e7b_rle_crop_3892018889_0.png.png imagette252487591753314901/1753314627_1777224_1373441154_030ffd5f41f3ab6a22bf5253bb0f9818_rle_crop_3892018266_0.png.png imagette252487591753314901/1753314627_1777224_1373441152_ae6b771fe14254bc997a81a155c57531_rle_crop_3892018280_0.png.png imagette252487621753314901/ imagette252487631753314901/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/368d458f36d98c9b6b30647e29399908_23021790.png imagette252487591753314901 25248762 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25248762 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252487621753314901 25248763 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25248763 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252487631753314901 25248764 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25248764 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373441321: '1753314806_1785516_1373441094_ca1e5ee11e56265e319777ff32a60e61_rle_crop_3892018913_0.png', 1373441322: '1753314806_1785516_1373441088_30f76d1759d917626cab864963612ac8_rle_crop_3892018924_0.png', 1373441323: '1753314806_1785516_1373441087_f01864a20c5df2e540a0d93ae7dfaf4b_rle_crop_3892018943_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/296a48415d6eb8c01cc125befbab1aeb_40737732.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/b7afbfb6eedf9efe5376652c38feb1aa_63988811.png change filename to text .imagette252487641753314901/ imagette252487641753314901/1753314806_1785516_1373441088_30f76d1759d917626cab864963612ac8_rle_crop_3892018924_0.png.png imagette252487641753314901/1753314806_1785516_1373441094_ca1e5ee11e56265e319777ff32a60e61_rle_crop_3892018913_0.png.png imagette252487641753314901/1753314806_1785516_1373441087_f01864a20c5df2e540a0d93ae7dfaf4b_rle_crop_3892018943_0.png.png imagette252487651753314901/ imagette252487551753314901/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/26c7599e89ad410311bc334f7dbbbfe6_48902395.png imagette252487641753314901 25248765 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25248765 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252487651753314901 25248755 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25248755 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252487551753314901 25248758 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25248758 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373441239: '1753314627_1777224_1373441165_181a6aef001c782f294584d51d4be31b_rle_crop_3892018248_0.png', 1373441240: '1753314627_1777224_1373441158_9ba767f15e18a6d447093d58be3da11b_rle_crop_3892018257_0.png', 1373441311: '1753314806_1785516_1373441107_696ff4b1a6b08d35fa0de8e844ad615a_rle_crop_3892018880_0.png', 1373441313: '1753314806_1785516_1373441088_30f76d1759d917626cab864963612ac8_rle_crop_3892018927_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/dcd162d38cf6f6adedcd037518f4d5d2_99205707.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/82172393586ae5887865a19bc3961aef_18787928.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/af7cfbde53dbf4fdbc4ac85a5301b07e_31285062.png change filename to text .imagette252487581753314901/ imagette252487581753314901/1753314627_1777224_1373441158_9ba767f15e18a6d447093d58be3da11b_rle_crop_3892018257_0.png.png imagette252487581753314901/1753314627_1777224_1373441165_181a6aef001c782f294584d51d4be31b_rle_crop_3892018248_0.png.png imagette252487581753314901/1753314806_1785516_1373441088_30f76d1759d917626cab864963612ac8_rle_crop_3892018927_0.png.png imagette252487581753314901/1753314806_1785516_1373441107_696ff4b1a6b08d35fa0de8e844ad615a_rle_crop_3892018880_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/cc6f5f84613ae083cd4feff33cd260e6_74080033.png imagette252487581753314901 25248760 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25248760 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373441316: '1753314806_1785516_1373441107_696ff4b1a6b08d35fa0de8e844ad615a_rle_crop_3892018874_0.png', 1373441317: '1753314806_1785516_1373441094_ca1e5ee11e56265e319777ff32a60e61_rle_crop_3892018905_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/959fe923a69e1da2fc37685d8d9ecf70_85246646.png change filename to text .imagette252487601753314901/ imagette252487601753314901/1753314806_1785516_1373441094_ca1e5ee11e56265e319777ff32a60e61_rle_crop_3892018905_0.png.png imagette252487601753314901/1753314806_1785516_1373441107_696ff4b1a6b08d35fa0de8e844ad615a_rle_crop_3892018874_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/d442c8c9dcb7dfa210935444e727ccf9_23843444.png imagette252487601753314901 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25248727 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25248766,25248767,25248768,25248769,25248770,25248771,25248772,25248773,25248774,25248775,25248776,25248777?tags=flou,Carton_brun,environnement,autre_refus,Teint_Dans_La_Masse,cartonnette,Carton_gris,papier,mal_croppe,metal,kraft,plastique your option no_mail is active, we will not send the real mail to your client args[1373441320] : ('0.024204558295511498',) no score found for photo 1373441320 We are sending mail with results at report@fotonower.com args[1373441315] : ('0.024204558295511498',) no score found for photo 1373441315 We are sending mail with results at report@fotonower.com args[1373441310] : ('0.024204558295511498',) no score found for photo 1373441310 We are sending mail with results at report@fotonower.com args[1373441308] : ('0.024204558295511498',) no score found for photo 1373441308 We are sending mail with results at report@fotonower.com args[1373441305] : ('0.024204558295511498',) no score found for photo 1373441305 We are sending mail with results at report@fotonower.com args[1373441303] : ('0.024204558295511498',) no score found for photo 1373441303 We are sending mail with results at report@fotonower.com args[1373441293] : ('0.024204558295511498',) no score found for photo 1373441293 We are sending mail with results at report@fotonower.com args[1373441290] : ('0.024204558295511498',) no score found for photo 1373441290 We are sending mail with results at report@fotonower.com args[1373441288] : ('0.024204558295511498',) no score found for photo 1373441288 We are sending mail with results at report@fotonower.com args[1373441287] : ('0.024204558295511498',) no score found for photo 1373441287 We are sending mail with results at report@fotonower.com args[1373441285] : ('0.024204558295511498',) no score found for photo 1373441285 We are sending mail with results at report@fotonower.com args[1373441282] : ('0.024204558295511498',) no score found for photo 1373441282 We are sending mail with results at report@fotonower.com refus_total : 0.024204558295511498 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25248727 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_P25248727_24-07-2025_01_55_01.pdf results_Auto_P25248727_24-07-2025_01_55_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248727_24-07-2025_01_55_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25248727','results_Auto_P25248727_24-07-2025_01_55_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248727_24-07-2025_01_55_01.pdf','pdf','','0.13','0.024204558295511498') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25248727]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1373441320, 1373441315, 1373441310, 1373441308, 1373441305, 1373441303, 1373441293, 1373441290, 1373441288, 1373441287, 1373441285, 1373441282] map_info['map_portfolio_photo'] : {25248727: [1373441320, 1373441315, 1373441310, 1373441308, 1373441305, 1373441303, 1373441293, 1373441290, 1373441288, 1373441287, 1373441285, 1373441282, 1373441256, 1373441243, 1373441230, 1373441228, 1373441224, 1373441220, 1373441218, 1373441212, 1373441198, 1373441195, 1373441193, 1373441192, 1373441190, 1373441187, 1373441170, 1373441167, 1373441165, 1373441158, 1373441154, 1373441152, 1373441122, 1373441107, 1373441104, 1373441094, 1373441088, 1373441087, 1373441086]} final : False mtd_id 4302 list_pids : [1373441320, 1373441315, 1373441310, 1373441308, 1373441305, 1373441303, 1373441293, 1373441290, 1373441288, 1373441287, 1373441285, 1373441282] 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, '3332680') ('4302', '25248727', '1373441320', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441315', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441310', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441308', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441305', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441303', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441293', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441290', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441288', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441287', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441285', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441282', None, None, None, None, None, '3332680') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25248727', '1373441320', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441315', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441310', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441308', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441305', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441303', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441293', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441290', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441288', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441287', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441285', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441282', None, None, None, None, None, '3332680')] time used for this insertion : 0.055891990661621094 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.252450704574585 time spend to save output : 0.05617046356201172 total time spend for step 4 : 2.3086211681365967 step5:split_time_score Thu Jul 24 01:55:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25248727'] 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 : [('25248727',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25248727) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1373441303: {'path': 'temp/1753314900_62012_1373441303_5ceb0724512f71736e11b9906e48f2f5.jpg', 'extension': 'jpg'}, 1373441305: {'path': 'temp/1753314900_62012_1373441305_5dacde8a0571f6d24978f5a957026bbf.jpg', 'extension': 'jpg'}, 1373441308: {'path': 'temp/1753314900_62012_1373441308_cca7f3e88713de9f7c99a51b6178ac3e.jpg', 'extension': 'jpg'}, 1373441310: {'path': 'temp/1753314900_62012_1373441310_d573484aa5d666b79c53b10ff1a88f76.jpg', 'extension': 'jpg'}, 1373441315: {'path': 'temp/1753314900_62012_1373441315_f3402d5f8e1df6c6efdcd67ba09ff704.jpg', 'extension': 'jpg'}, 1373441320: {'path': 'temp/1753314900_62012_1373441320_a95dc38399bfa3a40f2b24eb6be4d3e7.jpg', 'extension': 'jpg'}, 1373441288: {'path': 'temp/1753314900_62012_1373441288_b41d636b29dd61b5666fe81d1b159e0b.jpg', 'extension': 'jpg'}, 1373441290: {'path': 'temp/1753314900_62012_1373441290_09ec907b87be0941e9d503e62ec2bfb3.jpg', 'extension': 'jpg'}, 1373441293: {'path': 'temp/1753314900_62012_1373441293_b48a9ace0fe9228d11dd26cda0cf4db4.jpg', 'extension': 'jpg'}, 1373441282: {'path': 'temp/1753314900_62012_1373441282_146978a7aab88d31ee9e4942eedac0cf.jpg', 'extension': 'jpg'}, 1373441285: {'path': 'temp/1753314900_62012_1373441285_7652e036a7d9df85e976e527eede18b1.jpg', 'extension': 'jpg'}, 1373441287: {'path': 'temp/1753314900_62012_1373441287_83ef35852c67bd4930c499b1dc18e986.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 = 25248727; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25248727 group by h (('01', 39),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25248727 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 (25248727) 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 (25248727) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24072025 25248727 Nombre de photos uploadées : 39 / 23040 (0%) 24072025 25248727 Nombre de photos taguées (types de déchets): 0 / 39 (0%) 24072025 25248727 Nombre de photos taguées (volume) : 0 / 39 (0%) [{'photo_id': 1373441107, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/696ff4b1a6b08d35fa0de8e844ad615a.jpg', 'username': None, 'uploaded_at': 1753314363, 'text': 'image_24072025_01_45_04_10158.jpg'}, {'photo_id': 1373441104, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/2ed4e995c7e6e15761c11670f0332e7b.jpg', 'username': None, 'uploaded_at': 1753314363, 'text': 'image_24072025_01_45_14_10134.jpg'}, {'photo_id': 1373441094, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/ca1e5ee11e56265e319777ff32a60e61.jpg', 'username': None, 'uploaded_at': 1753314363, 'text': 'image_24072025_01_45_24_10134.jpg'}, {'photo_id': 1373441088, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/30f76d1759d917626cab864963612ac8.jpg', 'username': None, 'uploaded_at': 1753314363, 'text': 'image_24072025_01_45_33_9122.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ??????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001203298568725586 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25248727, '2025-07-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2002734,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.030725955963134766 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= 2002734 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2002734, 'dashboard_run_id': 2010284, 'mtr_portfolio_id': 25245820, 'dashboard_result_id': 12986990, '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_P25245820_24-07-2025_00_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25245843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25245844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25245845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25245846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25245847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25245848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25245849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25245850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25245851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25245852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25245853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25245854, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2010284, 'mtr_portfolio_id': 25246316, 'dashboard_result_id': 12986991, '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_P25246316_24-07-2025_00_30_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246332, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246335, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2010284, 'mtr_portfolio_id': 25246632, 'dashboard_result_id': 12986992, '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_P25246632_24-07-2025_00_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246649, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2010284, 'mtr_portfolio_id': 25246996, 'dashboard_result_id': 12986993, '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_P25246996_24-07-2025_00_58_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247008, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2010284, 'mtr_portfolio_id': 25247263, 'dashboard_result_id': 12986994, '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_P25247263_24-07-2025_01_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247279, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2010284, 'mtr_portfolio_id': 25247788, 'dashboard_result_id': 12986995, '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_P25247788_24-07-2025_01_31_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25247798, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247809, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2010284, 'mtr_portfolio_id': 25248336, 'dashboard_result_id': 12986996, '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_P25248336_24-07-2025_01_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25248343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25248347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248354, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2010284, 'mtr_portfolio_id': 25248727, 'dashboard_result_id': 12986997, '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_P25248727_24-07-2025_01_52_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25248754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248756, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25248763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248765, '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 = 25245820 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': 3331980, 'mtr_portfolio_id': 25245820, 'created_at': datetime.datetime(2025, 7, 24, 0, 16, 58), 'result': '0.0317542730720465', 'result_long': None, 'result_double': None}] Qualite : 0.0317542730720465 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25245820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25245820_24-07-2025_00_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25245820 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_P25245820_24-07-2025_00_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25245843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25245844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25245845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25245846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25245847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25245848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25245849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25245850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25245851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25245852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25245853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25245854, 'pht': 3726}}" where mtr_portfolio_id = 25245820 and dashboard_run_id = 2010284 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`=25245820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12986990, 0.0317542730720465, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25245820_24-07-2025_00_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25245843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25245844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25245845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25245846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25245847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25245848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25245849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25245850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25245851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25245852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25245853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25245854, '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 = 25246316 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': 3332031, 'mtr_portfolio_id': 25246316, 'created_at': datetime.datetime(2025, 7, 24, 0, 30, 30), 'result': '0.036490845299108926', 'result_long': None, 'result_double': None}] Qualite : 0.036490845299108926 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25246316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246316_24-07-2025_00_30_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25246316 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_P25246316_24-07-2025_00_30_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246332, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246335, 'pht': 3726}}" where mtr_portfolio_id = 25246316 and dashboard_run_id = 2010284 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`=25246316 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12986991, 0.036490845299108926, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246316_24-07-2025_00_30_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246332, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246335, '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 = 25246632 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': 3332125, 'mtr_portfolio_id': 25246632, 'created_at': datetime.datetime(2025, 7, 24, 1, 0, 30), 'result': '0.03786872875237322', 'result_long': None, 'result_double': None}] Qualite : 0.03786872875237322 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25246632 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246632_24-07-2025_01_00_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25246632 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_P25246632_24-07-2025_01_00_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246649, 'pht': 3726}}" where mtr_portfolio_id = 25246632 and dashboard_run_id = 2010284 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`=25246632 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12986992, 0.03786872875237322, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246632_24-07-2025_01_00_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246649, '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 = 25246996 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': 3332250, 'mtr_portfolio_id': 25246996, 'created_at': datetime.datetime(2025, 7, 24, 1, 0, 58), 'result': '0.03156361535970644', 'result_long': None, 'result_double': None}] Qualite : 0.03156361535970644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25246996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246996_24-07-2025_01_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25246996 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_P25246996_24-07-2025_01_00_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247008, 'pht': 3726}}" where mtr_portfolio_id = 25246996 and dashboard_run_id = 2010284 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`=25246996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12986993, 0.03156361535970644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246996_24-07-2025_01_00_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247008, '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 = 25247263 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 25247263 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25247263 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247263 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247263 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3332344, 'mtr_portfolio_id': 25247263, 'created_at': datetime.datetime(2025, 7, 24, 1, 16, 58), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25247263 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247263_24-07-2025_01_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25247263 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_P25247263_24-07-2025_01_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247279, 'pht': 3726}}" where mtr_portfolio_id = 25247263 and dashboard_run_id = 2010283 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`=25247263 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12986994, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247263_24-07-2025_01_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247279, '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 = 25247788 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 25247788 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25247788 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247788 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247788 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3332462, 'mtr_portfolio_id': 25247788, 'created_at': datetime.datetime(2025, 7, 24, 1, 31, 1), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25247788 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247788_24-07-2025_01_31_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25247788 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_P25247788_24-07-2025_01_31_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25247798, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247809, 'pht': 3726}}" where mtr_portfolio_id = 25247788 and dashboard_run_id = 2010283 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`=25247788 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12986995, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247788_24-07-2025_01_31_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25247798, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247809, '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 = 25248336 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': 3332595, 'mtr_portfolio_id': 25248336, 'created_at': datetime.datetime(2025, 7, 24, 1, 46, 57), 'result': '0.0454593996672658', 'result_long': None, 'result_double': None}] Qualite : 0.0454593996672658 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25248336 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248336_24-07-2025_01_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25248336 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_P25248336_24-07-2025_01_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25248343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25248347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248354, 'pht': 3726}}" where mtr_portfolio_id = 25248336 and dashboard_run_id = 2010283 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`=25248336 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12986996, 0.0454593996672658, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248336_24-07-2025_01_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25248343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25248347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248354, '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 = 25248727 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': 3332680, 'mtr_portfolio_id': 25248727, 'created_at': datetime.datetime(2025, 7, 24, 1, 55), 'result': '0.024204558295511498', 'result_long': None, 'result_double': None}] Qualite : 0.024204558295511498 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25248727 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248727_24-07-2025_01_55_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25248727 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_P25248727_24-07-2025_01_55_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25248754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248756, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25248763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248765, 'pht': 3726}}" where mtr_portfolio_id = 25248727 and dashboard_run_id = 2010283 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`=25248727 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12986997, 0.024204558295511498, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248727_24-07-2025_01_55_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25248754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248756, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25248763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248765, '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 (25245820,25246316,25246632,25246996,25247263,25247788,25248336,25248727) result : ((1373433356,), (1373433609,), (1373433797,), (1373433798,), (1373433820,), (1373433832,), (1373433834,), (1373433840,), (1373434211,), (1373434234,), (1373434276,), (1373434320,), (1373434355,), (1373434386,), (1373434551,), (1373434562,), (1373434599,), (1373434624,), (1373434649,), (1373434685,), (1373434819,), (1373434822,), (1373434827,), (1373434828,), (1373434831,), (1373434835,), (1373435006,), (1373435350,), (1373435352,), (1373435354,), (1373435355,), (1373435357,), (1373435359,), (1373435531,), (1373435532,), (1373435553,), (1373435561,), (1373435563,), (1373435565,), (1373435583,), (1373435585,), (1373435590,), (1373435596,), (1373435607,), (1373435610,), (1373435637,), (1373435643,), (1373435649,), (1373435650,), (1373435652,), (1373435655,), (1373435658,), (1373435676,), (1373435677,), (1373435678,), (1373435679,), (1373435681,), (1373435683,), (1373435696,), (1373435701,), (1373435702,), (1373435703,), (1373435705,), (1373435708,), (1373435747,), (1373435751,), (1373435753,), (1373435754,), (1373435756,), (1373435760,), (1373435847,), (1373435875,), (1373435905,), (1373435926,), (1373435929,), (1373435931,), (1373436010,), (1373436011,), (1373436012,), (1373436014,), (1373436016,), (1373436019,), (1373436107,), (1373436113,), (1373436116,), (1373436117,), (1373436120,), (1373436123,), (1373436134,), (1373436137,), (1373436140,), (1373436142,), (1373436144,), (1373436146,), (1373436163,), (1373436168,), (1373436173,), (1373436174,), (1373436176,), (1373436179,), (1373436206,), (1373436222,), (1373436233,), (1373436234,), (1373436235,), (1373436237,), (1373436240,), (1373436243,), (1373436263,), (1373436265,), (1373436267,), (1373436268,), (1373436270,), (1373436272,), (1373436286,), (1373436289,), (1373436290,), (1373436293,), (1373436296,), (1373436297,), (1373436304,), (1373436305,), (1373436314,), (1373436317,), (1373436319,), (1373436321,), (1373436335,), (1373436350,), (1373436352,), (1373436359,), (1373436363,), (1373436366,), (1373436367,), (1373436377,), (1373436380,), (1373436382,), (1373436383,), (1373436385,), (1373436386,), (1373436404,), (1373436424,), (1373436425,), (1373436426,), (1373436427,), (1373436429,), (1373436431,), (1373436445,), (1373436627,), (1373436652,), (1373436674,), (1373436694,), (1373436695,), (1373436697,), (1373436774,), (1373436779,), (1373436780,), (1373436781,), (1373436783,), (1373436784,), (1373436797,), (1373436798,), (1373436799,), (1373436800,), (1373436802,), (1373436803,), (1373436823,), (1373436824,), (1373436825,), (1373436826,), (1373436827,), (1373436829,), (1373436843,), (1373436844,), (1373436845,), (1373436846,), (1373436848,), (1373436849,), (1373436856,), (1373436863,), (1373436869,), (1373436871,), (1373436874,), (1373436878,), (1373436886,), (1373436889,), (1373436892,), (1373436893,), (1373436895,), (1373436899,), (1373436909,), (1373436911,), (1373436915,), (1373436924,), (1373436933,), (1373436935,), (1373436945,), (1373436955,), (1373436958,), (1373436960,), (1373436962,), (1373436963,), (1373436964,), (1373436975,), (1373436977,), (1373436978,), (1373436979,), (1373436981,), (1373436983,), (1373437003,), (1373437006,), (1373437007,), (1373437008,), (1373437011,), (1373437013,), (1373437023,), (1373437602,), (1373437625,), (1373437059,), (1373437076,), (1373437078,), (1373437080,), (1373437082,), (1373437085,), (1373437089,), (1373437100,), (1373437103,), (1373437105,), (1373437107,), (1373437109,), (1373437112,), (1373437133,), (1373437139,), (1373437141,), (1373437143,), (1373437145,), (1373437147,), (1373437156,), (1373437161,), (1373437168,), (1373437170,), (1373437173,), (1373437176,), (1373437202,), (1373437204,), (1373437206,), (1373437208,), (1373437211,), (1373437213,), (1373437219,), (1373437233,), (1373437234,), (1373437235,), (1373437236,), (1373437237,), (1373437239,), (1373437257,), (1373437267,), (1373437270,), (1373437271,), (1373437273,), (1373437275,), (1373437283,), (1373437285,), (1373437297,), (1373437308,), (1373437311,), (1373437314,), (1373437323,), (1373437326,), (1373437329,), (1373437331,), (1373437334,), (1373437338,), (1373437342,), (1373437343,), (1373437345,), (1373437347,), (1373437348,), (1373437352,), (1373437369,), (1373437371,), (1373437373,), (1373437375,), (1373437377,), (1373437380,), (1373437551,), (1373437576,), (1373438191,), (1373439020,), (1373439077,), (1373439119,), (1373439140,), (1373439164,), (1373439197,), (1373439420,), (1373439440,), (1373439443,), (1373439444,), (1373439451,), (1373439477,), (1373439715,), (1373439726,), (1373439744,), (1373439747,), (1373439750,), (1373439762,), (1373439813,), (1373439816,), (1373439818,), (1373439820,), (1373439823,), (1373439824,), (1373439832,), (1373439834,), (1373439836,), (1373439837,), (1373439839,), (1373439840,), (1373439845,), (1373439847,), (1373439849,), (1373439850,), (1373439851,), (1373439853,), (1373439867,), (1373439869,), (1373439872,), (1373439874,), (1373439876,), (1373439878,), (1373439883,), (1373439886,), (1373439888,), (1373439890,), (1373439893,), (1373439895,), (1373439904,), (1373439920,), (1373439923,), (1373439926,), (1373439928,), (1373439930,), (1373439933,), (1373439941,), (1373439962,), (1373439967,), (1373439974,), (1373439977,), (1373439980,), (1373439983,), (1373439995,), (1373439997,), (1373440000,), (1373440002,), (1373440005,), (1373440008,), (1373440019,), (1373440026,), (1373440032,), (1373440034,), (1373440037,), (1373440040,), (1373440077,), (1373440078,), (1373440079,), (1373440080,), (1373440082,), (1373440085,), (1373440228,), (1373440247,), (1373440272,), (1373440277,), (1373440283,), (1373440286,), (1373440314,), (1373440326,), (1373440351,), (1373440373,), (1373440399,), (1373440416,), (1373440428,), (1373440431,), (1373440436,), (1373440437,), (1373440439,), (1373440440,), (1373440450,), (1373440452,), (1373440453,), (1373440455,), (1373440458,), (1373440461,), (1373440474,), (1373440476,), (1373440479,), (1373440482,), (1373440485,), (1373440488,), (1373440504,), (1373440518,), (1373440520,), (1373440522,), (1373440524,), (1373440526,), (1373440529,), (1373440540,), (1373440541,), (1373440544,), (1373440547,), (1373440550,), (1373440552,), (1373440568,), (1373440569,), (1373440570,), (1373440571,), (1373440573,), (1373440576,), (1373440587,), (1373440589,), (1373440592,), (1373440594,), (1373440597,), (1373440599,), (1373440618,), (1373440623,), (1373440624,), (1373440626,), (1373440627,), (1373440630,), (1373440639,), (1373440640,), (1373440642,), (1373440644,), (1373440645,), (1373440649,), (1373440660,), (1373440661,), (1373440662,), (1373440663,), (1373440664,), (1373440667,), (1373440677,), (1373440679,), (1373440681,), (1373440682,), (1373440684,), (1373440686,), (1373440708,), (1373440709,), (1373440711,), (1373440713,), (1373440716,), (1373440719,), (1373440747,), (1373440761,), (1373440763,), (1373440766,), (1373440771,), (1373440775,), (1373440777,), (1373440787,), (1373440789,), (1373440791,), (1373440794,), (1373440798,), (1373440802,), (1373440815,), (1373440817,), (1373440819,), (1373440820,), (1373440822,), (1373440823,), (1373440842,), (1373440845,), (1373440847,), (1373440849,), (1373440852,), (1373440854,), (1373440874,), (1373440876,), (1373440878,), (1373440881,), (1373440884,), (1373440887,), (1373440894,), (1373440896,), (1373440898,), (1373440900,), (1373440902,), (1373440906,), (1373440919,), (1373440943,), (1373440975,), (1373440977,), (1373440979,), (1373440981,), (1373440983,), (1373440986,), (1373441011,), (1373441029,), (1373441031,), (1373441035,), (1373441039,), (1373441042,), (1373441045,), (1373441051,), (1373441053,), (1373441055,), (1373441058,), (1373441061,), (1373441063,), (1373441069,), (1373441071,), (1373441072,), (1373441074,), (1373441076,), (1373441078,), (1373441086,), (1373441087,), (1373441088,), (1373441094,), (1373441104,), (1373441107,), (1373441122,), (1373441152,), (1373441154,), (1373441158,), (1373441165,), (1373441167,), (1373441170,), (1373441187,), (1373441190,), (1373441192,), (1373441193,), (1373441195,), (1373441198,), (1373441212,), (1373441218,), (1373441220,), (1373441224,), (1373441228,), (1373441230,), (1373441243,), (1373441256,), (1373441282,), (1373441285,), (1373441287,), (1373441288,), (1373441290,), (1373441293,), (1373441303,), (1373441305,), (1373441308,), (1373441310,), (1373441315,), (1373441320,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24072025': {'nb_upload': 39, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25248727]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1373441320, 1373441315, 1373441310, 1373441308, 1373441305, 1373441303, 1373441293, 1373441290, 1373441288, 1373441287, 1373441285, 1373441282] map_info['map_portfolio_photo'] : {25248727: [1373441320, 1373441315, 1373441310, 1373441308, 1373441305, 1373441303, 1373441293, 1373441290, 1373441288, 1373441287, 1373441285, 1373441282, 1373441256, 1373441243, 1373441230, 1373441228, 1373441224, 1373441220, 1373441218, 1373441212, 1373441198, 1373441195, 1373441193, 1373441192, 1373441190, 1373441187, 1373441170, 1373441167, 1373441165, 1373441158, 1373441154, 1373441152, 1373441122, 1373441107, 1373441104, 1373441094, 1373441088, 1373441087, 1373441086]} final : True mtd_id 4302 list_pids : [1373441320, 1373441315, 1373441310, 1373441308, 1373441305, 1373441303, 1373441293, 1373441290, 1373441288, 1373441287, 1373441285, 1373441282] Looping around the photos to save general results len do output : 1 /25248727Didn'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, '3332680') ('4302', '25248727', '1373441320', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441315', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441310', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441308', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441305', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441303', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441293', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441290', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441288', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441287', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441285', None, None, None, None, None, '3332680') ('4302', None, None, None, None, None, None, None, '3332680') ('4302', '25248727', '1373441282', None, None, None, None, None, '3332680') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25248727', 'None', None, None, None, None, '3332680'), ('4302', '25248727', '1373441320', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441315', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441310', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441308', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441305', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441303', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441293', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441290', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441288', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441287', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441285', None, None, None, None, None, '3332680'), ('4302', '25248727', '1373441282', None, None, None, None, None, '3332680')] time used for this insertion : 0.10345244407653809 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8602485656738281 time spend to save output : 0.10371994972229004 total time spend for step 5 : 0.9639685153961182 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 (3332680) 2.11user 2.31system 0:08.76elapsed 50%CPU (0avgtext+0avgdata 161740maxresident)k 1176inputs+8008outputs (44major+64133minor)pagefaults 0swaps