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 : 3237728 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 (2632094) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2632094) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21004334 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2632094'] with mtr_portfolio_ids : ['21004334'] and first list_photo_ids : [] new path : /proc/3237728/ Name: python3 Umask: 0002 State: R (running) Tgid: 3237728 Ngid: 0 Pid: 3237728 PPid: 3237727 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3237728 NSpid: 3237728 NSpgid: 3233472 NSsid: 3233472 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98300 kB VmRSS: 98300 kB RssAnon: 59752 kB RssFile: 38548 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/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: 53 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3237728', 'Ngid': '0', 'Pid': '3237728', 'PPid': '3237727', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3237728', 'NSpid': '3237728', 'NSpgid': '3233472', 'NSsid': '3233472', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98300 kB', 'VmRSS': '98300 kB', 'RssAnon': '59752 kB', 'RssFile': '38548 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/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': '53', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '3237728', '1106844', '0', '1106844', '865592', '98300', b'', 'marlene', '2632094') 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 (21004334) 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 (2632094 ) ) 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 (21004334) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340781609, 'portfolio_id': 21004334}, {'photo_id': 1340781606, 'portfolio_id': 21004334}, {'photo_id': 1340781589, 'portfolio_id': 21004334}, {'photo_id': 1340781478, 'portfolio_id': 21004334}, {'photo_id': 1340781469, 'portfolio_id': 21004334}, {'photo_id': 1340781250, 'portfolio_id': 21004334}, {'photo_id': 1340781245, 'portfolio_id': 21004334}, {'photo_id': 1340781182, 'portfolio_id': 21004334}, {'photo_id': 1340781178, 'portfolio_id': 21004334}, {'photo_id': 1340781173, 'portfolio_id': 21004334}, {'photo_id': 1340781123, 'portfolio_id': 21004334}, {'photo_id': 1340781118, 'portfolio_id': 21004334}, {'photo_id': 1340781114, 'portfolio_id': 21004334}, {'photo_id': 1340781108, 'portfolio_id': 21004334}, {'photo_id': 1340781071, 'portfolio_id': 21004334}, {'photo_id': 1340781065, 'portfolio_id': 21004334}, {'photo_id': 1340781061, 'portfolio_id': 21004334}, {'photo_id': 1340780813, 'portfolio_id': 21004334}, {'photo_id': 1340780803, 'portfolio_id': 21004334}, {'photo_id': 1340780798, 'portfolio_id': 21004334}, {'photo_id': 1340780708, 'portfolio_id': 21004334}, {'photo_id': 1340780701, 'portfolio_id': 21004334}, {'photo_id': 1340780682, 'portfolio_id': 21004334}, {'photo_id': 1340780678, 'portfolio_id': 21004334}, {'photo_id': 1340780556, 'portfolio_id': 21004334}, {'photo_id': 1340780111, 'portfolio_id': 21004334}, {'photo_id': 1340780098, 'portfolio_id': 21004334}, {'photo_id': 1340780094, 'portfolio_id': 21004334}, {'photo_id': 1340780079, 'portfolio_id': 21004334}, {'photo_id': 1340780072, 'portfolio_id': 21004334}, {'photo_id': 1340779975, 'portfolio_id': 21004334}, {'photo_id': 1340779970, 'portfolio_id': 21004334}, {'photo_id': 1340779961, 'portfolio_id': 21004334}, {'photo_id': 1340779756, 'portfolio_id': 21004334}, {'photo_id': 1340779751, 'portfolio_id': 21004334}, {'photo_id': 1340779733, 'portfolio_id': 21004334}, {'photo_id': 1340779551, 'portfolio_id': 21004334}, {'photo_id': 1340779548, 'portfolio_id': 21004334}, {'photo_id': 1340779536, 'portfolio_id': 21004334}] map_portfolio_id_photo_id: {21004334: [1340781609, 1340781606, 1340781589, 1340781478, 1340781469, 1340781250, 1340781245, 1340781182, 1340781178, 1340781173, 1340781123, 1340781118, 1340781114, 1340781108, 1340781071, 1340781065, 1340781061, 1340780813, 1340780803, 1340780798, 1340780708, 1340780701, 1340780682, 1340780678, 1340780556, 1340780111, 1340780098, 1340780094, 1340780079, 1340780072, 1340779975, 1340779970, 1340779961, 1340779756, 1340779751, 1340779733, 1340779551, 1340779548, 1340779536]} ##### 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.014492988586425781 #### 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 Tue Mar 4 10:58:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21004334) 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 : 21004334 get user id for portfolio 21004334 get sub ptf for main ptf 21004334, type 3726 and hashtags ['Carton_brun', 'mal_croppe', 'flou', 'Teint_Dans_La_Masse', 'Carton_gris', 'autre_refus', 'papier', 'plastique', 'cartonnette', 'kraft', 'environnement', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21004334 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','mal_croppe','flou','Teint_Dans_La_Masse','Carton_gris','autre_refus','papier','plastique','cartonnette','kraft','environnement','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21004334 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','mal_croppe','flou','Teint_Dans_La_Masse','Carton_gris','autre_refus','papier','plastique','cartonnette','kraft','environnement','metal')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21004334, 'sub_port_id': 21004339, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622190, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 56)}, 'plastique': {'main_port_id': 21004334, 'sub_port_id': 21004340, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622191, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 56)}, 'cartonnette': {'main_port_id': 21004334, 'sub_port_id': 21004341, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622192, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 56)}, 'Carton_gris': {'main_port_id': 21004334, 'sub_port_id': 21004342, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622193, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 56)}, 'metal': {'main_port_id': 21004334, 'sub_port_id': 21004343, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622194, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 56)}, 'mal_croppe': {'main_port_id': 21004334, 'sub_port_id': 21004344, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622195, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 21004334, 'sub_port_id': 21004345, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622196, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 56)}, 'Carton_brun': {'main_port_id': 21004334, 'sub_port_id': 21004346, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622197, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 56)}, 'flou': {'main_port_id': 21004334, 'sub_port_id': 21004347, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622198, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 56)}, 'papier': {'main_port_id': 21004334, 'sub_port_id': 21004348, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622199, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 56)}, 'environnement': {'main_port_id': 21004334, 'sub_port_id': 21004349, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622200, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 56)}, 'kraft': {'main_port_id': 21004334, 'sub_port_id': 21004350, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622201, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21004339 , 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=21004334 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 (21004339) result : ((1340781047,), (1340781048,), (1340781049,), (1340781136,), (1340781194,), (1340781195,), (1340781196,), (1340781197,), (1340781227,), (1340781228,), (1340781229,), (1340781230,), (1340781232,), (1340781233,), (1340781252,), (1340781253,), (1340781254,), (1340781466,), (1340781467,), (1340781468,), (1340781680,), (1340781681,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21004334) result : ((1340779536,), (1340779548,), (1340779551,), (1340779733,), (1340779751,), (1340779756,), (1340779961,), (1340779970,), (1340779975,), (1340780072,), (1340780079,), (1340780094,), (1340780098,), (1340780111,), (1340780556,), (1340780678,), (1340780682,), (1340780701,), (1340780708,), (1340780798,), (1340780803,), (1340780813,), (1340781061,), (1340781065,), (1340781071,), (1340781108,), (1340781114,), (1340781118,), (1340781123,), (1340781173,), (1340781178,), (1340781182,), (1340781245,), (1340781250,), (1340781469,), (1340781478,), (1340781589,), (1340781606,), (1340781609,)) 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 21004340 , 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=21004334 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 (21004340) result : ((1340781055,), (1340781056,), (1340781208,), (1340781209,), (1340781237,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21004334) result : ((1340779536,), (1340779548,), (1340779551,), (1340779733,), (1340779751,), (1340779756,), (1340779961,), (1340779970,), (1340779975,), (1340780072,), (1340780079,), (1340780094,), (1340780098,), (1340780111,), (1340780556,), (1340780678,), (1340780682,), (1340780701,), (1340780708,), (1340780798,), (1340780803,), (1340780813,), (1340781061,), (1340781065,), (1340781071,), (1340781108,), (1340781114,), (1340781118,), (1340781123,), (1340781173,), (1340781178,), (1340781182,), (1340781245,), (1340781250,), (1340781469,), (1340781478,), (1340781589,), (1340781606,), (1340781609,)) 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 21004341 , 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=21004334 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 (21004341) result : ((1340781050,), (1340781051,), (1340781052,), (1340781205,), (1340781236,), (1340781470,), (1340781682,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21004334) result : ((1340779536,), (1340779548,), (1340779551,), (1340779733,), (1340779751,), (1340779756,), (1340779961,), (1340779970,), (1340779975,), (1340780072,), (1340780079,), (1340780094,), (1340780098,), (1340780111,), (1340780556,), (1340780678,), (1340780682,), (1340780701,), (1340780708,), (1340780798,), (1340780803,), (1340780813,), (1340781061,), (1340781065,), (1340781071,), (1340781108,), (1340781114,), (1340781118,), (1340781123,), (1340781173,), (1340781178,), (1340781182,), (1340781245,), (1340781250,), (1340781469,), (1340781478,), (1340781589,), (1340781606,), (1340781609,)) 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 21004342 , 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=21004334 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 (21004342) result : ((1340781200,), (1340781201,), (1340781202,), (1340781203,), (1340781234,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21004334) result : ((1340779536,), (1340779548,), (1340779551,), (1340779733,), (1340779751,), (1340779756,), (1340779961,), (1340779970,), (1340779975,), (1340780072,), (1340780079,), (1340780094,), (1340780098,), (1340780111,), (1340780556,), (1340780678,), (1340780682,), (1340780701,), (1340780708,), (1340780798,), (1340780803,), (1340780813,), (1340781061,), (1340781065,), (1340781071,), (1340781108,), (1340781114,), (1340781118,), (1340781123,), (1340781173,), (1340781178,), (1340781182,), (1340781245,), (1340781250,), (1340781469,), (1340781478,), (1340781589,), (1340781606,), (1340781609,)) 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 21004343 , 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=21004334 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 (21004343) result : ((1340781057,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21004334) result : ((1340779536,), (1340779548,), (1340779551,), (1340779733,), (1340779751,), (1340779756,), (1340779961,), (1340779970,), (1340779975,), (1340780072,), (1340780079,), (1340780094,), (1340780098,), (1340780111,), (1340780556,), (1340780678,), (1340780682,), (1340780701,), (1340780708,), (1340780798,), (1340780803,), (1340780813,), (1340781061,), (1340781065,), (1340781071,), (1340781108,), (1340781114,), (1340781118,), (1340781123,), (1340781173,), (1340781178,), (1340781182,), (1340781245,), (1340781250,), (1340781469,), (1340781478,), (1340781589,), (1340781606,), (1340781609,)) 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 21004344 , 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=21004334 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 (21004344) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21004334) result : ((1340779536,), (1340779548,), (1340779551,), (1340779733,), (1340779751,), (1340779756,), (1340779961,), (1340779970,), (1340779975,), (1340780072,), (1340780079,), (1340780094,), (1340780098,), (1340780111,), (1340780556,), (1340780678,), (1340780682,), (1340780701,), (1340780708,), (1340780798,), (1340780803,), (1340780813,), (1340781061,), (1340781065,), (1340781071,), (1340781108,), (1340781114,), (1340781118,), (1340781123,), (1340781173,), (1340781178,), (1340781182,), (1340781245,), (1340781250,), (1340781469,), (1340781478,), (1340781589,), (1340781606,), (1340781609,)) 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 21004345 , 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=21004334 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 (21004345) result : ((1340781043,), (1340781044,), (1340781045,), (1340781046,), (1340781190,), (1340781222,), (1340781223,), (1340781224,), (1340781225,), (1340781463,), (1340781464,), (1340781678,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21004334) result : ((1340779536,), (1340779548,), (1340779551,), (1340779733,), (1340779751,), (1340779756,), (1340779961,), (1340779970,), (1340779975,), (1340780072,), (1340780079,), (1340780094,), (1340780098,), (1340780111,), (1340780556,), (1340780678,), (1340780682,), (1340780701,), (1340780708,), (1340780798,), (1340780803,), (1340780813,), (1340781061,), (1340781065,), (1340781071,), (1340781108,), (1340781114,), (1340781118,), (1340781123,), (1340781173,), (1340781178,), (1340781182,), (1340781245,), (1340781250,), (1340781469,), (1340781478,), (1340781589,), (1340781606,), (1340781609,)) 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 21004346 , 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=21004334 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 (21004346) result : ((1340781054,), (1340781472,), (1340781685,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21004334) result : ((1340779536,), (1340779548,), (1340779551,), (1340779733,), (1340779751,), (1340779756,), (1340779961,), (1340779970,), (1340779975,), (1340780072,), (1340780079,), (1340780094,), (1340780098,), (1340780111,), (1340780556,), (1340780678,), (1340780682,), (1340780701,), (1340780708,), (1340780798,), (1340780803,), (1340780813,), (1340781061,), (1340781065,), (1340781071,), (1340781108,), (1340781114,), (1340781118,), (1340781123,), (1340781173,), (1340781178,), (1340781182,), (1340781245,), (1340781250,), (1340781469,), (1340781478,), (1340781589,), (1340781606,), (1340781609,)) 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 21004347 , 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=21004334 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 (21004347) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21004334) result : ((1340779536,), (1340779548,), (1340779551,), (1340779733,), (1340779751,), (1340779756,), (1340779961,), (1340779970,), (1340779975,), (1340780072,), (1340780079,), (1340780094,), (1340780098,), (1340780111,), (1340780556,), (1340780678,), (1340780682,), (1340780701,), (1340780708,), (1340780798,), (1340780803,), (1340780813,), (1340781061,), (1340781065,), (1340781071,), (1340781108,), (1340781114,), (1340781118,), (1340781123,), (1340781173,), (1340781178,), (1340781182,), (1340781245,), (1340781250,), (1340781469,), (1340781478,), (1340781589,), (1340781606,), (1340781609,)) 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 21004348 , 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=21004334 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 (21004348) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21004334) result : ((1340779536,), (1340779548,), (1340779551,), (1340779733,), (1340779751,), (1340779756,), (1340779961,), (1340779970,), (1340779975,), (1340780072,), (1340780079,), (1340780094,), (1340780098,), (1340780111,), (1340780556,), (1340780678,), (1340780682,), (1340780701,), (1340780708,), (1340780798,), (1340780803,), (1340780813,), (1340781061,), (1340781065,), (1340781071,), (1340781108,), (1340781114,), (1340781118,), (1340781123,), (1340781173,), (1340781178,), (1340781182,), (1340781245,), (1340781250,), (1340781469,), (1340781478,), (1340781589,), (1340781606,), (1340781609,)) 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 21004349 , 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=21004334 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 (21004349) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21004334) result : ((1340779536,), (1340779548,), (1340779551,), (1340779733,), (1340779751,), (1340779756,), (1340779961,), (1340779970,), (1340779975,), (1340780072,), (1340780079,), (1340780094,), (1340780098,), (1340780111,), (1340780556,), (1340780678,), (1340780682,), (1340780701,), (1340780708,), (1340780798,), (1340780803,), (1340780813,), (1340781061,), (1340781065,), (1340781071,), (1340781108,), (1340781114,), (1340781118,), (1340781123,), (1340781173,), (1340781178,), (1340781182,), (1340781245,), (1340781250,), (1340781469,), (1340781478,), (1340781589,), (1340781606,), (1340781609,)) 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 21004350 , 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=21004334 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 (21004350) result : ((1340781255,), (1340781256,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21004334) result : ((1340779536,), (1340779548,), (1340779551,), (1340779733,), (1340779751,), (1340779756,), (1340779961,), (1340779970,), (1340779975,), (1340780072,), (1340780079,), (1340780094,), (1340780098,), (1340780111,), (1340780556,), (1340780678,), (1340780682,), (1340780701,), (1340780708,), (1340780798,), (1340780803,), (1340780813,), (1340781061,), (1340781065,), (1340781071,), (1340781108,), (1340781114,), (1340781118,), (1340781123,), (1340781173,), (1340781178,), (1340781182,), (1340781245,), (1340781250,), (1340781469,), (1340781478,), (1340781589,), (1340781606,), (1340781609,)) 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`=21004334 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','mal_croppe','flou','Teint_Dans_La_Masse','Carton_gris','autre_refus','papier','plastique','cartonnette','kraft','environnement','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21004334 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','mal_croppe','flou','Teint_Dans_La_Masse','Carton_gris','autre_refus','papier','plastique','cartonnette','kraft','environnement','metal')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21004334, 'sub_port_id': 21004351, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622202, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 58)}, 'plastique': {'main_port_id': 21004334, 'sub_port_id': 21004352, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622203, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 58)}, 'cartonnette': {'main_port_id': 21004334, 'sub_port_id': 21004353, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622204, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 58)}, 'Carton_gris': {'main_port_id': 21004334, 'sub_port_id': 21004354, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622205, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 58)}, 'metal': {'main_port_id': 21004334, 'sub_port_id': 21004355, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622206, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 58)}, 'mal_croppe': {'main_port_id': 21004334, 'sub_port_id': 21004356, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622207, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21004334, 'sub_port_id': 21004357, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622208, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 58)}, 'Carton_brun': {'main_port_id': 21004334, 'sub_port_id': 21004358, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622209, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 58)}, 'flou': {'main_port_id': 21004334, 'sub_port_id': 21004359, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622210, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 58)}, 'papier': {'main_port_id': 21004334, 'sub_port_id': 21004360, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622211, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 58)}, 'environnement': {'main_port_id': 21004334, 'sub_port_id': 21004361, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622212, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 58)}, 'kraft': {'main_port_id': 21004334, 'sub_port_id': 21004362, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13622213, 'last_updated_at': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 10, 52, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21004351,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21004339 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21004352,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21004340 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21004353,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21004341 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21004354,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21004342 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21004355,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21004343 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21004356,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21004344 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21004357,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21004345 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21004358,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21004346 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21004359,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21004347 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21004360,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21004348 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21004361,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21004349 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21004362,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21004350 lien utilise dans velours : https://www.fotonower.com/velours/21004351,21004352,21004353,21004354,21004355,21004356,21004357,21004358,21004359,21004360,21004361,21004362?tags=autre_refus,plastique,cartonnette,Carton_gris,metal,mal_croppe,Teint_Dans_La_Masse,Carton_brun,flou,papier,environnement,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21004334]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340781609, 1340781606, 1340781589, 1340781478, 1340781469] map_info['map_portfolio_photo'] : {21004334: [1340781609, 1340781606, 1340781589, 1340781478, 1340781469, 1340781250, 1340781245, 1340781182, 1340781178, 1340781173, 1340781123, 1340781118, 1340781114, 1340781108, 1340781071, 1340781065, 1340781061, 1340780813, 1340780803, 1340780798, 1340780708, 1340780701, 1340780682, 1340780678, 1340780556, 1340780111, 1340780098, 1340780094, 1340780079, 1340780072, 1340779975, 1340779970, 1340779961, 1340779756, 1340779751, 1340779733, 1340779551, 1340779548, 1340779536]} final : False mtd_id 4302 list_pids : [1340781609, 1340781606, 1340781589, 1340781478, 1340781469] Looping around the photos to save general results len do output : 1 /21004334. 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, '2632094') ('4302', '21004334', '1340781609', None, None, None, None, None, '2632094') ('4302', None, None, None, None, None, None, None, '2632094') ('4302', '21004334', '1340781606', None, None, None, None, None, '2632094') ('4302', None, None, None, None, None, None, None, '2632094') ('4302', '21004334', '1340781589', None, None, None, None, None, '2632094') ('4302', None, None, None, None, None, None, None, '2632094') ('4302', '21004334', '1340781478', None, None, None, None, None, '2632094') ('4302', None, None, None, None, None, None, None, '2632094') ('4302', '21004334', '1340781469', None, None, None, None, None, '2632094') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21004334', "{'autre_refus': 21004339, 'plastique': 21004340, 'cartonnette': 21004341, 'Carton_gris': 21004342, 'metal': 21004343, 'mal_croppe': 21004344, 'Teint_Dans_La_Masse': 21004345, 'Carton_brun': 21004346, 'flou': 21004347, 'papier': 21004348, 'environnement': 21004349, 'kraft': 21004350}", None, None, None, None, '2632094'), ('4302', '21004334', '1340781609', None, None, None, None, None, '2632094'), ('4302', '21004334', '1340781606', None, None, None, None, None, '2632094'), ('4302', '21004334', '1340781589', None, None, None, None, None, '2632094'), ('4302', '21004334', '1340781478', None, None, None, None, None, '2632094'), ('4302', '21004334', '1340781469', None, None, None, None, None, '2632094')] time used for this insertion : 0.012526512145996094 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4318349361419678 time spend to save output : 0.012785196304321289 total time spend for step 1 : 1.444620132446289 step2:final Tue Mar 4 10:58:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (21004334) 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 21004334 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340779551,1340779548,1340779536,1340779756,1340779751,1340779733,1340779975,1340779970,1340779961,1340780111,1340780098,1340780094,1340780079,1340780072,1340780708,1340780701,1340780682,1340780678,1340780556,1340780813,1340780803,1340780798,1340781071,1340781065,1340781061,1340781123,1340781118,1340781114,1340781108,1340781182,1340781178,1340781173,1340781250,1340781245,1340781478,1340781469,1340781609,1340781606,1340781589); 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([21004334]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340781609: ('0.08183697551617107',), 1340781606: ('0.08183697551617107',), 1340781589: ('0.08183697551617107',), 1340781478: ('0.08183697551617107',), 1340781469: ('0.08183697551617107',)} new output for save of step final : {1340781609: ('0.08183697551617107',), 1340781606: ('0.08183697551617107',), 1340781589: ('0.08183697551617107',), 1340781478: ('0.08183697551617107',), 1340781469: ('0.08183697551617107',)} [1340781609, 1340781606, 1340781589, 1340781478, 1340781469] map_info['map_portfolio_photo'] : {21004334: [1340781609, 1340781606, 1340781589, 1340781478, 1340781469, 1340781250, 1340781245, 1340781182, 1340781178, 1340781173, 1340781123, 1340781118, 1340781114, 1340781108, 1340781071, 1340781065, 1340781061, 1340780813, 1340780803, 1340780798, 1340780708, 1340780701, 1340780682, 1340780678, 1340780556, 1340780111, 1340780098, 1340780094, 1340780079, 1340780072, 1340779975, 1340779970, 1340779961, 1340779756, 1340779751, 1340779733, 1340779551, 1340779548, 1340779536]} final : False mtd_id 4302 list_pids : [1340781609, 1340781606, 1340781589, 1340781478, 1340781469] Looping around the photos to save general results len do output : 5 /1340781609.Didn't retrieve data . /1340781606.Didn't retrieve data . /1340781589.Didn't retrieve data . /1340781478.Didn't retrieve data . /1340781469.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, '2632094') ('4302', '21004334', '1340781609', None, None, None, None, None, '2632094') ('4302', None, None, None, None, None, None, None, '2632094') ('4302', '21004334', '1340781606', None, None, None, None, None, '2632094') ('4302', None, None, None, None, None, None, None, '2632094') ('4302', '21004334', '1340781589', None, None, None, None, None, '2632094') ('4302', None, None, None, None, None, None, None, '2632094') ('4302', '21004334', '1340781478', None, None, None, None, None, '2632094') ('4302', None, None, None, None, None, None, None, '2632094') ('4302', '21004334', '1340781469', None, None, None, None, None, '2632094') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21004334', '1340781609', '0.08183697551617107', None, None, None, None, '2632094'), ('4302', '21004334', '1340781606', '0.08183697551617107', None, None, None, None, '2632094'), ('4302', '21004334', '1340781589', '0.08183697551617107', None, None, None, None, '2632094'), ('4302', '21004334', '1340781478', '0.08183697551617107', None, None, None, None, '2632094'), ('4302', '21004334', '1340781469', '0.08183697551617107', None, None, None, None, '2632094')] time used for this insertion : 0.012869834899902344 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06911087036132812 time spend to save output : 0.01324772834777832 total time spend for step 2 : 0.08235859870910645 step3:velours_tree Tue Mar 4 10:58:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21004334: [{'autre_refus': 21004339, 'plastique': 21004340, 'cartonnette': 21004341, 'Carton_gris': 21004342, 'metal': 21004343, 'mal_croppe': 21004344, 'Teint_Dans_La_Masse': 21004345, 'Carton_brun': 21004346, 'flou': 21004347, 'papier': 21004348, 'environnement': 21004349, 'kraft': 21004350}]} input_args_next_step : {21004334: ()} output_args : {21004334: [{'autre_refus': 21004339, 'plastique': 21004340, 'cartonnette': 21004341, 'Carton_gris': 21004342, 'metal': 21004343, 'mal_croppe': 21004344, 'Teint_Dans_La_Masse': 21004345, 'Carton_brun': 21004346, 'flou': 21004347, 'papier': 21004348, 'environnement': 21004349, 'kraft': 21004350}]} args : 21004334 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 : ({'autre_refus': 21004339, 'plastique': 21004340, 'cartonnette': 21004341, 'Carton_gris': 21004342, 'metal': 21004343, 'mal_croppe': 21004344, 'Teint_Dans_La_Masse': 21004345, 'Carton_brun': 21004346, 'flou': 21004347, 'papier': 21004348, 'environnement': 21004349, 'kraft': 21004350},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21004334) 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([21004334]) 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.365389347076416 time spend to save output : 7.104873657226562e-05 total time spend for step 3 : 0.3654603958129883 step4:send_mail_cod Tue Mar 4 10:59:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1340781609: ('0.08183697551617107',), 1340781606: ('0.08183697551617107',), 1340781589: ('0.08183697551617107',), 1340781478: ('0.08183697551617107',), 1340781469: ('0.08183697551617107',)} input_args_next_step : {1340781609: ()} output_args : {1340781609: ('0.08183697551617107',), 1340781606: ('0.08183697551617107',), 1340781589: ('0.08183697551617107',), 1340781478: ('0.08183697551617107',), 1340781469: ('0.08183697551617107',)} args : 1340781609 depend.output_id : 0 input_args_next_step : {1340781609: ('0.08183697551617107',), 1340781606: ()} output_args : {1340781609: ('0.08183697551617107',), 1340781606: ('0.08183697551617107',), 1340781589: ('0.08183697551617107',), 1340781478: ('0.08183697551617107',), 1340781469: ('0.08183697551617107',)} args : 1340781606 depend.output_id : 0 input_args_next_step : {1340781609: ('0.08183697551617107',), 1340781606: ('0.08183697551617107',), 1340781589: ()} output_args : {1340781609: ('0.08183697551617107',), 1340781606: ('0.08183697551617107',), 1340781589: ('0.08183697551617107',), 1340781478: ('0.08183697551617107',), 1340781469: ('0.08183697551617107',)} args : 1340781589 depend.output_id : 0 input_args_next_step : {1340781609: ('0.08183697551617107',), 1340781606: ('0.08183697551617107',), 1340781589: ('0.08183697551617107',), 1340781478: ()} output_args : {1340781609: ('0.08183697551617107',), 1340781606: ('0.08183697551617107',), 1340781589: ('0.08183697551617107',), 1340781478: ('0.08183697551617107',), 1340781469: ('0.08183697551617107',)} args : 1340781478 depend.output_id : 0 input_args_next_step : {1340781609: ('0.08183697551617107',), 1340781606: ('0.08183697551617107',), 1340781589: ('0.08183697551617107',), 1340781478: ('0.08183697551617107',), 1340781469: ()} output_args : {1340781609: ('0.08183697551617107',), 1340781606: ('0.08183697551617107',), 1340781589: ('0.08183697551617107',), 1340781478: ('0.08183697551617107',), 1340781469: ('0.08183697551617107',)} args : 1340781469 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 : {21004334: [{'autre_refus': 21004339, 'plastique': 21004340, 'cartonnette': 21004341, 'Carton_gris': 21004342, 'metal': 21004343, 'mal_croppe': 21004344, 'Teint_Dans_La_Masse': 21004345, 'Carton_brun': 21004346, 'flou': 21004347, 'papier': 21004348, 'environnement': 21004349, 'kraft': 21004350}]} input_args_next_step : {1340781609: ('0.08183697551617107',), 1340781606: ('0.08183697551617107',), 1340781589: ('0.08183697551617107',), 1340781478: ('0.08183697551617107',), 1340781469: ('0.08183697551617107',), 21004334: ()} output_args : {21004334: [{'autre_refus': 21004339, 'plastique': 21004340, 'cartonnette': 21004341, 'Carton_gris': 21004342, 'metal': 21004343, 'mal_croppe': 21004344, 'Teint_Dans_La_Masse': 21004345, 'Carton_brun': 21004346, 'flou': 21004347, 'papier': 21004348, 'environnement': 21004349, 'kraft': 21004350}]} args : 21004334 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :6, first value : ('0.08183697551617107',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21004334) 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 (1340781609,1340781606,1340781589,1340781478,1340781469) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340781469 begin to download photo : 1340781589 begin to download photo : 1340781609 download finish for photo 1340781469 begin to download photo : 1340781478 download finish for photo 1340781609 download finish for photo 1340781589 begin to download photo : 1340781606 download finish for photo 1340781478 download finish for photo 1340781606 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P21004334_04-03-2025_10_59_00.pdf 21004339 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=21004339 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340781230: '1741082031_3821901_1340780094_174a82133acc2b77575137b31395dc3d_rle_crop_3693120627_0.png', 1340781681: '1741082271_3831827_1340781173_29cbd05ec1ed4babd906662e03120a5a_rle_crop_3693122578_0.png', 1340781680: '1741082271_3831827_1340781178_3e6e708abfd6de251047f922306b05c6_rle_crop_3693122475_0.png', 1340781468: '1741082093_3823074_1340781108_275e9045e5dc179b0f0b68ef855acf86_rle_crop_3693121526_0.png', 1340781467: '1741082093_3823074_1340781114_62d1a95c9dbe40f86471726e372f6806_rle_crop_3693121487_0.png', 1340781466: '1741082093_3823074_1340781118_882c258c46599781077b11418bf344c7_rle_crop_3693121475_0.png', 1340781254: '1741082055_3822272_1340779961_9b94850a9c879a75df167879162d21f4_rle_crop_3693121118_0.png', 1340781253: '1741082055_3822272_1340779970_5332e4c7a0b352b3bcb4fe22a3a6e007_rle_crop_3693121105_0.png', 1340781252: '1741082055_3822272_1340780111_d235c08247d86a371dbca2f4c4b71a16_rle_crop_3693121072_0.png', 1340781233: '1741082031_3821901_1340780072_94d070f3591a50fba99e76df16bdddbc_rle_crop_3693120828_0.png', 1340781232: '1741082031_3821901_1340780079_032ce2165acab16f1176ba4a890245d2_rle_crop_3693120736_0.png', 1340781047: '1741081773_3810794_1340779756_9b8c0bcc105b5d90f8258c3c03164a75_rle_crop_3693119107_0.png', 1340781229: '1741082031_3821901_1340780098_74892e7de061d263cc6987c0d2df2636_rle_crop_3693120611_0.png', 1340781228: '1741082031_3821901_1340780098_74892e7de061d263cc6987c0d2df2636_rle_crop_3693120616_0.png', 1340781227: '1741082031_3821901_1340780708_7307675315141d56f36fe52f153de24d_rle_crop_3693120603_0.png', 1340781197: '1741082012_3821682_1340780556_bde4301095ee95ec55d810f70981b7fd_rle_crop_3693120585_0.png', 1340781196: '1741082012_3821682_1340780678_debd720137c82e0236734842d757416f_rle_crop_3693120561_0.png', 1340781195: '1741082012_3821682_1340780682_a6e7d8e0c38e68111de4f2e67dde7451_rle_crop_3693120542_0.png', 1340781194: '1741082012_3821682_1340780701_6a2c239246a3725e5adf47cdb6d11cbd_rle_crop_3693120526_0.png', 1340781136: '1741081991_3821387_1340780798_a6be0b8e5fede768bff90b310035fd8b_rle_crop_3693120197_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/4cfadc88af871f94881f5eb04229dec8_59578445.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/04710d318c937d1d4e09831fc49212a7_68668555.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/5b2a2c72ee326d0374882b8000891045_53465182.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/ed3de4fe899506752279483a632c352c_6996842.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/a94028c8ef298f34d034899a240c2ab0_11577062.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/0a0ca9e69add49fb0309bf48f9903246_6826440.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/4992af92a531ed0c04e356f3d6a0ad17_33557382.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/48d7498184610ab08c39882f0b51be73_43097703.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/6dea6ac1945c20ea0152c9a90a7db432_7819058.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/c2039c707b9421aa475ecfa30d3712e2_36810501.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/fef44490f7faefbb975d6edd9b722b32_21950236.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/c12a74fa19d7ea367ff161e5ff082a26_77384739.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/b320647117345348f071303ac141f3ec_72927248.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/a639f71e20e2571f62b441abc646d5a6_99454080.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/e762a616cfcd76db4acb7cb5635b3568_30346084.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/143753b0ddfca720cc7fc6a6c1262ef1_81544889.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/cf9e6b76797ce596575c161f283f2f1e_28990468.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/8f1e64a6890d39eeef478d7310f674e0_16669988.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/3ac260b484ede955b6b2c1b8e4e7c746_75121877.png change filename to text .imagette210043391741082340/ imagette210043391741082340/1741081991_3821387_1340780798_a6be0b8e5fede768bff90b310035fd8b_rle_crop_3693120197_0.png.png imagette210043391741082340/1741082031_3821901_1340780072_94d070f3591a50fba99e76df16bdddbc_rle_crop_3693120828_0.png.png imagette210043391741082340/1741082055_3822272_1340779961_9b94850a9c879a75df167879162d21f4_rle_crop_3693121118_0.png.png imagette210043391741082340/1741082031_3821901_1340780708_7307675315141d56f36fe52f153de24d_rle_crop_3693120603_0.png.png imagette210043391741082340/1741082271_3831827_1340781178_3e6e708abfd6de251047f922306b05c6_rle_crop_3693122475_0.png.png imagette210043391741082340/1741082093_3823074_1340781118_882c258c46599781077b11418bf344c7_rle_crop_3693121475_0.png.png imagette210043391741082340/1741081773_3810794_1340779756_9b8c0bcc105b5d90f8258c3c03164a75_rle_crop_3693119107_0.png.png imagette210043391741082340/1741082031_3821901_1340780098_74892e7de061d263cc6987c0d2df2636_rle_crop_3693120616_0.png.png imagette210043391741082340/1741082031_3821901_1340780094_174a82133acc2b77575137b31395dc3d_rle_crop_3693120627_0.png.png imagette210043391741082340/1741082012_3821682_1340780678_debd720137c82e0236734842d757416f_rle_crop_3693120561_0.png.png imagette210043391741082340/1741082031_3821901_1340780079_032ce2165acab16f1176ba4a890245d2_rle_crop_3693120736_0.png.png imagette210043391741082340/1741082012_3821682_1340780556_bde4301095ee95ec55d810f70981b7fd_rle_crop_3693120585_0.png.png imagette210043391741082340/1741082093_3823074_1340781108_275e9045e5dc179b0f0b68ef855acf86_rle_crop_3693121526_0.png.png imagette210043391741082340/1741082012_3821682_1340780701_6a2c239246a3725e5adf47cdb6d11cbd_rle_crop_3693120526_0.png.png imagette210043391741082340/1741082271_3831827_1340781173_29cbd05ec1ed4babd906662e03120a5a_rle_crop_3693122578_0.png.png imagette210043391741082340/1741082055_3822272_1340780111_d235c08247d86a371dbca2f4c4b71a16_rle_crop_3693121072_0.png.png imagette210043391741082340/1741082093_3823074_1340781114_62d1a95c9dbe40f86471726e372f6806_rle_crop_3693121487_0.png.png imagette210043391741082340/1741082012_3821682_1340780682_a6e7d8e0c38e68111de4f2e67dde7451_rle_crop_3693120542_0.png.png imagette210043391741082340/1741082031_3821901_1340780098_74892e7de061d263cc6987c0d2df2636_rle_crop_3693120611_0.png.png imagette210043391741082340/1741082055_3822272_1340779970_5332e4c7a0b352b3bcb4fe22a3a6e007_rle_crop_3693121105_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/a52eeb9d094f01c28161cc672b7c9c18_86626074.png imagette210043391741082340 21004340 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=21004340 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340781055: '1741081773_3810794_1340779756_9b8c0bcc105b5d90f8258c3c03164a75_rle_crop_3693119109_0.png', 1340781056: '1741081773_3810794_1340779548_65e1fcc6c380858c81a26b988238fd53_rle_crop_3693119133_0.png', 1340781208: '1741082012_3821682_1340780556_bde4301095ee95ec55d810f70981b7fd_rle_crop_3693120586_0.png', 1340781209: '1741082012_3821682_1340780556_bde4301095ee95ec55d810f70981b7fd_rle_crop_3693120589_0.png', 1340781237: '1741082031_3821901_1340780072_94d070f3591a50fba99e76df16bdddbc_rle_crop_3693120821_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/c89c3f5f59efa3294fe122f726baa2fb_72722886.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/79527182741d5f938b22268915d232b4_83502334.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/470684803587d93f7405e69fa0b9e90a_61167812.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/88c0712fad2088c948d486949d129dac_60497550.png change filename to text .imagette210043401741082341/ imagette210043401741082341/1741082012_3821682_1340780556_bde4301095ee95ec55d810f70981b7fd_rle_crop_3693120589_0.png.png imagette210043401741082341/1741081773_3810794_1340779548_65e1fcc6c380858c81a26b988238fd53_rle_crop_3693119133_0.png.png imagette210043401741082341/1741082031_3821901_1340780072_94d070f3591a50fba99e76df16bdddbc_rle_crop_3693120821_0.png.png imagette210043401741082341/1741081773_3810794_1340779756_9b8c0bcc105b5d90f8258c3c03164a75_rle_crop_3693119109_0.png.png imagette210043401741082341/1741082012_3821682_1340780556_bde4301095ee95ec55d810f70981b7fd_rle_crop_3693120586_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/69d4bc48562a26e5a7c831d8bd25c4e9_71678894.png imagette210043401741082341 21004341 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=21004341 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340781050: '1741081773_3810794_1340779756_9b8c0bcc105b5d90f8258c3c03164a75_rle_crop_3693119098_0.png', 1340781051: '1741081773_3810794_1340779551_4f6b0b7094737a0ebd3cfdf45540b327_rle_crop_3693119125_0.png', 1340781052: '1741081773_3810794_1340779551_4f6b0b7094737a0ebd3cfdf45540b327_rle_crop_3693119119_0.png', 1340781205: '1741082012_3821682_1340780682_a6e7d8e0c38e68111de4f2e67dde7451_rle_crop_3693120533_0.png', 1340781236: '1741082031_3821901_1340780079_032ce2165acab16f1176ba4a890245d2_rle_crop_3693120734_0.png', 1340781470: '1741082093_3823074_1340781114_62d1a95c9dbe40f86471726e372f6806_rle_crop_3693121485_0.png', 1340781682: '1741082271_3831827_1340781178_3e6e708abfd6de251047f922306b05c6_rle_crop_3693122473_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/8d5f091c2af9800a51d4a6ba1f1efe90_37858825.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/47471e82a095855f213fa8670d501343_12119387.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/4371726e17b3a6ed834788a3598e99e9_24872363.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/845586374ddda63f374c84fbfd1e7a79_72637461.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/06ab44090f0718ba7a110f8d0a9d3d34_33312231.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/1084eee17a9d453f27055d5aa68e2b28_53489816.png change filename to text .imagette210043411741082341/ imagette210043411741082341/1741081773_3810794_1340779551_4f6b0b7094737a0ebd3cfdf45540b327_rle_crop_3693119119_0.png.png imagette210043411741082341/1741082031_3821901_1340780079_032ce2165acab16f1176ba4a890245d2_rle_crop_3693120734_0.png.png imagette210043411741082341/1741081773_3810794_1340779551_4f6b0b7094737a0ebd3cfdf45540b327_rle_crop_3693119125_0.png.png imagette210043411741082341/1741081773_3810794_1340779756_9b8c0bcc105b5d90f8258c3c03164a75_rle_crop_3693119098_0.png.png imagette210043411741082341/1741082093_3823074_1340781114_62d1a95c9dbe40f86471726e372f6806_rle_crop_3693121485_0.png.png imagette210043411741082341/1741082271_3831827_1340781178_3e6e708abfd6de251047f922306b05c6_rle_crop_3693122473_0.png.png imagette210043411741082341/1741082012_3821682_1340780682_a6e7d8e0c38e68111de4f2e67dde7451_rle_crop_3693120533_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/d5eb1ac59e7ac095036169d76e9da72a_24679761.png imagette210043411741082341 21004343 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=21004343 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340781057: '1741081773_3810794_1340779548_65e1fcc6c380858c81a26b988238fd53_rle_crop_3693119134_0.png'} change filename to text .imagette210043431741082342/ imagette210043431741082342/1741081773_3810794_1340779548_65e1fcc6c380858c81a26b988238fd53_rle_crop_3693119134_0.png.png imagette210043441741082342/ imagette210043471741082342/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/0305f29f687cb0a493e447c328e6e032_63395462.png imagette210043431741082342 21004344 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=21004344 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210043441741082342 21004347 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=21004347 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210043471741082342 21004350 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=21004350 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340781255: '1741082055_3822272_1340780111_d235c08247d86a371dbca2f4c4b71a16_rle_crop_3693121076_0.png', 1340781256: '1741082055_3822272_1340779961_9b94850a9c879a75df167879162d21f4_rle_crop_3693121116_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/d503db467f7b3e5ae88e017b278d0cb7_52156638.png change filename to text .imagette210043501741082342/ imagette210043501741082342/1741082055_3822272_1340779961_9b94850a9c879a75df167879162d21f4_rle_crop_3693121116_0.png.png imagette210043501741082342/1741082055_3822272_1340780111_d235c08247d86a371dbca2f4c4b71a16_rle_crop_3693121076_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/7f1406dedb72473587e66760dd5a30ca_94805656.png imagette210043501741082342 21004342 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=21004342 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340781200: '1741082012_3821682_1340780701_6a2c239246a3725e5adf47cdb6d11cbd_rle_crop_3693120520_0.png', 1340781201: '1741082012_3821682_1340780682_a6e7d8e0c38e68111de4f2e67dde7451_rle_crop_3693120534_0.png', 1340781202: '1741082012_3821682_1340780556_bde4301095ee95ec55d810f70981b7fd_rle_crop_3693120588_0.png', 1340781203: '1741082012_3821682_1340780556_bde4301095ee95ec55d810f70981b7fd_rle_crop_3693120584_0.png', 1340781234: '1741082031_3821901_1340780708_7307675315141d56f36fe52f153de24d_rle_crop_3693120604_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/b66014d6f1c647d34af564826210d4ed_10096431.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/4561b042a1881f83e43d69ed0fa54ec0_31069890.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/5f0168424f962a30707b3bd340a3e763_73380336.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/0bfa8c0a150a1cbbe8b50331e8f0daf7_56897332.png change filename to text .imagette210043421741082342/ imagette210043421741082342/1741082012_3821682_1340780682_a6e7d8e0c38e68111de4f2e67dde7451_rle_crop_3693120534_0.png.png imagette210043421741082342/1741082012_3821682_1340780701_6a2c239246a3725e5adf47cdb6d11cbd_rle_crop_3693120520_0.png.png imagette210043421741082342/1741082012_3821682_1340780556_bde4301095ee95ec55d810f70981b7fd_rle_crop_3693120588_0.png.png imagette210043421741082342/1741082031_3821901_1340780708_7307675315141d56f36fe52f153de24d_rle_crop_3693120604_0.png.png imagette210043421741082342/1741082012_3821682_1340780556_bde4301095ee95ec55d810f70981b7fd_rle_crop_3693120584_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/7739c172b76bbb379b36069bdd972c85_63345080.png imagette210043421741082342 21004345 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=21004345 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340781043: '1741081773_3810794_1340779756_9b8c0bcc105b5d90f8258c3c03164a75_rle_crop_3693119104_0.png', 1340781044: '1741081773_3810794_1340779551_4f6b0b7094737a0ebd3cfdf45540b327_rle_crop_3693119122_0.png', 1340781045: '1741081773_3810794_1340779536_c1521543c6413ad3cb9c00ed118ca3c5_rle_crop_3693119154_0.png', 1340781046: '1741081773_3810794_1340779536_c1521543c6413ad3cb9c00ed118ca3c5_rle_crop_3693119151_0.png', 1340781190: '1741082012_3821682_1340780678_debd720137c82e0236734842d757416f_rle_crop_3693120562_0.png', 1340781222: '1741082031_3821901_1340780079_032ce2165acab16f1176ba4a890245d2_rle_crop_3693120740_0.png', 1340781223: '1741082031_3821901_1340780079_032ce2165acab16f1176ba4a890245d2_rle_crop_3693120738_0.png', 1340781224: '1741082031_3821901_1340780072_94d070f3591a50fba99e76df16bdddbc_rle_crop_3693120829_0.png', 1340781225: '1741082031_3821901_1340780072_94d070f3591a50fba99e76df16bdddbc_rle_crop_3693120823_0.png', 1340781463: '1741082093_3823074_1340781114_62d1a95c9dbe40f86471726e372f6806_rle_crop_3693121490_0.png', 1340781464: '1741082093_3823074_1340781108_275e9045e5dc179b0f0b68ef855acf86_rle_crop_3693121525_0.png', 1340781678: '1741082271_3831827_1340781173_29cbd05ec1ed4babd906662e03120a5a_rle_crop_3693122583_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/a088b3238401497bbd2ca22cf3897ef2_23056748.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/bfa5a7b619924e780e7a6f8f833b743a_12255442.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/8f86e490952d98117bb7b8366900af4f_70295940.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f1499d2935e426731b7fd78e44f41c73_1521759.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/af3fe56a0c29242ed36f863383e289f3_8214080.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/5913e08542108f9141af7fb48b634d31_51222759.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/201480f33cec69a1991c49e06ee246c6_1865304.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/20b18bb5cc60e8f5cdbaff9cfe41dec7_39694491.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/42e2c967a0683119301e0ffd63e2d20f_76172014.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/c656eb39d695dcd04050f57f96cc20f4_79940961.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/2684ba29e53042260aa219881a8fe765_95808306.png change filename to text .imagette210043451741082342/ imagette210043451741082342/1741082031_3821901_1340780079_032ce2165acab16f1176ba4a890245d2_rle_crop_3693120740_0.png.png imagette210043451741082342/1741081773_3810794_1340779536_c1521543c6413ad3cb9c00ed118ca3c5_rle_crop_3693119154_0.png.png imagette210043451741082342/1741082031_3821901_1340780072_94d070f3591a50fba99e76df16bdddbc_rle_crop_3693120829_0.png.png imagette210043451741082342/1741081773_3810794_1340779551_4f6b0b7094737a0ebd3cfdf45540b327_rle_crop_3693119122_0.png.png imagette210043451741082342/1741082031_3821901_1340780079_032ce2165acab16f1176ba4a890245d2_rle_crop_3693120738_0.png.png imagette210043451741082342/1741081773_3810794_1340779536_c1521543c6413ad3cb9c00ed118ca3c5_rle_crop_3693119151_0.png.png imagette210043451741082342/1741082271_3831827_1340781173_29cbd05ec1ed4babd906662e03120a5a_rle_crop_3693122583_0.png.png imagette210043451741082342/1741082012_3821682_1340780678_debd720137c82e0236734842d757416f_rle_crop_3693120562_0.png.png imagette210043451741082342/1741081773_3810794_1340779756_9b8c0bcc105b5d90f8258c3c03164a75_rle_crop_3693119104_0.png.png imagette210043451741082342/1741082093_3823074_1340781108_275e9045e5dc179b0f0b68ef855acf86_rle_crop_3693121525_0.png.png imagette210043451741082342/1741082031_3821901_1340780072_94d070f3591a50fba99e76df16bdddbc_rle_crop_3693120823_0.png.png imagette210043451741082342/1741082093_3823074_1340781114_62d1a95c9dbe40f86471726e372f6806_rle_crop_3693121490_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/9d3d210ece0a78352e1f49a636cb077a_56945083.png imagette210043451741082342 21004346 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=21004346 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340781054: '1741081773_3810794_1340779756_9b8c0bcc105b5d90f8258c3c03164a75_rle_crop_3693119105_0.png', 1340781472: '1741082093_3823074_1340781118_882c258c46599781077b11418bf344c7_rle_crop_3693121473_0.png', 1340781685: '1741082271_3831827_1340781178_3e6e708abfd6de251047f922306b05c6_rle_crop_3693122472_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/98b11b1bf03307863f537869b2ec0960_38413652.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/25777b0de49c38806b725ee55d41cfbc_70377739.png change filename to text .imagette210043461741082343/ imagette210043461741082343/1741082093_3823074_1340781118_882c258c46599781077b11418bf344c7_rle_crop_3693121473_0.png.png imagette210043461741082343/1741081773_3810794_1340779756_9b8c0bcc105b5d90f8258c3c03164a75_rle_crop_3693119105_0.png.png imagette210043461741082343/1741082271_3831827_1340781178_3e6e708abfd6de251047f922306b05c6_rle_crop_3693122472_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/ff62d95e64ce200ea3349ef668e1e139_86062051.png imagette210043461741082343 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21004334 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21004351,21004352,21004353,21004354,21004355,21004356,21004357,21004358,21004359,21004360,21004361,21004362?tags=autre_refus,plastique,cartonnette,Carton_gris,metal,mal_croppe,Teint_Dans_La_Masse,Carton_brun,flou,papier,environnement,kraft your option no_mail is active, we will not send the real mail to your client args[1340781609] : ('0.08183697551617107',) no score found for photo 1340781609 We are sending mail with results at report@fotonower.com args[1340781606] : ('0.08183697551617107',) no score found for photo 1340781606 We are sending mail with results at report@fotonower.com args[1340781589] : ('0.08183697551617107',) no score found for photo 1340781589 We are sending mail with results at report@fotonower.com args[1340781478] : ('0.08183697551617107',) no score found for photo 1340781478 We are sending mail with results at report@fotonower.com args[1340781469] : ('0.08183697551617107',) no score found for photo 1340781469 We are sending mail with results at report@fotonower.com refus_total : 0.08183697551617107 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=21004334 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_P21004334_04-03-2025_10_59_00.pdf results_Auto_P21004334_04-03-2025_10_59_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21004334_04-03-2025_10_59_00.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','21004334','results_Auto_P21004334_04-03-2025_10_59_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21004334_04-03-2025_10_59_00.pdf','pdf','','0.22','0.08183697551617107') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21004334]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340781609, 1340781606, 1340781589, 1340781478, 1340781469] map_info['map_portfolio_photo'] : {21004334: [1340781609, 1340781606, 1340781589, 1340781478, 1340781469, 1340781250, 1340781245, 1340781182, 1340781178, 1340781173, 1340781123, 1340781118, 1340781114, 1340781108, 1340781071, 1340781065, 1340781061, 1340780813, 1340780803, 1340780798, 1340780708, 1340780701, 1340780682, 1340780678, 1340780556, 1340780111, 1340780098, 1340780094, 1340780079, 1340780072, 1340779975, 1340779970, 1340779961, 1340779756, 1340779751, 1340779733, 1340779551, 1340779548, 1340779536]} final : False mtd_id 4302 list_pids : [1340781609, 1340781606, 1340781589, 1340781478, 1340781469] 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, '2632094') ('4302', '21004334', '1340781609', None, None, None, None, None, '2632094') ('4302', None, None, None, None, None, None, None, '2632094') ('4302', '21004334', '1340781606', None, None, None, None, None, '2632094') ('4302', None, None, None, None, None, None, None, '2632094') ('4302', '21004334', '1340781589', None, None, None, None, None, '2632094') ('4302', None, None, None, None, None, None, None, '2632094') ('4302', '21004334', '1340781478', None, None, None, None, None, '2632094') ('4302', None, None, None, None, None, None, None, '2632094') ('4302', '21004334', '1340781469', None, None, None, None, None, '2632094') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21004334', '1340781609', None, None, None, None, None, '2632094'), ('4302', '21004334', '1340781606', None, None, None, None, None, '2632094'), ('4302', '21004334', '1340781589', None, None, None, None, None, '2632094'), ('4302', '21004334', '1340781478', None, None, None, None, None, '2632094'), ('4302', '21004334', '1340781469', None, None, None, None, None, '2632094')] time used for this insertion : 0.011781930923461914 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.246962785720825 time spend to save output : 0.012007951736450195 total time spend for step 4 : 4.258970737457275 step5:split_time_score Tue Mar 4 10:59: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 : ['21004334'] 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 : [('21004334',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21004334) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340781609: {'path': 'temp/1741082340_3237728_1340781609_e450524dc7571e76bdbc58a2b8541a4f.jpg', 'extension': 'jpg'}, 1340781469: {'path': 'temp/1741082340_3237728_1340781469_7caa55d32d34330c16b81749df40ea76.jpg', 'extension': 'jpg'}, 1340781478: {'path': 'temp/1741082340_3237728_1340781478_eadb5b332cefe0ec090f1c1d794e7f45.jpg', 'extension': 'jpg'}, 1340781589: {'path': 'temp/1741082340_3237728_1340781589_feda1abc145927b520a4b9e142376c2a.jpg', 'extension': 'jpg'}, 1340781606: {'path': 'temp/1741082340_3237728_1340781606_bf0ab8c71d7a67599bcd6f7163cf658d.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 = 21004334; (('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 = 21004334 group by h (('10', 39),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21004334 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 (21004334) 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 (21004334) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04032025 21004334 Nombre de photos uploadées : 39 / 23040 (0%) 04032025 21004334 Nombre de photos taguées (types de déchets): 0 / 39 (0%) 04032025 21004334 Nombre de photos taguées (volume) : 0 / 39 (0%) [{'photo_id': 1340779551, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/4f6b0b7094737a0ebd3cfdf45540b327.jpg', 'username': None, 'uploaded_at': 1741081581, 'text': 'image_04032025_10_45_04_010150m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340779548, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/65e1fcc6c380858c81a26b988238fd53.jpg', 'username': None, 'uploaded_at': 1741081581, 'text': 'image_04032025_10_45_14_010141m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340779536, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/c1521543c6413ad3cb9c00ed118ca3c5.jpg', 'username': None, 'uploaded_at': 1741081581, 'text': 'image_04032025_10_45_24_010139m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340779756, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/9b8c0bcc105b5d90f8258c3c03164a75.jpg', 'username': None, 'uploaded_at': 1741081642, 'text': 'image_04032025_10_45_34_010146m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ??????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001798391342163086 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21004334, '2025-03-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1636376,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022174358367919922 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= 1636376 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1636376, 'dashboard_run_id': 1644999, 'mtr_portfolio_id': 21003272, 'dashboard_result_id': 9189480, '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_P21003272_04-03-2025_10_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21003276, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21003277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21003278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21003279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21003280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21003281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21003282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21003283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21003284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21003285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21003286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21003287, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1644999, 'mtr_portfolio_id': 21003724, 'dashboard_result_id': 9189481, '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_P21003724_04-03-2025_10_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21003727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21003728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21003729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21003730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21003731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21003732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21003733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21003734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21003735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21003736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21003737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21003738, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1644999, 'mtr_portfolio_id': 21004334, 'dashboard_result_id': 9189482, '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_P21004334_04-03-2025_10_57_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21004339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21004340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21004341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21004342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21004343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21004344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21004345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21004346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21004347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21004348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21004349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21004350, '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 = 21003272 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': 2632000, 'mtr_portfolio_id': 21003272, 'created_at': datetime.datetime(2025, 3, 4, 10, 32, 59), 'result': '0.08613859030582237', 'result_long': None, 'result_double': None}] Qualite : 0.08613859030582237 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21003272 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21003272_04-03-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21003272 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_P21003272_04-03-2025_10_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21003276, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21003277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21003278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21003279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21003280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21003281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21003282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21003283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21003284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21003285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21003286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21003287, 'pht': 3726}}" where mtr_portfolio_id = 21003272 and dashboard_run_id = 1644999 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`=21003272 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9189480, 0.08613859030582237, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21003272_04-03-2025_10_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21003276, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21003277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21003278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21003279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21003280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21003281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21003282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21003283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21003284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21003285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21003286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21003287, '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 = 21003724 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': 2632045, 'mtr_portfolio_id': 21003724, 'created_at': datetime.datetime(2025, 3, 4, 10, 49, 1), 'result': '0.07228548143214195', 'result_long': None, 'result_double': None}] Qualite : 0.07228548143214195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21003724 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21003724_04-03-2025_10_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21003724 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_P21003724_04-03-2025_10_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21003727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21003728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21003729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21003730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21003731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21003732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21003733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21003734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21003735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21003736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21003737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21003738, 'pht': 3726}}" where mtr_portfolio_id = 21003724 and dashboard_run_id = 1644999 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`=21003724 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9189481, 0.07228548143214195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21003724_04-03-2025_10_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21003727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21003728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21003729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21003730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21003731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21003732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21003733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21003734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21003735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21003736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21003737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21003738, '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 = 21004334 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': 2632094, 'mtr_portfolio_id': 21004334, 'created_at': datetime.datetime(2025, 3, 4, 10, 58, 59), 'result': '0.08183697551617107', 'result_long': None, 'result_double': None}] Qualite : 0.08183697551617107 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21004334 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21004334_04-03-2025_10_59_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21004334 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_P21004334_04-03-2025_10_59_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21004339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21004340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21004341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21004342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21004343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21004344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21004345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21004346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21004347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21004348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21004349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21004350, 'pht': 3726}}" where mtr_portfolio_id = 21004334 and dashboard_run_id = 1644999 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`=21004334 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9189482, 0.08183697551617107, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21004334_04-03-2025_10_59_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21004339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21004340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21004341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21004342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21004343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21004344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21004345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21004346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21004347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21004348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21004349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21004350, '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 (21003272,21003724,21004334) result : ((1340777214,), (1340777217,), (1340777431,), (1340777435,), (1340777438,), (1340777444,), (1340777451,), (1340777701,), (1340777717,), (1340777740,), (1340777768,), (1340777785,), (1340777794,), (1340777822,), (1340777826,), (1340777829,), (1340777836,), (1340777854,), (1340777895,), (1340777901,), (1340777905,), (1340777911,), (1340777946,), (1340777951,), (1340777954,), (1340777960,), (1340777966,), (1340778021,), (1340778027,), (1340778030,), (1340778037,), (1340778042,), (1340778046,), (1340778067,), (1340778073,), (1340778078,), (1340778089,), (1340778095,), (1340778133,), (1340778138,), (1340778141,), (1340778177,), (1340778183,), (1340778191,), (1340778203,), (1340778211,), (1340778249,), (1340778257,), (1340778263,), (1340778271,), (1340778280,), (1340778447,), (1340778406,), (1340778412,), (1340778418,), (1340778432,), (1340778438,), (1340778477,), (1340778489,), (1340778497,), (1340778504,), (1340778549,), (1340778553,), (1340778557,), (1340778563,), (1340778571,), (1340778583,), (1340778642,), (1340778646,), (1340778650,), (1340778655,), (1340778660,), (1340778665,), (1340778697,), (1340778705,), (1340778709,), (1340778785,), (1340778790,), (1340778794,), (1340778844,), (1340778848,), (1340778854,), (1340778861,), (1340778866,), (1340778890,), (1340778894,), (1340778898,), (1340778901,), (1340778908,), (1340778997,), (1340779001,), (1340779005,), (1340779011,), (1340779056,), (1340779060,), (1340779063,), (1340779069,), (1340779076,), (1340779102,), (1340779106,), (1340779108,), (1340779171,), (1340779182,), (1340779189,), (1340779194,), (1340779200,), (1340779203,), (1340779245,), (1340779247,), (1340779299,), (1340779308,), (1340779313,), (1340779317,), (1340779321,), (1340779360,), (1340779393,), (1340779399,), (1340779420,), (1340779427,), (1340779432,), (1340779558,), (1340779536,), (1340779548,), (1340779551,), (1340779733,), (1340779751,), (1340779756,), (1340779961,), (1340779970,), (1340779975,), (1340780072,), (1340780079,), (1340780094,), (1340780098,), (1340780111,), (1340780556,), (1340780678,), (1340780682,), (1340780701,), (1340780708,), (1340780798,), (1340780803,), (1340780813,), (1340781061,), (1340781065,), (1340781071,), (1340781108,), (1340781114,), (1340781118,), (1340781123,), (1340781173,), (1340781178,), (1340781182,), (1340781245,), (1340781250,), (1340781469,), (1340781478,), (1340781589,), (1340781606,), (1340781609,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04032025': {'nb_upload': 39, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21004334]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340781609, 1340781606, 1340781589, 1340781478, 1340781469] map_info['map_portfolio_photo'] : {21004334: [1340781609, 1340781606, 1340781589, 1340781478, 1340781469, 1340781250, 1340781245, 1340781182, 1340781178, 1340781173, 1340781123, 1340781118, 1340781114, 1340781108, 1340781071, 1340781065, 1340781061, 1340780813, 1340780803, 1340780798, 1340780708, 1340780701, 1340780682, 1340780678, 1340780556, 1340780111, 1340780098, 1340780094, 1340780079, 1340780072, 1340779975, 1340779970, 1340779961, 1340779756, 1340779751, 1340779733, 1340779551, 1340779548, 1340779536]} final : True mtd_id 4302 list_pids : [1340781609, 1340781606, 1340781589, 1340781478, 1340781469] Looping around the photos to save general results len do output : 1 /21004334Didn'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, '2632094') ('4302', '21004334', '1340781609', None, None, None, None, None, '2632094') ('4302', None, None, None, None, None, None, None, '2632094') ('4302', '21004334', '1340781606', None, None, None, None, None, '2632094') ('4302', None, None, None, None, None, None, None, '2632094') ('4302', '21004334', '1340781589', None, None, None, None, None, '2632094') ('4302', None, None, None, None, None, None, None, '2632094') ('4302', '21004334', '1340781478', None, None, None, None, None, '2632094') ('4302', None, None, None, None, None, None, None, '2632094') ('4302', '21004334', '1340781469', None, None, None, None, None, '2632094') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21004334', 'None', None, None, None, None, '2632094'), ('4302', '21004334', '1340781609', None, None, None, None, None, '2632094'), ('4302', '21004334', '1340781606', None, None, None, None, None, '2632094'), ('4302', '21004334', '1340781589', None, None, None, None, None, '2632094'), ('4302', '21004334', '1340781478', None, None, None, None, None, '2632094'), ('4302', '21004334', '1340781469', None, None, None, None, None, '2632094')] time used for this insertion : 0.011900663375854492 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2828397750854492 time spend to save output : 0.012189626693725586 total time spend for step 5 : 0.2950294017791748 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 (2632094) 1.99user 2.37system 0:10.26elapsed 42%CPU (0avgtext+0avgdata 158732maxresident)k 1376inputs+10472outputs (14major+63733minor)pagefaults 0swaps