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 : 1658764 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 (2762647) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2762647) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22434112 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2762647'] with mtr_portfolio_ids : ['22434112'] and first list_photo_ids : [] new path : /proc/1658764/ Name: python3 Umask: 0002 State: R (running) Tgid: 1658764 Ngid: 0 Pid: 1658764 PPid: 1658763 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1658764 NSpid: 1658764 NSpgid: 1656633 NSsid: 1656633 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99764 kB VmRSS: 99764 kB RssAnon: 59808 kB RssFile: 39956 kB RssShmem: 0 kB VmData: 865684 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: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 59 nonvoluntary_ctxt_switches: 90 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1658764', 'Ngid': '0', 'Pid': '1658764', 'PPid': '1658763', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1658764', 'NSpid': '1658764', 'NSpgid': '1656633', 'NSsid': '1656633', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99764 kB', 'VmRSS': '99764 kB', 'RssAnon': '59808 kB', 'RssFile': '39956 kB', 'RssShmem': '0 kB', 'VmData': '865684 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': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '59', 'nonvoluntary_ctxt_switches': '90'} ('datou_batch_current', '1658764', '1106936', '0', '1106936', '865684', '99764', b'', 'marlene', '2762647') 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 (22434112) 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 (2762647 ) ) 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 (22434112) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1353723126, 'portfolio_id': 22434112}, {'photo_id': 1353723021, 'portfolio_id': 22434112}, {'photo_id': 1353722941, 'portfolio_id': 22434112}, {'photo_id': 1353722217, 'portfolio_id': 22434112}, {'photo_id': 1353722123, 'portfolio_id': 22434112}, {'photo_id': 1353721991, 'portfolio_id': 22434112}, {'photo_id': 1353721858, 'portfolio_id': 22434112}, {'photo_id': 1353721506, 'portfolio_id': 22434112}, {'photo_id': 1353721478, 'portfolio_id': 22434112}, {'photo_id': 1353721448, 'portfolio_id': 22434112}, {'photo_id': 1353721403, 'portfolio_id': 22434112}, {'photo_id': 1353721351, 'portfolio_id': 22434112}, {'photo_id': 1353720623, 'portfolio_id': 22434112}, {'photo_id': 1353720569, 'portfolio_id': 22434112}, {'photo_id': 1353720494, 'portfolio_id': 22434112}, {'photo_id': 1353720380, 'portfolio_id': 22434112}, {'photo_id': 1353719700, 'portfolio_id': 22434112}, {'photo_id': 1353719571, 'portfolio_id': 22434112}, {'photo_id': 1353719545, 'portfolio_id': 22434112}, {'photo_id': 1353719519, 'portfolio_id': 22434112}, {'photo_id': 1353718621, 'portfolio_id': 22434112}, {'photo_id': 1353718586, 'portfolio_id': 22434112}, {'photo_id': 1353718560, 'portfolio_id': 22434112}, {'photo_id': 1353718511, 'portfolio_id': 22434112}, {'photo_id': 1353718509, 'portfolio_id': 22434112}, {'photo_id': 1353718506, 'portfolio_id': 22434112}, {'photo_id': 1353718504, 'portfolio_id': 22434112}, {'photo_id': 1353718501, 'portfolio_id': 22434112}, {'photo_id': 1353718493, 'portfolio_id': 22434112}, {'photo_id': 1353718362, 'portfolio_id': 22434112}, {'photo_id': 1353718360, 'portfolio_id': 22434112}, {'photo_id': 1353718357, 'portfolio_id': 22434112}, {'photo_id': 1353718345, 'portfolio_id': 22434112}, {'photo_id': 1353718317, 'portfolio_id': 22434112}, {'photo_id': 1353718288, 'portfolio_id': 22434112}, {'photo_id': 1353717984, 'portfolio_id': 22434112}, {'photo_id': 1353717827, 'portfolio_id': 22434112}, {'photo_id': 1353717793, 'portfolio_id': 22434112}, {'photo_id': 1353717132, 'portfolio_id': 22434112}, {'photo_id': 1353717073, 'portfolio_id': 22434112}, {'photo_id': 1353717011, 'portfolio_id': 22434112}, {'photo_id': 1353716944, 'portfolio_id': 22434112}, {'photo_id': 1353716338, 'portfolio_id': 22434112}, {'photo_id': 1353716296, 'portfolio_id': 22434112}, {'photo_id': 1353716238, 'portfolio_id': 22434112}, {'photo_id': 1353716180, 'portfolio_id': 22434112}, {'photo_id': 1353716051, 'portfolio_id': 22434112}, {'photo_id': 1353715961, 'portfolio_id': 22434112}, {'photo_id': 1353714836, 'portfolio_id': 22434112}, {'photo_id': 1353714784, 'portfolio_id': 22434112}, {'photo_id': 1353714738, 'portfolio_id': 22434112}] map_portfolio_id_photo_id: {22434112: [1353723126, 1353723021, 1353722941, 1353722217, 1353722123, 1353721991, 1353721858, 1353721506, 1353721478, 1353721448, 1353721403, 1353721351, 1353720623, 1353720569, 1353720494, 1353720380, 1353719700, 1353719571, 1353719545, 1353719519, 1353718621, 1353718586, 1353718560, 1353718511, 1353718509, 1353718506, 1353718504, 1353718501, 1353718493, 1353718362, 1353718360, 1353718357, 1353718345, 1353718317, 1353718288, 1353717984, 1353717827, 1353717793, 1353717132, 1353717073, 1353717011, 1353716944, 1353716338, 1353716296, 1353716238, 1353716180, 1353716051, 1353715961, 1353714836, 1353714784, 1353714738]} ##### 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.016489744186401367 #### 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 Fri Apr 25 14:14: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 (22434112) 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 : 22434112 get user id for portfolio 22434112 get sub ptf for main ptf 22434112, type 3726 and hashtags ['mal_croppe', 'Carton_brun', 'autre_refus', 'kraft', 'metal', 'Carton_gris', 'plastique', 'Teint_Dans_La_Masse', 'flou', 'environnement', 'papier', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22434112 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_brun','autre_refus','kraft','metal','Carton_gris','plastique','Teint_Dans_La_Masse','flou','environnement','papier','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22434112 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_brun','autre_refus','kraft','metal','Carton_gris','plastique','Teint_Dans_La_Masse','flou','environnement','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 22434112, 'sub_port_id': 22434151, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880026, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 58)}, 'mal_croppe': {'main_port_id': 22434112, 'sub_port_id': 22434152, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880027, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22434112, 'sub_port_id': 22434153, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880028, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 58)}, 'flou': {'main_port_id': 22434112, 'sub_port_id': 22434154, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880029, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 58)}, 'papier': {'main_port_id': 22434112, 'sub_port_id': 22434155, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880030, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 58)}, 'autre_refus': {'main_port_id': 22434112, 'sub_port_id': 22434156, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880031, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 58)}, 'metal': {'main_port_id': 22434112, 'sub_port_id': 22434157, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880032, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 58)}, 'Carton_gris': {'main_port_id': 22434112, 'sub_port_id': 22434158, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880033, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 58)}, 'kraft': {'main_port_id': 22434112, 'sub_port_id': 22434159, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880034, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 58)}, 'Carton_brun': {'main_port_id': 22434112, 'sub_port_id': 22434160, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880035, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 58)}, 'plastique': {'main_port_id': 22434112, 'sub_port_id': 22434161, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880036, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 58)}, 'environnement': {'main_port_id': 22434112, 'sub_port_id': 22434162, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880037, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22434151 , 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=22434112 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 (22434151) result : ((1353718212,), (1353718463,), (1353718464,), (1353719455,), (1353719456,), (1353720064,), (1353720065,), (1353722585,), (1353722586,), (1353723793,), (1353724813,), (1353724814,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22434112) result : ((1353714738,), (1353714784,), (1353714836,), (1353715961,), (1353716051,), (1353716180,), (1353716238,), (1353716296,), (1353716338,), (1353716944,), (1353717011,), (1353717073,), (1353717132,), (1353717793,), (1353717827,), (1353717984,), (1353718288,), (1353718317,), (1353718345,), (1353718357,), (1353718360,), (1353718362,), (1353718493,), (1353718501,), (1353718504,), (1353718506,), (1353718509,), (1353718511,), (1353718560,), (1353718586,), (1353718621,), (1353719519,), (1353719545,), (1353719571,), (1353719700,), (1353720380,), (1353720494,), (1353720569,), (1353720623,), (1353721351,), (1353721403,), (1353721448,), (1353721478,), (1353721506,), (1353721858,), (1353721991,), (1353722123,), (1353722217,), (1353722941,), (1353723021,), (1353723126,)) 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 (1353719700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22434152 , 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=22434112 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 (22434152) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22434112) result : ((1353714738,), (1353714784,), (1353714836,), (1353715961,), (1353716051,), (1353716180,), (1353716238,), (1353716296,), (1353716338,), (1353716944,), (1353717011,), (1353717073,), (1353717132,), (1353717793,), (1353717827,), (1353717984,), (1353718288,), (1353718317,), (1353718345,), (1353718357,), (1353718360,), (1353718362,), (1353718493,), (1353718501,), (1353718504,), (1353718506,), (1353718509,), (1353718511,), (1353718560,), (1353718586,), (1353718621,), (1353719519,), (1353719545,), (1353719571,), (1353719700,), (1353720380,), (1353720494,), (1353720569,), (1353720623,), (1353721351,), (1353721403,), (1353721448,), (1353721478,), (1353721506,), (1353721858,), (1353721991,), (1353722123,), (1353722217,), (1353722941,), (1353723021,), (1353723126,)) 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 (1353719700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22434153 , 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=22434112 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 (22434153) result : ((1353718205,), (1353721581,), (1353722563,), (1353722564,), (1353724795,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22434112) result : ((1353714738,), (1353714784,), (1353714836,), (1353715961,), (1353716051,), (1353716180,), (1353716238,), (1353716296,), (1353716338,), (1353716944,), (1353717011,), (1353717073,), (1353717132,), (1353717793,), (1353717827,), (1353717984,), (1353718288,), (1353718317,), (1353718345,), (1353718357,), (1353718360,), (1353718362,), (1353718493,), (1353718501,), (1353718504,), (1353718506,), (1353718509,), (1353718511,), (1353718560,), (1353718586,), (1353718621,), (1353719519,), (1353719545,), (1353719571,), (1353719700,), (1353720380,), (1353720494,), (1353720569,), (1353720623,), (1353721351,), (1353721403,), (1353721448,), (1353721478,), (1353721506,), (1353721858,), (1353721991,), (1353722123,), (1353722217,), (1353722941,), (1353723021,), (1353723126,)) 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 (1353719700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22434154 , 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=22434112 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 (22434154) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22434112) result : ((1353714738,), (1353714784,), (1353714836,), (1353715961,), (1353716051,), (1353716180,), (1353716238,), (1353716296,), (1353716338,), (1353716944,), (1353717011,), (1353717073,), (1353717132,), (1353717793,), (1353717827,), (1353717984,), (1353718288,), (1353718317,), (1353718345,), (1353718357,), (1353718360,), (1353718362,), (1353718493,), (1353718501,), (1353718504,), (1353718506,), (1353718509,), (1353718511,), (1353718560,), (1353718586,), (1353718621,), (1353719519,), (1353719545,), (1353719571,), (1353719700,), (1353720380,), (1353720494,), (1353720569,), (1353720623,), (1353721351,), (1353721403,), (1353721448,), (1353721478,), (1353721506,), (1353721858,), (1353721991,), (1353722123,), (1353722217,), (1353722941,), (1353723021,), (1353723126,)) 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 (1353719700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22434155 , 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=22434112 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 (22434155) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22434112) result : ((1353714738,), (1353714784,), (1353714836,), (1353715961,), (1353716051,), (1353716180,), (1353716238,), (1353716296,), (1353716338,), (1353716944,), (1353717011,), (1353717073,), (1353717132,), (1353717793,), (1353717827,), (1353717984,), (1353718288,), (1353718317,), (1353718345,), (1353718357,), (1353718360,), (1353718362,), (1353718493,), (1353718501,), (1353718504,), (1353718506,), (1353718509,), (1353718511,), (1353718560,), (1353718586,), (1353718621,), (1353719519,), (1353719545,), (1353719571,), (1353719700,), (1353720380,), (1353720494,), (1353720569,), (1353720623,), (1353721351,), (1353721403,), (1353721448,), (1353721478,), (1353721506,), (1353721858,), (1353721991,), (1353722123,), (1353722217,), (1353722941,), (1353723021,), (1353723126,)) 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 (1353719700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22434156 , 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=22434112 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 (22434156) result : ((1353718207,), (1353718440,), (1353718441,), (1353719385,), (1353719387,), (1353722569,), (1353723765,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22434112) result : ((1353714738,), (1353714784,), (1353714836,), (1353715961,), (1353716051,), (1353716180,), (1353716238,), (1353716296,), (1353716338,), (1353716944,), (1353717011,), (1353717073,), (1353717132,), (1353717793,), (1353717827,), (1353717984,), (1353718288,), (1353718317,), (1353718345,), (1353718357,), (1353718360,), (1353718362,), (1353718493,), (1353718501,), (1353718504,), (1353718506,), (1353718509,), (1353718511,), (1353718560,), (1353718586,), (1353718621,), (1353719519,), (1353719545,), (1353719571,), (1353719700,), (1353720380,), (1353720494,), (1353720569,), (1353720623,), (1353721351,), (1353721403,), (1353721448,), (1353721478,), (1353721506,), (1353721858,), (1353721991,), (1353722123,), (1353722217,), (1353722941,), (1353723021,), (1353723126,)) 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 (1353719700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22434157 , 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=22434112 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 (22434157) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22434112) result : ((1353714738,), (1353714784,), (1353714836,), (1353715961,), (1353716051,), (1353716180,), (1353716238,), (1353716296,), (1353716338,), (1353716944,), (1353717011,), (1353717073,), (1353717132,), (1353717793,), (1353717827,), (1353717984,), (1353718288,), (1353718317,), (1353718345,), (1353718357,), (1353718360,), (1353718362,), (1353718493,), (1353718501,), (1353718504,), (1353718506,), (1353718509,), (1353718511,), (1353718560,), (1353718586,), (1353718621,), (1353719519,), (1353719545,), (1353719571,), (1353719700,), (1353720380,), (1353720494,), (1353720569,), (1353720623,), (1353721351,), (1353721403,), (1353721448,), (1353721478,), (1353721506,), (1353721858,), (1353721991,), (1353722123,), (1353722217,), (1353722941,), (1353723021,), (1353723126,)) 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 (1353719700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22434158 , 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=22434112 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 (22434158) result : ((1353718208,), (1353718209,), (1353718210,), (1353718452,), (1353718453,), (1353718454,), (1353719446,), (1353719447,), (1353719448,), (1353722576,), (1353722577,), (1353723780,), (1353723781,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22434112) result : ((1353714738,), (1353714784,), (1353714836,), (1353715961,), (1353716051,), (1353716180,), (1353716238,), (1353716296,), (1353716338,), (1353716944,), (1353717011,), (1353717073,), (1353717132,), (1353717793,), (1353717827,), (1353717984,), (1353718288,), (1353718317,), (1353718345,), (1353718357,), (1353718360,), (1353718362,), (1353718493,), (1353718501,), (1353718504,), (1353718506,), (1353718509,), (1353718511,), (1353718560,), (1353718586,), (1353718621,), (1353719519,), (1353719545,), (1353719571,), (1353719700,), (1353720380,), (1353720494,), (1353720569,), (1353720623,), (1353721351,), (1353721403,), (1353721448,), (1353721478,), (1353721506,), (1353721858,), (1353721991,), (1353722123,), (1353722217,), (1353722941,), (1353723021,), (1353723126,)) 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 (1353719700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22434159 , 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=22434112 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 (22434159) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22434112) result : ((1353714738,), (1353714784,), (1353714836,), (1353715961,), (1353716051,), (1353716180,), (1353716238,), (1353716296,), (1353716338,), (1353716944,), (1353717011,), (1353717073,), (1353717132,), (1353717793,), (1353717827,), (1353717984,), (1353718288,), (1353718317,), (1353718345,), (1353718357,), (1353718360,), (1353718362,), (1353718493,), (1353718501,), (1353718504,), (1353718506,), (1353718509,), (1353718511,), (1353718560,), (1353718586,), (1353718621,), (1353719519,), (1353719545,), (1353719571,), (1353719700,), (1353720380,), (1353720494,), (1353720569,), (1353720623,), (1353721351,), (1353721403,), (1353721448,), (1353721478,), (1353721506,), (1353721858,), (1353721991,), (1353722123,), (1353722217,), (1353722941,), (1353723021,), (1353723126,)) 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 (1353719700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22434160 , 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=22434112 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 (22434160) result : ((1353718214,), (1353718215,), (1353718216,), (1353718217,), (1353718470,), (1353719463,), (1353721583,), (1353721584,), (1353721585,), (1353722593,), (1353723821,), (1353723822,), (1353723823,), (1353723824,), (1353723825,), (1353723826,), (1353724840,), (1353724841,), (1353724843,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22434112) result : ((1353714738,), (1353714784,), (1353714836,), (1353715961,), (1353716051,), (1353716180,), (1353716238,), (1353716296,), (1353716338,), (1353716944,), (1353717011,), (1353717073,), (1353717132,), (1353717793,), (1353717827,), (1353717984,), (1353718288,), (1353718317,), (1353718345,), (1353718357,), (1353718360,), (1353718362,), (1353718493,), (1353718501,), (1353718504,), (1353718506,), (1353718509,), (1353718511,), (1353718560,), (1353718586,), (1353718621,), (1353719519,), (1353719545,), (1353719571,), (1353719700,), (1353720380,), (1353720494,), (1353720569,), (1353720623,), (1353721351,), (1353721403,), (1353721448,), (1353721478,), (1353721506,), (1353721858,), (1353721991,), (1353722123,), (1353722217,), (1353722941,), (1353723021,), (1353723126,)) 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 (1353719700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22434161 , 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=22434112 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 (22434161) result : ((1353721587,), (1353723846,), (1353723847,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22434112) result : ((1353714738,), (1353714784,), (1353714836,), (1353715961,), (1353716051,), (1353716180,), (1353716238,), (1353716296,), (1353716338,), (1353716944,), (1353717011,), (1353717073,), (1353717132,), (1353717793,), (1353717827,), (1353717984,), (1353718288,), (1353718317,), (1353718345,), (1353718357,), (1353718360,), (1353718362,), (1353718493,), (1353718501,), (1353718504,), (1353718506,), (1353718509,), (1353718511,), (1353718560,), (1353718586,), (1353718621,), (1353719519,), (1353719545,), (1353719571,), (1353719700,), (1353720380,), (1353720494,), (1353720569,), (1353720623,), (1353721351,), (1353721403,), (1353721448,), (1353721478,), (1353721506,), (1353721858,), (1353721991,), (1353722123,), (1353722217,), (1353722941,), (1353723021,), (1353723126,)) 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 (1353719700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22434162 , 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=22434112 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 (22434162) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22434112) result : ((1353714738,), (1353714784,), (1353714836,), (1353715961,), (1353716051,), (1353716180,), (1353716238,), (1353716296,), (1353716338,), (1353716944,), (1353717011,), (1353717073,), (1353717132,), (1353717793,), (1353717827,), (1353717984,), (1353718288,), (1353718317,), (1353718345,), (1353718357,), (1353718360,), (1353718362,), (1353718493,), (1353718501,), (1353718504,), (1353718506,), (1353718509,), (1353718511,), (1353718560,), (1353718586,), (1353718621,), (1353719519,), (1353719545,), (1353719571,), (1353719700,), (1353720380,), (1353720494,), (1353720569,), (1353720623,), (1353721351,), (1353721403,), (1353721448,), (1353721478,), (1353721506,), (1353721858,), (1353721991,), (1353722123,), (1353722217,), (1353722941,), (1353723021,), (1353723126,)) 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 (1353719700) and cspi.crop_hashtag_id = chi.id; 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`=22434112 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_brun','autre_refus','kraft','metal','Carton_gris','plastique','Teint_Dans_La_Masse','flou','environnement','papier','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22434112 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_brun','autre_refus','kraft','metal','Carton_gris','plastique','Teint_Dans_La_Masse','flou','environnement','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 22434112, 'sub_port_id': 22434163, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880038, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 59)}, 'mal_croppe': {'main_port_id': 22434112, 'sub_port_id': 22434164, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880039, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22434112, 'sub_port_id': 22434165, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880040, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 59)}, 'flou': {'main_port_id': 22434112, 'sub_port_id': 22434166, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880041, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 59)}, 'papier': {'main_port_id': 22434112, 'sub_port_id': 22434167, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880042, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 59)}, 'autre_refus': {'main_port_id': 22434112, 'sub_port_id': 22434168, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880043, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 59)}, 'metal': {'main_port_id': 22434112, 'sub_port_id': 22434169, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880044, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 59)}, 'Carton_gris': {'main_port_id': 22434112, 'sub_port_id': 22434170, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880045, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 59)}, 'kraft': {'main_port_id': 22434112, 'sub_port_id': 22434171, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880046, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 59)}, 'Carton_brun': {'main_port_id': 22434112, 'sub_port_id': 22434172, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880047, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 59)}, 'plastique': {'main_port_id': 22434112, 'sub_port_id': 22434173, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880048, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 59)}, 'environnement': {'main_port_id': 22434112, 'sub_port_id': 22434174, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14880049, 'last_updated_at': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 14, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 14, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22434163,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22434151 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22434164,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22434152 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22434165,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22434153 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22434166,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22434154 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22434167,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22434155 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22434168,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22434156 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22434169,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22434157 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22434170,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22434158 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22434171,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22434159 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22434172,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22434160 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22434173,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22434161 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22434174,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22434162 lien utilise dans velours : https://www.fotonower.com/velours/22434163,22434164,22434165,22434166,22434167,22434168,22434169,22434170,22434171,22434172,22434173,22434174?tags=cartonnette,mal_croppe,Teint_Dans_La_Masse,flou,papier,autre_refus,metal,Carton_gris,kraft,Carton_brun,plastique,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22434112]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353723126, 1353723021, 1353722941] map_info['map_portfolio_photo'] : {22434112: [1353723126, 1353723021, 1353722941, 1353722217, 1353722123, 1353721991, 1353721858, 1353721506, 1353721478, 1353721448, 1353721403, 1353721351, 1353720623, 1353720569, 1353720494, 1353720380, 1353719700, 1353719571, 1353719545, 1353719519, 1353718621, 1353718586, 1353718560, 1353718511, 1353718509, 1353718506, 1353718504, 1353718501, 1353718493, 1353718362, 1353718360, 1353718357, 1353718345, 1353718317, 1353718288, 1353717984, 1353717827, 1353717793, 1353717132, 1353717073, 1353717011, 1353716944, 1353716338, 1353716296, 1353716238, 1353716180, 1353716051, 1353715961, 1353714836, 1353714784, 1353714738]} final : False mtd_id 4302 list_pids : [1353723126, 1353723021, 1353722941] Looping around the photos to save general results len do output : 1 /22434112. 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, '2762647') ('4302', '22434112', '1353723126', None, None, None, None, None, '2762647') ('4302', None, None, None, None, None, None, None, '2762647') ('4302', '22434112', '1353723021', None, None, None, None, None, '2762647') ('4302', None, None, None, None, None, None, None, '2762647') ('4302', '22434112', '1353722941', None, None, None, None, None, '2762647') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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, '22434112', "{'cartonnette': 22434151, 'mal_croppe': 22434152, 'Teint_Dans_La_Masse': 22434153, 'flou': 22434154, 'papier': 22434155, 'autre_refus': 22434156, 'metal': 22434157, 'Carton_gris': 22434158, 'kraft': 22434159, 'Carton_brun': 22434160, 'plastique': 22434161, 'environnement': 22434162}", None, None, None, None, '2762647'), ('4302', '22434112', '1353723126', None, None, None, None, None, '2762647'), ('4302', '22434112', '1353723021', None, None, None, None, None, '2762647'), ('4302', '22434112', '1353722941', None, None, None, None, None, '2762647')] time used for this insertion : 0.011733531951904297 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.479053258895874 time spend to save output : 0.011977434158325195 total time spend for step 1 : 0.4910306930541992 step2:final Fri Apr 25 14:14: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 (22434112) 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 22434112 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353714836,1353714784,1353714738,1353716338,1353716296,1353716238,1353716180,1353716051,1353715961,1353717132,1353717073,1353717011,1353716944,1353717827,1353717793,1353717984,1353718362,1353718360,1353718357,1353718345,1353718317,1353718511,1353718288,1353718509,1353718506,1353718504,1353718501,1353718493,1353718621,1353718586,1353718560,1353719700,1353719571,1353719545,1353719519,1353720623,1353720569,1353720494,1353720380,1353721506,1353721478,1353721448,1353721403,1353721351,1353722217,1353722123,1353721991,1353721858,1353723126,1353723021,1353722941); 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([22434112]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353723126: ('0.05651438531821849',), 1353723021: ('0.05651438531821849',), 1353722941: ('0.05651438531821849',)} new output for save of step final : {1353723126: ('0.05651438531821849',), 1353723021: ('0.05651438531821849',), 1353722941: ('0.05651438531821849',)} [1353723126, 1353723021, 1353722941] map_info['map_portfolio_photo'] : {22434112: [1353723126, 1353723021, 1353722941, 1353722217, 1353722123, 1353721991, 1353721858, 1353721506, 1353721478, 1353721448, 1353721403, 1353721351, 1353720623, 1353720569, 1353720494, 1353720380, 1353719700, 1353719571, 1353719545, 1353719519, 1353718621, 1353718586, 1353718560, 1353718511, 1353718509, 1353718506, 1353718504, 1353718501, 1353718493, 1353718362, 1353718360, 1353718357, 1353718345, 1353718317, 1353718288, 1353717984, 1353717827, 1353717793, 1353717132, 1353717073, 1353717011, 1353716944, 1353716338, 1353716296, 1353716238, 1353716180, 1353716051, 1353715961, 1353714836, 1353714784, 1353714738]} final : False mtd_id 4302 list_pids : [1353723126, 1353723021, 1353722941] Looping around the photos to save general results len do output : 3 /1353723126.Didn't retrieve data . /1353723021.Didn't retrieve data . /1353722941.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, '2762647') ('4302', '22434112', '1353723126', None, None, None, None, None, '2762647') ('4302', None, None, None, None, None, None, None, '2762647') ('4302', '22434112', '1353723021', None, None, None, None, None, '2762647') ('4302', None, None, None, None, None, None, None, '2762647') ('4302', '22434112', '1353722941', None, None, None, None, None, '2762647') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22434112', '1353723126', '0.05651438531821849', None, None, None, None, '2762647'), ('4302', '22434112', '1353723021', '0.05651438531821849', None, None, None, None, '2762647'), ('4302', '22434112', '1353722941', '0.05651438531821849', None, None, None, None, '2762647')] time used for this insertion : 0.012649059295654297 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06604456901550293 time spend to save output : 0.012912511825561523 total time spend for step 2 : 0.07895708084106445 step3:velours_tree Fri Apr 25 14:14: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 : {22434112: [{'cartonnette': 22434151, 'mal_croppe': 22434152, 'Teint_Dans_La_Masse': 22434153, 'flou': 22434154, 'papier': 22434155, 'autre_refus': 22434156, 'metal': 22434157, 'Carton_gris': 22434158, 'kraft': 22434159, 'Carton_brun': 22434160, 'plastique': 22434161, 'environnement': 22434162}]} input_args_next_step : {22434112: ()} output_args : {22434112: [{'cartonnette': 22434151, 'mal_croppe': 22434152, 'Teint_Dans_La_Masse': 22434153, 'flou': 22434154, 'papier': 22434155, 'autre_refus': 22434156, 'metal': 22434157, 'Carton_gris': 22434158, 'kraft': 22434159, 'Carton_brun': 22434160, 'plastique': 22434161, 'environnement': 22434162}]} args : 22434112 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'cartonnette': 22434151, 'mal_croppe': 22434152, 'Teint_Dans_La_Masse': 22434153, 'flou': 22434154, 'papier': 22434155, 'autre_refus': 22434156, 'metal': 22434157, 'Carton_gris': 22434158, 'kraft': 22434159, 'Carton_brun': 22434160, 'plastique': 22434161, 'environnement': 22434162},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22434112) 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([22434112]) 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.2762906551361084 time spend to save output : 4.124641418457031e-05 total time spend for step 3 : 0.27633190155029297 step4:send_mail_cod Fri Apr 25 14:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1353723126: ('0.05651438531821849',), 1353723021: ('0.05651438531821849',), 1353722941: ('0.05651438531821849',)} input_args_next_step : {1353723126: ()} output_args : {1353723126: ('0.05651438531821849',), 1353723021: ('0.05651438531821849',), 1353722941: ('0.05651438531821849',)} args : 1353723126 depend.output_id : 0 input_args_next_step : {1353723126: ('0.05651438531821849',), 1353723021: ()} output_args : {1353723126: ('0.05651438531821849',), 1353723021: ('0.05651438531821849',), 1353722941: ('0.05651438531821849',)} args : 1353723021 depend.output_id : 0 input_args_next_step : {1353723126: ('0.05651438531821849',), 1353723021: ('0.05651438531821849',), 1353722941: ()} output_args : {1353723126: ('0.05651438531821849',), 1353723021: ('0.05651438531821849',), 1353722941: ('0.05651438531821849',)} args : 1353722941 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 : {22434112: [{'cartonnette': 22434151, 'mal_croppe': 22434152, 'Teint_Dans_La_Masse': 22434153, 'flou': 22434154, 'papier': 22434155, 'autre_refus': 22434156, 'metal': 22434157, 'Carton_gris': 22434158, 'kraft': 22434159, 'Carton_brun': 22434160, 'plastique': 22434161, 'environnement': 22434162}]} input_args_next_step : {1353723126: ('0.05651438531821849',), 1353723021: ('0.05651438531821849',), 1353722941: ('0.05651438531821849',), 22434112: ()} output_args : {22434112: [{'cartonnette': 22434151, 'mal_croppe': 22434152, 'Teint_Dans_La_Masse': 22434153, 'flou': 22434154, 'papier': 22434155, 'autre_refus': 22434156, 'metal': 22434157, 'Carton_gris': 22434158, 'kraft': 22434159, 'Carton_brun': 22434160, 'plastique': 22434161, 'environnement': 22434162}]} args : 22434112 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 :4, first value : ('0.05651438531821849',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22434112) 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 (1353723126,1353723021,1353722941) Found this number of photos: 3 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353722941 begin to download photo : 1353723021 begin to download photo : 1353723126 download finish for photo 1353723126 download finish for photo 1353723021 download finish for photo 1353722941 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 : 3 ; length of list_pids : 3 ; length of list_args : 3 results_Auto_P22434112_25-04-2025_14_14_59.pdf 22434151 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=22434151 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353718212: '1745582712_1998347_1353717073_8ac3d8bbbbefda81570fe866e662ebbc_rle_crop_3769779907_0.png', 1353718463: '1745582772_1999133_1353717132_969c9aa4d6913469da1bd87dd78f746f_rle_crop_3769794317_0.png', 1353718464: '1745582772_1999133_1353716051_d08487f6bc2dac145e28eef2cdad8689_rle_crop_3769796789_0.png', 1353719455: '1745582892_2000548_1353717132_969c9aa4d6913469da1bd87dd78f746f_rle_crop_3769794317_0.png', 1353719456: '1745582892_2000548_1353716051_d08487f6bc2dac145e28eef2cdad8689_rle_crop_3769796789_0.png', 1353720064: '1745582952_2001454_1353716338_69b7ef51add10e67e722dd1795fc87c1_rle_crop_3769805651_0.png', 1353720065: '1745582952_2001454_1353714738_a646427202811644f4e370434aa76c52_rle_crop_3769805674_0.png', 1353722585: '1745583133_2004145_1353719571_abbf0b9d2c906bed84f386cbcd6a8252_rle_crop_3769815514_0.png', 1353722586: '1745583133_2004145_1353719545_51316dcc7a9a2d689c20ae9d16292725_rle_crop_3769815526_0.png', 1353723793: '1745583191_2004961_1353722123_62caacf01f80a18e2deca2379777e42a_rle_crop_3769815648_0.png', 1353724813: '1745583251_2005628_1353721478_3afa8ac308822f594ab48156c7ccdd10_rle_crop_3769815810_0.png', 1353724814: '1745583251_2005628_1353721448_616541ae21577ce54c67840d7abddfce_rle_crop_3769816326_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/09c437902cefcc342639c528308bba30_67284234.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/9918aed8fd48da4fda9a744943f6aa14_24956221.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/cb0a4ea4dc19a1676be7dcdd840abe98_4065375.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/9918aed8fd48da4fda9a744943f6aa14_5330325.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/cb0a4ea4dc19a1676be7dcdd840abe98_81212425.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/cbc31b4e6ce99b0bb47bd393ad35021a_17094817.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/8b0a9489019c37a5c999cedea4de6be7_17020317.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/0d5496c64037ea3a832c34eeb032f409_15407059.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/99b007d7e78bc85b47c5fa8c30d1387f_90947491.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/c085c0cfec1d00555d5d1647341fc043_58387566.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/dfdc6d5549f7af321127062fa5556148_9525062.png change filename to text .imagette224341511745583299/ imagette224341511745583299/1745583251_2005628_1353721478_3afa8ac308822f594ab48156c7ccdd10_rle_crop_3769815810_0.png.png imagette224341511745583299/1745583133_2004145_1353719545_51316dcc7a9a2d689c20ae9d16292725_rle_crop_3769815526_0.png.png imagette224341511745583299/1745583251_2005628_1353721448_616541ae21577ce54c67840d7abddfce_rle_crop_3769816326_0.png.png imagette224341511745583299/1745582892_2000548_1353717132_969c9aa4d6913469da1bd87dd78f746f_rle_crop_3769794317_0.png.png imagette224341511745583299/1745582892_2000548_1353716051_d08487f6bc2dac145e28eef2cdad8689_rle_crop_3769796789_0.png.png imagette224341511745583299/1745583133_2004145_1353719571_abbf0b9d2c906bed84f386cbcd6a8252_rle_crop_3769815514_0.png.png imagette224341511745583299/1745582952_2001454_1353716338_69b7ef51add10e67e722dd1795fc87c1_rle_crop_3769805651_0.png.png imagette224341511745583299/1745582772_1999133_1353717132_969c9aa4d6913469da1bd87dd78f746f_rle_crop_3769794317_0.png.png imagette224341511745583299/1745583191_2004961_1353722123_62caacf01f80a18e2deca2379777e42a_rle_crop_3769815648_0.png.png imagette224341511745583299/1745582772_1999133_1353716051_d08487f6bc2dac145e28eef2cdad8689_rle_crop_3769796789_0.png.png imagette224341511745583299/1745582952_2001454_1353714738_a646427202811644f4e370434aa76c52_rle_crop_3769805674_0.png.png imagette224341511745583299/1745582712_1998347_1353717073_8ac3d8bbbbefda81570fe866e662ebbc_rle_crop_3769779907_0.png.png imagette224341521745583300/ imagette224341541745583300/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/6ee02bc4851d73e80f66a490fa903627_87392665.png imagette224341511745583299 22434152 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=22434152 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224341521745583300 22434154 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=22434154 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224341541745583300 22434156 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=22434156 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353718207: '1745582712_1998347_1353717011_dbdedbc47a540692833d7c4c1193844b_rle_crop_3769779919_0.png', 1353718440: '1745582772_1999133_1353716238_3c011488b84f49df2c74b9d2f8e2c7cd_rle_crop_3769796228_0.png', 1353718441: '1745582772_1999133_1353716180_76323870f01ecc769c73431cdc03a117_rle_crop_3769796503_0.png', 1353719385: '1745582892_2000548_1353716238_3c011488b84f49df2c74b9d2f8e2c7cd_rle_crop_3769796228_0.png', 1353719387: '1745582892_2000548_1353716180_76323870f01ecc769c73431cdc03a117_rle_crop_3769796503_0.png', 1353722569: '1745583133_2004145_1353719571_abbf0b9d2c906bed84f386cbcd6a8252_rle_crop_3769815512_0.png', 1353723765: '1745583191_2004961_1353721858_bfa20e8fe3ea8949a27e29ed3452f501_rle_crop_3769815674_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/f31939c6efbf8533f24c64f98e330327_49904971.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/0c743532c0f5cf0e94df71a34fff5261_80405647.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/bf186eb27475988efc6812a9c0513079_41511550.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/0c743532c0f5cf0e94df71a34fff5261_68163265.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/bf186eb27475988efc6812a9c0513079_83916316.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/253764f76ae9546a766f4f3f35dea6b0_14188271.png change filename to text .imagette224341561745583300/ imagette224341561745583300/1745582712_1998347_1353717011_dbdedbc47a540692833d7c4c1193844b_rle_crop_3769779919_0.png.png imagette224341561745583300/1745583133_2004145_1353719571_abbf0b9d2c906bed84f386cbcd6a8252_rle_crop_3769815512_0.png.png imagette224341561745583300/1745582772_1999133_1353716180_76323870f01ecc769c73431cdc03a117_rle_crop_3769796503_0.png.png imagette224341561745583300/1745582892_2000548_1353716180_76323870f01ecc769c73431cdc03a117_rle_crop_3769796503_0.png.png imagette224341561745583300/1745583191_2004961_1353721858_bfa20e8fe3ea8949a27e29ed3452f501_rle_crop_3769815674_0.png.png imagette224341561745583300/1745582772_1999133_1353716238_3c011488b84f49df2c74b9d2f8e2c7cd_rle_crop_3769796228_0.png.png imagette224341561745583300/1745582892_2000548_1353716238_3c011488b84f49df2c74b9d2f8e2c7cd_rle_crop_3769796228_0.png.png imagette224341571745583300/ imagette224341591745583300/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/f9ff3f213d1f7a40b6f645d40d148623_69317962.png imagette224341561745583300 22434157 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=22434157 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224341571745583300 22434159 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=22434159 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224341591745583300 22434161 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=22434161 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353721587: '1745583073_2003201_1353720494_d3a9659c50f5f197db525100baba5b36_rle_crop_3769811022_0.png', 1353723846: '1745583191_2004961_1353722123_62caacf01f80a18e2deca2379777e42a_rle_crop_3769815649_0.png', 1353723847: '1745583191_2004961_1353721991_8d74114fe7bf185c777432a0a50b8bd0_rle_crop_3769815664_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/df14fe07fa11b8d0e1b34af312f44d82_79571145.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/2542435526808d38671e3e2285925c1f_17891918.png change filename to text .imagette224341611745583300/ imagette224341611745583300/1745583191_2004961_1353722123_62caacf01f80a18e2deca2379777e42a_rle_crop_3769815649_0.png.png imagette224341611745583300/1745583073_2003201_1353720494_d3a9659c50f5f197db525100baba5b36_rle_crop_3769811022_0.png.png imagette224341611745583300/1745583191_2004961_1353721991_8d74114fe7bf185c777432a0a50b8bd0_rle_crop_3769815664_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/27b3eba2a7ca4ecabf3255bce64494f9_84987810.png imagette224341611745583300 22434153 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=22434153 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353718205: '1745582712_1998347_1353717827_d854ac527b6c61490e45dd8cf53fdd1c_rle_crop_3769779894_0.png', 1353721581: '1745583073_2003201_1353720380_62dcf5b119399c6139f4ceec62791ba3_rle_crop_3769811029_0.png', 1353722563: '1745583133_2004145_1353719571_abbf0b9d2c906bed84f386cbcd6a8252_rle_crop_3769815517_0.png', 1353722564: '1745583133_2004145_1353719545_51316dcc7a9a2d689c20ae9d16292725_rle_crop_3769815527_0.png', 1353724795: '1745583251_2005628_1353721448_616541ae21577ce54c67840d7abddfce_rle_crop_3769816324_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/e2329136a2cf0b8852761ca3ce7a0c4d_12493595.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/991b6a9c33d7962285d573f5f8c67c8c_93711907.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/e391d94d4afa0e71e2c4fc89574ea24f_34044331.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/02a9c9079867465497def9382d9e8b41_31239957.png change filename to text .imagette224341531745583301/ imagette224341531745583301/1745583073_2003201_1353720380_62dcf5b119399c6139f4ceec62791ba3_rle_crop_3769811029_0.png.png imagette224341531745583301/1745583133_2004145_1353719571_abbf0b9d2c906bed84f386cbcd6a8252_rle_crop_3769815517_0.png.png imagette224341531745583301/1745583251_2005628_1353721448_616541ae21577ce54c67840d7abddfce_rle_crop_3769816324_0.png.png imagette224341531745583301/1745582712_1998347_1353717827_d854ac527b6c61490e45dd8cf53fdd1c_rle_crop_3769779894_0.png.png imagette224341531745583301/1745583133_2004145_1353719545_51316dcc7a9a2d689c20ae9d16292725_rle_crop_3769815527_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/7ab7cc141477441e6c76e327fed82089_67920896.png imagette224341531745583301 22434158 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=22434158 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353718208: '1745582712_1998347_1353717073_8ac3d8bbbbefda81570fe866e662ebbc_rle_crop_3769779911_0.png', 1353718209: '1745582712_1998347_1353717011_dbdedbc47a540692833d7c4c1193844b_rle_crop_3769779921_0.png', 1353718210: '1745582712_1998347_1353716944_99ea51e8ba49bebcb79d160cc657463f_rle_crop_3769779937_0.png', 1353718452: '1745582772_1999133_1353716180_76323870f01ecc769c73431cdc03a117_rle_crop_3769796502_0.png', 1353718453: '1745582772_1999133_1353715961_16a314eec78bb4ab2c0aa09303490416_rle_crop_3769796802_0.png', 1353718454: '1745582772_1999133_1353715961_16a314eec78bb4ab2c0aa09303490416_rle_crop_3769796798_0.png', 1353719446: '1745582892_2000548_1353716180_76323870f01ecc769c73431cdc03a117_rle_crop_3769796502_0.png', 1353719447: '1745582892_2000548_1353715961_16a314eec78bb4ab2c0aa09303490416_rle_crop_3769796802_0.png', 1353719448: '1745582892_2000548_1353715961_16a314eec78bb4ab2c0aa09303490416_rle_crop_3769796798_0.png', 1353722576: '1745583133_2004145_1353719571_abbf0b9d2c906bed84f386cbcd6a8252_rle_crop_3769815522_0.png', 1353722577: '1745583133_2004145_1353719545_51316dcc7a9a2d689c20ae9d16292725_rle_crop_3769815531_0.png', 1353723780: '1745583191_2004961_1353722123_62caacf01f80a18e2deca2379777e42a_rle_crop_3769815642_0.png', 1353723781: '1745583191_2004961_1353721991_8d74114fe7bf185c777432a0a50b8bd0_rle_crop_3769815663_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/5b4483eef2a21f40bf39f7f536b604d7_33577921.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/8a245b70b1ab5ebe0782e3b146dee2c2_17656977.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/131491a6f8fde1ceefad826e78bb214f_12850496.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/de018a7a8c33736defff167417c0b927_34894640.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/fa867780494ec5bcbef843bd90973a43_76711520.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/7b02fe9a75e5eb1b1ef8928ef2073284_55147850.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/de018a7a8c33736defff167417c0b927_94412191.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/fa867780494ec5bcbef843bd90973a43_76255622.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/7b02fe9a75e5eb1b1ef8928ef2073284_7721272.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/c185184e3fe5d9eb7f55d7798aa89471_22151821.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/4c541a82f31c7fad30429c641dd763a8_39146996.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/481ad6a75ce6a905d8428c7f40414d1c_75296825.png change filename to text .imagette224341581745583301/ imagette224341581745583301/1745583191_2004961_1353722123_62caacf01f80a18e2deca2379777e42a_rle_crop_3769815642_0.png.png imagette224341581745583301/1745582772_1999133_1353716180_76323870f01ecc769c73431cdc03a117_rle_crop_3769796502_0.png.png imagette224341581745583301/1745583133_2004145_1353719571_abbf0b9d2c906bed84f386cbcd6a8252_rle_crop_3769815522_0.png.png imagette224341581745583301/1745582772_1999133_1353715961_16a314eec78bb4ab2c0aa09303490416_rle_crop_3769796802_0.png.png imagette224341581745583301/1745582892_2000548_1353716180_76323870f01ecc769c73431cdc03a117_rle_crop_3769796502_0.png.png imagette224341581745583301/1745583191_2004961_1353721991_8d74114fe7bf185c777432a0a50b8bd0_rle_crop_3769815663_0.png.png imagette224341581745583301/1745582712_1998347_1353717073_8ac3d8bbbbefda81570fe866e662ebbc_rle_crop_3769779911_0.png.png imagette224341581745583301/1745582892_2000548_1353715961_16a314eec78bb4ab2c0aa09303490416_rle_crop_3769796798_0.png.png imagette224341581745583301/1745582892_2000548_1353715961_16a314eec78bb4ab2c0aa09303490416_rle_crop_3769796802_0.png.png imagette224341581745583301/1745583133_2004145_1353719545_51316dcc7a9a2d689c20ae9d16292725_rle_crop_3769815531_0.png.png imagette224341581745583301/1745582772_1999133_1353715961_16a314eec78bb4ab2c0aa09303490416_rle_crop_3769796798_0.png.png imagette224341581745583301/1745582712_1998347_1353716944_99ea51e8ba49bebcb79d160cc657463f_rle_crop_3769779937_0.png.png imagette224341581745583301/1745582712_1998347_1353717011_dbdedbc47a540692833d7c4c1193844b_rle_crop_3769779921_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/d20f19ad4522f26018db1938e8f835f9_56099652.png imagette224341581745583301 22434160 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=22434160 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353722593: '1745583133_2004145_1353719571_abbf0b9d2c906bed84f386cbcd6a8252_rle_crop_3769815518_0.png', 1353724843: '1745583251_2005628_1353721448_616541ae21577ce54c67840d7abddfce_rle_crop_3769816323_0.png', 1353724841: '1745583251_2005628_1353721478_3afa8ac308822f594ab48156c7ccdd10_rle_crop_3769815809_0.png', 1353724840: '1745583251_2005628_1353721478_3afa8ac308822f594ab48156c7ccdd10_rle_crop_3769815807_0.png', 1353723826: '1745583191_2004961_1353721858_bfa20e8fe3ea8949a27e29ed3452f501_rle_crop_3769815678_0.png', 1353723825: '1745583191_2004961_1353721991_8d74114fe7bf185c777432a0a50b8bd0_rle_crop_3769815662_0.png', 1353723824: '1745583191_2004961_1353721991_8d74114fe7bf185c777432a0a50b8bd0_rle_crop_3769815661_0.png', 1353723823: '1745583191_2004961_1353722123_62caacf01f80a18e2deca2379777e42a_rle_crop_3769815644_0.png', 1353723822: '1745583191_2004961_1353722123_62caacf01f80a18e2deca2379777e42a_rle_crop_3769815645_0.png', 1353723821: '1745583191_2004961_1353722123_62caacf01f80a18e2deca2379777e42a_rle_crop_3769815641_0.png', 1353718214: '1745582712_1998347_1353717011_dbdedbc47a540692833d7c4c1193844b_rle_crop_3769779926_0.png', 1353721585: '1745583073_2003201_1353720380_62dcf5b119399c6139f4ceec62791ba3_rle_crop_3769811032_0.png', 1353721584: '1745583073_2003201_1353720494_d3a9659c50f5f197db525100baba5b36_rle_crop_3769811021_0.png', 1353721583: '1745583073_2003201_1353720569_8094fdf77ced4a53ee60135f765f2084_rle_crop_3769811014_0.png', 1353719463: '1745582892_2000548_1353717132_969c9aa4d6913469da1bd87dd78f746f_rle_crop_3769794320_0.png', 1353718470: '1745582772_1999133_1353717132_969c9aa4d6913469da1bd87dd78f746f_rle_crop_3769794320_0.png', 1353718217: '1745582712_1998347_1353716944_99ea51e8ba49bebcb79d160cc657463f_rle_crop_3769779939_0.png', 1353718216: '1745582712_1998347_1353717011_dbdedbc47a540692833d7c4c1193844b_rle_crop_3769779923_0.png', 1353718215: '1745582712_1998347_1353717011_dbdedbc47a540692833d7c4c1193844b_rle_crop_3769779924_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/811bcd7a8856d930a1594487e4eaa42f_38467123.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/ccbdebcff2eaa7370a04ff7558a5f2f1_96922112.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/6509fc14825ec4c160ab00606a85d02f_24218060.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/d02b01c26620ce755450296e8944de10_35487492.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/40067ecdb89de753baa7dbf07f426675_32436780.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/88ac4722f203f35ca44a9519a1e2c8f1_64713395.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/a76970030221eb9be3396d5f2244148a_729032.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/acbd62deaeddf7a2c089bcef5c716daa_63674362.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/39f7bf90d0c30c0357ec1df6a15b7e9b_37025547.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/37c6fbc145aad350561b5d88823f9dad_58351108.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/e49385766f7266e2511708e19f8cdab1_75459716.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/1e65a2072aecc40958432126e4bb8456_43318112.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/e5e0811d46ca560d615db18be556168c_68472242.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/95e1583661b4a954c92f58768c1655ef_23164455.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/0bb0f62e5f3f30441992d5ef303bbe2d_10287090.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/0bb0f62e5f3f30441992d5ef303bbe2d_17122921.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/5f7a319af0cb7487cbcc4e2e76b57754_27071873.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/45651ee7bd472b30ee864c79dd6db61b_62951816.png change filename to text .imagette224341601745583302/ imagette224341601745583302/1745583191_2004961_1353721991_8d74114fe7bf185c777432a0a50b8bd0_rle_crop_3769815661_0.png.png imagette224341601745583302/1745583133_2004145_1353719571_abbf0b9d2c906bed84f386cbcd6a8252_rle_crop_3769815518_0.png.png imagette224341601745583302/1745582772_1999133_1353717132_969c9aa4d6913469da1bd87dd78f746f_rle_crop_3769794320_0.png.png imagette224341601745583302/1745583191_2004961_1353722123_62caacf01f80a18e2deca2379777e42a_rle_crop_3769815641_0.png.png imagette224341601745583302/1745583251_2005628_1353721448_616541ae21577ce54c67840d7abddfce_rle_crop_3769816323_0.png.png imagette224341601745583302/1745583073_2003201_1353720569_8094fdf77ced4a53ee60135f765f2084_rle_crop_3769811014_0.png.png imagette224341601745583302/1745583191_2004961_1353721858_bfa20e8fe3ea8949a27e29ed3452f501_rle_crop_3769815678_0.png.png imagette224341601745583302/1745583073_2003201_1353720380_62dcf5b119399c6139f4ceec62791ba3_rle_crop_3769811032_0.png.png imagette224341601745583302/1745583251_2005628_1353721478_3afa8ac308822f594ab48156c7ccdd10_rle_crop_3769815809_0.png.png imagette224341601745583302/1745583191_2004961_1353722123_62caacf01f80a18e2deca2379777e42a_rle_crop_3769815644_0.png.png imagette224341601745583302/1745583191_2004961_1353721991_8d74114fe7bf185c777432a0a50b8bd0_rle_crop_3769815662_0.png.png imagette224341601745583302/1745582712_1998347_1353717011_dbdedbc47a540692833d7c4c1193844b_rle_crop_3769779923_0.png.png imagette224341601745583302/1745583073_2003201_1353720494_d3a9659c50f5f197db525100baba5b36_rle_crop_3769811021_0.png.png imagette224341601745583302/1745583251_2005628_1353721478_3afa8ac308822f594ab48156c7ccdd10_rle_crop_3769815807_0.png.png imagette224341601745583302/1745582712_1998347_1353717011_dbdedbc47a540692833d7c4c1193844b_rle_crop_3769779926_0.png.png imagette224341601745583302/1745583191_2004961_1353722123_62caacf01f80a18e2deca2379777e42a_rle_crop_3769815645_0.png.png imagette224341601745583302/1745582892_2000548_1353717132_969c9aa4d6913469da1bd87dd78f746f_rle_crop_3769794320_0.png.png imagette224341601745583302/1745582712_1998347_1353717011_dbdedbc47a540692833d7c4c1193844b_rle_crop_3769779924_0.png.png imagette224341601745583302/1745582712_1998347_1353716944_99ea51e8ba49bebcb79d160cc657463f_rle_crop_3769779939_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/4faa0e4f6ac5fa9afb5f972d9610c651_94454030.png imagette224341601745583302 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22434112 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22434163,22434164,22434165,22434166,22434167,22434168,22434169,22434170,22434171,22434172,22434173,22434174?tags=cartonnette,mal_croppe,Teint_Dans_La_Masse,flou,papier,autre_refus,metal,Carton_gris,kraft,Carton_brun,plastique,environnement your option no_mail is active, we will not send the real mail to your client args[1353723126] : ('0.05651438531821849',) no score found for photo 1353723126 We are sending mail with results at report@fotonower.com args[1353723021] : ('0.05651438531821849',) no score found for photo 1353723021 We are sending mail with results at report@fotonower.com args[1353722941] : ('0.05651438531821849',) no score found for photo 1353722941 We are sending mail with results at report@fotonower.com refus_total : 0.05651438531821849 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=22434112 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_P22434112_25-04-2025_14_14_59.pdf results_Auto_P22434112_25-04-2025_14_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22434112_25-04-2025_14_14_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22434112','results_Auto_P22434112_25-04-2025_14_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22434112_25-04-2025_14_14_59.pdf','pdf','','0.17','0.05651438531821849') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22434112]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353723126, 1353723021, 1353722941] map_info['map_portfolio_photo'] : {22434112: [1353723126, 1353723021, 1353722941, 1353722217, 1353722123, 1353721991, 1353721858, 1353721506, 1353721478, 1353721448, 1353721403, 1353721351, 1353720623, 1353720569, 1353720494, 1353720380, 1353719700, 1353719571, 1353719545, 1353719519, 1353718621, 1353718586, 1353718560, 1353718511, 1353718509, 1353718506, 1353718504, 1353718501, 1353718493, 1353718362, 1353718360, 1353718357, 1353718345, 1353718317, 1353718288, 1353717984, 1353717827, 1353717793, 1353717132, 1353717073, 1353717011, 1353716944, 1353716338, 1353716296, 1353716238, 1353716180, 1353716051, 1353715961, 1353714836, 1353714784, 1353714738]} final : False mtd_id 4302 list_pids : [1353723126, 1353723021, 1353722941] 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, '2762647') ('4302', '22434112', '1353723126', None, None, None, None, None, '2762647') ('4302', None, None, None, None, None, None, None, '2762647') ('4302', '22434112', '1353723021', None, None, None, None, None, '2762647') ('4302', None, None, None, None, None, None, None, '2762647') ('4302', '22434112', '1353722941', None, None, None, None, None, '2762647') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '22434112', '1353723126', None, None, None, None, None, '2762647'), ('4302', '22434112', '1353723021', None, None, None, None, None, '2762647'), ('4302', '22434112', '1353722941', None, None, None, None, None, '2762647')] time used for this insertion : 0.012899398803710938 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.5440452098846436 time spend to save output : 0.013123512268066406 total time spend for step 4 : 4.55716872215271 step5:split_time_score Fri Apr 25 14:15: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 : ['22434112'] 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 : [('22434112',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22434112) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353723126: {'path': 'temp/1745583299_1658764_1353723126_b0f1b44dba7b167333d8ed33ac4fbd1d.jpg', 'extension': 'jpg'}, 1353723021: {'path': 'temp/1745583299_1658764_1353723021_f37417583f5df4a9b0d9b3c518ea659c.jpg', 'extension': 'jpg'}, 1353722941: {'path': 'temp/1745583299_1658764_1353722941_f539f99fa7e9e7d9cc0b386860f87a1f.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 = 22434112; (('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 = 22434112 group by h (('14', 51),) 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=22434112 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 (22434112) 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 (22434112) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25042025 22434112 Nombre de photos uploadées : 51 / 23040 (0%) 25042025 22434112 Nombre de photos taguées (types de déchets): 0 / 51 (0%) 25042025 22434112 Nombre de photos taguées (volume) : 0 / 51 (0%) [{'photo_id': 1353714836, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/ca76973c7d39383fc500db4cf772b06f.jpg', 'username': None, 'uploaded_at': 1745582467, 'text': 'image_25042025_14_00_04_010145m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353714784, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/f7c252945a69ab57130636535280aa11.jpg', 'username': None, 'uploaded_at': 1745582467, 'text': 'image_25042025_14_00_23_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353714738, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/a646427202811644f4e370434aa76c52.jpg', 'username': None, 'uploaded_at': 1745582467, 'text': 'image_25042025_14_00_33_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353716338, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/69b7ef51add10e67e722dd1795fc87c1.jpg', 'username': None, 'uploaded_at': 1745582527, 'text': 'image_25042025_14_00_53_010137m0.jpg 4e-05 for time 1, id_amount 1 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 4.76837158203125e-06 ??????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0022287368774414062 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22434112, '2025-04-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1747621,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024642229080200195 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= 1747621 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757133, 'mtr_portfolio_id': 22433194, 'dashboard_result_id': 10104661, '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_P22433194_25-04-2025_13_51_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22433198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22433199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22433200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22433201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22433202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22433203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22433204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22433205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22433206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22433207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22433208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22433209, 'pht': 3726}}"}, {'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757133, 'mtr_portfolio_id': 22433530, 'dashboard_result_id': 10104662, '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_P22433530_25-04-2025_14_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22433533, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22433534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22433535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22433536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22433537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22433538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22433539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22433540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22433541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22433542, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22433543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22433544, 'pht': 3726}}"}, {'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757133, 'mtr_portfolio_id': 22434112, 'dashboard_result_id': 10104663, '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_P22434112_25-04-2025_14_12_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22434151, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22434152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22434153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22434154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22434155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22434156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22434157, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22434158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22434159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22434160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22434161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22434162, '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 = 22433194 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': 2762554, 'mtr_portfolio_id': 22433194, 'created_at': datetime.datetime(2025, 4, 25, 13, 51), 'result': '0.05396145005466229', 'result_long': None, 'result_double': None}] Qualite : 0.05396145005466229 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22433194 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22433194_25-04-2025_13_51_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22433194 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_P22433194_25-04-2025_13_51_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22433198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22433199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22433200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22433201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22433202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22433203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22433204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22433205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22433206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22433207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22433208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22433209, 'pht': 3726}}" where mtr_portfolio_id = 22433194 and dashboard_run_id = 1757133 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`=22433194 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10104661, 0.05396145005466229, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22433194_25-04-2025_13_51_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22433198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22433199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22433200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22433201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22433202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22433203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22433204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22433205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22433206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22433207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22433208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22433209, '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 = 22433530 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': 2762574, 'mtr_portfolio_id': 22433530, 'created_at': datetime.datetime(2025, 4, 25, 14, 2, 59), 'result': '0.08192080694118249', 'result_long': None, 'result_double': None}] Qualite : 0.08192080694118249 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22433530 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22433530_25-04-2025_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22433530 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_P22433530_25-04-2025_14_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22433533, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22433534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22433535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22433536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22433537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22433538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22433539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22433540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22433541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22433542, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22433543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22433544, 'pht': 3726}}" where mtr_portfolio_id = 22433530 and dashboard_run_id = 1757133 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`=22433530 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10104662, 0.08192080694118249, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22433530_25-04-2025_14_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22433533, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22433534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22433535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22433536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22433537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22433538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22433539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22433540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22433541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22433542, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22433543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22433544, '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 = 22434112 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': 2762647, 'mtr_portfolio_id': 22434112, 'created_at': datetime.datetime(2025, 4, 25, 14, 14, 59), 'result': '0.05651438531821849', 'result_long': None, 'result_double': None}] Qualite : 0.05651438531821849 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22434112 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22434112_25-04-2025_14_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22434112 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_P22434112_25-04-2025_14_14_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22434151, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22434152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22434153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22434154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22434155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22434156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22434157, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22434158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22434159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22434160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22434161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22434162, 'pht': 3726}}" where mtr_portfolio_id = 22434112 and dashboard_run_id = 1757133 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`=22434112 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10104663, 0.05651438531821849, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22434112_25-04-2025_14_14_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22434151, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22434152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22434153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22434154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22434155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22434156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22434157, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22434158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22434159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22434160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22434161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22434162, '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 (22433194,22433530,22434112) result : ((1353703551,), (1353704012,), (1353704013,), (1353704197,), (1353704201,), (1353704202,), (1353704512,), (1353704544,), (1353704547,), (1353704577,), (1353705361,), (1353705414,), (1353705489,), (1353705564,), (1353705656,), (1353706267,), (1353706301,), (1353706327,), (1353706663,), (1353706688,), (1353706717,), (1353706741,), (1353706755,), (1353708520,), (1353708020,), (1353708383,), (1353708444,), (1353708471,), (1353708495,), (1353708867,), (1353708870,), (1353708875,), (1353708898,), (1353709115,), (1353709138,), (1353709148,), (1353709294,), (1353709325,), (1353709353,), (1353709383,), (1353709435,), (1353709868,), (1353709911,), (1353709943,), (1353710356,), (1353710382,), (1353710411,), (1353710438,), (1353710470,), (1353710495,), (1353710957,), (1353710959,), (1353710961,), (1353710963,), (1353711204,), (1353711236,), (1353711263,), (1353711292,), (1353711330,), (1353711710,), (1353711813,), (1353711839,), (1353711869,), (1353711898,), (1353711928,), (1353712384,), (1353712458,), (1353712512,), (1353712562,), (1353712614,), (1353713734,), (1353713815,), (1353713881,), (1353714190,), (1353714885,), (1353714738,), (1353714784,), (1353714836,), (1353715961,), (1353716051,), (1353716180,), (1353716238,), (1353716296,), (1353716338,), (1353716944,), (1353717011,), (1353717073,), (1353717132,), (1353717793,), (1353717827,), (1353717984,), (1353718288,), (1353718317,), (1353718345,), (1353718357,), (1353718360,), (1353718362,), (1353718493,), (1353718501,), (1353718504,), (1353718506,), (1353718509,), (1353718511,), (1353718560,), (1353718586,), (1353718621,), (1353719519,), (1353719545,), (1353719571,), (1353719700,), (1353720380,), (1353720494,), (1353720569,), (1353720623,), (1353721351,), (1353721403,), (1353721448,), (1353721478,), (1353721506,), (1353721858,), (1353721991,), (1353722123,), (1353722217,), (1353722941,), (1353723021,), (1353723126,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25042025': {'nb_upload': 51, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22434112]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353723126, 1353723021, 1353722941] map_info['map_portfolio_photo'] : {22434112: [1353723126, 1353723021, 1353722941, 1353722217, 1353722123, 1353721991, 1353721858, 1353721506, 1353721478, 1353721448, 1353721403, 1353721351, 1353720623, 1353720569, 1353720494, 1353720380, 1353719700, 1353719571, 1353719545, 1353719519, 1353718621, 1353718586, 1353718560, 1353718511, 1353718509, 1353718506, 1353718504, 1353718501, 1353718493, 1353718362, 1353718360, 1353718357, 1353718345, 1353718317, 1353718288, 1353717984, 1353717827, 1353717793, 1353717132, 1353717073, 1353717011, 1353716944, 1353716338, 1353716296, 1353716238, 1353716180, 1353716051, 1353715961, 1353714836, 1353714784, 1353714738]} final : True mtd_id 4302 list_pids : [1353723126, 1353723021, 1353722941] Looping around the photos to save general results len do output : 1 /22434112Didn'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, '2762647') ('4302', '22434112', '1353723126', None, None, None, None, None, '2762647') ('4302', None, None, None, None, None, None, None, '2762647') ('4302', '22434112', '1353723021', None, None, None, None, None, '2762647') ('4302', None, None, None, None, None, None, None, '2762647') ('4302', '22434112', '1353722941', None, None, None, None, None, '2762647') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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, '22434112', 'None', None, None, None, None, '2762647'), ('4302', '22434112', '1353723126', None, None, None, None, None, '2762647'), ('4302', '22434112', '1353723021', None, None, None, None, None, '2762647'), ('4302', '22434112', '1353722941', None, None, None, None, None, '2762647')] time used for this insertion : 0.012525081634521484 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2912747859954834 time spend to save output : 0.012704610824584961 total time spend for step 5 : 0.30397939682006836 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 (2762647) 1.88user 2.69system 0:09.31elapsed 49%CPU (0avgtext+0avgdata 158536maxresident)k 40inputs+8888outputs (3major+63727minor)pagefaults 0swaps