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 : 2736783 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 (2558801) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2558801) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20293740 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2558801'] with mtr_portfolio_ids : ['20293740'] and first list_photo_ids : [] new path : /proc/2736783/ Name: python3 Umask: 0002 State: R (running) Tgid: 2736783 Ngid: 0 Pid: 2736783 PPid: 2736782 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2736783 NSpid: 2736783 NSpgid: 2734519 NSsid: 2734519 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98460 kB VmRSS: 98460 kB RssAnon: 59752 kB RssFile: 38708 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 616 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: 48 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2736783', 'Ngid': '0', 'Pid': '2736783', 'PPid': '2736782', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2736783', 'NSpid': '2736783', 'NSpgid': '2734519', 'NSsid': '2734519', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98460 kB', 'VmRSS': '98460 kB', 'RssAnon': '59752 kB', 'RssFile': '38708 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '616 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': '48', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '2736783', '1106840', '0', '1106840', '865592', '98460', b'', 'marlene', '2558801') 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 (20293740) 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 (2558801 ) ) 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 (20293740) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1335160749, 'portfolio_id': 20293740}, {'photo_id': 1335160725, 'portfolio_id': 20293740}, {'photo_id': 1335160713, 'portfolio_id': 20293740}, {'photo_id': 1335160707, 'portfolio_id': 20293740}, {'photo_id': 1335160666, 'portfolio_id': 20293740}, {'photo_id': 1335160481, 'portfolio_id': 20293740}, {'photo_id': 1335160450, 'portfolio_id': 20293740}, {'photo_id': 1335160390, 'portfolio_id': 20293740}, {'photo_id': 1335160365, 'portfolio_id': 20293740}, {'photo_id': 1335160288, 'portfolio_id': 20293740}, {'photo_id': 1335160237, 'portfolio_id': 20293740}, {'photo_id': 1335160217, 'portfolio_id': 20293740}, {'photo_id': 1335160166, 'portfolio_id': 20293740}, {'photo_id': 1335160096, 'portfolio_id': 20293740}, {'photo_id': 1335160032, 'portfolio_id': 20293740}, {'photo_id': 1335159889, 'portfolio_id': 20293740}, {'photo_id': 1335159825, 'portfolio_id': 20293740}, {'photo_id': 1335159781, 'portfolio_id': 20293740}, {'photo_id': 1335159716, 'portfolio_id': 20293740}, {'photo_id': 1335159175, 'portfolio_id': 20293740}, {'photo_id': 1335159097, 'portfolio_id': 20293740}, {'photo_id': 1335159014, 'portfolio_id': 20293740}, {'photo_id': 1335158956, 'portfolio_id': 20293740}, {'photo_id': 1335158888, 'portfolio_id': 20293740}, {'photo_id': 1335158829, 'portfolio_id': 20293740}, {'photo_id': 1335158631, 'portfolio_id': 20293740}, {'photo_id': 1335158628, 'portfolio_id': 20293740}, {'photo_id': 1335158624, 'portfolio_id': 20293740}, {'photo_id': 1335158621, 'portfolio_id': 20293740}, {'photo_id': 1335158581, 'portfolio_id': 20293740}, {'photo_id': 1335158578, 'portfolio_id': 20293740}, {'photo_id': 1335158575, 'portfolio_id': 20293740}, {'photo_id': 1335158572, 'portfolio_id': 20293740}] map_portfolio_id_photo_id: {20293740: [1335160749, 1335160725, 1335160713, 1335160707, 1335160666, 1335160481, 1335160450, 1335160390, 1335160365, 1335160288, 1335160237, 1335160217, 1335160166, 1335160096, 1335160032, 1335159889, 1335159825, 1335159781, 1335159716, 1335159175, 1335159097, 1335159014, 1335158956, 1335158888, 1335158829, 1335158631, 1335158628, 1335158624, 1335158621, 1335158581, 1335158578, 1335158575, 1335158572]} ##### 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.01503443717956543 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Feb 6 08:38: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 (20293740) 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 : 20293740 get user id for portfolio 20293740 get sub ptf for main ptf 20293740, type 3726 and hashtags ['plastique', 'kraft', 'autre_refus', 'environnement', 'mal_croppe', 'flou', 'Teint_Dans_La_Masse', 'cartonnette', 'Carton_gris', 'papier', 'Carton_brun', 'metal'] 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`=20293740 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','kraft','autre_refus','environnement','mal_croppe','flou','Teint_Dans_La_Masse','cartonnette','Carton_gris','papier','Carton_brun','metal')) 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`=20293740 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','kraft','autre_refus','environnement','mal_croppe','flou','Teint_Dans_La_Masse','cartonnette','Carton_gris','papier','Carton_brun','metal')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 20293740, 'sub_port_id': 20293771, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984421, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 32, 58)}, 'Carton_gris': {'main_port_id': 20293740, 'sub_port_id': 20293772, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984422, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 32, 58)}, 'metal': {'main_port_id': 20293740, 'sub_port_id': 20293773, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984423, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 32, 58)}, 'environnement': {'main_port_id': 20293740, 'sub_port_id': 20293774, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984424, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 32, 58)}, 'autre_refus': {'main_port_id': 20293740, 'sub_port_id': 20293775, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984425, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 32, 58)}, 'papier': {'main_port_id': 20293740, 'sub_port_id': 20293776, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984426, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 32, 58)}, 'plastique': {'main_port_id': 20293740, 'sub_port_id': 20293777, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984427, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 32, 58)}, 'Carton_brun': {'main_port_id': 20293740, 'sub_port_id': 20293778, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984428, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 32, 58)}, 'flou': {'main_port_id': 20293740, 'sub_port_id': 20293779, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984429, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 32, 58)}, 'kraft': {'main_port_id': 20293740, 'sub_port_id': 20293780, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984430, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 32, 58)}, 'cartonnette': {'main_port_id': 20293740, 'sub_port_id': 20293781, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984431, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 32, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20293740, 'sub_port_id': 20293782, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984432, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 32, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20293771 , 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=20293740 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 (20293771) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20293740) result : ((1335158572,), (1335158575,), (1335158578,), (1335158581,), (1335158621,), (1335158624,), (1335158628,), (1335158631,), (1335158829,), (1335158888,), (1335158956,), (1335159014,), (1335159097,), (1335159175,), (1335159716,), (1335159781,), (1335159825,), (1335159889,), (1335160032,), (1335160096,), (1335160166,), (1335160217,), (1335160237,), (1335160288,), (1335160365,), (1335160390,), (1335160450,), (1335160481,), (1335160666,), (1335160707,), (1335160713,), (1335160725,), (1335160749,)) 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 20293772 , 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=20293740 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 (20293772) result : ((1335160270,), (1335161252,), (1335161346,), (1335161349,), (1335161351,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20293740) result : ((1335158572,), (1335158575,), (1335158578,), (1335158581,), (1335158621,), (1335158624,), (1335158628,), (1335158631,), (1335158829,), (1335158888,), (1335158956,), (1335159014,), (1335159097,), (1335159175,), (1335159716,), (1335159781,), (1335159825,), (1335159889,), (1335160032,), (1335160096,), (1335160166,), (1335160217,), (1335160237,), (1335160288,), (1335160365,), (1335160390,), (1335160450,), (1335160481,), (1335160666,), (1335160707,), (1335160713,), (1335160725,), (1335160749,)) 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 20293773 , 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=20293740 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 (20293773) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20293740) result : ((1335158572,), (1335158575,), (1335158578,), (1335158581,), (1335158621,), (1335158624,), (1335158628,), (1335158631,), (1335158829,), (1335158888,), (1335158956,), (1335159014,), (1335159097,), (1335159175,), (1335159716,), (1335159781,), (1335159825,), (1335159889,), (1335160032,), (1335160096,), (1335160166,), (1335160217,), (1335160237,), (1335160288,), (1335160365,), (1335160390,), (1335160450,), (1335160481,), (1335160666,), (1335160707,), (1335160713,), (1335160725,), (1335160749,)) 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 20293774 , 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=20293740 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 (20293774) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20293740) result : ((1335158572,), (1335158575,), (1335158578,), (1335158581,), (1335158621,), (1335158624,), (1335158628,), (1335158631,), (1335158829,), (1335158888,), (1335158956,), (1335159014,), (1335159097,), (1335159175,), (1335159716,), (1335159781,), (1335159825,), (1335159889,), (1335160032,), (1335160096,), (1335160166,), (1335160217,), (1335160237,), (1335160288,), (1335160365,), (1335160390,), (1335160450,), (1335160481,), (1335160666,), (1335160707,), (1335160713,), (1335160725,), (1335160749,)) 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 20293775 , 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=20293740 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 (20293775) result : ((1335160268,), (1335161222,), (1335161295,), (1335161300,), (1335161302,), (1335161304,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20293740) result : ((1335158572,), (1335158575,), (1335158578,), (1335158581,), (1335158621,), (1335158624,), (1335158628,), (1335158631,), (1335158829,), (1335158888,), (1335158956,), (1335159014,), (1335159097,), (1335159175,), (1335159716,), (1335159781,), (1335159825,), (1335159889,), (1335160032,), (1335160096,), (1335160166,), (1335160217,), (1335160237,), (1335160288,), (1335160365,), (1335160390,), (1335160450,), (1335160481,), (1335160666,), (1335160707,), (1335160713,), (1335160725,), (1335160749,)) 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 20293776 , 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=20293740 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 (20293776) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20293740) result : ((1335158572,), (1335158575,), (1335158578,), (1335158581,), (1335158621,), (1335158624,), (1335158628,), (1335158631,), (1335158829,), (1335158888,), (1335158956,), (1335159014,), (1335159097,), (1335159175,), (1335159716,), (1335159781,), (1335159825,), (1335159889,), (1335160032,), (1335160096,), (1335160166,), (1335160217,), (1335160237,), (1335160288,), (1335160365,), (1335160390,), (1335160450,), (1335160481,), (1335160666,), (1335160707,), (1335160713,), (1335160725,), (1335160749,)) 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 20293777 , 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=20293740 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 (20293777) result : ((1335160338,), (1335161296,), (1335161421,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20293740) result : ((1335158572,), (1335158575,), (1335158578,), (1335158581,), (1335158621,), (1335158624,), (1335158628,), (1335158631,), (1335158829,), (1335158888,), (1335158956,), (1335159014,), (1335159097,), (1335159175,), (1335159716,), (1335159781,), (1335159825,), (1335159889,), (1335160032,), (1335160096,), (1335160166,), (1335160217,), (1335160237,), (1335160288,), (1335160365,), (1335160390,), (1335160450,), (1335160481,), (1335160666,), (1335160707,), (1335160713,), (1335160725,), (1335160749,)) 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 20293778 , 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=20293740 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 (20293778) result : ((1335160286,), (1335160287,), (1335161278,), (1335161279,), (1335161407,), (1335161409,), (1335161411,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20293740) result : ((1335158572,), (1335158575,), (1335158578,), (1335158581,), (1335158621,), (1335158624,), (1335158628,), (1335158631,), (1335158829,), (1335158888,), (1335158956,), (1335159014,), (1335159097,), (1335159175,), (1335159716,), (1335159781,), (1335159825,), (1335159889,), (1335160032,), (1335160096,), (1335160166,), (1335160217,), (1335160237,), (1335160288,), (1335160365,), (1335160390,), (1335160450,), (1335160481,), (1335160666,), (1335160707,), (1335160713,), (1335160725,), (1335160749,)) 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 20293779 , 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=20293740 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 (20293779) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20293740) result : ((1335158572,), (1335158575,), (1335158578,), (1335158581,), (1335158621,), (1335158624,), (1335158628,), (1335158631,), (1335158829,), (1335158888,), (1335158956,), (1335159014,), (1335159097,), (1335159175,), (1335159716,), (1335159781,), (1335159825,), (1335159889,), (1335160032,), (1335160096,), (1335160166,), (1335160217,), (1335160237,), (1335160288,), (1335160365,), (1335160390,), (1335160450,), (1335160481,), (1335160666,), (1335160707,), (1335160713,), (1335160725,), (1335160749,)) 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 20293780 , 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=20293740 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 (20293780) result : ((1335160353,), (1335161347,), (1335161470,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20293740) result : ((1335158572,), (1335158575,), (1335158578,), (1335158581,), (1335158621,), (1335158624,), (1335158628,), (1335158631,), (1335158829,), (1335158888,), (1335158956,), (1335159014,), (1335159097,), (1335159175,), (1335159716,), (1335159781,), (1335159825,), (1335159889,), (1335160032,), (1335160096,), (1335160166,), (1335160217,), (1335160237,), (1335160288,), (1335160365,), (1335160390,), (1335160450,), (1335160481,), (1335160666,), (1335160707,), (1335160713,), (1335160725,), (1335160749,)) 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 20293781 , 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=20293740 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 (20293781) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20293740) result : ((1335158572,), (1335158575,), (1335158578,), (1335158581,), (1335158621,), (1335158624,), (1335158628,), (1335158631,), (1335158829,), (1335158888,), (1335158956,), (1335159014,), (1335159097,), (1335159175,), (1335159716,), (1335159781,), (1335159825,), (1335159889,), (1335160032,), (1335160096,), (1335160166,), (1335160217,), (1335160237,), (1335160288,), (1335160365,), (1335160390,), (1335160450,), (1335160481,), (1335160666,), (1335160707,), (1335160713,), (1335160725,), (1335160749,)) 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 20293782 , 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=20293740 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 (20293782) result : ((1335160266,), (1335161186,), (1335161265,), (1335161267,), (1335161269,), (1335161271,), (1335161273,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20293740) result : ((1335158572,), (1335158575,), (1335158578,), (1335158581,), (1335158621,), (1335158624,), (1335158628,), (1335158631,), (1335158829,), (1335158888,), (1335158956,), (1335159014,), (1335159097,), (1335159175,), (1335159716,), (1335159781,), (1335159825,), (1335159889,), (1335160032,), (1335160096,), (1335160166,), (1335160217,), (1335160237,), (1335160288,), (1335160365,), (1335160390,), (1335160450,), (1335160481,), (1335160666,), (1335160707,), (1335160713,), (1335160725,), (1335160749,)) 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`=20293740 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','kraft','autre_refus','environnement','mal_croppe','flou','Teint_Dans_La_Masse','cartonnette','Carton_gris','papier','Carton_brun','metal')) 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`=20293740 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','kraft','autre_refus','environnement','mal_croppe','flou','Teint_Dans_La_Masse','cartonnette','Carton_gris','papier','Carton_brun','metal')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 20293740, 'sub_port_id': 20293784, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984433, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 33)}, 'Carton_gris': {'main_port_id': 20293740, 'sub_port_id': 20293785, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984434, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 33)}, 'metal': {'main_port_id': 20293740, 'sub_port_id': 20293786, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984435, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 33)}, 'environnement': {'main_port_id': 20293740, 'sub_port_id': 20293787, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984436, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 33)}, 'autre_refus': {'main_port_id': 20293740, 'sub_port_id': 20293788, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984437, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 33)}, 'papier': {'main_port_id': 20293740, 'sub_port_id': 20293789, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984438, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 33)}, 'plastique': {'main_port_id': 20293740, 'sub_port_id': 20293790, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984439, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 33)}, 'Carton_brun': {'main_port_id': 20293740, 'sub_port_id': 20293791, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984440, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 33)}, 'flou': {'main_port_id': 20293740, 'sub_port_id': 20293792, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984441, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 33)}, 'kraft': {'main_port_id': 20293740, 'sub_port_id': 20293793, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984442, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 33)}, 'cartonnette': {'main_port_id': 20293740, 'sub_port_id': 20293794, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984443, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 33), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 20293740, 'sub_port_id': 20293795, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12984444, 'last_updated_at': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 8, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 8, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20293784,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20293771 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20293785,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20293772 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20293786,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20293773 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20293787,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20293774 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20293788,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20293775 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20293789,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20293776 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20293790,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20293777 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20293791,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20293778 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20293792,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20293779 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20293793,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20293780 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20293794,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20293781 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20293795,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20293782 lien utilise dans velours : https://www.fotonower.com/velours/20293784,20293785,20293786,20293787,20293788,20293789,20293790,20293791,20293792,20293793,20293794,20293795?tags=mal_croppe,Carton_gris,metal,environnement,autre_refus,papier,plastique,Carton_brun,flou,kraft,cartonnette,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20293740]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1335160749, 1335160725, 1335160713, 1335160707, 1335160666, 1335160481, 1335160450, 1335160390, 1335160365, 1335160288] map_info['map_portfolio_photo'] : {20293740: [1335160749, 1335160725, 1335160713, 1335160707, 1335160666, 1335160481, 1335160450, 1335160390, 1335160365, 1335160288, 1335160237, 1335160217, 1335160166, 1335160096, 1335160032, 1335159889, 1335159825, 1335159781, 1335159716, 1335159175, 1335159097, 1335159014, 1335158956, 1335158888, 1335158829, 1335158631, 1335158628, 1335158624, 1335158621, 1335158581, 1335158578, 1335158575, 1335158572]} final : False mtd_id 4302 list_pids : [1335160749, 1335160725, 1335160713, 1335160707, 1335160666, 1335160481, 1335160450, 1335160390, 1335160365, 1335160288] Looping around the photos to save general results len do output : 1 /20293740. 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, '2558801') ('4302', '20293740', '1335160749', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160725', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160713', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160707', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160666', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160481', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160450', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160390', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160365', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160288', None, None, None, None, None, '2558801') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20293740', "{'mal_croppe': 20293771, 'Carton_gris': 20293772, 'metal': 20293773, 'environnement': 20293774, 'autre_refus': 20293775, 'papier': 20293776, 'plastique': 20293777, 'Carton_brun': 20293778, 'flou': 20293779, 'kraft': 20293780, 'cartonnette': 20293781, 'Teint_Dans_La_Masse': 20293782}", None, None, None, None, '2558801'), ('4302', '20293740', '1335160749', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160725', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160713', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160707', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160666', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160481', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160450', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160390', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160365', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160288', None, None, None, None, None, '2558801')] time used for this insertion : 1.8586421012878418 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.385254144668579 time spend to save output : 1.858914852142334 total time spend for step 1 : 3.244168996810913 step2:final Thu Feb 6 08:39:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20293740) 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 20293740 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1335158581,1335158578,1335158575,1335158572,1335158631,1335158628,1335158624,1335158621,1335159175,1335159097,1335159014,1335158956,1335158888,1335158829,1335159825,1335159781,1335159716,1335160237,1335160217,1335160166,1335160096,1335160032,1335159889,1335160481,1335160450,1335160390,1335160365,1335160288,1335160749,1335160725,1335160713,1335160707,1335160666); 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([20293740]) Inside saveOutput : final : False verbose : True original output for save of step final : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ('0.03841345693102795',), 1335160666: ('0.03841345693102795',), 1335160481: ('0.03841345693102795',), 1335160450: ('0.03841345693102795',), 1335160390: ('0.03841345693102795',), 1335160365: ('0.03841345693102795',), 1335160288: ('0.03841345693102795',)} new output for save of step final : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ('0.03841345693102795',), 1335160666: ('0.03841345693102795',), 1335160481: ('0.03841345693102795',), 1335160450: ('0.03841345693102795',), 1335160390: ('0.03841345693102795',), 1335160365: ('0.03841345693102795',), 1335160288: ('0.03841345693102795',)} [1335160749, 1335160725, 1335160713, 1335160707, 1335160666, 1335160481, 1335160450, 1335160390, 1335160365, 1335160288] map_info['map_portfolio_photo'] : {20293740: [1335160749, 1335160725, 1335160713, 1335160707, 1335160666, 1335160481, 1335160450, 1335160390, 1335160365, 1335160288, 1335160237, 1335160217, 1335160166, 1335160096, 1335160032, 1335159889, 1335159825, 1335159781, 1335159716, 1335159175, 1335159097, 1335159014, 1335158956, 1335158888, 1335158829, 1335158631, 1335158628, 1335158624, 1335158621, 1335158581, 1335158578, 1335158575, 1335158572]} final : False mtd_id 4302 list_pids : [1335160749, 1335160725, 1335160713, 1335160707, 1335160666, 1335160481, 1335160450, 1335160390, 1335160365, 1335160288] Looping around the photos to save general results len do output : 10 /1335160749.Didn't retrieve data . /1335160725.Didn't retrieve data . /1335160713.Didn't retrieve data . /1335160707.Didn't retrieve data . /1335160666.Didn't retrieve data . /1335160481.Didn't retrieve data . /1335160450.Didn't retrieve data . /1335160390.Didn't retrieve data . /1335160365.Didn't retrieve data . /1335160288.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, '2558801') ('4302', '20293740', '1335160749', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160725', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160713', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160707', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160666', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160481', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160450', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160390', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160365', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160288', None, None, None, None, None, '2558801') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20293740', '1335160749', '0.03841345693102795', None, None, None, None, '2558801'), ('4302', '20293740', '1335160725', '0.03841345693102795', None, None, None, None, '2558801'), ('4302', '20293740', '1335160713', '0.03841345693102795', None, None, None, None, '2558801'), ('4302', '20293740', '1335160707', '0.03841345693102795', None, None, None, None, '2558801'), ('4302', '20293740', '1335160666', '0.03841345693102795', None, None, None, None, '2558801'), ('4302', '20293740', '1335160481', '0.03841345693102795', None, None, None, None, '2558801'), ('4302', '20293740', '1335160450', '0.03841345693102795', None, None, None, None, '2558801'), ('4302', '20293740', '1335160390', '0.03841345693102795', None, None, None, None, '2558801'), ('4302', '20293740', '1335160365', '0.03841345693102795', None, None, None, None, '2558801'), ('4302', '20293740', '1335160288', '0.03841345693102795', None, None, None, None, '2558801')] time used for this insertion : 0.013118743896484375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06566619873046875 time spend to save output : 0.013603687286376953 total time spend for step 2 : 0.0792698860168457 step3:velours_tree Thu Feb 6 08:39:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20293740: [{'mal_croppe': 20293771, 'Carton_gris': 20293772, 'metal': 20293773, 'environnement': 20293774, 'autre_refus': 20293775, 'papier': 20293776, 'plastique': 20293777, 'Carton_brun': 20293778, 'flou': 20293779, 'kraft': 20293780, 'cartonnette': 20293781, 'Teint_Dans_La_Masse': 20293782}]} input_args_next_step : {20293740: ()} output_args : {20293740: [{'mal_croppe': 20293771, 'Carton_gris': 20293772, 'metal': 20293773, 'environnement': 20293774, 'autre_refus': 20293775, 'papier': 20293776, 'plastique': 20293777, 'Carton_brun': 20293778, 'flou': 20293779, 'kraft': 20293780, 'cartonnette': 20293781, 'Teint_Dans_La_Masse': 20293782}]} args : 20293740 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 : ({'mal_croppe': 20293771, 'Carton_gris': 20293772, 'metal': 20293773, 'environnement': 20293774, 'autre_refus': 20293775, 'papier': 20293776, 'plastique': 20293777, 'Carton_brun': 20293778, 'flou': 20293779, 'kraft': 20293780, 'cartonnette': 20293781, 'Teint_Dans_La_Masse': 20293782},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20293740) 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([20293740]) 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.2980067729949951 time spend to save output : 3.8623809814453125e-05 total time spend for step 3 : 0.29804539680480957 step4:send_mail_cod Thu Feb 6 08:39:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ('0.03841345693102795',), 1335160666: ('0.03841345693102795',), 1335160481: ('0.03841345693102795',), 1335160450: ('0.03841345693102795',), 1335160390: ('0.03841345693102795',), 1335160365: ('0.03841345693102795',), 1335160288: ('0.03841345693102795',)} input_args_next_step : {1335160749: ()} output_args : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ('0.03841345693102795',), 1335160666: ('0.03841345693102795',), 1335160481: ('0.03841345693102795',), 1335160450: ('0.03841345693102795',), 1335160390: ('0.03841345693102795',), 1335160365: ('0.03841345693102795',), 1335160288: ('0.03841345693102795',)} args : 1335160749 depend.output_id : 0 input_args_next_step : {1335160749: ('0.03841345693102795',), 1335160725: ()} output_args : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ('0.03841345693102795',), 1335160666: ('0.03841345693102795',), 1335160481: ('0.03841345693102795',), 1335160450: ('0.03841345693102795',), 1335160390: ('0.03841345693102795',), 1335160365: ('0.03841345693102795',), 1335160288: ('0.03841345693102795',)} args : 1335160725 depend.output_id : 0 input_args_next_step : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ()} output_args : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ('0.03841345693102795',), 1335160666: ('0.03841345693102795',), 1335160481: ('0.03841345693102795',), 1335160450: ('0.03841345693102795',), 1335160390: ('0.03841345693102795',), 1335160365: ('0.03841345693102795',), 1335160288: ('0.03841345693102795',)} args : 1335160713 depend.output_id : 0 input_args_next_step : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ()} output_args : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ('0.03841345693102795',), 1335160666: ('0.03841345693102795',), 1335160481: ('0.03841345693102795',), 1335160450: ('0.03841345693102795',), 1335160390: ('0.03841345693102795',), 1335160365: ('0.03841345693102795',), 1335160288: ('0.03841345693102795',)} args : 1335160707 depend.output_id : 0 input_args_next_step : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ('0.03841345693102795',), 1335160666: ()} output_args : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ('0.03841345693102795',), 1335160666: ('0.03841345693102795',), 1335160481: ('0.03841345693102795',), 1335160450: ('0.03841345693102795',), 1335160390: ('0.03841345693102795',), 1335160365: ('0.03841345693102795',), 1335160288: ('0.03841345693102795',)} args : 1335160666 depend.output_id : 0 input_args_next_step : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ('0.03841345693102795',), 1335160666: ('0.03841345693102795',), 1335160481: ()} output_args : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ('0.03841345693102795',), 1335160666: ('0.03841345693102795',), 1335160481: ('0.03841345693102795',), 1335160450: ('0.03841345693102795',), 1335160390: ('0.03841345693102795',), 1335160365: ('0.03841345693102795',), 1335160288: ('0.03841345693102795',)} args : 1335160481 depend.output_id : 0 input_args_next_step : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ('0.03841345693102795',), 1335160666: ('0.03841345693102795',), 1335160481: ('0.03841345693102795',), 1335160450: ()} output_args : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ('0.03841345693102795',), 1335160666: ('0.03841345693102795',), 1335160481: ('0.03841345693102795',), 1335160450: ('0.03841345693102795',), 1335160390: ('0.03841345693102795',), 1335160365: ('0.03841345693102795',), 1335160288: ('0.03841345693102795',)} args : 1335160450 depend.output_id : 0 input_args_next_step : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ('0.03841345693102795',), 1335160666: ('0.03841345693102795',), 1335160481: ('0.03841345693102795',), 1335160450: ('0.03841345693102795',), 1335160390: ()} output_args : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ('0.03841345693102795',), 1335160666: ('0.03841345693102795',), 1335160481: ('0.03841345693102795',), 1335160450: ('0.03841345693102795',), 1335160390: ('0.03841345693102795',), 1335160365: ('0.03841345693102795',), 1335160288: ('0.03841345693102795',)} args : 1335160390 depend.output_id : 0 input_args_next_step : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ('0.03841345693102795',), 1335160666: ('0.03841345693102795',), 1335160481: ('0.03841345693102795',), 1335160450: ('0.03841345693102795',), 1335160390: ('0.03841345693102795',), 1335160365: ()} output_args : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ('0.03841345693102795',), 1335160666: ('0.03841345693102795',), 1335160481: ('0.03841345693102795',), 1335160450: ('0.03841345693102795',), 1335160390: ('0.03841345693102795',), 1335160365: ('0.03841345693102795',), 1335160288: ('0.03841345693102795',)} args : 1335160365 depend.output_id : 0 input_args_next_step : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ('0.03841345693102795',), 1335160666: ('0.03841345693102795',), 1335160481: ('0.03841345693102795',), 1335160450: ('0.03841345693102795',), 1335160390: ('0.03841345693102795',), 1335160365: ('0.03841345693102795',), 1335160288: ()} output_args : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ('0.03841345693102795',), 1335160666: ('0.03841345693102795',), 1335160481: ('0.03841345693102795',), 1335160450: ('0.03841345693102795',), 1335160390: ('0.03841345693102795',), 1335160365: ('0.03841345693102795',), 1335160288: ('0.03841345693102795',)} args : 1335160288 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 : {20293740: [{'mal_croppe': 20293771, 'Carton_gris': 20293772, 'metal': 20293773, 'environnement': 20293774, 'autre_refus': 20293775, 'papier': 20293776, 'plastique': 20293777, 'Carton_brun': 20293778, 'flou': 20293779, 'kraft': 20293780, 'cartonnette': 20293781, 'Teint_Dans_La_Masse': 20293782}]} input_args_next_step : {1335160749: ('0.03841345693102795',), 1335160725: ('0.03841345693102795',), 1335160713: ('0.03841345693102795',), 1335160707: ('0.03841345693102795',), 1335160666: ('0.03841345693102795',), 1335160481: ('0.03841345693102795',), 1335160450: ('0.03841345693102795',), 1335160390: ('0.03841345693102795',), 1335160365: ('0.03841345693102795',), 1335160288: ('0.03841345693102795',), 20293740: ()} output_args : {20293740: [{'mal_croppe': 20293771, 'Carton_gris': 20293772, 'metal': 20293773, 'environnement': 20293774, 'autre_refus': 20293775, 'papier': 20293776, 'plastique': 20293777, 'Carton_brun': 20293778, 'flou': 20293779, 'kraft': 20293780, 'cartonnette': 20293781, 'Teint_Dans_La_Masse': 20293782}]} args : 20293740 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.03841345693102795',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20293740) 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 (1335160749,1335160725,1335160713,1335160707,1335160666,1335160481,1335160450,1335160390,1335160365,1335160288) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1335160288 begin to download photo : 1335160450 begin to download photo : 1335160707 begin to download photo : 1335160749 download finish for photo 1335160749 download finish for photo 1335160707 begin to download photo : 1335160713 download finish for photo 1335160288 begin to download photo : 1335160365 download finish for photo 1335160450 begin to download photo : 1335160481 download finish for photo 1335160365 begin to download photo : 1335160390 download finish for photo 1335160713 begin to download photo : 1335160725 download finish for photo 1335160481 begin to download photo : 1335160666 download finish for photo 1335160725 download finish for photo 1335160666 download finish for photo 1335160390 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette202937711738827541/ imagette202937731738827541/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P20293740_06-02-2025_08_39_01.pdf 20293771 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=20293771 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202937711738827541 20293773 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=20293773 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202937731738827541 20293775 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=20293775 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335160268: '1738827291_3484609_1335158578_be1a650bb6c553ed6858b2c7a9323b3a_rle_crop_3657445002_0.png', 1335161222: '1738827393_3487631_1335158578_be1a650bb6c553ed6858b2c7a9323b3a_rle_crop_3657445002_0.png', 1335161295: '1738827375_3485597_1335159825_fd452abadde3e3b28bc284b7f1f57b57_rle_crop_3657447252_0.png', 1335161300: '1738827375_3485597_1335159097_69c7fe8aa796def2885ad7260f8b8aad_rle_crop_3657447269_0.png', 1335161302: '1738827375_3485597_1335159014_c9a6d1220cc86aafcf708e5a4a7132c1_rle_crop_3657447318_0.png', 1335161304: '1738827375_3485597_1335158829_674bb3b981ed1fe9a82993061043a335_rle_crop_3657447447_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/b71e53d08cfce990c61471563c1db281_70800305.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/b71e53d08cfce990c61471563c1db281_88971353.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/06ea557c602b297360c387e57ca6d475_54564293.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/97139f0cd1b3bcde00aa12df025d74e4_25630416.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/e7f1cd4e88d5982f05e2ed9e203b7a44_16163473.png change filename to text .imagette202937751738827541/ imagette202937751738827541/1738827375_3485597_1335158829_674bb3b981ed1fe9a82993061043a335_rle_crop_3657447447_0.png.png imagette202937751738827541/1738827291_3484609_1335158578_be1a650bb6c553ed6858b2c7a9323b3a_rle_crop_3657445002_0.png.png imagette202937751738827541/1738827393_3487631_1335158578_be1a650bb6c553ed6858b2c7a9323b3a_rle_crop_3657445002_0.png.png imagette202937751738827541/1738827375_3485597_1335159097_69c7fe8aa796def2885ad7260f8b8aad_rle_crop_3657447269_0.png.png imagette202937751738827541/1738827375_3485597_1335159825_fd452abadde3e3b28bc284b7f1f57b57_rle_crop_3657447252_0.png.png imagette202937751738827541/1738827375_3485597_1335159014_c9a6d1220cc86aafcf708e5a4a7132c1_rle_crop_3657447318_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/1d4e855a40772ef2a306b47e5628fc28_69615494.png imagette202937751738827541 20293777 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=20293777 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335160338: '1738827291_3484609_1335158581_a680c5971b6bac4900bfda4e893dd3c7_rle_crop_3657444979_0.png', 1335161296: '1738827393_3487631_1335158581_a680c5971b6bac4900bfda4e893dd3c7_rle_crop_3657444979_0.png', 1335161421: '1738827375_3485597_1335159097_69c7fe8aa796def2885ad7260f8b8aad_rle_crop_3657447273_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/4e4d622a39c77d41158e164b7d4ce0da_32056058.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/4e4d622a39c77d41158e164b7d4ce0da_11942137.png change filename to text .imagette202937771738827541/ imagette202937771738827541/1738827393_3487631_1335158581_a680c5971b6bac4900bfda4e893dd3c7_rle_crop_3657444979_0.png.png imagette202937771738827541/1738827375_3485597_1335159097_69c7fe8aa796def2885ad7260f8b8aad_rle_crop_3657447273_0.png.png imagette202937771738827541/1738827291_3484609_1335158581_a680c5971b6bac4900bfda4e893dd3c7_rle_crop_3657444979_0.png.png imagette202937791738827541/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/5cb6a32e661bc0ed4b47a6ad72677182_22712093.png imagette202937771738827541 20293779 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=20293779 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202937791738827541 20293780 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=20293780 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335160353: '1738827291_3484609_1335158581_a680c5971b6bac4900bfda4e893dd3c7_rle_crop_3657444964_0.png', 1335161347: '1738827393_3487631_1335158581_a680c5971b6bac4900bfda4e893dd3c7_rle_crop_3657444964_0.png', 1335161470: '1738827375_3485597_1335158829_674bb3b981ed1fe9a82993061043a335_rle_crop_3657447450_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/255a86a027a02f8b8bfca98f07346054_48906261.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/255a86a027a02f8b8bfca98f07346054_22899720.png change filename to text .imagette202937801738827541/ imagette202937801738827541/1738827375_3485597_1335158829_674bb3b981ed1fe9a82993061043a335_rle_crop_3657447450_0.png.png imagette202937801738827541/1738827291_3484609_1335158581_a680c5971b6bac4900bfda4e893dd3c7_rle_crop_3657444964_0.png.png imagette202937801738827541/1738827393_3487631_1335158581_a680c5971b6bac4900bfda4e893dd3c7_rle_crop_3657444964_0.png.png imagette202937811738827542/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/4eab71d4ba60fbf569db6e705541c21c_15485404.png imagette202937801738827541 20293781 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=20293781 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202937811738827542 20293772 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=20293772 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335160270: '1738827291_3484609_1335158581_a680c5971b6bac4900bfda4e893dd3c7_rle_crop_3657444972_0.png', 1335161252: '1738827393_3487631_1335158581_a680c5971b6bac4900bfda4e893dd3c7_rle_crop_3657444972_0.png', 1335161346: '1738827375_3485597_1335159825_fd452abadde3e3b28bc284b7f1f57b57_rle_crop_3657447255_0.png', 1335161349: '1738827375_3485597_1335159014_c9a6d1220cc86aafcf708e5a4a7132c1_rle_crop_3657447314_0.png', 1335161351: '1738827375_3485597_1335158956_3bf814c51dde0919146d27a965369e14_rle_crop_3657447358_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/50bb1839dcc34870826b9724da4da99e_44022845.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/50bb1839dcc34870826b9724da4da99e_64059291.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/e53c129dc05ed99e363ff72b1f8dfa5b_56485641.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/ff622c8c5b70ee7da420769d03c6fe78_45491366.png change filename to text .imagette202937721738827542/ imagette202937721738827542/1738827375_3485597_1335159825_fd452abadde3e3b28bc284b7f1f57b57_rle_crop_3657447255_0.png.png imagette202937721738827542/1738827375_3485597_1335159014_c9a6d1220cc86aafcf708e5a4a7132c1_rle_crop_3657447314_0.png.png imagette202937721738827542/1738827393_3487631_1335158581_a680c5971b6bac4900bfda4e893dd3c7_rle_crop_3657444972_0.png.png imagette202937721738827542/1738827291_3484609_1335158581_a680c5971b6bac4900bfda4e893dd3c7_rle_crop_3657444972_0.png.png imagette202937721738827542/1738827375_3485597_1335158956_3bf814c51dde0919146d27a965369e14_rle_crop_3657447358_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/4e88d79ddb6a3789995cef0c9b9d8201_38311083.png imagette202937721738827542 20293778 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=20293778 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335160286: '1738827291_3484609_1335158631_bbdd7f3c1841428d3e550da3a8310327_rle_crop_3657444949_0.png', 1335160287: '1738827291_3484609_1335158581_a680c5971b6bac4900bfda4e893dd3c7_rle_crop_3657444966_0.png', 1335161278: '1738827393_3487631_1335158631_bbdd7f3c1841428d3e550da3a8310327_rle_crop_3657444949_0.png', 1335161279: '1738827393_3487631_1335158581_a680c5971b6bac4900bfda4e893dd3c7_rle_crop_3657444966_0.png', 1335161407: '1738827375_3485597_1335159097_69c7fe8aa796def2885ad7260f8b8aad_rle_crop_3657447275_0.png', 1335161409: '1738827375_3485597_1335158888_a36b53e463380e294ce187620e49116c_rle_crop_3657447409_0.png', 1335161411: '1738827375_3485597_1335158888_a36b53e463380e294ce187620e49116c_rle_crop_3657447407_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c6829b84920c5d94c315474f5cf32abf_73482323.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/9e7c09863d01242a82744730bb746b18_95346161.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c6829b84920c5d94c315474f5cf32abf_80699021.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/9e7c09863d01242a82744730bb746b18_12269703.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/516ab24390d1846457eabc2035f903ef_44904246.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/7d53331dd8a37c6866dc4a2fe14124a0_99653732.png change filename to text .imagette202937781738827542/ imagette202937781738827542/1738827375_3485597_1335159097_69c7fe8aa796def2885ad7260f8b8aad_rle_crop_3657447275_0.png.png imagette202937781738827542/1738827291_3484609_1335158581_a680c5971b6bac4900bfda4e893dd3c7_rle_crop_3657444966_0.png.png imagette202937781738827542/1738827291_3484609_1335158631_bbdd7f3c1841428d3e550da3a8310327_rle_crop_3657444949_0.png.png imagette202937781738827542/1738827393_3487631_1335158581_a680c5971b6bac4900bfda4e893dd3c7_rle_crop_3657444966_0.png.png imagette202937781738827542/1738827375_3485597_1335158888_a36b53e463380e294ce187620e49116c_rle_crop_3657447409_0.png.png imagette202937781738827542/1738827375_3485597_1335158888_a36b53e463380e294ce187620e49116c_rle_crop_3657447407_0.png.png imagette202937781738827542/1738827393_3487631_1335158631_bbdd7f3c1841428d3e550da3a8310327_rle_crop_3657444949_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/9be9473cbc6872509b530a2f799afb67_33949696.png imagette202937781738827542 20293782 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=20293782 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335160266: '1738827291_3484609_1335158581_a680c5971b6bac4900bfda4e893dd3c7_rle_crop_3657444969_0.png', 1335161186: '1738827393_3487631_1335158581_a680c5971b6bac4900bfda4e893dd3c7_rle_crop_3657444969_0.png', 1335161265: '1738827375_3485597_1335159097_69c7fe8aa796def2885ad7260f8b8aad_rle_crop_3657447272_0.png', 1335161267: '1738827375_3485597_1335159014_c9a6d1220cc86aafcf708e5a4a7132c1_rle_crop_3657447323_0.png', 1335161269: '1738827375_3485597_1335158956_3bf814c51dde0919146d27a965369e14_rle_crop_3657447366_0.png', 1335161271: '1738827375_3485597_1335158956_3bf814c51dde0919146d27a965369e14_rle_crop_3657447363_0.png', 1335161273: '1738827375_3485597_1335158888_a36b53e463380e294ce187620e49116c_rle_crop_3657447408_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/7e20d256be9b688055785fdaf7cc42cb_48991185.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/7e20d256be9b688055785fdaf7cc42cb_86384174.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/251b2ed35aa80a306df72aad1e6f0eb9_4539716.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/b003392b27e073a530029cf95ac502c6_28136371.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/87d382d1ae23989cea458c8814462e9b_11612008.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/9460b08226c04679186f1cc212ed8138_19635284.png change filename to text .imagette202937821738827542/ imagette202937821738827542/1738827375_3485597_1335158888_a36b53e463380e294ce187620e49116c_rle_crop_3657447408_0.png.png imagette202937821738827542/1738827393_3487631_1335158581_a680c5971b6bac4900bfda4e893dd3c7_rle_crop_3657444969_0.png.png imagette202937821738827542/1738827375_3485597_1335159014_c9a6d1220cc86aafcf708e5a4a7132c1_rle_crop_3657447323_0.png.png imagette202937821738827542/1738827375_3485597_1335158956_3bf814c51dde0919146d27a965369e14_rle_crop_3657447363_0.png.png imagette202937821738827542/1738827375_3485597_1335158956_3bf814c51dde0919146d27a965369e14_rle_crop_3657447366_0.png.png imagette202937821738827542/1738827375_3485597_1335159097_69c7fe8aa796def2885ad7260f8b8aad_rle_crop_3657447272_0.png.png imagette202937821738827542/1738827291_3484609_1335158581_a680c5971b6bac4900bfda4e893dd3c7_rle_crop_3657444969_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/ed60ead51762f6ea8c750ecd4cbeee32_96371581.png imagette202937821738827542 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20293740 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20293784,20293785,20293786,20293787,20293788,20293789,20293790,20293791,20293792,20293793,20293794,20293795?tags=mal_croppe,Carton_gris,metal,environnement,autre_refus,papier,plastique,Carton_brun,flou,kraft,cartonnette,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1335160749] : ('0.03841345693102795',) no score found for photo 1335160749 apple ('0.03841345693102795',) We are sending mail with results at report@fotonower.com args[1335160725] : ('0.03841345693102795',) no score found for photo 1335160725 apple ('0.03841345693102795',) We are sending mail with results at report@fotonower.com args[1335160713] : ('0.03841345693102795',) no score found for photo 1335160713 apple ('0.03841345693102795',) We are sending mail with results at report@fotonower.com args[1335160707] : ('0.03841345693102795',) no score found for photo 1335160707 apple ('0.03841345693102795',) We are sending mail with results at report@fotonower.com args[1335160666] : ('0.03841345693102795',) no score found for photo 1335160666 apple ('0.03841345693102795',) We are sending mail with results at report@fotonower.com args[1335160481] : ('0.03841345693102795',) no score found for photo 1335160481 apple ('0.03841345693102795',) We are sending mail with results at report@fotonower.com args[1335160450] : ('0.03841345693102795',) no score found for photo 1335160450 apple ('0.03841345693102795',) We are sending mail with results at report@fotonower.com args[1335160390] : ('0.03841345693102795',) no score found for photo 1335160390 apple ('0.03841345693102795',) We are sending mail with results at report@fotonower.com args[1335160365] : ('0.03841345693102795',) no score found for photo 1335160365 apple ('0.03841345693102795',) We are sending mail with results at report@fotonower.com args[1335160288] : ('0.03841345693102795',) no score found for photo 1335160288 apple ('0.03841345693102795',) We are sending mail with results at report@fotonower.com refus_total : 0.03841345693102795 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=20293740 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_P20293740_06-02-2025_08_39_01.pdf results_Auto_P20293740_06-02-2025_08_39_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20293740_06-02-2025_08_39_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20293740','results_Auto_P20293740_06-02-2025_08_39_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20293740_06-02-2025_08_39_01.pdf','pdf','','0.18','0.03841345693102795') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20293740]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1335160749, 1335160725, 1335160713, 1335160707, 1335160666, 1335160481, 1335160450, 1335160390, 1335160365, 1335160288] map_info['map_portfolio_photo'] : {20293740: [1335160749, 1335160725, 1335160713, 1335160707, 1335160666, 1335160481, 1335160450, 1335160390, 1335160365, 1335160288, 1335160237, 1335160217, 1335160166, 1335160096, 1335160032, 1335159889, 1335159825, 1335159781, 1335159716, 1335159175, 1335159097, 1335159014, 1335158956, 1335158888, 1335158829, 1335158631, 1335158628, 1335158624, 1335158621, 1335158581, 1335158578, 1335158575, 1335158572]} final : False mtd_id 4302 list_pids : [1335160749, 1335160725, 1335160713, 1335160707, 1335160666, 1335160481, 1335160450, 1335160390, 1335160365, 1335160288] 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, '2558801') ('4302', '20293740', '1335160749', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160725', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160713', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160707', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160666', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160481', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160450', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160390', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160365', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160288', None, None, None, None, None, '2558801') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20293740', '1335160749', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160725', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160713', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160707', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160666', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160481', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160450', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160390', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160365', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160288', None, None, None, None, None, '2558801')] time used for this insertion : 0.013318061828613281 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.629563093185425 time spend to save output : 0.013653993606567383 total time spend for step 4 : 3.643217086791992 step5:split_time_score Thu Feb 6 08:39:04 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 : ['20293740'] 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 : [('20293740',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20293740) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1335160749: {'path': 'temp/1738827541_2736783_1335160749_eaed535a7e9d59c550801b00ceb9e936.jpg', 'extension': 'jpg'}, 1335160707: {'path': 'temp/1738827541_2736783_1335160707_1ad68b2e1a5953ba77c1b60d7de4f09e.jpg', 'extension': 'jpg'}, 1335160713: {'path': 'temp/1738827541_2736783_1335160713_8bf8494664f325d20ceae9b57936c2e5.jpg', 'extension': 'jpg'}, 1335160725: {'path': 'temp/1738827541_2736783_1335160725_954b5b67a6d410c42a548b2be7619f2a.jpg', 'extension': 'jpg'}, 1335160450: {'path': 'temp/1738827541_2736783_1335160450_ce66c0192073a3896afa73729db80bdb.jpg', 'extension': 'jpg'}, 1335160481: {'path': 'temp/1738827541_2736783_1335160481_54ad3578b56f48554fd290156b874bb5.jpg', 'extension': 'jpg'}, 1335160666: {'path': 'temp/1738827541_2736783_1335160666_7ed91619688ceb2fef39fb4ab5d8d5a5.jpg', 'extension': 'jpg'}, 1335160288: {'path': 'temp/1738827541_2736783_1335160288_44fe53ecee23bb531a7f4e333ce263ce.jpg', 'extension': 'jpg'}, 1335160365: {'path': 'temp/1738827541_2736783_1335160365_830a0a14df9a8a8c2d026455587abd82.jpg', 'extension': 'jpg'}, 1335160390: {'path': 'temp/1738827541_2736783_1335160390_24962679e9b9900d09ce405226d09ea6.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 = 20293740; (('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 = 20293740 group by h (('08', 33),) 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=20293740 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 (20293740) 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 (20293740) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06022025 20293740 Nombre de photos uploadées : 33 / 23040 (0%) 06022025 20293740 Nombre de photos taguées (types de déchets): 0 / 33 (0%) 06022025 20293740 Nombre de photos taguées (volume) : 0 / 33 (0%) [{'photo_id': 1335158581, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/a680c5971b6bac4900bfda4e893dd3c7.jpg', 'username': None, 'uploaded_at': 1738827068, 'text': 'image_06022025_08_30_04_10141.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1335158578, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/be1a650bb6c553ed6858b2c7a9323b3a.jpg', 'username': None, 'uploaded_at': 1738827068, 'text': 'image_06022025_08_30_25_10135.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1335158575, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/2124018eec81bccffbf64086270fba6b.jpg', 'username': None, 'uploaded_at': 1738827068, 'text': 'image_06022025_08_30_34_9125.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1335158572, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/3c1a95644806967e1a9f22e313a57c49.jpg', 'username': None, 'uploaded_at': 1738827068, 'text': 'image_06022025_08_30_44_10136.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024080276489257812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20293740, '2025-02-06' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1581747,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02657318115234375 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= 1581747 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1581747, 'dashboard_run_id': 1590209, 'mtr_portfolio_id': 20292165, 'dashboard_result_id': 8735423, '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_P20292165_06-02-2025_08_03_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20292196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20292197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20292198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20292199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20292200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20292201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20292202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20292203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20292204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20292205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20292206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20292207, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1590209, 'mtr_portfolio_id': 20292813, 'dashboard_result_id': 8735424, '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_P20292813_06-02-2025_08_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20292868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20292869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20292870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20292871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20292872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20292873, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20292874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20292875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20292876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20292877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20292878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20292879, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1590209, 'mtr_portfolio_id': 20293389, 'dashboard_result_id': 8735425, '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_P20293389_06-02-2025_08_33_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20293418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20293419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20293420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20293421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20293422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20293423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20293424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20293425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20293426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20293427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20293428, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20293429, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1590209, 'mtr_portfolio_id': 20293740, 'dashboard_result_id': 8735426, '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_P20293740_06-02-2025_08_37_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20293771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20293772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20293773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20293774, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20293775, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20293776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20293777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20293778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20293779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20293780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20293781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20293782, '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 = 20292165 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': 2558596, 'mtr_portfolio_id': 20292165, 'created_at': datetime.datetime(2025, 2, 6, 8, 3, 3), 'result': '0.05883959624759791', 'result_long': None, 'result_double': None}] Qualite : 0.05883959624759791 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20292165 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20292165_06-02-2025_08_03_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20292165 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_P20292165_06-02-2025_08_03_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20292196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20292197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20292198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20292199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20292200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20292201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20292202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20292203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20292204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20292205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20292206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20292207, 'pht': 3726}}" where mtr_portfolio_id = 20292165 and dashboard_run_id = 1590209 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`=20292165 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8735423, 0.05883959624759791, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20292165_06-02-2025_08_03_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20292196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20292197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20292198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20292199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20292200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20292201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20292202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20292203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20292204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20292205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20292206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20292207, '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 = 20292813 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': 2558678, 'mtr_portfolio_id': 20292813, 'created_at': datetime.datetime(2025, 2, 6, 8, 18, 59), 'result': '0.052916176377447124', 'result_long': None, 'result_double': None}] Qualite : 0.052916176377447124 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20292813 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20292813_06-02-2025_08_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20292813 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_P20292813_06-02-2025_08_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20292868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20292869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20292870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20292871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20292872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20292873, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20292874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20292875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20292876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20292877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20292878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20292879, 'pht': 3726}}" where mtr_portfolio_id = 20292813 and dashboard_run_id = 1590209 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`=20292813 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8735424, 0.052916176377447124, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20292813_06-02-2025_08_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20292868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20292869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20292870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20292871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20292872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20292873, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20292874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20292875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20292876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20292877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20292878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20292879, '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 = 20293389 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': 2558719, 'mtr_portfolio_id': 20293389, 'created_at': datetime.datetime(2025, 2, 6, 8, 33, 28), 'result': '0.03649676263827339', 'result_long': None, 'result_double': None}] Qualite : 0.03649676263827339 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20293389 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20293389_06-02-2025_08_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20293389 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_P20293389_06-02-2025_08_33_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20293418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20293419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20293420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20293421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20293422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20293423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20293424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20293425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20293426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20293427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20293428, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20293429, 'pht': 3726}}" where mtr_portfolio_id = 20293389 and dashboard_run_id = 1590209 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`=20293389 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8735425, 0.03649676263827339, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20293389_06-02-2025_08_33_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20293418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20293419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20293420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20293421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20293422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20293423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20293424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20293425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20293426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20293427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20293428, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20293429, '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 = 20293740 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': 2558801, 'mtr_portfolio_id': 20293740, 'created_at': datetime.datetime(2025, 2, 6, 8, 39), 'result': '0.03841345693102795', 'result_long': None, 'result_double': None}] Qualite : 0.03841345693102795 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20293740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20293740_06-02-2025_08_39_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20293740 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_P20293740_06-02-2025_08_39_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20293771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20293772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20293773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20293774, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20293775, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20293776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20293777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20293778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20293779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20293780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20293781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20293782, 'pht': 3726}}" where mtr_portfolio_id = 20293740 and dashboard_run_id = 1590209 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`=20293740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8735426, 0.03841345693102795, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20293740_06-02-2025_08_39_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20293771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20293772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20293773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20293774, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20293775, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20293776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20293777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20293778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20293779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20293780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20293781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20293782, '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 (20292165,20292813,20293389,20293740) result : ((1335149118,), (1335149188,), (1335149266,), (1335149316,), (1335149428,), (1335150047,), (1335150088,), (1335150125,), (1335150202,), (1335150235,), (1335150433,), (1335150481,), (1335150837,), (1335150845,), (1335151390,), (1335151459,), (1335151545,), (1335151548,), (1335151551,), (1335151577,), (1335151624,), (1335151690,), (1335151750,), (1335151822,), (1335151831,), (1335151835,), (1335151854,), (1335151856,), (1335151863,), (1335151879,), (1335152184,), (1335152185,), (1335152189,), (1335152191,), (1335152195,), (1335152199,), (1335152240,), (1335152243,), (1335152245,), (1335152302,), (1335152305,), (1335152308,), (1335152310,), (1335152337,), (1335152341,), (1335152353,), (1335152360,), (1335152504,), (1335152507,), (1335152510,), (1335152544,), (1335152547,), (1335152550,), (1335152553,), (1335152555,), (1335152881,), (1335152886,), (1335152888,), (1335152903,), (1335152915,), (1335153058,), (1335153139,), (1335153174,), (1335153231,), (1335153842,), (1335153844,), (1335153874,), (1335153951,), (1335154046,), (1335154051,), (1335154059,), (1335154065,), (1335154070,), (1335154074,), (1335154118,), (1335154125,), (1335154130,), (1335154175,), (1335154178,), (1335154180,), (1335154203,), (1335154224,), (1335154251,), (1335154596,), (1335154598,), (1335154624,), (1335154657,), (1335154684,), (1335154686,), (1335154689,), (1335154718,), (1335154727,), (1335154745,), (1335154748,), (1335154756,), (1335154764,), (1335154996,), (1335155010,), (1335155015,), (1335155025,), (1335155034,), (1335155040,), (1335155193,), (1335155198,), (1335155231,), (1335155343,), (1335155345,), (1335155349,), (1335155353,), (1335155357,), (1335155362,), (1335155402,), (1335155406,), (1335155409,), (1335155437,), (1335155441,), (1335155445,), (1335155448,), (1335155526,), (1335155512,), (1335155514,), (1335155519,), (1335155522,), (1335155543,), (1335155546,), (1335155550,), (1335155554,), (1335155558,), (1335155571,), (1335155599,), (1335155601,), (1335155670,), (1335155672,), (1335155674,), (1335155676,), (1335155678,), (1335155731,), (1335155734,), (1335155738,), (1335155742,), (1335155771,), (1335155772,), (1335155774,), (1335155776,), (1335155780,), (1335155815,), (1335155820,), (1335155824,), (1335155828,), (1335155832,), (1335155862,), (1335155866,), (1335156181,), (1335156266,), (1335156336,), (1335156413,), (1335156485,), (1335157050,), (1335157092,), (1335157159,), (1335157172,), (1335157200,), (1335157209,), (1335157211,), (1335157215,), (1335157220,), (1335157231,), (1335157693,), (1335157749,), (1335157780,), (1335157829,), (1335157893,), (1335158110,), (1335158112,), (1335158158,), (1335158162,), (1335158173,), (1335158471,), (1335158474,), (1335158478,), (1335158483,), (1335158487,), (1335158491,), (1335158521,), (1335158527,), (1335158531,), (1335158536,), (1335158545,), (1335158584,), (1335158572,), (1335158575,), (1335158578,), (1335158581,), (1335158621,), (1335158624,), (1335158628,), (1335158631,), (1335158829,), (1335158888,), (1335158956,), (1335159014,), (1335159097,), (1335159175,), (1335159716,), (1335159781,), (1335159825,), (1335159889,), (1335160032,), (1335160096,), (1335160166,), (1335160217,), (1335160237,), (1335160288,), (1335160365,), (1335160390,), (1335160450,), (1335160481,), (1335160666,), (1335160707,), (1335160713,), (1335160725,), (1335160749,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06022025': {'nb_upload': 33, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20293740]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1335160749, 1335160725, 1335160713, 1335160707, 1335160666, 1335160481, 1335160450, 1335160390, 1335160365, 1335160288] map_info['map_portfolio_photo'] : {20293740: [1335160749, 1335160725, 1335160713, 1335160707, 1335160666, 1335160481, 1335160450, 1335160390, 1335160365, 1335160288, 1335160237, 1335160217, 1335160166, 1335160096, 1335160032, 1335159889, 1335159825, 1335159781, 1335159716, 1335159175, 1335159097, 1335159014, 1335158956, 1335158888, 1335158829, 1335158631, 1335158628, 1335158624, 1335158621, 1335158581, 1335158578, 1335158575, 1335158572]} final : True mtd_id 4302 list_pids : [1335160749, 1335160725, 1335160713, 1335160707, 1335160666, 1335160481, 1335160450, 1335160390, 1335160365, 1335160288] Looping around the photos to save general results len do output : 1 /20293740Didn'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, '2558801') ('4302', '20293740', '1335160749', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160725', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160713', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160707', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160666', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160481', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160450', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160390', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160365', None, None, None, None, None, '2558801') ('4302', None, None, None, None, None, None, None, '2558801') ('4302', '20293740', '1335160288', None, None, None, None, None, '2558801') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20293740', 'None', None, None, None, None, '2558801'), ('4302', '20293740', '1335160749', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160725', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160713', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160707', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160666', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160481', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160450', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160390', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160365', None, None, None, None, None, '2558801'), ('4302', '20293740', '1335160288', None, None, None, None, None, '2558801')] time used for this insertion : 0.017144441604614258 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.305448293685913 time spend to save output : 0.017413616180419922 total time spend for step 5 : 1.322861909866333 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 (2558801) 2.11user 2.35system 0:11.56elapsed 38%CPU (0avgtext+0avgdata 159804maxresident)k 176inputs+11488outputs (2major+64165minor)pagefaults 0swaps