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 : 1881125 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 (2732056) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2732056) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22146025 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2732056'] with mtr_portfolio_ids : ['22146025'] and first list_photo_ids : [] new path : /proc/1881125/ Name: python3 Umask: 0002 State: R (running) Tgid: 1881125 Ngid: 0 Pid: 1881125 PPid: 1881124 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1881125 NSpid: 1881125 NSpgid: 1877120 NSsid: 1877120 VmPeak: 1106828 kB VmSize: 1106828 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99044 kB VmRSS: 99044 kB RssAnon: 59800 kB RssFile: 39244 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 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: 65 nonvoluntary_ctxt_switches: 108 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1881125', 'Ngid': '0', 'Pid': '1881125', 'PPid': '1881124', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1881125', 'NSpid': '1881125', 'NSpgid': '1877120', 'NSsid': '1877120', 'VmPeak': '1106828 kB', 'VmSize': '1106828 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99044 kB', 'VmRSS': '99044 kB', 'RssAnon': '59800 kB', 'RssFile': '39244 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 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': '65', 'nonvoluntary_ctxt_switches': '108'} ('datou_batch_current', '1881125', '1106828', '0', '1106828', '865576', '99044', b'', 'marlene', '2732056') 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 (22146025) 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 (2732056 ) ) 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 (22146025) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350781095, 'portfolio_id': 22146025}, {'photo_id': 1350781043, 'portfolio_id': 22146025}, {'photo_id': 1350780991, 'portfolio_id': 22146025}, {'photo_id': 1350780470, 'portfolio_id': 22146025}, {'photo_id': 1350780411, 'portfolio_id': 22146025}, {'photo_id': 1350780358, 'portfolio_id': 22146025}, {'photo_id': 1350780302, 'portfolio_id': 22146025}, {'photo_id': 1350780239, 'portfolio_id': 22146025}, {'photo_id': 1350780081, 'portfolio_id': 22146025}, {'photo_id': 1350780077, 'portfolio_id': 22146025}, {'photo_id': 1350780073, 'portfolio_id': 22146025}, {'photo_id': 1350780072, 'portfolio_id': 22146025}, {'photo_id': 1350780054, 'portfolio_id': 22146025}, {'photo_id': 1350780044, 'portfolio_id': 22146025}, {'photo_id': 1350779600, 'portfolio_id': 22146025}, {'photo_id': 1350779558, 'portfolio_id': 22146025}, {'photo_id': 1350779508, 'portfolio_id': 22146025}, {'photo_id': 1350779274, 'portfolio_id': 22146025}, {'photo_id': 1350779267, 'portfolio_id': 22146025}, {'photo_id': 1350779265, 'portfolio_id': 22146025}, {'photo_id': 1350779261, 'portfolio_id': 22146025}, {'photo_id': 1350779254, 'portfolio_id': 22146025}, {'photo_id': 1350779005, 'portfolio_id': 22146025}, {'photo_id': 1350778952, 'portfolio_id': 22146025}, {'photo_id': 1350778894, 'portfolio_id': 22146025}, {'photo_id': 1350778813, 'portfolio_id': 22146025}, {'photo_id': 1350778764, 'portfolio_id': 22146025}, {'photo_id': 1350778713, 'portfolio_id': 22146025}, {'photo_id': 1350778366, 'portfolio_id': 22146025}, {'photo_id': 1350778331, 'portfolio_id': 22146025}, {'photo_id': 1350778292, 'portfolio_id': 22146025}, {'photo_id': 1350778240, 'portfolio_id': 22146025}, {'photo_id': 1350777660, 'portfolio_id': 22146025}, {'photo_id': 1350777601, 'portfolio_id': 22146025}, {'photo_id': 1350777560, 'portfolio_id': 22146025}, {'photo_id': 1350777515, 'portfolio_id': 22146025}, {'photo_id': 1350777456, 'portfolio_id': 22146025}, {'photo_id': 1350776592, 'portfolio_id': 22146025}, {'photo_id': 1350776548, 'portfolio_id': 22146025}, {'photo_id': 1350776518, 'portfolio_id': 22146025}, {'photo_id': 1350776488, 'portfolio_id': 22146025}, {'photo_id': 1350776460, 'portfolio_id': 22146025}, {'photo_id': 1350775773, 'portfolio_id': 22146025}, {'photo_id': 1350775747, 'portfolio_id': 22146025}, {'photo_id': 1350775722, 'portfolio_id': 22146025}, {'photo_id': 1350775698, 'portfolio_id': 22146025}, {'photo_id': 1350774736, 'portfolio_id': 22146025}, {'photo_id': 1350774666, 'portfolio_id': 22146025}, {'photo_id': 1350774636, 'portfolio_id': 22146025}, {'photo_id': 1350774590, 'portfolio_id': 22146025}, {'photo_id': 1350774564, 'portfolio_id': 22146025}, {'photo_id': 1350774511, 'portfolio_id': 22146025}, {'photo_id': 1350774098, 'portfolio_id': 22146025}, {'photo_id': 1350774095, 'portfolio_id': 22146025}, {'photo_id': 1350774094, 'portfolio_id': 22146025}, {'photo_id': 1350774049, 'portfolio_id': 22146025}, {'photo_id': 1350774047, 'portfolio_id': 22146025}, {'photo_id': 1350774041, 'portfolio_id': 22146025}, {'photo_id': 1350774037, 'portfolio_id': 22146025}] map_portfolio_id_photo_id: {22146025: [1350781095, 1350781043, 1350780991, 1350780470, 1350780411, 1350780358, 1350780302, 1350780239, 1350780081, 1350780077, 1350780073, 1350780072, 1350780054, 1350780044, 1350779600, 1350779558, 1350779508, 1350779274, 1350779267, 1350779265, 1350779261, 1350779254, 1350779005, 1350778952, 1350778894, 1350778813, 1350778764, 1350778713, 1350778366, 1350778331, 1350778292, 1350778240, 1350777660, 1350777601, 1350777560, 1350777515, 1350777456, 1350776592, 1350776548, 1350776518, 1350776488, 1350776460, 1350775773, 1350775747, 1350775722, 1350775698, 1350774736, 1350774666, 1350774636, 1350774590, 1350774564, 1350774511, 1350774098, 1350774095, 1350774094, 1350774049, 1350774047, 1350774041, 1350774037]} ##### 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.016602516174316406 #### 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 Thu Apr 17 18:58:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22146025) 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 : 22146025 get user id for portfolio 22146025 get sub ptf for main ptf 22146025, type 3726 and hashtags ['papier', 'cartonnette', 'Carton_gris', 'Teint_Dans_La_Masse', 'metal', 'plastique', 'environnement', 'flou', 'Carton_brun', 'mal_croppe', 'kraft', 'autre_refus'] 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`=22146025 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','Carton_gris','Teint_Dans_La_Masse','metal','plastique','environnement','flou','Carton_brun','mal_croppe','kraft','autre_refus')) 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`=22146025 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','Carton_gris','Teint_Dans_La_Masse','metal','plastique','environnement','flou','Carton_brun','mal_croppe','kraft','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22146025, 'sub_port_id': 22146029, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625922, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 50, 59)}, 'cartonnette': {'main_port_id': 22146025, 'sub_port_id': 22146030, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625923, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 50, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22146025, 'sub_port_id': 22146031, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625924, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 50, 59)}, 'autre_refus': {'main_port_id': 22146025, 'sub_port_id': 22146032, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625925, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 50, 59)}, 'environnement': {'main_port_id': 22146025, 'sub_port_id': 22146033, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625926, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 50, 59)}, 'Carton_gris': {'main_port_id': 22146025, 'sub_port_id': 22146034, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625927, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 50, 59)}, 'metal': {'main_port_id': 22146025, 'sub_port_id': 22146035, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625928, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 50, 59)}, 'mal_croppe': {'main_port_id': 22146025, 'sub_port_id': 22146036, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625929, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 50, 59)}, 'kraft': {'main_port_id': 22146025, 'sub_port_id': 22146037, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625930, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 50, 59)}, 'plastique': {'main_port_id': 22146025, 'sub_port_id': 22146038, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625931, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 50, 59)}, 'papier': {'main_port_id': 22146025, 'sub_port_id': 22146039, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625932, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 50, 59)}, 'flou': {'main_port_id': 22146025, 'sub_port_id': 22146040, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625933, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 50, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22146029 , 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=22146025 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 (22146029) result : ((1350776048,), (1350778586,), (1350780790,), (1350780793,), (1350780794,), (1350780795,), (1350780796,), (1350780801,), (1350780802,), (1350780803,), (1350780806,), (1350780807,), (1350781455,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22146025) result : ((1350774037,), (1350774041,), (1350774047,), (1350774049,), (1350774094,), (1350774095,), (1350774098,), (1350774511,), (1350774564,), (1350774590,), (1350774636,), (1350774666,), (1350774736,), (1350775698,), (1350775722,), (1350775747,), (1350775773,), (1350776460,), (1350776488,), (1350776518,), (1350776548,), (1350776592,), (1350777456,), (1350777515,), (1350777560,), (1350777601,), (1350777660,), (1350778240,), (1350778292,), (1350778331,), (1350778366,), (1350778713,), (1350778764,), (1350778813,), (1350778894,), (1350778952,), (1350779005,), (1350779254,), (1350779261,), (1350779265,), (1350779267,), (1350779274,), (1350779508,), (1350779558,), (1350779600,), (1350780044,), (1350780054,), (1350780072,), (1350780073,), (1350780077,), (1350780081,), (1350780239,), (1350780302,), (1350780358,), (1350780411,), (1350780470,), (1350780991,), (1350781043,), (1350781095,)) 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 (1350779600) 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 22146030 , 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=22146025 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 (22146030) result : ((1350777972,), (1350778580,), (1350779089,), (1350779090,), (1350779092,), (1350779260,), (1350779319,), (1350780744,), (1350780745,), (1350780771,), (1350781445,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22146025) result : ((1350774037,), (1350774041,), (1350774047,), (1350774049,), (1350774094,), (1350774095,), (1350774098,), (1350774511,), (1350774564,), (1350774590,), (1350774636,), (1350774666,), (1350774736,), (1350775698,), (1350775722,), (1350775747,), (1350775773,), (1350776460,), (1350776488,), (1350776518,), (1350776548,), (1350776592,), (1350777456,), (1350777515,), (1350777560,), (1350777601,), (1350777660,), (1350778240,), (1350778292,), (1350778331,), (1350778366,), (1350778713,), (1350778764,), (1350778813,), (1350778894,), (1350778952,), (1350779005,), (1350779254,), (1350779261,), (1350779265,), (1350779267,), (1350779274,), (1350779508,), (1350779558,), (1350779600,), (1350780044,), (1350780054,), (1350780072,), (1350780073,), (1350780077,), (1350780081,), (1350780239,), (1350780302,), (1350780358,), (1350780411,), (1350780470,), (1350780991,), (1350781043,), (1350781095,)) 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 (1350779600) 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 22146031 , 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=22146025 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 (22146031) result : ((1350776000,), (1350776001,), (1350777962,), (1350777964,), (1350779257,), (1350780681,), (1350780683,), (1350780684,), (1350780685,), (1350780686,), (1350780687,), (1350780730,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22146025) result : ((1350774037,), (1350774041,), (1350774047,), (1350774049,), (1350774094,), (1350774095,), (1350774098,), (1350774511,), (1350774564,), (1350774590,), (1350774636,), (1350774666,), (1350774736,), (1350775698,), (1350775722,), (1350775747,), (1350775773,), (1350776460,), (1350776488,), (1350776518,), (1350776548,), (1350776592,), (1350777456,), (1350777515,), (1350777560,), (1350777601,), (1350777660,), (1350778240,), (1350778292,), (1350778331,), (1350778366,), (1350778713,), (1350778764,), (1350778813,), (1350778894,), (1350778952,), (1350779005,), (1350779254,), (1350779261,), (1350779265,), (1350779267,), (1350779274,), (1350779508,), (1350779558,), (1350779600,), (1350780044,), (1350780054,), (1350780072,), (1350780073,), (1350780077,), (1350780081,), (1350780239,), (1350780302,), (1350780358,), (1350780411,), (1350780470,), (1350780991,), (1350781043,), (1350781095,)) 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 (1350779600) 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 22146032 , 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=22146025 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 (22146032) result : ((1350776012,), (1350778565,), (1350778567,), (1350779259,), (1350780693,), (1350780739,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22146025) result : ((1350774037,), (1350774041,), (1350774047,), (1350774049,), (1350774094,), (1350774095,), (1350774098,), (1350774511,), (1350774564,), (1350774590,), (1350774636,), (1350774666,), (1350774736,), (1350775698,), (1350775722,), (1350775747,), (1350775773,), (1350776460,), (1350776488,), (1350776518,), (1350776548,), (1350776592,), (1350777456,), (1350777515,), (1350777560,), (1350777601,), (1350777660,), (1350778240,), (1350778292,), (1350778331,), (1350778366,), (1350778713,), (1350778764,), (1350778813,), (1350778894,), (1350778952,), (1350779005,), (1350779254,), (1350779261,), (1350779265,), (1350779267,), (1350779274,), (1350779508,), (1350779558,), (1350779600,), (1350780044,), (1350780054,), (1350780072,), (1350780073,), (1350780077,), (1350780081,), (1350780239,), (1350780302,), (1350780358,), (1350780411,), (1350780470,), (1350780991,), (1350781043,), (1350781095,)) 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 (1350779600) 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 22146033 , 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=22146025 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 (22146033) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22146025) result : ((1350774037,), (1350774041,), (1350774047,), (1350774049,), (1350774094,), (1350774095,), (1350774098,), (1350774511,), (1350774564,), (1350774590,), (1350774636,), (1350774666,), (1350774736,), (1350775698,), (1350775722,), (1350775747,), (1350775773,), (1350776460,), (1350776488,), (1350776518,), (1350776548,), (1350776592,), (1350777456,), (1350777515,), (1350777560,), (1350777601,), (1350777660,), (1350778240,), (1350778292,), (1350778331,), (1350778366,), (1350778713,), (1350778764,), (1350778813,), (1350778894,), (1350778952,), (1350779005,), (1350779254,), (1350779261,), (1350779265,), (1350779267,), (1350779274,), (1350779508,), (1350779558,), (1350779600,), (1350780044,), (1350780054,), (1350780072,), (1350780073,), (1350780077,), (1350780081,), (1350780239,), (1350780302,), (1350780358,), (1350780411,), (1350780470,), (1350780991,), (1350781043,), (1350781095,)) 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 (1350779600) 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 22146034 , 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=22146025 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 (22146034) result : ((1350778574,), (1350778575,), (1350779954,), (1350780722,), (1350780723,), (1350780724,), (1350780725,), (1350780727,), (1350780729,), (1350780759,), (1350780760,), (1350780761,), (1350780762,), (1350780896,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22146025) result : ((1350774037,), (1350774041,), (1350774047,), (1350774049,), (1350774094,), (1350774095,), (1350774098,), (1350774511,), (1350774564,), (1350774590,), (1350774636,), (1350774666,), (1350774736,), (1350775698,), (1350775722,), (1350775747,), (1350775773,), (1350776460,), (1350776488,), (1350776518,), (1350776548,), (1350776592,), (1350777456,), (1350777515,), (1350777560,), (1350777601,), (1350777660,), (1350778240,), (1350778292,), (1350778331,), (1350778366,), (1350778713,), (1350778764,), (1350778813,), (1350778894,), (1350778952,), (1350779005,), (1350779254,), (1350779261,), (1350779265,), (1350779267,), (1350779274,), (1350779508,), (1350779558,), (1350779600,), (1350780044,), (1350780054,), (1350780072,), (1350780073,), (1350780077,), (1350780081,), (1350780239,), (1350780302,), (1350780358,), (1350780411,), (1350780470,), (1350780991,), (1350781043,), (1350781095,)) 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 (1350779600) 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 22146035 , 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=22146025 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 (22146035) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22146025) result : ((1350774037,), (1350774041,), (1350774047,), (1350774049,), (1350774094,), (1350774095,), (1350774098,), (1350774511,), (1350774564,), (1350774590,), (1350774636,), (1350774666,), (1350774736,), (1350775698,), (1350775722,), (1350775747,), (1350775773,), (1350776460,), (1350776488,), (1350776518,), (1350776548,), (1350776592,), (1350777456,), (1350777515,), (1350777560,), (1350777601,), (1350777660,), (1350778240,), (1350778292,), (1350778331,), (1350778366,), (1350778713,), (1350778764,), (1350778813,), (1350778894,), (1350778952,), (1350779005,), (1350779254,), (1350779261,), (1350779265,), (1350779267,), (1350779274,), (1350779508,), (1350779558,), (1350779600,), (1350780044,), (1350780054,), (1350780072,), (1350780073,), (1350780077,), (1350780081,), (1350780239,), (1350780302,), (1350780358,), (1350780411,), (1350780470,), (1350780991,), (1350781043,), (1350781095,)) 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 (1350779600) 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 22146036 , 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=22146025 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 (22146036) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22146025) result : ((1350774037,), (1350774041,), (1350774047,), (1350774049,), (1350774094,), (1350774095,), (1350774098,), (1350774511,), (1350774564,), (1350774590,), (1350774636,), (1350774666,), (1350774736,), (1350775698,), (1350775722,), (1350775747,), (1350775773,), (1350776460,), (1350776488,), (1350776518,), (1350776548,), (1350776592,), (1350777456,), (1350777515,), (1350777560,), (1350777601,), (1350777660,), (1350778240,), (1350778292,), (1350778331,), (1350778366,), (1350778713,), (1350778764,), (1350778813,), (1350778894,), (1350778952,), (1350779005,), (1350779254,), (1350779261,), (1350779265,), (1350779267,), (1350779274,), (1350779508,), (1350779558,), (1350779600,), (1350780044,), (1350780054,), (1350780072,), (1350780073,), (1350780077,), (1350780081,), (1350780239,), (1350780302,), (1350780358,), (1350780411,), (1350780470,), (1350780991,), (1350781043,), (1350781095,)) 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 (1350779600) 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 22146037 , 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=22146025 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 (22146037) result : ((1350779964,), (1350779965,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22146025) result : ((1350774037,), (1350774041,), (1350774047,), (1350774049,), (1350774094,), (1350774095,), (1350774098,), (1350774511,), (1350774564,), (1350774590,), (1350774636,), (1350774666,), (1350774736,), (1350775698,), (1350775722,), (1350775747,), (1350775773,), (1350776460,), (1350776488,), (1350776518,), (1350776548,), (1350776592,), (1350777456,), (1350777515,), (1350777560,), (1350777601,), (1350777660,), (1350778240,), (1350778292,), (1350778331,), (1350778366,), (1350778713,), (1350778764,), (1350778813,), (1350778894,), (1350778952,), (1350779005,), (1350779254,), (1350779261,), (1350779265,), (1350779267,), (1350779274,), (1350779508,), (1350779558,), (1350779600,), (1350780044,), (1350780054,), (1350780072,), (1350780073,), (1350780077,), (1350780081,), (1350780239,), (1350780302,), (1350780358,), (1350780411,), (1350780470,), (1350780991,), (1350781043,), (1350781095,)) 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 (1350779600) 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 22146038 , 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=22146025 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 (22146038) result : ((1350776088,), (1350776092,), (1350777982,), (1350779262,), (1350780812,), (1350780911,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22146025) result : ((1350774037,), (1350774041,), (1350774047,), (1350774049,), (1350774094,), (1350774095,), (1350774098,), (1350774511,), (1350774564,), (1350774590,), (1350774636,), (1350774666,), (1350774736,), (1350775698,), (1350775722,), (1350775747,), (1350775773,), (1350776460,), (1350776488,), (1350776518,), (1350776548,), (1350776592,), (1350777456,), (1350777515,), (1350777560,), (1350777601,), (1350777660,), (1350778240,), (1350778292,), (1350778331,), (1350778366,), (1350778713,), (1350778764,), (1350778813,), (1350778894,), (1350778952,), (1350779005,), (1350779254,), (1350779261,), (1350779265,), (1350779267,), (1350779274,), (1350779508,), (1350779558,), (1350779600,), (1350780044,), (1350780054,), (1350780072,), (1350780073,), (1350780077,), (1350780081,), (1350780239,), (1350780302,), (1350780358,), (1350780411,), (1350780470,), (1350780991,), (1350781043,), (1350781095,)) 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 (1350779600) 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 22146039 , 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=22146025 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 (22146039) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22146025) result : ((1350774037,), (1350774041,), (1350774047,), (1350774049,), (1350774094,), (1350774095,), (1350774098,), (1350774511,), (1350774564,), (1350774590,), (1350774636,), (1350774666,), (1350774736,), (1350775698,), (1350775722,), (1350775747,), (1350775773,), (1350776460,), (1350776488,), (1350776518,), (1350776548,), (1350776592,), (1350777456,), (1350777515,), (1350777560,), (1350777601,), (1350777660,), (1350778240,), (1350778292,), (1350778331,), (1350778366,), (1350778713,), (1350778764,), (1350778813,), (1350778894,), (1350778952,), (1350779005,), (1350779254,), (1350779261,), (1350779265,), (1350779267,), (1350779274,), (1350779508,), (1350779558,), (1350779600,), (1350780044,), (1350780054,), (1350780072,), (1350780073,), (1350780077,), (1350780081,), (1350780239,), (1350780302,), (1350780358,), (1350780411,), (1350780470,), (1350780991,), (1350781043,), (1350781095,)) 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 (1350779600) 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 22146040 , 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=22146025 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 (22146040) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22146025) result : ((1350774037,), (1350774041,), (1350774047,), (1350774049,), (1350774094,), (1350774095,), (1350774098,), (1350774511,), (1350774564,), (1350774590,), (1350774636,), (1350774666,), (1350774736,), (1350775698,), (1350775722,), (1350775747,), (1350775773,), (1350776460,), (1350776488,), (1350776518,), (1350776548,), (1350776592,), (1350777456,), (1350777515,), (1350777560,), (1350777601,), (1350777660,), (1350778240,), (1350778292,), (1350778331,), (1350778366,), (1350778713,), (1350778764,), (1350778813,), (1350778894,), (1350778952,), (1350779005,), (1350779254,), (1350779261,), (1350779265,), (1350779267,), (1350779274,), (1350779508,), (1350779558,), (1350779600,), (1350780044,), (1350780054,), (1350780072,), (1350780073,), (1350780077,), (1350780081,), (1350780239,), (1350780302,), (1350780358,), (1350780411,), (1350780470,), (1350780991,), (1350781043,), (1350781095,)) 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 (1350779600) 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`=22146025 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','Carton_gris','Teint_Dans_La_Masse','metal','plastique','environnement','flou','Carton_brun','mal_croppe','kraft','autre_refus')) 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`=22146025 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','Carton_gris','Teint_Dans_La_Masse','metal','plastique','environnement','flou','Carton_brun','mal_croppe','kraft','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22146025, 'sub_port_id': 22146041, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625934, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 51)}, 'cartonnette': {'main_port_id': 22146025, 'sub_port_id': 22146042, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625935, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 51)}, 'Teint_Dans_La_Masse': {'main_port_id': 22146025, 'sub_port_id': 22146043, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625936, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 51)}, 'autre_refus': {'main_port_id': 22146025, 'sub_port_id': 22146044, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625937, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 51)}, 'environnement': {'main_port_id': 22146025, 'sub_port_id': 22146045, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625938, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 51)}, 'Carton_gris': {'main_port_id': 22146025, 'sub_port_id': 22146046, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625939, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 51)}, 'metal': {'main_port_id': 22146025, 'sub_port_id': 22146047, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625940, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 51)}, 'mal_croppe': {'main_port_id': 22146025, 'sub_port_id': 22146048, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625941, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 51)}, 'kraft': {'main_port_id': 22146025, 'sub_port_id': 22146049, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625942, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 51)}, 'plastique': {'main_port_id': 22146025, 'sub_port_id': 22146050, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625943, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 51)}, 'papier': {'main_port_id': 22146025, 'sub_port_id': 22146051, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625944, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 51)}, 'flou': {'main_port_id': 22146025, 'sub_port_id': 22146052, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14625945, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 51)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22146041,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22146029 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22146042,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22146030 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22146043,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22146031 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22146044,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22146032 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22146045,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22146033 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22146046,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22146034 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22146047,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22146035 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22146048,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22146036 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22146049,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22146037 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22146050,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22146038 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22146051,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22146039 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22146052,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22146040 lien utilise dans velours : https://www.fotonower.com/velours/22146041,22146042,22146043,22146044,22146045,22146046,22146047,22146048,22146049,22146050,22146051,22146052?tags=Carton_brun,cartonnette,Teint_Dans_La_Masse,autre_refus,environnement,Carton_gris,metal,mal_croppe,kraft,plastique,papier,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22146025]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350781095, 1350781043, 1350780991, 1350780470, 1350780411, 1350780358, 1350780302, 1350780239, 1350780081, 1350780077, 1350780073, 1350780072, 1350780054, 1350780044] map_info['map_portfolio_photo'] : {22146025: [1350781095, 1350781043, 1350780991, 1350780470, 1350780411, 1350780358, 1350780302, 1350780239, 1350780081, 1350780077, 1350780073, 1350780072, 1350780054, 1350780044, 1350779600, 1350779558, 1350779508, 1350779274, 1350779267, 1350779265, 1350779261, 1350779254, 1350779005, 1350778952, 1350778894, 1350778813, 1350778764, 1350778713, 1350778366, 1350778331, 1350778292, 1350778240, 1350777660, 1350777601, 1350777560, 1350777515, 1350777456, 1350776592, 1350776548, 1350776518, 1350776488, 1350776460, 1350775773, 1350775747, 1350775722, 1350775698, 1350774736, 1350774666, 1350774636, 1350774590, 1350774564, 1350774511, 1350774098, 1350774095, 1350774094, 1350774049, 1350774047, 1350774041, 1350774037]} final : False mtd_id 4302 list_pids : [1350781095, 1350781043, 1350780991, 1350780470, 1350780411, 1350780358, 1350780302, 1350780239, 1350780081, 1350780077, 1350780073, 1350780072, 1350780054, 1350780044] Looping around the photos to save general results len do output : 1 /22146025. 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, '2732056') ('4302', '22146025', '1350781095', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350781043', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780991', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780470', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780411', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780358', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780302', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780239', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780081', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780077', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780073', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780072', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780054', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780044', None, None, None, None, None, '2732056') 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', None, '22146025', "{'Carton_brun': 22146029, 'cartonnette': 22146030, 'Teint_Dans_La_Masse': 22146031, 'autre_refus': 22146032, 'environnement': 22146033, 'Carton_gris': 22146034, 'metal': 22146035, 'mal_croppe': 22146036, 'kraft': 22146037, 'plastique': 22146038, 'papier': 22146039, 'flou': 22146040}", None, None, None, None, '2732056'), ('4302', '22146025', '1350781095', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350781043', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780991', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780470', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780411', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780358', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780302', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780239', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780081', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780077', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780073', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780072', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780054', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780044', None, None, None, None, None, '2732056')] time used for this insertion : 0.021803617477416992 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5200269222259521 time spend to save output : 0.022099018096923828 total time spend for step 1 : 0.542125940322876 step2:final Thu Apr 17 18:59:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22146025) 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 22146025 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350774049,1350774047,1350774041,1350774037,1350774098,1350774095,1350774094,1350774736,1350774666,1350774636,1350774590,1350774564,1350774511,1350775773,1350775747,1350775722,1350775698,1350776592,1350776548,1350776518,1350776488,1350776460,1350777660,1350777601,1350777560,1350777515,1350777456,1350778366,1350778331,1350778292,1350778240,1350779005,1350778952,1350778894,1350778813,1350778764,1350778713,1350779274,1350779267,1350779265,1350779261,1350779254,1350779600,1350779558,1350779508,1350780081,1350780077,1350780073,1350780072,1350780054,1350780044,1350780470,1350780411,1350780358,1350780302,1350780239,1350781095,1350781043,1350780991); 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([22146025]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ('0.0586141697542968',), 1350780054: ('0.0586141697542968',), 1350780044: ('0.0586141697542968',)} new output for save of step final : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ('0.0586141697542968',), 1350780054: ('0.0586141697542968',), 1350780044: ('0.0586141697542968',)} [1350781095, 1350781043, 1350780991, 1350780470, 1350780411, 1350780358, 1350780302, 1350780239, 1350780081, 1350780077, 1350780073, 1350780072, 1350780054, 1350780044] map_info['map_portfolio_photo'] : {22146025: [1350781095, 1350781043, 1350780991, 1350780470, 1350780411, 1350780358, 1350780302, 1350780239, 1350780081, 1350780077, 1350780073, 1350780072, 1350780054, 1350780044, 1350779600, 1350779558, 1350779508, 1350779274, 1350779267, 1350779265, 1350779261, 1350779254, 1350779005, 1350778952, 1350778894, 1350778813, 1350778764, 1350778713, 1350778366, 1350778331, 1350778292, 1350778240, 1350777660, 1350777601, 1350777560, 1350777515, 1350777456, 1350776592, 1350776548, 1350776518, 1350776488, 1350776460, 1350775773, 1350775747, 1350775722, 1350775698, 1350774736, 1350774666, 1350774636, 1350774590, 1350774564, 1350774511, 1350774098, 1350774095, 1350774094, 1350774049, 1350774047, 1350774041, 1350774037]} final : False mtd_id 4302 list_pids : [1350781095, 1350781043, 1350780991, 1350780470, 1350780411, 1350780358, 1350780302, 1350780239, 1350780081, 1350780077, 1350780073, 1350780072, 1350780054, 1350780044] Looping around the photos to save general results len do output : 14 /1350781095.Didn't retrieve data . /1350781043.Didn't retrieve data . /1350780991.Didn't retrieve data . /1350780470.Didn't retrieve data . /1350780411.Didn't retrieve data . /1350780358.Didn't retrieve data . /1350780302.Didn't retrieve data . /1350780239.Didn't retrieve data . /1350780081.Didn't retrieve data . /1350780077.Didn't retrieve data . /1350780073.Didn't retrieve data . /1350780072.Didn't retrieve data . /1350780054.Didn't retrieve data . /1350780044.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, '2732056') ('4302', '22146025', '1350781095', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350781043', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780991', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780470', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780411', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780358', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780302', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780239', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780081', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780077', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780073', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780072', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780054', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780044', None, None, None, None, None, '2732056') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '22146025', '1350781095', '0.0586141697542968', None, None, None, None, '2732056'), ('4302', '22146025', '1350781043', '0.0586141697542968', None, None, None, None, '2732056'), ('4302', '22146025', '1350780991', '0.0586141697542968', None, None, None, None, '2732056'), ('4302', '22146025', '1350780470', '0.0586141697542968', None, None, None, None, '2732056'), ('4302', '22146025', '1350780411', '0.0586141697542968', None, None, None, None, '2732056'), ('4302', '22146025', '1350780358', '0.0586141697542968', None, None, None, None, '2732056'), ('4302', '22146025', '1350780302', '0.0586141697542968', None, None, None, None, '2732056'), ('4302', '22146025', '1350780239', '0.0586141697542968', None, None, None, None, '2732056'), ('4302', '22146025', '1350780081', '0.0586141697542968', None, None, None, None, '2732056'), ('4302', '22146025', '1350780077', '0.0586141697542968', None, None, None, None, '2732056'), ('4302', '22146025', '1350780073', '0.0586141697542968', None, None, None, None, '2732056'), ('4302', '22146025', '1350780072', '0.0586141697542968', None, None, None, None, '2732056'), ('4302', '22146025', '1350780054', '0.0586141697542968', None, None, None, None, '2732056'), ('4302', '22146025', '1350780044', '0.0586141697542968', None, None, None, None, '2732056')] time used for this insertion : 0.016155481338500977 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07321548461914062 time spend to save output : 0.01682424545288086 total time spend for step 2 : 0.09003973007202148 step3:velours_tree Thu Apr 17 18:59:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22146025: [{'Carton_brun': 22146029, 'cartonnette': 22146030, 'Teint_Dans_La_Masse': 22146031, 'autre_refus': 22146032, 'environnement': 22146033, 'Carton_gris': 22146034, 'metal': 22146035, 'mal_croppe': 22146036, 'kraft': 22146037, 'plastique': 22146038, 'papier': 22146039, 'flou': 22146040}]} input_args_next_step : {22146025: ()} output_args : {22146025: [{'Carton_brun': 22146029, 'cartonnette': 22146030, 'Teint_Dans_La_Masse': 22146031, 'autre_refus': 22146032, 'environnement': 22146033, 'Carton_gris': 22146034, 'metal': 22146035, 'mal_croppe': 22146036, 'kraft': 22146037, 'plastique': 22146038, 'papier': 22146039, 'flou': 22146040}]} args : 22146025 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 : ({'Carton_brun': 22146029, 'cartonnette': 22146030, 'Teint_Dans_La_Masse': 22146031, 'autre_refus': 22146032, 'environnement': 22146033, 'Carton_gris': 22146034, 'metal': 22146035, 'mal_croppe': 22146036, 'kraft': 22146037, 'plastique': 22146038, 'papier': 22146039, 'flou': 22146040},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22146025) 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([22146025]) 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.46575140953063965 time spend to save output : 6.031990051269531e-05 total time spend for step 3 : 0.46581172943115234 step4:send_mail_cod Thu Apr 17 18:59:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ('0.0586141697542968',), 1350780054: ('0.0586141697542968',), 1350780044: ('0.0586141697542968',)} input_args_next_step : {1350781095: ()} output_args : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ('0.0586141697542968',), 1350780054: ('0.0586141697542968',), 1350780044: ('0.0586141697542968',)} args : 1350781095 depend.output_id : 0 input_args_next_step : {1350781095: ('0.0586141697542968',), 1350781043: ()} output_args : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ('0.0586141697542968',), 1350780054: ('0.0586141697542968',), 1350780044: ('0.0586141697542968',)} args : 1350781043 depend.output_id : 0 input_args_next_step : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ()} output_args : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ('0.0586141697542968',), 1350780054: ('0.0586141697542968',), 1350780044: ('0.0586141697542968',)} args : 1350780991 depend.output_id : 0 input_args_next_step : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ()} output_args : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ('0.0586141697542968',), 1350780054: ('0.0586141697542968',), 1350780044: ('0.0586141697542968',)} args : 1350780470 depend.output_id : 0 input_args_next_step : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ()} output_args : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ('0.0586141697542968',), 1350780054: ('0.0586141697542968',), 1350780044: ('0.0586141697542968',)} args : 1350780411 depend.output_id : 0 input_args_next_step : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ()} output_args : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ('0.0586141697542968',), 1350780054: ('0.0586141697542968',), 1350780044: ('0.0586141697542968',)} args : 1350780358 depend.output_id : 0 input_args_next_step : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ()} output_args : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ('0.0586141697542968',), 1350780054: ('0.0586141697542968',), 1350780044: ('0.0586141697542968',)} args : 1350780302 depend.output_id : 0 input_args_next_step : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ()} output_args : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ('0.0586141697542968',), 1350780054: ('0.0586141697542968',), 1350780044: ('0.0586141697542968',)} args : 1350780239 depend.output_id : 0 input_args_next_step : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ()} output_args : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ('0.0586141697542968',), 1350780054: ('0.0586141697542968',), 1350780044: ('0.0586141697542968',)} args : 1350780081 depend.output_id : 0 input_args_next_step : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ()} output_args : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ('0.0586141697542968',), 1350780054: ('0.0586141697542968',), 1350780044: ('0.0586141697542968',)} args : 1350780077 depend.output_id : 0 input_args_next_step : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ()} output_args : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ('0.0586141697542968',), 1350780054: ('0.0586141697542968',), 1350780044: ('0.0586141697542968',)} args : 1350780073 depend.output_id : 0 input_args_next_step : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ()} output_args : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ('0.0586141697542968',), 1350780054: ('0.0586141697542968',), 1350780044: ('0.0586141697542968',)} args : 1350780072 depend.output_id : 0 input_args_next_step : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ('0.0586141697542968',), 1350780054: ()} output_args : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ('0.0586141697542968',), 1350780054: ('0.0586141697542968',), 1350780044: ('0.0586141697542968',)} args : 1350780054 depend.output_id : 0 input_args_next_step : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ('0.0586141697542968',), 1350780054: ('0.0586141697542968',), 1350780044: ()} output_args : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ('0.0586141697542968',), 1350780054: ('0.0586141697542968',), 1350780044: ('0.0586141697542968',)} args : 1350780044 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 : {22146025: [{'Carton_brun': 22146029, 'cartonnette': 22146030, 'Teint_Dans_La_Masse': 22146031, 'autre_refus': 22146032, 'environnement': 22146033, 'Carton_gris': 22146034, 'metal': 22146035, 'mal_croppe': 22146036, 'kraft': 22146037, 'plastique': 22146038, 'papier': 22146039, 'flou': 22146040}]} input_args_next_step : {1350781095: ('0.0586141697542968',), 1350781043: ('0.0586141697542968',), 1350780991: ('0.0586141697542968',), 1350780470: ('0.0586141697542968',), 1350780411: ('0.0586141697542968',), 1350780358: ('0.0586141697542968',), 1350780302: ('0.0586141697542968',), 1350780239: ('0.0586141697542968',), 1350780081: ('0.0586141697542968',), 1350780077: ('0.0586141697542968',), 1350780073: ('0.0586141697542968',), 1350780072: ('0.0586141697542968',), 1350780054: ('0.0586141697542968',), 1350780044: ('0.0586141697542968',), 22146025: ()} output_args : {22146025: [{'Carton_brun': 22146029, 'cartonnette': 22146030, 'Teint_Dans_La_Masse': 22146031, 'autre_refus': 22146032, 'environnement': 22146033, 'Carton_gris': 22146034, 'metal': 22146035, 'mal_croppe': 22146036, 'kraft': 22146037, 'plastique': 22146038, 'papier': 22146039, 'flou': 22146040}]} args : 22146025 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 :15, first value : ('0.0586141697542968',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22146025) 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 (1350781095,1350781043,1350780991,1350780470,1350780411,1350780358,1350780302,1350780239,1350780081,1350780077,1350780073,1350780072,1350780054,1350780044) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350780044 begin to download photo : 1350780073 begin to download photo : 1350780239 begin to download photo : 1350780411 begin to download photo : 1350781043 download finish for photo 1350781043 begin to download photo : 1350781095 download finish for photo 1350780239 begin to download photo : 1350780302 download finish for photo 1350780411 begin to download photo : 1350780470 download finish for photo 1350780073 begin to download photo : 1350780077 download finish for photo 1350780044 begin to download photo : 1350780054 download finish for photo 1350781095 download finish for photo 1350780302 begin to download photo : 1350780358 download finish for photo 1350780470 begin to download photo : 1350780991 download finish for photo 1350780054 begin to download photo : 1350780072 download finish for photo 1350780077 begin to download photo : 1350780081 download finish for photo 1350780991 download finish for photo 1350780358 download finish for photo 1350780081 download finish for photo 1350780072 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 : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P22146025_17-04-2025_18_59_01.pdf 22146030 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=22146030 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350777972: '1744908672_3184833_1350776460_121c7b16ce138a96b2f2f45c1fe97bd8_rle_crop_3752115119_0.png', 1350778580: '1744908733_3185370_1350775747_68021e5178db119dcba392c9bcdee9dc_rle_crop_3752116364_0.png', 1350779089: '1744908792_3185847_1350778331_d77b7717398debdd7423a811dfd85357_rle_crop_3752121272_0.png', 1350779090: '1744908792_3185847_1350778292_7d6681d962b0fba73aa15f97d3832905_rle_crop_3752121276_0.png', 1350779092: '1744908792_3185847_1350778292_7d6681d962b0fba73aa15f97d3832905_rle_crop_3752121277_0.png', 1350779260: '1744908821_1018184_1350777560_1d0675187e0e004d587c3c0298402a20_rle_crop_3752124213_0.png', 1350779319: '1744908851_3186381_1350777660_bd4cb12b7eb9d6ecd9be41ca639620c0_rle_crop_3752124320_0.png', 1350780744: '1744909021_3187912_1350775773_eaa8b9e56a66b7709b3b97eb7c84ab59_rle_crop_3752148714_0.png', 1350780745: '1744909021_3187912_1350774666_ef70383dccb80700dc3817c5b2d56e30_rle_crop_3752148729_0.png', 1350780771: '1744909032_3188076_1350779600_6cb332ee18ead561f3bb098d0649f566_rle_crop_3752148783_0.png', 1350781445: '1744909091_3188704_1350779274_789f36dffdd1819eef2eaed54ae851bc_rle_crop_3752149215_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/22f3d224366d6f30073a0f1965f1ea76_5166660.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/42836b423ef9014256495b0d290e8671_17588788.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/1dcad1224b307a2b5ab839cd16b8de08_95600944.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/62885cf34c721fed44d80cc3d535fc21_83006928.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/b968401667282c15a7b0f6dae864ea96_95976667.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/876b0883d95dbcbf86238609bc1ab0f7_49817874.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/92607837ce153d65c80c50615c337561_84836376.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/51ba4e62c451e285c96c7df7639c3d90_45100312.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/ca3561d6f2a1429231c335ebf952e14a_78763186.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/1810d654156da5107b0a1567bad16d4e_61057580.png change filename to text .imagette221460301744909141/ imagette221460301744909141/1744908792_3185847_1350778292_7d6681d962b0fba73aa15f97d3832905_rle_crop_3752121277_0.png.png imagette221460301744909141/1744909021_3187912_1350774666_ef70383dccb80700dc3817c5b2d56e30_rle_crop_3752148729_0.png.png imagette221460301744909141/1744909032_3188076_1350779600_6cb332ee18ead561f3bb098d0649f566_rle_crop_3752148783_0.png.png imagette221460301744909141/1744908792_3185847_1350778292_7d6681d962b0fba73aa15f97d3832905_rle_crop_3752121276_0.png.png imagette221460301744909141/1744909021_3187912_1350775773_eaa8b9e56a66b7709b3b97eb7c84ab59_rle_crop_3752148714_0.png.png imagette221460301744909141/1744908672_3184833_1350776460_121c7b16ce138a96b2f2f45c1fe97bd8_rle_crop_3752115119_0.png.png imagette221460301744909141/1744908792_3185847_1350778331_d77b7717398debdd7423a811dfd85357_rle_crop_3752121272_0.png.png imagette221460301744909141/1744908851_3186381_1350777660_bd4cb12b7eb9d6ecd9be41ca639620c0_rle_crop_3752124320_0.png.png imagette221460301744909141/1744908733_3185370_1350775747_68021e5178db119dcba392c9bcdee9dc_rle_crop_3752116364_0.png.png imagette221460301744909141/1744909091_3188704_1350779274_789f36dffdd1819eef2eaed54ae851bc_rle_crop_3752149215_0.png.png imagette221460301744909141/1744908821_1018184_1350777560_1d0675187e0e004d587c3c0298402a20_rle_crop_3752124213_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/f6051a23376edae3257fbe2e1080d740_19735152.png imagette221460301744909141 22146032 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=22146032 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350776012: '1744908550_3183381_1350774049_a6138e33a55194c65db619ce73e74e4d_rle_crop_3752110966_0.png', 1350778565: '1744908733_3185370_1350775722_8dce2f49e2d96d22c5e461eeac3d6953_rle_crop_3752116375_0.png', 1350778567: '1744908733_3185370_1350775698_67a8e109f7f449a20d50bac2ecea9981_rle_crop_3752116397_0.png', 1350779259: '1744908821_1018184_1350778366_0b0455fb5d7f3b0ca50e4e9e075cc29e_rle_crop_3752123946_0.png', 1350780693: '1744909021_3187912_1350774636_9f0e905f4d53c4994472eba1a313fbbe_rle_crop_3752148742_0.png', 1350780739: '1744909032_3188076_1350779261_d707e5cd16e831c88d9b8d4f42f3078f_rle_crop_3752148838_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/df72ae5dc6302508c7e75a24ec123519_40402493.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/8b7a35b1d9fb251f2e11c5ae6b81739b_91429875.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/5e978472015c0b5ed99da9a2a5bf8945_3237014.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/940b28a71fd2e4bb667fea845e9d6140_30292673.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/d8f81eaf9914a8ab7a846d92fc7c68e3_15198411.png change filename to text .imagette221460321744909141/ imagette221460321744909141/1744908550_3183381_1350774049_a6138e33a55194c65db619ce73e74e4d_rle_crop_3752110966_0.png.png imagette221460321744909141/1744908733_3185370_1350775722_8dce2f49e2d96d22c5e461eeac3d6953_rle_crop_3752116375_0.png.png imagette221460321744909141/1744908733_3185370_1350775698_67a8e109f7f449a20d50bac2ecea9981_rle_crop_3752116397_0.png.png imagette221460321744909141/1744908821_1018184_1350778366_0b0455fb5d7f3b0ca50e4e9e075cc29e_rle_crop_3752123946_0.png.png imagette221460321744909141/1744909032_3188076_1350779261_d707e5cd16e831c88d9b8d4f42f3078f_rle_crop_3752148838_0.png.png imagette221460321744909141/1744909021_3187912_1350774636_9f0e905f4d53c4994472eba1a313fbbe_rle_crop_3752148742_0.png.png imagette221460351744909142/ imagette221460361744909142/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/e23366661f735f012dce0728cbdd6bf7_23760646.png imagette221460321744909141 22146035 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=22146035 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221460351744909142 22146036 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=22146036 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221460361744909142 22146037 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=22146037 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350779964: '1744908910_3186930_1350778894_cedca9b566b1f5728492bd8b5b3938bd_rle_crop_3752127258_0.png', 1350779965: '1744908910_3186930_1350778813_1c5e08a6a4f57fe76994527d0453a02f_rle_crop_3752127272_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/1295f80be95dbf12c66a6e5c0c0139a0_66774287.png change filename to text .imagette221460371744909142/ imagette221460371744909142/1744908910_3186930_1350778894_cedca9b566b1f5728492bd8b5b3938bd_rle_crop_3752127258_0.png.png imagette221460371744909142/1744908910_3186930_1350778813_1c5e08a6a4f57fe76994527d0453a02f_rle_crop_3752127272_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/b2f956d9d4e8ddd4bac287fc3d776378_758377.png imagette221460371744909142 22146038 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=22146038 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350776088: '1744908550_3183381_1350774041_9454001fd523f93a224ea2baa6c00652_rle_crop_3752110997_0.png', 1350776092: '1744908550_3183381_1350774037_3b39fab56a1355cc7b66b3cbe7ed7e5d_rle_crop_3752111020_0.png', 1350777982: '1744908672_3184833_1350776460_121c7b16ce138a96b2f2f45c1fe97bd8_rle_crop_3752115120_0.png', 1350779262: '1744908821_1018184_1350777560_1d0675187e0e004d587c3c0298402a20_rle_crop_3752124224_0.png', 1350780812: '1744909032_3188076_1350779261_d707e5cd16e831c88d9b8d4f42f3078f_rle_crop_3752148840_0.png', 1350780911: '1744909061_1022951_1350779508_7003ef3af93fbe9ba9fe4fef399865d6_rle_crop_3752148881_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/f0a0e38ebd1c87ff07021853e59422d5_45281024.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/def34f39fe6f0241a203161eca90435e_95368230.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/e1ad9aaf5c208cbd17adcd888bde0647_97995455.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/b82c7039a2fffbbf47833526ae9eec20_12632943.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/91058a680d395c8240c1a65355403adc_25148988.png change filename to text .imagette221460381744909142/ imagette221460381744909142/1744908550_3183381_1350774037_3b39fab56a1355cc7b66b3cbe7ed7e5d_rle_crop_3752111020_0.png.png imagette221460381744909142/1744908672_3184833_1350776460_121c7b16ce138a96b2f2f45c1fe97bd8_rle_crop_3752115120_0.png.png imagette221460381744909142/1744909061_1022951_1350779508_7003ef3af93fbe9ba9fe4fef399865d6_rle_crop_3752148881_0.png.png imagette221460381744909142/1744909032_3188076_1350779261_d707e5cd16e831c88d9b8d4f42f3078f_rle_crop_3752148840_0.png.png imagette221460381744909142/1744908550_3183381_1350774041_9454001fd523f93a224ea2baa6c00652_rle_crop_3752110997_0.png.png imagette221460381744909142/1744908821_1018184_1350777560_1d0675187e0e004d587c3c0298402a20_rle_crop_3752124224_0.png.png imagette221460401744909142/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/a753ca98d5b3f9bed8723fb2d9d0d4a2_91990403.png imagette221460381744909142 22146040 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=22146040 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221460401744909142 22146029 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=22146029 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350776048: '1744908550_3183381_1350774041_9454001fd523f93a224ea2baa6c00652_rle_crop_3752110995_0.png', 1350778586: '1744908733_3185370_1350775722_8dce2f49e2d96d22c5e461eeac3d6953_rle_crop_3752116376_0.png', 1350780790: '1744909032_3188076_1350779267_698cc1d4cc9d480981b1eecfadac855d_rle_crop_3752148814_0.png', 1350780793: '1744909032_3188076_1350779265_8fd63f9bca993cd2521191eef0b1d2ed_rle_crop_3752148824_0.png', 1350780794: '1744909032_3188076_1350779265_8fd63f9bca993cd2521191eef0b1d2ed_rle_crop_3752148831_0.png', 1350780795: '1744909032_3188076_1350779254_937d8116e97f583880e33e93c6b6545b_rle_crop_3752148854_0.png', 1350780796: '1744909032_3188076_1350779254_937d8116e97f583880e33e93c6b6545b_rle_crop_3752148850_0.png', 1350780801: '1744909021_3187912_1350774636_9f0e905f4d53c4994472eba1a313fbbe_rle_crop_3752148746_0.png', 1350780802: '1744909021_3187912_1350774590_e6d9ab0d4a0890f2db5816e57eac4303_rle_crop_3752148757_0.png', 1350780803: '1744909021_3187912_1350774590_e6d9ab0d4a0890f2db5816e57eac4303_rle_crop_3752148758_0.png', 1350780806: '1744909021_3187912_1350774564_3e7523b8119c8ba57b4cab2f3784c54b_rle_crop_3752148769_0.png', 1350780807: '1744909021_3187912_1350774511_28f291eba5bb5c91536ba991022f9b74_rle_crop_3752148797_0.png', 1350781455: '1744909091_3188704_1350779274_789f36dffdd1819eef2eaed54ae851bc_rle_crop_3752149217_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/357b2321f6e91336539f0be087de3d2b_65840298.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/f730a82e03d2eb230fe49359a17842de_28493095.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/b4d1c54f324cb93f9f137e60b2ee5acb_69291529.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/e4593252f1691751ce86851bc3ece0e4_76545997.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/f59e287d0800509cb457255e5783867b_33832724.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/196841d246a46bf6f2238bc2fd43049e_38383722.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/bf8e8e72701f2300d67388f37b2256fd_78043780.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/7d48c26cdd34335060420e660c3247bb_18870963.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/45597488af6a3d98dca0a672f91bc1b9_91303262.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/e414320b34b285fb3e824e77c7f9f792_42269390.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/7e8d60f0a2207a7f97cdd6a8f03297fa_55378935.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/34c3d75af5fe1806620f35b1d68881ff_93444505.png change filename to text .imagette221460291744909142/ imagette221460291744909142/1744909091_3188704_1350779274_789f36dffdd1819eef2eaed54ae851bc_rle_crop_3752149217_0.png.png imagette221460291744909142/1744909021_3187912_1350774511_28f291eba5bb5c91536ba991022f9b74_rle_crop_3752148797_0.png.png imagette221460291744909142/1744909021_3187912_1350774590_e6d9ab0d4a0890f2db5816e57eac4303_rle_crop_3752148757_0.png.png imagette221460291744909142/1744909021_3187912_1350774590_e6d9ab0d4a0890f2db5816e57eac4303_rle_crop_3752148758_0.png.png imagette221460291744909142/1744909021_3187912_1350774636_9f0e905f4d53c4994472eba1a313fbbe_rle_crop_3752148746_0.png.png imagette221460291744909142/1744909032_3188076_1350779254_937d8116e97f583880e33e93c6b6545b_rle_crop_3752148854_0.png.png imagette221460291744909142/1744908550_3183381_1350774041_9454001fd523f93a224ea2baa6c00652_rle_crop_3752110995_0.png.png imagette221460291744909142/1744908733_3185370_1350775722_8dce2f49e2d96d22c5e461eeac3d6953_rle_crop_3752116376_0.png.png imagette221460291744909142/1744909021_3187912_1350774564_3e7523b8119c8ba57b4cab2f3784c54b_rle_crop_3752148769_0.png.png imagette221460291744909142/1744909032_3188076_1350779265_8fd63f9bca993cd2521191eef0b1d2ed_rle_crop_3752148824_0.png.png imagette221460291744909142/1744909032_3188076_1350779267_698cc1d4cc9d480981b1eecfadac855d_rle_crop_3752148814_0.png.png imagette221460291744909142/1744909032_3188076_1350779254_937d8116e97f583880e33e93c6b6545b_rle_crop_3752148850_0.png.png imagette221460291744909142/1744909032_3188076_1350779265_8fd63f9bca993cd2521191eef0b1d2ed_rle_crop_3752148831_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/6a1b89c79bf6cb585b6af4d4e2942350_92983154.png imagette221460291744909142 22146031 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=22146031 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350776000: '1744908550_3183381_1350774037_3b39fab56a1355cc7b66b3cbe7ed7e5d_rle_crop_3752111013_0.png', 1350776001: '1744908550_3183381_1350774037_3b39fab56a1355cc7b66b3cbe7ed7e5d_rle_crop_3752111012_0.png', 1350777962: '1744908672_3184833_1350776518_92cec8c9b3da45f8e5433e61424ac7a1_rle_crop_3752114847_0.png', 1350777964: '1744908672_3184833_1350776460_121c7b16ce138a96b2f2f45c1fe97bd8_rle_crop_3752115121_0.png', 1350779257: '1744908821_1018184_1350777560_1d0675187e0e004d587c3c0298402a20_rle_crop_3752124221_0.png', 1350780681: '1744909021_3187912_1350775773_eaa8b9e56a66b7709b3b97eb7c84ab59_rle_crop_3752148718_0.png', 1350780683: '1744909021_3187912_1350774666_ef70383dccb80700dc3817c5b2d56e30_rle_crop_3752148733_0.png', 1350780684: '1744909021_3187912_1350774636_9f0e905f4d53c4994472eba1a313fbbe_rle_crop_3752148743_0.png', 1350780685: '1744909021_3187912_1350774590_e6d9ab0d4a0890f2db5816e57eac4303_rle_crop_3752148759_0.png', 1350780686: '1744909021_3187912_1350774564_3e7523b8119c8ba57b4cab2f3784c54b_rle_crop_3752148770_0.png', 1350780687: '1744909021_3187912_1350774564_3e7523b8119c8ba57b4cab2f3784c54b_rle_crop_3752148771_0.png', 1350780730: '1744909032_3188076_1350779267_698cc1d4cc9d480981b1eecfadac855d_rle_crop_3752148817_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/40d47445daab60f01b510cc24aa238e4_290.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/2b83063c06ab9a53a2c958238d0372b2_23846956.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/94a4aa42d0badc2f12618c81744b59fb_9000803.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/548c7efaf6aced5e15bb59a3f3d062a4_71250851.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/e6f2914f6a70a9812356c2cb574e214e_10061823.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/b1066613f48b4060529ff23c4624607a_12572922.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/124b1fb6fb03a04d6ed12768525f010e_3814592.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/2d03a9038e857b970aa664f1bae0ebad_92323157.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/bbe501f5d3fd71bbab51a2cda68b5c11_37161435.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/a2328f95f7fd75c0efbe06c25d32bc1b_13357758.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/063bf5c58f70b0be665644d46990dc63_91636631.png change filename to text .imagette221460311744909143/ imagette221460311744909143/1744908672_3184833_1350776460_121c7b16ce138a96b2f2f45c1fe97bd8_rle_crop_3752115121_0.png.png imagette221460311744909143/1744909021_3187912_1350774590_e6d9ab0d4a0890f2db5816e57eac4303_rle_crop_3752148759_0.png.png imagette221460311744909143/1744908672_3184833_1350776518_92cec8c9b3da45f8e5433e61424ac7a1_rle_crop_3752114847_0.png.png imagette221460311744909143/1744908550_3183381_1350774037_3b39fab56a1355cc7b66b3cbe7ed7e5d_rle_crop_3752111012_0.png.png imagette221460311744909143/1744909021_3187912_1350774636_9f0e905f4d53c4994472eba1a313fbbe_rle_crop_3752148743_0.png.png imagette221460311744909143/1744909021_3187912_1350775773_eaa8b9e56a66b7709b3b97eb7c84ab59_rle_crop_3752148718_0.png.png imagette221460311744909143/1744909032_3188076_1350779267_698cc1d4cc9d480981b1eecfadac855d_rle_crop_3752148817_0.png.png imagette221460311744909143/1744909021_3187912_1350774564_3e7523b8119c8ba57b4cab2f3784c54b_rle_crop_3752148770_0.png.png imagette221460311744909143/1744909021_3187912_1350774666_ef70383dccb80700dc3817c5b2d56e30_rle_crop_3752148733_0.png.png imagette221460311744909143/1744909021_3187912_1350774564_3e7523b8119c8ba57b4cab2f3784c54b_rle_crop_3752148771_0.png.png imagette221460311744909143/1744908550_3183381_1350774037_3b39fab56a1355cc7b66b3cbe7ed7e5d_rle_crop_3752111013_0.png.png imagette221460311744909143/1744908821_1018184_1350777560_1d0675187e0e004d587c3c0298402a20_rle_crop_3752124221_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/6d7780a4b22b475330598c85af22c4e0_20744150.png imagette221460311744909143 22146034 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=22146034 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350778574: '1744908733_3185370_1350775698_67a8e109f7f449a20d50bac2ecea9981_rle_crop_3752116396_0.png', 1350778575: '1744908733_3185370_1350775698_67a8e109f7f449a20d50bac2ecea9981_rle_crop_3752116395_0.png', 1350779954: '1744908910_3186930_1350778894_cedca9b566b1f5728492bd8b5b3938bd_rle_crop_3752127253_0.png', 1350780722: '1744909021_3187912_1350775773_eaa8b9e56a66b7709b3b97eb7c84ab59_rle_crop_3752148712_0.png', 1350780723: '1744909021_3187912_1350775773_eaa8b9e56a66b7709b3b97eb7c84ab59_rle_crop_3752148710_0.png', 1350780724: '1744909021_3187912_1350774666_ef70383dccb80700dc3817c5b2d56e30_rle_crop_3752148728_0.png', 1350780725: '1744909021_3187912_1350774564_3e7523b8119c8ba57b4cab2f3784c54b_rle_crop_3752148767_0.png', 1350780727: '1744909021_3187912_1350774511_28f291eba5bb5c91536ba991022f9b74_rle_crop_3752148802_0.png', 1350780729: '1744909021_3187912_1350774511_28f291eba5bb5c91536ba991022f9b74_rle_crop_3752148793_0.png', 1350780759: '1744909032_3188076_1350779600_6cb332ee18ead561f3bb098d0649f566_rle_crop_3752148782_0.png', 1350780760: '1744909032_3188076_1350779600_6cb332ee18ead561f3bb098d0649f566_rle_crop_3752148786_0.png', 1350780761: '1744909032_3188076_1350779267_698cc1d4cc9d480981b1eecfadac855d_rle_crop_3752148818_0.png', 1350780762: '1744909032_3188076_1350779254_937d8116e97f583880e33e93c6b6545b_rle_crop_3752148849_0.png', 1350780896: '1744909061_1022951_1350779508_7003ef3af93fbe9ba9fe4fef399865d6_rle_crop_3752148878_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/8c487d59ab4de882dfca28e563099940_41858775.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/68570d4ce2fed532c544446ad65668a0_86778373.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/1adcd260152340ea1e1eb251269525b5_85209909.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/555b9b06b552251e120b94a37f667d1f_82831059.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/4d38e9ef2ac91cdae6a8c858be86b78d_26404880.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/457d1b4bede3a7900a1213a104d5b30b_37759026.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/422a1541af74912b34375876ba5e2b7a_3076796.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/275531552fb6dc84d18ec797579f5331_72675486.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/930a3b9ce3d26023d3a350d1af45bd03_31303395.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/ec80d23edbd40f62d3ae3cff05cc2aab_43486460.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/a6981973c5dbd4e4623741bbbfc1dece_20206291.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/f084f914b634fb2fea17d77e0b56502f_70478868.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/f4179d9f1d43303eeb818672fd0ee779_20148620.png change filename to text .imagette221460341744909144/ imagette221460341744909144/1744909021_3187912_1350774564_3e7523b8119c8ba57b4cab2f3784c54b_rle_crop_3752148767_0.png.png imagette221460341744909144/1744909021_3187912_1350775773_eaa8b9e56a66b7709b3b97eb7c84ab59_rle_crop_3752148712_0.png.png imagette221460341744909144/1744909021_3187912_1350774511_28f291eba5bb5c91536ba991022f9b74_rle_crop_3752148793_0.png.png imagette221460341744909144/1744908910_3186930_1350778894_cedca9b566b1f5728492bd8b5b3938bd_rle_crop_3752127253_0.png.png imagette221460341744909144/1744909032_3188076_1350779254_937d8116e97f583880e33e93c6b6545b_rle_crop_3752148849_0.png.png imagette221460341744909144/1744909061_1022951_1350779508_7003ef3af93fbe9ba9fe4fef399865d6_rle_crop_3752148878_0.png.png imagette221460341744909144/1744909032_3188076_1350779600_6cb332ee18ead561f3bb098d0649f566_rle_crop_3752148786_0.png.png imagette221460341744909144/1744908733_3185370_1350775698_67a8e109f7f449a20d50bac2ecea9981_rle_crop_3752116395_0.png.png imagette221460341744909144/1744909021_3187912_1350775773_eaa8b9e56a66b7709b3b97eb7c84ab59_rle_crop_3752148710_0.png.png imagette221460341744909144/1744909021_3187912_1350774666_ef70383dccb80700dc3817c5b2d56e30_rle_crop_3752148728_0.png.png imagette221460341744909144/1744909032_3188076_1350779267_698cc1d4cc9d480981b1eecfadac855d_rle_crop_3752148818_0.png.png imagette221460341744909144/1744909021_3187912_1350774511_28f291eba5bb5c91536ba991022f9b74_rle_crop_3752148802_0.png.png imagette221460341744909144/1744909032_3188076_1350779600_6cb332ee18ead561f3bb098d0649f566_rle_crop_3752148782_0.png.png imagette221460341744909144/1744908733_3185370_1350775698_67a8e109f7f449a20d50bac2ecea9981_rle_crop_3752116396_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/e55c928badde969f133c9f3eeb20a71f_18908714.png imagette221460341744909144 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22146025 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22146041,22146042,22146043,22146044,22146045,22146046,22146047,22146048,22146049,22146050,22146051,22146052?tags=Carton_brun,cartonnette,Teint_Dans_La_Masse,autre_refus,environnement,Carton_gris,metal,mal_croppe,kraft,plastique,papier,flou your option no_mail is active, we will not send the real mail to your client args[1350781095] : ('0.0586141697542968',) no score found for photo 1350781095 We are sending mail with results at report@fotonower.com args[1350781043] : ('0.0586141697542968',) no score found for photo 1350781043 We are sending mail with results at report@fotonower.com args[1350780991] : ('0.0586141697542968',) no score found for photo 1350780991 We are sending mail with results at report@fotonower.com args[1350780470] : ('0.0586141697542968',) no score found for photo 1350780470 We are sending mail with results at report@fotonower.com args[1350780411] : ('0.0586141697542968',) no score found for photo 1350780411 We are sending mail with results at report@fotonower.com args[1350780358] : ('0.0586141697542968',) no score found for photo 1350780358 We are sending mail with results at report@fotonower.com args[1350780302] : ('0.0586141697542968',) no score found for photo 1350780302 We are sending mail with results at report@fotonower.com args[1350780239] : ('0.0586141697542968',) no score found for photo 1350780239 We are sending mail with results at report@fotonower.com args[1350780081] : ('0.0586141697542968',) no score found for photo 1350780081 We are sending mail with results at report@fotonower.com args[1350780077] : ('0.0586141697542968',) no score found for photo 1350780077 We are sending mail with results at report@fotonower.com args[1350780073] : ('0.0586141697542968',) no score found for photo 1350780073 We are sending mail with results at report@fotonower.com args[1350780072] : ('0.0586141697542968',) no score found for photo 1350780072 We are sending mail with results at report@fotonower.com args[1350780054] : ('0.0586141697542968',) no score found for photo 1350780054 We are sending mail with results at report@fotonower.com args[1350780044] : ('0.0586141697542968',) no score found for photo 1350780044 We are sending mail with results at report@fotonower.com refus_total : 0.0586141697542968 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=22146025 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_P22146025_17-04-2025_18_59_01.pdf results_Auto_P22146025_17-04-2025_18_59_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22146025_17-04-2025_18_59_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22146025','results_Auto_P22146025_17-04-2025_18_59_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22146025_17-04-2025_18_59_01.pdf','pdf','','0.27','0.0586141697542968') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22146025]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350781095, 1350781043, 1350780991, 1350780470, 1350780411, 1350780358, 1350780302, 1350780239, 1350780081, 1350780077, 1350780073, 1350780072, 1350780054, 1350780044] map_info['map_portfolio_photo'] : {22146025: [1350781095, 1350781043, 1350780991, 1350780470, 1350780411, 1350780358, 1350780302, 1350780239, 1350780081, 1350780077, 1350780073, 1350780072, 1350780054, 1350780044, 1350779600, 1350779558, 1350779508, 1350779274, 1350779267, 1350779265, 1350779261, 1350779254, 1350779005, 1350778952, 1350778894, 1350778813, 1350778764, 1350778713, 1350778366, 1350778331, 1350778292, 1350778240, 1350777660, 1350777601, 1350777560, 1350777515, 1350777456, 1350776592, 1350776548, 1350776518, 1350776488, 1350776460, 1350775773, 1350775747, 1350775722, 1350775698, 1350774736, 1350774666, 1350774636, 1350774590, 1350774564, 1350774511, 1350774098, 1350774095, 1350774094, 1350774049, 1350774047, 1350774041, 1350774037]} final : False mtd_id 4302 list_pids : [1350781095, 1350781043, 1350780991, 1350780470, 1350780411, 1350780358, 1350780302, 1350780239, 1350780081, 1350780077, 1350780073, 1350780072, 1350780054, 1350780044] 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, '2732056') ('4302', '22146025', '1350781095', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350781043', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780991', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780470', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780411', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780358', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780302', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780239', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780081', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780077', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780073', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780072', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780054', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780044', None, None, None, None, None, '2732056') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '22146025', '1350781095', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350781043', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780991', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780470', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780411', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780358', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780302', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780239', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780081', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780077', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780073', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780072', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780054', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780044', None, None, None, None, None, '2732056')] time used for this insertion : 0.01961040496826172 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.602372646331787 time spend to save output : 0.020033836364746094 total time spend for step 4 : 5.622406482696533 step5:split_time_score Thu Apr 17 18:59:06 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 : ['22146025'] 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 : [('22146025',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22146025) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350781043: {'path': 'temp/1744909140_1881125_1350781043_dee1a99eecaad5a1a0788cd3812e0930.jpg', 'extension': 'jpg'}, 1350781095: {'path': 'temp/1744909140_1881125_1350781095_b8848b3b44d7abe4aca3b2f4edc86724.jpg', 'extension': 'jpg'}, 1350780411: {'path': 'temp/1744909140_1881125_1350780411_de469ef392c46a35afe100a2d908e8e3.jpg', 'extension': 'jpg'}, 1350780470: {'path': 'temp/1744909140_1881125_1350780470_d0ebada58526790e055bf0e54fe19bd8.jpg', 'extension': 'jpg'}, 1350780991: {'path': 'temp/1744909140_1881125_1350780991_44a5d6b5c2e106a43017e77ac7cc1d46.jpg', 'extension': 'jpg'}, 1350780239: {'path': 'temp/1744909140_1881125_1350780239_77f217666f9daf9546d18c2c65c6e469.jpg', 'extension': 'jpg'}, 1350780302: {'path': 'temp/1744909140_1881125_1350780302_a3e4ab653d27f4d372f6a901990e4f35.jpg', 'extension': 'jpg'}, 1350780358: {'path': 'temp/1744909140_1881125_1350780358_8822bb8ca3a8cde519bf2702b13cd8c4.jpg', 'extension': 'jpg'}, 1350780073: {'path': 'temp/1744909140_1881125_1350780073_b692f2d382e30540de64440191159057.jpg', 'extension': 'jpg'}, 1350780077: {'path': 'temp/1744909140_1881125_1350780077_26d0177c4e9956379c3e427bc5a09a2b.jpg', 'extension': 'jpg'}, 1350780081: {'path': 'temp/1744909140_1881125_1350780081_a0773b07fb2333d270adf6b6d7088c47.jpg', 'extension': 'jpg'}, 1350780044: {'path': 'temp/1744909140_1881125_1350780044_6904f9c61772dffec7661171928d9105.jpg', 'extension': 'jpg'}, 1350780054: {'path': 'temp/1744909140_1881125_1350780054_bc35dbba64bcefd32b33477c111ab30f.jpg', 'extension': 'jpg'}, 1350780072: {'path': 'temp/1744909140_1881125_1350780072_85b1546d4cfeb4aafe7c55b85a1208df.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 = 22146025; (('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 = 22146025 group by h (('18', 59),) 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=22146025 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 (22146025) 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 (22146025) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17042025 22146025 Nombre de photos uploadées : 59 / 23040 (0%) 17042025 22146025 Nombre de photos taguées (types de déchets): 0 / 59 (0%) 17042025 22146025 Nombre de photos taguées (volume) : 0 / 59 (0%) [{'photo_id': 1350774049, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/a6138e33a55194c65db619ce73e74e4d.jpg', 'username': None, 'uploaded_at': 1744908368, 'text': 'image_17042025_18_45_14_010139m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1350774047, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/0918c4e5559da0e4cfe85fa6ff81202e.jpg', 'username': None, 'uploaded_at': 1744908368, 'text': 'image_17042025_18_45_24_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350774041, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/9454001fd523f93a224ea2baa6c00652.jpg', 'username': None, 'uploaded_at': 1744908368, 'text': 'image_17042025_18_45_34_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1350774037, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/3b39fab56a1355cc7b66b3cbe7ed7e5d.jpg', 'username': None, 'uploaded_at': 1744908368, 'text': 'image_17042025_18_45_44_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 7.152557373046875e-06 ??????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002303600311279297 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22146025, '2025-04-17' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1721208,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03063225746154785 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= 1721208 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1721208, 'dashboard_run_id': 1731740, 'mtr_portfolio_id': 22144314, 'dashboard_result_id': 9943125, '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_P22144314_17-04-2025_18_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22144339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22144340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22144341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22144342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22144343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22144344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22144345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22144346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22144347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22144348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22144349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22144350, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1731740, 'mtr_portfolio_id': 22144739, 'dashboard_result_id': 9943126, '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_P22144739_17-04-2025_18_33_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22144740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22144741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22144742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22144743, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22144744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22144745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22144746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22144747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22144748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22144749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22144750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22144751, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1731740, 'mtr_portfolio_id': 22145408, 'dashboard_result_id': 9943127, '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_P22145408_17-04-2025_18_47_45.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22145449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22145450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22145451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22145452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22145453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22145454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22145455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22145456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22145457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22145458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22145459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22145460, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1731740, 'mtr_portfolio_id': 22146025, 'dashboard_result_id': 9943129, '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_P22146025_17-04-2025_18_56_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22146029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22146030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22146031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22146032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22146033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22146034, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22146035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22146036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22146037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22146038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22146039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22146040, '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 = 22144314 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': 2731869, 'mtr_portfolio_id': 22144314, 'created_at': datetime.datetime(2025, 4, 17, 18, 16, 59), 'result': '0.05901953950970541', 'result_long': None, 'result_double': None}] Qualite : 0.05901953950970541 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22144314 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22144314_17-04-2025_18_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22144314 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_P22144314_17-04-2025_18_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22144339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22144340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22144341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22144342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22144343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22144344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22144345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22144346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22144347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22144348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22144349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22144350, 'pht': 3726}}" where mtr_portfolio_id = 22144314 and dashboard_run_id = 1731740 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`=22144314 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9943125, 0.05901953950970541, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22144314_17-04-2025_18_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22144339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22144340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22144341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22144342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22144343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22144344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22144345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22144346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22144347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22144348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22144349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22144350, '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 = 22144739 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': 2731921, 'mtr_portfolio_id': 22144739, 'created_at': datetime.datetime(2025, 4, 17, 18, 33, 28), 'result': '0.05912426492609885', 'result_long': None, 'result_double': None}] Qualite : 0.05912426492609885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22144739 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22144739_17-04-2025_18_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22144739 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_P22144739_17-04-2025_18_33_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22144740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22144741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22144742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22144743, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22144744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22144745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22144746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22144747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22144748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22144749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22144750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22144751, 'pht': 3726}}" where mtr_portfolio_id = 22144739 and dashboard_run_id = 1731740 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`=22144739 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9943126, 0.05912426492609885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22144739_17-04-2025_18_33_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22144740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22144741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22144742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22144743, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22144744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22144745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22144746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22144747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22144748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22144749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22144750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22144751, '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 = 22145408 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': 2732009, 'mtr_portfolio_id': 22145408, 'created_at': datetime.datetime(2025, 4, 17, 18, 47, 44), 'result': '0.0438171484041344', 'result_long': None, 'result_double': None}] Qualite : 0.0438171484041344 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22145408 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22145408_17-04-2025_18_47_45.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22145408 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_P22145408_17-04-2025_18_47_45.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22145449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22145450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22145451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22145452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22145453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22145454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22145455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22145456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22145457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22145458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22145459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22145460, 'pht': 3726}}" where mtr_portfolio_id = 22145408 and dashboard_run_id = 1731740 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`=22145408 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9943127, 0.0438171484041344, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22145408_17-04-2025_18_47_45.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22145449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22145450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22145451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22145452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22145453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22145454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22145455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22145456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22145457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22145458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22145459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22145460, '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 = 22146025 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': 2732056, 'mtr_portfolio_id': 22146025, 'created_at': datetime.datetime(2025, 4, 17, 18, 59), 'result': '0.0586141697542968', 'result_long': None, 'result_double': None}] Qualite : 0.0586141697542968 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22146025 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22146025_17-04-2025_18_59_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22146025 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_P22146025_17-04-2025_18_59_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22146029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22146030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22146031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22146032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22146033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22146034, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22146035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22146036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22146037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22146038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22146039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22146040, 'pht': 3726}}" where mtr_portfolio_id = 22146025 and dashboard_run_id = 1731740 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`=22146025 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9943129, 0.0586141697542968, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22146025_17-04-2025_18_59_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22146029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22146030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22146031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22146032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22146033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22146034, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22146035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22146036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22146037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22146038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22146039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22146040, '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 (22144314,22144739,22145408,22146025) result : ((1350762908,), (1350762937,), (1350762967,), (1350762994,), (1350763319,), (1350763346,), (1350763376,), (1350763429,), (1350763982,), (1350764029,), (1350764509,), (1350764537,), (1350764569,), (1350765199,), (1350765250,), (1350765304,), (1350765354,), (1350765408,), (1350765773,), (1350765776,), (1350765792,), (1350765818,), (1350765848,), (1350765855,), (1350765920,), (1350765925,), (1350765930,), (1350765934,), (1350765937,), (1350765989,), (1350766018,), (1350766048,), (1350766085,), (1350766112,), (1350766413,), (1350766445,), (1350766473,), (1350766509,), (1350766802,), (1350766827,), (1350766846,), (1350766851,), (1350766855,), (1350766881,), (1350766946,), (1350766951,), (1350766955,), (1350766960,), (1350766964,), (1350766995,), (1350766999,), (1350767002,), (1350767005,), (1350767085,), (1350767097,), (1350767104,), (1350767114,), (1350767123,), (1350767128,), (1350767214,), (1350767216,), (1350767218,), (1350767221,), (1350767547,), (1350767529,), (1350767539,), (1350767543,), (1350767875,), (1350767910,), (1350767955,), (1350768005,), (1350768058,), (1350768416,), (1350768466,), (1350768499,), (1350768649,), (1350768678,), (1350768704,), (1350768893,), (1350768895,), (1350768898,), (1350768901,), (1350768967,), (1350768987,), (1350768991,), (1350768994,), (1350768997,), (1350769053,), (1350769078,), (1350769103,), (1350769170,), (1350769176,), (1350769179,), (1350769182,), (1350769184,), (1350769225,), (1350769228,), (1350769232,), (1350769236,), (1350769240,), (1350769244,), (1350769284,), (1350769288,), (1350769291,), (1350769293,), (1350769297,), (1350769347,), (1350769349,), (1350769389,), (1350769391,), (1350769393,), (1350769395,), (1350769398,), (1350769400,), (1350769437,), (1350769451,), (1350769453,), (1350769456,), (1350769510,), (1350769514,), (1350769519,), (1350769523,), (1350769527,), (1350769564,), (1350769568,), (1350769573,), (1350769578,), (1350769693,), (1350769672,), (1350769674,), (1350769676,), (1350769679,), (1350769684,), (1350769733,), (1350769737,), (1350769740,), (1350769744,), (1350769749,), (1350769789,), (1350770287,), (1350770445,), (1350770472,), (1350770500,), (1350770525,), (1350770552,), (1350770742,), (1350770754,), (1350770779,), (1350770804,), (1350770964,), (1350770966,), (1350770971,), (1350770974,), (1350770978,), (1350770981,), (1350771182,), (1350771185,), (1350771198,), (1350771513,), (1350772016,), (1350772046,), (1350772074,), (1350772627,), (1350772683,), (1350772735,), (1350772780,), (1350772811,), (1350772837,), (1350773229,), (1350773261,), (1350773298,), (1350773709,), (1350773740,), (1350773770,), (1350773799,), (1350773830,), (1350773861,), (1350774053,), (1350774037,), (1350774041,), (1350774047,), (1350774049,), (1350774094,), (1350774095,), (1350774098,), (1350774511,), (1350774564,), (1350774590,), (1350774636,), (1350774666,), (1350774736,), (1350775698,), (1350775722,), (1350775747,), (1350775773,), (1350776460,), (1350776488,), (1350776518,), (1350776548,), (1350776592,), (1350777456,), (1350777515,), (1350777560,), (1350777601,), (1350777660,), (1350778240,), (1350778292,), (1350778331,), (1350778366,), (1350778713,), (1350778764,), (1350778813,), (1350778894,), (1350778952,), (1350779005,), (1350779254,), (1350779261,), (1350779265,), (1350779267,), (1350779274,), (1350779508,), (1350779558,), (1350779600,), (1350780044,), (1350780054,), (1350780072,), (1350780073,), (1350780077,), (1350780081,), (1350780239,), (1350780302,), (1350780358,), (1350780411,), (1350780470,), (1350780991,), (1350781043,), (1350781095,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17042025': {'nb_upload': 59, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22146025]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350781095, 1350781043, 1350780991, 1350780470, 1350780411, 1350780358, 1350780302, 1350780239, 1350780081, 1350780077, 1350780073, 1350780072, 1350780054, 1350780044] map_info['map_portfolio_photo'] : {22146025: [1350781095, 1350781043, 1350780991, 1350780470, 1350780411, 1350780358, 1350780302, 1350780239, 1350780081, 1350780077, 1350780073, 1350780072, 1350780054, 1350780044, 1350779600, 1350779558, 1350779508, 1350779274, 1350779267, 1350779265, 1350779261, 1350779254, 1350779005, 1350778952, 1350778894, 1350778813, 1350778764, 1350778713, 1350778366, 1350778331, 1350778292, 1350778240, 1350777660, 1350777601, 1350777560, 1350777515, 1350777456, 1350776592, 1350776548, 1350776518, 1350776488, 1350776460, 1350775773, 1350775747, 1350775722, 1350775698, 1350774736, 1350774666, 1350774636, 1350774590, 1350774564, 1350774511, 1350774098, 1350774095, 1350774094, 1350774049, 1350774047, 1350774041, 1350774037]} final : True mtd_id 4302 list_pids : [1350781095, 1350781043, 1350780991, 1350780470, 1350780411, 1350780358, 1350780302, 1350780239, 1350780081, 1350780077, 1350780073, 1350780072, 1350780054, 1350780044] Looping around the photos to save general results len do output : 1 /22146025Didn'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, '2732056') ('4302', '22146025', '1350781095', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350781043', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780991', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780470', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780411', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780358', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780302', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780239', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780081', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780077', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780073', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780072', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780054', None, None, None, None, None, '2732056') ('4302', None, None, None, None, None, None, None, '2732056') ('4302', '22146025', '1350780044', None, None, None, None, None, '2732056') 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', None, '22146025', 'None', None, None, None, None, '2732056'), ('4302', '22146025', '1350781095', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350781043', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780991', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780470', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780411', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780358', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780302', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780239', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780081', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780077', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780073', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780072', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780054', None, None, None, None, None, '2732056'), ('4302', '22146025', '1350780044', None, None, None, None, None, '2732056')] time used for this insertion : 0.021711349487304688 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3569917678833008 time spend to save output : 0.022002458572387695 total time spend for step 5 : 0.3789942264556885 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 (2732056) 2.35user 2.38system 0:11.13elapsed 42%CPU (0avgtext+0avgdata 162152maxresident)k 52040inputs+15096outputs (191major+76740minor)pagefaults 0swaps