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 : 3189171 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 (2692782) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2692782) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21728821 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2692782'] with mtr_portfolio_ids : ['21728821'] and first list_photo_ids : [] new path : /proc/3189171/ Name: python3 Umask: 0002 State: R (running) Tgid: 3189171 Ngid: 0 Pid: 3189171 PPid: 3189170 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3189171 NSpid: 3189171 NSpgid: 3185080 NSsid: 3185080 VmPeak: 1106960 kB VmSize: 1106960 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97644 kB VmRSS: 97644 kB RssAnon: 59768 kB RssFile: 37876 kB RssShmem: 0 kB VmData: 865708 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 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: 46 nonvoluntary_ctxt_switches: 110 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3189171', 'Ngid': '0', 'Pid': '3189171', 'PPid': '3189170', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3189171', 'NSpid': '3189171', 'NSpgid': '3185080', 'NSsid': '3185080', 'VmPeak': '1106960 kB', 'VmSize': '1106960 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97644 kB', 'VmRSS': '97644 kB', 'RssAnon': '59768 kB', 'RssFile': '37876 kB', 'RssShmem': '0 kB', 'VmData': '865708 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', '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': '46', 'nonvoluntary_ctxt_switches': '110'} ('datou_batch_current', '3189171', '1106960', '0', '1106960', '865708', '97644', b'', 'marlene', '2692782') 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 (21728821) 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 (2692782 ) ) 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 (21728821) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1347485005, 'portfolio_id': 21728821}, {'photo_id': 1347484951, 'portfolio_id': 21728821}, {'photo_id': 1347484898, 'portfolio_id': 21728821}, {'photo_id': 1347484808, 'portfolio_id': 21728821}, {'photo_id': 1347484675, 'portfolio_id': 21728821}, {'photo_id': 1347482889, 'portfolio_id': 21728821}, {'photo_id': 1347482819, 'portfolio_id': 21728821}, {'photo_id': 1347482736, 'portfolio_id': 21728821}, {'photo_id': 1347481529, 'portfolio_id': 21728821}, {'photo_id': 1347481427, 'portfolio_id': 21728821}, {'photo_id': 1347481357, 'portfolio_id': 21728821}, {'photo_id': 1347480866, 'portfolio_id': 21728821}, {'photo_id': 1347480781, 'portfolio_id': 21728821}, {'photo_id': 1347480650, 'portfolio_id': 21728821}, {'photo_id': 1347480594, 'portfolio_id': 21728821}, {'photo_id': 1347480555, 'portfolio_id': 21728821}, {'photo_id': 1347480140, 'portfolio_id': 21728821}, {'photo_id': 1347480069, 'portfolio_id': 21728821}, {'photo_id': 1347480019, 'portfolio_id': 21728821}, {'photo_id': 1347479972, 'portfolio_id': 21728821}, {'photo_id': 1347479883, 'portfolio_id': 21728821}, {'photo_id': 1347479381, 'portfolio_id': 21728821}, {'photo_id': 1347479359, 'portfolio_id': 21728821}, {'photo_id': 1347478763, 'portfolio_id': 21728821}, {'photo_id': 1347478712, 'portfolio_id': 21728821}, {'photo_id': 1347478279, 'portfolio_id': 21728821}, {'photo_id': 1347478250, 'portfolio_id': 21728821}] map_portfolio_id_photo_id: {21728821: [1347485005, 1347484951, 1347484898, 1347484808, 1347484675, 1347482889, 1347482819, 1347482736, 1347481529, 1347481427, 1347481357, 1347480866, 1347480781, 1347480650, 1347480594, 1347480555, 1347480140, 1347480069, 1347480019, 1347479972, 1347479883, 1347479381, 1347479359, 1347478763, 1347478712, 1347478279, 1347478250]} ##### 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.014429569244384766 #### 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 Wed Mar 26 15:11:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21728821) 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 : 21728821 get user id for portfolio 21728821 get sub ptf for main ptf 21728821, type 3726 and hashtags ['flou', 'environnement', 'Carton_gris', 'kraft', 'mal_croppe', 'autre_refus', 'plastique', 'Carton_brun', 'Teint_Dans_La_Masse', 'papier', 'metal', 'cartonnette'] 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`=21728821 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','environnement','Carton_gris','kraft','mal_croppe','autre_refus','plastique','Carton_brun','Teint_Dans_La_Masse','papier','metal','cartonnette')) 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`=21728821 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','environnement','Carton_gris','kraft','mal_croppe','autre_refus','plastique','Carton_brun','Teint_Dans_La_Masse','papier','metal','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 21728821, 'sub_port_id': 21728846, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255132, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 8, 58)}, 'flou': {'main_port_id': 21728821, 'sub_port_id': 21728847, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255133, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 8, 58)}, 'autre_refus': {'main_port_id': 21728821, 'sub_port_id': 21728848, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255134, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 8, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21728821, 'sub_port_id': 21728849, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255135, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 8, 58)}, 'environnement': {'main_port_id': 21728821, 'sub_port_id': 21728850, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255136, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 8, 58)}, 'papier': {'main_port_id': 21728821, 'sub_port_id': 21728851, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255137, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 8, 58)}, 'Carton_gris': {'main_port_id': 21728821, 'sub_port_id': 21728852, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255138, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 8, 58)}, 'Carton_brun': {'main_port_id': 21728821, 'sub_port_id': 21728853, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255139, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 8, 58)}, 'metal': {'main_port_id': 21728821, 'sub_port_id': 21728854, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255140, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 8, 58)}, 'kraft': {'main_port_id': 21728821, 'sub_port_id': 21728855, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255141, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 8, 58)}, 'plastique': {'main_port_id': 21728821, 'sub_port_id': 21728856, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255142, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 8, 58)}, 'mal_croppe': {'main_port_id': 21728821, 'sub_port_id': 21728857, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255143, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 8, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21728846 , 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=21728821 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 (21728846) result : ((1347481599,), (1347484556,), (1347485278,), (1347486462,), (1347486463,), (1347486571,), (1347486573,), (1347486574,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21728821) result : ((1347478250,), (1347478279,), (1347478712,), (1347478763,), (1347479359,), (1347479381,), (1347479883,), (1347479972,), (1347480019,), (1347480069,), (1347480140,), (1347480555,), (1347480594,), (1347480650,), (1347480781,), (1347480866,), (1347481357,), (1347481427,), (1347481529,), (1347482736,), (1347482819,), (1347482889,), (1347484675,), (1347484808,), (1347484898,), (1347484951,), (1347485005,)) 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 21728847 , 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=21728821 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 (21728847) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21728821) result : ((1347478250,), (1347478279,), (1347478712,), (1347478763,), (1347479359,), (1347479381,), (1347479883,), (1347479972,), (1347480019,), (1347480069,), (1347480140,), (1347480555,), (1347480594,), (1347480650,), (1347480781,), (1347480866,), (1347481357,), (1347481427,), (1347481529,), (1347482736,), (1347482819,), (1347482889,), (1347484675,), (1347484808,), (1347484898,), (1347484951,), (1347485005,)) 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 21728848 , 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=21728821 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 (21728848) result : ((1347481580,), (1347481581,), (1347486490,), (1347486492,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21728821) result : ((1347478250,), (1347478279,), (1347478712,), (1347478763,), (1347479359,), (1347479381,), (1347479883,), (1347479972,), (1347480019,), (1347480069,), (1347480140,), (1347480555,), (1347480594,), (1347480650,), (1347480781,), (1347480866,), (1347481357,), (1347481427,), (1347481529,), (1347482736,), (1347482819,), (1347482889,), (1347484675,), (1347484808,), (1347484898,), (1347484951,), (1347485005,)) 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 21728849 , 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=21728821 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 (21728849) result : ((1347481545,), (1347481546,), (1347485229,), (1347485233,), (1347485236,), (1347485239,), (1347485242,), (1347485245,), (1347485430,), (1347485432,), (1347486386,), (1347486387,), (1347486391,), (1347486395,), (1347486400,), (1347486403,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21728821) result : ((1347478250,), (1347478279,), (1347478712,), (1347478763,), (1347479359,), (1347479381,), (1347479883,), (1347479972,), (1347480019,), (1347480069,), (1347480140,), (1347480555,), (1347480594,), (1347480650,), (1347480781,), (1347480866,), (1347481357,), (1347481427,), (1347481529,), (1347482736,), (1347482819,), (1347482889,), (1347484675,), (1347484808,), (1347484898,), (1347484951,), (1347485005,)) 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 21728850 , 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=21728821 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 (21728850) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21728821) result : ((1347478250,), (1347478279,), (1347478712,), (1347478763,), (1347479359,), (1347479381,), (1347479883,), (1347479972,), (1347480019,), (1347480069,), (1347480140,), (1347480555,), (1347480594,), (1347480650,), (1347480781,), (1347480866,), (1347481357,), (1347481427,), (1347481529,), (1347482736,), (1347482819,), (1347482889,), (1347484675,), (1347484808,), (1347484898,), (1347484951,), (1347485005,)) 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 21728851 , 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=21728821 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 (21728851) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21728821) result : ((1347478250,), (1347478279,), (1347478712,), (1347478763,), (1347479359,), (1347479381,), (1347479883,), (1347479972,), (1347480019,), (1347480069,), (1347480140,), (1347480555,), (1347480594,), (1347480650,), (1347480781,), (1347480866,), (1347481357,), (1347481427,), (1347481529,), (1347482736,), (1347482819,), (1347482889,), (1347484675,), (1347484808,), (1347484898,), (1347484951,), (1347485005,)) 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 21728852 , 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=21728821 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 (21728852) result : ((1347485261,), (1347485454,), (1347486523,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21728821) result : ((1347478250,), (1347478279,), (1347478712,), (1347478763,), (1347479359,), (1347479381,), (1347479883,), (1347479972,), (1347480019,), (1347480069,), (1347480140,), (1347480555,), (1347480594,), (1347480650,), (1347480781,), (1347480866,), (1347481357,), (1347481427,), (1347481529,), (1347482736,), (1347482819,), (1347482889,), (1347484675,), (1347484808,), (1347484898,), (1347484951,), (1347485005,)) 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 21728853 , 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=21728821 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 (21728853) result : ((1347485315,), (1347485321,), (1347485327,), (1347485475,), (1347486614,), (1347486615,), (1347486616,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21728821) result : ((1347478250,), (1347478279,), (1347478712,), (1347478763,), (1347479359,), (1347479381,), (1347479883,), (1347479972,), (1347480019,), (1347480069,), (1347480140,), (1347480555,), (1347480594,), (1347480650,), (1347480781,), (1347480866,), (1347481357,), (1347481427,), (1347481529,), (1347482736,), (1347482819,), (1347482889,), (1347484675,), (1347484808,), (1347484898,), (1347484951,), (1347485005,)) 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 21728854 , 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=21728821 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 (21728854) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21728821) result : ((1347478250,), (1347478279,), (1347478712,), (1347478763,), (1347479359,), (1347479381,), (1347479883,), (1347479972,), (1347480019,), (1347480069,), (1347480140,), (1347480555,), (1347480594,), (1347480650,), (1347480781,), (1347480866,), (1347481357,), (1347481427,), (1347481529,), (1347482736,), (1347482819,), (1347482889,), (1347484675,), (1347484808,), (1347484898,), (1347484951,), (1347485005,)) 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 21728855 , 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=21728821 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 (21728855) result : ((1347485503,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21728821) result : ((1347478250,), (1347478279,), (1347478712,), (1347478763,), (1347479359,), (1347479381,), (1347479883,), (1347479972,), (1347480019,), (1347480069,), (1347480140,), (1347480555,), (1347480594,), (1347480650,), (1347480781,), (1347480866,), (1347481357,), (1347481427,), (1347481529,), (1347482736,), (1347482819,), (1347482889,), (1347484675,), (1347484808,), (1347484898,), (1347484951,), (1347485005,)) 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 21728856 , 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=21728821 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 (21728856) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21728821) result : ((1347478250,), (1347478279,), (1347478712,), (1347478763,), (1347479359,), (1347479381,), (1347479883,), (1347479972,), (1347480019,), (1347480069,), (1347480140,), (1347480555,), (1347480594,), (1347480650,), (1347480781,), (1347480866,), (1347481357,), (1347481427,), (1347481529,), (1347482736,), (1347482819,), (1347482889,), (1347484675,), (1347484808,), (1347484898,), (1347484951,), (1347485005,)) 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 21728857 , 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=21728821 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 (21728857) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21728821) result : ((1347478250,), (1347478279,), (1347478712,), (1347478763,), (1347479359,), (1347479381,), (1347479883,), (1347479972,), (1347480019,), (1347480069,), (1347480140,), (1347480555,), (1347480594,), (1347480650,), (1347480781,), (1347480866,), (1347481357,), (1347481427,), (1347481529,), (1347482736,), (1347482819,), (1347482889,), (1347484675,), (1347484808,), (1347484898,), (1347484951,), (1347485005,)) 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`=21728821 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','environnement','Carton_gris','kraft','mal_croppe','autre_refus','plastique','Carton_brun','Teint_Dans_La_Masse','papier','metal','cartonnette')) 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`=21728821 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','environnement','Carton_gris','kraft','mal_croppe','autre_refus','plastique','Carton_brun','Teint_Dans_La_Masse','papier','metal','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 21728821, 'sub_port_id': 21728858, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255144, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 9)}, 'flou': {'main_port_id': 21728821, 'sub_port_id': 21728859, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255145, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 9)}, 'autre_refus': {'main_port_id': 21728821, 'sub_port_id': 21728860, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255146, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 9)}, 'Teint_Dans_La_Masse': {'main_port_id': 21728821, 'sub_port_id': 21728861, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255147, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 9)}, 'environnement': {'main_port_id': 21728821, 'sub_port_id': 21728862, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255148, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 9)}, 'papier': {'main_port_id': 21728821, 'sub_port_id': 21728863, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255149, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 9)}, 'Carton_gris': {'main_port_id': 21728821, 'sub_port_id': 21728864, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255150, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 9)}, 'Carton_brun': {'main_port_id': 21728821, 'sub_port_id': 21728865, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255151, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 9)}, 'metal': {'main_port_id': 21728821, 'sub_port_id': 21728866, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255152, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 9)}, 'kraft': {'main_port_id': 21728821, 'sub_port_id': 21728867, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255153, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 9)}, 'plastique': {'main_port_id': 21728821, 'sub_port_id': 21728868, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255154, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 9)}, 'mal_croppe': {'main_port_id': 21728821, 'sub_port_id': 21728869, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255155, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 10), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 10), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 9)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21728858,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21728846 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21728859,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21728847 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21728860,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21728848 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21728861,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21728849 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21728862,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21728850 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21728863,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21728851 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21728864,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21728852 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21728865,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21728853 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21728866,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21728854 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21728867,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21728855 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21728868,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21728856 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21728869,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21728857 lien utilise dans velours : https://www.fotonower.com/velours/21728858,21728859,21728860,21728861,21728862,21728863,21728864,21728865,21728866,21728867,21728868,21728869?tags=cartonnette,flou,autre_refus,Teint_Dans_La_Masse,environnement,papier,Carton_gris,Carton_brun,metal,kraft,plastique,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21728821]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347485005, 1347484951, 1347484898, 1347484808, 1347484675] map_info['map_portfolio_photo'] : {21728821: [1347485005, 1347484951, 1347484898, 1347484808, 1347484675, 1347482889, 1347482819, 1347482736, 1347481529, 1347481427, 1347481357, 1347480866, 1347480781, 1347480650, 1347480594, 1347480555, 1347480140, 1347480069, 1347480019, 1347479972, 1347479883, 1347479381, 1347479359, 1347478763, 1347478712, 1347478279, 1347478250]} final : False mtd_id 4302 list_pids : [1347485005, 1347484951, 1347484898, 1347484808, 1347484675] Looping around the photos to save general results len do output : 1 /21728821. 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, '2692782') ('4302', '21728821', '1347485005', None, None, None, None, None, '2692782') ('4302', None, None, None, None, None, None, None, '2692782') ('4302', '21728821', '1347484951', None, None, None, None, None, '2692782') ('4302', None, None, None, None, None, None, None, '2692782') ('4302', '21728821', '1347484898', None, None, None, None, None, '2692782') ('4302', None, None, None, None, None, None, None, '2692782') ('4302', '21728821', '1347484808', None, None, None, None, None, '2692782') ('4302', None, None, None, None, None, None, None, '2692782') ('4302', '21728821', '1347484675', None, None, None, None, None, '2692782') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '21728821', "{'cartonnette': 21728846, 'flou': 21728847, 'autre_refus': 21728848, 'Teint_Dans_La_Masse': 21728849, 'environnement': 21728850, 'papier': 21728851, 'Carton_gris': 21728852, 'Carton_brun': 21728853, 'metal': 21728854, 'kraft': 21728855, 'plastique': 21728856, 'mal_croppe': 21728857}", None, None, None, None, '2692782'), ('4302', '21728821', '1347485005', None, None, None, None, None, '2692782'), ('4302', '21728821', '1347484951', None, None, None, None, None, '2692782'), ('4302', '21728821', '1347484898', None, None, None, None, None, '2692782'), ('4302', '21728821', '1347484808', None, None, None, None, None, '2692782'), ('4302', '21728821', '1347484675', None, None, None, None, None, '2692782')] time used for this insertion : 0.01217961311340332 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4659886360168457 time spend to save output : 0.01252436637878418 total time spend for step 1 : 1.4785130023956299 step2:final Wed Mar 26 15:11: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 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 (21728821) 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 21728821 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347478279,1347478250,1347478763,1347478712,1347479381,1347479359,1347480140,1347480069,1347480019,1347479972,1347479883,1347480866,1347480781,1347480650,1347480594,1347480555,1347481529,1347481427,1347481357,1347482889,1347482819,1347482736,1347485005,1347484951,1347484898,1347484808,1347484675); 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([21728821]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347485005: ('0.04601512817100965',), 1347484951: ('0.04601512817100965',), 1347484898: ('0.04601512817100965',), 1347484808: ('0.04601512817100965',), 1347484675: ('0.04601512817100965',)} new output for save of step final : {1347485005: ('0.04601512817100965',), 1347484951: ('0.04601512817100965',), 1347484898: ('0.04601512817100965',), 1347484808: ('0.04601512817100965',), 1347484675: ('0.04601512817100965',)} [1347485005, 1347484951, 1347484898, 1347484808, 1347484675] map_info['map_portfolio_photo'] : {21728821: [1347485005, 1347484951, 1347484898, 1347484808, 1347484675, 1347482889, 1347482819, 1347482736, 1347481529, 1347481427, 1347481357, 1347480866, 1347480781, 1347480650, 1347480594, 1347480555, 1347480140, 1347480069, 1347480019, 1347479972, 1347479883, 1347479381, 1347479359, 1347478763, 1347478712, 1347478279, 1347478250]} final : False mtd_id 4302 list_pids : [1347485005, 1347484951, 1347484898, 1347484808, 1347484675] Looping around the photos to save general results len do output : 5 /1347485005.Didn't retrieve data . /1347484951.Didn't retrieve data . /1347484898.Didn't retrieve data . /1347484808.Didn't retrieve data . /1347484675.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, '2692782') ('4302', '21728821', '1347485005', None, None, None, None, None, '2692782') ('4302', None, None, None, None, None, None, None, '2692782') ('4302', '21728821', '1347484951', None, None, None, None, None, '2692782') ('4302', None, None, None, None, None, None, None, '2692782') ('4302', '21728821', '1347484898', None, None, None, None, None, '2692782') ('4302', None, None, None, None, None, None, None, '2692782') ('4302', '21728821', '1347484808', None, None, None, None, None, '2692782') ('4302', None, None, None, None, None, None, None, '2692782') ('4302', '21728821', '1347484675', None, None, None, None, None, '2692782') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21728821', '1347485005', '0.04601512817100965', None, None, None, None, '2692782'), ('4302', '21728821', '1347484951', '0.04601512817100965', None, None, None, None, '2692782'), ('4302', '21728821', '1347484898', '0.04601512817100965', None, None, None, None, '2692782'), ('4302', '21728821', '1347484808', '0.04601512817100965', None, None, None, None, '2692782'), ('4302', '21728821', '1347484675', '0.04601512817100965', None, None, None, None, '2692782')] time used for this insertion : 0.014606714248657227 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07229018211364746 time spend to save output : 0.015022993087768555 total time spend for step 2 : 0.08731317520141602 step3:velours_tree Wed Mar 26 15:11: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 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 : {21728821: [{'cartonnette': 21728846, 'flou': 21728847, 'autre_refus': 21728848, 'Teint_Dans_La_Masse': 21728849, 'environnement': 21728850, 'papier': 21728851, 'Carton_gris': 21728852, 'Carton_brun': 21728853, 'metal': 21728854, 'kraft': 21728855, 'plastique': 21728856, 'mal_croppe': 21728857}]} input_args_next_step : {21728821: ()} output_args : {21728821: [{'cartonnette': 21728846, 'flou': 21728847, 'autre_refus': 21728848, 'Teint_Dans_La_Masse': 21728849, 'environnement': 21728850, 'papier': 21728851, 'Carton_gris': 21728852, 'Carton_brun': 21728853, 'metal': 21728854, 'kraft': 21728855, 'plastique': 21728856, 'mal_croppe': 21728857}]} args : 21728821 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 : ({'cartonnette': 21728846, 'flou': 21728847, 'autre_refus': 21728848, 'Teint_Dans_La_Masse': 21728849, 'environnement': 21728850, 'papier': 21728851, 'Carton_gris': 21728852, 'Carton_brun': 21728853, 'metal': 21728854, 'kraft': 21728855, 'plastique': 21728856, 'mal_croppe': 21728857},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21728821) 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([21728821]) 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.313967227935791 time spend to save output : 4.8160552978515625e-05 total time spend for step 3 : 0.31401538848876953 step4:send_mail_cod Wed Mar 26 15:11:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1347485005: ('0.04601512817100965',), 1347484951: ('0.04601512817100965',), 1347484898: ('0.04601512817100965',), 1347484808: ('0.04601512817100965',), 1347484675: ('0.04601512817100965',)} input_args_next_step : {1347485005: ()} output_args : {1347485005: ('0.04601512817100965',), 1347484951: ('0.04601512817100965',), 1347484898: ('0.04601512817100965',), 1347484808: ('0.04601512817100965',), 1347484675: ('0.04601512817100965',)} args : 1347485005 depend.output_id : 0 input_args_next_step : {1347485005: ('0.04601512817100965',), 1347484951: ()} output_args : {1347485005: ('0.04601512817100965',), 1347484951: ('0.04601512817100965',), 1347484898: ('0.04601512817100965',), 1347484808: ('0.04601512817100965',), 1347484675: ('0.04601512817100965',)} args : 1347484951 depend.output_id : 0 input_args_next_step : {1347485005: ('0.04601512817100965',), 1347484951: ('0.04601512817100965',), 1347484898: ()} output_args : {1347485005: ('0.04601512817100965',), 1347484951: ('0.04601512817100965',), 1347484898: ('0.04601512817100965',), 1347484808: ('0.04601512817100965',), 1347484675: ('0.04601512817100965',)} args : 1347484898 depend.output_id : 0 input_args_next_step : {1347485005: ('0.04601512817100965',), 1347484951: ('0.04601512817100965',), 1347484898: ('0.04601512817100965',), 1347484808: ()} output_args : {1347485005: ('0.04601512817100965',), 1347484951: ('0.04601512817100965',), 1347484898: ('0.04601512817100965',), 1347484808: ('0.04601512817100965',), 1347484675: ('0.04601512817100965',)} args : 1347484808 depend.output_id : 0 input_args_next_step : {1347485005: ('0.04601512817100965',), 1347484951: ('0.04601512817100965',), 1347484898: ('0.04601512817100965',), 1347484808: ('0.04601512817100965',), 1347484675: ()} output_args : {1347485005: ('0.04601512817100965',), 1347484951: ('0.04601512817100965',), 1347484898: ('0.04601512817100965',), 1347484808: ('0.04601512817100965',), 1347484675: ('0.04601512817100965',)} args : 1347484675 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 : {21728821: [{'cartonnette': 21728846, 'flou': 21728847, 'autre_refus': 21728848, 'Teint_Dans_La_Masse': 21728849, 'environnement': 21728850, 'papier': 21728851, 'Carton_gris': 21728852, 'Carton_brun': 21728853, 'metal': 21728854, 'kraft': 21728855, 'plastique': 21728856, 'mal_croppe': 21728857}]} input_args_next_step : {1347485005: ('0.04601512817100965',), 1347484951: ('0.04601512817100965',), 1347484898: ('0.04601512817100965',), 1347484808: ('0.04601512817100965',), 1347484675: ('0.04601512817100965',), 21728821: ()} output_args : {21728821: [{'cartonnette': 21728846, 'flou': 21728847, 'autre_refus': 21728848, 'Teint_Dans_La_Masse': 21728849, 'environnement': 21728850, 'papier': 21728851, 'Carton_gris': 21728852, 'Carton_brun': 21728853, 'metal': 21728854, 'kraft': 21728855, 'plastique': 21728856, 'mal_croppe': 21728857}]} args : 21728821 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 :6, first value : ('0.04601512817100965',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21728821) 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 (1347485005,1347484951,1347484898,1347484808,1347484675) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347484675 begin to download photo : 1347484898 begin to download photo : 1347485005 download finish for photo 1347484675 begin to download photo : 1347484808 download finish for photo 1347484898 begin to download photo : 1347484951 download finish for photo 1347485005 download finish for photo 1347484808 download finish for photo 1347484951 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P21728821_26-03-2025_15_11_59.pdf 21728846 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=21728846 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347481599: '1742998051_1661597_1347478712_ad042090d54052049e2d47dcab530c84_rle_crop_3731080028_0.png', 1347484556: '1742998124_3365371_1347479359_dfba52ee16d25dde158e211d8ffce2b7_rle_crop_3731081255_0.png', 1347485278: '1742998227_4098792_1347480650_106d580121ced5617fb655d643716aff_rle_crop_3731081705_0.png', 1347486462: '1742998252_1668911_1347478763_aeba116d8c9e584f7a0a64a447a3fc04_rle_crop_3731083643_0.png', 1347486463: '1742998252_1668911_1347478763_aeba116d8c9e584f7a0a64a447a3fc04_rle_crop_3731083641_0.png', 1347486571: '1742998232_1668720_1347480866_f4e9cba9a9d9c54a4bb59a92b3197072_rle_crop_3731083566_0.png', 1347486573: '1742998232_1668720_1347480069_de1c18434d48a4b9dd355c5e6a724acf_rle_crop_3731083601_0.png', 1347486574: '1742998232_1668720_1347480019_c45dd7f48f715ec9189d6fd4bfc3ccc9_rle_crop_3731083684_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/a064ce337f088850e384a08bc6c348ba_35693384.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/81d315afd5d046e4378fca519186768b_97101081.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/85950da56232b290596e401ac6579754_38496428.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/4497fb6cd9b9c760eac007fec78370b5_67069817.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/4b45075a409d94b41a0a716699b6f596_75096430.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/86fa81f38b592e912b9ed64024bab6a5_65759974.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/27602deff41ac35cf338feefb69bc57b_56019528.png change filename to text .imagette217288461742998319/ imagette217288461742998319/1742998252_1668911_1347478763_aeba116d8c9e584f7a0a64a447a3fc04_rle_crop_3731083641_0.png.png imagette217288461742998319/1742998051_1661597_1347478712_ad042090d54052049e2d47dcab530c84_rle_crop_3731080028_0.png.png imagette217288461742998319/1742998232_1668720_1347480019_c45dd7f48f715ec9189d6fd4bfc3ccc9_rle_crop_3731083684_0.png.png imagette217288461742998319/1742998124_3365371_1347479359_dfba52ee16d25dde158e211d8ffce2b7_rle_crop_3731081255_0.png.png imagette217288461742998319/1742998252_1668911_1347478763_aeba116d8c9e584f7a0a64a447a3fc04_rle_crop_3731083643_0.png.png imagette217288461742998319/1742998232_1668720_1347480866_f4e9cba9a9d9c54a4bb59a92b3197072_rle_crop_3731083566_0.png.png imagette217288461742998319/1742998227_4098792_1347480650_106d580121ced5617fb655d643716aff_rle_crop_3731081705_0.png.png imagette217288461742998319/1742998232_1668720_1347480069_de1c18434d48a4b9dd355c5e6a724acf_rle_crop_3731083601_0.png.png imagette217288471742998319/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/897d365e3bb102359ffa535400521c77_4454043.png imagette217288461742998319 21728847 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=21728847 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217288471742998319 21728848 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=21728848 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347481580: '1742998051_1661597_1347479381_b504a85b02ce575117753a66a73d2bae_rle_crop_3731080005_0.png', 1347481581: '1742998051_1661597_1347479381_b504a85b02ce575117753a66a73d2bae_rle_crop_3731080003_0.png', 1347486490: '1742998232_1668720_1347480019_c45dd7f48f715ec9189d6fd4bfc3ccc9_rle_crop_3731083681_0.png', 1347486492: '1742998232_1668720_1347479972_076d29899cc5b73a1f704f01f8ad332e_rle_crop_3731083711_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/b7824ac8098c8f0f0ca80c5173fb6dbe_93069790.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c9817f642192709543c6c7696a14139a_23175813.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/bef5a5416f3e7a57cb1588be39bfa943_64629456.png change filename to text .imagette217288481742998319/ imagette217288481742998319/1742998051_1661597_1347479381_b504a85b02ce575117753a66a73d2bae_rle_crop_3731080005_0.png.png imagette217288481742998319/1742998232_1668720_1347480019_c45dd7f48f715ec9189d6fd4bfc3ccc9_rle_crop_3731083681_0.png.png imagette217288481742998319/1742998051_1661597_1347479381_b504a85b02ce575117753a66a73d2bae_rle_crop_3731080003_0.png.png imagette217288481742998319/1742998232_1668720_1347479972_076d29899cc5b73a1f704f01f8ad332e_rle_crop_3731083711_0.png.png imagette217288541742998320/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/3b585479872ff5d6b6b1ef62fc1d6f63_30731856.png imagette217288481742998319 21728854 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=21728854 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217288541742998320 21728855 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=21728855 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347485503: '1742998214_1668513_1347481357_74f084fac09538d506d965b5f8ec725d_rle_crop_3731081831_0.png'} change filename to text .imagette217288551742998320/ imagette217288551742998320/1742998214_1668513_1347481357_74f084fac09538d506d965b5f8ec725d_rle_crop_3731081831_0.png.png imagette217288561742998320/ imagette217288571742998320/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/5ecdae4a0f58a046df73224d31b962d0_20704067.png imagette217288551742998320 21728856 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=21728856 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217288561742998320 21728857 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=21728857 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217288571742998320 21728849 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=21728849 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347481545: '1742998051_1661597_1347479381_b504a85b02ce575117753a66a73d2bae_rle_crop_3731080010_0.png', 1347481546: '1742998051_1661597_1347478712_ad042090d54052049e2d47dcab530c84_rle_crop_3731080031_0.png', 1347485229: '1742998227_4098792_1347481529_b49af678b943b5c725fc9ec04046ac10_rle_crop_3731081600_0.png', 1347485233: '1742998227_4098792_1347480781_dc5c2ed0d3dcc5e91f525502b3079247_rle_crop_3731081662_0.png', 1347485236: '1742998227_4098792_1347480650_106d580121ced5617fb655d643716aff_rle_crop_3731081710_0.png', 1347485239: '1742998227_4098792_1347480594_f7683fa912c4c1ea75670d1076d031a5_rle_crop_3731081728_0.png', 1347485242: '1742998227_4098792_1347480555_cdf8ff2e424ad0189a97b13f384b7513_rle_crop_3731081743_0.png', 1347485245: '1742998227_4098792_1347480555_cdf8ff2e424ad0189a97b13f384b7513_rle_crop_3731081744_0.png', 1347485430: '1742998214_1668513_1347481427_048935ee1202697acce6e840ef579bfc_rle_crop_3731081820_0.png', 1347485432: '1742998214_1668513_1347481357_74f084fac09538d506d965b5f8ec725d_rle_crop_3731081832_0.png', 1347486386: '1742998252_1668911_1347478763_aeba116d8c9e584f7a0a64a447a3fc04_rle_crop_3731083647_0.png', 1347486387: '1742998252_1668911_1347478763_aeba116d8c9e584f7a0a64a447a3fc04_rle_crop_3731083649_0.png', 1347486391: '1742998252_1668911_1347478250_2a5584cacb5dc5bcbdd5ed058324c31a_rle_crop_3731083706_0.png', 1347486395: '1742998252_1668911_1347478250_2a5584cacb5dc5bcbdd5ed058324c31a_rle_crop_3731083702_0.png', 1347486400: '1742998252_1668911_1347478250_2a5584cacb5dc5bcbdd5ed058324c31a_rle_crop_3731083700_0.png', 1347486403: '1742998252_1668911_1347478250_2a5584cacb5dc5bcbdd5ed058324c31a_rle_crop_3731083701_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/cfbeda18459f0d1a1290385b7a8b2ca4_610701.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/9c1708776d51f7e0aa79c74bc95559e7_7036834.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/d859830b433002dd2aa24f01b5ab659b_84595417.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/ad4681c65ddc35680716a0f57b341839_69798441.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/d59c9447bb4abc556967071e25192e72_37044847.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/aba0978a7d7c256c5b6048702f51c7e1_64633510.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/8d94e814af164d3fce5acad279983318_49697234.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/63c59ab39346726076e85cd630a9cfe4_8065561.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/f06bc54c98d9e859c15b8aa7dfa0ab89_89472572.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/338e4faa14c359fb2971bdb010594472_60610327.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/3301584ac63c63064441781c8d752811_78501925.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/f178046e04c8350cfa9b60ea28644ac3_39754684.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/e19f31f270e72755ac556b240eda540c_50699694.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/7c48fae522a52e6120dec3fe2287087b_21807028.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/0bca650153a67ac21d9fb3c557d05ff6_63218548.png change filename to text .imagette217288491742998320/ imagette217288491742998320/1742998227_4098792_1347480650_106d580121ced5617fb655d643716aff_rle_crop_3731081710_0.png.png imagette217288491742998320/1742998051_1661597_1347478712_ad042090d54052049e2d47dcab530c84_rle_crop_3731080031_0.png.png imagette217288491742998320/1742998227_4098792_1347481529_b49af678b943b5c725fc9ec04046ac10_rle_crop_3731081600_0.png.png imagette217288491742998320/1742998227_4098792_1347480781_dc5c2ed0d3dcc5e91f525502b3079247_rle_crop_3731081662_0.png.png imagette217288491742998320/1742998252_1668911_1347478250_2a5584cacb5dc5bcbdd5ed058324c31a_rle_crop_3731083702_0.png.png imagette217288491742998320/1742998227_4098792_1347480555_cdf8ff2e424ad0189a97b13f384b7513_rle_crop_3731081744_0.png.png imagette217288491742998320/1742998252_1668911_1347478250_2a5584cacb5dc5bcbdd5ed058324c31a_rle_crop_3731083701_0.png.png imagette217288491742998320/1742998252_1668911_1347478763_aeba116d8c9e584f7a0a64a447a3fc04_rle_crop_3731083649_0.png.png imagette217288491742998320/1742998227_4098792_1347480594_f7683fa912c4c1ea75670d1076d031a5_rle_crop_3731081728_0.png.png imagette217288491742998320/1742998252_1668911_1347478250_2a5584cacb5dc5bcbdd5ed058324c31a_rle_crop_3731083706_0.png.png imagette217288491742998320/1742998051_1661597_1347479381_b504a85b02ce575117753a66a73d2bae_rle_crop_3731080010_0.png.png imagette217288491742998320/1742998252_1668911_1347478250_2a5584cacb5dc5bcbdd5ed058324c31a_rle_crop_3731083700_0.png.png imagette217288491742998320/1742998214_1668513_1347481427_048935ee1202697acce6e840ef579bfc_rle_crop_3731081820_0.png.png imagette217288491742998320/1742998227_4098792_1347480555_cdf8ff2e424ad0189a97b13f384b7513_rle_crop_3731081743_0.png.png imagette217288491742998320/1742998252_1668911_1347478763_aeba116d8c9e584f7a0a64a447a3fc04_rle_crop_3731083647_0.png.png imagette217288491742998320/1742998214_1668513_1347481357_74f084fac09538d506d965b5f8ec725d_rle_crop_3731081832_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c0f8c4417e9f9874ebf23f1a396fb24e_37676438.png imagette217288491742998320 21728852 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=21728852 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347485261: '1742998227_4098792_1347481529_b49af678b943b5c725fc9ec04046ac10_rle_crop_3731081597_0.png', 1347485454: '1742998214_1668513_1347481427_048935ee1202697acce6e840ef579bfc_rle_crop_3731081823_0.png', 1347486523: '1742998232_1668720_1347480866_f4e9cba9a9d9c54a4bb59a92b3197072_rle_crop_3731083567_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/3bfe6208dd451bed433526f6384069d3_95392971.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/93d20b273fbe460e6921af07a5c24c93_17766701.png change filename to text .imagette217288521742998320/ imagette217288521742998320/1742998232_1668720_1347480866_f4e9cba9a9d9c54a4bb59a92b3197072_rle_crop_3731083567_0.png.png imagette217288521742998320/1742998227_4098792_1347481529_b49af678b943b5c725fc9ec04046ac10_rle_crop_3731081597_0.png.png imagette217288521742998320/1742998214_1668513_1347481427_048935ee1202697acce6e840ef579bfc_rle_crop_3731081823_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/931d64172e066d4f3efb1fe6cc834128_62128511.png imagette217288521742998320 21728853 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=21728853 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347485315: '1742998227_4098792_1347480781_dc5c2ed0d3dcc5e91f525502b3079247_rle_crop_3731081663_0.png', 1347485321: '1742998227_4098792_1347480650_106d580121ced5617fb655d643716aff_rle_crop_3731081707_0.png', 1347485327: '1742998227_4098792_1347480650_106d580121ced5617fb655d643716aff_rle_crop_3731081709_0.png', 1347485475: '1742998214_1668513_1347481357_74f084fac09538d506d965b5f8ec725d_rle_crop_3731081837_0.png', 1347486614: '1742998232_1668720_1347480866_f4e9cba9a9d9c54a4bb59a92b3197072_rle_crop_3731083569_0.png', 1347486615: '1742998232_1668720_1347480019_c45dd7f48f715ec9189d6fd4bfc3ccc9_rle_crop_3731083687_0.png', 1347486616: '1742998232_1668720_1347479883_e7ad0f130ede51a20cbefaba8303a86f_rle_crop_3731083755_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/39d93d56f13d67ca9d926a217872762b_17171680.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/4199c011d27e8cbb64525441101f8214_11971156.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c217a60d1caaebd69961e10073a402d4_10527861.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/603294942023dbe7a1eb6bcd2a6e98ef_78970594.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/305f882d8a2849e7b4800996a0b61b17_60142067.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/2babbb45375873cec456906b2fd22eb2_39145323.png change filename to text .imagette217288531742998321/ imagette217288531742998321/1742998232_1668720_1347480019_c45dd7f48f715ec9189d6fd4bfc3ccc9_rle_crop_3731083687_0.png.png imagette217288531742998321/1742998227_4098792_1347480650_106d580121ced5617fb655d643716aff_rle_crop_3731081707_0.png.png imagette217288531742998321/1742998227_4098792_1347480650_106d580121ced5617fb655d643716aff_rle_crop_3731081709_0.png.png imagette217288531742998321/1742998214_1668513_1347481357_74f084fac09538d506d965b5f8ec725d_rle_crop_3731081837_0.png.png imagette217288531742998321/1742998232_1668720_1347480866_f4e9cba9a9d9c54a4bb59a92b3197072_rle_crop_3731083569_0.png.png imagette217288531742998321/1742998227_4098792_1347480781_dc5c2ed0d3dcc5e91f525502b3079247_rle_crop_3731081663_0.png.png imagette217288531742998321/1742998232_1668720_1347479883_e7ad0f130ede51a20cbefaba8303a86f_rle_crop_3731083755_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/ba1f1110d16f4b41d45a338a1670c01b_46691111.png imagette217288531742998321 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21728821 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21728858,21728859,21728860,21728861,21728862,21728863,21728864,21728865,21728866,21728867,21728868,21728869?tags=cartonnette,flou,autre_refus,Teint_Dans_La_Masse,environnement,papier,Carton_gris,Carton_brun,metal,kraft,plastique,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1347485005] : ('0.04601512817100965',) no score found for photo 1347485005 We are sending mail with results at report@fotonower.com args[1347484951] : ('0.04601512817100965',) no score found for photo 1347484951 We are sending mail with results at report@fotonower.com args[1347484898] : ('0.04601512817100965',) no score found for photo 1347484898 We are sending mail with results at report@fotonower.com args[1347484808] : ('0.04601512817100965',) no score found for photo 1347484808 We are sending mail with results at report@fotonower.com args[1347484675] : ('0.04601512817100965',) no score found for photo 1347484675 We are sending mail with results at report@fotonower.com refus_total : 0.04601512817100965 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=21728821 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_P21728821_26-03-2025_15_11_59.pdf results_Auto_P21728821_26-03-2025_15_11_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21728821_26-03-2025_15_11_59.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','21728821','results_Auto_P21728821_26-03-2025_15_11_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21728821_26-03-2025_15_11_59.pdf','pdf','','0.16','0.04601512817100965') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21728821]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347485005, 1347484951, 1347484898, 1347484808, 1347484675] map_info['map_portfolio_photo'] : {21728821: [1347485005, 1347484951, 1347484898, 1347484808, 1347484675, 1347482889, 1347482819, 1347482736, 1347481529, 1347481427, 1347481357, 1347480866, 1347480781, 1347480650, 1347480594, 1347480555, 1347480140, 1347480069, 1347480019, 1347479972, 1347479883, 1347479381, 1347479359, 1347478763, 1347478712, 1347478279, 1347478250]} final : False mtd_id 4302 list_pids : [1347485005, 1347484951, 1347484898, 1347484808, 1347484675] 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, '2692782') ('4302', '21728821', '1347485005', None, None, None, None, None, '2692782') ('4302', None, None, None, None, None, None, None, '2692782') ('4302', '21728821', '1347484951', None, None, None, None, None, '2692782') ('4302', None, None, None, None, None, None, None, '2692782') ('4302', '21728821', '1347484898', None, None, None, None, None, '2692782') ('4302', None, None, None, None, None, None, None, '2692782') ('4302', '21728821', '1347484808', None, None, None, None, None, '2692782') ('4302', None, None, None, None, None, None, None, '2692782') ('4302', '21728821', '1347484675', None, None, None, None, None, '2692782') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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', '21728821', '1347485005', None, None, None, None, None, '2692782'), ('4302', '21728821', '1347484951', None, None, None, None, None, '2692782'), ('4302', '21728821', '1347484898', None, None, None, None, None, '2692782'), ('4302', '21728821', '1347484808', None, None, None, None, None, '2692782'), ('4302', '21728821', '1347484675', None, None, None, None, None, '2692782')] time used for this insertion : 0.013960599899291992 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.48241925239563 time spend to save output : 0.014233589172363281 total time spend for step 4 : 3.496652841567993 step5:split_time_score Wed Mar 26 15:12:02 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 : ['21728821'] 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 : [('21728821',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21728821) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347485005: {'path': 'temp/1742998319_3189171_1347485005_c75a081f9d9a955be8a9a88306e541de.jpg', 'extension': 'jpg'}, 1347484675: {'path': 'temp/1742998319_3189171_1347484675_9d51a3d8302c53a9ee71a6fdba4f684c.jpg', 'extension': 'jpg'}, 1347484808: {'path': 'temp/1742998319_3189171_1347484808_ccde0a015f7832b7afb3d07904520b19.jpg', 'extension': 'jpg'}, 1347484898: {'path': 'temp/1742998319_3189171_1347484898_19bf5307b4efaa223f39c0a680170b7b.jpg', 'extension': 'jpg'}, 1347484951: {'path': 'temp/1742998319_3189171_1347484951_fd55a407219746ed89d8a05b23514689.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 = 21728821; (('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 = 21728821 group by h (('15', 27),) 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=21728821 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 (21728821) 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 (21728821) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26032025 21728821 Nombre de photos uploadées : 27 / 23040 (0%) 26032025 21728821 Nombre de photos taguées (types de déchets): 0 / 27 (0%) 26032025 21728821 Nombre de photos taguées (volume) : 0 / 27 (0%) [{'photo_id': 1347478279, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/d8ded52efc15118906e033b0d9f0658a.jpg', 'username': None, 'uploaded_at': 1742997794, 'text': 'image_26032025_15_00_44_10142.jpg'}, {'photo_id': 1347478250, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/2a5584cacb5dc5bcbdd5ed058324c31a.jpg', 'username': None, 'uploaded_at': 1742997794, 'text': 'image_26032025_15_01_44_10143.jpg'}, {'photo_id': 1347478763, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/aeba116d8c9e584f7a0a64a447a3fc04.jpg', 'username': None, 'uploaded_at': 1742997854, 'text': 'image_26032025_15_01_54_10139.jpg'}, {'photo_id': 1347478712, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/ad042090d54052049e2d47dcab530c84.jpg', 'username': None, 'uploaded_at': 1742997854, 'text': 'image_26032025_15_02_04_010159m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ??????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002097606658935547 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21728821, '2025-03-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1689284,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.032045841217041016 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= 1689284 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1689284, 'dashboard_run_id': 1697921, 'mtr_portfolio_id': 21725483, 'dashboard_result_id': 9635681, '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_P21725483_26-03-2025_14_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21725513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21725515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21725516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21725517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21725518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21725519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21725520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21725521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21725522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21725523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21725524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21725525, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1697921, 'mtr_portfolio_id': 21726952, 'dashboard_result_id': 9635682, '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_P21726952_26-03-2025_14_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21726983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21726984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21726985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21726986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21726987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21726988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21726989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21726990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21726991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21726992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21726993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21726994, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1697921, 'mtr_portfolio_id': 21728821, 'dashboard_result_id': 9635683, '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_P21728821_26-03-2025_15_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21728846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21728847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21728848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21728849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21728850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21728851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21728852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21728853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21728854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21728855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21728856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21728857, '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 = 21725483 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': 2692265, 'mtr_portfolio_id': 21725483, 'created_at': datetime.datetime(2025, 3, 26, 14, 32, 59), 'result': '0.0401361118311266', 'result_long': None, 'result_double': None}] Qualite : 0.0401361118311266 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21725483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21725483_26-03-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21725483 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_P21725483_26-03-2025_14_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21725513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21725515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21725516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21725517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21725518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21725519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21725520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21725521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21725522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21725523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21725524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21725525, 'pht': 3726}}" where mtr_portfolio_id = 21725483 and dashboard_run_id = 1697921 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`=21725483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9635681, 0.0401361118311266, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21725483_26-03-2025_14_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21725513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21725515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21725516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21725517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21725518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21725519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21725520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21725521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21725522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21725523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21725524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21725525, '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 = 21726952 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': 2692533, 'mtr_portfolio_id': 21726952, 'created_at': datetime.datetime(2025, 3, 26, 14, 48, 59), 'result': '0.04561189147009174', 'result_long': None, 'result_double': None}] Qualite : 0.04561189147009174 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21726952 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21726952_26-03-2025_14_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21726952 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_P21726952_26-03-2025_14_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21726983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21726984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21726985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21726986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21726987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21726988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21726989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21726990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21726991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21726992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21726993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21726994, 'pht': 3726}}" where mtr_portfolio_id = 21726952 and dashboard_run_id = 1697921 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`=21726952 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9635682, 0.04561189147009174, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21726952_26-03-2025_14_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21726983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21726984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21726985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21726986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21726987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21726988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21726989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21726990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21726991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21726992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21726993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21726994, '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 = 21728821 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': 2692782, 'mtr_portfolio_id': 21728821, 'created_at': datetime.datetime(2025, 3, 26, 15, 11, 58), 'result': '0.04601512817100965', 'result_long': None, 'result_double': None}] Qualite : 0.04601512817100965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21728821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21728821_26-03-2025_15_11_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21728821 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_P21728821_26-03-2025_15_11_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21728846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21728847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21728848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21728849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21728850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21728851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21728852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21728853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21728854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21728855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21728856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21728857, 'pht': 3726}}" where mtr_portfolio_id = 21728821 and dashboard_run_id = 1697921 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`=21728821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9635683, 0.04601512817100965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21728821_26-03-2025_15_11_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21728846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21728847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21728848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21728849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21728850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21728851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21728852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21728853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21728854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21728855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21728856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21728857, '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 (21725483,21726952,21728821) result : ((1347467304,), (1347467306,), (1347467309,), (1347467314,), (1347467353,), (1347467356,), (1347467360,), (1347467365,), (1347467368,), (1347467373,), (1347467414,), (1347467416,), (1347467419,), (1347467423,), (1347467466,), (1347467470,), (1347467473,), (1347467480,), (1347467488,), (1347467507,), (1347467568,), (1347467569,), (1347467570,), (1347467860,), (1347467864,), (1347467875,), (1347467895,), (1347467901,), (1347467905,), (1347467966,), (1347467995,), (1347468023,), (1347468056,), (1347468133,), (1347468137,), (1347468142,), (1347468156,), (1347468173,), (1347468257,), (1347468260,), (1347468261,), (1347468267,), (1347468359,), (1347468362,), (1347468385,), (1347468461,), (1347468519,), (1347468576,), (1347469012,), (1347469049,), (1347469051,), (1347469064,), (1347469068,), (1347469297,), (1347469317,), (1347469320,), (1347469386,), (1347469390,), (1347469463,), (1347469551,), (1347469675,), (1347469737,), (1347470166,), (1347470200,), (1347470220,), (1347470265,), (1347470443,), (1347470415,), (1347470776,), (1347470788,), (1347470796,), (1347471049,), (1347471085,), (1347471168,), (1347471487,), (1347471507,), (1347471522,), (1347471546,), (1347471554,), (1347471721,), (1347471742,), (1347471755,), (1347471758,), (1347471833,), (1347471843,), (1347471860,), (1347471881,), (1347472049,), (1347472075,), (1347472092,), (1347472278,), (1347472304,), (1347472315,), (1347472321,), (1347472327,), (1347472358,), (1347472360,), (1347472362,), (1347472388,), (1347472483,), (1347472486,), (1347472493,), (1347472497,), (1347472502,), (1347472830,), (1347472913,), (1347472992,), (1347473065,), (1347473215,), (1347473225,), (1347473235,), (1347473407,), (1347473411,), (1347473441,), (1347473469,), (1347473500,), (1347473529,), (1347473577,), (1347473599,), (1347473607,), (1347473612,), (1347473617,), (1347473646,), (1347473648,), (1347473657,), (1347473676,), (1347473679,), (1347474142,), (1347478250,), (1347478279,), (1347478712,), (1347478763,), (1347479359,), (1347479381,), (1347479883,), (1347479972,), (1347480019,), (1347480069,), (1347480140,), (1347480555,), (1347480594,), (1347480650,), (1347480781,), (1347480866,), (1347481357,), (1347481427,), (1347481529,), (1347482736,), (1347482819,), (1347482889,), (1347484675,), (1347484808,), (1347484898,), (1347484951,), (1347485005,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26032025': {'nb_upload': 27, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21728821]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347485005, 1347484951, 1347484898, 1347484808, 1347484675] map_info['map_portfolio_photo'] : {21728821: [1347485005, 1347484951, 1347484898, 1347484808, 1347484675, 1347482889, 1347482819, 1347482736, 1347481529, 1347481427, 1347481357, 1347480866, 1347480781, 1347480650, 1347480594, 1347480555, 1347480140, 1347480069, 1347480019, 1347479972, 1347479883, 1347479381, 1347479359, 1347478763, 1347478712, 1347478279, 1347478250]} final : True mtd_id 4302 list_pids : [1347485005, 1347484951, 1347484898, 1347484808, 1347484675] Looping around the photos to save general results len do output : 1 /21728821Didn'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, '2692782') ('4302', '21728821', '1347485005', None, None, None, None, None, '2692782') ('4302', None, None, None, None, None, None, None, '2692782') ('4302', '21728821', '1347484951', None, None, None, None, None, '2692782') ('4302', None, None, None, None, None, None, None, '2692782') ('4302', '21728821', '1347484898', None, None, None, None, None, '2692782') ('4302', None, None, None, None, None, None, None, '2692782') ('4302', '21728821', '1347484808', None, None, None, None, None, '2692782') ('4302', None, None, None, None, None, None, None, '2692782') ('4302', '21728821', '1347484675', None, None, None, None, None, '2692782') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '21728821', 'None', None, None, None, None, '2692782'), ('4302', '21728821', '1347485005', None, None, None, None, None, '2692782'), ('4302', '21728821', '1347484951', None, None, None, None, None, '2692782'), ('4302', '21728821', '1347484898', None, None, None, None, None, '2692782'), ('4302', '21728821', '1347484808', None, None, None, None, None, '2692782'), ('4302', '21728821', '1347484675', None, None, None, None, None, '2692782')] time used for this insertion : 0.01353001594543457 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.29572224617004395 time spend to save output : 0.013806581497192383 total time spend for step 5 : 0.30952882766723633 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 (2692782) 2.12user 2.62system 0:08.33elapsed 57%CPU (0avgtext+0avgdata 157208maxresident)k 6816inputs+7960outputs (47major+63800minor)pagefaults 0swaps