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 : 3092521 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 (2717323) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2717323) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984181 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2717323'] with mtr_portfolio_ids : ['21984181'] and first list_photo_ids : [] new path : /proc/3092521/ Name: python3 Umask: 0002 State: R (running) Tgid: 3092521 Ngid: 0 Pid: 3092521 PPid: 3092520 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3092521 NSpid: 3092521 NSpgid: 3089556 NSsid: 3089556 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97728 kB VmRSS: 97728 kB RssAnon: 59796 kB RssFile: 37932 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 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: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3092521', 'Ngid': '0', 'Pid': '3092521', 'PPid': '3092520', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3092521', 'NSpid': '3092521', 'NSpgid': '3089556', 'NSsid': '3089556', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97728 kB', 'VmRSS': '97728 kB', 'RssAnon': '59796 kB', 'RssFile': '37932 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 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': '95'} ('datou_batch_current', '3092521', '1106928', '0', '1106928', '865676', '97728', b'', 'marlene', '2717323') 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 (21984181) 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 (2717323 ) ) 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 (21984181) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349582572, 'portfolio_id': 21984181}, {'photo_id': 1349582568, 'portfolio_id': 21984181}, {'photo_id': 1349582563, 'portfolio_id': 21984181}, {'photo_id': 1349582558, 'portfolio_id': 21984181}, {'photo_id': 1349582552, 'portfolio_id': 21984181}, {'photo_id': 1349582525, 'portfolio_id': 21984181}, {'photo_id': 1349582368, 'portfolio_id': 21984181}, {'photo_id': 1349582348, 'portfolio_id': 21984181}, {'photo_id': 1349582341, 'portfolio_id': 21984181}, {'photo_id': 1349582319, 'portfolio_id': 21984181}, {'photo_id': 1349582279, 'portfolio_id': 21984181}, {'photo_id': 1349582272, 'portfolio_id': 21984181}, {'photo_id': 1349582264, 'portfolio_id': 21984181}, {'photo_id': 1349582257, 'portfolio_id': 21984181}, {'photo_id': 1349582244, 'portfolio_id': 21984181}, {'photo_id': 1349582211, 'portfolio_id': 21984181}, {'photo_id': 1349582202, 'portfolio_id': 21984181}, {'photo_id': 1349582196, 'portfolio_id': 21984181}, {'photo_id': 1349582186, 'portfolio_id': 21984181}, {'photo_id': 1349582173, 'portfolio_id': 21984181}, {'photo_id': 1349582170, 'portfolio_id': 21984181}, {'photo_id': 1349582034, 'portfolio_id': 21984181}, {'photo_id': 1349582028, 'portfolio_id': 21984181}, {'photo_id': 1349582022, 'portfolio_id': 21984181}, {'photo_id': 1349582016, 'portfolio_id': 21984181}, {'photo_id': 1349582012, 'portfolio_id': 21984181}, {'photo_id': 1349581986, 'portfolio_id': 21984181}, {'photo_id': 1349581979, 'portfolio_id': 21984181}, {'photo_id': 1349581969, 'portfolio_id': 21984181}, {'photo_id': 1349581964, 'portfolio_id': 21984181}, {'photo_id': 1349581960, 'portfolio_id': 21984181}, {'photo_id': 1349581955, 'portfolio_id': 21984181}, {'photo_id': 1349581908, 'portfolio_id': 21984181}, {'photo_id': 1349581902, 'portfolio_id': 21984181}, {'photo_id': 1349581888, 'portfolio_id': 21984181}, {'photo_id': 1349581870, 'portfolio_id': 21984181}, {'photo_id': 1349581720, 'portfolio_id': 21984181}, {'photo_id': 1349581668, 'portfolio_id': 21984181}, {'photo_id': 1349581606, 'portfolio_id': 21984181}, {'photo_id': 1349581515, 'portfolio_id': 21984181}, {'photo_id': 1349581462, 'portfolio_id': 21984181}, {'photo_id': 1349581426, 'portfolio_id': 21984181}, {'photo_id': 1349581321, 'portfolio_id': 21984181}, {'photo_id': 1349581275, 'portfolio_id': 21984181}, {'photo_id': 1349581271, 'portfolio_id': 21984181}, {'photo_id': 1349581266, 'portfolio_id': 21984181}, {'photo_id': 1349581252, 'portfolio_id': 21984181}, {'photo_id': 1349581244, 'portfolio_id': 21984181}, {'photo_id': 1349581208, 'portfolio_id': 21984181}, {'photo_id': 1349581200, 'portfolio_id': 21984181}, {'photo_id': 1349581189, 'portfolio_id': 21984181}, {'photo_id': 1349581175, 'portfolio_id': 21984181}, {'photo_id': 1349581105, 'portfolio_id': 21984181}, {'photo_id': 1349581100, 'portfolio_id': 21984181}, {'photo_id': 1349581090, 'portfolio_id': 21984181}, {'photo_id': 1349581082, 'portfolio_id': 21984181}, {'photo_id': 1349581078, 'portfolio_id': 21984181}] map_portfolio_id_photo_id: {21984181: [1349582572, 1349582568, 1349582563, 1349582558, 1349582552, 1349582525, 1349582368, 1349582348, 1349582341, 1349582319, 1349582279, 1349582272, 1349582264, 1349582257, 1349582244, 1349582211, 1349582202, 1349582196, 1349582186, 1349582173, 1349582170, 1349582034, 1349582028, 1349582022, 1349582016, 1349582012, 1349581986, 1349581979, 1349581969, 1349581964, 1349581960, 1349581955, 1349581908, 1349581902, 1349581888, 1349581870, 1349581720, 1349581668, 1349581606, 1349581515, 1349581462, 1349581426, 1349581321, 1349581275, 1349581271, 1349581266, 1349581252, 1349581244, 1349581208, 1349581200, 1349581189, 1349581175, 1349581105, 1349581100, 1349581090, 1349581082, 1349581078]} ##### 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.015242815017700195 #### 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 Wed Apr 2 19:42:56 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 (21984181) 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 : 21984181 get user id for portfolio 21984181 get sub ptf for main ptf 21984181, type 3726 and hashtags ['papier', 'Carton_gris', 'plastique', 'metal', 'Carton_brun', 'mal_croppe', 'kraft', 'cartonnette', 'Teint_Dans_La_Masse', 'flou', 'autre_refus', '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`=21984181 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','plastique','metal','Carton_brun','mal_croppe','kraft','cartonnette','Teint_Dans_La_Masse','flou','autre_refus','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`=21984181 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','plastique','metal','Carton_brun','mal_croppe','kraft','cartonnette','Teint_Dans_La_Masse','flou','autre_refus','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21984181, 'sub_port_id': 21984192, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481973, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'kraft': {'main_port_id': 21984181, 'sub_port_id': 21984193, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481974, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'plastique': {'main_port_id': 21984181, 'sub_port_id': 21984194, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481975, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'mal_croppe': {'main_port_id': 21984181, 'sub_port_id': 21984195, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481976, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'cartonnette': {'main_port_id': 21984181, 'sub_port_id': 21984196, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481977, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'papier': {'main_port_id': 21984181, 'sub_port_id': 21984197, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481978, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'Carton_brun': {'main_port_id': 21984181, 'sub_port_id': 21984198, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481979, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'metal': {'main_port_id': 21984181, 'sub_port_id': 21984199, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481980, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'flou': {'main_port_id': 21984181, 'sub_port_id': 21984200, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481981, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'Carton_gris': {'main_port_id': 21984181, 'sub_port_id': 21984201, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481982, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'autre_refus': {'main_port_id': 21984181, 'sub_port_id': 21984202, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481983, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'environnement': {'main_port_id': 21984181, 'sub_port_id': 21984203, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481984, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21984192 , 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=21984181 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 (21984192) result : ((1349581489,), (1349581805,), (1349581806,), (1349581934,), (1349581935,), (1349582078,), (1349582130,), (1349582178,), (1349582179,), (1349582180,), (1349582181,), (1349582182,), (1349582183,), (1349582184,), (1349582185,), (1349582289,), (1349582299,), (1349582349,), (1349582350,), (1349582351,), (1349582352,), (1349582353,), (1349582354,), (1349582355,), (1349582616,), (1349582617,), (1349582618,), (1349582619,), (1349582629,), (1349582630,), (1349582631,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,), (1349582170,), (1349582173,), (1349582186,), (1349582196,), (1349582202,), (1349582211,), (1349582244,), (1349582257,), (1349582264,), (1349582272,), (1349582279,), (1349582319,), (1349582341,), (1349582348,), (1349582368,), (1349582525,), (1349582552,), (1349582558,), (1349582563,), (1349582568,), (1349582572,)) 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 (1349581200,1349581100) 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 21984193 , 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=21984181 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; Catched exception ! Connect or reconnect ! SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984193) result : ((1349581554,), (1349582209,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,), (1349582170,), (1349582173,), (1349582186,), (1349582196,), (1349582202,), (1349582211,), (1349582244,), (1349582257,), (1349582264,), (1349582272,), (1349582279,), (1349582319,), (1349582341,), (1349582348,), (1349582368,), (1349582525,), (1349582552,), (1349582558,), (1349582563,), (1349582568,), (1349582572,)) 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 (1349581200,1349581100) 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 21984194 , 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=21984181 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 (21984194) result : ((1349581540,), (1349581836,), (1349582203,), (1349582206,), (1349582207,), (1349582373,), (1349582374,), (1349582640,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,), (1349582170,), (1349582173,), (1349582186,), (1349582196,), (1349582202,), (1349582211,), (1349582244,), (1349582257,), (1349582264,), (1349582272,), (1349582279,), (1349582319,), (1349582341,), (1349582348,), (1349582368,), (1349582525,), (1349582552,), (1349582558,), (1349582563,), (1349582568,), (1349582572,)) 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 (1349581200,1349581100) 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 21984195 , 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=21984181 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 (21984195) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,), (1349582170,), (1349582173,), (1349582186,), (1349582196,), (1349582202,), (1349582211,), (1349582244,), (1349582257,), (1349582264,), (1349582272,), (1349582279,), (1349582319,), (1349582341,), (1349582348,), (1349582368,), (1349582525,), (1349582552,), (1349582558,), (1349582563,), (1349582568,), (1349582572,)) 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 (1349581200,1349581100) 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 21984196 , 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=21984181 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 (21984196) result : ((1349581506,), (1349581939,), (1349582193,), (1349582293,), (1349582303,), (1349582364,), (1349582365,), (1349582366,), (1349582623,), (1349582635,), (1349582636,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,), (1349582170,), (1349582173,), (1349582186,), (1349582196,), (1349582202,), (1349582211,), (1349582244,), (1349582257,), (1349582264,), (1349582272,), (1349582279,), (1349582319,), (1349582341,), (1349582348,), (1349582368,), (1349582525,), (1349582552,), (1349582558,), (1349582563,), (1349582568,), (1349582572,)) 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 (1349581200,1349581100) 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 21984197 , 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=21984181 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 (21984197) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,), (1349582170,), (1349582173,), (1349582186,), (1349582196,), (1349582202,), (1349582211,), (1349582244,), (1349582257,), (1349582264,), (1349582272,), (1349582279,), (1349582319,), (1349582341,), (1349582348,), (1349582368,), (1349582525,), (1349582552,), (1349582558,), (1349582563,), (1349582568,), (1349582572,)) 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 (1349581200,1349581100) 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 21984198 , 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=21984181 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 (21984198) result : ((1349581520,), (1349581833,), (1349581834,), (1349581941,), (1349582136,), (1349582195,), (1349582198,), (1349582296,), (1349582370,), (1349582625,), (1349582638,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,), (1349582170,), (1349582173,), (1349582186,), (1349582196,), (1349582202,), (1349582211,), (1349582244,), (1349582257,), (1349582264,), (1349582272,), (1349582279,), (1349582319,), (1349582341,), (1349582348,), (1349582368,), (1349582525,), (1349582552,), (1349582558,), (1349582563,), (1349582568,), (1349582572,)) 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 (1349581200,1349581100) 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 21984199 , 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=21984181 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 (21984199) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,), (1349582170,), (1349582173,), (1349582186,), (1349582196,), (1349582202,), (1349582211,), (1349582244,), (1349582257,), (1349582264,), (1349582272,), (1349582279,), (1349582319,), (1349582341,), (1349582348,), (1349582368,), (1349582525,), (1349582552,), (1349582558,), (1349582563,), (1349582568,), (1349582572,)) 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 (1349581200,1349581100) 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 21984200 , 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=21984181 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 (21984200) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,), (1349582170,), (1349582173,), (1349582186,), (1349582196,), (1349582202,), (1349582211,), (1349582244,), (1349582257,), (1349582264,), (1349582272,), (1349582279,), (1349582319,), (1349582341,), (1349582348,), (1349582368,), (1349582525,), (1349582552,), (1349582558,), (1349582563,), (1349582568,), (1349582572,)) 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 (1349581200,1349581100) 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 21984201 , 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=21984181 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 (21984201) result : ((1349581830,), (1349581831,), (1349581832,), (1349581937,), (1349581938,), (1349582188,), (1349582189,), (1349582191,), (1349582292,), (1349582359,), (1349582360,), (1349582361,), (1349582362,), (1349582632,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,), (1349582170,), (1349582173,), (1349582186,), (1349582196,), (1349582202,), (1349582211,), (1349582244,), (1349582257,), (1349582264,), (1349582272,), (1349582279,), (1349582319,), (1349582341,), (1349582348,), (1349582368,), (1349582525,), (1349582552,), (1349582558,), (1349582563,), (1349582568,), (1349582572,)) 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 (1349581200,1349581100) 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 21984202 , 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=21984181 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 (21984202) result : ((1349581812,), (1349581813,), (1349581815,), (1349582290,), (1349582301,), (1349582357,), (1349582620,), (1349582621,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,), (1349582170,), (1349582173,), (1349582186,), (1349582196,), (1349582202,), (1349582211,), (1349582244,), (1349582257,), (1349582264,), (1349582272,), (1349582279,), (1349582319,), (1349582341,), (1349582348,), (1349582368,), (1349582525,), (1349582552,), (1349582558,), (1349582563,), (1349582568,), (1349582572,)) 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 (1349581200,1349581100) 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 21984203 , 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=21984181 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 (21984203) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,), (1349582170,), (1349582173,), (1349582186,), (1349582196,), (1349582202,), (1349582211,), (1349582244,), (1349582257,), (1349582264,), (1349582272,), (1349582279,), (1349582319,), (1349582341,), (1349582348,), (1349582368,), (1349582525,), (1349582552,), (1349582558,), (1349582563,), (1349582568,), (1349582572,)) 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 (1349581200,1349581100) 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`=21984181 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','plastique','metal','Carton_brun','mal_croppe','kraft','cartonnette','Teint_Dans_La_Masse','flou','autre_refus','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`=21984181 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','plastique','metal','Carton_brun','mal_croppe','kraft','cartonnette','Teint_Dans_La_Masse','flou','autre_refus','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21984181, 'sub_port_id': 21984204, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481985, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'kraft': {'main_port_id': 21984181, 'sub_port_id': 21984205, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481986, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'plastique': {'main_port_id': 21984181, 'sub_port_id': 21984206, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481987, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'mal_croppe': {'main_port_id': 21984181, 'sub_port_id': 21984207, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481988, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'cartonnette': {'main_port_id': 21984181, 'sub_port_id': 21984208, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481989, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'papier': {'main_port_id': 21984181, 'sub_port_id': 21984209, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481990, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'Carton_brun': {'main_port_id': 21984181, 'sub_port_id': 21984210, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481991, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'metal': {'main_port_id': 21984181, 'sub_port_id': 21984211, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481992, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'flou': {'main_port_id': 21984181, 'sub_port_id': 21984212, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481993, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'Carton_gris': {'main_port_id': 21984181, 'sub_port_id': 21984213, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481994, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'autre_refus': {'main_port_id': 21984181, 'sub_port_id': 21984214, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481995, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'environnement': {'main_port_id': 21984181, 'sub_port_id': 21984215, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481996, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984204,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984192 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984205,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984193 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984206,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984194 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984207,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984195 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984208,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984196 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984209,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984197 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984210,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984198 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984211,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984199 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984212,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984200 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984213,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984201 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984214,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984202 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984215,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984203 lien utilise dans velours : https://www.fotonower.com/velours/21984204,21984205,21984206,21984207,21984208,21984209,21984210,21984211,21984212,21984213,21984214,21984215?tags=Teint_Dans_La_Masse,kraft,plastique,mal_croppe,cartonnette,papier,Carton_brun,metal,flou,Carton_gris,autre_refus,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21984181]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349582572, 1349582568, 1349582563, 1349582558, 1349582552, 1349582525] map_info['map_portfolio_photo'] : {21984181: [1349582572, 1349582568, 1349582563, 1349582558, 1349582552, 1349582525, 1349582368, 1349582348, 1349582341, 1349582319, 1349582279, 1349582272, 1349582264, 1349582257, 1349582244, 1349582211, 1349582202, 1349582196, 1349582186, 1349582173, 1349582170, 1349582034, 1349582028, 1349582022, 1349582016, 1349582012, 1349581986, 1349581979, 1349581969, 1349581964, 1349581960, 1349581955, 1349581908, 1349581902, 1349581888, 1349581870, 1349581720, 1349581668, 1349581606, 1349581515, 1349581462, 1349581426, 1349581321, 1349581275, 1349581271, 1349581266, 1349581252, 1349581244, 1349581208, 1349581200, 1349581189, 1349581175, 1349581105, 1349581100, 1349581090, 1349581082, 1349581078]} final : False mtd_id 4302 list_pids : [1349582572, 1349582568, 1349582563, 1349582558, 1349582552, 1349582525] Looping around the photos to save general results len do output : 1 /21984181. 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, '2717323') ('4302', '21984181', '1349582572', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582568', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582563', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582558', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582552', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582525', None, None, None, None, None, '2717323') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '21984181', "{'Teint_Dans_La_Masse': 21984192, 'kraft': 21984193, 'plastique': 21984194, 'mal_croppe': 21984195, 'cartonnette': 21984196, 'papier': 21984197, 'Carton_brun': 21984198, 'metal': 21984199, 'flou': 21984200, 'Carton_gris': 21984201, 'autre_refus': 21984202, 'environnement': 21984203}", None, None, None, None, '2717323'), ('4302', '21984181', '1349582572', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582568', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582563', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582558', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582552', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582525', None, None, None, None, None, '2717323')] time used for this insertion : 0.016900300979614258 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.81834077835083 time spend to save output : 0.01720905303955078 total time spend for step 1 : 2.835549831390381 step2:final Wed Apr 2 19:42:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21984181) 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 21984181 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349581105,1349581100,1349581090,1349581082,1349581078,1349581208,1349581200,1349581189,1349581175,1349581321,1349581275,1349581271,1349581266,1349581252,1349581244,1349581720,1349581668,1349581606,1349581515,1349581462,1349581426,1349581908,1349581902,1349581888,1349581870,1349581986,1349581979,1349581969,1349581964,1349581960,1349581955,1349582034,1349582028,1349582022,1349582016,1349582012,1349582211,1349582202,1349582196,1349582186,1349582173,1349582170,1349582279,1349582272,1349582264,1349582257,1349582244,1349582368,1349582348,1349582341,1349582319,1349582572,1349582568,1349582563,1349582558,1349582552,1349582525); 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([21984181]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349582572: ('0.06887501727147781',), 1349582568: ('0.06887501727147781',), 1349582563: ('0.06887501727147781',), 1349582558: ('0.06887501727147781',), 1349582552: ('0.06887501727147781',), 1349582525: ('0.06887501727147781',)} new output for save of step final : {1349582572: ('0.06887501727147781',), 1349582568: ('0.06887501727147781',), 1349582563: ('0.06887501727147781',), 1349582558: ('0.06887501727147781',), 1349582552: ('0.06887501727147781',), 1349582525: ('0.06887501727147781',)} [1349582572, 1349582568, 1349582563, 1349582558, 1349582552, 1349582525] map_info['map_portfolio_photo'] : {21984181: [1349582572, 1349582568, 1349582563, 1349582558, 1349582552, 1349582525, 1349582368, 1349582348, 1349582341, 1349582319, 1349582279, 1349582272, 1349582264, 1349582257, 1349582244, 1349582211, 1349582202, 1349582196, 1349582186, 1349582173, 1349582170, 1349582034, 1349582028, 1349582022, 1349582016, 1349582012, 1349581986, 1349581979, 1349581969, 1349581964, 1349581960, 1349581955, 1349581908, 1349581902, 1349581888, 1349581870, 1349581720, 1349581668, 1349581606, 1349581515, 1349581462, 1349581426, 1349581321, 1349581275, 1349581271, 1349581266, 1349581252, 1349581244, 1349581208, 1349581200, 1349581189, 1349581175, 1349581105, 1349581100, 1349581090, 1349581082, 1349581078]} final : False mtd_id 4302 list_pids : [1349582572, 1349582568, 1349582563, 1349582558, 1349582552, 1349582525] Looping around the photos to save general results len do output : 6 /1349582572.Didn't retrieve data . /1349582568.Didn't retrieve data . /1349582563.Didn't retrieve data . /1349582558.Didn't retrieve data . /1349582552.Didn't retrieve data . /1349582525.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, '2717323') ('4302', '21984181', '1349582572', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582568', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582563', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582558', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582552', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582525', None, None, None, None, None, '2717323') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '21984181', '1349582572', '0.06887501727147781', None, None, None, None, '2717323'), ('4302', '21984181', '1349582568', '0.06887501727147781', None, None, None, None, '2717323'), ('4302', '21984181', '1349582563', '0.06887501727147781', None, None, None, None, '2717323'), ('4302', '21984181', '1349582558', '0.06887501727147781', None, None, None, None, '2717323'), ('4302', '21984181', '1349582552', '0.06887501727147781', None, None, None, None, '2717323'), ('4302', '21984181', '1349582525', '0.06887501727147781', None, None, None, None, '2717323')] time used for this insertion : 0.013469457626342773 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.22930240631103516 time spend to save output : 0.01389932632446289 total time spend for step 2 : 0.24320173263549805 step3:velours_tree Wed Apr 2 19:42:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21984181: [{'Teint_Dans_La_Masse': 21984192, 'kraft': 21984193, 'plastique': 21984194, 'mal_croppe': 21984195, 'cartonnette': 21984196, 'papier': 21984197, 'Carton_brun': 21984198, 'metal': 21984199, 'flou': 21984200, 'Carton_gris': 21984201, 'autre_refus': 21984202, 'environnement': 21984203}]} input_args_next_step : {21984181: ()} output_args : {21984181: [{'Teint_Dans_La_Masse': 21984192, 'kraft': 21984193, 'plastique': 21984194, 'mal_croppe': 21984195, 'cartonnette': 21984196, 'papier': 21984197, 'Carton_brun': 21984198, 'metal': 21984199, 'flou': 21984200, 'Carton_gris': 21984201, 'autre_refus': 21984202, 'environnement': 21984203}]} args : 21984181 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 : ({'Teint_Dans_La_Masse': 21984192, 'kraft': 21984193, 'plastique': 21984194, 'mal_croppe': 21984195, 'cartonnette': 21984196, 'papier': 21984197, 'Carton_brun': 21984198, 'metal': 21984199, 'flou': 21984200, 'Carton_gris': 21984201, 'autre_refus': 21984202, 'environnement': 21984203},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21984181) 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([21984181]) 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.3215298652648926 time spend to save output : 5.2928924560546875e-05 total time spend for step 3 : 0.3215827941894531 step4:send_mail_cod Wed Apr 2 19:42:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349582572: ('0.06887501727147781',), 1349582568: ('0.06887501727147781',), 1349582563: ('0.06887501727147781',), 1349582558: ('0.06887501727147781',), 1349582552: ('0.06887501727147781',), 1349582525: ('0.06887501727147781',)} input_args_next_step : {1349582572: ()} output_args : {1349582572: ('0.06887501727147781',), 1349582568: ('0.06887501727147781',), 1349582563: ('0.06887501727147781',), 1349582558: ('0.06887501727147781',), 1349582552: ('0.06887501727147781',), 1349582525: ('0.06887501727147781',)} args : 1349582572 depend.output_id : 0 input_args_next_step : {1349582572: ('0.06887501727147781',), 1349582568: ()} output_args : {1349582572: ('0.06887501727147781',), 1349582568: ('0.06887501727147781',), 1349582563: ('0.06887501727147781',), 1349582558: ('0.06887501727147781',), 1349582552: ('0.06887501727147781',), 1349582525: ('0.06887501727147781',)} args : 1349582568 depend.output_id : 0 input_args_next_step : {1349582572: ('0.06887501727147781',), 1349582568: ('0.06887501727147781',), 1349582563: ()} output_args : {1349582572: ('0.06887501727147781',), 1349582568: ('0.06887501727147781',), 1349582563: ('0.06887501727147781',), 1349582558: ('0.06887501727147781',), 1349582552: ('0.06887501727147781',), 1349582525: ('0.06887501727147781',)} args : 1349582563 depend.output_id : 0 input_args_next_step : {1349582572: ('0.06887501727147781',), 1349582568: ('0.06887501727147781',), 1349582563: ('0.06887501727147781',), 1349582558: ()} output_args : {1349582572: ('0.06887501727147781',), 1349582568: ('0.06887501727147781',), 1349582563: ('0.06887501727147781',), 1349582558: ('0.06887501727147781',), 1349582552: ('0.06887501727147781',), 1349582525: ('0.06887501727147781',)} args : 1349582558 depend.output_id : 0 input_args_next_step : {1349582572: ('0.06887501727147781',), 1349582568: ('0.06887501727147781',), 1349582563: ('0.06887501727147781',), 1349582558: ('0.06887501727147781',), 1349582552: ()} output_args : {1349582572: ('0.06887501727147781',), 1349582568: ('0.06887501727147781',), 1349582563: ('0.06887501727147781',), 1349582558: ('0.06887501727147781',), 1349582552: ('0.06887501727147781',), 1349582525: ('0.06887501727147781',)} args : 1349582552 depend.output_id : 0 input_args_next_step : {1349582572: ('0.06887501727147781',), 1349582568: ('0.06887501727147781',), 1349582563: ('0.06887501727147781',), 1349582558: ('0.06887501727147781',), 1349582552: ('0.06887501727147781',), 1349582525: ()} output_args : {1349582572: ('0.06887501727147781',), 1349582568: ('0.06887501727147781',), 1349582563: ('0.06887501727147781',), 1349582558: ('0.06887501727147781',), 1349582552: ('0.06887501727147781',), 1349582525: ('0.06887501727147781',)} args : 1349582525 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 : {21984181: [{'Teint_Dans_La_Masse': 21984192, 'kraft': 21984193, 'plastique': 21984194, 'mal_croppe': 21984195, 'cartonnette': 21984196, 'papier': 21984197, 'Carton_brun': 21984198, 'metal': 21984199, 'flou': 21984200, 'Carton_gris': 21984201, 'autre_refus': 21984202, 'environnement': 21984203}]} input_args_next_step : {1349582572: ('0.06887501727147781',), 1349582568: ('0.06887501727147781',), 1349582563: ('0.06887501727147781',), 1349582558: ('0.06887501727147781',), 1349582552: ('0.06887501727147781',), 1349582525: ('0.06887501727147781',), 21984181: ()} output_args : {21984181: [{'Teint_Dans_La_Masse': 21984192, 'kraft': 21984193, 'plastique': 21984194, 'mal_croppe': 21984195, 'cartonnette': 21984196, 'papier': 21984197, 'Carton_brun': 21984198, 'metal': 21984199, 'flou': 21984200, 'Carton_gris': 21984201, 'autre_refus': 21984202, 'environnement': 21984203}]} args : 21984181 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 :7, first value : ('0.06887501727147781',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21984181) 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 (1349582572,1349582568,1349582563,1349582558,1349582552,1349582525) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349582525 begin to download photo : 1349582558 begin to download photo : 1349582568 download finish for photo 1349582558 begin to download photo : 1349582563 download finish for photo 1349582525 begin to download photo : 1349582552 download finish for photo 1349582568 begin to download photo : 1349582572 download finish for photo 1349582572 download finish for photo 1349582563 download finish for photo 1349582552 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 : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P21984181_02-04-2025_19_42_59.pdf 21984193 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=21984193 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349581554: '1743615213_1321481_1349581200_377540fc07e6f718a616e4fbf1623276_rle_crop_3744574026_0.png', 1349582209: '1743615447_626786_1349581606_91b39d9b41e299b7fa6e32b13ac0b48b_rle_crop_3744578264_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8666c2c193177f3344b21578b8479a24_20271941.png change filename to text .imagette219841931743615779/ imagette219841931743615779/1743615213_1321481_1349581200_377540fc07e6f718a616e4fbf1623276_rle_crop_3744574026_0.png.png imagette219841931743615779/1743615447_626786_1349581606_91b39d9b41e299b7fa6e32b13ac0b48b_rle_crop_3744578264_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7f19fed2a7063f3847d0dfd7abb2d8f8_551554.png imagette219841931743615779 21984194 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=21984194 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349581540: '1743615213_1321481_1349581200_377540fc07e6f718a616e4fbf1623276_rle_crop_3744574028_0.png', 1349581836: '1743615233_1321766_1349581100_ec6f1a9df781c1d42c22e55b9f32a927_rle_crop_3744574335_0.png', 1349582203: '1743615447_626786_1349581668_c4e437dc144a4472e527c0d49809aa13_rle_crop_3744578256_0.png', 1349582206: '1743615447_626786_1349581515_1df4cce79e9452c25542674849661c42_rle_crop_3744578284_0.png', 1349582207: '1743615447_626786_1349581426_1127bd9fbb60531849342ffd9200baf4_rle_crop_3744578311_0.png', 1349582373: '1743615574_1324850_1349582034_93479b412d96dfdd338eb89708578b2b_rle_crop_3744578925_0.png', 1349582374: '1743615574_1324850_1349581969_3cd0674a0c47d8e34aa6003d98cec7c0_rle_crop_3744578960_0.png', 1349582640: '1743615691_1326233_1349582257_e917923e6547e2c268eeea5783d01a7f_rle_crop_3744583231_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/5379a684f4a8c22c01864e3ffe55fc05_21303892.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/51b5441ec58c5ef734c5e9b61605fa90_60706513.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/13d84fae6f203b0e8010524d38995045_10445753.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/3b8534aae2e987e8c0512423e77389bb_68723852.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e65b9b0380a7ecf3000dafa32ff54851_17504535.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d9833e12dbcd200903ac456b9b188be4_71640322.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/66367499deefff91a65f654e72f33ca1_7105311.png change filename to text .imagette219841941743615780/ imagette219841941743615780/1743615233_1321766_1349581100_ec6f1a9df781c1d42c22e55b9f32a927_rle_crop_3744574335_0.png.png imagette219841941743615780/1743615447_626786_1349581668_c4e437dc144a4472e527c0d49809aa13_rle_crop_3744578256_0.png.png imagette219841941743615780/1743615213_1321481_1349581200_377540fc07e6f718a616e4fbf1623276_rle_crop_3744574028_0.png.png imagette219841941743615780/1743615574_1324850_1349581969_3cd0674a0c47d8e34aa6003d98cec7c0_rle_crop_3744578960_0.png.png imagette219841941743615780/1743615447_626786_1349581426_1127bd9fbb60531849342ffd9200baf4_rle_crop_3744578311_0.png.png imagette219841941743615780/1743615691_1326233_1349582257_e917923e6547e2c268eeea5783d01a7f_rle_crop_3744583231_0.png.png imagette219841941743615780/1743615574_1324850_1349582034_93479b412d96dfdd338eb89708578b2b_rle_crop_3744578925_0.png.png imagette219841941743615780/1743615447_626786_1349581515_1df4cce79e9452c25542674849661c42_rle_crop_3744578284_0.png.png imagette219841951743615780/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e6d141bfa5b437dc7e46d0f351569c2e_64119327.png imagette219841941743615780 21984195 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=21984195 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219841951743615780 21984196 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=21984196 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349581506: '1743615213_1321481_1349581189_9c625dfede861c3bfc03b366e8d75ecb_rle_crop_3744574045_0.png', 1349581939: '1743615310_1322783_1349581252_472cc5abc1292e36490a1ceea72659e2_rle_crop_3744575480_0.png', 1349582193: '1743615447_626786_1349581908_a4efb7b03ec578ae261aee58b9b27c30_rle_crop_3744578232_0.png', 1349582293: '1743615552_1324612_1349582028_7f1338ea4402d6636239e0cb26bc9b1f_rle_crop_3744578580_0.png', 1349582303: '1743615568_3537346_1349581986_22601f980705777a5f5e4944c7189a8b_rle_crop_3744578624_0.png', 1349582364: '1743615574_1324850_1349582034_93479b412d96dfdd338eb89708578b2b_rle_crop_3744578920_0.png', 1349582365: '1743615574_1324850_1349581969_3cd0674a0c47d8e34aa6003d98cec7c0_rle_crop_3744578957_0.png', 1349582366: '1743615574_1324850_1349581960_97032e6a03b9b340e29eac63f361db98_rle_crop_3744579007_0.png', 1349582623: '1743615685_3541716_1349582319_bc5646e72be03b7ef125f9a9928b2d95_rle_crop_3744583143_0.png', 1349582635: '1743615691_1326233_1349582264_911717e9628d872704b6f2f8f93882fa_rle_crop_3744583221_0.png', 1349582636: '1743615691_1326233_1349582264_911717e9628d872704b6f2f8f93882fa_rle_crop_3744583223_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ba6803eeae04601311d06e8814e448b8_77506408.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/acb4e488fc0ee8c261ed5d243799c1ea_83431188.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/dc011abaf1796602db8275cefa6cd79e_50161935.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/1f9fb64d6db36d766dca79f99f75e174_50983802.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f3d80b024e02a7a4cc7ccc22e27511f1_74472117.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/bdd3060d0a3ec67837707ddaed23d490_7603446.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/3babafa4e315eb24c56592fb8150dd4b_51540139.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4e1ddce5b163bdcc478bc41d3db69737_80994473.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/53740ff84b4f1a810bd954ac71bd0217_13857879.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/6f1314d234ad4540b8d58daa7e39ee6e_68040870.png change filename to text .imagette219841961743615780/ imagette219841961743615780/1743615574_1324850_1349582034_93479b412d96dfdd338eb89708578b2b_rle_crop_3744578920_0.png.png imagette219841961743615780/1743615691_1326233_1349582264_911717e9628d872704b6f2f8f93882fa_rle_crop_3744583223_0.png.png imagette219841961743615780/1743615310_1322783_1349581252_472cc5abc1292e36490a1ceea72659e2_rle_crop_3744575480_0.png.png imagette219841961743615780/1743615685_3541716_1349582319_bc5646e72be03b7ef125f9a9928b2d95_rle_crop_3744583143_0.png.png imagette219841961743615780/1743615447_626786_1349581908_a4efb7b03ec578ae261aee58b9b27c30_rle_crop_3744578232_0.png.png imagette219841961743615780/1743615552_1324612_1349582028_7f1338ea4402d6636239e0cb26bc9b1f_rle_crop_3744578580_0.png.png imagette219841961743615780/1743615574_1324850_1349581960_97032e6a03b9b340e29eac63f361db98_rle_crop_3744579007_0.png.png imagette219841961743615780/1743615691_1326233_1349582264_911717e9628d872704b6f2f8f93882fa_rle_crop_3744583221_0.png.png imagette219841961743615780/1743615568_3537346_1349581986_22601f980705777a5f5e4944c7189a8b_rle_crop_3744578624_0.png.png imagette219841961743615780/1743615213_1321481_1349581189_9c625dfede861c3bfc03b366e8d75ecb_rle_crop_3744574045_0.png.png imagette219841961743615780/1743615574_1324850_1349581969_3cd0674a0c47d8e34aa6003d98cec7c0_rle_crop_3744578957_0.png.png imagette219841991743615781/ imagette219842001743615781/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ba9fa3057ee15744471e1e2a19fe8c6b_83704148.png imagette219841961743615780 21984199 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=21984199 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219841991743615781 21984200 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=21984200 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219842001743615781 21984202 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=21984202 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349581812: '1743615233_1321766_1349581208_39264f3ae4510826fa55c154929e1951_rle_crop_3744574286_0.png', 1349581813: '1743615233_1321766_1349581100_ec6f1a9df781c1d42c22e55b9f32a927_rle_crop_3744574339_0.png', 1349581815: '1743615233_1321766_1349581100_ec6f1a9df781c1d42c22e55b9f32a927_rle_crop_3744574334_0.png', 1349582290: '1743615552_1324612_1349582028_7f1338ea4402d6636239e0cb26bc9b1f_rle_crop_3744578579_0.png', 1349582301: '1743615568_3537346_1349581986_22601f980705777a5f5e4944c7189a8b_rle_crop_3744578626_0.png', 1349582357: '1743615574_1324850_1349581955_01403d2868442e75f2bf9b87006fe00d_rle_crop_3744579024_0.png', 1349582620: '1743615685_3541716_1349582341_0a18cb88e2bff67c81e723c2082d2570_rle_crop_3744582395_0.png', 1349582621: '1743615685_3541716_1349582319_bc5646e72be03b7ef125f9a9928b2d95_rle_crop_3744583146_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/405af4e1db18728eacf206f18d42e882_36172403.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/0a32fc981f603c56bb33fe5fda4e723f_32002640.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/aa22f81c878b4fbfdfe0392c5540f790_8562745.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/14e2372cff0322ab868f60239bb99f74_81650714.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2cb1343b7a119a2518842b1c8ab7ef6c_48127774.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e2bac450dd2b38ab7ae165a014c3dda1_48498249.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/203ee828a59067507dd20507c60398ef_2071084.png change filename to text .imagette219842021743615781/ imagette219842021743615781/1743615574_1324850_1349581955_01403d2868442e75f2bf9b87006fe00d_rle_crop_3744579024_0.png.png imagette219842021743615781/1743615568_3537346_1349581986_22601f980705777a5f5e4944c7189a8b_rle_crop_3744578626_0.png.png imagette219842021743615781/1743615685_3541716_1349582319_bc5646e72be03b7ef125f9a9928b2d95_rle_crop_3744583146_0.png.png imagette219842021743615781/1743615552_1324612_1349582028_7f1338ea4402d6636239e0cb26bc9b1f_rle_crop_3744578579_0.png.png imagette219842021743615781/1743615233_1321766_1349581100_ec6f1a9df781c1d42c22e55b9f32a927_rle_crop_3744574339_0.png.png imagette219842021743615781/1743615233_1321766_1349581100_ec6f1a9df781c1d42c22e55b9f32a927_rle_crop_3744574334_0.png.png imagette219842021743615781/1743615233_1321766_1349581208_39264f3ae4510826fa55c154929e1951_rle_crop_3744574286_0.png.png imagette219842021743615781/1743615685_3541716_1349582341_0a18cb88e2bff67c81e723c2082d2570_rle_crop_3744582395_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c9a6df4d6cc569936ccf93690471eaf0_87905090.png imagette219842021743615781 21984192 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=21984192 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349582289: '1743615552_1324612_1349582028_7f1338ea4402d6636239e0cb26bc9b1f_rle_crop_3744578587_0.png', 1349582631: '1743615691_1326233_1349582244_f8c5bbec202e0ce89bbb0ad0f4f51822_rle_crop_3744583294_0.png', 1349582630: '1743615691_1326233_1349582244_f8c5bbec202e0ce89bbb0ad0f4f51822_rle_crop_3744583298_0.png', 1349582629: '1743615691_1326233_1349582264_911717e9628d872704b6f2f8f93882fa_rle_crop_3744583226_0.png', 1349582619: '1743615685_3541716_1349582319_bc5646e72be03b7ef125f9a9928b2d95_rle_crop_3744583147_0.png', 1349582618: '1743615685_3541716_1349582319_bc5646e72be03b7ef125f9a9928b2d95_rle_crop_3744583148_0.png', 1349582617: '1743615685_3541716_1349582341_0a18cb88e2bff67c81e723c2082d2570_rle_crop_3744582400_0.png', 1349582616: '1743615685_3541716_1349582341_0a18cb88e2bff67c81e723c2082d2570_rle_crop_3744582397_0.png', 1349582355: '1743615574_1324850_1349581955_01403d2868442e75f2bf9b87006fe00d_rle_crop_3744579025_0.png', 1349582354: '1743615574_1324850_1349581955_01403d2868442e75f2bf9b87006fe00d_rle_crop_3744579028_0.png', 1349582353: '1743615574_1324850_1349581955_01403d2868442e75f2bf9b87006fe00d_rle_crop_3744579026_0.png', 1349582352: '1743615574_1324850_1349581960_97032e6a03b9b340e29eac63f361db98_rle_crop_3744579016_0.png', 1349582351: '1743615574_1324850_1349581969_3cd0674a0c47d8e34aa6003d98cec7c0_rle_crop_3744578964_0.png', 1349582350: '1743615574_1324850_1349581979_1eca4f3fd40fd4a7342a3d0d786631dc_rle_crop_3744578946_0.png', 1349582349: '1743615574_1324850_1349582034_93479b412d96dfdd338eb89708578b2b_rle_crop_3744578929_0.png', 1349582299: '1743615568_3537346_1349581986_22601f980705777a5f5e4944c7189a8b_rle_crop_3744578628_0.png', 1349581489: '1743615213_1321481_1349581189_9c625dfede861c3bfc03b366e8d75ecb_rle_crop_3744574048_0.png', 1349582185: '1743615447_626786_1349581426_1127bd9fbb60531849342ffd9200baf4_rle_crop_3744578312_0.png', 1349582184: '1743615447_626786_1349581462_a11f08a8405fc1bf5878411b9d4f7cd5_rle_crop_3744578297_0.png', 1349582183: '1743615447_626786_1349581515_1df4cce79e9452c25542674849661c42_rle_crop_3744578287_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f267d9c237ecc3797487de53702724dc_39673440.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/68716d347d2108d65174b83e1afd00a2_55942062.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/18365642edd23d5581747135cdc16382_20744394.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b2528972c4a1ab27f9bc7384775e1e4c_9800769.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/46b21f84643114b442e296e2b22b0671_43383089.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c10fcaf5f8ffb344c68e82348c26bc11_63694079.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2ea91e5b58b2ba7407f4828cf5669f6d_76084721.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/1642c9c23196fc8f11ede1ec7196e431_94424658.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/820429fa4aa0f358c2780775911f7988_12590724.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/50c3c30cf94f06bb583f61c099fa2282_9538552.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ca902b54b5ef91a1af3c700fdf7510e0_48380137.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/752f2baaed39bdd526b1466476de9ddd_1432565.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/aa74d91660998c37b98ee484f2212667_74134599.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9be2aae8af3ef7eb0be68a4ec07a1e01_7457573.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f1d6319cfab33b552cdde3c22f20d3f3_94366981.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e77dd24fe6e677a1fc47cc04aa76848b_54735513.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/13680ca7b9a8b5dee8b73518a709ef96_92664366.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/470f92bc1dd8e4d19199ba29a19e4f8f_84874910.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b9c5e405916d35ed8465c1aed2a1bd4b_44621664.png change filename to text .imagette219841921743615781/ imagette219841921743615781/1743615685_3541716_1349582341_0a18cb88e2bff67c81e723c2082d2570_rle_crop_3744582400_0.png.png imagette219841921743615781/1743615447_626786_1349581462_a11f08a8405fc1bf5878411b9d4f7cd5_rle_crop_3744578297_0.png.png imagette219841921743615781/1743615574_1324850_1349581955_01403d2868442e75f2bf9b87006fe00d_rle_crop_3744579028_0.png.png imagette219841921743615781/1743615685_3541716_1349582319_bc5646e72be03b7ef125f9a9928b2d95_rle_crop_3744583147_0.png.png imagette219841921743615781/1743615574_1324850_1349581960_97032e6a03b9b340e29eac63f361db98_rle_crop_3744579016_0.png.png imagette219841921743615781/1743615691_1326233_1349582264_911717e9628d872704b6f2f8f93882fa_rle_crop_3744583226_0.png.png imagette219841921743615781/1743615568_3537346_1349581986_22601f980705777a5f5e4944c7189a8b_rle_crop_3744578628_0.png.png imagette219841921743615781/1743615447_626786_1349581426_1127bd9fbb60531849342ffd9200baf4_rle_crop_3744578312_0.png.png imagette219841921743615781/1743615574_1324850_1349582034_93479b412d96dfdd338eb89708578b2b_rle_crop_3744578929_0.png.png imagette219841921743615781/1743615691_1326233_1349582244_f8c5bbec202e0ce89bbb0ad0f4f51822_rle_crop_3744583298_0.png.png imagette219841921743615781/1743615213_1321481_1349581189_9c625dfede861c3bfc03b366e8d75ecb_rle_crop_3744574048_0.png.png imagette219841921743615781/1743615552_1324612_1349582028_7f1338ea4402d6636239e0cb26bc9b1f_rle_crop_3744578587_0.png.png imagette219841921743615781/1743615691_1326233_1349582244_f8c5bbec202e0ce89bbb0ad0f4f51822_rle_crop_3744583294_0.png.png imagette219841921743615781/1743615447_626786_1349581515_1df4cce79e9452c25542674849661c42_rle_crop_3744578287_0.png.png imagette219841921743615781/1743615685_3541716_1349582341_0a18cb88e2bff67c81e723c2082d2570_rle_crop_3744582397_0.png.png imagette219841921743615781/1743615685_3541716_1349582319_bc5646e72be03b7ef125f9a9928b2d95_rle_crop_3744583148_0.png.png imagette219841921743615781/1743615574_1324850_1349581969_3cd0674a0c47d8e34aa6003d98cec7c0_rle_crop_3744578964_0.png.png imagette219841921743615781/1743615574_1324850_1349581979_1eca4f3fd40fd4a7342a3d0d786631dc_rle_crop_3744578946_0.png.png imagette219841921743615781/1743615574_1324850_1349581955_01403d2868442e75f2bf9b87006fe00d_rle_crop_3744579026_0.png.png imagette219841921743615781/1743615574_1324850_1349581955_01403d2868442e75f2bf9b87006fe00d_rle_crop_3744579025_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/02d0741ac22e06c4690994ffc564a705_18574958.png imagette219841921743615781 21984198 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=21984198 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349581520: '1743615213_1321481_1349581189_9c625dfede861c3bfc03b366e8d75ecb_rle_crop_3744574047_0.png', 1349581833: '1743615233_1321766_1349581090_41ff0fa6e04fd3504c6b987334f369c8_rle_crop_3744574353_0.png', 1349581834: '1743615233_1321766_1349581082_5f0135dc23ee9a8d593bbadc8106bde6_rle_crop_3744574791_0.png', 1349581941: '1743615310_1322783_1349581266_577d99a3886fd98074ba78977d0a3b8b_rle_crop_3744575458_0.png', 1349582136: '1743615447_3534531_1349581720_8fdcc6ac5e34bb89cfa58e9bf99dc0f8_rle_crop_3744578226_0.png', 1349582195: '1743615447_626786_1349581668_c4e437dc144a4472e527c0d49809aa13_rle_crop_3744578254_0.png', 1349582198: '1743615447_626786_1349581426_1127bd9fbb60531849342ffd9200baf4_rle_crop_3744578307_0.png', 1349582296: '1743615552_1324612_1349582028_7f1338ea4402d6636239e0cb26bc9b1f_rle_crop_3744578584_0.png', 1349582370: '1743615574_1324850_1349581979_1eca4f3fd40fd4a7342a3d0d786631dc_rle_crop_3744578942_0.png', 1349582625: '1743615685_3541716_1349582341_0a18cb88e2bff67c81e723c2082d2570_rle_crop_3744582392_0.png', 1349582638: '1743615691_1326233_1349582257_e917923e6547e2c268eeea5783d01a7f_rle_crop_3744583235_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e42ebe55d3ba87209cffa557c1f03c6c_57725911.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c6ad5f6b980d272ee2822cd96a0350d2_64897051.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/dc1434094211d9fcc49a92889918b2c9_92225658.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/0654b5d20958948894f8de4701a0e662_61443387.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c4e57f52020d7d44d67cf6a589bd1171_21549612.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/cf22faed97910d4af2eb82cf31290b03_11108114.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c68a98e9250f67717b7c09e698e15114_79798941.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/6af379e6778b9e29b2e66b3a164aa838_94822659.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/a5aa54a430aece96f28a24f757e8d684_97053567.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/862a47b48b4069a062ca62169eae76cd_10719078.png change filename to text .imagette219841981743615782/ imagette219841981743615782/1743615447_3534531_1349581720_8fdcc6ac5e34bb89cfa58e9bf99dc0f8_rle_crop_3744578226_0.png.png imagette219841981743615782/1743615447_626786_1349581426_1127bd9fbb60531849342ffd9200baf4_rle_crop_3744578307_0.png.png imagette219841981743615782/1743615310_1322783_1349581266_577d99a3886fd98074ba78977d0a3b8b_rle_crop_3744575458_0.png.png imagette219841981743615782/1743615691_1326233_1349582257_e917923e6547e2c268eeea5783d01a7f_rle_crop_3744583235_0.png.png imagette219841981743615782/1743615233_1321766_1349581082_5f0135dc23ee9a8d593bbadc8106bde6_rle_crop_3744574791_0.png.png imagette219841981743615782/1743615574_1324850_1349581979_1eca4f3fd40fd4a7342a3d0d786631dc_rle_crop_3744578942_0.png.png imagette219841981743615782/1743615685_3541716_1349582341_0a18cb88e2bff67c81e723c2082d2570_rle_crop_3744582392_0.png.png imagette219841981743615782/1743615552_1324612_1349582028_7f1338ea4402d6636239e0cb26bc9b1f_rle_crop_3744578584_0.png.png imagette219841981743615782/1743615233_1321766_1349581090_41ff0fa6e04fd3504c6b987334f369c8_rle_crop_3744574353_0.png.png imagette219841981743615782/1743615447_626786_1349581668_c4e437dc144a4472e527c0d49809aa13_rle_crop_3744578254_0.png.png imagette219841981743615782/1743615213_1321481_1349581189_9c625dfede861c3bfc03b366e8d75ecb_rle_crop_3744574047_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/be1ebcf33f048df4ac81cc4b4347ac32_3068454.png imagette219841981743615782 21984201 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=21984201 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349581830: '1743615233_1321766_1349581105_08c1bc481db7d8996828ca6e71c8548d_rle_crop_3744574309_0.png', 1349581831: '1743615233_1321766_1349581105_08c1bc481db7d8996828ca6e71c8548d_rle_crop_3744574308_0.png', 1349581832: '1743615233_1321766_1349581082_5f0135dc23ee9a8d593bbadc8106bde6_rle_crop_3744574787_0.png', 1349581937: '1743615310_1322783_1349581266_577d99a3886fd98074ba78977d0a3b8b_rle_crop_3744575457_0.png', 1349581938: '1743615310_1322783_1349581252_472cc5abc1292e36490a1ceea72659e2_rle_crop_3744575479_0.png', 1349582188: '1743615447_626786_1349581668_c4e437dc144a4472e527c0d49809aa13_rle_crop_3744578249_0.png', 1349582189: '1743615447_626786_1349581668_c4e437dc144a4472e527c0d49809aa13_rle_crop_3744578250_0.png', 1349582191: '1743615447_626786_1349581606_91b39d9b41e299b7fa6e32b13ac0b48b_rle_crop_3744578269_0.png', 1349582292: '1743615552_1324612_1349582028_7f1338ea4402d6636239e0cb26bc9b1f_rle_crop_3744578581_0.png', 1349582359: '1743615574_1324850_1349581979_1eca4f3fd40fd4a7342a3d0d786631dc_rle_crop_3744578944_0.png', 1349582360: '1743615574_1324850_1349581979_1eca4f3fd40fd4a7342a3d0d786631dc_rle_crop_3744578934_0.png', 1349582361: '1743615574_1324850_1349581969_3cd0674a0c47d8e34aa6003d98cec7c0_rle_crop_3744578962_0.png', 1349582362: '1743615574_1324850_1349581969_3cd0674a0c47d8e34aa6003d98cec7c0_rle_crop_3744578959_0.png', 1349582632: '1743615691_1326233_1349582257_e917923e6547e2c268eeea5783d01a7f_rle_crop_3744583230_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f7196665f98a481dfe9f90e2bf845f9c_10948461.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b12e1f21024c7d13a2c222c34e1a3041_71328899.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7a25682938dfe77dc61d5c2ba7a1a2ad_21170063.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/730a8237ad85194903d6a81444b4494d_68698481.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/535952c44347072ee612d6dafdc664b0_55601859.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/871aac7c6476442f495afce6a26c2d33_87074376.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d7d17e52bae5c5947e98ce5a6f42683e_61357477.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b93e50e811814d25720baad50c085d09_83739879.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/aad383573f5b286bbfa3b2418250a777_20589713.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/66de4704e7e8ee84206dc1d3957ace25_45183480.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/5fe71156b66b699345abd5c7114222ca_50874225.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/1de2d32cf0a2945f4bb8dc43dbd74df2_8723777.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c48b8ed475fd851877081d82190fdac1_69303396.png change filename to text .imagette219842011743615783/ imagette219842011743615783/1743615574_1324850_1349581969_3cd0674a0c47d8e34aa6003d98cec7c0_rle_crop_3744578959_0.png.png imagette219842011743615783/1743615574_1324850_1349581979_1eca4f3fd40fd4a7342a3d0d786631dc_rle_crop_3744578934_0.png.png imagette219842011743615783/1743615691_1326233_1349582257_e917923e6547e2c268eeea5783d01a7f_rle_crop_3744583230_0.png.png imagette219842011743615783/1743615310_1322783_1349581266_577d99a3886fd98074ba78977d0a3b8b_rle_crop_3744575457_0.png.png imagette219842011743615783/1743615447_626786_1349581668_c4e437dc144a4472e527c0d49809aa13_rle_crop_3744578250_0.png.png imagette219842011743615783/1743615233_1321766_1349581105_08c1bc481db7d8996828ca6e71c8548d_rle_crop_3744574308_0.png.png imagette219842011743615783/1743615574_1324850_1349581969_3cd0674a0c47d8e34aa6003d98cec7c0_rle_crop_3744578962_0.png.png imagette219842011743615783/1743615574_1324850_1349581979_1eca4f3fd40fd4a7342a3d0d786631dc_rle_crop_3744578944_0.png.png imagette219842011743615783/1743615233_1321766_1349581105_08c1bc481db7d8996828ca6e71c8548d_rle_crop_3744574309_0.png.png imagette219842011743615783/1743615233_1321766_1349581082_5f0135dc23ee9a8d593bbadc8106bde6_rle_crop_3744574787_0.png.png imagette219842011743615783/1743615447_626786_1349581606_91b39d9b41e299b7fa6e32b13ac0b48b_rle_crop_3744578269_0.png.png imagette219842011743615783/1743615310_1322783_1349581252_472cc5abc1292e36490a1ceea72659e2_rle_crop_3744575479_0.png.png imagette219842011743615783/1743615552_1324612_1349582028_7f1338ea4402d6636239e0cb26bc9b1f_rle_crop_3744578581_0.png.png imagette219842011743615783/1743615447_626786_1349581668_c4e437dc144a4472e527c0d49809aa13_rle_crop_3744578249_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/64b29d8e5550f0422f230ddb07d5bd14_92899273.png imagette219842011743615783 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21984181 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21984204,21984205,21984206,21984207,21984208,21984209,21984210,21984211,21984212,21984213,21984214,21984215?tags=Teint_Dans_La_Masse,kraft,plastique,mal_croppe,cartonnette,papier,Carton_brun,metal,flou,Carton_gris,autre_refus,environnement your option no_mail is active, we will not send the real mail to your client args[1349582572] : ('0.06887501727147781',) no score found for photo 1349582572 We are sending mail with results at report@fotonower.com args[1349582568] : ('0.06887501727147781',) no score found for photo 1349582568 We are sending mail with results at report@fotonower.com args[1349582563] : ('0.06887501727147781',) no score found for photo 1349582563 We are sending mail with results at report@fotonower.com args[1349582558] : ('0.06887501727147781',) no score found for photo 1349582558 We are sending mail with results at report@fotonower.com args[1349582552] : ('0.06887501727147781',) no score found for photo 1349582552 We are sending mail with results at report@fotonower.com args[1349582525] : ('0.06887501727147781',) no score found for photo 1349582525 We are sending mail with results at report@fotonower.com refus_total : 0.06887501727147781 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=21984181 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_P21984181_02-04-2025_19_42_59.pdf results_Auto_P21984181_02-04-2025_19_42_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984181_02-04-2025_19_42_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21984181','results_Auto_P21984181_02-04-2025_19_42_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984181_02-04-2025_19_42_59.pdf','pdf','','0.28','0.06887501727147781') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21984181]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349582572, 1349582568, 1349582563, 1349582558, 1349582552, 1349582525] map_info['map_portfolio_photo'] : {21984181: [1349582572, 1349582568, 1349582563, 1349582558, 1349582552, 1349582525, 1349582368, 1349582348, 1349582341, 1349582319, 1349582279, 1349582272, 1349582264, 1349582257, 1349582244, 1349582211, 1349582202, 1349582196, 1349582186, 1349582173, 1349582170, 1349582034, 1349582028, 1349582022, 1349582016, 1349582012, 1349581986, 1349581979, 1349581969, 1349581964, 1349581960, 1349581955, 1349581908, 1349581902, 1349581888, 1349581870, 1349581720, 1349581668, 1349581606, 1349581515, 1349581462, 1349581426, 1349581321, 1349581275, 1349581271, 1349581266, 1349581252, 1349581244, 1349581208, 1349581200, 1349581189, 1349581175, 1349581105, 1349581100, 1349581090, 1349581082, 1349581078]} final : False mtd_id 4302 list_pids : [1349582572, 1349582568, 1349582563, 1349582558, 1349582552, 1349582525] 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, '2717323') ('4302', '21984181', '1349582572', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582568', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582563', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582558', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582552', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582525', None, None, None, None, None, '2717323') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21984181', '1349582572', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582568', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582563', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582558', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582552', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582525', None, None, None, None, None, '2717323')] time used for this insertion : 0.015517473220825195 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.6133646965026855 time spend to save output : 0.0157926082611084 total time spend for step 4 : 5.629157304763794 step5:split_time_score Wed Apr 2 19:43:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21984181'] 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 : [('21984181',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21984181) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349582568: {'path': 'temp/1743615779_3092521_1349582568_728a48717f6caa1bbf0c45020b93dfa4.jpg', 'extension': 'jpg'}, 1349582572: {'path': 'temp/1743615779_3092521_1349582572_7802ca56fedfe02767ca5e6c3b222759.jpg', 'extension': 'jpg'}, 1349582558: {'path': 'temp/1743615779_3092521_1349582558_d44ba03ffc13a5012e26d5f3ca7b5164.jpg', 'extension': 'jpg'}, 1349582563: {'path': 'temp/1743615779_3092521_1349582563_6a2951dbf1fc82b06eee55230392416f.jpg', 'extension': 'jpg'}, 1349582525: {'path': 'temp/1743615779_3092521_1349582525_faf2edf03c8aea5cfeefb881a7a34c26.jpg', 'extension': 'jpg'}, 1349582552: {'path': 'temp/1743615779_3092521_1349582552_6ef776b5bf57830600db120eff8e4b00.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} begin split time score SELECT app_name, token FROM MTRUser.mtr_app_api_token WHERE mtr_user_id=979 AND app_name="token_split_time_score" AND expire_at > NOW() select distinct dp.name from MTRPhoto.dashboard_entry_day ded, MTRPhoto.dashboard_places dp, MTRPhoto.dashboard_results dr where ded.dashboard_place_id = dp.id and ded.last_run_id = dr.dashboard_run_id and dp.id = ded.dashboard_place_id and dr.mtr_portfolio_id = 21984181; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 21984181 group by h (('19', 57),) 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=21984181 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (21984181) AND cps.thcl in (861) order by cps.score desc LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (21984181) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02042025 21984181 Nombre de photos uploadées : 57 / 23040 (0%) 02042025 21984181 Nombre de photos taguées (types de déchets): 0 / 57 (0%) 02042025 21984181 Nombre de photos taguées (volume) : 0 / 57 (0%) [{'photo_id': 1349581105, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/08c1bc481db7d8996828ca6e71c8548d.jpg', 'username': None, 'uploaded_at': 1743615068, 'text': 'image_02042025_19_30_05_010153m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349581100, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ec6f1a9df781c1d42c22e55b9f32a927.jpg', 'username': None, 'uploaded_at': 1743615068, 'text': 'image_02042025_19_30_15_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349581090, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/41ff0fa6e04fd3504c6b987334f369c8.jpg', 'username': None, 'uploaded_at': 1743615068, 'text': 'image_02042025_19_30_24_009124m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349581082, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/5f0135dc23ee9a8d593bbadc8106bde6.jpg', 'username': None, 'uploaded_at': 1743615068, 'text': 'image_02042025_19_30_34_010133m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 6.67572021484375e-06 ????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0027048587799072266 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21984181, '2025-04-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1709477,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03015422821044922 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1709477 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1709477, 'dashboard_run_id': 1718769, 'mtr_portfolio_id': 21982272, 'dashboard_result_id': 9815340, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21982272_02-04-2025_19_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21982276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21982277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21982278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21982279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21982280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21982281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21982282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21982283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21982284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21982285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21982286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21982287, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1718769, 'mtr_portfolio_id': 21983045, 'dashboard_result_id': 9815341, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983045_02-04-2025_19_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983060, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1718769, 'mtr_portfolio_id': 21983779, 'dashboard_result_id': 9815342, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983779_02-04-2025_19_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983793, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1718769, 'mtr_portfolio_id': 21984181, 'dashboard_result_id': 9815343, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984181_02-04-2025_19_41_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21984192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21984193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21984194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21984195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21984196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21984197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21984198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21984199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21984200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21984201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21984202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21984203, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21982272 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2717173, 'mtr_portfolio_id': 21982272, 'created_at': datetime.datetime(2025, 4, 2, 19, 3), 'result': '0.03891199199274584', 'result_long': None, 'result_double': None}] Qualite : 0.03891199199274584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21982272 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21982272_02-04-2025_19_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21982272 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21982272_02-04-2025_19_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21982276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21982277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21982278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21982279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21982280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21982281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21982282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21982283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21982284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21982285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21982286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21982287, 'pht': 3726}}" where mtr_portfolio_id = 21982272 and dashboard_run_id = 1718769 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21982272 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9815340, 0.03891199199274584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21982272_02-04-2025_19_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21982276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21982277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21982278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21982279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21982280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21982281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21982282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21982283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21982284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21982285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21982286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21982287, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21983045 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2717236, 'mtr_portfolio_id': 21983045, 'created_at': datetime.datetime(2025, 4, 2, 19, 16, 57), 'result': '0.04554435823533873', 'result_long': None, 'result_double': None}] Qualite : 0.04554435823533873 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21983045 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983045_02-04-2025_19_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21983045 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983045_02-04-2025_19_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983060, 'pht': 3726}}" where mtr_portfolio_id = 21983045 and dashboard_run_id = 1718769 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21983045 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9815341, 0.04554435823533873, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983045_02-04-2025_19_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983060, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21983779 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2717284, 'mtr_portfolio_id': 21983779, 'created_at': datetime.datetime(2025, 4, 2, 19, 32, 59), 'result': '0.0673209137893428', 'result_long': None, 'result_double': None}] Qualite : 0.0673209137893428 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21983779 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983779_02-04-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21983779 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983779_02-04-2025_19_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983793, 'pht': 3726}}" where mtr_portfolio_id = 21983779 and dashboard_run_id = 1718769 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21983779 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9815342, 0.0673209137893428, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983779_02-04-2025_19_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983793, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21984181 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2717323, 'mtr_portfolio_id': 21984181, 'created_at': datetime.datetime(2025, 4, 2, 19, 42, 59), 'result': '0.06887501727147781', 'result_long': None, 'result_double': None}] Qualite : 0.06887501727147781 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21984181 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984181_02-04-2025_19_42_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21984181 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984181_02-04-2025_19_42_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21984192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21984193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21984194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21984195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21984196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21984197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21984198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21984199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21984200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21984201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21984202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21984203, 'pht': 3726}}" where mtr_portfolio_id = 21984181 and dashboard_run_id = 1718769 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21984181 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9815343, 0.06887501727147781, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984181_02-04-2025_19_42_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21984192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21984193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21984194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21984195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21984196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21984197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21984198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21984199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21984200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21984201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21984202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21984203, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21982272,21983045,21983779,21984181) result : ((1349570957,), (1349570962,), (1349570967,), (1349570972,), (1349570981,), (1349571039,), (1349571048,), (1349571080,), (1349571190,), (1349571194,), (1349571207,), (1349571374,), (1349571382,), (1349571385,), (1349571395,), (1349571450,), (1349571505,), (1349571689,), (1349571717,), (1349571767,), (1349571822,), (1349571869,), (1349571918,), (1349571992,), (1349571996,), (1349572060,), (1349572063,), (1349572065,), (1349572067,), (1349572070,), (1349572072,), (1349572102,), (1349572105,), (1349572110,), (1349572113,), (1349572132,), (1349572185,), (1349572338,), (1349572365,), (1349572399,), (1349572424,), (1349572453,), (1349572716,), (1349572749,), (1349572788,), (1349572840,), (1349573439,), (1349573454,), (1349573516,), (1349573589,), (1349573630,), (1349573633,), (1349573779,), (1349573782,), (1349573794,), (1349573808,), (1349574794,), (1349574834,), (1349574874,), (1349574931,), (1349574968,), (1349575030,), (1349575266,), (1349575174,), (1349575179,), (1349575202,), (1349575235,), (1349575730,), (1349575795,), (1349575870,), (1349575964,), (1349576029,), (1349576506,), (1349576558,), (1349576638,), (1349576701,), (1349576778,), (1349577201,), (1349577256,), (1349577283,), (1349577529,), (1349577611,), (1349577636,), (1349577660,), (1349577688,), (1349577894,), (1349577925,), (1349577959,), (1349578023,), (1349578074,), (1349578100,), (1349578337,), (1349578364,), (1349578384,), (1349578399,), (1349578403,), (1349578486,), (1349578489,), (1349578492,), (1349578496,), (1349578639,), (1349578642,), (1349578646,), (1349578650,), (1349578654,), (1349578707,), (1349578752,), (1349578769,), (1349578776,), (1349578780,), (1349578849,), (1349578852,), (1349578856,), (1349578859,), (1349578896,), (1349578902,), (1349578910,), (1349578916,), (1349578919,), (1349578957,), (1349578961,), (1349578999,), (1349579002,), (1349579499,), (1349579622,), (1349579626,), (1349579630,), (1349579636,), (1349579705,), (1349579725,), (1349579731,), (1349579885,), (1349579892,), (1349579898,), (1349579903,), (1349579910,), (1349579915,), (1349579942,), (1349579947,), (1349579954,), (1349580046,), (1349580065,), (1349580079,), (1349580083,), (1349580140,), (1349580144,), (1349580151,), (1349580183,), (1349580187,), (1349580192,), (1349580229,), (1349580265,), (1349580348,), (1349580434,), (1349580484,), (1349580580,), (1349580583,), (1349580626,), (1349580652,), (1349580690,), (1349580768,), (1349580772,), (1349580836,), (1349580839,), (1349580844,), (1349580847,), (1349580892,), (1349580901,), (1349580906,), (1349580911,), (1349580916,), (1349580942,), (1349580946,), (1349580951,), (1349580998,), (1349581001,), (1349581004,), (1349581007,), (1349581011,), (1349581135,), (1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,), (1349582170,), (1349582173,), (1349582186,), (1349582196,), (1349582202,), (1349582211,), (1349582244,), (1349582257,), (1349582264,), (1349582272,), (1349582279,), (1349582319,), (1349582341,), (1349582348,), (1349582368,), (1349582525,), (1349582552,), (1349582558,), (1349582563,), (1349582568,), (1349582572,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02042025': {'nb_upload': 57, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21984181]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349582572, 1349582568, 1349582563, 1349582558, 1349582552, 1349582525] map_info['map_portfolio_photo'] : {21984181: [1349582572, 1349582568, 1349582563, 1349582558, 1349582552, 1349582525, 1349582368, 1349582348, 1349582341, 1349582319, 1349582279, 1349582272, 1349582264, 1349582257, 1349582244, 1349582211, 1349582202, 1349582196, 1349582186, 1349582173, 1349582170, 1349582034, 1349582028, 1349582022, 1349582016, 1349582012, 1349581986, 1349581979, 1349581969, 1349581964, 1349581960, 1349581955, 1349581908, 1349581902, 1349581888, 1349581870, 1349581720, 1349581668, 1349581606, 1349581515, 1349581462, 1349581426, 1349581321, 1349581275, 1349581271, 1349581266, 1349581252, 1349581244, 1349581208, 1349581200, 1349581189, 1349581175, 1349581105, 1349581100, 1349581090, 1349581082, 1349581078]} final : True mtd_id 4302 list_pids : [1349582572, 1349582568, 1349582563, 1349582558, 1349582552, 1349582525] Looping around the photos to save general results len do output : 1 /21984181Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582572', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582568', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582563', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582558', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582552', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582525', None, None, None, None, None, '2717323') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '21984181', 'None', None, None, None, None, '2717323'), ('4302', '21984181', '1349582572', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582568', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582563', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582558', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582552', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582525', None, None, None, None, None, '2717323')] time used for this insertion : 0.015411853790283203 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3525965213775635 time spend to save output : 0.015601873397827148 total time spend for step 5 : 0.3681983947753906 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 1 set_done_treatment DELETE from MTRPhoto.mtr_datou_current where id in (2717323) 2.10user 2.14system 0:11.20elapsed 37%CPU (0avgtext+0avgdata 158220maxresident)k 1024inputs+14088outputs (1major+63854minor)pagefaults 0swaps