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 : 3384712 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 (2711743) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2711743) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21935870 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2711743'] with mtr_portfolio_ids : ['21935870'] and first list_photo_ids : [] new path : /proc/3384712/ Name: python3 Umask: 0002 State: R (running) Tgid: 3384712 Ngid: 0 Pid: 3384712 PPid: 3384707 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3384712 NSpid: 3384712 NSpgid: 3383619 NSsid: 3383619 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98200 kB VmRSS: 98200 kB RssAnon: 59828 kB RssFile: 38372 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 560 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 50 nonvoluntary_ctxt_switches: 282 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3384712', 'Ngid': '0', 'Pid': '3384712', 'PPid': '3384707', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3384712', 'NSpid': '3384712', 'NSpgid': '3383619', 'NSsid': '3383619', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98200 kB', 'VmRSS': '98200 kB', 'RssAnon': '59828 kB', 'RssFile': '38372 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '560 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '50', 'nonvoluntary_ctxt_switches': '282'} ('datou_batch_current', '3384712', '1106848', '0', '1106848', '865596', '98200', b'', 'marlene', '2711743') 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 (21935870) 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 (2711743 ) ) 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 (21935870) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349210702, 'portfolio_id': 21935870}, {'photo_id': 1349210700, 'portfolio_id': 21935870}, {'photo_id': 1349210699, 'portfolio_id': 21935870}, {'photo_id': 1349210697, 'portfolio_id': 21935870}, {'photo_id': 1349210677, 'portfolio_id': 21935870}, {'photo_id': 1349210675, 'portfolio_id': 21935870}, {'photo_id': 1349210674, 'portfolio_id': 21935870}, {'photo_id': 1349210672, 'portfolio_id': 21935870}, {'photo_id': 1349210670, 'portfolio_id': 21935870}, {'photo_id': 1349210649, 'portfolio_id': 21935870}, {'photo_id': 1349210647, 'portfolio_id': 21935870}, {'photo_id': 1349210645, 'portfolio_id': 21935870}, {'photo_id': 1349210643, 'portfolio_id': 21935870}, {'photo_id': 1349210612, 'portfolio_id': 21935870}, {'photo_id': 1349210609, 'portfolio_id': 21935870}, {'photo_id': 1349210607, 'portfolio_id': 21935870}, {'photo_id': 1349210605, 'portfolio_id': 21935870}, {'photo_id': 1349210604, 'portfolio_id': 21935870}, {'photo_id': 1349210593, 'portfolio_id': 21935870}, {'photo_id': 1349210571, 'portfolio_id': 21935870}, {'photo_id': 1349210570, 'portfolio_id': 21935870}, {'photo_id': 1349210567, 'portfolio_id': 21935870}, {'photo_id': 1349210563, 'portfolio_id': 21935870}, {'photo_id': 1349210522, 'portfolio_id': 21935870}, {'photo_id': 1349210521, 'portfolio_id': 21935870}, {'photo_id': 1349210520, 'portfolio_id': 21935870}, {'photo_id': 1349210519, 'portfolio_id': 21935870}, {'photo_id': 1349210478, 'portfolio_id': 21935870}, {'photo_id': 1349210475, 'portfolio_id': 21935870}, {'photo_id': 1349210472, 'portfolio_id': 21935870}, {'photo_id': 1349210447, 'portfolio_id': 21935870}, {'photo_id': 1349210437, 'portfolio_id': 21935870}] map_portfolio_id_photo_id: {21935870: [1349210702, 1349210700, 1349210699, 1349210697, 1349210677, 1349210675, 1349210674, 1349210672, 1349210670, 1349210649, 1349210647, 1349210645, 1349210643, 1349210612, 1349210609, 1349210607, 1349210605, 1349210604, 1349210593, 1349210571, 1349210570, 1349210567, 1349210563, 1349210522, 1349210521, 1349210520, 1349210519, 1349210478, 1349210475, 1349210472, 1349210447, 1349210437]} ##### 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.016012191772460938 #### 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 Apr 1 06:40:28 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 (21935870) 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 : 21935870 get user id for portfolio 21935870 get sub ptf for main ptf 21935870, type 3726 and hashtags ['metal', 'mal_croppe', 'plastique', 'autre_refus', 'Carton_brun', 'Teint_Dans_La_Masse', 'flou', 'papier', 'Carton_gris', 'kraft', 'cartonnette', 'environnement'] 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`=21935870 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','plastique','autre_refus','Carton_brun','Teint_Dans_La_Masse','flou','papier','Carton_gris','kraft','cartonnette','environnement')) 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`=21935870 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','plastique','autre_refus','Carton_brun','Teint_Dans_La_Masse','flou','papier','Carton_gris','kraft','cartonnette','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 21935870, 'sub_port_id': 21935921, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439692, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33)}, 'autre_refus': {'main_port_id': 21935870, 'sub_port_id': 21935922, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439693, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33)}, 'kraft': {'main_port_id': 21935870, 'sub_port_id': 21935923, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439694, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33)}, 'mal_croppe': {'main_port_id': 21935870, 'sub_port_id': 21935924, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439695, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33)}, 'Carton_gris': {'main_port_id': 21935870, 'sub_port_id': 21935925, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439696, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33)}, 'papier': {'main_port_id': 21935870, 'sub_port_id': 21935926, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439697, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33)}, 'metal': {'main_port_id': 21935870, 'sub_port_id': 21935927, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439698, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33)}, 'environnement': {'main_port_id': 21935870, 'sub_port_id': 21935928, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439699, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 21935870, 'sub_port_id': 21935929, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439700, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33)}, 'flou': {'main_port_id': 21935870, 'sub_port_id': 21935930, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439701, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33)}, 'plastique': {'main_port_id': 21935870, 'sub_port_id': 21935931, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439702, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33)}, 'Carton_brun': {'main_port_id': 21935870, 'sub_port_id': 21935932, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439703, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21935921 , 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=21935870 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 (21935921) result : ((1349210602,), (1349210734,), (1349210735,), (1349210814,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21935870) result : ((1349210437,), (1349210447,), (1349210472,), (1349210475,), (1349210478,), (1349210519,), (1349210520,), (1349210521,), (1349210522,), (1349210563,), (1349210567,), (1349210570,), (1349210571,), (1349210593,), (1349210604,), (1349210605,), (1349210607,), (1349210609,), (1349210612,), (1349210643,), (1349210645,), (1349210647,), (1349210649,), (1349210670,), (1349210672,), (1349210674,), (1349210675,), (1349210677,), (1349210697,), (1349210699,), (1349210700,), (1349210702,)) 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 (1349210700) 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 21935922 , 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=21935870 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 (21935922) result : ((1349210601,), (1349210632,), (1349210633,), (1349210634,), (1349210733,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21935870) result : ((1349210437,), (1349210447,), (1349210472,), (1349210475,), (1349210478,), (1349210519,), (1349210520,), (1349210521,), (1349210522,), (1349210563,), (1349210567,), (1349210570,), (1349210571,), (1349210593,), (1349210604,), (1349210605,), (1349210607,), (1349210609,), (1349210612,), (1349210643,), (1349210645,), (1349210647,), (1349210649,), (1349210670,), (1349210672,), (1349210674,), (1349210675,), (1349210677,), (1349210697,), (1349210699,), (1349210700,), (1349210702,)) 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 (1349210700) 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 21935923 , 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=21935870 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 (21935923) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21935870) result : ((1349210437,), (1349210447,), (1349210472,), (1349210475,), (1349210478,), (1349210519,), (1349210520,), (1349210521,), (1349210522,), (1349210563,), (1349210567,), (1349210570,), (1349210571,), (1349210593,), (1349210604,), (1349210605,), (1349210607,), (1349210609,), (1349210612,), (1349210643,), (1349210645,), (1349210647,), (1349210649,), (1349210670,), (1349210672,), (1349210674,), (1349210675,), (1349210677,), (1349210697,), (1349210699,), (1349210700,), (1349210702,)) 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 (1349210700) 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 21935924 , 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=21935870 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 (21935924) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21935870) result : ((1349210437,), (1349210447,), (1349210472,), (1349210475,), (1349210478,), (1349210519,), (1349210520,), (1349210521,), (1349210522,), (1349210563,), (1349210567,), (1349210570,), (1349210571,), (1349210593,), (1349210604,), (1349210605,), (1349210607,), (1349210609,), (1349210612,), (1349210643,), (1349210645,), (1349210647,), (1349210649,), (1349210670,), (1349210672,), (1349210674,), (1349210675,), (1349210677,), (1349210697,), (1349210699,), (1349210700,), (1349210702,)) 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 (1349210700) 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 21935925 , 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=21935870 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 (21935925) result : ((1349210635,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21935870) result : ((1349210437,), (1349210447,), (1349210472,), (1349210475,), (1349210478,), (1349210519,), (1349210520,), (1349210521,), (1349210522,), (1349210563,), (1349210567,), (1349210570,), (1349210571,), (1349210593,), (1349210604,), (1349210605,), (1349210607,), (1349210609,), (1349210612,), (1349210643,), (1349210645,), (1349210647,), (1349210649,), (1349210670,), (1349210672,), (1349210674,), (1349210675,), (1349210677,), (1349210697,), (1349210699,), (1349210700,), (1349210702,)) 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 (1349210700) 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 21935926 , 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=21935870 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 (21935926) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21935870) result : ((1349210437,), (1349210447,), (1349210472,), (1349210475,), (1349210478,), (1349210519,), (1349210520,), (1349210521,), (1349210522,), (1349210563,), (1349210567,), (1349210570,), (1349210571,), (1349210593,), (1349210604,), (1349210605,), (1349210607,), (1349210609,), (1349210612,), (1349210643,), (1349210645,), (1349210647,), (1349210649,), (1349210670,), (1349210672,), (1349210674,), (1349210675,), (1349210677,), (1349210697,), (1349210699,), (1349210700,), (1349210702,)) 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 (1349210700) 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 21935927 , 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=21935870 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 (21935927) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21935870) result : ((1349210437,), (1349210447,), (1349210472,), (1349210475,), (1349210478,), (1349210519,), (1349210520,), (1349210521,), (1349210522,), (1349210563,), (1349210567,), (1349210570,), (1349210571,), (1349210593,), (1349210604,), (1349210605,), (1349210607,), (1349210609,), (1349210612,), (1349210643,), (1349210645,), (1349210647,), (1349210649,), (1349210670,), (1349210672,), (1349210674,), (1349210675,), (1349210677,), (1349210697,), (1349210699,), (1349210700,), (1349210702,)) 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 (1349210700) 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 21935928 , 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=21935870 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 (21935928) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21935870) result : ((1349210437,), (1349210447,), (1349210472,), (1349210475,), (1349210478,), (1349210519,), (1349210520,), (1349210521,), (1349210522,), (1349210563,), (1349210567,), (1349210570,), (1349210571,), (1349210593,), (1349210604,), (1349210605,), (1349210607,), (1349210609,), (1349210612,), (1349210643,), (1349210645,), (1349210647,), (1349210649,), (1349210670,), (1349210672,), (1349210674,), (1349210675,), (1349210677,), (1349210697,), (1349210699,), (1349210700,), (1349210702,)) 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 (1349210700) 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 21935929 , 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=21935870 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 (21935929) result : ((1349210595,), (1349210596,), (1349210597,), (1349210598,), (1349210599,), (1349210600,), (1349210621,), (1349210622,), (1349210623,), (1349210624,), (1349210625,), (1349210626,), (1349210627,), (1349210629,), (1349210630,), (1349210663,), (1349210664,), (1349210715,), (1349210716,), (1349210729,), (1349210730,), (1349210731,), (1349210732,), (1349210781,), (1349210810,), (1349210811,), (1349210812,), (1349210813,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21935870) result : ((1349210437,), (1349210447,), (1349210472,), (1349210475,), (1349210478,), (1349210519,), (1349210520,), (1349210521,), (1349210522,), (1349210563,), (1349210567,), (1349210570,), (1349210571,), (1349210593,), (1349210604,), (1349210605,), (1349210607,), (1349210609,), (1349210612,), (1349210643,), (1349210645,), (1349210647,), (1349210649,), (1349210670,), (1349210672,), (1349210674,), (1349210675,), (1349210677,), (1349210697,), (1349210699,), (1349210700,), (1349210702,)) 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 (1349210700) 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 21935930 , 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=21935870 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 (21935930) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21935870) result : ((1349210437,), (1349210447,), (1349210472,), (1349210475,), (1349210478,), (1349210519,), (1349210520,), (1349210521,), (1349210522,), (1349210563,), (1349210567,), (1349210570,), (1349210571,), (1349210593,), (1349210604,), (1349210605,), (1349210607,), (1349210609,), (1349210612,), (1349210643,), (1349210645,), (1349210647,), (1349210649,), (1349210670,), (1349210672,), (1349210674,), (1349210675,), (1349210677,), (1349210697,), (1349210699,), (1349210700,), (1349210702,)) 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 (1349210700) 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 21935931 , 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=21935870 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 (21935931) result : ((1349210603,), (1349210718,), (1349210719,), (1349210737,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21935870) result : ((1349210437,), (1349210447,), (1349210472,), (1349210475,), (1349210478,), (1349210519,), (1349210520,), (1349210521,), (1349210522,), (1349210563,), (1349210567,), (1349210570,), (1349210571,), (1349210593,), (1349210604,), (1349210605,), (1349210607,), (1349210609,), (1349210612,), (1349210643,), (1349210645,), (1349210647,), (1349210649,), (1349210670,), (1349210672,), (1349210674,), (1349210675,), (1349210677,), (1349210697,), (1349210699,), (1349210700,), (1349210702,)) 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 (1349210700) 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 21935932 , 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=21935870 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 (21935932) result : ((1349210636,), (1349210815,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21935870) result : ((1349210437,), (1349210447,), (1349210472,), (1349210475,), (1349210478,), (1349210519,), (1349210520,), (1349210521,), (1349210522,), (1349210563,), (1349210567,), (1349210570,), (1349210571,), (1349210593,), (1349210604,), (1349210605,), (1349210607,), (1349210609,), (1349210612,), (1349210643,), (1349210645,), (1349210647,), (1349210649,), (1349210670,), (1349210672,), (1349210674,), (1349210675,), (1349210677,), (1349210697,), (1349210699,), (1349210700,), (1349210702,)) 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 (1349210700) 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`=21935870 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','plastique','autre_refus','Carton_brun','Teint_Dans_La_Masse','flou','papier','Carton_gris','kraft','cartonnette','environnement')) 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`=21935870 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','plastique','autre_refus','Carton_brun','Teint_Dans_La_Masse','flou','papier','Carton_gris','kraft','cartonnette','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 21935870, 'sub_port_id': 21935933, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439704, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33, 1)}, 'autre_refus': {'main_port_id': 21935870, 'sub_port_id': 21935934, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439705, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33, 1)}, 'kraft': {'main_port_id': 21935870, 'sub_port_id': 21935935, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439706, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33, 1)}, 'mal_croppe': {'main_port_id': 21935870, 'sub_port_id': 21935936, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439707, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33, 1)}, 'Carton_gris': {'main_port_id': 21935870, 'sub_port_id': 21935937, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439708, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33, 1)}, 'papier': {'main_port_id': 21935870, 'sub_port_id': 21935938, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439709, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33, 1)}, 'metal': {'main_port_id': 21935870, 'sub_port_id': 21935939, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439710, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33, 1)}, 'environnement': {'main_port_id': 21935870, 'sub_port_id': 21935940, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439711, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 21935870, 'sub_port_id': 21935941, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439712, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33, 1)}, 'flou': {'main_port_id': 21935870, 'sub_port_id': 21935942, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439713, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33, 1)}, 'plastique': {'main_port_id': 21935870, 'sub_port_id': 21935943, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439714, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33, 1)}, 'Carton_brun': {'main_port_id': 21935870, 'sub_port_id': 21935944, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14439715, 'last_updated_at': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 6, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 6, 33, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21935933,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21935921 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21935934,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21935922 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21935935,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21935923 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21935936,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21935924 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21935937,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21935925 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21935938,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21935926 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21935939,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21935927 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21935940,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21935928 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21935941,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21935929 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21935942,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21935930 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21935943,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21935931 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21935944,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21935932 lien utilise dans velours : https://www.fotonower.com/velours/21935933,21935934,21935935,21935936,21935937,21935938,21935939,21935940,21935941,21935942,21935943,21935944?tags=cartonnette,autre_refus,kraft,mal_croppe,Carton_gris,papier,metal,environnement,Teint_Dans_La_Masse,flou,plastique,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21935870]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349210702, 1349210700, 1349210699, 1349210697, 1349210677, 1349210675, 1349210674, 1349210672, 1349210670] map_info['map_portfolio_photo'] : {21935870: [1349210702, 1349210700, 1349210699, 1349210697, 1349210677, 1349210675, 1349210674, 1349210672, 1349210670, 1349210649, 1349210647, 1349210645, 1349210643, 1349210612, 1349210609, 1349210607, 1349210605, 1349210604, 1349210593, 1349210571, 1349210570, 1349210567, 1349210563, 1349210522, 1349210521, 1349210520, 1349210519, 1349210478, 1349210475, 1349210472, 1349210447, 1349210437]} final : False mtd_id 4302 list_pids : [1349210702, 1349210700, 1349210699, 1349210697, 1349210677, 1349210675, 1349210674, 1349210672, 1349210670] Looping around the photos to save general results len do output : 1 /21935870. 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, '2711743') ('4302', '21935870', '1349210702', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210700', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210699', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210697', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210677', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210675', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210674', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210672', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210670', None, None, None, None, None, '2711743') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21935870', "{'cartonnette': 21935921, 'autre_refus': 21935922, 'kraft': 21935923, 'mal_croppe': 21935924, 'Carton_gris': 21935925, 'papier': 21935926, 'metal': 21935927, 'environnement': 21935928, 'Teint_Dans_La_Masse': 21935929, 'flou': 21935930, 'plastique': 21935931, 'Carton_brun': 21935932}", None, None, None, None, '2711743'), ('4302', '21935870', '1349210702', None, None, None, None, None, '2711743'), ('4302', '21935870', '1349210700', None, None, None, None, None, '2711743'), ('4302', '21935870', '1349210699', None, None, None, None, None, '2711743'), ('4302', '21935870', '1349210697', None, None, None, None, None, '2711743'), ('4302', '21935870', '1349210677', None, None, None, None, None, '2711743'), ('4302', '21935870', '1349210675', None, None, None, None, None, '2711743'), ('4302', '21935870', '1349210674', None, None, None, None, None, '2711743'), ('4302', '21935870', '1349210672', None, None, None, None, None, '2711743'), ('4302', '21935870', '1349210670', None, None, None, None, None, '2711743')] time used for this insertion : 0.014557838439941406 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6003234386444092 time spend to save output : 0.0149993896484375 total time spend for step 1 : 0.6153228282928467 step2:final Tue Apr 1 06:40:29 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 (21935870) 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 21935870 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349210478,1349210475,1349210472,1349210447,1349210437,1349210522,1349210521,1349210520,1349210519,1349210571,1349210570,1349210567,1349210563,1349210612,1349210609,1349210607,1349210605,1349210604,1349210649,1349210593,1349210647,1349210645,1349210643,1349210677,1349210675,1349210674,1349210672,1349210670,1349210702,1349210700,1349210699,1349210697); 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([21935870]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349210702: ('0.07344210490215151',), 1349210700: ('0.07344210490215151',), 1349210699: ('0.07344210490215151',), 1349210697: ('0.07344210490215151',), 1349210677: ('0.07344210490215151',), 1349210675: ('0.07344210490215151',), 1349210674: ('0.07344210490215151',), 1349210672: ('0.07344210490215151',), 1349210670: ('0.07344210490215151',)} new output for save of step final : {1349210702: ('0.07344210490215151',), 1349210700: ('0.07344210490215151',), 1349210699: ('0.07344210490215151',), 1349210697: ('0.07344210490215151',), 1349210677: ('0.07344210490215151',), 1349210675: ('0.07344210490215151',), 1349210674: ('0.07344210490215151',), 1349210672: ('0.07344210490215151',), 1349210670: ('0.07344210490215151',)} [1349210702, 1349210700, 1349210699, 1349210697, 1349210677, 1349210675, 1349210674, 1349210672, 1349210670] map_info['map_portfolio_photo'] : {21935870: [1349210702, 1349210700, 1349210699, 1349210697, 1349210677, 1349210675, 1349210674, 1349210672, 1349210670, 1349210649, 1349210647, 1349210645, 1349210643, 1349210612, 1349210609, 1349210607, 1349210605, 1349210604, 1349210593, 1349210571, 1349210570, 1349210567, 1349210563, 1349210522, 1349210521, 1349210520, 1349210519, 1349210478, 1349210475, 1349210472, 1349210447, 1349210437]} final : False mtd_id 4302 list_pids : [1349210702, 1349210700, 1349210699, 1349210697, 1349210677, 1349210675, 1349210674, 1349210672, 1349210670] Looping around the photos to save general results len do output : 9 /1349210702.Didn't retrieve data . /1349210700.Didn't retrieve data . /1349210699.Didn't retrieve data . /1349210697.Didn't retrieve data . /1349210677.Didn't retrieve data . /1349210675.Didn't retrieve data . /1349210674.Didn't retrieve data . /1349210672.Didn't retrieve data . /1349210670.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, '2711743') ('4302', '21935870', '1349210702', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210700', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210699', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210697', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210677', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210675', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210674', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210672', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210670', None, None, None, None, None, '2711743') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21935870', '1349210702', '0.07344210490215151', None, None, None, None, '2711743'), ('4302', '21935870', '1349210700', '0.07344210490215151', None, None, None, None, '2711743'), ('4302', '21935870', '1349210699', '0.07344210490215151', None, None, None, None, '2711743'), ('4302', '21935870', '1349210697', '0.07344210490215151', None, None, None, None, '2711743'), ('4302', '21935870', '1349210677', '0.07344210490215151', None, None, None, None, '2711743'), ('4302', '21935870', '1349210675', '0.07344210490215151', None, None, None, None, '2711743'), ('4302', '21935870', '1349210674', '0.07344210490215151', None, None, None, None, '2711743'), ('4302', '21935870', '1349210672', '0.07344210490215151', None, None, None, None, '2711743'), ('4302', '21935870', '1349210670', '0.07344210490215151', None, None, None, None, '2711743')] time used for this insertion : 0.017145872116088867 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.09146595001220703 time spend to save output : 0.019327878952026367 total time spend for step 2 : 0.1107938289642334 step3:velours_tree Tue Apr 1 06:40:29 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 : {21935870: [{'cartonnette': 21935921, 'autre_refus': 21935922, 'kraft': 21935923, 'mal_croppe': 21935924, 'Carton_gris': 21935925, 'papier': 21935926, 'metal': 21935927, 'environnement': 21935928, 'Teint_Dans_La_Masse': 21935929, 'flou': 21935930, 'plastique': 21935931, 'Carton_brun': 21935932}]} input_args_next_step : {21935870: ()} output_args : {21935870: [{'cartonnette': 21935921, 'autre_refus': 21935922, 'kraft': 21935923, 'mal_croppe': 21935924, 'Carton_gris': 21935925, 'papier': 21935926, 'metal': 21935927, 'environnement': 21935928, 'Teint_Dans_La_Masse': 21935929, 'flou': 21935930, 'plastique': 21935931, 'Carton_brun': 21935932}]} args : 21935870 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'cartonnette': 21935921, 'autre_refus': 21935922, 'kraft': 21935923, 'mal_croppe': 21935924, 'Carton_gris': 21935925, 'papier': 21935926, 'metal': 21935927, 'environnement': 21935928, 'Teint_Dans_La_Masse': 21935929, 'flou': 21935930, 'plastique': 21935931, 'Carton_brun': 21935932},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21935870) 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([21935870]) Inside saveOutput : final : False verbose : True ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 0.534203290939331 time spend to save output : 5.841255187988281e-05 total time spend for step 3 : 0.5342617034912109 step4:send_mail_cod Tue Apr 1 06:40:30 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 : {1349210702: ('0.07344210490215151',), 1349210700: ('0.07344210490215151',), 1349210699: ('0.07344210490215151',), 1349210697: ('0.07344210490215151',), 1349210677: ('0.07344210490215151',), 1349210675: ('0.07344210490215151',), 1349210674: ('0.07344210490215151',), 1349210672: ('0.07344210490215151',), 1349210670: ('0.07344210490215151',)} input_args_next_step : {1349210702: ()} output_args : {1349210702: ('0.07344210490215151',), 1349210700: ('0.07344210490215151',), 1349210699: ('0.07344210490215151',), 1349210697: ('0.07344210490215151',), 1349210677: ('0.07344210490215151',), 1349210675: ('0.07344210490215151',), 1349210674: ('0.07344210490215151',), 1349210672: ('0.07344210490215151',), 1349210670: ('0.07344210490215151',)} args : 1349210702 depend.output_id : 0 input_args_next_step : {1349210702: ('0.07344210490215151',), 1349210700: ()} output_args : {1349210702: ('0.07344210490215151',), 1349210700: ('0.07344210490215151',), 1349210699: ('0.07344210490215151',), 1349210697: ('0.07344210490215151',), 1349210677: ('0.07344210490215151',), 1349210675: ('0.07344210490215151',), 1349210674: ('0.07344210490215151',), 1349210672: ('0.07344210490215151',), 1349210670: ('0.07344210490215151',)} args : 1349210700 depend.output_id : 0 input_args_next_step : {1349210702: ('0.07344210490215151',), 1349210700: ('0.07344210490215151',), 1349210699: ()} output_args : {1349210702: ('0.07344210490215151',), 1349210700: ('0.07344210490215151',), 1349210699: ('0.07344210490215151',), 1349210697: ('0.07344210490215151',), 1349210677: ('0.07344210490215151',), 1349210675: ('0.07344210490215151',), 1349210674: ('0.07344210490215151',), 1349210672: ('0.07344210490215151',), 1349210670: ('0.07344210490215151',)} args : 1349210699 depend.output_id : 0 input_args_next_step : {1349210702: ('0.07344210490215151',), 1349210700: ('0.07344210490215151',), 1349210699: ('0.07344210490215151',), 1349210697: ()} output_args : {1349210702: ('0.07344210490215151',), 1349210700: ('0.07344210490215151',), 1349210699: ('0.07344210490215151',), 1349210697: ('0.07344210490215151',), 1349210677: ('0.07344210490215151',), 1349210675: ('0.07344210490215151',), 1349210674: ('0.07344210490215151',), 1349210672: ('0.07344210490215151',), 1349210670: ('0.07344210490215151',)} args : 1349210697 depend.output_id : 0 input_args_next_step : {1349210702: ('0.07344210490215151',), 1349210700: ('0.07344210490215151',), 1349210699: ('0.07344210490215151',), 1349210697: ('0.07344210490215151',), 1349210677: ()} output_args : {1349210702: ('0.07344210490215151',), 1349210700: ('0.07344210490215151',), 1349210699: ('0.07344210490215151',), 1349210697: ('0.07344210490215151',), 1349210677: ('0.07344210490215151',), 1349210675: ('0.07344210490215151',), 1349210674: ('0.07344210490215151',), 1349210672: ('0.07344210490215151',), 1349210670: ('0.07344210490215151',)} args : 1349210677 depend.output_id : 0 input_args_next_step : {1349210702: ('0.07344210490215151',), 1349210700: ('0.07344210490215151',), 1349210699: ('0.07344210490215151',), 1349210697: ('0.07344210490215151',), 1349210677: ('0.07344210490215151',), 1349210675: ()} output_args : {1349210702: ('0.07344210490215151',), 1349210700: ('0.07344210490215151',), 1349210699: ('0.07344210490215151',), 1349210697: ('0.07344210490215151',), 1349210677: ('0.07344210490215151',), 1349210675: ('0.07344210490215151',), 1349210674: ('0.07344210490215151',), 1349210672: ('0.07344210490215151',), 1349210670: ('0.07344210490215151',)} args : 1349210675 depend.output_id : 0 input_args_next_step : {1349210702: ('0.07344210490215151',), 1349210700: ('0.07344210490215151',), 1349210699: ('0.07344210490215151',), 1349210697: ('0.07344210490215151',), 1349210677: ('0.07344210490215151',), 1349210675: ('0.07344210490215151',), 1349210674: ()} output_args : {1349210702: ('0.07344210490215151',), 1349210700: ('0.07344210490215151',), 1349210699: ('0.07344210490215151',), 1349210697: ('0.07344210490215151',), 1349210677: ('0.07344210490215151',), 1349210675: ('0.07344210490215151',), 1349210674: ('0.07344210490215151',), 1349210672: ('0.07344210490215151',), 1349210670: ('0.07344210490215151',)} args : 1349210674 depend.output_id : 0 input_args_next_step : {1349210702: ('0.07344210490215151',), 1349210700: ('0.07344210490215151',), 1349210699: ('0.07344210490215151',), 1349210697: ('0.07344210490215151',), 1349210677: ('0.07344210490215151',), 1349210675: ('0.07344210490215151',), 1349210674: ('0.07344210490215151',), 1349210672: ()} output_args : {1349210702: ('0.07344210490215151',), 1349210700: ('0.07344210490215151',), 1349210699: ('0.07344210490215151',), 1349210697: ('0.07344210490215151',), 1349210677: ('0.07344210490215151',), 1349210675: ('0.07344210490215151',), 1349210674: ('0.07344210490215151',), 1349210672: ('0.07344210490215151',), 1349210670: ('0.07344210490215151',)} args : 1349210672 depend.output_id : 0 input_args_next_step : {1349210702: ('0.07344210490215151',), 1349210700: ('0.07344210490215151',), 1349210699: ('0.07344210490215151',), 1349210697: ('0.07344210490215151',), 1349210677: ('0.07344210490215151',), 1349210675: ('0.07344210490215151',), 1349210674: ('0.07344210490215151',), 1349210672: ('0.07344210490215151',), 1349210670: ()} output_args : {1349210702: ('0.07344210490215151',), 1349210700: ('0.07344210490215151',), 1349210699: ('0.07344210490215151',), 1349210697: ('0.07344210490215151',), 1349210677: ('0.07344210490215151',), 1349210675: ('0.07344210490215151',), 1349210674: ('0.07344210490215151',), 1349210672: ('0.07344210490215151',), 1349210670: ('0.07344210490215151',)} args : 1349210670 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 : {21935870: [{'cartonnette': 21935921, 'autre_refus': 21935922, 'kraft': 21935923, 'mal_croppe': 21935924, 'Carton_gris': 21935925, 'papier': 21935926, 'metal': 21935927, 'environnement': 21935928, 'Teint_Dans_La_Masse': 21935929, 'flou': 21935930, 'plastique': 21935931, 'Carton_brun': 21935932}]} input_args_next_step : {1349210702: ('0.07344210490215151',), 1349210700: ('0.07344210490215151',), 1349210699: ('0.07344210490215151',), 1349210697: ('0.07344210490215151',), 1349210677: ('0.07344210490215151',), 1349210675: ('0.07344210490215151',), 1349210674: ('0.07344210490215151',), 1349210672: ('0.07344210490215151',), 1349210670: ('0.07344210490215151',), 21935870: ()} output_args : {21935870: [{'cartonnette': 21935921, 'autre_refus': 21935922, 'kraft': 21935923, 'mal_croppe': 21935924, 'Carton_gris': 21935925, 'papier': 21935926, 'metal': 21935927, 'environnement': 21935928, 'Teint_Dans_La_Masse': 21935929, 'flou': 21935930, 'plastique': 21935931, 'Carton_brun': 21935932}]} args : 21935870 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :10, first value : ('0.07344210490215151',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21935870) 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 (1349210702,1349210700,1349210699,1349210697,1349210677,1349210675,1349210674,1349210672,1349210670) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349210670 begin to download photo : 1349210674 begin to download photo : 1349210677 begin to download photo : 1349210699 begin to download photo : 1349210702 download finish for photo 1349210702 download finish for photo 1349210677 begin to download photo : 1349210697 download finish for photo 1349210699 begin to download photo : 1349210700 download finish for photo 1349210670 begin to download photo : 1349210672 download finish for photo 1349210674 begin to download photo : 1349210675 download finish for photo 1349210700 download finish for photo 1349210697 download finish for photo 1349210672 download finish for photo 1349210675 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P21935870_01-04-2025_06_40_30.pdf 21935921 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=21935921 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349210602: '1743482007_1926851_1349210519_81ab827b29129a9670de3bc3a78d1e8e_rle_crop_3742332464_0.png', 1349210734: '1743482247_1932391_1349210649_2b9d0c9c44c4ef755687c1097a9ea54a_rle_crop_3742333357_0.png', 1349210735: '1743482247_1932391_1349210593_3857bcf3314b4b5494459f3bad627adb_rle_crop_3742333456_0.png', 1349210814: '1743482371_4178732_1349210699_b86638e865eb03ac6dad0832df2e8237_rle_crop_3742334057_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/5960c6f13772c1b717c4ea4d2d4d40dd_28093380.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/7c7c140c33359972b056aecab67a6f2b_41283528.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/eb7787d6f2cb162226848b5eb41dcf45_47316999.png change filename to text .imagette219359211743482430/ imagette219359211743482430/1743482007_1926851_1349210519_81ab827b29129a9670de3bc3a78d1e8e_rle_crop_3742332464_0.png.png imagette219359211743482430/1743482247_1932391_1349210593_3857bcf3314b4b5494459f3bad627adb_rle_crop_3742333456_0.png.png imagette219359211743482430/1743482371_4178732_1349210699_b86638e865eb03ac6dad0832df2e8237_rle_crop_3742334057_0.png.png imagette219359211743482430/1743482247_1932391_1349210649_2b9d0c9c44c4ef755687c1097a9ea54a_rle_crop_3742333357_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/8d12447a26d5d8eb7375ac4d65a4dfb3_56083707.png imagette219359211743482430 21935922 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=21935922 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349210601: '1743482007_1926851_1349210520_8c4240f4d4c87afc0f71d5a693cf36bf_rle_crop_3742332449_0.png', 1349210632: '1743482030_4176266_1349210522_239552ac961593a90a0ca097dd50e848_rle_crop_3742332651_0.png', 1349210633: '1743482030_4176266_1349210478_05cc6629356914122202eb3e52ef3d62_rle_crop_3742332668_0.png', 1349210634: '1743482030_4176266_1349210475_9cc8650dd9cbb32b922881d5d05015fc_rle_crop_3742332706_0.png', 1349210733: '1743482247_1932391_1349210605_351480471feaa118637ab0b8affdc1b3_rle_crop_3742333398_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/36a592b03b8657359fb657007c9f690a_6701126.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/d8a89115f181c14da4d1110685617492_55242674.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/66718d8843bf64c297cc613da8b25556_2246285.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/e09672175030d7cbf480c3e014307b1e_88541410.png change filename to text .imagette219359221743482430/ imagette219359221743482430/1743482007_1926851_1349210520_8c4240f4d4c87afc0f71d5a693cf36bf_rle_crop_3742332449_0.png.png imagette219359221743482430/1743482030_4176266_1349210522_239552ac961593a90a0ca097dd50e848_rle_crop_3742332651_0.png.png imagette219359221743482430/1743482030_4176266_1349210475_9cc8650dd9cbb32b922881d5d05015fc_rle_crop_3742332706_0.png.png imagette219359221743482430/1743482030_4176266_1349210478_05cc6629356914122202eb3e52ef3d62_rle_crop_3742332668_0.png.png imagette219359221743482430/1743482247_1932391_1349210605_351480471feaa118637ab0b8affdc1b3_rle_crop_3742333398_0.png.png imagette219359231743482431/ imagette219359241743482431/ imagette219359271743482431/ imagette219359301743482431/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/e03a92ee464862648675fbbcc934c81e_95681693.png imagette219359221743482430 21935923 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=21935923 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219359231743482431 21935924 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=21935924 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219359241743482431 21935927 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=21935927 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219359271743482431 21935930 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=21935930 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219359301743482431 21935931 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=21935931 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349210603: '1743482007_1926851_1349210519_81ab827b29129a9670de3bc3a78d1e8e_rle_crop_3742332471_0.png', 1349210718: '1743482251_4177801_1349210612_b4fd83ed7c0237eeefe54dbee25d354d_rle_crop_3742333335_0.png', 1349210719: '1743482251_4177801_1349210612_b4fd83ed7c0237eeefe54dbee25d354d_rle_crop_3742333342_0.png', 1349210737: '1743482247_1932391_1349210607_3f3a6718f22158efd3d8bdf93928f822_rle_crop_3742333389_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/ce4fbf7f42c05b64cf39b159b25e191b_45537478.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/da1b73544dbf61e7cc7ab168b9a55081_18116486.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/437e12b7d375dd71a3a1d424cec21d6c_27709488.png change filename to text .imagette219359311743482431/ imagette219359311743482431/1743482251_4177801_1349210612_b4fd83ed7c0237eeefe54dbee25d354d_rle_crop_3742333335_0.png.png imagette219359311743482431/1743482251_4177801_1349210612_b4fd83ed7c0237eeefe54dbee25d354d_rle_crop_3742333342_0.png.png imagette219359311743482431/1743482247_1932391_1349210607_3f3a6718f22158efd3d8bdf93928f822_rle_crop_3742333389_0.png.png imagette219359311743482431/1743482007_1926851_1349210519_81ab827b29129a9670de3bc3a78d1e8e_rle_crop_3742332471_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/c2105e9dae14b0245e8bce1c8748c5ff_19104414.png imagette219359311743482431 21935925 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=21935925 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349210635: '1743482030_4176266_1349210472_db9865f2b3915632f2e3935c16783304_rle_crop_3742332718_0.png'} change filename to text .imagette219359251743482431/ imagette219359251743482431/1743482030_4176266_1349210472_db9865f2b3915632f2e3935c16783304_rle_crop_3742332718_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/6f16ae4639a443ad4ce395fd35f31762_28192248.png imagette219359251743482431 21935929 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=21935929 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349210630: '1743482030_4176266_1349210437_c9d45008022d62d6a20e80df584874b6_rle_crop_3742332745_0.png', 1349210813: '1743482371_4178732_1349210699_b86638e865eb03ac6dad0832df2e8237_rle_crop_3742334059_0.png', 1349210812: '1743482371_4178732_1349210699_b86638e865eb03ac6dad0832df2e8237_rle_crop_3742334063_0.png', 1349210811: '1743482371_4178732_1349210700_941ae6c8a2a223c061b71e79c72c2e6a_rle_crop_3742334046_0.png', 1349210810: '1743482371_4178732_1349210700_941ae6c8a2a223c061b71e79c72c2e6a_rle_crop_3742334048_0.png', 1349210781: '1743482351_4178496_1349210670_7d3cc89592f4fb2c179eae1210ddfcae_rle_crop_3742333799_0.png', 1349210732: '1743482247_1932391_1349210593_3857bcf3314b4b5494459f3bad627adb_rle_crop_3742333458_0.png', 1349210731: '1743482247_1932391_1349210593_3857bcf3314b4b5494459f3bad627adb_rle_crop_3742333459_0.png', 1349210730: '1743482247_1932391_1349210649_2b9d0c9c44c4ef755687c1097a9ea54a_rle_crop_3742333361_0.png', 1349210729: '1743482247_1932391_1349210649_2b9d0c9c44c4ef755687c1097a9ea54a_rle_crop_3742333363_0.png', 1349210716: '1743482251_4177801_1349210612_b4fd83ed7c0237eeefe54dbee25d354d_rle_crop_3742333338_0.png', 1349210715: '1743482251_4177801_1349210612_b4fd83ed7c0237eeefe54dbee25d354d_rle_crop_3742333339_0.png', 1349210664: '1743482126_1929566_1349210563_7955d18949a62ffe5130eb7046247122_rle_crop_3742332917_0.png', 1349210663: '1743482126_1929566_1349210567_a9e162a2cf1c0696e02628d37584f091_rle_crop_3742332909_0.png', 1349210595: '1743482007_1926851_1349210521_6354074bb3358ba6508506236534df58_rle_crop_3742332445_0.png', 1349210629: '1743482030_4176266_1349210437_c9d45008022d62d6a20e80df584874b6_rle_crop_3742332749_0.png', 1349210627: '1743482030_4176266_1349210437_c9d45008022d62d6a20e80df584874b6_rle_crop_3742332744_0.png', 1349210626: '1743482030_4176266_1349210447_a2849c7fa5c8fcf62b2e137bc2dde76c_rle_crop_3742332733_0.png', 1349210625: '1743482030_4176266_1349210447_a2849c7fa5c8fcf62b2e137bc2dde76c_rle_crop_3742332731_0.png', 1349210624: '1743482030_4176266_1349210447_a2849c7fa5c8fcf62b2e137bc2dde76c_rle_crop_3742332728_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/4f8a20cf3b3409d8714315e45638de3a_35180733.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/50f5601ed0e00cf30e84fd463e63732b_3002988.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/5a017c58a986e1d46618faac86e1e9d5_28670779.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/004fd90dc94948e0f654a97f916dc93c_23432407.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/5b07d01453f5eefd9f1e6cea9c37bfc3_24487959.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/c527724126ae276f5fce5496850f2cfd_99497205.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/79956d33b5de359f3336fe525964e283_17938269.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/8a873f08e955c5680e22aef5a6dcd62f_79705036.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/d29f30d8d5a18a6937a6f43f6914e7e4_87683468.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/d3d78bc965f0b4edde9febd7da32a302_58564409.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/91cf9d1b27cb1ff5cfab13ba95fbcdfd_36017628.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/4662cb7bf69d02e18a6290fae5d4afad_29839265.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/07164b886cfed48024afc44e037efb49_35237170.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/35ca23b24973c27fba3af64a616be459_18715794.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/a2eccda5ea1edb8d26369a33b9a9c35b_95039697.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/644b84dceefbdc492e33f4634de3a3a3_16466787.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/03e6e481b2cd5da9ac4ed18dfd21535c_36379462.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/37eceef4fd4b8edaf78e084aa96ee65e_8392769.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/75fea1231486771c5b8d2b0b95aaf529_50848245.png change filename to text .imagette219359291743482431/ imagette219359291743482431/1743482030_4176266_1349210447_a2849c7fa5c8fcf62b2e137bc2dde76c_rle_crop_3742332731_0.png.png imagette219359291743482431/1743482371_4178732_1349210700_941ae6c8a2a223c061b71e79c72c2e6a_rle_crop_3742334046_0.png.png imagette219359291743482431/1743482251_4177801_1349210612_b4fd83ed7c0237eeefe54dbee25d354d_rle_crop_3742333338_0.png.png imagette219359291743482431/1743482247_1932391_1349210593_3857bcf3314b4b5494459f3bad627adb_rle_crop_3742333459_0.png.png imagette219359291743482431/1743482126_1929566_1349210567_a9e162a2cf1c0696e02628d37584f091_rle_crop_3742332909_0.png.png imagette219359291743482431/1743482030_4176266_1349210447_a2849c7fa5c8fcf62b2e137bc2dde76c_rle_crop_3742332728_0.png.png imagette219359291743482431/1743482247_1932391_1349210649_2b9d0c9c44c4ef755687c1097a9ea54a_rle_crop_3742333363_0.png.png imagette219359291743482431/1743482351_4178496_1349210670_7d3cc89592f4fb2c179eae1210ddfcae_rle_crop_3742333799_0.png.png imagette219359291743482431/1743482247_1932391_1349210649_2b9d0c9c44c4ef755687c1097a9ea54a_rle_crop_3742333361_0.png.png imagette219359291743482431/1743482126_1929566_1349210563_7955d18949a62ffe5130eb7046247122_rle_crop_3742332917_0.png.png imagette219359291743482431/1743482030_4176266_1349210447_a2849c7fa5c8fcf62b2e137bc2dde76c_rle_crop_3742332733_0.png.png imagette219359291743482431/1743482030_4176266_1349210437_c9d45008022d62d6a20e80df584874b6_rle_crop_3742332744_0.png.png imagette219359291743482431/1743482371_4178732_1349210699_b86638e865eb03ac6dad0832df2e8237_rle_crop_3742334063_0.png.png imagette219359291743482431/1743482371_4178732_1349210700_941ae6c8a2a223c061b71e79c72c2e6a_rle_crop_3742334048_0.png.png imagette219359291743482431/1743482030_4176266_1349210437_c9d45008022d62d6a20e80df584874b6_rle_crop_3742332745_0.png.png imagette219359291743482431/1743482371_4178732_1349210699_b86638e865eb03ac6dad0832df2e8237_rle_crop_3742334059_0.png.png imagette219359291743482431/1743482251_4177801_1349210612_b4fd83ed7c0237eeefe54dbee25d354d_rle_crop_3742333339_0.png.png imagette219359291743482431/1743482007_1926851_1349210521_6354074bb3358ba6508506236534df58_rle_crop_3742332445_0.png.png imagette219359291743482431/1743482247_1932391_1349210593_3857bcf3314b4b5494459f3bad627adb_rle_crop_3742333458_0.png.png imagette219359291743482431/1743482030_4176266_1349210437_c9d45008022d62d6a20e80df584874b6_rle_crop_3742332749_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/da4d358f53e7622101493d8df463c5d1_28762558.png imagette219359291743482431 21935932 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=21935932 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349210636: '1743482030_4176266_1349210522_239552ac961593a90a0ca097dd50e848_rle_crop_3742332653_0.png', 1349210815: '1743482371_4178732_1349210699_b86638e865eb03ac6dad0832df2e8237_rle_crop_3742334064_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/3470929a0376f5106e6b886137f59156_58277801.png change filename to text .imagette219359321743482432/ imagette219359321743482432/1743482030_4176266_1349210522_239552ac961593a90a0ca097dd50e848_rle_crop_3742332653_0.png.png imagette219359321743482432/1743482371_4178732_1349210699_b86638e865eb03ac6dad0832df2e8237_rle_crop_3742334064_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/13586145e82b3ee661f0c313fc87f0dd_12232739.png imagette219359321743482432 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21935870 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21935933,21935934,21935935,21935936,21935937,21935938,21935939,21935940,21935941,21935942,21935943,21935944?tags=cartonnette,autre_refus,kraft,mal_croppe,Carton_gris,papier,metal,environnement,Teint_Dans_La_Masse,flou,plastique,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1349210702] : ('0.07344210490215151',) no score found for photo 1349210702 We are sending mail with results at report@fotonower.com args[1349210700] : ('0.07344210490215151',) no score found for photo 1349210700 We are sending mail with results at report@fotonower.com args[1349210699] : ('0.07344210490215151',) no score found for photo 1349210699 We are sending mail with results at report@fotonower.com args[1349210697] : ('0.07344210490215151',) no score found for photo 1349210697 We are sending mail with results at report@fotonower.com args[1349210677] : ('0.07344210490215151',) no score found for photo 1349210677 We are sending mail with results at report@fotonower.com args[1349210675] : ('0.07344210490215151',) no score found for photo 1349210675 We are sending mail with results at report@fotonower.com args[1349210674] : ('0.07344210490215151',) no score found for photo 1349210674 We are sending mail with results at report@fotonower.com args[1349210672] : ('0.07344210490215151',) no score found for photo 1349210672 We are sending mail with results at report@fotonower.com args[1349210670] : ('0.07344210490215151',) no score found for photo 1349210670 We are sending mail with results at report@fotonower.com refus_total : 0.07344210490215151 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=21935870 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_P21935870_01-04-2025_06_40_30.pdf results_Auto_P21935870_01-04-2025_06_40_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21935870_01-04-2025_06_40_30.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','21935870','results_Auto_P21935870_01-04-2025_06_40_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21935870_01-04-2025_06_40_30.pdf','pdf','','0.2','0.07344210490215151') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21935870]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349210702, 1349210700, 1349210699, 1349210697, 1349210677, 1349210675, 1349210674, 1349210672, 1349210670] map_info['map_portfolio_photo'] : {21935870: [1349210702, 1349210700, 1349210699, 1349210697, 1349210677, 1349210675, 1349210674, 1349210672, 1349210670, 1349210649, 1349210647, 1349210645, 1349210643, 1349210612, 1349210609, 1349210607, 1349210605, 1349210604, 1349210593, 1349210571, 1349210570, 1349210567, 1349210563, 1349210522, 1349210521, 1349210520, 1349210519, 1349210478, 1349210475, 1349210472, 1349210447, 1349210437]} final : False mtd_id 4302 list_pids : [1349210702, 1349210700, 1349210699, 1349210697, 1349210677, 1349210675, 1349210674, 1349210672, 1349210670] 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, '2711743') ('4302', '21935870', '1349210702', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210700', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210699', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210697', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210677', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210675', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210674', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210672', None, None, None, None, None, '2711743') ('4302', None, None, None, None, None, None, None, '2711743') ('4302', '21935870', '1349210670', None, None, None, None, None, '2711743') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21935870', '1349210702', None, None, None, None, None, '2711743'), ('4302', '21935870', '1349210700', None, None, None, None, None, '2711743'), ('4302', '21935870', '1349210699', None, None, None, None, None, '2711743'), ('4302', '21935870', '1349210697', None, None, None, None, None, '2711743'), ('4302', '21935870', '1349210677', None, None, None, None, None, '2711743'), ('4302', '21935870', '1349210675', None, None, None, None, None, '2711743'), ('4302', '21935870', '1349210674', None, None, None, None, None, '2711743'), ('4302', '21935870', '1349210672', None, None, None, None, None, '2711743'), ('4302', '21935870', '1349210670', None, None, None, None, None, '2711743')] time used for this insertion : 0.01683354377746582 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.870753049850464 time spend to save output : 0.017167329788208008 total time spend for step 4 : 3.887920379638672 step5:split_time_score Tue Apr 1 06:40:34 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 : ['21935870'] 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 : [('21935870',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21935870) 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.74user 2.12system 0:08.64elapsed 56%CPU (0avgtext+0avgdata 159760maxresident)k 66072inputs+10400outputs (288major+71030minor)pagefaults 0swaps