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 : 2841924 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 (2598582) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2598582) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20664164 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2598582'] with mtr_portfolio_ids : ['20664164'] and first list_photo_ids : [] new path : /proc/2841924/ Name: python3 Umask: 0002 State: R (running) Tgid: 2841924 Ngid: 0 Pid: 2841924 PPid: 2841923 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2841924 NSpid: 2841924 NSpgid: 2838051 NSsid: 2838051 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99388 kB VmRSS: 99388 kB RssAnon: 59756 kB RssFile: 39632 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 4/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 50 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2841924', 'Ngid': '0', 'Pid': '2841924', 'PPid': '2841923', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2841924', 'NSpid': '2841924', 'NSpgid': '2838051', 'NSsid': '2838051', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99388 kB', 'VmRSS': '99388 kB', 'RssAnon': '59756 kB', 'RssFile': '39632 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '4/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '50', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '2841924', '1106844', '0', '1106844', '865596', '99388', b'', 'marlene', '2598582') 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 (20664164) 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 (2598582 ) ) 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 (20664164) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338480884, 'portfolio_id': 20664164}, {'photo_id': 1338480883, 'portfolio_id': 20664164}, {'photo_id': 1338480882, 'portfolio_id': 20664164}, {'photo_id': 1338480880, 'portfolio_id': 20664164}, {'photo_id': 1338480853, 'portfolio_id': 20664164}, {'photo_id': 1338480852, 'portfolio_id': 20664164}, {'photo_id': 1338480850, 'portfolio_id': 20664164}, {'photo_id': 1338480849, 'portfolio_id': 20664164}, {'photo_id': 1338480848, 'portfolio_id': 20664164}, {'photo_id': 1338480847, 'portfolio_id': 20664164}, {'photo_id': 1338480834, 'portfolio_id': 20664164}, {'photo_id': 1338480832, 'portfolio_id': 20664164}, {'photo_id': 1338480829, 'portfolio_id': 20664164}, {'photo_id': 1338480827, 'portfolio_id': 20664164}, {'photo_id': 1338480825, 'portfolio_id': 20664164}, {'photo_id': 1338480823, 'portfolio_id': 20664164}, {'photo_id': 1338480713, 'portfolio_id': 20664164}, {'photo_id': 1338480712, 'portfolio_id': 20664164}, {'photo_id': 1338480711, 'portfolio_id': 20664164}, {'photo_id': 1338480660, 'portfolio_id': 20664164}, {'photo_id': 1338480487, 'portfolio_id': 20664164}, {'photo_id': 1338480486, 'portfolio_id': 20664164}, {'photo_id': 1338480485, 'portfolio_id': 20664164}, {'photo_id': 1338480473, 'portfolio_id': 20664164}, {'photo_id': 1338480471, 'portfolio_id': 20664164}, {'photo_id': 1338480470, 'portfolio_id': 20664164}, {'photo_id': 1338480469, 'portfolio_id': 20664164}, {'photo_id': 1338480468, 'portfolio_id': 20664164}, {'photo_id': 1338480467, 'portfolio_id': 20664164}, {'photo_id': 1338480445, 'portfolio_id': 20664164}, {'photo_id': 1338480443, 'portfolio_id': 20664164}, {'photo_id': 1338480442, 'portfolio_id': 20664164}, {'photo_id': 1338480441, 'portfolio_id': 20664164}, {'photo_id': 1338480440, 'portfolio_id': 20664164}, {'photo_id': 1338480439, 'portfolio_id': 20664164}, {'photo_id': 1338480419, 'portfolio_id': 20664164}, {'photo_id': 1338480417, 'portfolio_id': 20664164}, {'photo_id': 1338480416, 'portfolio_id': 20664164}, {'photo_id': 1338480413, 'portfolio_id': 20664164}, {'photo_id': 1338480410, 'portfolio_id': 20664164}, {'photo_id': 1338480088, 'portfolio_id': 20664164}, {'photo_id': 1338479930, 'portfolio_id': 20664164}, {'photo_id': 1338479808, 'portfolio_id': 20664164}, {'photo_id': 1338479768, 'portfolio_id': 20664164}, {'photo_id': 1338479766, 'portfolio_id': 20664164}, {'photo_id': 1338479764, 'portfolio_id': 20664164}, {'photo_id': 1338479701, 'portfolio_id': 20664164}, {'photo_id': 1338479638, 'portfolio_id': 20664164}, {'photo_id': 1338479568, 'portfolio_id': 20664164}, {'photo_id': 1338479104, 'portfolio_id': 20664164}, {'photo_id': 1338479103, 'portfolio_id': 20664164}, {'photo_id': 1338479100, 'portfolio_id': 20664164}, {'photo_id': 1338479098, 'portfolio_id': 20664164}, {'photo_id': 1338479096, 'portfolio_id': 20664164}, {'photo_id': 1338479084, 'portfolio_id': 20664164}, {'photo_id': 1338479082, 'portfolio_id': 20664164}, {'photo_id': 1338479080, 'portfolio_id': 20664164}, {'photo_id': 1338479079, 'portfolio_id': 20664164}, {'photo_id': 1338479078, 'portfolio_id': 20664164}, {'photo_id': 1338479077, 'portfolio_id': 20664164}, {'photo_id': 1338478871, 'portfolio_id': 20664164}, {'photo_id': 1338478870, 'portfolio_id': 20664164}, {'photo_id': 1338478869, 'portfolio_id': 20664164}] map_portfolio_id_photo_id: {20664164: [1338480884, 1338480883, 1338480882, 1338480880, 1338480853, 1338480852, 1338480850, 1338480849, 1338480848, 1338480847, 1338480834, 1338480832, 1338480829, 1338480827, 1338480825, 1338480823, 1338480713, 1338480712, 1338480711, 1338480660, 1338480487, 1338480486, 1338480485, 1338480473, 1338480471, 1338480470, 1338480469, 1338480468, 1338480467, 1338480445, 1338480443, 1338480442, 1338480441, 1338480440, 1338480439, 1338480419, 1338480417, 1338480416, 1338480413, 1338480410, 1338480088, 1338479930, 1338479808, 1338479768, 1338479766, 1338479764, 1338479701, 1338479638, 1338479568, 1338479104, 1338479103, 1338479100, 1338479098, 1338479096, 1338479084, 1338479082, 1338479080, 1338479079, 1338479078, 1338479077, 1338478871, 1338478870, 1338478869]} ##### 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.0636606216430664 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Feb 19 06:46:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20664164) 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 : 20664164 get user id for portfolio 20664164 get sub ptf for main ptf 20664164, type 3726 and hashtags ['kraft', 'environnement', 'Teint_Dans_La_Masse', 'flou', 'metal', 'mal_croppe', 'autre_refus', 'papier', 'plastique', 'cartonnette', 'Carton_gris', 'Carton_brun'] 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`=20664164 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','Teint_Dans_La_Masse','flou','metal','mal_croppe','autre_refus','papier','plastique','cartonnette','Carton_gris','Carton_brun')) 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`=20664164 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','Teint_Dans_La_Masse','flou','metal','mal_croppe','autre_refus','papier','plastique','cartonnette','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 20664164, 'sub_port_id': 20664168, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316016, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 57)}, 'cartonnette': {'main_port_id': 20664164, 'sub_port_id': 20664169, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316017, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 57)}, 'papier': {'main_port_id': 20664164, 'sub_port_id': 20664170, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316018, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 57)}, 'autre_refus': {'main_port_id': 20664164, 'sub_port_id': 20664171, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316019, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20664164, 'sub_port_id': 20664172, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316020, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 57)}, 'plastique': {'main_port_id': 20664164, 'sub_port_id': 20664173, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316021, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 57)}, 'Carton_gris': {'main_port_id': 20664164, 'sub_port_id': 20664174, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316022, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 57)}, 'environnement': {'main_port_id': 20664164, 'sub_port_id': 20664175, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316023, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 57)}, 'kraft': {'main_port_id': 20664164, 'sub_port_id': 20664176, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316024, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 57)}, 'metal': {'main_port_id': 20664164, 'sub_port_id': 20664177, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316025, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 57)}, 'flou': {'main_port_id': 20664164, 'sub_port_id': 20664178, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316026, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 57)}, 'mal_croppe': {'main_port_id': 20664164, 'sub_port_id': 20664179, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316027, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20664168 , 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=20664164 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 (20664168) result : ((1338480461,), (1338480462,), (1338480497,), (1338480512,), (1338480513,), (1338480514,), (1338480840,), (1338480846,), (1338480873,), (1338480874,), (1338480875,), (1338480876,), (1338480877,), (1338480899,), (1338480900,), (1338480909,), (1338480910,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20664164) result : ((1338478869,), (1338478870,), (1338478871,), (1338479077,), (1338479078,), (1338479079,), (1338479080,), (1338479082,), (1338479084,), (1338479096,), (1338479098,), (1338479100,), (1338479103,), (1338479104,), (1338479568,), (1338479638,), (1338479701,), (1338479764,), (1338479766,), (1338479768,), (1338479808,), (1338479930,), (1338480088,), (1338480410,), (1338480413,), (1338480416,), (1338480417,), (1338480419,), (1338480439,), (1338480440,), (1338480441,), (1338480442,), (1338480443,), (1338480445,), (1338480467,), (1338480468,), (1338480469,), (1338480470,), (1338480471,), (1338480473,), (1338480485,), (1338480486,), (1338480487,), (1338480660,), (1338480711,), (1338480712,), (1338480713,), (1338480823,), (1338480825,), (1338480827,), (1338480829,), (1338480832,), (1338480834,), (1338480847,), (1338480848,), (1338480849,), (1338480850,), (1338480852,), (1338480853,), (1338480880,), (1338480882,), (1338480883,), (1338480884,)) 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 (1338479100) 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 20664169 , 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=20664164 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 (20664169) result : ((1338480225,), (1338480460,), (1338480496,), (1338480511,), (1338480868,), (1338480869,), (1338480870,), (1338480871,), (1338480905,), (1338480906,), (1338480908,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20664164) result : ((1338478869,), (1338478870,), (1338478871,), (1338479077,), (1338479078,), (1338479079,), (1338479080,), (1338479082,), (1338479084,), (1338479096,), (1338479098,), (1338479100,), (1338479103,), (1338479104,), (1338479568,), (1338479638,), (1338479701,), (1338479764,), (1338479766,), (1338479768,), (1338479808,), (1338479930,), (1338480088,), (1338480410,), (1338480413,), (1338480416,), (1338480417,), (1338480419,), (1338480439,), (1338480440,), (1338480441,), (1338480442,), (1338480443,), (1338480445,), (1338480467,), (1338480468,), (1338480469,), (1338480470,), (1338480471,), (1338480473,), (1338480485,), (1338480486,), (1338480487,), (1338480660,), (1338480711,), (1338480712,), (1338480713,), (1338480823,), (1338480825,), (1338480827,), (1338480829,), (1338480832,), (1338480834,), (1338480847,), (1338480848,), (1338480849,), (1338480850,), (1338480852,), (1338480853,), (1338480880,), (1338480882,), (1338480883,), (1338480884,)) 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 (1338479100) 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 20664170 , 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=20664164 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 (20664170) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20664164) result : ((1338478869,), (1338478870,), (1338478871,), (1338479077,), (1338479078,), (1338479079,), (1338479080,), (1338479082,), (1338479084,), (1338479096,), (1338479098,), (1338479100,), (1338479103,), (1338479104,), (1338479568,), (1338479638,), (1338479701,), (1338479764,), (1338479766,), (1338479768,), (1338479808,), (1338479930,), (1338480088,), (1338480410,), (1338480413,), (1338480416,), (1338480417,), (1338480419,), (1338480439,), (1338480440,), (1338480441,), (1338480442,), (1338480443,), (1338480445,), (1338480467,), (1338480468,), (1338480469,), (1338480470,), (1338480471,), (1338480473,), (1338480485,), (1338480486,), (1338480487,), (1338480660,), (1338480711,), (1338480712,), (1338480713,), (1338480823,), (1338480825,), (1338480827,), (1338480829,), (1338480832,), (1338480834,), (1338480847,), (1338480848,), (1338480849,), (1338480850,), (1338480852,), (1338480853,), (1338480880,), (1338480882,), (1338480883,), (1338480884,)) 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 (1338479100) 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 20664171 , 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=20664164 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 (20664171) result : ((1338480429,), (1338480430,), (1338480431,), (1338480495,), (1338480865,), (1338480902,), (1338480903,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20664164) result : ((1338478869,), (1338478870,), (1338478871,), (1338479077,), (1338479078,), (1338479079,), (1338479080,), (1338479082,), (1338479084,), (1338479096,), (1338479098,), (1338479100,), (1338479103,), (1338479104,), (1338479568,), (1338479638,), (1338479701,), (1338479764,), (1338479766,), (1338479768,), (1338479808,), (1338479930,), (1338480088,), (1338480410,), (1338480413,), (1338480416,), (1338480417,), (1338480419,), (1338480439,), (1338480440,), (1338480441,), (1338480442,), (1338480443,), (1338480445,), (1338480467,), (1338480468,), (1338480469,), (1338480470,), (1338480471,), (1338480473,), (1338480485,), (1338480486,), (1338480487,), (1338480660,), (1338480711,), (1338480712,), (1338480713,), (1338480823,), (1338480825,), (1338480827,), (1338480829,), (1338480832,), (1338480834,), (1338480847,), (1338480848,), (1338480849,), (1338480850,), (1338480852,), (1338480853,), (1338480880,), (1338480882,), (1338480883,), (1338480884,)) 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 (1338479100) 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 20664172 , 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=20664164 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 (20664172) result : ((1338480412,), (1338480424,), (1338480425,), (1338480427,), (1338480428,), (1338480455,), (1338480494,), (1338480504,), (1338480505,), (1338480506,), (1338480858,), (1338480864,), (1338480901,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20664164) result : ((1338478869,), (1338478870,), (1338478871,), (1338479077,), (1338479078,), (1338479079,), (1338479080,), (1338479082,), (1338479084,), (1338479096,), (1338479098,), (1338479100,), (1338479103,), (1338479104,), (1338479568,), (1338479638,), (1338479701,), (1338479764,), (1338479766,), (1338479768,), (1338479808,), (1338479930,), (1338480088,), (1338480410,), (1338480413,), (1338480416,), (1338480417,), (1338480419,), (1338480439,), (1338480440,), (1338480441,), (1338480442,), (1338480443,), (1338480445,), (1338480467,), (1338480468,), (1338480469,), (1338480470,), (1338480471,), (1338480473,), (1338480485,), (1338480486,), (1338480487,), (1338480660,), (1338480711,), (1338480712,), (1338480713,), (1338480823,), (1338480825,), (1338480827,), (1338480829,), (1338480832,), (1338480834,), (1338480847,), (1338480848,), (1338480849,), (1338480850,), (1338480852,), (1338480853,), (1338480880,), (1338480882,), (1338480883,), (1338480884,)) 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 (1338479100) 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 20664173 , 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=20664164 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 (20664173) result : ((1338480434,), (1338480463,), (1338480464,), (1338480465,), (1338480498,), (1338480911,), (1338480912,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20664164) result : ((1338478869,), (1338478870,), (1338478871,), (1338479077,), (1338479078,), (1338479079,), (1338479080,), (1338479082,), (1338479084,), (1338479096,), (1338479098,), (1338479100,), (1338479103,), (1338479104,), (1338479568,), (1338479638,), (1338479701,), (1338479764,), (1338479766,), (1338479768,), (1338479808,), (1338479930,), (1338480088,), (1338480410,), (1338480413,), (1338480416,), (1338480417,), (1338480419,), (1338480439,), (1338480440,), (1338480441,), (1338480442,), (1338480443,), (1338480445,), (1338480467,), (1338480468,), (1338480469,), (1338480470,), (1338480471,), (1338480473,), (1338480485,), (1338480486,), (1338480487,), (1338480660,), (1338480711,), (1338480712,), (1338480713,), (1338480823,), (1338480825,), (1338480827,), (1338480829,), (1338480832,), (1338480834,), (1338480847,), (1338480848,), (1338480849,), (1338480850,), (1338480852,), (1338480853,), (1338480880,), (1338480882,), (1338480883,), (1338480884,)) 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 (1338479100) 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 20664174 , 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=20664164 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 (20664174) result : ((1338480213,), (1338480414,), (1338480415,), (1338480432,), (1338480456,), (1338480457,), (1338480458,), (1338480508,), (1338480509,), (1338480510,), (1338480859,), (1338480866,), (1338480904,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20664164) result : ((1338478869,), (1338478870,), (1338478871,), (1338479077,), (1338479078,), (1338479079,), (1338479080,), (1338479082,), (1338479084,), (1338479096,), (1338479098,), (1338479100,), (1338479103,), (1338479104,), (1338479568,), (1338479638,), (1338479701,), (1338479764,), (1338479766,), (1338479768,), (1338479808,), (1338479930,), (1338480088,), (1338480410,), (1338480413,), (1338480416,), (1338480417,), (1338480419,), (1338480439,), (1338480440,), (1338480441,), (1338480442,), (1338480443,), (1338480445,), (1338480467,), (1338480468,), (1338480469,), (1338480470,), (1338480471,), (1338480473,), (1338480485,), (1338480486,), (1338480487,), (1338480660,), (1338480711,), (1338480712,), (1338480713,), (1338480823,), (1338480825,), (1338480827,), (1338480829,), (1338480832,), (1338480834,), (1338480847,), (1338480848,), (1338480849,), (1338480850,), (1338480852,), (1338480853,), (1338480880,), (1338480882,), (1338480883,), (1338480884,)) 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 (1338479100) 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 20664175 , 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=20664164 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 (20664175) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20664164) result : ((1338478869,), (1338478870,), (1338478871,), (1338479077,), (1338479078,), (1338479079,), (1338479080,), (1338479082,), (1338479084,), (1338479096,), (1338479098,), (1338479100,), (1338479103,), (1338479104,), (1338479568,), (1338479638,), (1338479701,), (1338479764,), (1338479766,), (1338479768,), (1338479808,), (1338479930,), (1338480088,), (1338480410,), (1338480413,), (1338480416,), (1338480417,), (1338480419,), (1338480439,), (1338480440,), (1338480441,), (1338480442,), (1338480443,), (1338480445,), (1338480467,), (1338480468,), (1338480469,), (1338480470,), (1338480471,), (1338480473,), (1338480485,), (1338480486,), (1338480487,), (1338480660,), (1338480711,), (1338480712,), (1338480713,), (1338480823,), (1338480825,), (1338480827,), (1338480829,), (1338480832,), (1338480834,), (1338480847,), (1338480848,), (1338480849,), (1338480850,), (1338480852,), (1338480853,), (1338480880,), (1338480882,), (1338480883,), (1338480884,)) 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 (1338479100) 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 20664176 , 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=20664164 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 (20664176) result : ((1338480515,), (1338480878,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20664164) result : ((1338478869,), (1338478870,), (1338478871,), (1338479077,), (1338479078,), (1338479079,), (1338479080,), (1338479082,), (1338479084,), (1338479096,), (1338479098,), (1338479100,), (1338479103,), (1338479104,), (1338479568,), (1338479638,), (1338479701,), (1338479764,), (1338479766,), (1338479768,), (1338479808,), (1338479930,), (1338480088,), (1338480410,), (1338480413,), (1338480416,), (1338480417,), (1338480419,), (1338480439,), (1338480440,), (1338480441,), (1338480442,), (1338480443,), (1338480445,), (1338480467,), (1338480468,), (1338480469,), (1338480470,), (1338480471,), (1338480473,), (1338480485,), (1338480486,), (1338480487,), (1338480660,), (1338480711,), (1338480712,), (1338480713,), (1338480823,), (1338480825,), (1338480827,), (1338480829,), (1338480832,), (1338480834,), (1338480847,), (1338480848,), (1338480849,), (1338480850,), (1338480852,), (1338480853,), (1338480880,), (1338480882,), (1338480883,), (1338480884,)) 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 (1338479100) 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 20664177 , 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=20664164 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 (20664177) result : ((1338480516,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20664164) result : ((1338478869,), (1338478870,), (1338478871,), (1338479077,), (1338479078,), (1338479079,), (1338479080,), (1338479082,), (1338479084,), (1338479096,), (1338479098,), (1338479100,), (1338479103,), (1338479104,), (1338479568,), (1338479638,), (1338479701,), (1338479764,), (1338479766,), (1338479768,), (1338479808,), (1338479930,), (1338480088,), (1338480410,), (1338480413,), (1338480416,), (1338480417,), (1338480419,), (1338480439,), (1338480440,), (1338480441,), (1338480442,), (1338480443,), (1338480445,), (1338480467,), (1338480468,), (1338480469,), (1338480470,), (1338480471,), (1338480473,), (1338480485,), (1338480486,), (1338480487,), (1338480660,), (1338480711,), (1338480712,), (1338480713,), (1338480823,), (1338480825,), (1338480827,), (1338480829,), (1338480832,), (1338480834,), (1338480847,), (1338480848,), (1338480849,), (1338480850,), (1338480852,), (1338480853,), (1338480880,), (1338480882,), (1338480883,), (1338480884,)) 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 (1338479100) 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 20664178 , 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=20664164 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 (20664178) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20664164) result : ((1338478869,), (1338478870,), (1338478871,), (1338479077,), (1338479078,), (1338479079,), (1338479080,), (1338479082,), (1338479084,), (1338479096,), (1338479098,), (1338479100,), (1338479103,), (1338479104,), (1338479568,), (1338479638,), (1338479701,), (1338479764,), (1338479766,), (1338479768,), (1338479808,), (1338479930,), (1338480088,), (1338480410,), (1338480413,), (1338480416,), (1338480417,), (1338480419,), (1338480439,), (1338480440,), (1338480441,), (1338480442,), (1338480443,), (1338480445,), (1338480467,), (1338480468,), (1338480469,), (1338480470,), (1338480471,), (1338480473,), (1338480485,), (1338480486,), (1338480487,), (1338480660,), (1338480711,), (1338480712,), (1338480713,), (1338480823,), (1338480825,), (1338480827,), (1338480829,), (1338480832,), (1338480834,), (1338480847,), (1338480848,), (1338480849,), (1338480850,), (1338480852,), (1338480853,), (1338480880,), (1338480882,), (1338480883,), (1338480884,)) 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 (1338479100) 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 20664179 , 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=20664164 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 (20664179) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20664164) result : ((1338478869,), (1338478870,), (1338478871,), (1338479077,), (1338479078,), (1338479079,), (1338479080,), (1338479082,), (1338479084,), (1338479096,), (1338479098,), (1338479100,), (1338479103,), (1338479104,), (1338479568,), (1338479638,), (1338479701,), (1338479764,), (1338479766,), (1338479768,), (1338479808,), (1338479930,), (1338480088,), (1338480410,), (1338480413,), (1338480416,), (1338480417,), (1338480419,), (1338480439,), (1338480440,), (1338480441,), (1338480442,), (1338480443,), (1338480445,), (1338480467,), (1338480468,), (1338480469,), (1338480470,), (1338480471,), (1338480473,), (1338480485,), (1338480486,), (1338480487,), (1338480660,), (1338480711,), (1338480712,), (1338480713,), (1338480823,), (1338480825,), (1338480827,), (1338480829,), (1338480832,), (1338480834,), (1338480847,), (1338480848,), (1338480849,), (1338480850,), (1338480852,), (1338480853,), (1338480880,), (1338480882,), (1338480883,), (1338480884,)) 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 (1338479100) 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`=20664164 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','Teint_Dans_La_Masse','flou','metal','mal_croppe','autre_refus','papier','plastique','cartonnette','Carton_gris','Carton_brun')) 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`=20664164 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','Teint_Dans_La_Masse','flou','metal','mal_croppe','autre_refus','papier','plastique','cartonnette','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 20664164, 'sub_port_id': 20664180, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316028, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 58)}, 'cartonnette': {'main_port_id': 20664164, 'sub_port_id': 20664181, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316029, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 58)}, 'papier': {'main_port_id': 20664164, 'sub_port_id': 20664182, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316030, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 58)}, 'autre_refus': {'main_port_id': 20664164, 'sub_port_id': 20664183, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316031, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20664164, 'sub_port_id': 20664184, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316032, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 58)}, 'plastique': {'main_port_id': 20664164, 'sub_port_id': 20664185, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316033, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 58)}, 'Carton_gris': {'main_port_id': 20664164, 'sub_port_id': 20664186, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316034, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 58)}, 'environnement': {'main_port_id': 20664164, 'sub_port_id': 20664187, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316035, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 58)}, 'kraft': {'main_port_id': 20664164, 'sub_port_id': 20664188, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316036, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 58)}, 'metal': {'main_port_id': 20664164, 'sub_port_id': 20664189, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316037, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 58)}, 'flou': {'main_port_id': 20664164, 'sub_port_id': 20664190, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316038, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 58)}, 'mal_croppe': {'main_port_id': 20664164, 'sub_port_id': 20664191, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13316039, 'last_updated_at': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 19, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 19, 6, 36, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20664180,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20664168 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20664181,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20664169 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20664182,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20664170 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20664183,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20664171 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20664184,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20664172 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20664185,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20664173 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20664186,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20664174 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20664187,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20664175 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20664188,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20664176 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20664189,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20664177 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20664190,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20664178 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20664191,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20664179 lien utilise dans velours : https://www.fotonower.com/velours/20664180,20664181,20664182,20664183,20664184,20664185,20664186,20664187,20664188,20664189,20664190,20664191?tags=Carton_brun,cartonnette,papier,autre_refus,Teint_Dans_La_Masse,plastique,Carton_gris,environnement,kraft,metal,flou,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20664164]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338480884, 1338480883, 1338480882, 1338480880, 1338480853, 1338480852, 1338480850, 1338480849, 1338480848, 1338480847] map_info['map_portfolio_photo'] : {20664164: [1338480884, 1338480883, 1338480882, 1338480880, 1338480853, 1338480852, 1338480850, 1338480849, 1338480848, 1338480847, 1338480834, 1338480832, 1338480829, 1338480827, 1338480825, 1338480823, 1338480713, 1338480712, 1338480711, 1338480660, 1338480487, 1338480486, 1338480485, 1338480473, 1338480471, 1338480470, 1338480469, 1338480468, 1338480467, 1338480445, 1338480443, 1338480442, 1338480441, 1338480440, 1338480439, 1338480419, 1338480417, 1338480416, 1338480413, 1338480410, 1338480088, 1338479930, 1338479808, 1338479768, 1338479766, 1338479764, 1338479701, 1338479638, 1338479568, 1338479104, 1338479103, 1338479100, 1338479098, 1338479096, 1338479084, 1338479082, 1338479080, 1338479079, 1338479078, 1338479077, 1338478871, 1338478870, 1338478869]} final : False mtd_id 4302 list_pids : [1338480884, 1338480883, 1338480882, 1338480880, 1338480853, 1338480852, 1338480850, 1338480849, 1338480848, 1338480847] Looping around the photos to save general results len do output : 1 /20664164. 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, '2598582') ('4302', '20664164', '1338480884', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480883', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480882', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480880', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480853', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480852', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480850', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480849', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480848', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480847', None, None, None, None, None, '2598582') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20664164', "{'Carton_brun': 20664168, 'cartonnette': 20664169, 'papier': 20664170, 'autre_refus': 20664171, 'Teint_Dans_La_Masse': 20664172, 'plastique': 20664173, 'Carton_gris': 20664174, 'environnement': 20664175, 'kraft': 20664176, 'metal': 20664177, 'flou': 20664178, 'mal_croppe': 20664179}", None, None, None, None, '2598582'), ('4302', '20664164', '1338480884', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480883', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480882', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480880', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480853', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480852', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480850', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480849', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480848', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480847', None, None, None, None, None, '2598582')] time used for this insertion : 0.020678043365478516 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6502234935760498 time spend to save output : 0.020953655242919922 total time spend for step 1 : 0.6711771488189697 step2:final Wed Feb 19 06:46:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20664164) 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 20664164 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338478871,1338478870,1338478869,1338479084,1338479082,1338479080,1338479079,1338479078,1338479077,1338479104,1338479103,1338479100,1338479098,1338479096,1338479701,1338479638,1338479568,1338480088,1338479930,1338479808,1338479768,1338479766,1338479764,1338480419,1338480417,1338480416,1338480413,1338480410,1338480445,1338480443,1338480442,1338480441,1338480440,1338480439,1338480473,1338480471,1338480470,1338480469,1338480468,1338480467,1338480487,1338480486,1338480485,1338480713,1338480712,1338480711,1338480660,1338480834,1338480832,1338480829,1338480827,1338480825,1338480823,1338480853,1338480852,1338480850,1338480849,1338480848,1338480847,1338480884,1338480883,1338480882,1338480880); 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([20664164]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ('0.03713373889182811',), 1338480853: ('0.03713373889182811',), 1338480852: ('0.03713373889182811',), 1338480850: ('0.03713373889182811',), 1338480849: ('0.03713373889182811',), 1338480848: ('0.03713373889182811',), 1338480847: ('0.03713373889182811',)} new output for save of step final : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ('0.03713373889182811',), 1338480853: ('0.03713373889182811',), 1338480852: ('0.03713373889182811',), 1338480850: ('0.03713373889182811',), 1338480849: ('0.03713373889182811',), 1338480848: ('0.03713373889182811',), 1338480847: ('0.03713373889182811',)} [1338480884, 1338480883, 1338480882, 1338480880, 1338480853, 1338480852, 1338480850, 1338480849, 1338480848, 1338480847] map_info['map_portfolio_photo'] : {20664164: [1338480884, 1338480883, 1338480882, 1338480880, 1338480853, 1338480852, 1338480850, 1338480849, 1338480848, 1338480847, 1338480834, 1338480832, 1338480829, 1338480827, 1338480825, 1338480823, 1338480713, 1338480712, 1338480711, 1338480660, 1338480487, 1338480486, 1338480485, 1338480473, 1338480471, 1338480470, 1338480469, 1338480468, 1338480467, 1338480445, 1338480443, 1338480442, 1338480441, 1338480440, 1338480439, 1338480419, 1338480417, 1338480416, 1338480413, 1338480410, 1338480088, 1338479930, 1338479808, 1338479768, 1338479766, 1338479764, 1338479701, 1338479638, 1338479568, 1338479104, 1338479103, 1338479100, 1338479098, 1338479096, 1338479084, 1338479082, 1338479080, 1338479079, 1338479078, 1338479077, 1338478871, 1338478870, 1338478869]} final : False mtd_id 4302 list_pids : [1338480884, 1338480883, 1338480882, 1338480880, 1338480853, 1338480852, 1338480850, 1338480849, 1338480848, 1338480847] Looping around the photos to save general results len do output : 10 /1338480884.Didn't retrieve data . /1338480883.Didn't retrieve data . /1338480882.Didn't retrieve data . /1338480880.Didn't retrieve data . /1338480853.Didn't retrieve data . /1338480852.Didn't retrieve data . /1338480850.Didn't retrieve data . /1338480849.Didn't retrieve data . /1338480848.Didn't retrieve data . /1338480847.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, '2598582') ('4302', '20664164', '1338480884', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480883', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480882', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480880', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480853', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480852', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480850', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480849', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480848', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480847', None, None, None, None, None, '2598582') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20664164', '1338480884', '0.03713373889182811', None, None, None, None, '2598582'), ('4302', '20664164', '1338480883', '0.03713373889182811', None, None, None, None, '2598582'), ('4302', '20664164', '1338480882', '0.03713373889182811', None, None, None, None, '2598582'), ('4302', '20664164', '1338480880', '0.03713373889182811', None, None, None, None, '2598582'), ('4302', '20664164', '1338480853', '0.03713373889182811', None, None, None, None, '2598582'), ('4302', '20664164', '1338480852', '0.03713373889182811', None, None, None, None, '2598582'), ('4302', '20664164', '1338480850', '0.03713373889182811', None, None, None, None, '2598582'), ('4302', '20664164', '1338480849', '0.03713373889182811', None, None, None, None, '2598582'), ('4302', '20664164', '1338480848', '0.03713373889182811', None, None, None, None, '2598582'), ('4302', '20664164', '1338480847', '0.03713373889182811', None, None, None, None, '2598582')] time used for this insertion : 0.01537322998046875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07808709144592285 time spend to save output : 0.015871047973632812 total time spend for step 2 : 0.09395813941955566 step3:velours_tree Wed Feb 19 06:46:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20664164: [{'Carton_brun': 20664168, 'cartonnette': 20664169, 'papier': 20664170, 'autre_refus': 20664171, 'Teint_Dans_La_Masse': 20664172, 'plastique': 20664173, 'Carton_gris': 20664174, 'environnement': 20664175, 'kraft': 20664176, 'metal': 20664177, 'flou': 20664178, 'mal_croppe': 20664179}]} input_args_next_step : {20664164: ()} output_args : {20664164: [{'Carton_brun': 20664168, 'cartonnette': 20664169, 'papier': 20664170, 'autre_refus': 20664171, 'Teint_Dans_La_Masse': 20664172, 'plastique': 20664173, 'Carton_gris': 20664174, 'environnement': 20664175, 'kraft': 20664176, 'metal': 20664177, 'flou': 20664178, 'mal_croppe': 20664179}]} args : 20664164 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': 20664168, 'cartonnette': 20664169, 'papier': 20664170, 'autre_refus': 20664171, 'Teint_Dans_La_Masse': 20664172, 'plastique': 20664173, 'Carton_gris': 20664174, 'environnement': 20664175, 'kraft': 20664176, 'metal': 20664177, 'flou': 20664178, 'mal_croppe': 20664179},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20664164) 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([20664164]) 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.2744576930999756 time spend to save output : 5.125999450683594e-05 total time spend for step 3 : 0.2745089530944824 step4:send_mail_cod Wed Feb 19 06:46:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ('0.03713373889182811',), 1338480853: ('0.03713373889182811',), 1338480852: ('0.03713373889182811',), 1338480850: ('0.03713373889182811',), 1338480849: ('0.03713373889182811',), 1338480848: ('0.03713373889182811',), 1338480847: ('0.03713373889182811',)} input_args_next_step : {1338480884: ()} output_args : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ('0.03713373889182811',), 1338480853: ('0.03713373889182811',), 1338480852: ('0.03713373889182811',), 1338480850: ('0.03713373889182811',), 1338480849: ('0.03713373889182811',), 1338480848: ('0.03713373889182811',), 1338480847: ('0.03713373889182811',)} args : 1338480884 depend.output_id : 0 input_args_next_step : {1338480884: ('0.03713373889182811',), 1338480883: ()} output_args : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ('0.03713373889182811',), 1338480853: ('0.03713373889182811',), 1338480852: ('0.03713373889182811',), 1338480850: ('0.03713373889182811',), 1338480849: ('0.03713373889182811',), 1338480848: ('0.03713373889182811',), 1338480847: ('0.03713373889182811',)} args : 1338480883 depend.output_id : 0 input_args_next_step : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ()} output_args : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ('0.03713373889182811',), 1338480853: ('0.03713373889182811',), 1338480852: ('0.03713373889182811',), 1338480850: ('0.03713373889182811',), 1338480849: ('0.03713373889182811',), 1338480848: ('0.03713373889182811',), 1338480847: ('0.03713373889182811',)} args : 1338480882 depend.output_id : 0 input_args_next_step : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ()} output_args : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ('0.03713373889182811',), 1338480853: ('0.03713373889182811',), 1338480852: ('0.03713373889182811',), 1338480850: ('0.03713373889182811',), 1338480849: ('0.03713373889182811',), 1338480848: ('0.03713373889182811',), 1338480847: ('0.03713373889182811',)} args : 1338480880 depend.output_id : 0 input_args_next_step : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ('0.03713373889182811',), 1338480853: ()} output_args : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ('0.03713373889182811',), 1338480853: ('0.03713373889182811',), 1338480852: ('0.03713373889182811',), 1338480850: ('0.03713373889182811',), 1338480849: ('0.03713373889182811',), 1338480848: ('0.03713373889182811',), 1338480847: ('0.03713373889182811',)} args : 1338480853 depend.output_id : 0 input_args_next_step : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ('0.03713373889182811',), 1338480853: ('0.03713373889182811',), 1338480852: ()} output_args : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ('0.03713373889182811',), 1338480853: ('0.03713373889182811',), 1338480852: ('0.03713373889182811',), 1338480850: ('0.03713373889182811',), 1338480849: ('0.03713373889182811',), 1338480848: ('0.03713373889182811',), 1338480847: ('0.03713373889182811',)} args : 1338480852 depend.output_id : 0 input_args_next_step : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ('0.03713373889182811',), 1338480853: ('0.03713373889182811',), 1338480852: ('0.03713373889182811',), 1338480850: ()} output_args : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ('0.03713373889182811',), 1338480853: ('0.03713373889182811',), 1338480852: ('0.03713373889182811',), 1338480850: ('0.03713373889182811',), 1338480849: ('0.03713373889182811',), 1338480848: ('0.03713373889182811',), 1338480847: ('0.03713373889182811',)} args : 1338480850 depend.output_id : 0 input_args_next_step : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ('0.03713373889182811',), 1338480853: ('0.03713373889182811',), 1338480852: ('0.03713373889182811',), 1338480850: ('0.03713373889182811',), 1338480849: ()} output_args : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ('0.03713373889182811',), 1338480853: ('0.03713373889182811',), 1338480852: ('0.03713373889182811',), 1338480850: ('0.03713373889182811',), 1338480849: ('0.03713373889182811',), 1338480848: ('0.03713373889182811',), 1338480847: ('0.03713373889182811',)} args : 1338480849 depend.output_id : 0 input_args_next_step : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ('0.03713373889182811',), 1338480853: ('0.03713373889182811',), 1338480852: ('0.03713373889182811',), 1338480850: ('0.03713373889182811',), 1338480849: ('0.03713373889182811',), 1338480848: ()} output_args : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ('0.03713373889182811',), 1338480853: ('0.03713373889182811',), 1338480852: ('0.03713373889182811',), 1338480850: ('0.03713373889182811',), 1338480849: ('0.03713373889182811',), 1338480848: ('0.03713373889182811',), 1338480847: ('0.03713373889182811',)} args : 1338480848 depend.output_id : 0 input_args_next_step : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ('0.03713373889182811',), 1338480853: ('0.03713373889182811',), 1338480852: ('0.03713373889182811',), 1338480850: ('0.03713373889182811',), 1338480849: ('0.03713373889182811',), 1338480848: ('0.03713373889182811',), 1338480847: ()} output_args : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ('0.03713373889182811',), 1338480853: ('0.03713373889182811',), 1338480852: ('0.03713373889182811',), 1338480850: ('0.03713373889182811',), 1338480849: ('0.03713373889182811',), 1338480848: ('0.03713373889182811',), 1338480847: ('0.03713373889182811',)} args : 1338480847 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 : {20664164: [{'Carton_brun': 20664168, 'cartonnette': 20664169, 'papier': 20664170, 'autre_refus': 20664171, 'Teint_Dans_La_Masse': 20664172, 'plastique': 20664173, 'Carton_gris': 20664174, 'environnement': 20664175, 'kraft': 20664176, 'metal': 20664177, 'flou': 20664178, 'mal_croppe': 20664179}]} input_args_next_step : {1338480884: ('0.03713373889182811',), 1338480883: ('0.03713373889182811',), 1338480882: ('0.03713373889182811',), 1338480880: ('0.03713373889182811',), 1338480853: ('0.03713373889182811',), 1338480852: ('0.03713373889182811',), 1338480850: ('0.03713373889182811',), 1338480849: ('0.03713373889182811',), 1338480848: ('0.03713373889182811',), 1338480847: ('0.03713373889182811',), 20664164: ()} output_args : {20664164: [{'Carton_brun': 20664168, 'cartonnette': 20664169, 'papier': 20664170, 'autre_refus': 20664171, 'Teint_Dans_La_Masse': 20664172, 'plastique': 20664173, 'Carton_gris': 20664174, 'environnement': 20664175, 'kraft': 20664176, 'metal': 20664177, 'flou': 20664178, 'mal_croppe': 20664179}]} args : 20664164 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.03713373889182811',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20664164) 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 (1338480884,1338480883,1338480882,1338480880,1338480853,1338480852,1338480850,1338480849,1338480848,1338480847) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338480847 begin to download photo : 1338480850 begin to download photo : 1338480880 begin to download photo : 1338480884 download finish for photo 1338480850 begin to download photo : 1338480852 download finish for photo 1338480847 begin to download photo : 1338480848 download finish for photo 1338480880 begin to download photo : 1338480882 download finish for photo 1338480884 download finish for photo 1338480882 begin to download photo : 1338480883 download finish for photo 1338480852 begin to download photo : 1338480853 download finish for photo 1338480848 begin to download photo : 1338480849 download finish for photo 1338480853 download finish for photo 1338480883 download finish for photo 1338480849 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 : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P20664164_19-02-2025_06_46_59.pdf 20664169 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=20664169 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338480225: '1739943430_998921_1338479568_6b02bc3626682dbce004bfdff157c7d2_rle_crop_3679842826_0.png', 1338480460: '1739943553_1000413_1338479764_3e8784693dc8f06a5c244e5429d37f47_rle_crop_3679843486_0.png', 1338480496: '1739943662_1001585_1338480439_f0cd9a2d0478e57caa8bfe15cb02d7ea_rle_crop_3679845568_0.png', 1338480511: '1739943671_1001733_1338480417_dfaafaa9ba8cb4516f8d8878bf547270_rle_crop_3679845634_0.png', 1338480868: '1739943830_1003579_1338480471_da9d85e4cb59a273d5d221afc94c9a73_rle_crop_3679846128_0.png', 1338480869: '1739943830_1003579_1338480468_11b060f8817f75ee9b441ac07e0fdac8_rle_crop_3679846203_0.png', 1338480870: '1739943830_1003579_1338480468_11b060f8817f75ee9b441ac07e0fdac8_rle_crop_3679846197_0.png', 1338480871: '1739943830_1003579_1338480467_98c67665319e50d649065e6df0ad287c_rle_crop_3679846217_0.png', 1338480905: '1739943912_1004663_1338480827_f016884aa26da55c82d4808e6050c5c3_rle_crop_3679850103_0.png', 1338480906: '1739943912_1004663_1338480827_f016884aa26da55c82d4808e6050c5c3_rle_crop_3679850101_0.png', 1338480908: '1739943912_1004663_1338480825_2ede703ef27ef67173fb42854f0ede42_rle_crop_3679850125_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/56a6d775a7e63cb1bb7a24b2cc6a9c42_9186654.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/194fd428de2052f35a16ffb808ddd236_88953470.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/df823a7d3a40df320b83b48e47b4cdea_62519735.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/44302bb3f1b5c6c2b61c0eb94422a7ad_45111428.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/09d6515016e998fb2da00616578d4833_28762226.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/9bf21e0952ba549f08bfb83971c5c670_72200668.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/d33f1b9377f81d8e8dfca0fecfd0e7ca_51146596.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/3136975cef2153564db0fc59f5db0e11_34023095.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/c26a221a8311342b22dff615870b4a38_9370209.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/543f842dd72ab6dbfd026a105474d130_6908421.png change filename to text .imagette206641691739944019/ imagette206641691739944019/1739943912_1004663_1338480825_2ede703ef27ef67173fb42854f0ede42_rle_crop_3679850125_0.png.png imagette206641691739944019/1739943430_998921_1338479568_6b02bc3626682dbce004bfdff157c7d2_rle_crop_3679842826_0.png.png imagette206641691739944019/1739943671_1001733_1338480417_dfaafaa9ba8cb4516f8d8878bf547270_rle_crop_3679845634_0.png.png imagette206641691739944019/1739943830_1003579_1338480471_da9d85e4cb59a273d5d221afc94c9a73_rle_crop_3679846128_0.png.png imagette206641691739944019/1739943912_1004663_1338480827_f016884aa26da55c82d4808e6050c5c3_rle_crop_3679850103_0.png.png imagette206641691739944019/1739943912_1004663_1338480827_f016884aa26da55c82d4808e6050c5c3_rle_crop_3679850101_0.png.png imagette206641691739944019/1739943830_1003579_1338480468_11b060f8817f75ee9b441ac07e0fdac8_rle_crop_3679846197_0.png.png imagette206641691739944019/1739943830_1003579_1338480468_11b060f8817f75ee9b441ac07e0fdac8_rle_crop_3679846203_0.png.png imagette206641691739944019/1739943830_1003579_1338480467_98c67665319e50d649065e6df0ad287c_rle_crop_3679846217_0.png.png imagette206641691739944019/1739943662_1001585_1338480439_f0cd9a2d0478e57caa8bfe15cb02d7ea_rle_crop_3679845568_0.png.png imagette206641691739944019/1739943553_1000413_1338479764_3e8784693dc8f06a5c244e5429d37f47_rle_crop_3679843486_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/d687771d5796e37b8e89dd0eebd0cd7e_52194752.png imagette206641691739944019 20664171 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=20664171 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338480429: '1739943471_999397_1338479082_802a9adce3dc647edd130b68ddce44a0_rle_crop_3679843221_0.png', 1338480430: '1739943471_999397_1338479080_84fbb80f80045ca01aec93c1ef352976_rle_crop_3679843234_0.png', 1338480431: '1739943471_999397_1338479077_86faa0bcf5676463f6594d122da3dc6a_rle_crop_3679843284_0.png', 1338480495: '1739943662_1001585_1338480440_522f73174b064c31f69955c1eec4f200_rle_crop_3679845539_0.png', 1338480865: '1739943830_1003579_1338480471_da9d85e4cb59a273d5d221afc94c9a73_rle_crop_3679846132_0.png', 1338480902: '1739943912_1004663_1338480829_88d5eca72a017493b7b5dd697b860a74_rle_crop_3679848221_0.png', 1338480903: '1739943912_1004663_1338480823_06aa0bbb3a1eca3d933dbc6b546121cc_rle_crop_3679850141_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/02a08700b79e803e3fc86985b63a6d33_22805608.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/b3f6278209ca62c47e646f253ab78839_13383148.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/b7ad0cea93eb2a3d668c1f62d844bcb7_33618971.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/92e4b6876c710c0de5f9884afc88d1d6_63526022.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/67b2c90b5b3a8e1c4b257764c7e91a2c_45468340.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/30414cf182dcbd7f84f3ede0b28021c3_86026323.png change filename to text .imagette206641711739944020/ imagette206641711739944020/1739943471_999397_1338479077_86faa0bcf5676463f6594d122da3dc6a_rle_crop_3679843284_0.png.png imagette206641711739944020/1739943912_1004663_1338480829_88d5eca72a017493b7b5dd697b860a74_rle_crop_3679848221_0.png.png imagette206641711739944020/1739943830_1003579_1338480471_da9d85e4cb59a273d5d221afc94c9a73_rle_crop_3679846132_0.png.png imagette206641711739944020/1739943912_1004663_1338480823_06aa0bbb3a1eca3d933dbc6b546121cc_rle_crop_3679850141_0.png.png imagette206641711739944020/1739943471_999397_1338479080_84fbb80f80045ca01aec93c1ef352976_rle_crop_3679843234_0.png.png imagette206641711739944020/1739943662_1001585_1338480440_522f73174b064c31f69955c1eec4f200_rle_crop_3679845539_0.png.png imagette206641711739944020/1739943471_999397_1338479082_802a9adce3dc647edd130b68ddce44a0_rle_crop_3679843221_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/9fff1030a6a1fb0296f83d97d5db9cf7_33569169.png imagette206641711739944020 20664173 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=20664173 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338480434: '1739943471_999397_1338479104_30177d4dcb3186672f6acdd9252444bf_rle_crop_3679843206_0.png', 1338480463: '1739943553_1000413_1338479808_861706a403e9263eed064aff1a4b5261_rle_crop_3679843446_0.png', 1338480464: '1739943553_1000413_1338479808_861706a403e9263eed064aff1a4b5261_rle_crop_3679843451_0.png', 1338480465: '1739943553_1000413_1338479768_78f0e1d228aea2c45685034e7b257372_rle_crop_3679843465_0.png', 1338480498: '1739943662_1001585_1338480441_13aba6038b8798ff1d6273ba26a6e856_rle_crop_3679845530_0.png', 1338480911: '1739943912_1004663_1338480827_f016884aa26da55c82d4808e6050c5c3_rle_crop_3679850105_0.png', 1338480912: '1739943912_1004663_1338480823_06aa0bbb3a1eca3d933dbc6b546121cc_rle_crop_3679850149_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/3bc05818e922a0b80274face178a03ea_21728008.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/279de9f36ec9fa23ec5cbf3ab9619fb8_43027078.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/9841887489233e86efafd27f6be1a4ca_7828056.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/1bcf706a52272eae904b2d7183e61249_67033970.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/29511c39182cc4338c96689c78e93a48_88110379.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/4da25431effcb80f7f7457fc7561ee1b_2768832.png change filename to text .imagette206641731739944020/ imagette206641731739944020/1739943553_1000413_1338479768_78f0e1d228aea2c45685034e7b257372_rle_crop_3679843465_0.png.png imagette206641731739944020/1739943471_999397_1338479104_30177d4dcb3186672f6acdd9252444bf_rle_crop_3679843206_0.png.png imagette206641731739944020/1739943553_1000413_1338479808_861706a403e9263eed064aff1a4b5261_rle_crop_3679843446_0.png.png imagette206641731739944020/1739943912_1004663_1338480823_06aa0bbb3a1eca3d933dbc6b546121cc_rle_crop_3679850149_0.png.png imagette206641731739944020/1739943662_1001585_1338480441_13aba6038b8798ff1d6273ba26a6e856_rle_crop_3679845530_0.png.png imagette206641731739944020/1739943912_1004663_1338480827_f016884aa26da55c82d4808e6050c5c3_rle_crop_3679850105_0.png.png imagette206641731739944020/1739943553_1000413_1338479808_861706a403e9263eed064aff1a4b5261_rle_crop_3679843451_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/02bcec196afe71c1c0be04ae6766e861_29633456.png imagette206641731739944020 20664176 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=20664176 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338480515: '1739943691_1002012_1338480419_fa1b4f88e6ee04487a29a378a32df179_rle_crop_3679845686_0.png', 1338480878: '1739943830_1003579_1338480470_d9c81cc494c13ce62b4eaacb97b5f2f5_rle_crop_3679846158_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/e1a1509ffb4cf5d99739df57e50f8d6d_75269720.png change filename to text .imagette206641761739944021/ imagette206641761739944021/1739943830_1003579_1338480470_d9c81cc494c13ce62b4eaacb97b5f2f5_rle_crop_3679846158_0.png.png imagette206641761739944021/1739943691_1002012_1338480419_fa1b4f88e6ee04487a29a378a32df179_rle_crop_3679845686_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/eaa7dfb773a602bd62a29a1006fdafc0_63340961.png imagette206641761739944021 20664177 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=20664177 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338480516: '1739943691_1002012_1338480419_fa1b4f88e6ee04487a29a378a32df179_rle_crop_3679845692_0.png'} change filename to text .imagette206641771739944021/ imagette206641771739944021/1739943691_1002012_1338480419_fa1b4f88e6ee04487a29a378a32df179_rle_crop_3679845692_0.png.png imagette206641781739944021/ imagette206641791739944021/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/a4a1fcef2961f8cf822f3141a487d171_35293046.png imagette206641771739944021 20664178 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=20664178 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206641781739944021 20664179 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=20664179 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206641791739944021 20664168 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=20664168 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338480873: '1739943830_1003579_1338480487_4daf0c4c4a750496990b4bff31d2b497_rle_crop_3679846124_0.png', 1338480910: '1739943912_1004663_1338480827_f016884aa26da55c82d4808e6050c5c3_rle_crop_3679850104_0.png', 1338480909: '1739943912_1004663_1338480829_88d5eca72a017493b7b5dd697b860a74_rle_crop_3679848224_0.png', 1338480900: '1739943931_1004979_1338480834_b6aac9d9f046b7e6df1bf0e81df7fba1_rle_crop_3679848754_0.png', 1338480899: '1739943931_1004979_1338480834_b6aac9d9f046b7e6df1bf0e81df7fba1_rle_crop_3679848758_0.png', 1338480877: '1739943830_1003579_1338480468_11b060f8817f75ee9b441ac07e0fdac8_rle_crop_3679846195_0.png', 1338480876: '1739943830_1003579_1338480469_5dd90789736ed9a26886e884e85c01ca_rle_crop_3679846179_0.png', 1338480875: '1739943830_1003579_1338480469_5dd90789736ed9a26886e884e85c01ca_rle_crop_3679846186_0.png', 1338480874: '1739943830_1003579_1338480470_d9c81cc494c13ce62b4eaacb97b5f2f5_rle_crop_3679846160_0.png', 1338480461: '1739943553_1000413_1338479930_05fd2cb117ea671653d39cb74885606c_rle_crop_3679843425_0.png', 1338480846: '1739943811_1003344_1338480713_eee6781a7e90fa94adcb67ff3f638658_rle_crop_3679845850_0.png', 1338480840: '1739943792_1003140_1338480712_2436ff88408aaf73a9c97ab1a09f7ecf_rle_crop_3679845765_0.png', 1338480514: '1739943671_1001733_1338480417_dfaafaa9ba8cb4516f8d8878bf547270_rle_crop_3679845635_0.png', 1338480513: '1739943691_1002012_1338480419_fa1b4f88e6ee04487a29a378a32df179_rle_crop_3679845691_0.png', 1338480512: '1739943671_1001733_1338480417_dfaafaa9ba8cb4516f8d8878bf547270_rle_crop_3679845633_0.png', 1338480497: '1739943662_1001585_1338480439_f0cd9a2d0478e57caa8bfe15cb02d7ea_rle_crop_3679845561_0.png', 1338480462: '1739943553_1000413_1338479764_3e8784693dc8f06a5c244e5429d37f47_rle_crop_3679843485_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/c8bb611ed6a383a61074274304043773_28088482.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/c0d5d9d8fff9d731c2ff63816527ee3b_28848525.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/19975b9cd119aee48f9273f89f8d07e7_72179208.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/39bda0d61e63406a47b510b00d738fef_13402494.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/599579a528e3057ae0826922b9935f01_31260612.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/8a58ea31111291e7aec2cc266f0d5354_21089245.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/8a8cf941b206e0027a2fb2e29d2ac41d_24035338.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/a63960cc1b2737de66e7eb5e82bd0960_89522424.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/98c06d75a23579c44e79c6135739b17f_94305212.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/aaa53cdb37572f6cebe4f19391da9659_1979960.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/5bcb3a91c441a78f693e36d4e2a97b11_17464934.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/efc54864f387eae405cbfcc1f2526b93_82530009.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/d0525bf65b86579f4a4d47f159683b0a_13002575.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/e8e636ba8da9393cb841ed1cdacd57a3_27816098.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/87cd68af83c63b233a3be22170eff213_65136395.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/e4b452e5952ccf0ac8d43985bb848115_11406345.png change filename to text .imagette206641681739944021/ imagette206641681739944021/1739943691_1002012_1338480419_fa1b4f88e6ee04487a29a378a32df179_rle_crop_3679845691_0.png.png imagette206641681739944021/1739943671_1001733_1338480417_dfaafaa9ba8cb4516f8d8878bf547270_rle_crop_3679845633_0.png.png imagette206641681739944021/1739943830_1003579_1338480470_d9c81cc494c13ce62b4eaacb97b5f2f5_rle_crop_3679846160_0.png.png imagette206641681739944021/1739943830_1003579_1338480468_11b060f8817f75ee9b441ac07e0fdac8_rle_crop_3679846195_0.png.png imagette206641681739944021/1739943811_1003344_1338480713_eee6781a7e90fa94adcb67ff3f638658_rle_crop_3679845850_0.png.png imagette206641681739944021/1739943931_1004979_1338480834_b6aac9d9f046b7e6df1bf0e81df7fba1_rle_crop_3679848754_0.png.png imagette206641681739944021/1739943912_1004663_1338480829_88d5eca72a017493b7b5dd697b860a74_rle_crop_3679848224_0.png.png imagette206641681739944021/1739943671_1001733_1338480417_dfaafaa9ba8cb4516f8d8878bf547270_rle_crop_3679845635_0.png.png imagette206641681739944021/1739943830_1003579_1338480469_5dd90789736ed9a26886e884e85c01ca_rle_crop_3679846186_0.png.png imagette206641681739944021/1739943553_1000413_1338479764_3e8784693dc8f06a5c244e5429d37f47_rle_crop_3679843485_0.png.png imagette206641681739944021/1739943830_1003579_1338480487_4daf0c4c4a750496990b4bff31d2b497_rle_crop_3679846124_0.png.png imagette206641681739944021/1739943553_1000413_1338479930_05fd2cb117ea671653d39cb74885606c_rle_crop_3679843425_0.png.png imagette206641681739944021/1739943912_1004663_1338480827_f016884aa26da55c82d4808e6050c5c3_rle_crop_3679850104_0.png.png imagette206641681739944021/1739943830_1003579_1338480469_5dd90789736ed9a26886e884e85c01ca_rle_crop_3679846179_0.png.png imagette206641681739944021/1739943931_1004979_1338480834_b6aac9d9f046b7e6df1bf0e81df7fba1_rle_crop_3679848758_0.png.png imagette206641681739944021/1739943792_1003140_1338480712_2436ff88408aaf73a9c97ab1a09f7ecf_rle_crop_3679845765_0.png.png imagette206641681739944021/1739943662_1001585_1338480439_f0cd9a2d0478e57caa8bfe15cb02d7ea_rle_crop_3679845561_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/db09caad97f3cdb2b0815261ef9477b8_56215141.png imagette206641681739944021 20664172 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=20664172 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338480412: '1739943452_999141_1338479098_b0bf79be3812b729b0eb6fea6690d85b_rle_crop_3679843011_0.png', 1338480424: '1739943471_999397_1338479080_84fbb80f80045ca01aec93c1ef352976_rle_crop_3679843236_0.png', 1338480425: '1739943471_999397_1338479079_17b9f16591f7916a7b982db2893a8f8d_rle_crop_3679843263_0.png', 1338480427: '1739943471_999397_1338479078_cfa6e0dc8e981380ef301f9fb1bc3dd3_rle_crop_3679843279_0.png', 1338480428: '1739943471_999397_1338479077_86faa0bcf5676463f6594d122da3dc6a_rle_crop_3679843288_0.png', 1338480455: '1739943553_1000413_1338479808_861706a403e9263eed064aff1a4b5261_rle_crop_3679843444_0.png', 1338480494: '1739943662_1001585_1338480440_522f73174b064c31f69955c1eec4f200_rle_crop_3679845546_0.png', 1338480504: '1739943671_1001733_1338480410_b1728762908fe32b46e45b7094cbc1bf_rle_crop_3679845679_0.png', 1338480505: '1739943671_1001733_1338480410_b1728762908fe32b46e45b7094cbc1bf_rle_crop_3679845682_0.png', 1338480506: '1739943671_1001733_1338480410_b1728762908fe32b46e45b7094cbc1bf_rle_crop_3679845677_0.png', 1338480858: '1739943852_1003876_1338480473_e2889676c27edb8e648b3dd83c53aef6_rle_crop_3679846146_0.png', 1338480864: '1739943830_1003579_1338480468_11b060f8817f75ee9b441ac07e0fdac8_rle_crop_3679846200_0.png', 1338480901: '1739943912_1004663_1338480825_2ede703ef27ef67173fb42854f0ede42_rle_crop_3679850132_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/f980d12681a54ad83c5094be289fdfd5_6364710.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/35a4ac363a4f74d25fa893c33514568c_54626138.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/85780f475cb1042265722ecebbe49f0b_82924287.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/31c16dee67c285d599cbb505af815ef2_85124485.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/0148cb54725d060eb6faff418dda2af8_45630702.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/eff2aff80627ffa72fa4eec831a0bfef_19210454.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/9322603c76195d03282647e5eae2bcf2_78952902.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/142a5bd1ddb14ccfd5f1f4234684968a_32561509.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/35ca2439e4f1f9e121e65629a44d0075_11836771.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/2b37cc2126c48f7ce34e3a95979f0924_23871959.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/4e92ae60d725e2f9660bf50e36e3f216_78636999.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/d780b94e3e7c8cec9487cb450870d6f6_76906600.png change filename to text .imagette206641721739944022/ imagette206641721739944022/1739943912_1004663_1338480825_2ede703ef27ef67173fb42854f0ede42_rle_crop_3679850132_0.png.png imagette206641721739944022/1739943471_999397_1338479080_84fbb80f80045ca01aec93c1ef352976_rle_crop_3679843236_0.png.png imagette206641721739944022/1739943471_999397_1338479077_86faa0bcf5676463f6594d122da3dc6a_rle_crop_3679843288_0.png.png imagette206641721739944022/1739943671_1001733_1338480410_b1728762908fe32b46e45b7094cbc1bf_rle_crop_3679845677_0.png.png imagette206641721739944022/1739943553_1000413_1338479808_861706a403e9263eed064aff1a4b5261_rle_crop_3679843444_0.png.png imagette206641721739944022/1739943671_1001733_1338480410_b1728762908fe32b46e45b7094cbc1bf_rle_crop_3679845679_0.png.png imagette206641721739944022/1739943662_1001585_1338480440_522f73174b064c31f69955c1eec4f200_rle_crop_3679845546_0.png.png imagette206641721739944022/1739943471_999397_1338479078_cfa6e0dc8e981380ef301f9fb1bc3dd3_rle_crop_3679843279_0.png.png imagette206641721739944022/1739943452_999141_1338479098_b0bf79be3812b729b0eb6fea6690d85b_rle_crop_3679843011_0.png.png imagette206641721739944022/1739943471_999397_1338479079_17b9f16591f7916a7b982db2893a8f8d_rle_crop_3679843263_0.png.png imagette206641721739944022/1739943852_1003876_1338480473_e2889676c27edb8e648b3dd83c53aef6_rle_crop_3679846146_0.png.png imagette206641721739944022/1739943671_1001733_1338480410_b1728762908fe32b46e45b7094cbc1bf_rle_crop_3679845682_0.png.png imagette206641721739944022/1739943830_1003579_1338480468_11b060f8817f75ee9b441ac07e0fdac8_rle_crop_3679846200_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/dff2070f237231de281ff5f8e8a7f2e9_41620965.png imagette206641721739944022 20664174 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=20664174 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338480213: '1739943430_998921_1338479568_6b02bc3626682dbce004bfdff157c7d2_rle_crop_3679842824_0.png', 1338480414: '1739943452_999141_1338479103_7dc451d2b878278f9aed59bb69e2d95c_rle_crop_3679842983_0.png', 1338480415: '1739943452_999141_1338479100_dd5dd3392061f5860b8208626009b3e7_rle_crop_3679842997_0.png', 1338480432: '1739943471_999397_1338479077_86faa0bcf5676463f6594d122da3dc6a_rle_crop_3679843281_0.png', 1338480456: '1739943553_1000413_1338479808_861706a403e9263eed064aff1a4b5261_rle_crop_3679843442_0.png', 1338480457: '1739943553_1000413_1338479768_78f0e1d228aea2c45685034e7b257372_rle_crop_3679843456_0.png', 1338480458: '1739943553_1000413_1338479766_91fe172d50fae51ee53a1529802a6466_rle_crop_3679843471_0.png', 1338480508: '1739943671_1001733_1338480445_da6aed742d0ab6c74a2f41d55f2f6ad0_rle_crop_3679845574_0.png', 1338480509: '1739943671_1001733_1338480417_dfaafaa9ba8cb4516f8d8878bf547270_rle_crop_3679845636_0.png', 1338480510: '1739943671_1001733_1338480413_9b34b483fad66f47b8a18c4543a05e4d_rle_crop_3679845663_0.png', 1338480859: '1739943852_1003876_1338480473_e2889676c27edb8e648b3dd83c53aef6_rle_crop_3679846145_0.png', 1338480866: '1739943830_1003579_1338480471_da9d85e4cb59a273d5d221afc94c9a73_rle_crop_3679846130_0.png', 1338480904: '1739943912_1004663_1338480829_88d5eca72a017493b7b5dd697b860a74_rle_crop_3679848218_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/7552e8ce7536ff698d80e3b4f858f61f_26304443.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/01d073a9744438f6db4753b7458bcee6_14054071.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/137e8159e76df6b80a8e6abb2e5997e2_2033693.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/8e960d68c2904ccb518efd09c9eee903_24723265.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/11519524d5854b5472342b726ce77c46_87173032.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/223762a96393e9f819c87d8c4fbf9515_96845141.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/d17b0ca017669d52c8cf77e5ae11a15c_17948139.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/f638a85408cd75c0be23d2badea039c4_3862455.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/10c73ad1069a525263cc55b3c11a4603_22123743.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/ef76eee8fe6b597c3326303542296eac_77404356.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/bb9cefe57529381b30aafec03cbd412b_22516939.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/5064c61b19faa83d25dd02527934e54f_37390840.png change filename to text .imagette206641741739944022/ imagette206641741739944022/1739943471_999397_1338479077_86faa0bcf5676463f6594d122da3dc6a_rle_crop_3679843281_0.png.png imagette206641741739944022/1739943553_1000413_1338479808_861706a403e9263eed064aff1a4b5261_rle_crop_3679843442_0.png.png imagette206641741739944022/1739943452_999141_1338479100_dd5dd3392061f5860b8208626009b3e7_rle_crop_3679842997_0.png.png imagette206641741739944022/1739943430_998921_1338479568_6b02bc3626682dbce004bfdff157c7d2_rle_crop_3679842824_0.png.png imagette206641741739944022/1739943671_1001733_1338480413_9b34b483fad66f47b8a18c4543a05e4d_rle_crop_3679845663_0.png.png imagette206641741739944022/1739943852_1003876_1338480473_e2889676c27edb8e648b3dd83c53aef6_rle_crop_3679846145_0.png.png imagette206641741739944022/1739943553_1000413_1338479766_91fe172d50fae51ee53a1529802a6466_rle_crop_3679843471_0.png.png imagette206641741739944022/1739943912_1004663_1338480829_88d5eca72a017493b7b5dd697b860a74_rle_crop_3679848218_0.png.png imagette206641741739944022/1739943671_1001733_1338480445_da6aed742d0ab6c74a2f41d55f2f6ad0_rle_crop_3679845574_0.png.png imagette206641741739944022/1739943452_999141_1338479103_7dc451d2b878278f9aed59bb69e2d95c_rle_crop_3679842983_0.png.png imagette206641741739944022/1739943830_1003579_1338480471_da9d85e4cb59a273d5d221afc94c9a73_rle_crop_3679846130_0.png.png imagette206641741739944022/1739943553_1000413_1338479768_78f0e1d228aea2c45685034e7b257372_rle_crop_3679843456_0.png.png imagette206641741739944022/1739943671_1001733_1338480417_dfaafaa9ba8cb4516f8d8878bf547270_rle_crop_3679845636_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/327d56a6e3346279c45b1aa676d51750_47396449.png imagette206641741739944022 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20664164 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20664180,20664181,20664182,20664183,20664184,20664185,20664186,20664187,20664188,20664189,20664190,20664191?tags=Carton_brun,cartonnette,papier,autre_refus,Teint_Dans_La_Masse,plastique,Carton_gris,environnement,kraft,metal,flou,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1338480884] : ('0.03713373889182811',) no score found for photo 1338480884 We are sending mail with results at report@fotonower.com args[1338480883] : ('0.03713373889182811',) no score found for photo 1338480883 We are sending mail with results at report@fotonower.com args[1338480882] : ('0.03713373889182811',) no score found for photo 1338480882 We are sending mail with results at report@fotonower.com args[1338480880] : ('0.03713373889182811',) no score found for photo 1338480880 We are sending mail with results at report@fotonower.com args[1338480853] : ('0.03713373889182811',) no score found for photo 1338480853 We are sending mail with results at report@fotonower.com args[1338480852] : ('0.03713373889182811',) no score found for photo 1338480852 We are sending mail with results at report@fotonower.com args[1338480850] : ('0.03713373889182811',) no score found for photo 1338480850 We are sending mail with results at report@fotonower.com args[1338480849] : ('0.03713373889182811',) no score found for photo 1338480849 We are sending mail with results at report@fotonower.com args[1338480848] : ('0.03713373889182811',) no score found for photo 1338480848 We are sending mail with results at report@fotonower.com args[1338480847] : ('0.03713373889182811',) no score found for photo 1338480847 We are sending mail with results at report@fotonower.com refus_total : 0.03713373889182811 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=20664164 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 error for generate pdf : 'flou' After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20664164]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338480884, 1338480883, 1338480882, 1338480880, 1338480853, 1338480852, 1338480850, 1338480849, 1338480848, 1338480847] map_info['map_portfolio_photo'] : {20664164: [1338480884, 1338480883, 1338480882, 1338480880, 1338480853, 1338480852, 1338480850, 1338480849, 1338480848, 1338480847, 1338480834, 1338480832, 1338480829, 1338480827, 1338480825, 1338480823, 1338480713, 1338480712, 1338480711, 1338480660, 1338480487, 1338480486, 1338480485, 1338480473, 1338480471, 1338480470, 1338480469, 1338480468, 1338480467, 1338480445, 1338480443, 1338480442, 1338480441, 1338480440, 1338480439, 1338480419, 1338480417, 1338480416, 1338480413, 1338480410, 1338480088, 1338479930, 1338479808, 1338479768, 1338479766, 1338479764, 1338479701, 1338479638, 1338479568, 1338479104, 1338479103, 1338479100, 1338479098, 1338479096, 1338479084, 1338479082, 1338479080, 1338479079, 1338479078, 1338479077, 1338478871, 1338478870, 1338478869]} final : False mtd_id 4302 list_pids : [1338480884, 1338480883, 1338480882, 1338480880, 1338480853, 1338480852, 1338480850, 1338480849, 1338480848, 1338480847] 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, '2598582') ('4302', '20664164', '1338480884', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480883', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480882', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480880', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480853', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480852', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480850', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480849', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480848', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480847', None, None, None, None, None, '2598582') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20664164', '1338480884', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480883', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480882', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480880', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480853', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480852', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480850', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480849', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480848', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480847', None, None, None, None, None, '2598582')] time used for this insertion : 0.01338958740234375 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.1270201206207275 time spend to save output : 0.013588666915893555 total time spend for step 4 : 4.140608787536621 step5:split_time_score Wed Feb 19 06:47:03 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 : ['20664164'] 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 : [('20664164',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20664164) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338480884: {'path': 'temp/1739944019_2841924_1338480884_5da6f2c06561550187d30a1f25300e43.jpg', 'extension': 'jpg'}, 1338480850: {'path': 'temp/1739944019_2841924_1338480850_7210650fd79c35241b02b3402c925479.jpg', 'extension': 'jpg'}, 1338480852: {'path': 'temp/1739944019_2841924_1338480852_20d2413121272d90f9ae5421aeabcd3d.jpg', 'extension': 'jpg'}, 1338480853: {'path': 'temp/1739944019_2841924_1338480853_473a0412b89249d70a3884850e8731ad.jpg', 'extension': 'jpg'}, 1338480880: {'path': 'temp/1739944019_2841924_1338480880_3f132b50a71d75ab01e180f7e4a2ab4a.jpg', 'extension': 'jpg'}, 1338480882: {'path': 'temp/1739944019_2841924_1338480882_a6fda1313cd0f6494276df757a70f4ab.jpg', 'extension': 'jpg'}, 1338480883: {'path': 'temp/1739944019_2841924_1338480883_5d1480e7b48c7ae31a42209a1ea15eea.jpg', 'extension': 'jpg'}, 1338480847: {'path': 'temp/1739944019_2841924_1338480847_ea4a92bf0ffb784159f5a9e464c5d1be.jpg', 'extension': 'jpg'}, 1338480848: {'path': 'temp/1739944019_2841924_1338480848_3ae11b051101742c62a29041fcfea95b.jpg', 'extension': 'jpg'}, 1338480849: {'path': 'temp/1739944019_2841924_1338480849_363b65268363ea087ef77d801d4c3eb7.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 = 20664164; (('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 = 20664164 group by h (('06', 63),) 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=20664164 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 (20664164) 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 (20664164) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 19022025 20664164 Nombre de photos uploadées : 63 / 23040 (0%) 19022025 20664164 Nombre de photos taguées (types de déchets): 0 / 63 (0%) 19022025 20664164 Nombre de photos taguées (volume) : 0 / 63 (0%) [{'photo_id': 1338478871, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/9b556241bf4d364fc514c5762a73c4fd.jpg', 'username': None, 'uploaded_at': 1739943186, 'text': 'image_19022025_06_31_44_10140.jpg'}, {'photo_id': 1338478870, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/29d93266ee36c4902c201c5c66f69270.jpg', 'username': None, 'uploaded_at': 1739943186, 'text': 'image_19022025_06_32_23_009124m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338478869, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/8ffd35e7a41f48b2c1426fc866b920a8.jpg', 'username': None, 'uploaded_at': 1739943186, 'text': 'image_19022025_06_32_43_010143m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338479084, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/19/8bbe69b48e051e386de7db8fcfe85987.jpg', 'username': None, 'uploaded_at': 1739943246, 'text': 'image_19022025_06_32_54_010140m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ??????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002100706100463867 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20664164, '2025-02-19' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1611966,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02384352684020996 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= 1611966 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1611966, 'dashboard_run_id': 1620131, 'mtr_portfolio_id': 20663118, 'dashboard_result_id': 8966657, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20663145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20663146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20663147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20663148, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20663149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20663150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20663151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20663152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20663153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20663154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20663155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20663156, 'pht': 3726}}"}, {'dashboat_entry_day': 1611966, 'dashboard_run_id': 1620131, 'mtr_portfolio_id': 20663722, 'dashboard_result_id': 8966658, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 20663724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20663725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20663726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20663727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20663728, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20663729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20663730, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20663731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20663732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20663733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20663734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20663735, 'pht': 3726}}"}, {'dashboat_entry_day': 1611966, 'dashboard_run_id': 1620131, 'mtr_portfolio_id': 20664164, 'dashboard_result_id': 8966659, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20664168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20664169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20664170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20664171, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20664172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20664173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20664174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20664175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20664176, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20664177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20664178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20664179, '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 = 20663118 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': 2598523, 'mtr_portfolio_id': 20663118, 'created_at': datetime.datetime(2025, 2, 19, 6, 14, 29), 'result': '0.0564841544903937', 'result_long': None, 'result_double': None}] Qualite : 0.0564841544903937 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20663118 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20663118%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20663118 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20663145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20663146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20663147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20663148, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20663149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20663150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20663151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20663152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20663153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20663154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20663155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20663156, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20663118 and dashboard_run_id = 1620131 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`=20663118 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8966657, 0.0564841544903937, "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20663145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20663146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20663147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20663148, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20663149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20663150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20663151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20663152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20663153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20663154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20663155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20663156, 'pht': 3726}, 'url_report': ''}") 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 = 20663722 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': 2598553, 'mtr_portfolio_id': 20663722, 'created_at': datetime.datetime(2025, 2, 19, 6, 34), 'result': '0.04600021152595615', 'result_long': None, 'result_double': None}] Qualite : 0.04600021152595615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20663722 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20663722%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20663722 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 20663724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20663725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20663726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20663727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20663728, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20663729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20663730, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20663731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20663732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20663733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20663734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20663735, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20663722 and dashboard_run_id = 1620131 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`=20663722 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8966658, 0.04600021152595615, "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 20663724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20663725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20663726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20663727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20663728, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20663729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20663730, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20663731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20663732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20663733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20663734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20663735, 'pht': 3726}, 'url_report': ''}") 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 = 20664164 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': 2598582, 'mtr_portfolio_id': 20664164, 'created_at': datetime.datetime(2025, 2, 19, 6, 46, 59), 'result': '0.03713373889182811', 'result_long': None, 'result_double': None}] Qualite : 0.03713373889182811 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20664164 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20664164%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20664164 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20664168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20664169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20664170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20664171, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20664172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20664173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20664174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20664175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20664176, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20664177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20664178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20664179, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20664164 and dashboard_run_id = 1620131 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`=20664164 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8966659, 0.03713373889182811, "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20664168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20664169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20664170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20664171, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20664172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20664173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20664174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20664175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20664176, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20664177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20664178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20664179, 'pht': 3726}, 'url_report': ''}") 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 (20663118,20663722,20664164) result : ((1338472557,), (1338472559,), (1338472560,), (1338472575,), (1338472576,), (1338472577,), (1338472578,), (1338472591,), (1338472592,), (1338472593,), (1338472594,), (1338472596,), (1338473041,), (1338473042,), (1338473043,), (1338473044,), (1338473990,), (1338473992,), (1338473993,), (1338473994,), (1338473995,), (1338474231,), (1338474232,), (1338474233,), (1338474254,), (1338474256,), (1338474276,), (1338474277,), (1338474278,), (1338474320,), (1338474625,), (1338474633,), (1338474637,), (1338474897,), (1338474898,), (1338474899,), (1338474900,), (1338474902,), (1338474904,), (1338474926,), (1338474927,), (1338474928,), (1338474929,), (1338474930,), (1338474960,), (1338474962,), (1338474966,), (1338474971,), (1338474973,), (1338474993,), (1338475005,), (1338475006,), (1338475007,), (1338475009,), (1338475021,), (1338475022,), (1338475023,), (1338475024,), (1338475026,), (1338475049,), (1338475051,), (1338475066,), (1338475068,), (1338475069,), (1338475070,), (1338475072,), (1338475437,), (1338475217,), (1338475292,), (1338475346,), (1338475387,), (1338475937,), (1338475938,), (1338475939,), (1338475940,), (1338475942,), (1338476251,), (1338476252,), (1338476253,), (1338476305,), (1338476320,), (1338476324,), (1338476351,), (1338476354,), (1338476356,), (1338477146,), (1338477148,), (1338477150,), (1338477152,), (1338477155,), (1338477158,), (1338477428,), (1338477444,), (1338477446,), (1338477481,), (1338477504,), (1338477506,), (1338477508,), (1338477511,), (1338477513,), (1338477533,), (1338477571,), (1338477639,), (1338477701,), (1338478089,), (1338478090,), (1338478172,), (1338478364,), (1338478365,), (1338478444,), (1338478869,), (1338478870,), (1338478871,), (1338479077,), (1338479078,), (1338479079,), (1338479080,), (1338479082,), (1338479084,), (1338479096,), (1338479098,), (1338479100,), (1338479103,), (1338479104,), (1338479568,), (1338479638,), (1338479701,), (1338479764,), (1338479766,), (1338479768,), (1338479808,), (1338479930,), (1338480088,), (1338480410,), (1338480413,), (1338480416,), (1338480417,), (1338480419,), (1338480439,), (1338480440,), (1338480441,), (1338480442,), (1338480443,), (1338480445,), (1338480467,), (1338480468,), (1338480469,), (1338480470,), (1338480471,), (1338480473,), (1338480485,), (1338480486,), (1338480487,), (1338480660,), (1338480711,), (1338480712,), (1338480713,), (1338480823,), (1338480825,), (1338480827,), (1338480829,), (1338480832,), (1338480834,), (1338480847,), (1338480848,), (1338480849,), (1338480850,), (1338480852,), (1338480853,), (1338480880,), (1338480882,), (1338480883,), (1338480884,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'19022025': {'nb_upload': 63, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20664164]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338480884, 1338480883, 1338480882, 1338480880, 1338480853, 1338480852, 1338480850, 1338480849, 1338480848, 1338480847] map_info['map_portfolio_photo'] : {20664164: [1338480884, 1338480883, 1338480882, 1338480880, 1338480853, 1338480852, 1338480850, 1338480849, 1338480848, 1338480847, 1338480834, 1338480832, 1338480829, 1338480827, 1338480825, 1338480823, 1338480713, 1338480712, 1338480711, 1338480660, 1338480487, 1338480486, 1338480485, 1338480473, 1338480471, 1338480470, 1338480469, 1338480468, 1338480467, 1338480445, 1338480443, 1338480442, 1338480441, 1338480440, 1338480439, 1338480419, 1338480417, 1338480416, 1338480413, 1338480410, 1338480088, 1338479930, 1338479808, 1338479768, 1338479766, 1338479764, 1338479701, 1338479638, 1338479568, 1338479104, 1338479103, 1338479100, 1338479098, 1338479096, 1338479084, 1338479082, 1338479080, 1338479079, 1338479078, 1338479077, 1338478871, 1338478870, 1338478869]} final : True mtd_id 4302 list_pids : [1338480884, 1338480883, 1338480882, 1338480880, 1338480853, 1338480852, 1338480850, 1338480849, 1338480848, 1338480847] Looping around the photos to save general results len do output : 1 /20664164Didn'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, '2598582') ('4302', '20664164', '1338480884', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480883', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480882', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480880', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480853', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480852', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480850', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480849', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480848', None, None, None, None, None, '2598582') ('4302', None, None, None, None, None, None, None, '2598582') ('4302', '20664164', '1338480847', None, None, None, None, None, '2598582') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20664164', 'None', None, None, None, None, '2598582'), ('4302', '20664164', '1338480884', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480883', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480882', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480880', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480853', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480852', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480850', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480849', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480848', None, None, None, None, None, '2598582'), ('4302', '20664164', '1338480847', None, None, None, None, None, '2598582')] time used for this insertion : 0.014320135116577148 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.6293423175811768 time spend to save output : 0.014511585235595703 total time spend for step 5 : 2.6438539028167725 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 (2598582) 1.72user 2.39system 0:10.44elapsed 39%CPU (0avgtext+0avgdata 152272maxresident)k 264inputs+12976outputs (1major+60479minor)pagefaults 0swaps