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 : 3377361 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 (2576950) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2576950) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20452637 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2576950'] with mtr_portfolio_ids : ['20452637'] and first list_photo_ids : [] new path : /proc/3377361/ Name: python3 Umask: 0002 State: R (running) Tgid: 3377361 Ngid: 0 Pid: 3377361 PPid: 3377360 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3377361 NSpid: 3377361 NSpgid: 3363914 NSsid: 3363914 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98332 kB VmRSS: 98332 kB RssAnon: 59752 kB RssFile: 38580 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2640 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: 51 nonvoluntary_ctxt_switches: 84 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3377361', 'Ngid': '0', 'Pid': '3377361', 'PPid': '3377360', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3377361', 'NSpid': '3377361', 'NSpgid': '3363914', 'NSsid': '3363914', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98332 kB', 'VmRSS': '98332 kB', 'RssAnon': '59752 kB', 'RssFile': '38580 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2640 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': '51', 'nonvoluntary_ctxt_switches': '84'} ('datou_batch_current', '3377361', '1106840', '0', '1106840', '865592', '98332', b'', 'marlene', '2576950') 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 (20452637) 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 (2576950 ) ) 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 (20452637) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1336863768, 'portfolio_id': 20452637}, {'photo_id': 1336863760, 'portfolio_id': 20452637}, {'photo_id': 1336863756, 'portfolio_id': 20452637}, {'photo_id': 1336863753, 'portfolio_id': 20452637}, {'photo_id': 1336863483, 'portfolio_id': 20452637}, {'photo_id': 1336863468, 'portfolio_id': 20452637}, {'photo_id': 1336863465, 'portfolio_id': 20452637}, {'photo_id': 1336863462, 'portfolio_id': 20452637}, {'photo_id': 1336863459, 'portfolio_id': 20452637}, {'photo_id': 1336863426, 'portfolio_id': 20452637}, {'photo_id': 1336862618, 'portfolio_id': 20452637}, {'photo_id': 1336862615, 'portfolio_id': 20452637}, {'photo_id': 1336862613, 'portfolio_id': 20452637}, {'photo_id': 1336862611, 'portfolio_id': 20452637}, {'photo_id': 1336862609, 'portfolio_id': 20452637}, {'photo_id': 1336862378, 'portfolio_id': 20452637}, {'photo_id': 1336862314, 'portfolio_id': 20452637}, {'photo_id': 1336862277, 'portfolio_id': 20452637}, {'photo_id': 1336862275, 'portfolio_id': 20452637}, {'photo_id': 1336862000, 'portfolio_id': 20452637}, {'photo_id': 1336861931, 'portfolio_id': 20452637}, {'photo_id': 1336861889, 'portfolio_id': 20452637}, {'photo_id': 1336861885, 'portfolio_id': 20452637}, {'photo_id': 1336861884, 'portfolio_id': 20452637}, {'photo_id': 1336861883, 'portfolio_id': 20452637}, {'photo_id': 1336861832, 'portfolio_id': 20452637}, {'photo_id': 1336861829, 'portfolio_id': 20452637}, {'photo_id': 1336861826, 'portfolio_id': 20452637}, {'photo_id': 1336861822, 'portfolio_id': 20452637}] map_portfolio_id_photo_id: {20452637: [1336863768, 1336863760, 1336863756, 1336863753, 1336863483, 1336863468, 1336863465, 1336863462, 1336863459, 1336863426, 1336862618, 1336862615, 1336862613, 1336862611, 1336862609, 1336862378, 1336862314, 1336862277, 1336862275, 1336862000, 1336861931, 1336861889, 1336861885, 1336861884, 1336861883, 1336861832, 1336861829, 1336861826, 1336861822]} ##### 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.01784968376159668 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Feb 11 17:24:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20452637) 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 : 20452637 get user id for portfolio 20452637 get sub ptf for main ptf 20452637, type 3726 and hashtags ['Teint_Dans_La_Masse', 'environnement', 'plastique', 'Carton_brun', 'flou', 'autre_refus', 'papier', 'Carton_gris', 'mal_croppe', 'cartonnette', 'metal', 'kraft'] 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`=20452637 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','plastique','Carton_brun','flou','autre_refus','papier','Carton_gris','mal_croppe','cartonnette','metal','kraft')) 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`=20452637 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','plastique','Carton_brun','flou','autre_refus','papier','Carton_gris','mal_croppe','cartonnette','metal','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 20452637, 'sub_port_id': 20452760, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126923, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 20452637, 'sub_port_id': 20452761, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126924, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 28)}, 'Carton_brun': {'main_port_id': 20452637, 'sub_port_id': 20452762, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126925, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 28)}, 'kraft': {'main_port_id': 20452637, 'sub_port_id': 20452763, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126926, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 28)}, 'metal': {'main_port_id': 20452637, 'sub_port_id': 20452764, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126927, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 28)}, 'autre_refus': {'main_port_id': 20452637, 'sub_port_id': 20452765, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126928, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 28)}, 'flou': {'main_port_id': 20452637, 'sub_port_id': 20452766, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126929, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 28)}, 'plastique': {'main_port_id': 20452637, 'sub_port_id': 20452767, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126930, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 28)}, 'mal_croppe': {'main_port_id': 20452637, 'sub_port_id': 20452768, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126931, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 28)}, 'Carton_gris': {'main_port_id': 20452637, 'sub_port_id': 20452769, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126932, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 28)}, 'papier': {'main_port_id': 20452637, 'sub_port_id': 20452770, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126933, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 28)}, 'cartonnette': {'main_port_id': 20452637, 'sub_port_id': 20452771, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126934, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20452760 , 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=20452637 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 (20452760) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20452637) result : ((1336861822,), (1336861826,), (1336861829,), (1336861832,), (1336861883,), (1336861884,), (1336861885,), (1336861889,), (1336861931,), (1336862000,), (1336862275,), (1336862277,), (1336862314,), (1336862378,), (1336862609,), (1336862611,), (1336862613,), (1336862615,), (1336862618,), (1336863426,), (1336863459,), (1336863462,), (1336863465,), (1336863468,), (1336863483,), (1336863753,), (1336863756,), (1336863760,), (1336863768,)) 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 (1336862000) 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 20452761 , 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=20452637 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 (20452761) result : ((1336863685,), (1336863827,), (1336864111,), (1336864113,), (1336864114,), (1336864116,), (1336864117,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20452637) result : ((1336861822,), (1336861826,), (1336861829,), (1336861832,), (1336861883,), (1336861884,), (1336861885,), (1336861889,), (1336861931,), (1336862000,), (1336862275,), (1336862277,), (1336862314,), (1336862378,), (1336862609,), (1336862611,), (1336862613,), (1336862615,), (1336862618,), (1336863426,), (1336863459,), (1336863462,), (1336863465,), (1336863468,), (1336863483,), (1336863753,), (1336863756,), (1336863760,), (1336863768,)) 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 (1336862000) 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 20452762 , 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=20452637 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 (20452762) result : ((1336863748,), (1336863909,), (1336864217,), (1336864218,), (1336864220,), (1336864221,), (1336864223,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20452637) result : ((1336861822,), (1336861826,), (1336861829,), (1336861832,), (1336861883,), (1336861884,), (1336861885,), (1336861889,), (1336861931,), (1336862000,), (1336862275,), (1336862277,), (1336862314,), (1336862378,), (1336862609,), (1336862611,), (1336862613,), (1336862615,), (1336862618,), (1336863426,), (1336863459,), (1336863462,), (1336863465,), (1336863468,), (1336863483,), (1336863753,), (1336863756,), (1336863760,), (1336863768,)) 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 (1336862000) 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 20452763 , 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=20452637 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 (20452763) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20452637) result : ((1336861822,), (1336861826,), (1336861829,), (1336861832,), (1336861883,), (1336861884,), (1336861885,), (1336861889,), (1336861931,), (1336862000,), (1336862275,), (1336862277,), (1336862314,), (1336862378,), (1336862609,), (1336862611,), (1336862613,), (1336862615,), (1336862618,), (1336863426,), (1336863459,), (1336863462,), (1336863465,), (1336863468,), (1336863483,), (1336863753,), (1336863756,), (1336863760,), (1336863768,)) 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 (1336862000) 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 20452764 , 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=20452637 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 (20452764) result : ((1336863750,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20452637) result : ((1336861822,), (1336861826,), (1336861829,), (1336861832,), (1336861883,), (1336861884,), (1336861885,), (1336861889,), (1336861931,), (1336862000,), (1336862275,), (1336862277,), (1336862314,), (1336862378,), (1336862609,), (1336862611,), (1336862613,), (1336862615,), (1336862618,), (1336863426,), (1336863459,), (1336863462,), (1336863465,), (1336863468,), (1336863483,), (1336863753,), (1336863756,), (1336863760,), (1336863768,)) 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 (1336862000) 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 20452765 , 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=20452637 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 (20452765) result : ((1336863687,), (1336863688,), (1336863689,), (1336863830,), (1336863906,), (1336863907,), (1336863945,), (1336864136,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20452637) result : ((1336861822,), (1336861826,), (1336861829,), (1336861832,), (1336861883,), (1336861884,), (1336861885,), (1336861889,), (1336861931,), (1336862000,), (1336862275,), (1336862277,), (1336862314,), (1336862378,), (1336862609,), (1336862611,), (1336862613,), (1336862615,), (1336862618,), (1336863426,), (1336863459,), (1336863462,), (1336863465,), (1336863468,), (1336863483,), (1336863753,), (1336863756,), (1336863760,), (1336863768,)) 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 (1336862000) 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 20452766 , 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=20452637 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 (20452766) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20452637) result : ((1336861822,), (1336861826,), (1336861829,), (1336861832,), (1336861883,), (1336861884,), (1336861885,), (1336861889,), (1336861931,), (1336862000,), (1336862275,), (1336862277,), (1336862314,), (1336862378,), (1336862609,), (1336862611,), (1336862613,), (1336862615,), (1336862618,), (1336863426,), (1336863459,), (1336863462,), (1336863465,), (1336863468,), (1336863483,), (1336863753,), (1336863756,), (1336863760,), (1336863768,)) 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 (1336862000) 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 20452767 , 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=20452637 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 (20452767) result : ((1336863749,), (1336863910,), (1336863948,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20452637) result : ((1336861822,), (1336861826,), (1336861829,), (1336861832,), (1336861883,), (1336861884,), (1336861885,), (1336861889,), (1336861931,), (1336862000,), (1336862275,), (1336862277,), (1336862314,), (1336862378,), (1336862609,), (1336862611,), (1336862613,), (1336862615,), (1336862618,), (1336863426,), (1336863459,), (1336863462,), (1336863465,), (1336863468,), (1336863483,), (1336863753,), (1336863756,), (1336863760,), (1336863768,)) 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 (1336862000) 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 20452768 , 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=20452637 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 (20452768) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20452637) result : ((1336861822,), (1336861826,), (1336861829,), (1336861832,), (1336861883,), (1336861884,), (1336861885,), (1336861889,), (1336861931,), (1336862000,), (1336862275,), (1336862277,), (1336862314,), (1336862378,), (1336862609,), (1336862611,), (1336862613,), (1336862615,), (1336862618,), (1336863426,), (1336863459,), (1336863462,), (1336863465,), (1336863468,), (1336863483,), (1336863753,), (1336863756,), (1336863760,), (1336863768,)) 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 (1336862000) 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 20452769 , 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=20452637 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 (20452769) result : ((1336863740,), (1336863741,), (1336863832,), (1336863908,), (1336864159,), (1336864161,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20452637) result : ((1336861822,), (1336861826,), (1336861829,), (1336861832,), (1336861883,), (1336861884,), (1336861885,), (1336861889,), (1336861931,), (1336862000,), (1336862275,), (1336862277,), (1336862314,), (1336862378,), (1336862609,), (1336862611,), (1336862613,), (1336862615,), (1336862618,), (1336863426,), (1336863459,), (1336863462,), (1336863465,), (1336863468,), (1336863483,), (1336863753,), (1336863756,), (1336863760,), (1336863768,)) 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 (1336862000) 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 20452770 , 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=20452637 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 (20452770) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20452637) result : ((1336861822,), (1336861826,), (1336861829,), (1336861832,), (1336861883,), (1336861884,), (1336861885,), (1336861889,), (1336861931,), (1336862000,), (1336862275,), (1336862277,), (1336862314,), (1336862378,), (1336862609,), (1336862611,), (1336862613,), (1336862615,), (1336862618,), (1336863426,), (1336863459,), (1336863462,), (1336863465,), (1336863468,), (1336863483,), (1336863753,), (1336863756,), (1336863760,), (1336863768,)) 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 (1336862000) 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 20452771 , 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=20452637 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 (20452771) result : ((1336863745,), (1336863746,), (1336863747,), (1336864177,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20452637) result : ((1336861822,), (1336861826,), (1336861829,), (1336861832,), (1336861883,), (1336861884,), (1336861885,), (1336861889,), (1336861931,), (1336862000,), (1336862275,), (1336862277,), (1336862314,), (1336862378,), (1336862609,), (1336862611,), (1336862613,), (1336862615,), (1336862618,), (1336863426,), (1336863459,), (1336863462,), (1336863465,), (1336863468,), (1336863483,), (1336863753,), (1336863756,), (1336863760,), (1336863768,)) 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 (1336862000) 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`=20452637 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','plastique','Carton_brun','flou','autre_refus','papier','Carton_gris','mal_croppe','cartonnette','metal','kraft')) 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`=20452637 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','plastique','Carton_brun','flou','autre_refus','papier','Carton_gris','mal_croppe','cartonnette','metal','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 20452637, 'sub_port_id': 20452784, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126947, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 20452637, 'sub_port_id': 20452785, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126948, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 29)}, 'Carton_brun': {'main_port_id': 20452637, 'sub_port_id': 20452786, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126949, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 29)}, 'kraft': {'main_port_id': 20452637, 'sub_port_id': 20452787, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126950, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 29)}, 'metal': {'main_port_id': 20452637, 'sub_port_id': 20452788, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126951, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 29)}, 'autre_refus': {'main_port_id': 20452637, 'sub_port_id': 20452789, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126952, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 29)}, 'flou': {'main_port_id': 20452637, 'sub_port_id': 20452790, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126953, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 29)}, 'plastique': {'main_port_id': 20452637, 'sub_port_id': 20452791, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126954, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 29)}, 'mal_croppe': {'main_port_id': 20452637, 'sub_port_id': 20452792, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126955, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 29)}, 'Carton_gris': {'main_port_id': 20452637, 'sub_port_id': 20452793, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126956, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 29)}, 'papier': {'main_port_id': 20452637, 'sub_port_id': 20452794, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126957, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 29)}, 'cartonnette': {'main_port_id': 20452637, 'sub_port_id': 20452795, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13126958, 'last_updated_at': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 17, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 17, 19, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20452784,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20452760 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20452785,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20452761 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20452786,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20452762 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20452787,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20452763 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20452788,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20452764 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20452789,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20452765 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20452790,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20452766 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20452791,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20452767 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20452792,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20452768 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20452793,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20452769 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20452794,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20452770 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20452795,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20452771 lien utilise dans velours : https://www.fotonower.com/velours/20452784,20452785,20452786,20452787,20452788,20452789,20452790,20452791,20452792,20452793,20452794,20452795?tags=environnement,Teint_Dans_La_Masse,Carton_brun,kraft,metal,autre_refus,flou,plastique,mal_croppe,Carton_gris,papier,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20452637]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1336863768, 1336863760, 1336863756, 1336863753, 1336863483, 1336863468, 1336863465, 1336863462, 1336863459, 1336863426] map_info['map_portfolio_photo'] : {20452637: [1336863768, 1336863760, 1336863756, 1336863753, 1336863483, 1336863468, 1336863465, 1336863462, 1336863459, 1336863426, 1336862618, 1336862615, 1336862613, 1336862611, 1336862609, 1336862378, 1336862314, 1336862277, 1336862275, 1336862000, 1336861931, 1336861889, 1336861885, 1336861884, 1336861883, 1336861832, 1336861829, 1336861826, 1336861822]} final : False mtd_id 4302 list_pids : [1336863768, 1336863760, 1336863756, 1336863753, 1336863483, 1336863468, 1336863465, 1336863462, 1336863459, 1336863426] Looping around the photos to save general results len do output : 1 /20452637. 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, '2576950') ('4302', '20452637', '1336863768', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863760', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863756', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863753', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863483', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863468', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863465', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863462', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863459', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863426', None, None, None, None, None, '2576950') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20452637', "{'environnement': 20452760, 'Teint_Dans_La_Masse': 20452761, 'Carton_brun': 20452762, 'kraft': 20452763, 'metal': 20452764, 'autre_refus': 20452765, 'flou': 20452766, 'plastique': 20452767, 'mal_croppe': 20452768, 'Carton_gris': 20452769, 'papier': 20452770, 'cartonnette': 20452771}", None, None, None, None, '2576950'), ('4302', '20452637', '1336863768', None, None, None, None, None, '2576950'), ('4302', '20452637', '1336863760', None, None, None, None, None, '2576950'), ('4302', '20452637', '1336863756', None, None, None, None, None, '2576950'), ('4302', '20452637', '1336863753', None, None, None, None, None, '2576950'), ('4302', '20452637', '1336863483', None, None, None, None, None, '2576950'), ('4302', '20452637', '1336863468', None, None, None, None, None, '2576950'), ('4302', '20452637', '1336863465', None, None, None, None, None, '2576950'), ('4302', '20452637', '1336863462', None, None, None, None, None, '2576950'), ('4302', '20452637', '1336863459', None, None, None, None, None, '2576950'), ('4302', '20452637', '1336863426', None, None, None, None, None, '2576950')] time used for this insertion : 0.015557050704956055 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5206437110900879 time spend to save output : 0.016004085540771484 total time spend for step 1 : 0.5366477966308594 step2:final Tue Feb 11 17:25:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20452637) 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 20452637 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1336861832,1336861829,1336861826,1336861822,1336862000,1336861931,1336861889,1336861885,1336861884,1336861883,1336862378,1336862314,1336862277,1336862275,1336862618,1336862615,1336862613,1336862611,1336862609,1336863483,1336863468,1336863465,1336863462,1336863459,1336863426,1336863768,1336863760,1336863756,1336863753); 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([20452637]) Inside saveOutput : final : False verbose : True original output for save of step final : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ('0.050784560539385445',), 1336863483: ('0.050784560539385445',), 1336863468: ('0.050784560539385445',), 1336863465: ('0.050784560539385445',), 1336863462: ('0.050784560539385445',), 1336863459: ('0.050784560539385445',), 1336863426: ('0.050784560539385445',)} new output for save of step final : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ('0.050784560539385445',), 1336863483: ('0.050784560539385445',), 1336863468: ('0.050784560539385445',), 1336863465: ('0.050784560539385445',), 1336863462: ('0.050784560539385445',), 1336863459: ('0.050784560539385445',), 1336863426: ('0.050784560539385445',)} [1336863768, 1336863760, 1336863756, 1336863753, 1336863483, 1336863468, 1336863465, 1336863462, 1336863459, 1336863426] map_info['map_portfolio_photo'] : {20452637: [1336863768, 1336863760, 1336863756, 1336863753, 1336863483, 1336863468, 1336863465, 1336863462, 1336863459, 1336863426, 1336862618, 1336862615, 1336862613, 1336862611, 1336862609, 1336862378, 1336862314, 1336862277, 1336862275, 1336862000, 1336861931, 1336861889, 1336861885, 1336861884, 1336861883, 1336861832, 1336861829, 1336861826, 1336861822]} final : False mtd_id 4302 list_pids : [1336863768, 1336863760, 1336863756, 1336863753, 1336863483, 1336863468, 1336863465, 1336863462, 1336863459, 1336863426] Looping around the photos to save general results len do output : 10 /1336863768.Didn't retrieve data . /1336863760.Didn't retrieve data . /1336863756.Didn't retrieve data . /1336863753.Didn't retrieve data . /1336863483.Didn't retrieve data . /1336863468.Didn't retrieve data . /1336863465.Didn't retrieve data . /1336863462.Didn't retrieve data . /1336863459.Didn't retrieve data . /1336863426.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, '2576950') ('4302', '20452637', '1336863768', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863760', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863756', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863753', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863483', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863468', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863465', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863462', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863459', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863426', None, None, None, None, None, '2576950') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20452637', '1336863768', '0.050784560539385445', None, None, None, None, '2576950'), ('4302', '20452637', '1336863760', '0.050784560539385445', None, None, None, None, '2576950'), ('4302', '20452637', '1336863756', '0.050784560539385445', None, None, None, None, '2576950'), ('4302', '20452637', '1336863753', '0.050784560539385445', None, None, None, None, '2576950'), ('4302', '20452637', '1336863483', '0.050784560539385445', None, None, None, None, '2576950'), ('4302', '20452637', '1336863468', '0.050784560539385445', None, None, None, None, '2576950'), ('4302', '20452637', '1336863465', '0.050784560539385445', None, None, None, None, '2576950'), ('4302', '20452637', '1336863462', '0.050784560539385445', None, None, None, None, '2576950'), ('4302', '20452637', '1336863459', '0.050784560539385445', None, None, None, None, '2576950'), ('4302', '20452637', '1336863426', '0.050784560539385445', None, None, None, None, '2576950')] time used for this insertion : 0.01365518569946289 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06986594200134277 time spend to save output : 0.01404714584350586 total time spend for step 2 : 0.08391308784484863 step3:velours_tree Tue Feb 11 17:25:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20452637: [{'environnement': 20452760, 'Teint_Dans_La_Masse': 20452761, 'Carton_brun': 20452762, 'kraft': 20452763, 'metal': 20452764, 'autre_refus': 20452765, 'flou': 20452766, 'plastique': 20452767, 'mal_croppe': 20452768, 'Carton_gris': 20452769, 'papier': 20452770, 'cartonnette': 20452771}]} input_args_next_step : {20452637: ()} output_args : {20452637: [{'environnement': 20452760, 'Teint_Dans_La_Masse': 20452761, 'Carton_brun': 20452762, 'kraft': 20452763, 'metal': 20452764, 'autre_refus': 20452765, 'flou': 20452766, 'plastique': 20452767, 'mal_croppe': 20452768, 'Carton_gris': 20452769, 'papier': 20452770, 'cartonnette': 20452771}]} args : 20452637 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'environnement': 20452760, 'Teint_Dans_La_Masse': 20452761, 'Carton_brun': 20452762, 'kraft': 20452763, 'metal': 20452764, 'autre_refus': 20452765, 'flou': 20452766, 'plastique': 20452767, 'mal_croppe': 20452768, 'Carton_gris': 20452769, 'papier': 20452770, 'cartonnette': 20452771},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20452637) 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([20452637]) Inside saveOutput : final : False verbose : True ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 1.3610422611236572 time spend to save output : 0.00010371208190917969 total time spend for step 3 : 1.3611459732055664 step4:send_mail_cod Tue Feb 11 17:25:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ('0.050784560539385445',), 1336863483: ('0.050784560539385445',), 1336863468: ('0.050784560539385445',), 1336863465: ('0.050784560539385445',), 1336863462: ('0.050784560539385445',), 1336863459: ('0.050784560539385445',), 1336863426: ('0.050784560539385445',)} input_args_next_step : {1336863768: ()} output_args : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ('0.050784560539385445',), 1336863483: ('0.050784560539385445',), 1336863468: ('0.050784560539385445',), 1336863465: ('0.050784560539385445',), 1336863462: ('0.050784560539385445',), 1336863459: ('0.050784560539385445',), 1336863426: ('0.050784560539385445',)} args : 1336863768 depend.output_id : 0 input_args_next_step : {1336863768: ('0.050784560539385445',), 1336863760: ()} output_args : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ('0.050784560539385445',), 1336863483: ('0.050784560539385445',), 1336863468: ('0.050784560539385445',), 1336863465: ('0.050784560539385445',), 1336863462: ('0.050784560539385445',), 1336863459: ('0.050784560539385445',), 1336863426: ('0.050784560539385445',)} args : 1336863760 depend.output_id : 0 input_args_next_step : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ()} output_args : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ('0.050784560539385445',), 1336863483: ('0.050784560539385445',), 1336863468: ('0.050784560539385445',), 1336863465: ('0.050784560539385445',), 1336863462: ('0.050784560539385445',), 1336863459: ('0.050784560539385445',), 1336863426: ('0.050784560539385445',)} args : 1336863756 depend.output_id : 0 input_args_next_step : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ()} output_args : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ('0.050784560539385445',), 1336863483: ('0.050784560539385445',), 1336863468: ('0.050784560539385445',), 1336863465: ('0.050784560539385445',), 1336863462: ('0.050784560539385445',), 1336863459: ('0.050784560539385445',), 1336863426: ('0.050784560539385445',)} args : 1336863753 depend.output_id : 0 input_args_next_step : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ('0.050784560539385445',), 1336863483: ()} output_args : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ('0.050784560539385445',), 1336863483: ('0.050784560539385445',), 1336863468: ('0.050784560539385445',), 1336863465: ('0.050784560539385445',), 1336863462: ('0.050784560539385445',), 1336863459: ('0.050784560539385445',), 1336863426: ('0.050784560539385445',)} args : 1336863483 depend.output_id : 0 input_args_next_step : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ('0.050784560539385445',), 1336863483: ('0.050784560539385445',), 1336863468: ()} output_args : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ('0.050784560539385445',), 1336863483: ('0.050784560539385445',), 1336863468: ('0.050784560539385445',), 1336863465: ('0.050784560539385445',), 1336863462: ('0.050784560539385445',), 1336863459: ('0.050784560539385445',), 1336863426: ('0.050784560539385445',)} args : 1336863468 depend.output_id : 0 input_args_next_step : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ('0.050784560539385445',), 1336863483: ('0.050784560539385445',), 1336863468: ('0.050784560539385445',), 1336863465: ()} output_args : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ('0.050784560539385445',), 1336863483: ('0.050784560539385445',), 1336863468: ('0.050784560539385445',), 1336863465: ('0.050784560539385445',), 1336863462: ('0.050784560539385445',), 1336863459: ('0.050784560539385445',), 1336863426: ('0.050784560539385445',)} args : 1336863465 depend.output_id : 0 input_args_next_step : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ('0.050784560539385445',), 1336863483: ('0.050784560539385445',), 1336863468: ('0.050784560539385445',), 1336863465: ('0.050784560539385445',), 1336863462: ()} output_args : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ('0.050784560539385445',), 1336863483: ('0.050784560539385445',), 1336863468: ('0.050784560539385445',), 1336863465: ('0.050784560539385445',), 1336863462: ('0.050784560539385445',), 1336863459: ('0.050784560539385445',), 1336863426: ('0.050784560539385445',)} args : 1336863462 depend.output_id : 0 input_args_next_step : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ('0.050784560539385445',), 1336863483: ('0.050784560539385445',), 1336863468: ('0.050784560539385445',), 1336863465: ('0.050784560539385445',), 1336863462: ('0.050784560539385445',), 1336863459: ()} output_args : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ('0.050784560539385445',), 1336863483: ('0.050784560539385445',), 1336863468: ('0.050784560539385445',), 1336863465: ('0.050784560539385445',), 1336863462: ('0.050784560539385445',), 1336863459: ('0.050784560539385445',), 1336863426: ('0.050784560539385445',)} args : 1336863459 depend.output_id : 0 input_args_next_step : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ('0.050784560539385445',), 1336863483: ('0.050784560539385445',), 1336863468: ('0.050784560539385445',), 1336863465: ('0.050784560539385445',), 1336863462: ('0.050784560539385445',), 1336863459: ('0.050784560539385445',), 1336863426: ()} output_args : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ('0.050784560539385445',), 1336863483: ('0.050784560539385445',), 1336863468: ('0.050784560539385445',), 1336863465: ('0.050784560539385445',), 1336863462: ('0.050784560539385445',), 1336863459: ('0.050784560539385445',), 1336863426: ('0.050784560539385445',)} args : 1336863426 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 : {20452637: [{'environnement': 20452760, 'Teint_Dans_La_Masse': 20452761, 'Carton_brun': 20452762, 'kraft': 20452763, 'metal': 20452764, 'autre_refus': 20452765, 'flou': 20452766, 'plastique': 20452767, 'mal_croppe': 20452768, 'Carton_gris': 20452769, 'papier': 20452770, 'cartonnette': 20452771}]} input_args_next_step : {1336863768: ('0.050784560539385445',), 1336863760: ('0.050784560539385445',), 1336863756: ('0.050784560539385445',), 1336863753: ('0.050784560539385445',), 1336863483: ('0.050784560539385445',), 1336863468: ('0.050784560539385445',), 1336863465: ('0.050784560539385445',), 1336863462: ('0.050784560539385445',), 1336863459: ('0.050784560539385445',), 1336863426: ('0.050784560539385445',), 20452637: ()} output_args : {20452637: [{'environnement': 20452760, 'Teint_Dans_La_Masse': 20452761, 'Carton_brun': 20452762, 'kraft': 20452763, 'metal': 20452764, 'autre_refus': 20452765, 'flou': 20452766, 'plastique': 20452767, 'mal_croppe': 20452768, 'Carton_gris': 20452769, 'papier': 20452770, 'cartonnette': 20452771}]} args : 20452637 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.050784560539385445',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20452637) 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 (1336863768,1336863760,1336863756,1336863753,1336863483,1336863468,1336863465,1336863462,1336863459,1336863426) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1336863426 begin to download photo : 1336863465 begin to download photo : 1336863753 begin to download photo : 1336863768 download finish for photo 1336863753 begin to download photo : 1336863756 download finish for photo 1336863768 download finish for photo 1336863426 begin to download photo : 1336863459 download finish for photo 1336863465 begin to download photo : 1336863468 download finish for photo 1336863756 begin to download photo : 1336863760 download finish for photo 1336863459 begin to download photo : 1336863462 download finish for photo 1336863468 begin to download photo : 1336863483 download finish for photo 1336863760 download finish for photo 1336863483 download finish for photo 1336863462 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette204527631739291101/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P20452637_11-02-2025_17_25_01.pdf 20452763 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=20452763 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204527631739291101 20452764 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=20452764 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336863750: '1739290753_2441139_1336861885_676d18798a8cb0b6b4a3213eeab267de_rle_crop_3670331664_0.png'} change filename to text .imagette204527641739291101/ imagette204527641739291101/1739290753_2441139_1336861885_676d18798a8cb0b6b4a3213eeab267de_rle_crop_3670331664_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/f0b6f34946431ad02ac5f0edbb653790_32410902.png imagette204527641739291101 20452765 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=20452765 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336863687: '1739290753_2441139_1336861884_81dc814ad6f4a2078a8cc5ac6217be76_rle_crop_3670331686_0.png', 1336863688: '1739290753_2441139_1336861883_c87381b5677793eb46eae43cb395cfc7_rle_crop_3670331722_0.png', 1336863689: '1739290753_2441139_1336861883_c87381b5677793eb46eae43cb395cfc7_rle_crop_3670331728_0.png', 1336863830: '1739290873_2445450_1336862615_0e474d68cad9b302fa623b80db704ea0_rle_crop_3670339714_0.png', 1336863906: '1739290913_2445919_1336862000_cae09a6542af657eec785195fa274420_bib_crop_3670331743_0.jpg', 1336863907: '1739290913_2445919_1336862000_cae09a6542af657eec785195fa274420_rle_crop_3670341875_0.png', 1336863945: '1739290993_2446677_1336863760_2d9ac866ea0a25dfb6b72fbd2c9cc610_rle_crop_3670343118_0.png', 1336864136: '1739291011_2446839_1336863462_dee54e09a67fb2da209c55394dcb27cb_rle_crop_3670345729_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/ab5102744f179d67e3def68c8a7aac20_72031306.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/9503e465bb67db102cc4d6f84a6bf3f6_51158470.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/4e1f8ac0581d7d74cee659a39d731686_60972227.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/e59ba02859878fa38e4ee6eedf39b9c5_8798206.png change filename to text .wget -O 5.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/e77253242db48a04732aceda9459a9f5_54281893.jpg change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/1f8dbe21a3b231634a1324be41b57d6e_22983859.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/d49f784d647c49c4a59240b0008e53e2_12065574.png change filename to text .imagette204527651739291101/ imagette204527651739291101/1739290753_2441139_1336861883_c87381b5677793eb46eae43cb395cfc7_rle_crop_3670331728_0.png.png imagette204527651739291101/1739290873_2445450_1336862615_0e474d68cad9b302fa623b80db704ea0_rle_crop_3670339714_0.png.png imagette204527651739291101/1739290913_2445919_1336862000_cae09a6542af657eec785195fa274420_rle_crop_3670341875_0.png.png imagette204527651739291101/1739290993_2446677_1336863760_2d9ac866ea0a25dfb6b72fbd2c9cc610_rle_crop_3670343118_0.png.png imagette204527651739291101/1739291011_2446839_1336863462_dee54e09a67fb2da209c55394dcb27cb_rle_crop_3670345729_0.png.png imagette204527651739291101/1739290753_2441139_1336861884_81dc814ad6f4a2078a8cc5ac6217be76_rle_crop_3670331686_0.png.png imagette204527651739291101/1739290913_2445919_1336862000_cae09a6542af657eec785195fa274420_bib_crop_3670331743_0.jpg.jpg imagette204527651739291101/1739290753_2441139_1336861883_c87381b5677793eb46eae43cb395cfc7_rle_crop_3670331722_0.png.png imagette204527661739291102/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/ba4b7fcaf5db283bfe97220632ee743a_8303532.png imagette204527651739291101 20452766 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=20452766 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204527661739291102 20452767 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=20452767 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336863749: '1739290753_2441139_1336861883_c87381b5677793eb46eae43cb395cfc7_rle_crop_3670331732_0.png', 1336863910: '1739290913_2445919_1336861826_ac98d1c34b3af5744a734350a7c5ba78_rle_crop_3670331777_0.png', 1336863948: '1739290993_2446677_1336863753_099123e1921760102383afafee81a001_rle_crop_3670343134_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/5ff457afbb7396f323f06a97ac9c9ce1_17570972.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/b057c631dd1ce886daaa5a4121af334a_31808221.png change filename to text .imagette204527671739291102/ imagette204527671739291102/1739290913_2445919_1336861826_ac98d1c34b3af5744a734350a7c5ba78_rle_crop_3670331777_0.png.png imagette204527671739291102/1739290753_2441139_1336861883_c87381b5677793eb46eae43cb395cfc7_rle_crop_3670331732_0.png.png imagette204527671739291102/1739290993_2446677_1336863753_099123e1921760102383afafee81a001_rle_crop_3670343134_0.png.png imagette204527681739291102/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/7de332c375ca3d2f4c3f19fce366cbdf_74266090.png imagette204527671739291102 20452768 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=20452768 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204527681739291102 20452771 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=20452771 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336863745: '1739290753_2441139_1336861931_a0806583798eef33e1c5562158f02644_rle_crop_3670331622_0.png', 1336863746: '1739290753_2441139_1336861885_676d18798a8cb0b6b4a3213eeab267de_rle_crop_3670331656_0.png', 1336863747: '1739290753_2441139_1336861884_81dc814ad6f4a2078a8cc5ac6217be76_rle_crop_3670331681_0.png', 1336864177: '1739291011_2446839_1336863462_dee54e09a67fb2da209c55394dcb27cb_rle_crop_3670345735_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/91e6ea6815e4b3a7ed25f2a5bfb1b25b_23225204.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/a34d8dae4c6e10f62a0f16bd329cc6b8_3545353.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/e86541164cec5042f5c706be592c0758_99472207.png change filename to text .imagette204527711739291102/ imagette204527711739291102/1739290753_2441139_1336861931_a0806583798eef33e1c5562158f02644_rle_crop_3670331622_0.png.png imagette204527711739291102/1739290753_2441139_1336861884_81dc814ad6f4a2078a8cc5ac6217be76_rle_crop_3670331681_0.png.png imagette204527711739291102/1739291011_2446839_1336863462_dee54e09a67fb2da209c55394dcb27cb_rle_crop_3670345735_0.png.png imagette204527711739291102/1739290753_2441139_1336861885_676d18798a8cb0b6b4a3213eeab267de_rle_crop_3670331656_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/04a37542e3c203ac55bb87f278673698_8587350.png imagette204527711739291102 20452761 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=20452761 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336863685: '1739290753_2441139_1336861885_676d18798a8cb0b6b4a3213eeab267de_rle_crop_3670331657_0.png', 1336863827: '1739290873_2445450_1336862609_8d1e136b2f6ad107233f2ae19638af35_rle_crop_3670340267_0.png', 1336864111: '1739291011_2446839_1336863768_1364e42b642a1f63e673a93b14c4493c_rle_crop_3670344296_0.png', 1336864113: '1739291011_2446839_1336863468_6e2ebd88b2c227d3f4aad9178d190604_rle_crop_3670345302_0.png', 1336864114: '1739291011_2446839_1336863465_e8914cdc316dcf70c5a4460999833708_rle_crop_3670345718_0.png', 1336864116: '1739291011_2446839_1336863459_9d7d4ba298a377533867d00183c9359b_rle_crop_3670345756_0.png', 1336864117: '1739291011_2446839_1336863426_4d4a20be61d072572184a3df75d70cf0_rle_crop_3670345778_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/217115b15551ea855fcf23d59bfffd89_66493536.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/2591b8531947247ec95f37f5dacda64d_18631395.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/1636647c906b579831452ed98a4b093e_1310281.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/482370772374f1fe27af30d88420e2b6_66099276.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/c92d3bec5e24f83886abca5a5275419c_51226941.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/07a4055e0101cdf8eeea637ad3c0add4_10717706.png change filename to text .imagette204527611739291102/ imagette204527611739291102/1739291011_2446839_1336863768_1364e42b642a1f63e673a93b14c4493c_rle_crop_3670344296_0.png.png imagette204527611739291102/1739291011_2446839_1336863465_e8914cdc316dcf70c5a4460999833708_rle_crop_3670345718_0.png.png imagette204527611739291102/1739290873_2445450_1336862609_8d1e136b2f6ad107233f2ae19638af35_rle_crop_3670340267_0.png.png imagette204527611739291102/1739291011_2446839_1336863459_9d7d4ba298a377533867d00183c9359b_rle_crop_3670345756_0.png.png imagette204527611739291102/1739291011_2446839_1336863426_4d4a20be61d072572184a3df75d70cf0_rle_crop_3670345778_0.png.png imagette204527611739291102/1739291011_2446839_1336863468_6e2ebd88b2c227d3f4aad9178d190604_rle_crop_3670345302_0.png.png imagette204527611739291102/1739290753_2441139_1336861885_676d18798a8cb0b6b4a3213eeab267de_rle_crop_3670331657_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/53542e17f763dd52afb95e2e5ab9218a_24594239.png imagette204527611739291102 20452762 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=20452762 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336863748: '1739290753_2441139_1336861885_676d18798a8cb0b6b4a3213eeab267de_rle_crop_3670331663_0.png', 1336863909: '1739290913_2445919_1336861822_64f5f7c59cf0ec4cf2bdafca38e503ad_rle_crop_3670334929_0.png', 1336864217: '1739291011_2446839_1336863768_1364e42b642a1f63e673a93b14c4493c_rle_crop_3670344293_0.png', 1336864218: '1739291011_2446839_1336863768_1364e42b642a1f63e673a93b14c4493c_rle_crop_3670344295_0.png', 1336864220: '1739291011_2446839_1336863462_dee54e09a67fb2da209c55394dcb27cb_rle_crop_3670345730_0.png', 1336864221: '1739291011_2446839_1336863462_dee54e09a67fb2da209c55394dcb27cb_rle_crop_3670345731_0.png', 1336864223: '1739291011_2446839_1336863426_4d4a20be61d072572184a3df75d70cf0_rle_crop_3670345770_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/1803ed92837a79bba76c8c66f8bc3a87_40990818.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/356c3c0a9be3ded9d0cecfaf6f9ef97d_8788063.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/7ad7f80b5a7e74dfc180884440550964_6556726.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/0f75c100d86e34ed0d9aa90528f0c298_83597201.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/f9c211d7243323264e93bd6239e345be_77161400.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/6304ea7b811779580356d8ca99c48d34_53896501.png change filename to text .imagette204527621739291103/ imagette204527621739291103/1739291011_2446839_1336863426_4d4a20be61d072572184a3df75d70cf0_rle_crop_3670345770_0.png.png imagette204527621739291103/1739291011_2446839_1336863462_dee54e09a67fb2da209c55394dcb27cb_rle_crop_3670345731_0.png.png imagette204527621739291103/1739291011_2446839_1336863462_dee54e09a67fb2da209c55394dcb27cb_rle_crop_3670345730_0.png.png imagette204527621739291103/1739291011_2446839_1336863768_1364e42b642a1f63e673a93b14c4493c_rle_crop_3670344293_0.png.png imagette204527621739291103/1739290753_2441139_1336861885_676d18798a8cb0b6b4a3213eeab267de_rle_crop_3670331663_0.png.png imagette204527621739291103/1739291011_2446839_1336863768_1364e42b642a1f63e673a93b14c4493c_rle_crop_3670344295_0.png.png imagette204527621739291103/1739290913_2445919_1336861822_64f5f7c59cf0ec4cf2bdafca38e503ad_rle_crop_3670334929_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/85a6f277d474c6bb27eb854e15507856_21802803.png imagette204527621739291103 20452769 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=20452769 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336863740: '1739290753_2441139_1336861889_22bfda7929fec427a129f8599b4da4f0_rle_crop_3670331636_0.png', 1336863741: '1739290753_2441139_1336861883_c87381b5677793eb46eae43cb395cfc7_rle_crop_3670331731_0.png', 1336863832: '1739290873_2445450_1336862611_52b8885783b331f5cd833f7fe6958ea4_rle_crop_3670339992_0.png', 1336863908: '1739290913_2445919_1336861822_64f5f7c59cf0ec4cf2bdafca38e503ad_rle_crop_3670334922_0.png', 1336864159: '1739291011_2446839_1336863468_6e2ebd88b2c227d3f4aad9178d190604_rle_crop_3670345301_0.png', 1336864161: '1739291011_2446839_1336863459_9d7d4ba298a377533867d00183c9359b_rle_crop_3670345749_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/bd3b8348030bfe2fcdc1b5ab0a8997b4_7054601.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/8486adeb573051263f6110efa44d35a0_63455893.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/3295842024f36664edb4af4b72e91272_55584503.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/60f47156f6547e9cb675f61d95d0e02f_33053691.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/68091b3ed8d595c12ff6889e01130954_11464364.png change filename to text .imagette204527691739291103/ imagette204527691739291103/1739290753_2441139_1336861889_22bfda7929fec427a129f8599b4da4f0_rle_crop_3670331636_0.png.png imagette204527691739291103/1739290753_2441139_1336861883_c87381b5677793eb46eae43cb395cfc7_rle_crop_3670331731_0.png.png imagette204527691739291103/1739291011_2446839_1336863468_6e2ebd88b2c227d3f4aad9178d190604_rle_crop_3670345301_0.png.png imagette204527691739291103/1739290873_2445450_1336862611_52b8885783b331f5cd833f7fe6958ea4_rle_crop_3670339992_0.png.png imagette204527691739291103/1739291011_2446839_1336863459_9d7d4ba298a377533867d00183c9359b_rle_crop_3670345749_0.png.png imagette204527691739291103/1739290913_2445919_1336861822_64f5f7c59cf0ec4cf2bdafca38e503ad_rle_crop_3670334922_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/8bdd39a4692c788ce979f8625090324b_81437746.png imagette204527691739291103 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20452637 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20452784,20452785,20452786,20452787,20452788,20452789,20452790,20452791,20452792,20452793,20452794,20452795?tags=environnement,Teint_Dans_La_Masse,Carton_brun,kraft,metal,autre_refus,flou,plastique,mal_croppe,Carton_gris,papier,cartonnette your option no_mail is active, we will not send the real mail to your client args[1336863768] : ('0.050784560539385445',) no score found for photo 1336863768 apple ('0.050784560539385445',) We are sending mail with results at report@fotonower.com args[1336863760] : ('0.050784560539385445',) no score found for photo 1336863760 apple ('0.050784560539385445',) We are sending mail with results at report@fotonower.com args[1336863756] : ('0.050784560539385445',) no score found for photo 1336863756 apple ('0.050784560539385445',) We are sending mail with results at report@fotonower.com args[1336863753] : ('0.050784560539385445',) no score found for photo 1336863753 apple ('0.050784560539385445',) We are sending mail with results at report@fotonower.com args[1336863483] : ('0.050784560539385445',) no score found for photo 1336863483 apple ('0.050784560539385445',) We are sending mail with results at report@fotonower.com args[1336863468] : ('0.050784560539385445',) no score found for photo 1336863468 apple ('0.050784560539385445',) We are sending mail with results at report@fotonower.com args[1336863465] : ('0.050784560539385445',) no score found for photo 1336863465 apple ('0.050784560539385445',) We are sending mail with results at report@fotonower.com args[1336863462] : ('0.050784560539385445',) no score found for photo 1336863462 apple ('0.050784560539385445',) We are sending mail with results at report@fotonower.com args[1336863459] : ('0.050784560539385445',) no score found for photo 1336863459 apple ('0.050784560539385445',) We are sending mail with results at report@fotonower.com args[1336863426] : ('0.050784560539385445',) no score found for photo 1336863426 apple ('0.050784560539385445',) We are sending mail with results at report@fotonower.com refus_total : 0.050784560539385445 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=20452637 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_P20452637_11-02-2025_17_25_01.pdf results_Auto_P20452637_11-02-2025_17_25_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20452637_11-02-2025_17_25_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20452637','results_Auto_P20452637_11-02-2025_17_25_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20452637_11-02-2025_17_25_01.pdf','pdf','','0.21','0.050784560539385445') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20452637]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1336863768, 1336863760, 1336863756, 1336863753, 1336863483, 1336863468, 1336863465, 1336863462, 1336863459, 1336863426] map_info['map_portfolio_photo'] : {20452637: [1336863768, 1336863760, 1336863756, 1336863753, 1336863483, 1336863468, 1336863465, 1336863462, 1336863459, 1336863426, 1336862618, 1336862615, 1336862613, 1336862611, 1336862609, 1336862378, 1336862314, 1336862277, 1336862275, 1336862000, 1336861931, 1336861889, 1336861885, 1336861884, 1336861883, 1336861832, 1336861829, 1336861826, 1336861822]} final : False mtd_id 4302 list_pids : [1336863768, 1336863760, 1336863756, 1336863753, 1336863483, 1336863468, 1336863465, 1336863462, 1336863459, 1336863426] 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, '2576950') ('4302', '20452637', '1336863768', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863760', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863756', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863753', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863483', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863468', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863465', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863462', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863459', None, None, None, None, None, '2576950') ('4302', None, None, None, None, None, None, None, '2576950') ('4302', '20452637', '1336863426', None, None, None, None, None, '2576950') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20452637', '1336863768', None, None, None, None, None, '2576950'), ('4302', '20452637', '1336863760', None, None, None, None, None, '2576950'), ('4302', '20452637', '1336863756', None, None, None, None, None, '2576950'), ('4302', '20452637', '1336863753', None, None, None, None, None, '2576950'), ('4302', '20452637', '1336863483', None, None, None, None, None, '2576950'), ('4302', '20452637', '1336863468', None, None, None, None, None, '2576950'), ('4302', '20452637', '1336863465', None, None, None, None, None, '2576950'), ('4302', '20452637', '1336863462', None, None, None, None, None, '2576950'), ('4302', '20452637', '1336863459', None, None, None, None, None, '2576950'), ('4302', '20452637', '1336863426', None, None, None, None, None, '2576950')] time used for this insertion : 0.015825748443603516 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.7658419609069824 time spend to save output : 0.016054391860961914 total time spend for step 4 : 3.7818963527679443 step5:split_time_score Tue Feb 11 17:25:05 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 : ['20452637'] 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 : [('20452637',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20452637) new photo added, this last batch is non a complet batch, should exit and reload photo caffe_path_current : About to save ! 2 After save, about to update current ! 2.19user 2.55system 0:09.47elapsed 50%CPU (0avgtext+0avgdata 160320maxresident)k 88408inputs+11840outputs (343major+74546minor)pagefaults 0swaps