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 : 1743088 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 (2686836) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2686836) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21665328 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2686836'] with mtr_portfolio_ids : ['21665328'] and first list_photo_ids : [] new path : /proc/1743088/ Name: python3 Umask: 0002 State: R (running) Tgid: 1743088 Ngid: 0 Pid: 1743088 PPid: 1743087 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1743088 NSpid: 1743088 NSpgid: 1740470 NSsid: 1740470 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98012 kB VmRSS: 98012 kB RssAnon: 59772 kB RssFile: 38240 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 624 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: 50 nonvoluntary_ctxt_switches: 120 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1743088', 'Ngid': '0', 'Pid': '1743088', 'PPid': '1743087', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1743088', 'NSpid': '1743088', 'NSpgid': '1740470', 'NSsid': '1740470', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98012 kB', 'VmRSS': '98012 kB', 'RssAnon': '59772 kB', 'RssFile': '38240 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '624 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': '50', 'nonvoluntary_ctxt_switches': '120'} ('datou_batch_current', '1743088', '1106844', '0', '1106844', '865592', '98012', b'', 'marlene', '2686836') 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 (21665328) 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 (2686836 ) ) 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 (21665328) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1346915869, 'portfolio_id': 21665328}, {'photo_id': 1346915857, 'portfolio_id': 21665328}, {'photo_id': 1346915841, 'portfolio_id': 21665328}, {'photo_id': 1346915821, 'portfolio_id': 21665328}, {'photo_id': 1346915815, 'portfolio_id': 21665328}, {'photo_id': 1346915797, 'portfolio_id': 21665328}, {'photo_id': 1346915583, 'portfolio_id': 21665328}, {'photo_id': 1346915556, 'portfolio_id': 21665328}, {'photo_id': 1346915539, 'portfolio_id': 21665328}, {'photo_id': 1346915433, 'portfolio_id': 21665328}, {'photo_id': 1346915408, 'portfolio_id': 21665328}, {'photo_id': 1346915380, 'portfolio_id': 21665328}, {'photo_id': 1346915375, 'portfolio_id': 21665328}, {'photo_id': 1346915371, 'portfolio_id': 21665328}, {'photo_id': 1346915343, 'portfolio_id': 21665328}, {'photo_id': 1346915226, 'portfolio_id': 21665328}, {'photo_id': 1346915214, 'portfolio_id': 21665328}, {'photo_id': 1346915203, 'portfolio_id': 21665328}, {'photo_id': 1346915170, 'portfolio_id': 21665328}, {'photo_id': 1346915151, 'portfolio_id': 21665328}, {'photo_id': 1346914922, 'portfolio_id': 21665328}, {'photo_id': 1346914904, 'portfolio_id': 21665328}, {'photo_id': 1346914890, 'portfolio_id': 21665328}, {'photo_id': 1346914866, 'portfolio_id': 21665328}, {'photo_id': 1346914728, 'portfolio_id': 21665328}, {'photo_id': 1346914709, 'portfolio_id': 21665328}, {'photo_id': 1346914513, 'portfolio_id': 21665328}, {'photo_id': 1346914467, 'portfolio_id': 21665328}, {'photo_id': 1346914458, 'portfolio_id': 21665328}, {'photo_id': 1346914445, 'portfolio_id': 21665328}, {'photo_id': 1346914438, 'portfolio_id': 21665328}, {'photo_id': 1346914095, 'portfolio_id': 21665328}, {'photo_id': 1346914065, 'portfolio_id': 21665328}, {'photo_id': 1346914004, 'portfolio_id': 21665328}, {'photo_id': 1346913947, 'portfolio_id': 21665328}, {'photo_id': 1346913815, 'portfolio_id': 21665328}, {'photo_id': 1346913177, 'portfolio_id': 21665328}, {'photo_id': 1346913142, 'portfolio_id': 21665328}, {'photo_id': 1346913115, 'portfolio_id': 21665328}, {'photo_id': 1346913098, 'portfolio_id': 21665328}] map_portfolio_id_photo_id: {21665328: [1346915869, 1346915857, 1346915841, 1346915821, 1346915815, 1346915797, 1346915583, 1346915556, 1346915539, 1346915433, 1346915408, 1346915380, 1346915375, 1346915371, 1346915343, 1346915226, 1346915214, 1346915203, 1346915170, 1346915151, 1346914922, 1346914904, 1346914890, 1346914866, 1346914728, 1346914709, 1346914513, 1346914467, 1346914458, 1346914445, 1346914438, 1346914095, 1346914065, 1346914004, 1346913947, 1346913815, 1346913177, 1346913142, 1346913115, 1346913098]} ##### 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.01541447639465332 #### 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 Mon Mar 24 19:54:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21665328) 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 : 21665328 get user id for portfolio 21665328 get sub ptf for main ptf 21665328, type 3726 and hashtags ['environnement', 'kraft', 'metal', 'mal_croppe', 'Carton_gris', 'cartonnette', 'autre_refus', 'Carton_brun', 'flou', 'Teint_Dans_La_Masse', 'papier', 'plastique'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21665328 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','kraft','metal','mal_croppe','Carton_gris','cartonnette','autre_refus','Carton_brun','flou','Teint_Dans_La_Masse','papier','plastique')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21665328 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','kraft','metal','mal_croppe','Carton_gris','cartonnette','autre_refus','Carton_brun','flou','Teint_Dans_La_Masse','papier','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 21665328, 'sub_port_id': 21665401, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200316, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 29)}, 'kraft': {'main_port_id': 21665328, 'sub_port_id': 21665402, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200317, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 29)}, 'mal_croppe': {'main_port_id': 21665328, 'sub_port_id': 21665403, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200318, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 29)}, 'flou': {'main_port_id': 21665328, 'sub_port_id': 21665404, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200319, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 29)}, 'papier': {'main_port_id': 21665328, 'sub_port_id': 21665405, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200320, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 29)}, 'Carton_gris': {'main_port_id': 21665328, 'sub_port_id': 21665406, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200321, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 29)}, 'plastique': {'main_port_id': 21665328, 'sub_port_id': 21665407, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200322, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 21665328, 'sub_port_id': 21665408, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200323, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 29)}, 'autre_refus': {'main_port_id': 21665328, 'sub_port_id': 21665409, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200324, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 29)}, 'Carton_brun': {'main_port_id': 21665328, 'sub_port_id': 21665410, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200325, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 29)}, 'metal': {'main_port_id': 21665328, 'sub_port_id': 21665411, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200326, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 29)}, 'cartonnette': {'main_port_id': 21665328, 'sub_port_id': 21665412, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200327, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21665401 , 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=21665328 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 (21665401) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21665328) result : ((1346913098,), (1346913115,), (1346913142,), (1346913177,), (1346913815,), (1346913947,), (1346914004,), (1346914065,), (1346914095,), (1346914438,), (1346914445,), (1346914458,), (1346914467,), (1346914513,), (1346914709,), (1346914728,), (1346914866,), (1346914890,), (1346914904,), (1346914922,), (1346915151,), (1346915170,), (1346915203,), (1346915214,), (1346915226,), (1346915343,), (1346915371,), (1346915375,), (1346915380,), (1346915408,), (1346915433,), (1346915539,), (1346915556,), (1346915583,), (1346915797,), (1346915815,), (1346915821,), (1346915841,), (1346915857,), (1346915869,)) 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 21665402 , 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=21665328 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 (21665402) result : ((1346915269,), (1346915270,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21665328) result : ((1346913098,), (1346913115,), (1346913142,), (1346913177,), (1346913815,), (1346913947,), (1346914004,), (1346914065,), (1346914095,), (1346914438,), (1346914445,), (1346914458,), (1346914467,), (1346914513,), (1346914709,), (1346914728,), (1346914866,), (1346914890,), (1346914904,), (1346914922,), (1346915151,), (1346915170,), (1346915203,), (1346915214,), (1346915226,), (1346915343,), (1346915371,), (1346915375,), (1346915380,), (1346915408,), (1346915433,), (1346915539,), (1346915556,), (1346915583,), (1346915797,), (1346915815,), (1346915821,), (1346915841,), (1346915857,), (1346915869,)) 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 21665403 , 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=21665328 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 (21665403) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21665328) result : ((1346913098,), (1346913115,), (1346913142,), (1346913177,), (1346913815,), (1346913947,), (1346914004,), (1346914065,), (1346914095,), (1346914438,), (1346914445,), (1346914458,), (1346914467,), (1346914513,), (1346914709,), (1346914728,), (1346914866,), (1346914890,), (1346914904,), (1346914922,), (1346915151,), (1346915170,), (1346915203,), (1346915214,), (1346915226,), (1346915343,), (1346915371,), (1346915375,), (1346915380,), (1346915408,), (1346915433,), (1346915539,), (1346915556,), (1346915583,), (1346915797,), (1346915815,), (1346915821,), (1346915841,), (1346915857,), (1346915869,)) 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 21665404 , 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=21665328 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 (21665404) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21665328) result : ((1346913098,), (1346913115,), (1346913142,), (1346913177,), (1346913815,), (1346913947,), (1346914004,), (1346914065,), (1346914095,), (1346914438,), (1346914445,), (1346914458,), (1346914467,), (1346914513,), (1346914709,), (1346914728,), (1346914866,), (1346914890,), (1346914904,), (1346914922,), (1346915151,), (1346915170,), (1346915203,), (1346915214,), (1346915226,), (1346915343,), (1346915371,), (1346915375,), (1346915380,), (1346915408,), (1346915433,), (1346915539,), (1346915556,), (1346915583,), (1346915797,), (1346915815,), (1346915821,), (1346915841,), (1346915857,), (1346915869,)) 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 21665405 , 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=21665328 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 (21665405) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21665328) result : ((1346913098,), (1346913115,), (1346913142,), (1346913177,), (1346913815,), (1346913947,), (1346914004,), (1346914065,), (1346914095,), (1346914438,), (1346914445,), (1346914458,), (1346914467,), (1346914513,), (1346914709,), (1346914728,), (1346914866,), (1346914890,), (1346914904,), (1346914922,), (1346915151,), (1346915170,), (1346915203,), (1346915214,), (1346915226,), (1346915343,), (1346915371,), (1346915375,), (1346915380,), (1346915408,), (1346915433,), (1346915539,), (1346915556,), (1346915583,), (1346915797,), (1346915815,), (1346915821,), (1346915841,), (1346915857,), (1346915869,)) 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 21665406 , 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=21665328 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 (21665406) result : ((1346915220,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21665328) result : ((1346913098,), (1346913115,), (1346913142,), (1346913177,), (1346913815,), (1346913947,), (1346914004,), (1346914065,), (1346914095,), (1346914438,), (1346914445,), (1346914458,), (1346914467,), (1346914513,), (1346914709,), (1346914728,), (1346914866,), (1346914890,), (1346914904,), (1346914922,), (1346915151,), (1346915170,), (1346915203,), (1346915214,), (1346915226,), (1346915343,), (1346915371,), (1346915375,), (1346915380,), (1346915408,), (1346915433,), (1346915539,), (1346915556,), (1346915583,), (1346915797,), (1346915815,), (1346915821,), (1346915841,), (1346915857,), (1346915869,)) 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 21665407 , 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=21665328 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 (21665407) result : ((1346915222,), (1346915267,), (1346915667,), (1346915668,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21665328) result : ((1346913098,), (1346913115,), (1346913142,), (1346913177,), (1346913815,), (1346913947,), (1346914004,), (1346914065,), (1346914095,), (1346914438,), (1346914445,), (1346914458,), (1346914467,), (1346914513,), (1346914709,), (1346914728,), (1346914866,), (1346914890,), (1346914904,), (1346914922,), (1346915151,), (1346915170,), (1346915203,), (1346915214,), (1346915226,), (1346915343,), (1346915371,), (1346915375,), (1346915380,), (1346915408,), (1346915433,), (1346915539,), (1346915556,), (1346915583,), (1346915797,), (1346915815,), (1346915821,), (1346915841,), (1346915857,), (1346915869,)) 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 21665408 , 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=21665328 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 (21665408) result : ((1346915215,), (1346915216,), (1346915217,), (1346915234,), (1346915235,), (1346915236,), (1346915652,), (1346915653,), (1346915654,), (1346915655,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21665328) result : ((1346913098,), (1346913115,), (1346913142,), (1346913177,), (1346913815,), (1346913947,), (1346914004,), (1346914065,), (1346914095,), (1346914438,), (1346914445,), (1346914458,), (1346914467,), (1346914513,), (1346914709,), (1346914728,), (1346914866,), (1346914890,), (1346914904,), (1346914922,), (1346915151,), (1346915170,), (1346915203,), (1346915214,), (1346915226,), (1346915343,), (1346915371,), (1346915375,), (1346915380,), (1346915408,), (1346915433,), (1346915539,), (1346915556,), (1346915583,), (1346915797,), (1346915815,), (1346915821,), (1346915841,), (1346915857,), (1346915869,)) 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 21665409 , 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=21665328 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 (21665409) result : ((1346915219,), (1346915244,), (1346915246,), (1346915247,), (1346915248,), (1346915658,), (1346915659,), (1346915660,), (1346915661,), (1346915662,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21665328) result : ((1346913098,), (1346913115,), (1346913142,), (1346913177,), (1346913815,), (1346913947,), (1346914004,), (1346914065,), (1346914095,), (1346914438,), (1346914445,), (1346914458,), (1346914467,), (1346914513,), (1346914709,), (1346914728,), (1346914866,), (1346914890,), (1346914904,), (1346914922,), (1346915151,), (1346915170,), (1346915203,), (1346915214,), (1346915226,), (1346915343,), (1346915371,), (1346915375,), (1346915380,), (1346915408,), (1346915433,), (1346915539,), (1346915556,), (1346915583,), (1346915797,), (1346915815,), (1346915821,), (1346915841,), (1346915857,), (1346915869,)) 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 21665410 , 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=21665328 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 (21665410) result : ((1346915261,), (1346915663,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21665328) result : ((1346913098,), (1346913115,), (1346913142,), (1346913177,), (1346913815,), (1346913947,), (1346914004,), (1346914065,), (1346914095,), (1346914438,), (1346914445,), (1346914458,), (1346914467,), (1346914513,), (1346914709,), (1346914728,), (1346914866,), (1346914890,), (1346914904,), (1346914922,), (1346915151,), (1346915170,), (1346915203,), (1346915214,), (1346915226,), (1346915343,), (1346915371,), (1346915375,), (1346915380,), (1346915408,), (1346915433,), (1346915539,), (1346915556,), (1346915583,), (1346915797,), (1346915815,), (1346915821,), (1346915841,), (1346915857,), (1346915869,)) 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 21665411 , 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=21665328 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 (21665411) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21665328) result : ((1346913098,), (1346913115,), (1346913142,), (1346913177,), (1346913815,), (1346913947,), (1346914004,), (1346914065,), (1346914095,), (1346914438,), (1346914445,), (1346914458,), (1346914467,), (1346914513,), (1346914709,), (1346914728,), (1346914866,), (1346914890,), (1346914904,), (1346914922,), (1346915151,), (1346915170,), (1346915203,), (1346915214,), (1346915226,), (1346915343,), (1346915371,), (1346915375,), (1346915380,), (1346915408,), (1346915433,), (1346915539,), (1346915556,), (1346915583,), (1346915797,), (1346915815,), (1346915821,), (1346915841,), (1346915857,), (1346915869,)) 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 21665412 , 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=21665328 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 (21665412) result : ((1346915221,), (1346915253,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21665328) result : ((1346913098,), (1346913115,), (1346913142,), (1346913177,), (1346913815,), (1346913947,), (1346914004,), (1346914065,), (1346914095,), (1346914438,), (1346914445,), (1346914458,), (1346914467,), (1346914513,), (1346914709,), (1346914728,), (1346914866,), (1346914890,), (1346914904,), (1346914922,), (1346915151,), (1346915170,), (1346915203,), (1346915214,), (1346915226,), (1346915343,), (1346915371,), (1346915375,), (1346915380,), (1346915408,), (1346915433,), (1346915539,), (1346915556,), (1346915583,), (1346915797,), (1346915815,), (1346915821,), (1346915841,), (1346915857,), (1346915869,)) 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`=21665328 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','kraft','metal','mal_croppe','Carton_gris','cartonnette','autre_refus','Carton_brun','flou','Teint_Dans_La_Masse','papier','plastique')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21665328 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','kraft','metal','mal_croppe','Carton_gris','cartonnette','autre_refus','Carton_brun','flou','Teint_Dans_La_Masse','papier','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 21665328, 'sub_port_id': 21665413, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200328, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 30)}, 'kraft': {'main_port_id': 21665328, 'sub_port_id': 21665414, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200329, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 30)}, 'mal_croppe': {'main_port_id': 21665328, 'sub_port_id': 21665415, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200330, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 30)}, 'flou': {'main_port_id': 21665328, 'sub_port_id': 21665416, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200331, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 30)}, 'papier': {'main_port_id': 21665328, 'sub_port_id': 21665417, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200332, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 30)}, 'Carton_gris': {'main_port_id': 21665328, 'sub_port_id': 21665418, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200333, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 30)}, 'plastique': {'main_port_id': 21665328, 'sub_port_id': 21665419, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200334, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 21665328, 'sub_port_id': 21665420, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200335, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 30)}, 'autre_refus': {'main_port_id': 21665328, 'sub_port_id': 21665421, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200336, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 30)}, 'Carton_brun': {'main_port_id': 21665328, 'sub_port_id': 21665422, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200337, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 30)}, 'metal': {'main_port_id': 21665328, 'sub_port_id': 21665423, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200338, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 30)}, 'cartonnette': {'main_port_id': 21665328, 'sub_port_id': 21665424, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14200339, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 19, 49, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21665413,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21665401 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21665414,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21665402 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21665415,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21665403 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21665416,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21665404 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21665417,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21665405 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21665418,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21665406 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21665419,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21665407 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21665420,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21665408 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21665421,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21665409 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21665422,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21665410 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21665423,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21665411 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21665424,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21665412 lien utilise dans velours : https://www.fotonower.com/velours/21665413,21665414,21665415,21665416,21665417,21665418,21665419,21665420,21665421,21665422,21665423,21665424?tags=environnement,kraft,mal_croppe,flou,papier,Carton_gris,plastique,Teint_Dans_La_Masse,autre_refus,Carton_brun,metal,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21665328]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1346915869, 1346915857, 1346915841, 1346915821, 1346915815, 1346915797, 1346915583, 1346915556, 1346915539] map_info['map_portfolio_photo'] : {21665328: [1346915869, 1346915857, 1346915841, 1346915821, 1346915815, 1346915797, 1346915583, 1346915556, 1346915539, 1346915433, 1346915408, 1346915380, 1346915375, 1346915371, 1346915343, 1346915226, 1346915214, 1346915203, 1346915170, 1346915151, 1346914922, 1346914904, 1346914890, 1346914866, 1346914728, 1346914709, 1346914513, 1346914467, 1346914458, 1346914445, 1346914438, 1346914095, 1346914065, 1346914004, 1346913947, 1346913815, 1346913177, 1346913142, 1346913115, 1346913098]} final : False mtd_id 4302 list_pids : [1346915869, 1346915857, 1346915841, 1346915821, 1346915815, 1346915797, 1346915583, 1346915556, 1346915539] Looping around the photos to save general results len do output : 1 /21665328. 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, '2686836') ('4302', '21665328', '1346915869', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915857', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915841', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915821', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915815', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915797', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915583', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915556', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915539', None, None, None, None, None, '2686836') 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', None, '21665328', "{'environnement': 21665401, 'kraft': 21665402, 'mal_croppe': 21665403, 'flou': 21665404, 'papier': 21665405, 'Carton_gris': 21665406, 'plastique': 21665407, 'Teint_Dans_La_Masse': 21665408, 'autre_refus': 21665409, 'Carton_brun': 21665410, 'metal': 21665411, 'cartonnette': 21665412}", None, None, None, None, '2686836'), ('4302', '21665328', '1346915869', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915857', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915841', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915821', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915815', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915797', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915583', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915556', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915539', None, None, None, None, None, '2686836')] time used for this insertion : 0.013432025909423828 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5287680625915527 time spend to save output : 0.013743400573730469 total time spend for step 1 : 1.5425114631652832 step2:final Mon Mar 24 19:55:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21665328) 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 21665328 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1346913177,1346913142,1346913115,1346913098,1346914095,1346914065,1346914004,1346913947,1346913815,1346914513,1346914467,1346914458,1346914445,1346914438,1346914922,1346914904,1346914890,1346914866,1346914728,1346914709,1346915226,1346915214,1346915203,1346915170,1346915151,1346915433,1346915408,1346915380,1346915375,1346915371,1346915343,1346915583,1346915556,1346915539,1346915869,1346915857,1346915841,1346915821,1346915815,1346915797); 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([21665328]) Inside saveOutput : final : False verbose : True original output for save of step final : {1346915869: ('0.06991669083412949',), 1346915857: ('0.06991669083412949',), 1346915841: ('0.06991669083412949',), 1346915821: ('0.06991669083412949',), 1346915815: ('0.06991669083412949',), 1346915797: ('0.06991669083412949',), 1346915583: ('0.06991669083412949',), 1346915556: ('0.06991669083412949',), 1346915539: ('0.06991669083412949',)} new output for save of step final : {1346915869: ('0.06991669083412949',), 1346915857: ('0.06991669083412949',), 1346915841: ('0.06991669083412949',), 1346915821: ('0.06991669083412949',), 1346915815: ('0.06991669083412949',), 1346915797: ('0.06991669083412949',), 1346915583: ('0.06991669083412949',), 1346915556: ('0.06991669083412949',), 1346915539: ('0.06991669083412949',)} [1346915869, 1346915857, 1346915841, 1346915821, 1346915815, 1346915797, 1346915583, 1346915556, 1346915539] map_info['map_portfolio_photo'] : {21665328: [1346915869, 1346915857, 1346915841, 1346915821, 1346915815, 1346915797, 1346915583, 1346915556, 1346915539, 1346915433, 1346915408, 1346915380, 1346915375, 1346915371, 1346915343, 1346915226, 1346915214, 1346915203, 1346915170, 1346915151, 1346914922, 1346914904, 1346914890, 1346914866, 1346914728, 1346914709, 1346914513, 1346914467, 1346914458, 1346914445, 1346914438, 1346914095, 1346914065, 1346914004, 1346913947, 1346913815, 1346913177, 1346913142, 1346913115, 1346913098]} final : False mtd_id 4302 list_pids : [1346915869, 1346915857, 1346915841, 1346915821, 1346915815, 1346915797, 1346915583, 1346915556, 1346915539] Looping around the photos to save general results len do output : 9 /1346915869.Didn't retrieve data . /1346915857.Didn't retrieve data . /1346915841.Didn't retrieve data . /1346915821.Didn't retrieve data . /1346915815.Didn't retrieve data . /1346915797.Didn't retrieve data . /1346915583.Didn't retrieve data . /1346915556.Didn't retrieve data . /1346915539.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, '2686836') ('4302', '21665328', '1346915869', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915857', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915841', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915821', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915815', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915797', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915583', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915556', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915539', None, None, None, None, None, '2686836') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '21665328', '1346915869', '0.06991669083412949', None, None, None, None, '2686836'), ('4302', '21665328', '1346915857', '0.06991669083412949', None, None, None, None, '2686836'), ('4302', '21665328', '1346915841', '0.06991669083412949', None, None, None, None, '2686836'), ('4302', '21665328', '1346915821', '0.06991669083412949', None, None, None, None, '2686836'), ('4302', '21665328', '1346915815', '0.06991669083412949', None, None, None, None, '2686836'), ('4302', '21665328', '1346915797', '0.06991669083412949', None, None, None, None, '2686836'), ('4302', '21665328', '1346915583', '0.06991669083412949', None, None, None, None, '2686836'), ('4302', '21665328', '1346915556', '0.06991669083412949', None, None, None, None, '2686836'), ('4302', '21665328', '1346915539', '0.06991669083412949', None, None, None, None, '2686836')] time used for this insertion : 0.01533198356628418 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06565332412719727 time spend to save output : 0.015880823135375977 total time spend for step 2 : 0.08153414726257324 step3:velours_tree Mon Mar 24 19:55: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 complete output_args for input 0 : {21665328: [{'environnement': 21665401, 'kraft': 21665402, 'mal_croppe': 21665403, 'flou': 21665404, 'papier': 21665405, 'Carton_gris': 21665406, 'plastique': 21665407, 'Teint_Dans_La_Masse': 21665408, 'autre_refus': 21665409, 'Carton_brun': 21665410, 'metal': 21665411, 'cartonnette': 21665412}]} input_args_next_step : {21665328: ()} output_args : {21665328: [{'environnement': 21665401, 'kraft': 21665402, 'mal_croppe': 21665403, 'flou': 21665404, 'papier': 21665405, 'Carton_gris': 21665406, 'plastique': 21665407, 'Teint_Dans_La_Masse': 21665408, 'autre_refus': 21665409, 'Carton_brun': 21665410, 'metal': 21665411, 'cartonnette': 21665412}]} args : 21665328 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 : ({'environnement': 21665401, 'kraft': 21665402, 'mal_croppe': 21665403, 'flou': 21665404, 'papier': 21665405, 'Carton_gris': 21665406, 'plastique': 21665407, 'Teint_Dans_La_Masse': 21665408, 'autre_refus': 21665409, 'Carton_brun': 21665410, 'metal': 21665411, 'cartonnette': 21665412},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21665328) 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([21665328]) 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.35782504081726074 time spend to save output : 7.224082946777344e-05 total time spend for step 3 : 0.3578972816467285 step4:send_mail_cod Mon Mar 24 19:55: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 : {1346915869: ('0.06991669083412949',), 1346915857: ('0.06991669083412949',), 1346915841: ('0.06991669083412949',), 1346915821: ('0.06991669083412949',), 1346915815: ('0.06991669083412949',), 1346915797: ('0.06991669083412949',), 1346915583: ('0.06991669083412949',), 1346915556: ('0.06991669083412949',), 1346915539: ('0.06991669083412949',)} input_args_next_step : {1346915869: ()} output_args : {1346915869: ('0.06991669083412949',), 1346915857: ('0.06991669083412949',), 1346915841: ('0.06991669083412949',), 1346915821: ('0.06991669083412949',), 1346915815: ('0.06991669083412949',), 1346915797: ('0.06991669083412949',), 1346915583: ('0.06991669083412949',), 1346915556: ('0.06991669083412949',), 1346915539: ('0.06991669083412949',)} args : 1346915869 depend.output_id : 0 input_args_next_step : {1346915869: ('0.06991669083412949',), 1346915857: ()} output_args : {1346915869: ('0.06991669083412949',), 1346915857: ('0.06991669083412949',), 1346915841: ('0.06991669083412949',), 1346915821: ('0.06991669083412949',), 1346915815: ('0.06991669083412949',), 1346915797: ('0.06991669083412949',), 1346915583: ('0.06991669083412949',), 1346915556: ('0.06991669083412949',), 1346915539: ('0.06991669083412949',)} args : 1346915857 depend.output_id : 0 input_args_next_step : {1346915869: ('0.06991669083412949',), 1346915857: ('0.06991669083412949',), 1346915841: ()} output_args : {1346915869: ('0.06991669083412949',), 1346915857: ('0.06991669083412949',), 1346915841: ('0.06991669083412949',), 1346915821: ('0.06991669083412949',), 1346915815: ('0.06991669083412949',), 1346915797: ('0.06991669083412949',), 1346915583: ('0.06991669083412949',), 1346915556: ('0.06991669083412949',), 1346915539: ('0.06991669083412949',)} args : 1346915841 depend.output_id : 0 input_args_next_step : {1346915869: ('0.06991669083412949',), 1346915857: ('0.06991669083412949',), 1346915841: ('0.06991669083412949',), 1346915821: ()} output_args : {1346915869: ('0.06991669083412949',), 1346915857: ('0.06991669083412949',), 1346915841: ('0.06991669083412949',), 1346915821: ('0.06991669083412949',), 1346915815: ('0.06991669083412949',), 1346915797: ('0.06991669083412949',), 1346915583: ('0.06991669083412949',), 1346915556: ('0.06991669083412949',), 1346915539: ('0.06991669083412949',)} args : 1346915821 depend.output_id : 0 input_args_next_step : {1346915869: ('0.06991669083412949',), 1346915857: ('0.06991669083412949',), 1346915841: ('0.06991669083412949',), 1346915821: ('0.06991669083412949',), 1346915815: ()} output_args : {1346915869: ('0.06991669083412949',), 1346915857: ('0.06991669083412949',), 1346915841: ('0.06991669083412949',), 1346915821: ('0.06991669083412949',), 1346915815: ('0.06991669083412949',), 1346915797: ('0.06991669083412949',), 1346915583: ('0.06991669083412949',), 1346915556: ('0.06991669083412949',), 1346915539: ('0.06991669083412949',)} args : 1346915815 depend.output_id : 0 input_args_next_step : {1346915869: ('0.06991669083412949',), 1346915857: ('0.06991669083412949',), 1346915841: ('0.06991669083412949',), 1346915821: ('0.06991669083412949',), 1346915815: ('0.06991669083412949',), 1346915797: ()} output_args : {1346915869: ('0.06991669083412949',), 1346915857: ('0.06991669083412949',), 1346915841: ('0.06991669083412949',), 1346915821: ('0.06991669083412949',), 1346915815: ('0.06991669083412949',), 1346915797: ('0.06991669083412949',), 1346915583: ('0.06991669083412949',), 1346915556: ('0.06991669083412949',), 1346915539: ('0.06991669083412949',)} args : 1346915797 depend.output_id : 0 input_args_next_step : {1346915869: ('0.06991669083412949',), 1346915857: ('0.06991669083412949',), 1346915841: ('0.06991669083412949',), 1346915821: ('0.06991669083412949',), 1346915815: ('0.06991669083412949',), 1346915797: ('0.06991669083412949',), 1346915583: ()} output_args : {1346915869: ('0.06991669083412949',), 1346915857: ('0.06991669083412949',), 1346915841: ('0.06991669083412949',), 1346915821: ('0.06991669083412949',), 1346915815: ('0.06991669083412949',), 1346915797: ('0.06991669083412949',), 1346915583: ('0.06991669083412949',), 1346915556: ('0.06991669083412949',), 1346915539: ('0.06991669083412949',)} args : 1346915583 depend.output_id : 0 input_args_next_step : {1346915869: ('0.06991669083412949',), 1346915857: ('0.06991669083412949',), 1346915841: ('0.06991669083412949',), 1346915821: ('0.06991669083412949',), 1346915815: ('0.06991669083412949',), 1346915797: ('0.06991669083412949',), 1346915583: ('0.06991669083412949',), 1346915556: ()} output_args : {1346915869: ('0.06991669083412949',), 1346915857: ('0.06991669083412949',), 1346915841: ('0.06991669083412949',), 1346915821: ('0.06991669083412949',), 1346915815: ('0.06991669083412949',), 1346915797: ('0.06991669083412949',), 1346915583: ('0.06991669083412949',), 1346915556: ('0.06991669083412949',), 1346915539: ('0.06991669083412949',)} args : 1346915556 depend.output_id : 0 input_args_next_step : {1346915869: ('0.06991669083412949',), 1346915857: ('0.06991669083412949',), 1346915841: ('0.06991669083412949',), 1346915821: ('0.06991669083412949',), 1346915815: ('0.06991669083412949',), 1346915797: ('0.06991669083412949',), 1346915583: ('0.06991669083412949',), 1346915556: ('0.06991669083412949',), 1346915539: ()} output_args : {1346915869: ('0.06991669083412949',), 1346915857: ('0.06991669083412949',), 1346915841: ('0.06991669083412949',), 1346915821: ('0.06991669083412949',), 1346915815: ('0.06991669083412949',), 1346915797: ('0.06991669083412949',), 1346915583: ('0.06991669083412949',), 1346915556: ('0.06991669083412949',), 1346915539: ('0.06991669083412949',)} args : 1346915539 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 : {21665328: [{'environnement': 21665401, 'kraft': 21665402, 'mal_croppe': 21665403, 'flou': 21665404, 'papier': 21665405, 'Carton_gris': 21665406, 'plastique': 21665407, 'Teint_Dans_La_Masse': 21665408, 'autre_refus': 21665409, 'Carton_brun': 21665410, 'metal': 21665411, 'cartonnette': 21665412}]} input_args_next_step : {1346915869: ('0.06991669083412949',), 1346915857: ('0.06991669083412949',), 1346915841: ('0.06991669083412949',), 1346915821: ('0.06991669083412949',), 1346915815: ('0.06991669083412949',), 1346915797: ('0.06991669083412949',), 1346915583: ('0.06991669083412949',), 1346915556: ('0.06991669083412949',), 1346915539: ('0.06991669083412949',), 21665328: ()} output_args : {21665328: [{'environnement': 21665401, 'kraft': 21665402, 'mal_croppe': 21665403, 'flou': 21665404, 'papier': 21665405, 'Carton_gris': 21665406, 'plastique': 21665407, 'Teint_Dans_La_Masse': 21665408, 'autre_refus': 21665409, 'Carton_brun': 21665410, 'metal': 21665411, 'cartonnette': 21665412}]} args : 21665328 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 :10, first value : ('0.06991669083412949',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21665328) 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 (1346915869,1346915857,1346915841,1346915821,1346915815,1346915797,1346915583,1346915556,1346915539) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1346915539 begin to download photo : 1346915583 begin to download photo : 1346915815 begin to download photo : 1346915841 begin to download photo : 1346915869 download finish for photo 1346915841 begin to download photo : 1346915857 download finish for photo 1346915583 begin to download photo : 1346915797 download finish for photo 1346915539 begin to download photo : 1346915556 download finish for photo 1346915869 download finish for photo 1346915815 begin to download photo : 1346915821 download finish for photo 1346915857 download finish for photo 1346915797 download finish for photo 1346915556 download finish for photo 1346915821 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P21665328_24-03-2025_19_55_01.pdf 21665402 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=21665402 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346915269: '1742842271_3700365_1346914467_60cbf156567531cca22877bfee5285be_rle_crop_3727496676_0.png', 1346915270: '1742842271_3700365_1346914458_41fc87f734c2b45e2e17dc8687ba5449_rle_crop_3727496694_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/59e1e9e43623134759ae8b6c22324240_99613992.png change filename to text .imagette216654021742842501/ imagette216654021742842501/1742842271_3700365_1346914458_41fc87f734c2b45e2e17dc8687ba5449_rle_crop_3727496694_0.png.png imagette216654021742842501/1742842271_3700365_1346914467_60cbf156567531cca22877bfee5285be_rle_crop_3727496676_0.png.png imagette216654031742842501/ imagette216654041742842501/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4431793b845dc3a2efbf577283377f6b_67988038.png imagette216654021742842501 21665403 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=21665403 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216654031742842501 21665404 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=21665404 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216654041742842501 21665407 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=21665407 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346915222: '1742842252_3700092_1346914513_99da78623940d43d5be38580c726496a_rle_crop_3727495708_0.png', 1346915267: '1742842271_3700365_1346914445_c3fe917a1e75a61e41b29dfaedaa43e5_rle_crop_3727496716_0.png', 1346915667: '1742842372_3701238_1346914890_d5dafe70833bf00825830ec3295da2fd_rle_crop_3727497998_0.png', 1346915668: '1742842372_3701238_1346914890_d5dafe70833bf00825830ec3295da2fd_rle_crop_3727498005_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5f4c42ed1e53c2dfe67315c84a231e3e_3704199.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/afb4cff8ca9b998cd3ca63dc0b8ea110_91285991.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/885c945fd209ba98b9af024194d5fb7c_89928197.png change filename to text .imagette216654071742842501/ imagette216654071742842501/1742842252_3700092_1346914513_99da78623940d43d5be38580c726496a_rle_crop_3727495708_0.png.png imagette216654071742842501/1742842271_3700365_1346914445_c3fe917a1e75a61e41b29dfaedaa43e5_rle_crop_3727496716_0.png.png imagette216654071742842501/1742842372_3701238_1346914890_d5dafe70833bf00825830ec3295da2fd_rle_crop_3727498005_0.png.png imagette216654071742842501/1742842372_3701238_1346914890_d5dafe70833bf00825830ec3295da2fd_rle_crop_3727497998_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/66c9bc902ba59aeea9cc8a73d532f043_38455832.png imagette216654071742842501 21665409 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=21665409 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346915219: '1742842252_3700092_1346914065_7e5d5820d84a0604b85c73ae3cf1ae18_rle_crop_3727495714_0.png', 1346915244: '1742842271_3700365_1346914467_60cbf156567531cca22877bfee5285be_rle_crop_3727496680_0.png', 1346915246: '1742842271_3700365_1346914467_60cbf156567531cca22877bfee5285be_rle_crop_3727496687_0.png', 1346915247: '1742842271_3700365_1346914458_41fc87f734c2b45e2e17dc8687ba5449_rle_crop_3727496699_0.png', 1346915248: '1742842271_3700365_1346914445_c3fe917a1e75a61e41b29dfaedaa43e5_rle_crop_3727496713_0.png', 1346915658: '1742842372_3701238_1346914890_d5dafe70833bf00825830ec3295da2fd_rle_crop_3727498003_0.png', 1346915659: '1742842372_3701238_1346914890_d5dafe70833bf00825830ec3295da2fd_rle_crop_3727497999_0.png', 1346915660: '1742842372_3701238_1346914866_5e6d80f4bb4156469ba94639d95bef1c_rle_crop_3727498021_0.png', 1346915661: '1742842372_3701238_1346914728_9b8340a87d6252b529851b8ecaf2a231_rle_crop_3727498037_0.png', 1346915662: '1742842372_3701238_1346914728_9b8340a87d6252b529851b8ecaf2a231_rle_crop_3727498030_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7503a7c55cd8f0a7d81a2b92d3dd21bb_32950816.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/dc216a197adaae2e0d2386d62160ee5f_52821882.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ceb937404443f90e087b18fb974cc3d1_3452366.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/fbb2b5a7259fa291de10767ba24f2379_45921878.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ff0081b8aa09b326f6f616835f9ade20_28400140.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d43d13525e5f469df62c302de29fe957_6677638.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/8f56227f4210fd7ecfee9a08a4881c06_60496291.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e423d672faa66c6d28cf9d964da27aa2_60004572.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/55de343424a15f5d61eb11194ec94fa7_41407700.png change filename to text .imagette216654091742842502/ imagette216654091742842502/1742842271_3700365_1346914458_41fc87f734c2b45e2e17dc8687ba5449_rle_crop_3727496699_0.png.png imagette216654091742842502/1742842372_3701238_1346914890_d5dafe70833bf00825830ec3295da2fd_rle_crop_3727497999_0.png.png imagette216654091742842502/1742842372_3701238_1346914728_9b8340a87d6252b529851b8ecaf2a231_rle_crop_3727498030_0.png.png imagette216654091742842502/1742842271_3700365_1346914445_c3fe917a1e75a61e41b29dfaedaa43e5_rle_crop_3727496713_0.png.png imagette216654091742842502/1742842271_3700365_1346914467_60cbf156567531cca22877bfee5285be_rle_crop_3727496687_0.png.png imagette216654091742842502/1742842252_3700092_1346914065_7e5d5820d84a0604b85c73ae3cf1ae18_rle_crop_3727495714_0.png.png imagette216654091742842502/1742842372_3701238_1346914890_d5dafe70833bf00825830ec3295da2fd_rle_crop_3727498003_0.png.png imagette216654091742842502/1742842271_3700365_1346914467_60cbf156567531cca22877bfee5285be_rle_crop_3727496680_0.png.png imagette216654091742842502/1742842372_3701238_1346914866_5e6d80f4bb4156469ba94639d95bef1c_rle_crop_3727498021_0.png.png imagette216654091742842502/1742842372_3701238_1346914728_9b8340a87d6252b529851b8ecaf2a231_rle_crop_3727498037_0.png.png imagette216654111742842502/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f307718607603591c93d3acbf9419a85_50325773.png imagette216654091742842502 21665411 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=21665411 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216654111742842502 21665412 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=21665412 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346915221: '1742842252_3700092_1346913815_c652b2631e31ba08f28d505027ccf64d_rle_crop_3727495734_0.png', 1346915253: '1742842271_3700365_1346914438_ff62166e5718bde0c358ac1dbbc77490_rle_crop_3727496724_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/147d401e78ce8bd36781f4ba84779d91_68093959.png change filename to text .imagette216654121742842502/ imagette216654121742842502/1742842252_3700092_1346913815_c652b2631e31ba08f28d505027ccf64d_rle_crop_3727495734_0.png.png imagette216654121742842502/1742842271_3700365_1346914438_ff62166e5718bde0c358ac1dbbc77490_rle_crop_3727496724_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/53daa96fa5e9e9b59a60787f92c6e02f_1661805.png imagette216654121742842502 21665406 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=21665406 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346915220: '1742842252_3700092_1346913815_c652b2631e31ba08f28d505027ccf64d_rle_crop_3727495737_0.png'} change filename to text .imagette216654061742842502/ imagette216654061742842502/1742842252_3700092_1346913815_c652b2631e31ba08f28d505027ccf64d_rle_crop_3727495737_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/6b1c7323e2ddce940f710c344cef2efe_4818592.png imagette216654061742842502 21665408 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=21665408 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346915215: '1742842252_3700092_1346914513_99da78623940d43d5be38580c726496a_rle_crop_3727495706_0.png', 1346915216: '1742842252_3700092_1346914513_99da78623940d43d5be38580c726496a_rle_crop_3727495698_0.png', 1346915217: '1742842252_3700092_1346913815_c652b2631e31ba08f28d505027ccf64d_rle_crop_3727495739_0.png', 1346915234: '1742842271_3700365_1346914467_60cbf156567531cca22877bfee5285be_rle_crop_3727496681_0.png', 1346915235: '1742842271_3700365_1346914438_ff62166e5718bde0c358ac1dbbc77490_rle_crop_3727496728_0.png', 1346915236: '1742842271_3700365_1346914438_ff62166e5718bde0c358ac1dbbc77490_rle_crop_3727496726_0.png', 1346915652: '1742842372_3701238_1346914866_5e6d80f4bb4156469ba94639d95bef1c_rle_crop_3727498020_0.png', 1346915653: '1742842372_3701238_1346914728_9b8340a87d6252b529851b8ecaf2a231_rle_crop_3727498038_0.png', 1346915654: '1742842372_3701238_1346914728_9b8340a87d6252b529851b8ecaf2a231_rle_crop_3727498029_0.png', 1346915655: '1742842372_3701238_1346914728_9b8340a87d6252b529851b8ecaf2a231_rle_crop_3727498035_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/60d1e9ab74f750aed2481cd14f960430_37285624.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/361eae2575f30731289996e4c1cf9de4_15345406.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d111e7cba9a49584122aa1b83dc20143_80098256.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/98a72fd0d2711cc8cdea26e72f00d821_57965578.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/1dade3b9d94c6719b758d58f89d39614_45624735.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e0262536ca0ec13d409f4f5459057900_25470653.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/148a9de22c9eab9354f1239dcd88370f_40394667.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e6c3d1c08c9a641e5e8db4849a968efe_77886581.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5cc0510ecae342b22577d79a31dd51f3_70053739.png change filename to text .imagette216654081742842502/ imagette216654081742842502/1742842372_3701238_1346914728_9b8340a87d6252b529851b8ecaf2a231_rle_crop_3727498038_0.png.png imagette216654081742842502/1742842271_3700365_1346914438_ff62166e5718bde0c358ac1dbbc77490_rle_crop_3727496728_0.png.png imagette216654081742842502/1742842372_3701238_1346914866_5e6d80f4bb4156469ba94639d95bef1c_rle_crop_3727498020_0.png.png imagette216654081742842502/1742842271_3700365_1346914467_60cbf156567531cca22877bfee5285be_rle_crop_3727496681_0.png.png imagette216654081742842502/1742842372_3701238_1346914728_9b8340a87d6252b529851b8ecaf2a231_rle_crop_3727498035_0.png.png imagette216654081742842502/1742842252_3700092_1346914513_99da78623940d43d5be38580c726496a_rle_crop_3727495706_0.png.png imagette216654081742842502/1742842252_3700092_1346913815_c652b2631e31ba08f28d505027ccf64d_rle_crop_3727495739_0.png.png imagette216654081742842502/1742842271_3700365_1346914438_ff62166e5718bde0c358ac1dbbc77490_rle_crop_3727496726_0.png.png imagette216654081742842502/1742842372_3701238_1346914728_9b8340a87d6252b529851b8ecaf2a231_rle_crop_3727498029_0.png.png imagette216654081742842502/1742842252_3700092_1346914513_99da78623940d43d5be38580c726496a_rle_crop_3727495698_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4cdb3ce2eda066fddaf2f4e72720a18b_94379839.png imagette216654081742842502 21665410 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=21665410 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346915261: '1742842271_3700365_1346914445_c3fe917a1e75a61e41b29dfaedaa43e5_rle_crop_3727496712_0.png', 1346915663: '1742842372_3701238_1346914728_9b8340a87d6252b529851b8ecaf2a231_rle_crop_3727498036_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e421df7c65bea85f168bef570fbab1f1_10485677.png change filename to text .imagette216654101742842503/ imagette216654101742842503/1742842372_3701238_1346914728_9b8340a87d6252b529851b8ecaf2a231_rle_crop_3727498036_0.png.png imagette216654101742842503/1742842271_3700365_1346914445_c3fe917a1e75a61e41b29dfaedaa43e5_rle_crop_3727496712_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5722f162ebb48b54c31444ee8c3cbe27_86011585.png imagette216654101742842503 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21665328 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21665413,21665414,21665415,21665416,21665417,21665418,21665419,21665420,21665421,21665422,21665423,21665424?tags=environnement,kraft,mal_croppe,flou,papier,Carton_gris,plastique,Teint_Dans_La_Masse,autre_refus,Carton_brun,metal,cartonnette your option no_mail is active, we will not send the real mail to your client args[1346915869] : ('0.06991669083412949',) no score found for photo 1346915869 We are sending mail with results at report@fotonower.com args[1346915857] : ('0.06991669083412949',) no score found for photo 1346915857 We are sending mail with results at report@fotonower.com args[1346915841] : ('0.06991669083412949',) no score found for photo 1346915841 We are sending mail with results at report@fotonower.com args[1346915821] : ('0.06991669083412949',) no score found for photo 1346915821 We are sending mail with results at report@fotonower.com args[1346915815] : ('0.06991669083412949',) no score found for photo 1346915815 We are sending mail with results at report@fotonower.com args[1346915797] : ('0.06991669083412949',) no score found for photo 1346915797 We are sending mail with results at report@fotonower.com args[1346915583] : ('0.06991669083412949',) no score found for photo 1346915583 We are sending mail with results at report@fotonower.com args[1346915556] : ('0.06991669083412949',) no score found for photo 1346915556 We are sending mail with results at report@fotonower.com args[1346915539] : ('0.06991669083412949',) no score found for photo 1346915539 We are sending mail with results at report@fotonower.com refus_total : 0.06991669083412949 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=21665328 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_P21665328_24-03-2025_19_55_01.pdf results_Auto_P21665328_24-03-2025_19_55_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21665328_24-03-2025_19_55_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21665328','results_Auto_P21665328_24-03-2025_19_55_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21665328_24-03-2025_19_55_01.pdf','pdf','','0.2','0.06991669083412949') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21665328]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1346915869, 1346915857, 1346915841, 1346915821, 1346915815, 1346915797, 1346915583, 1346915556, 1346915539] map_info['map_portfolio_photo'] : {21665328: [1346915869, 1346915857, 1346915841, 1346915821, 1346915815, 1346915797, 1346915583, 1346915556, 1346915539, 1346915433, 1346915408, 1346915380, 1346915375, 1346915371, 1346915343, 1346915226, 1346915214, 1346915203, 1346915170, 1346915151, 1346914922, 1346914904, 1346914890, 1346914866, 1346914728, 1346914709, 1346914513, 1346914467, 1346914458, 1346914445, 1346914438, 1346914095, 1346914065, 1346914004, 1346913947, 1346913815, 1346913177, 1346913142, 1346913115, 1346913098]} final : False mtd_id 4302 list_pids : [1346915869, 1346915857, 1346915841, 1346915821, 1346915815, 1346915797, 1346915583, 1346915556, 1346915539] 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, '2686836') ('4302', '21665328', '1346915869', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915857', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915841', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915821', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915815', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915797', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915583', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915556', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915539', None, None, None, None, None, '2686836') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '21665328', '1346915869', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915857', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915841', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915821', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915815', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915797', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915583', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915556', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915539', None, None, None, None, None, '2686836')] time used for this insertion : 0.013877630233764648 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.219083547592163 time spend to save output : 0.014121055603027344 total time spend for step 4 : 3.2332046031951904 step5:split_time_score Mon Mar 24 19:55: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 : ['21665328'] 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 : [('21665328',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21665328) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1346915869: {'path': 'temp/1742842501_1743088_1346915869_789d17ebd49631998a167ba33e10aa25.jpg', 'extension': 'jpg'}, 1346915841: {'path': 'temp/1742842501_1743088_1346915841_a12c5b6b3b8110c339f062b10e597e72.jpg', 'extension': 'jpg'}, 1346915857: {'path': 'temp/1742842501_1743088_1346915857_27a726630baf6de8df9cb99d3d0f9350.jpg', 'extension': 'jpg'}, 1346915583: {'path': 'temp/1742842501_1743088_1346915583_98cf6a5b55581485e1c27bdf59ded84e.jpg', 'extension': 'jpg'}, 1346915797: {'path': 'temp/1742842501_1743088_1346915797_1335660e81e33b9f49e88c79abc0493a.jpg', 'extension': 'jpg'}, 1346915539: {'path': 'temp/1742842501_1743088_1346915539_b7d6a062b29e89c12c1ac1ddc2fa50b1.jpg', 'extension': 'jpg'}, 1346915556: {'path': 'temp/1742842501_1743088_1346915556_4960685371463fc46e14ca80a24590b9.jpg', 'extension': 'jpg'}, 1346915815: {'path': 'temp/1742842501_1743088_1346915815_fd0ba17fa2a819c7c307b5671b506db0.jpg', 'extension': 'jpg'}, 1346915821: {'path': 'temp/1742842501_1743088_1346915821_37626ca218fa0a4d307dcffb84bf44d3.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 = 21665328; (('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 = 21665328 group by h (('19', 40),) 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=21665328 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 (21665328) 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 (21665328) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24032025 21665328 Nombre de photos uploadées : 40 / 23040 (0%) 24032025 21665328 Nombre de photos taguées (types de déchets): 0 / 40 (0%) 24032025 21665328 Nombre de photos taguées (volume) : 0 / 40 (0%) [{'photo_id': 1346913177, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f7a6eaf89ff5c5a877b4eedf8487cda3.jpg', 'username': None, 'uploaded_at': 1742842030, 'text': 'image_24032025_19_45_14_10698.jpg'}, {'photo_id': 1346913142, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/62b41b00a61dbff172ac9128ca3b4a5d.jpg', 'username': None, 'uploaded_at': 1742842030, 'text': 'image_24032025_19_45_24_10137.jpg'}, {'photo_id': 1346913115, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/07a087734487ac04fac51456c359fbdf.jpg', 'username': None, 'uploaded_at': 1742842030, 'text': 'image_24032025_19_45_34_10154.jpg'}, {'photo_id': 1346913098, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4dbcf3ca27095c6b5523247e8a90ca9c.jpg', 'username': None, 'uploaded_at': 1742842030, 'text': 'image_24032025_19_45_43_9127.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 8.344650268554688e-06 ???????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.00281524658203125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21665328, '2025-03-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1682789,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022011518478393555 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= 1682789 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1682789, 'dashboard_run_id': 1692528, 'mtr_portfolio_id': 21662543, 'dashboard_result_id': 9590338, '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_P21662543_24-03-2025_19_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21662592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21662593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21662594, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21662595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21662596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21662597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21662598, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21662599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21662600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21662601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21662602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21662603, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1692528, 'mtr_portfolio_id': 21663414, 'dashboard_result_id': 9590339, '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_P21663414_24-03-2025_19_34_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21663518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21663519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21663520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21663521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21663522, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21663523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21663524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21663525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21663526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21663527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21663528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21663529, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1692528, 'mtr_portfolio_id': 21664360, 'dashboard_result_id': 9590340, '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_P21664360_24-03-2025_19_49_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21664373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21664374, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21664375, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21664377, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21664383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21664389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21664391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21664392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21664393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21664394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21664395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21664396, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1692528, 'mtr_portfolio_id': 21665328, 'dashboard_result_id': 9590341, '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_P21665328_24-03-2025_19_53_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21665401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21665402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21665403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21665404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21665405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21665406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21665407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21665408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21665409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21665410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21665411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21665412, '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 = 21662543 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': 2686703, 'mtr_portfolio_id': 21662543, 'created_at': datetime.datetime(2025, 3, 24, 19, 19), 'result': '0.07667850117538651', 'result_long': None, 'result_double': None}] Qualite : 0.07667850117538651 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21662543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21662543_24-03-2025_19_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21662543 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_P21662543_24-03-2025_19_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21662592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21662593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21662594, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21662595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21662596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21662597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21662598, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21662599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21662600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21662601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21662602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21662603, 'pht': 3726}}" where mtr_portfolio_id = 21662543 and dashboard_run_id = 1692528 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`=21662543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9590338, 0.07667850117538651, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21662543_24-03-2025_19_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21662592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21662593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21662594, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21662595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21662596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21662597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21662598, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21662599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21662600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21662601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21662602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21662603, '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 = 21663414 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': 2686737, 'mtr_portfolio_id': 21663414, 'created_at': datetime.datetime(2025, 3, 24, 19, 34, 1), 'result': '0.0855944340951776', 'result_long': None, 'result_double': None}] Qualite : 0.0855944340951776 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21663414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21663414_24-03-2025_19_34_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21663414 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_P21663414_24-03-2025_19_34_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21663518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21663519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21663520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21663521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21663522, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21663523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21663524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21663525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21663526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21663527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21663528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21663529, 'pht': 3726}}" where mtr_portfolio_id = 21663414 and dashboard_run_id = 1692528 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`=21663414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9590339, 0.0855944340951776, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21663414_24-03-2025_19_34_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21663518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21663519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21663520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21663521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21663522, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21663523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21663524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21663525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21663526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21663527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21663528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21663529, '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 = 21664360 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': 2686804, 'mtr_portfolio_id': 21664360, 'created_at': datetime.datetime(2025, 3, 24, 19, 49, 1), 'result': '0.07812672458375872', 'result_long': None, 'result_double': None}] Qualite : 0.07812672458375872 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21664360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21664360_24-03-2025_19_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21664360 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_P21664360_24-03-2025_19_49_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21664373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21664374, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21664375, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21664377, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21664383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21664389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21664391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21664392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21664393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21664394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21664395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21664396, 'pht': 3726}}" where mtr_portfolio_id = 21664360 and dashboard_run_id = 1692528 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`=21664360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9590340, 0.07812672458375872, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21664360_24-03-2025_19_49_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21664373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21664374, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21664375, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21664377, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21664383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21664389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21664391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21664392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21664393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21664394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21664395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21664396, '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 = 21665328 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': 2686836, 'mtr_portfolio_id': 21665328, 'created_at': datetime.datetime(2025, 3, 24, 19, 55, 1), 'result': '0.06991669083412949', 'result_long': None, 'result_double': None}] Qualite : 0.06991669083412949 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21665328 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21665328_24-03-2025_19_55_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21665328 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_P21665328_24-03-2025_19_55_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21665401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21665402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21665403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21665404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21665405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21665406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21665407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21665408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21665409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21665410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21665411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21665412, 'pht': 3726}}" where mtr_portfolio_id = 21665328 and dashboard_run_id = 1692528 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`=21665328 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9590341, 0.06991669083412949, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21665328_24-03-2025_19_55_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21665401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21665402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21665403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21665404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21665405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21665406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21665407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21665408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21665409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21665410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21665411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21665412, '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 (21662543,21663414,21664360,21665328) result : ((1346888287,), (1346888329,), (1346888437,), (1346888523,), (1346888715,), (1346888807,), (1346888909,), (1346888952,), (1346889001,), (1346889453,), (1346889625,), (1346889720,), (1346889829,), (1346889856,), (1346889910,), (1346890585,), (1346890695,), (1346890740,), (1346890817,), (1346891584,), (1346891663,), (1346891699,), (1346891728,), (1346891754,), (1346891787,), (1346892141,), (1346892166,), (1346892195,), (1346892255,), (1346892310,), (1346892807,), (1346893414,), (1346893896,), (1346893957,), (1346894010,), (1346894026,), (1346894338,), (1346894348,), (1346894353,), (1346894359,), (1346894366,), (1346894371,), (1346894475,), (1346894504,), (1346894535,), (1346894573,), (1346894779,), (1346894786,), (1346894812,), (1346894835,), (1346894859,), (1346894867,), (1346894954,), (1346894980,), (1346895012,), (1346895058,), (1346895297,), (1346895325,), (1346895355,), (1346895386,), (1346895413,), (1346895478,), (1346895745,), (1346895757,), (1346895761,), (1346895773,), (1346895813,), (1346896201,), (1346896145,), (1346896166,), (1346896918,), (1346896938,), (1346896989,), (1346897052,), (1346897107,), (1346897177,), (1346897399,), (1346897404,), (1346897413,), (1346897418,), (1346897623,), (1346897634,), (1346897641,), (1346897660,), (1346897665,), (1346897692,), (1346897842,), (1346897867,), (1346897899,), (1346897970,), (1346898007,), (1346898053,), (1346898365,), (1346898512,), (1346898596,), (1346898685,), (1346899137,), (1346899162,), (1346899208,), (1346899263,), (1346899292,), (1346899321,), (1346899393,), (1346899421,), (1346899450,), (1346899491,), (1346899520,), (1346899763,), (1346899791,), (1346899826,), (1346899854,), (1346899919,), (1346899941,), (1346900057,), (1346900088,), (1346900115,), (1346900147,), (1346900158,), (1346900179,), (1346900215,), (1346900246,), (1346900271,), (1346900309,), (1346900335,), (1346900436,), (1346900469,), (1346900483,), (1346900487,), (1346900550,), (1346900572,), (1346900600,), (1346900613,), (1346900643,), (1346900853,), (1346900878,), (1346900902,), (1346900928,), (1346900957,), (1346900976,), (1346901086,), (1346901115,), (1346901140,), (1346901153,), (1346901806,), (1346901612,), (1346901631,), (1346901678,), (1346901707,), (1346901747,), (1346902102,), (1346902143,), (1346902194,), (1346902251,), (1346902279,), (1346902587,), (1346902676,), (1346902710,), (1346902737,), (1346902760,), (1346902781,), (1346903235,), (1346903334,), (1346903398,), (1346903407,), (1346903811,), (1346904028,), (1346904170,), (1346904236,), (1346904277,), (1346904372,), (1346904783,), (1346904867,), (1346904914,), (1346905021,), (1346905682,), (1346905778,), (1346905973,), (1346906048,), (1346906126,), (1346906192,), (1346906694,), (1346906731,), (1346906777,), (1346906842,), (1346906889,), (1346907353,), (1346907384,), (1346907465,), (1346907533,), (1346907584,), (1346908187,), (1346908299,), (1346908437,), (1346908523,), (1346908553,), (1346908577,), (1346909306,), (1346909328,), (1346909379,), (1346909448,), (1346909529,), (1346910148,), (1346910256,), (1346910364,), (1346910455,), (1346910542,), (1346910919,), (1346910966,), (1346910995,), (1346911024,), (1346911057,), (1346911081,), (1346911583,), (1346911645,), (1346911698,), (1346911790,), (1346912489,), (1346912547,), (1346912591,), (1346912642,), (1346912747,), (1346912774,), (1346913224,), (1346913098,), (1346913115,), (1346913142,), (1346913177,), (1346913815,), (1346913947,), (1346914004,), (1346914065,), (1346914095,), (1346914438,), (1346914445,), (1346914458,), (1346914467,), (1346914513,), (1346914709,), (1346914728,), (1346914866,), (1346914890,), (1346914904,), (1346914922,), (1346915151,), (1346915170,), (1346915203,), (1346915214,), (1346915226,), (1346915343,), (1346915371,), (1346915375,), (1346915380,), (1346915408,), (1346915433,), (1346915539,), (1346915556,), (1346915583,), (1346915797,), (1346915815,), (1346915821,), (1346915841,), (1346915857,), (1346915869,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24032025': {'nb_upload': 40, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21665328]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1346915869, 1346915857, 1346915841, 1346915821, 1346915815, 1346915797, 1346915583, 1346915556, 1346915539] map_info['map_portfolio_photo'] : {21665328: [1346915869, 1346915857, 1346915841, 1346915821, 1346915815, 1346915797, 1346915583, 1346915556, 1346915539, 1346915433, 1346915408, 1346915380, 1346915375, 1346915371, 1346915343, 1346915226, 1346915214, 1346915203, 1346915170, 1346915151, 1346914922, 1346914904, 1346914890, 1346914866, 1346914728, 1346914709, 1346914513, 1346914467, 1346914458, 1346914445, 1346914438, 1346914095, 1346914065, 1346914004, 1346913947, 1346913815, 1346913177, 1346913142, 1346913115, 1346913098]} final : True mtd_id 4302 list_pids : [1346915869, 1346915857, 1346915841, 1346915821, 1346915815, 1346915797, 1346915583, 1346915556, 1346915539] Looping around the photos to save general results len do output : 1 /21665328Didn'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, '2686836') ('4302', '21665328', '1346915869', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915857', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915841', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915821', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915815', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915797', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915583', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915556', None, None, None, None, None, '2686836') ('4302', None, None, None, None, None, None, None, '2686836') ('4302', '21665328', '1346915539', None, None, None, None, None, '2686836') 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', None, '21665328', 'None', None, None, None, None, '2686836'), ('4302', '21665328', '1346915869', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915857', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915841', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915821', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915815', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915797', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915583', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915556', None, None, None, None, None, '2686836'), ('4302', '21665328', '1346915539', None, None, None, None, None, '2686836')] time used for this insertion : 0.013757467269897461 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33387160301208496 time spend to save output : 0.013978958129882812 total time spend for step 5 : 0.3478505611419678 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 (2686836) 2.12user 2.39system 0:08.96elapsed 50%CPU (0avgtext+0avgdata 159760maxresident)k 10408inputs+10488outputs (136major+64010minor)pagefaults 0swaps