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 : 3068318 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 (2800347) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2800347) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745924 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2800347'] with mtr_portfolio_ids : ['22745924'] and first list_photo_ids : [] new path : /proc/3068318/ Name: python3 Umask: 0002 State: R (running) Tgid: 3068318 Ngid: 0 Pid: 3068318 PPid: 3068317 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3068318 NSpid: 3068318 NSpgid: 3066444 NSsid: 3066444 VmPeak: 1107224 kB VmSize: 1107224 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98412 kB VmRSS: 98412 kB RssAnon: 60188 kB RssFile: 38224 kB RssShmem: 0 kB VmData: 865972 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 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: 144 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3068318', 'Ngid': '0', 'Pid': '3068318', 'PPid': '3068317', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3068318', 'NSpid': '3068318', 'NSpgid': '3066444', 'NSsid': '3066444', 'VmPeak': '1107224 kB', 'VmSize': '1107224 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98412 kB', 'VmRSS': '98412 kB', 'RssAnon': '60188 kB', 'RssFile': '38224 kB', 'RssShmem': '0 kB', 'VmData': '865972 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 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': '144'} ('datou_batch_current', '3068318', '1107224', '0', '1107224', '865972', '98412', b'', 'marlene', '2800347') 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 (22745924) 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 (2800347 ) ) 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 (22745924) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1356570955, 'portfolio_id': 22745924}, {'photo_id': 1356570584, 'portfolio_id': 22745924}, {'photo_id': 1356570582, 'portfolio_id': 22745924}, {'photo_id': 1356570580, 'portfolio_id': 22745924}, {'photo_id': 1356570578, 'portfolio_id': 22745924}, {'photo_id': 1356570427, 'portfolio_id': 22745924}, {'photo_id': 1356570422, 'portfolio_id': 22745924}, {'photo_id': 1356570406, 'portfolio_id': 22745924}, {'photo_id': 1356570377, 'portfolio_id': 22745924}, {'photo_id': 1356570219, 'portfolio_id': 22745924}, {'photo_id': 1356570194, 'portfolio_id': 22745924}, {'photo_id': 1356570168, 'portfolio_id': 22745924}, {'photo_id': 1356570141, 'portfolio_id': 22745924}, {'photo_id': 1356570001, 'portfolio_id': 22745924}, {'photo_id': 1356569999, 'portfolio_id': 22745924}, {'photo_id': 1356569996, 'portfolio_id': 22745924}, {'photo_id': 1356569993, 'portfolio_id': 22745924}, {'photo_id': 1356569959, 'portfolio_id': 22745924}, {'photo_id': 1356569957, 'portfolio_id': 22745924}, {'photo_id': 1356569955, 'portfolio_id': 22745924}, {'photo_id': 1356569952, 'portfolio_id': 22745924}, {'photo_id': 1356569911, 'portfolio_id': 22745924}, {'photo_id': 1356569908, 'portfolio_id': 22745924}, {'photo_id': 1356569906, 'portfolio_id': 22745924}, {'photo_id': 1356569900, 'portfolio_id': 22745924}, {'photo_id': 1356569876, 'portfolio_id': 22745924}, {'photo_id': 1356569874, 'portfolio_id': 22745924}, {'photo_id': 1356569872, 'portfolio_id': 22745924}, {'photo_id': 1356569870, 'portfolio_id': 22745924}, {'photo_id': 1356569837, 'portfolio_id': 22745924}, {'photo_id': 1356569835, 'portfolio_id': 22745924}, {'photo_id': 1356569833, 'portfolio_id': 22745924}, {'photo_id': 1356569831, 'portfolio_id': 22745924}, {'photo_id': 1356569797, 'portfolio_id': 22745924}, {'photo_id': 1356569793, 'portfolio_id': 22745924}, {'photo_id': 1356569776, 'portfolio_id': 22745924}, {'photo_id': 1356569775, 'portfolio_id': 22745924}, {'photo_id': 1356569774, 'portfolio_id': 22745924}, {'photo_id': 1356569752, 'portfolio_id': 22745924}, {'photo_id': 1356569750, 'portfolio_id': 22745924}, {'photo_id': 1356569748, 'portfolio_id': 22745924}, {'photo_id': 1356569747, 'portfolio_id': 22745924}, {'photo_id': 1356569745, 'portfolio_id': 22745924}, {'photo_id': 1356569718, 'portfolio_id': 22745924}, {'photo_id': 1356569716, 'portfolio_id': 22745924}, {'photo_id': 1356569715, 'portfolio_id': 22745924}, {'photo_id': 1356569713, 'portfolio_id': 22745924}, {'photo_id': 1356569708, 'portfolio_id': 22745924}, {'photo_id': 1356569674, 'portfolio_id': 22745924}, {'photo_id': 1356569673, 'portfolio_id': 22745924}, {'photo_id': 1356569671, 'portfolio_id': 22745924}, {'photo_id': 1356569670, 'portfolio_id': 22745924}, {'photo_id': 1356569668, 'portfolio_id': 22745924}, {'photo_id': 1356569666, 'portfolio_id': 22745924}, {'photo_id': 1356569633, 'portfolio_id': 22745924}, {'photo_id': 1356569630, 'portfolio_id': 22745924}, {'photo_id': 1356569626, 'portfolio_id': 22745924}, {'photo_id': 1356569596, 'portfolio_id': 22745924}, {'photo_id': 1356569595, 'portfolio_id': 22745924}, {'photo_id': 1356569593, 'portfolio_id': 22745924}, {'photo_id': 1356569583, 'portfolio_id': 22745924}] map_portfolio_id_photo_id: {22745924: [1356570955, 1356570584, 1356570582, 1356570580, 1356570578, 1356570427, 1356570422, 1356570406, 1356570377, 1356570219, 1356570194, 1356570168, 1356570141, 1356570001, 1356569999, 1356569996, 1356569993, 1356569959, 1356569957, 1356569955, 1356569952, 1356569911, 1356569908, 1356569906, 1356569900, 1356569876, 1356569874, 1356569872, 1356569870, 1356569837, 1356569835, 1356569833, 1356569831, 1356569797, 1356569793, 1356569776, 1356569775, 1356569774, 1356569752, 1356569750, 1356569748, 1356569747, 1356569745, 1356569718, 1356569716, 1356569715, 1356569713, 1356569708, 1356569674, 1356569673, 1356569671, 1356569670, 1356569668, 1356569666, 1356569633, 1356569630, 1356569626, 1356569596, 1356569595, 1356569593, 1356569583]} ##### 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.01596379280090332 #### 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 May 7 02:46:57 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 (22745924) 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 : 22745924 get user id for portfolio 22745924 get sub ptf for main ptf 22745924, type 3726 and hashtags ['Teint_Dans_La_Masse', 'Carton_brun', 'cartonnette', 'kraft', 'metal', 'plastique', 'flou', 'mal_croppe', 'environnement', 'autre_refus', 'papier', 'Carton_gris'] 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`=22745924 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','cartonnette','kraft','metal','plastique','flou','mal_croppe','environnement','autre_refus','papier','Carton_gris')) 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`=22745924 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','cartonnette','kraft','metal','plastique','flou','mal_croppe','environnement','autre_refus','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22745924, 'sub_port_id': 22745932, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159557, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'autre_refus': {'main_port_id': 22745924, 'sub_port_id': 22745933, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159558, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'environnement': {'main_port_id': 22745924, 'sub_port_id': 22745934, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159559, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'kraft': {'main_port_id': 22745924, 'sub_port_id': 22745935, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159560, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'plastique': {'main_port_id': 22745924, 'sub_port_id': 22745936, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159561, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'Carton_gris': {'main_port_id': 22745924, 'sub_port_id': 22745937, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159562, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'mal_croppe': {'main_port_id': 22745924, 'sub_port_id': 22745938, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159563, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'papier': {'main_port_id': 22745924, 'sub_port_id': 22745939, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159564, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'Carton_brun': {'main_port_id': 22745924, 'sub_port_id': 22745940, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159565, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'flou': {'main_port_id': 22745924, 'sub_port_id': 22745941, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159566, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'metal': {'main_port_id': 22745924, 'sub_port_id': 22745942, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159567, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'cartonnette': {'main_port_id': 22745924, 'sub_port_id': 22745943, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159568, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22745932 , 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=22745924 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 (22745932) result : ((1356569819,), (1356569821,), (1356569822,), (1356569823,), (1356569824,), (1356569854,), (1356569855,), (1356569856,), (1356569884,), (1356569916,), (1356570274,), (1356570275,), (1356570276,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,), (1356569993,), (1356569996,), (1356569999,), (1356570001,), (1356570141,), (1356570168,), (1356570194,), (1356570219,), (1356570377,), (1356570406,), (1356570422,), (1356570427,), (1356570578,), (1356570580,), (1356570582,), (1356570584,), (1356570955,)) 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 (1356569900) 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 22745933 , 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=22745924 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 (22745933) result : ((1356569728,), (1356569917,), (1356570448,), (1356570449,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,), (1356569993,), (1356569996,), (1356569999,), (1356570001,), (1356570141,), (1356570168,), (1356570194,), (1356570219,), (1356570377,), (1356570406,), (1356570422,), (1356570427,), (1356570578,), (1356570580,), (1356570582,), (1356570584,), (1356570955,)) 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 (1356569900) 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 22745934 , 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=22745924 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 (22745934) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,), (1356569993,), (1356569996,), (1356569999,), (1356570001,), (1356570141,), (1356570168,), (1356570194,), (1356570219,), (1356570377,), (1356570406,), (1356570422,), (1356570427,), (1356570578,), (1356570580,), (1356570582,), (1356570584,), (1356570955,)) 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 (1356569900) 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 22745935 , 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=22745924 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745935) result : ((1356569828,), (1356569918,), (1356569985,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,), (1356569993,), (1356569996,), (1356569999,), (1356570001,), (1356570141,), (1356570168,), (1356570194,), (1356570219,), (1356570377,), (1356570406,), (1356570422,), (1356570427,), (1356570578,), (1356570580,), (1356570582,), (1356570584,), (1356570955,)) 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 (1356569900) 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 22745936 , 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=22745924 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 (22745936) result : ((1356569731,), (1356569765,), (1356569982,), (1356569983,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,), (1356569993,), (1356569996,), (1356569999,), (1356570001,), (1356570141,), (1356570168,), (1356570194,), (1356570219,), (1356570377,), (1356570406,), (1356570422,), (1356570427,), (1356570578,), (1356570580,), (1356570582,), (1356570584,), (1356570955,)) 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 (1356569900) 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 22745937 , 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=22745924 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 (22745937) result : ((1356569729,), (1356569730,), (1356569825,), (1356569826,), (1356569857,), (1356569890,), (1356569976,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,), (1356569993,), (1356569996,), (1356569999,), (1356570001,), (1356570141,), (1356570168,), (1356570194,), (1356570219,), (1356570377,), (1356570406,), (1356570422,), (1356570427,), (1356570578,), (1356570580,), (1356570582,), (1356570584,), (1356570955,)) 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 (1356569900) 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 22745938 , 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=22745924 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 (22745938) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,), (1356569993,), (1356569996,), (1356569999,), (1356570001,), (1356570141,), (1356570168,), (1356570194,), (1356570219,), (1356570377,), (1356570406,), (1356570422,), (1356570427,), (1356570578,), (1356570580,), (1356570582,), (1356570584,), (1356570955,)) 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 (1356569900) 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 22745939 , 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=22745924 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 (22745939) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,), (1356569993,), (1356569996,), (1356569999,), (1356570001,), (1356570141,), (1356570168,), (1356570194,), (1356570219,), (1356570377,), (1356570406,), (1356570422,), (1356570427,), (1356570578,), (1356570580,), (1356570582,), (1356570584,), (1356570955,)) 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 (1356569900) 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 22745940 , 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=22745924 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 (22745940) result : ((1356569863,), (1356569864,), (1356569865,), (1356569981,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,), (1356569993,), (1356569996,), (1356569999,), (1356570001,), (1356570141,), (1356570168,), (1356570194,), (1356570219,), (1356570377,), (1356570406,), (1356570422,), (1356570427,), (1356570578,), (1356570580,), (1356570582,), (1356570584,), (1356570955,)) 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 (1356569900) 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 22745941 , 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=22745924 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 (22745941) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,), (1356569993,), (1356569996,), (1356569999,), (1356570001,), (1356570141,), (1356570168,), (1356570194,), (1356570219,), (1356570377,), (1356570406,), (1356570422,), (1356570427,), (1356570578,), (1356570580,), (1356570582,), (1356570584,), (1356570955,)) 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 (1356569900) 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 22745942 , 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=22745924 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 (22745942) result : ((1356569866,), (1356569987,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,), (1356569993,), (1356569996,), (1356569999,), (1356570001,), (1356570141,), (1356570168,), (1356570194,), (1356570219,), (1356570377,), (1356570406,), (1356570422,), (1356570427,), (1356570578,), (1356570580,), (1356570582,), (1356570584,), (1356570955,)) 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 (1356569900) 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 22745943 , 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=22745924 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 (22745943) result : ((1356569859,), (1356569860,), (1356569861,), (1356569862,), (1356569891,), (1356569966,), (1356569979,), (1356570271,), (1356570277,), (1356570278,), (1356570450,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,), (1356569993,), (1356569996,), (1356569999,), (1356570001,), (1356570141,), (1356570168,), (1356570194,), (1356570219,), (1356570377,), (1356570406,), (1356570422,), (1356570427,), (1356570578,), (1356570580,), (1356570582,), (1356570584,), (1356570955,)) 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 (1356569900) 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`=22745924 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','cartonnette','kraft','metal','plastique','flou','mal_croppe','environnement','autre_refus','papier','Carton_gris')) 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`=22745924 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','cartonnette','kraft','metal','plastique','flou','mal_croppe','environnement','autre_refus','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22745924, 'sub_port_id': 22745944, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159569, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'autre_refus': {'main_port_id': 22745924, 'sub_port_id': 22745945, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159570, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'environnement': {'main_port_id': 22745924, 'sub_port_id': 22745946, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159571, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'kraft': {'main_port_id': 22745924, 'sub_port_id': 22745947, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159572, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'plastique': {'main_port_id': 22745924, 'sub_port_id': 22745948, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159573, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'Carton_gris': {'main_port_id': 22745924, 'sub_port_id': 22745949, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159574, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'mal_croppe': {'main_port_id': 22745924, 'sub_port_id': 22745950, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159575, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'papier': {'main_port_id': 22745924, 'sub_port_id': 22745951, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159576, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'Carton_brun': {'main_port_id': 22745924, 'sub_port_id': 22745952, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159577, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'flou': {'main_port_id': 22745924, 'sub_port_id': 22745953, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159578, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'metal': {'main_port_id': 22745924, 'sub_port_id': 22745954, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159579, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'cartonnette': {'main_port_id': 22745924, 'sub_port_id': 22745955, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159580, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 44, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745944,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745932 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745945,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745933 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745946,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745934 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745947,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745935 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745948,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745936 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745949,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745937 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745950,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745938 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745951,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745939 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745952,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745940 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745953,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745941 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745954,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745942 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745955,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745943 lien utilise dans velours : https://www.fotonower.com/velours/22745944,22745945,22745946,22745947,22745948,22745949,22745950,22745951,22745952,22745953,22745954,22745955?tags=Teint_Dans_La_Masse,autre_refus,environnement,kraft,plastique,Carton_gris,mal_croppe,papier,Carton_brun,flou,metal,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22745924]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1356570955, 1356570584, 1356570582, 1356570580, 1356570578] map_info['map_portfolio_photo'] : {22745924: [1356570955, 1356570584, 1356570582, 1356570580, 1356570578, 1356570427, 1356570422, 1356570406, 1356570377, 1356570219, 1356570194, 1356570168, 1356570141, 1356570001, 1356569999, 1356569996, 1356569993, 1356569959, 1356569957, 1356569955, 1356569952, 1356569911, 1356569908, 1356569906, 1356569900, 1356569876, 1356569874, 1356569872, 1356569870, 1356569837, 1356569835, 1356569833, 1356569831, 1356569797, 1356569793, 1356569776, 1356569775, 1356569774, 1356569752, 1356569750, 1356569748, 1356569747, 1356569745, 1356569718, 1356569716, 1356569715, 1356569713, 1356569708, 1356569674, 1356569673, 1356569671, 1356569670, 1356569668, 1356569666, 1356569633, 1356569630, 1356569626, 1356569596, 1356569595, 1356569593, 1356569583]} final : False mtd_id 4302 list_pids : [1356570955, 1356570584, 1356570582, 1356570580, 1356570578] Looping around the photos to save general results len do output : 1 /22745924. 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, '2800347') ('4302', '22745924', '1356570955', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356570584', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356570582', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356570580', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356570578', None, None, None, None, None, '2800347') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22745924', "{'Teint_Dans_La_Masse': 22745932, 'autre_refus': 22745933, 'environnement': 22745934, 'kraft': 22745935, 'plastique': 22745936, 'Carton_gris': 22745937, 'mal_croppe': 22745938, 'papier': 22745939, 'Carton_brun': 22745940, 'flou': 22745941, 'metal': 22745942, 'cartonnette': 22745943}", None, None, None, None, '2800347'), ('4302', '22745924', '1356570955', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356570584', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356570582', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356570580', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356570578', None, None, None, None, None, '2800347')] time used for this insertion : 0.01770949363708496 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.43539977073669434 time spend to save output : 0.017985820770263672 total time spend for step 1 : 0.453385591506958 step2:final Wed May 7 02:46:57 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 (22745924) 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 22745924 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1356569596,1356569595,1356569593,1356569583,1356569633,1356569630,1356569626,1356569674,1356569673,1356569671,1356569670,1356569668,1356569666,1356569718,1356569716,1356569715,1356569713,1356569708,1356569752,1356569750,1356569748,1356569747,1356569745,1356569776,1356569775,1356569774,1356569797,1356569793,1356569837,1356569835,1356569833,1356569831,1356569876,1356569874,1356569872,1356569870,1356569911,1356569908,1356569906,1356569959,1356569900,1356569957,1356569955,1356569952,1356570001,1356569999,1356569996,1356569993,1356570219,1356570194,1356570168,1356570141,1356570427,1356570422,1356570406,1356570377,1356570584,1356570582,1356570580,1356570578,1356570955); 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([22745924]) Inside saveOutput : final : False verbose : True original output for save of step final : {1356570955: ('0.04019100324960628',), 1356570584: ('0.04019100324960628',), 1356570582: ('0.04019100324960628',), 1356570580: ('0.04019100324960628',), 1356570578: ('0.04019100324960628',)} new output for save of step final : {1356570955: ('0.04019100324960628',), 1356570584: ('0.04019100324960628',), 1356570582: ('0.04019100324960628',), 1356570580: ('0.04019100324960628',), 1356570578: ('0.04019100324960628',)} [1356570955, 1356570584, 1356570582, 1356570580, 1356570578] map_info['map_portfolio_photo'] : {22745924: [1356570955, 1356570584, 1356570582, 1356570580, 1356570578, 1356570427, 1356570422, 1356570406, 1356570377, 1356570219, 1356570194, 1356570168, 1356570141, 1356570001, 1356569999, 1356569996, 1356569993, 1356569959, 1356569957, 1356569955, 1356569952, 1356569911, 1356569908, 1356569906, 1356569900, 1356569876, 1356569874, 1356569872, 1356569870, 1356569837, 1356569835, 1356569833, 1356569831, 1356569797, 1356569793, 1356569776, 1356569775, 1356569774, 1356569752, 1356569750, 1356569748, 1356569747, 1356569745, 1356569718, 1356569716, 1356569715, 1356569713, 1356569708, 1356569674, 1356569673, 1356569671, 1356569670, 1356569668, 1356569666, 1356569633, 1356569630, 1356569626, 1356569596, 1356569595, 1356569593, 1356569583]} final : False mtd_id 4302 list_pids : [1356570955, 1356570584, 1356570582, 1356570580, 1356570578] Looping around the photos to save general results len do output : 5 /1356570955.Didn't retrieve data . /1356570584.Didn't retrieve data . /1356570582.Didn't retrieve data . /1356570580.Didn't retrieve data . /1356570578.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, '2800347') ('4302', '22745924', '1356570955', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356570584', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356570582', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356570580', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356570578', None, None, None, None, None, '2800347') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22745924', '1356570955', '0.04019100324960628', None, None, None, None, '2800347'), ('4302', '22745924', '1356570584', '0.04019100324960628', None, None, None, None, '2800347'), ('4302', '22745924', '1356570582', '0.04019100324960628', None, None, None, None, '2800347'), ('4302', '22745924', '1356570580', '0.04019100324960628', None, None, None, None, '2800347'), ('4302', '22745924', '1356570578', '0.04019100324960628', None, None, None, None, '2800347')] time used for this insertion : 0.015372276306152344 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07323145866394043 time spend to save output : 0.015776634216308594 total time spend for step 2 : 0.08900809288024902 step3:velours_tree Wed May 7 02:46:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {22745924: [{'Teint_Dans_La_Masse': 22745932, 'autre_refus': 22745933, 'environnement': 22745934, 'kraft': 22745935, 'plastique': 22745936, 'Carton_gris': 22745937, 'mal_croppe': 22745938, 'papier': 22745939, 'Carton_brun': 22745940, 'flou': 22745941, 'metal': 22745942, 'cartonnette': 22745943}]} input_args_next_step : {22745924: ()} output_args : {22745924: [{'Teint_Dans_La_Masse': 22745932, 'autre_refus': 22745933, 'environnement': 22745934, 'kraft': 22745935, 'plastique': 22745936, 'Carton_gris': 22745937, 'mal_croppe': 22745938, 'papier': 22745939, 'Carton_brun': 22745940, 'flou': 22745941, 'metal': 22745942, 'cartonnette': 22745943}]} args : 22745924 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': 22745932, 'autre_refus': 22745933, 'environnement': 22745934, 'kraft': 22745935, 'plastique': 22745936, 'Carton_gris': 22745937, 'mal_croppe': 22745938, 'papier': 22745939, 'Carton_brun': 22745940, 'flou': 22745941, 'metal': 22745942, 'cartonnette': 22745943},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22745924) 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([22745924]) 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.3101682662963867 time spend to save output : 5.4836273193359375e-05 total time spend for step 3 : 0.3102231025695801 step4:send_mail_cod Wed May 7 02:46:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1356570955: ('0.04019100324960628',), 1356570584: ('0.04019100324960628',), 1356570582: ('0.04019100324960628',), 1356570580: ('0.04019100324960628',), 1356570578: ('0.04019100324960628',)} input_args_next_step : {1356570955: ()} output_args : {1356570955: ('0.04019100324960628',), 1356570584: ('0.04019100324960628',), 1356570582: ('0.04019100324960628',), 1356570580: ('0.04019100324960628',), 1356570578: ('0.04019100324960628',)} args : 1356570955 depend.output_id : 0 input_args_next_step : {1356570955: ('0.04019100324960628',), 1356570584: ()} output_args : {1356570955: ('0.04019100324960628',), 1356570584: ('0.04019100324960628',), 1356570582: ('0.04019100324960628',), 1356570580: ('0.04019100324960628',), 1356570578: ('0.04019100324960628',)} args : 1356570584 depend.output_id : 0 input_args_next_step : {1356570955: ('0.04019100324960628',), 1356570584: ('0.04019100324960628',), 1356570582: ()} output_args : {1356570955: ('0.04019100324960628',), 1356570584: ('0.04019100324960628',), 1356570582: ('0.04019100324960628',), 1356570580: ('0.04019100324960628',), 1356570578: ('0.04019100324960628',)} args : 1356570582 depend.output_id : 0 input_args_next_step : {1356570955: ('0.04019100324960628',), 1356570584: ('0.04019100324960628',), 1356570582: ('0.04019100324960628',), 1356570580: ()} output_args : {1356570955: ('0.04019100324960628',), 1356570584: ('0.04019100324960628',), 1356570582: ('0.04019100324960628',), 1356570580: ('0.04019100324960628',), 1356570578: ('0.04019100324960628',)} args : 1356570580 depend.output_id : 0 input_args_next_step : {1356570955: ('0.04019100324960628',), 1356570584: ('0.04019100324960628',), 1356570582: ('0.04019100324960628',), 1356570580: ('0.04019100324960628',), 1356570578: ()} output_args : {1356570955: ('0.04019100324960628',), 1356570584: ('0.04019100324960628',), 1356570582: ('0.04019100324960628',), 1356570580: ('0.04019100324960628',), 1356570578: ('0.04019100324960628',)} args : 1356570578 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 : {22745924: [{'Teint_Dans_La_Masse': 22745932, 'autre_refus': 22745933, 'environnement': 22745934, 'kraft': 22745935, 'plastique': 22745936, 'Carton_gris': 22745937, 'mal_croppe': 22745938, 'papier': 22745939, 'Carton_brun': 22745940, 'flou': 22745941, 'metal': 22745942, 'cartonnette': 22745943}]} input_args_next_step : {1356570955: ('0.04019100324960628',), 1356570584: ('0.04019100324960628',), 1356570582: ('0.04019100324960628',), 1356570580: ('0.04019100324960628',), 1356570578: ('0.04019100324960628',), 22745924: ()} output_args : {22745924: [{'Teint_Dans_La_Masse': 22745932, 'autre_refus': 22745933, 'environnement': 22745934, 'kraft': 22745935, 'plastique': 22745936, 'Carton_gris': 22745937, 'mal_croppe': 22745938, 'papier': 22745939, 'Carton_brun': 22745940, 'flou': 22745941, 'metal': 22745942, 'cartonnette': 22745943}]} args : 22745924 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :6, first value : ('0.04019100324960628',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22745924) 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 (1356570955,1356570584,1356570582,1356570580,1356570578) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1356570578 begin to download photo : 1356570582 begin to download photo : 1356570955 download finish for photo 1356570578 begin to download photo : 1356570580 download finish for photo 1356570955 download finish for photo 1356570582 begin to download photo : 1356570584 download finish for photo 1356570580 download finish for photo 1356570584 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P22745924_07-05-2025_02_46_58.pdf 22745933 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=22745933 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356569728: '1746578051_2070418_1356569595_8b63281f6280593767d3436b037a7588_rle_crop_3787788382_0.png', 1356569917: '1746578412_2073847_1356569793_7a93aed4a7b9a322c1ee6c0d05e18470_rle_crop_3787790132_0.png', 1356570448: '1746578652_2076464_1356569911_5b82c40bff31ff1d82796d830d75cf65_rle_crop_3787804573_0.png', 1356570449: '1746578652_2076464_1356569911_5b82c40bff31ff1d82796d830d75cf65_rle_crop_3787804575_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/86087f3a0479f0162992bd9b14b9ff9a_52304325.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/f28e19374c07572cc7fc03fe1655add1_91854976.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/0821cbab60989968e944b926aa3ef057_47346902.png change filename to text .imagette227459331746578818/ imagette227459331746578818/1746578051_2070418_1356569595_8b63281f6280593767d3436b037a7588_rle_crop_3787788382_0.png.png imagette227459331746578818/1746578412_2073847_1356569793_7a93aed4a7b9a322c1ee6c0d05e18470_rle_crop_3787790132_0.png.png imagette227459331746578818/1746578652_2076464_1356569911_5b82c40bff31ff1d82796d830d75cf65_rle_crop_3787804575_0.png.png imagette227459331746578818/1746578652_2076464_1356569911_5b82c40bff31ff1d82796d830d75cf65_rle_crop_3787804573_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/19f830e9fe631b9e4abbadaafb740ae1_65267573.png imagette227459331746578818 22745935 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=22745935 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356569828: '1746578246_3684302_1356569745_f7493885e7c78959f11708f8a02fa886_rle_crop_3787789386_0.png', 1356569918: '1746578412_2073847_1356569837_f91e7e0caf846302ff3dc767ee09bc50_rle_crop_3787790118_0.png', 1356569985: '1746578487_4130087_1356569874_8403828c91700154e475bfd785c2a261_rle_crop_3787801682_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/db144a8fa76e9a4485aa475e8be10fc0_85215913.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/431019781b4f810e0a8b8fe297fec1a1_19745340.png change filename to text .imagette227459351746578818/ imagette227459351746578818/1746578487_4130087_1356569874_8403828c91700154e475bfd785c2a261_rle_crop_3787801682_0.png.png imagette227459351746578818/1746578412_2073847_1356569837_f91e7e0caf846302ff3dc767ee09bc50_rle_crop_3787790118_0.png.png imagette227459351746578818/1746578246_3684302_1356569745_f7493885e7c78959f11708f8a02fa886_rle_crop_3787789386_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/29b3ca810847add4c806341aade1ee0d_39346659.png imagette227459351746578818 22745936 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=22745936 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356569731: '1746578051_2070418_1356569595_8b63281f6280593767d3436b037a7588_rle_crop_3787788386_0.png', 1356569765: '1746578127_4120537_1356569674_4716a9f3419fde7210149059e8db30e1_rle_crop_3787788620_0.png', 1356569982: '1746578487_4130087_1356569874_8403828c91700154e475bfd785c2a261_rle_crop_3787801678_0.png', 1356569983: '1746578487_4130087_1356569870_628d8427f2f5d3447dc1d42764586d79_rle_crop_3787802208_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/08dde9004596651ac5d595af1b522e19_59716359.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/cbf439ad400d79df8a9d74b94d5a5bc8_24009571.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/c914154ab497c064cb9cce5a054d64d6_44509969.png change filename to text .imagette227459361746578818/ imagette227459361746578818/1746578487_4130087_1356569874_8403828c91700154e475bfd785c2a261_rle_crop_3787801678_0.png.png imagette227459361746578818/1746578051_2070418_1356569595_8b63281f6280593767d3436b037a7588_rle_crop_3787788386_0.png.png imagette227459361746578818/1746578127_4120537_1356569674_4716a9f3419fde7210149059e8db30e1_rle_crop_3787788620_0.png.png imagette227459361746578818/1746578487_4130087_1356569870_628d8427f2f5d3447dc1d42764586d79_rle_crop_3787802208_0.png.png imagette227459381746578819/ imagette227459411746578819/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/27a9e33a61daeba794f07a1663771c4f_208416.png imagette227459361746578818 22745938 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=22745938 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227459381746578819 22745941 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=22745941 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227459411746578819 22745942 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=22745942 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356569866: '1746578293_2072578_1356569715_fc4eb9785e5ab2017bcb865f61f75983_rle_crop_3787789690_0.png', 1356569987: '1746578487_4130087_1356569874_8403828c91700154e475bfd785c2a261_rle_crop_3787801679_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/a85f746231d28f39dfaeab3583a3845d_11533257.png change filename to text .imagette227459421746578819/ imagette227459421746578819/1746578293_2072578_1356569715_fc4eb9785e5ab2017bcb865f61f75983_rle_crop_3787789690_0.png.png imagette227459421746578819/1746578487_4130087_1356569874_8403828c91700154e475bfd785c2a261_rle_crop_3787801679_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/c84059b2c259583fa2608177c4ec27d6_33900409.png imagette227459421746578819 22745943 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=22745943 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356569859: '1746578293_2072578_1356569752_4f56787823a5ed0fb9f98cb6d9de51f2_rle_crop_3787789639_0.png', 1356569860: '1746578293_2072578_1356569716_65b21cc4b3370253490066fc41edd618_rle_crop_3787789658_0.png', 1356569861: '1746578293_2072578_1356569715_fc4eb9785e5ab2017bcb865f61f75983_rle_crop_3787789683_0.png', 1356569862: '1746578293_2072578_1356569708_392626b642c0e78bde6377f63dba0e24_rle_crop_3787789713_0.png', 1356569891: '1746578365_4126757_1356569831_628dec1841ec219bf3bc9ece74353762_rle_crop_3787789913_0.png', 1356569966: '1746578473_2074594_1356569876_9e266139c68341753aeba434d21e7028_rle_crop_3787799616_0.png', 1356569979: '1746578487_4130087_1356569872_0fbbb5300ed88a516fa4128e6fc19f02_rle_crop_3787801704_0.png', 1356570271: '1746578593_2075992_1356569957_9fbb938f4d684d4a0263d66875c3dd36_rle_crop_3787804425_0.png', 1356570277: '1746578606_4133537_1356569908_98ef98b3b95788a7621aa921e02558ac_rle_crop_3787804432_0.png', 1356570278: '1746578606_4133537_1356569908_98ef98b3b95788a7621aa921e02558ac_rle_crop_3787804435_0.png', 1356570450: '1746578652_2076464_1356569911_5b82c40bff31ff1d82796d830d75cf65_rle_crop_3787804570_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/6033ce3552ac8459305770188a98567f_58926472.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/a11df64ce40ea45d81e8b8cbec20303a_20969313.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/f8524543bdb5c8e4907fef73ce4c4766_98817338.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/067524cc062d18dc2fe361ff9df1ff83_98935818.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/7a866a8eaa71aadc12f055da20a6ea99_54704809.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/fdd6053503504c616130853ac1fda019_67376883.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/6005e332f32d7364d958d590a7e905d2_48230476.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/f28ccbe97a6601a60e3a03171266f324_70635348.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/0ba91375761631d514cf95d2afdf5cb9_88202546.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/fc66cfb3d0728fb443f6ff639eb61d29_8110268.png change filename to text .imagette227459431746578819/ imagette227459431746578819/1746578593_2075992_1356569957_9fbb938f4d684d4a0263d66875c3dd36_rle_crop_3787804425_0.png.png imagette227459431746578819/1746578487_4130087_1356569872_0fbbb5300ed88a516fa4128e6fc19f02_rle_crop_3787801704_0.png.png imagette227459431746578819/1746578652_2076464_1356569911_5b82c40bff31ff1d82796d830d75cf65_rle_crop_3787804570_0.png.png imagette227459431746578819/1746578606_4133537_1356569908_98ef98b3b95788a7621aa921e02558ac_rle_crop_3787804432_0.png.png imagette227459431746578819/1746578293_2072578_1356569752_4f56787823a5ed0fb9f98cb6d9de51f2_rle_crop_3787789639_0.png.png imagette227459431746578819/1746578293_2072578_1356569715_fc4eb9785e5ab2017bcb865f61f75983_rle_crop_3787789683_0.png.png imagette227459431746578819/1746578293_2072578_1356569716_65b21cc4b3370253490066fc41edd618_rle_crop_3787789658_0.png.png imagette227459431746578819/1746578606_4133537_1356569908_98ef98b3b95788a7621aa921e02558ac_rle_crop_3787804435_0.png.png imagette227459431746578819/1746578365_4126757_1356569831_628dec1841ec219bf3bc9ece74353762_rle_crop_3787789913_0.png.png imagette227459431746578819/1746578293_2072578_1356569708_392626b642c0e78bde6377f63dba0e24_rle_crop_3787789713_0.png.png imagette227459431746578819/1746578473_2074594_1356569876_9e266139c68341753aeba434d21e7028_rle_crop_3787799616_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/07ee38cc90dca823d32d8917d488e7cc_52619748.png imagette227459431746578819 22745932 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=22745932 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356569819: '1746578246_3684302_1356569748_17cb9cd48bb5e913d544e950f6229252_rle_crop_3787789363_0.png', 1356569821: '1746578246_3684302_1356569748_17cb9cd48bb5e913d544e950f6229252_rle_crop_3787789364_0.png', 1356569822: '1746578246_3684302_1356569747_aff134cbbf852912a616d5b42c8103ba_rle_crop_3787789369_0.png', 1356569823: '1746578246_3684302_1356569747_aff134cbbf852912a616d5b42c8103ba_rle_crop_3787789373_0.png', 1356569824: '1746578246_3684302_1356569747_aff134cbbf852912a616d5b42c8103ba_rle_crop_3787789370_0.png', 1356569854: '1746578293_2072578_1356569752_4f56787823a5ed0fb9f98cb6d9de51f2_rle_crop_3787789643_0.png', 1356569855: '1746578293_2072578_1356569716_65b21cc4b3370253490066fc41edd618_rle_crop_3787789672_0.png', 1356569856: '1746578293_2072578_1356569715_fc4eb9785e5ab2017bcb865f61f75983_rle_crop_3787789687_0.png', 1356569884: '1746578353_2073151_1356569797_6f4081d3ce26a043b4f333a30f7741db_rle_crop_3787789884_0.png', 1356569916: '1746578412_2073847_1356569837_f91e7e0caf846302ff3dc767ee09bc50_rle_crop_3787790119_0.png', 1356570274: '1746578606_4133537_1356569908_98ef98b3b95788a7621aa921e02558ac_rle_crop_3787804438_0.png', 1356570275: '1746578606_4133537_1356569908_98ef98b3b95788a7621aa921e02558ac_rle_crop_3787804440_0.png', 1356570276: '1746578606_4133537_1356569906_dd7f95308090c69224b5cbc5941c8485_rle_crop_3787804467_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/42da948a14f9387df43c7f6fbd862051_64716627.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/7ac20c3344d47d87066365761e421035_9784844.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/f9a63a86491873dc75ffb01781378c46_93966360.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/e171005465f513576715fb1f5728e00a_5570850.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/cd765dcb100717d900dd342ccaf9a1eb_44664628.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/354cca5b6c3ceaf93285625280418e86_1457791.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/67fcb47e73d877b12c944d468cd9956e_4660688.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/633ca7c721022a6815b4ff706d968e70_62365840.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/6b73220b8d6e5f0feb87f8e37447ed39_18495706.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/191809116a430a2d004c0340769f7c2b_43179309.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/3528d442b7c6aef249b05407f79c1fae_42629647.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/a949df2d5dba5c2603a62372cfe37e41_82207968.png change filename to text .imagette227459321746578819/ imagette227459321746578819/1746578293_2072578_1356569715_fc4eb9785e5ab2017bcb865f61f75983_rle_crop_3787789687_0.png.png imagette227459321746578819/1746578412_2073847_1356569837_f91e7e0caf846302ff3dc767ee09bc50_rle_crop_3787790119_0.png.png imagette227459321746578819/1746578606_4133537_1356569908_98ef98b3b95788a7621aa921e02558ac_rle_crop_3787804440_0.png.png imagette227459321746578819/1746578606_4133537_1356569908_98ef98b3b95788a7621aa921e02558ac_rle_crop_3787804438_0.png.png imagette227459321746578819/1746578246_3684302_1356569747_aff134cbbf852912a616d5b42c8103ba_rle_crop_3787789373_0.png.png imagette227459321746578819/1746578246_3684302_1356569748_17cb9cd48bb5e913d544e950f6229252_rle_crop_3787789363_0.png.png imagette227459321746578819/1746578246_3684302_1356569747_aff134cbbf852912a616d5b42c8103ba_rle_crop_3787789370_0.png.png imagette227459321746578819/1746578293_2072578_1356569716_65b21cc4b3370253490066fc41edd618_rle_crop_3787789672_0.png.png imagette227459321746578819/1746578353_2073151_1356569797_6f4081d3ce26a043b4f333a30f7741db_rle_crop_3787789884_0.png.png imagette227459321746578819/1746578606_4133537_1356569906_dd7f95308090c69224b5cbc5941c8485_rle_crop_3787804467_0.png.png imagette227459321746578819/1746578246_3684302_1356569747_aff134cbbf852912a616d5b42c8103ba_rle_crop_3787789369_0.png.png imagette227459321746578819/1746578293_2072578_1356569752_4f56787823a5ed0fb9f98cb6d9de51f2_rle_crop_3787789643_0.png.png imagette227459321746578819/1746578246_3684302_1356569748_17cb9cd48bb5e913d544e950f6229252_rle_crop_3787789364_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/28229952d61f7c848b9d911f7e45cad4_5940521.png imagette227459321746578819 22745937 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=22745937 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356569729: '1746578051_2070418_1356569595_8b63281f6280593767d3436b037a7588_rle_crop_3787788377_0.png', 1356569730: '1746578051_2070418_1356569593_4ebb6363c4e14b776da1d1e622c0fbbc_rle_crop_3787788390_0.png', 1356569825: '1746578246_3684302_1356569750_123b8005dbd266e21bb77204196d8212_rle_crop_3787789353_0.png', 1356569826: '1746578246_3684302_1356569745_f7493885e7c78959f11708f8a02fa886_rle_crop_3787789384_0.png', 1356569857: '1746578293_2072578_1356569752_4f56787823a5ed0fb9f98cb6d9de51f2_rle_crop_3787789641_0.png', 1356569890: '1746578365_4126757_1356569835_110edb83c3c7c68387a359c28f34fe0e_rle_crop_3787789889_0.png', 1356569976: '1746578487_4130087_1356569872_0fbbb5300ed88a516fa4128e6fc19f02_rle_crop_3787801700_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/3371689b5ba79ae9cea512fa6f1095a9_96189539.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/47fd36fa029ee11c57c301889fa57fad_91624524.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/21e68f30a163dec3f009d4d53d00aae3_10714136.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/fff9c2eefd30bc9699671aacebef2659_93363263.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/eaa1bef5beabb6d41fc805c66e35955a_38601348.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/4a14813a873d2ca1427df3b58f64dd9b_29817732.png change filename to text .imagette227459371746578820/ imagette227459371746578820/1746578246_3684302_1356569750_123b8005dbd266e21bb77204196d8212_rle_crop_3787789353_0.png.png imagette227459371746578820/1746578487_4130087_1356569872_0fbbb5300ed88a516fa4128e6fc19f02_rle_crop_3787801700_0.png.png imagette227459371746578820/1746578293_2072578_1356569752_4f56787823a5ed0fb9f98cb6d9de51f2_rle_crop_3787789641_0.png.png imagette227459371746578820/1746578246_3684302_1356569745_f7493885e7c78959f11708f8a02fa886_rle_crop_3787789384_0.png.png imagette227459371746578820/1746578051_2070418_1356569595_8b63281f6280593767d3436b037a7588_rle_crop_3787788377_0.png.png imagette227459371746578820/1746578365_4126757_1356569835_110edb83c3c7c68387a359c28f34fe0e_rle_crop_3787789889_0.png.png imagette227459371746578820/1746578051_2070418_1356569593_4ebb6363c4e14b776da1d1e622c0fbbc_rle_crop_3787788390_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/67ced182b2c43cc4d14740a363372bc7_48858642.png imagette227459371746578820 22745940 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=22745940 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356569863: '1746578293_2072578_1356569716_65b21cc4b3370253490066fc41edd618_rle_crop_3787789665_0.png', 1356569864: '1746578293_2072578_1356569715_fc4eb9785e5ab2017bcb865f61f75983_rle_crop_3787789691_0.png', 1356569865: '1746578293_2072578_1356569713_5f7ed8271b752fb148bf4e80932008ee_rle_crop_3787789702_0.png', 1356569981: '1746578487_4130087_1356569872_0fbbb5300ed88a516fa4128e6fc19f02_rle_crop_3787801701_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/4e44d1b00fa27a13d1b424e4c29421a2_25097583.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/572247b549e72ccc515ca05cf6722f42_39189789.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/52caf6771f23eefd9d69b31192763b36_75707464.png change filename to text .imagette227459401746578820/ imagette227459401746578820/1746578293_2072578_1356569713_5f7ed8271b752fb148bf4e80932008ee_rle_crop_3787789702_0.png.png imagette227459401746578820/1746578487_4130087_1356569872_0fbbb5300ed88a516fa4128e6fc19f02_rle_crop_3787801701_0.png.png imagette227459401746578820/1746578293_2072578_1356569716_65b21cc4b3370253490066fc41edd618_rle_crop_3787789665_0.png.png imagette227459401746578820/1746578293_2072578_1356569715_fc4eb9785e5ab2017bcb865f61f75983_rle_crop_3787789691_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/d089127d7bd3c89062eef53106735906_99601097.png imagette227459401746578820 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22745924 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22745944,22745945,22745946,22745947,22745948,22745949,22745950,22745951,22745952,22745953,22745954,22745955?tags=Teint_Dans_La_Masse,autre_refus,environnement,kraft,plastique,Carton_gris,mal_croppe,papier,Carton_brun,flou,metal,cartonnette your option no_mail is active, we will not send the real mail to your client args[1356570955] : ('0.04019100324960628',) no score found for photo 1356570955 We are sending mail with results at report@fotonower.com args[1356570584] : ('0.04019100324960628',) no score found for photo 1356570584 We are sending mail with results at report@fotonower.com args[1356570582] : ('0.04019100324960628',) no score found for photo 1356570582 We are sending mail with results at report@fotonower.com args[1356570580] : ('0.04019100324960628',) no score found for photo 1356570580 We are sending mail with results at report@fotonower.com args[1356570578] : ('0.04019100324960628',) no score found for photo 1356570578 We are sending mail with results at report@fotonower.com refus_total : 0.04019100324960628 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=22745924 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_P22745924_07-05-2025_02_46_58.pdf results_Auto_P22745924_07-05-2025_02_46_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745924_07-05-2025_02_46_58.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','22745924','results_Auto_P22745924_07-05-2025_02_46_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745924_07-05-2025_02_46_58.pdf','pdf','','0.17','0.04019100324960628') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22745924]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1356570955, 1356570584, 1356570582, 1356570580, 1356570578] map_info['map_portfolio_photo'] : {22745924: [1356570955, 1356570584, 1356570582, 1356570580, 1356570578, 1356570427, 1356570422, 1356570406, 1356570377, 1356570219, 1356570194, 1356570168, 1356570141, 1356570001, 1356569999, 1356569996, 1356569993, 1356569959, 1356569957, 1356569955, 1356569952, 1356569911, 1356569908, 1356569906, 1356569900, 1356569876, 1356569874, 1356569872, 1356569870, 1356569837, 1356569835, 1356569833, 1356569831, 1356569797, 1356569793, 1356569776, 1356569775, 1356569774, 1356569752, 1356569750, 1356569748, 1356569747, 1356569745, 1356569718, 1356569716, 1356569715, 1356569713, 1356569708, 1356569674, 1356569673, 1356569671, 1356569670, 1356569668, 1356569666, 1356569633, 1356569630, 1356569626, 1356569596, 1356569595, 1356569593, 1356569583]} final : False mtd_id 4302 list_pids : [1356570955, 1356570584, 1356570582, 1356570580, 1356570578] 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, '2800347') ('4302', '22745924', '1356570955', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356570584', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356570582', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356570580', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356570578', None, None, None, None, None, '2800347') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22745924', '1356570955', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356570584', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356570582', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356570580', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356570578', None, None, None, None, None, '2800347')] time used for this insertion : 0.011940240859985352 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.766662359237671 time spend to save output : 0.012120246887207031 total time spend for step 4 : 3.778782606124878 step5:split_time_score Wed May 7 02:47:02 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 : ['22745924'] 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 : [('22745924',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22745924) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1356570955: {'path': 'temp/1746578818_3068318_1356570955_b99e548818aaa8e0defa08853490401b.jpg', 'extension': 'jpg'}, 1356570578: {'path': 'temp/1746578818_3068318_1356570578_76465b02fda86405e5001ed4a82d5176.jpg', 'extension': 'jpg'}, 1356570580: {'path': 'temp/1746578818_3068318_1356570580_bf83b9eb345f97ea3ad0b3d530a3f3fb.jpg', 'extension': 'jpg'}, 1356570582: {'path': 'temp/1746578818_3068318_1356570582_dc767bb40d2db6f38fdf7a603e230342.jpg', 'extension': 'jpg'}, 1356570584: {'path': 'temp/1746578818_3068318_1356570584_d2ae9ed74a0f8be580e95fdd5a475e89.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 = 22745924; (('arc_en_ciel_jrm_live',), ('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 = 22745924 group by h (('02', 61),) 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=22745924 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 (22745924) 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 (22745924) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07052025 22745924 Nombre de photos uploadées : 61 / 23040 (0%) 07052025 22745924 Nombre de photos taguées (types de déchets): 0 / 61 (0%) 07052025 22745924 Nombre de photos taguées (volume) : 0 / 61 (0%) [{'photo_id': 1356569596, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/1db22678f41627c764fd1c2f2e13c113.jpg', 'username': None, 'uploaded_at': 1746577867, 'text': 'image_07052025_02_30_14_10137.jpg'}, {'photo_id': 1356569595, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/8b63281f6280593767d3436b037a7588.jpg', 'username': None, 'uploaded_at': 1746577867, 'text': 'image_07052025_02_30_24_10135.jpg'}, {'photo_id': 1356569593, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/4ebb6363c4e14b776da1d1e622c0fbbc.jpg', 'username': None, 'uploaded_at': 1746577867, 'text': 'image_07052025_02_30_34_10135.jpg'}, {'photo_id': 1356569583, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/4fa3d8a6a1b9fcefeb4b05c4abece10b.jpg', 'username': None, 'uploaded_at': 1746577867, 'text': 'image_07052025_02_30_44_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017061233520507812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22745924, '2025-05-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1781050,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028197765350341797 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= 1781050 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1781050, 'dashboard_run_id': 1788765, 'mtr_portfolio_id': 22744354, 'dashboard_result_id': 10360240, '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_P22744354_07-05-2025_02_05_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1788765, 'mtr_portfolio_id': 22744792, 'dashboard_result_id': 10360241, '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_P22744792_07-05-2025_02_21_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1788765, 'mtr_portfolio_id': 22745552, 'dashboard_result_id': 10360242, '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_P22745552_07-05-2025_02_34_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1788765, 'mtr_portfolio_id': 22745924, 'dashboard_result_id': 10360243, '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_P22745924_07-05-2025_02_42_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, '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 = 22744354 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': 2800188, 'mtr_portfolio_id': 22744354, 'created_at': datetime.datetime(2025, 5, 7, 2, 5), 'result': '0.035308623964605136', 'result_long': None, 'result_double': None}] Qualite : 0.035308623964605136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22744354 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744354_07-05-2025_02_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22744354 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_P22744354_07-05-2025_02_05_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, 'pht': 3726}}" where mtr_portfolio_id = 22744354 and dashboard_run_id = 1788765 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`=22744354 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10360240, 0.035308623964605136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744354_07-05-2025_02_05_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, '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 = 22744792 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': 2800250, 'mtr_portfolio_id': 22744792, 'created_at': datetime.datetime(2025, 5, 7, 2, 21, 5), 'result': '0.05543965668093365', 'result_long': None, 'result_double': None}] Qualite : 0.05543965668093365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22744792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744792_07-05-2025_02_21_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22744792 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_P22744792_07-05-2025_02_21_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, 'pht': 3726}}" where mtr_portfolio_id = 22744792 and dashboard_run_id = 1788764 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`=22744792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10360241, 0.05543965668093365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744792_07-05-2025_02_21_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, '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 = 22745552 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': 2800294, 'mtr_portfolio_id': 22745552, 'created_at': datetime.datetime(2025, 5, 7, 2, 34, 58), 'result': '0.04177400860934052', 'result_long': None, 'result_double': None}] Qualite : 0.04177400860934052 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22745552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745552_07-05-2025_02_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22745552 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_P22745552_07-05-2025_02_34_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, 'pht': 3726}}" where mtr_portfolio_id = 22745552 and dashboard_run_id = 1788764 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`=22745552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10360242, 0.04177400860934052, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745552_07-05-2025_02_34_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, '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 = 22745924 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': 2800347, 'mtr_portfolio_id': 22745924, 'created_at': datetime.datetime(2025, 5, 7, 2, 46, 58), 'result': '0.04019100324960628', 'result_long': None, 'result_double': None}] Qualite : 0.04019100324960628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22745924 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745924_07-05-2025_02_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22745924 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_P22745924_07-05-2025_02_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, 'pht': 3726}}" where mtr_portfolio_id = 22745924 and dashboard_run_id = 1788764 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`=22745924 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10360243, 0.04019100324960628, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745924_07-05-2025_02_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, '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 (22744354,22744792,22745552,22745924) result : ((1356554741,), (1356554744,), (1356554758,), (1356554771,), (1356554792,), (1356554801,), (1356554832,), (1356554842,), (1356554844,), (1356554846,), (1356554849,), (1356554964,), (1356554991,), (1356555019,), (1356555045,), (1356555374,), (1356555409,), (1356555487,), (1356555573,), (1356555603,), (1356555631,), (1356555840,), (1356555843,), (1356555844,), (1356555847,), (1356555849,), (1356555851,), (1356555975,), (1356556009,), (1356556032,), (1356556056,), (1356556246,), (1356556315,), (1356556317,), (1356556320,), (1356556343,), (1356556346,), (1356556349,), (1356556516,), (1356556546,), (1356557073,), (1356556969,), (1356556995,), (1356557021,), (1356557046,), (1356557252,), (1356557264,), (1356557274,), (1356557385,), (1356557410,), (1356557411,), (1356557413,), (1356557416,), (1356557419,), (1356557454,), (1356557456,), (1356557485,), (1356558044,), (1356558086,), (1356558115,), (1356558146,), (1356558764,), (1356558943,), (1356558979,), (1356559005,), (1356559076,), (1356559426,), (1356559432,), (1356559482,), (1356559538,), (1356559600,), (1356559959,), (1356559984,), (1356560009,), (1356560136,), (1356560190,), (1356560246,), (1356560883,), (1356561039,), (1356561143,), (1356561355,), (1356561771,), (1356561812,), (1356561860,), (1356561896,), (1356561943,), (1356562118,), (1356562123,), (1356562149,), (1356562177,), (1356562213,), (1356562263,), (1356562752,), (1356562797,), (1356562823,), (1356562865,), (1356563467,), (1356563522,), (1356563579,), (1356563627,), (1356564196,), (1356564239,), (1356564259,), (1356564262,), (1356564265,), (1356564287,), (1356564291,), (1356564293,), (1356564295,), (1356564296,), (1356565344,), (1356564955,), (1356565038,), (1356565118,), (1356565195,), (1356565273,), (1356566148,), (1356566196,), (1356566696,), (1356566706,), (1356566708,), (1356566720,), (1356566722,), (1356566745,), (1356566747,), (1356566749,), (1356566751,), (1356566754,), (1356566994,), (1356567021,), (1356567046,), (1356567071,), (1356567100,), (1356567126,), (1356567388,), (1356567413,), (1356567741,), (1356567829,), (1356567852,), (1356567879,), (1356567907,), (1356568160,), (1356568166,), (1356568170,), (1356568175,), (1356568179,), (1356568183,), (1356568192,), (1356568194,), (1356568196,), (1356568460,), (1356568508,), (1356568569,), (1356568596,), (1356568667,), (1356568669,), (1356568674,), (1356568677,), (1356568679,), (1356568739,), (1356568740,), (1356568741,), (1356568758,), (1356568783,), (1356569059,), (1356569084,), (1356569299,), (1356569300,), (1356569301,), (1356569302,), (1356569304,), (1356569306,), (1356569343,), (1356569344,), (1356569346,), (1356569348,), (1356569350,), (1356569598,), (1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,), (1356569993,), (1356569996,), (1356569999,), (1356570001,), (1356570141,), (1356570168,), (1356570194,), (1356570219,), (1356570377,), (1356570406,), (1356570422,), (1356570427,), (1356570578,), (1356570580,), (1356570582,), (1356570584,), (1356570955,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07052025': {'nb_upload': 61, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22745924]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1356570955, 1356570584, 1356570582, 1356570580, 1356570578] map_info['map_portfolio_photo'] : {22745924: [1356570955, 1356570584, 1356570582, 1356570580, 1356570578, 1356570427, 1356570422, 1356570406, 1356570377, 1356570219, 1356570194, 1356570168, 1356570141, 1356570001, 1356569999, 1356569996, 1356569993, 1356569959, 1356569957, 1356569955, 1356569952, 1356569911, 1356569908, 1356569906, 1356569900, 1356569876, 1356569874, 1356569872, 1356569870, 1356569837, 1356569835, 1356569833, 1356569831, 1356569797, 1356569793, 1356569776, 1356569775, 1356569774, 1356569752, 1356569750, 1356569748, 1356569747, 1356569745, 1356569718, 1356569716, 1356569715, 1356569713, 1356569708, 1356569674, 1356569673, 1356569671, 1356569670, 1356569668, 1356569666, 1356569633, 1356569630, 1356569626, 1356569596, 1356569595, 1356569593, 1356569583]} final : True mtd_id 4302 list_pids : [1356570955, 1356570584, 1356570582, 1356570580, 1356570578] Looping around the photos to save general results len do output : 1 /22745924Didn'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, '2800347') ('4302', '22745924', '1356570955', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356570584', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356570582', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356570580', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356570578', None, None, None, None, None, '2800347') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22745924', 'None', None, None, None, None, '2800347'), ('4302', '22745924', '1356570955', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356570584', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356570582', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356570580', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356570578', None, None, None, None, None, '2800347')] time used for this insertion : 0.013311624526977539 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3325502872467041 time spend to save output : 0.01345968246459961 total time spend for step 5 : 0.3460099697113037 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 (2800347) 2.04user 2.56system 0:06.60elapsed 69%CPU (0avgtext+0avgdata 158560maxresident)k 3656inputs+7976outputs (46major+64077minor)pagefaults 0swaps