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 : 2858765 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 (2592768) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2592768) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20602408 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2592768'] with mtr_portfolio_ids : ['20602408'] and first list_photo_ids : [] new path : /proc/2858765/ Name: python3 Umask: 0002 State: R (running) Tgid: 2858765 Ngid: 0 Pid: 2858765 PPid: 2858764 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2858765 NSpid: 2858765 NSpgid: 2856659 NSsid: 2856659 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99128 kB VmRSS: 99128 kB RssAnon: 59756 kB RssFile: 39372 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 592 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 52 nonvoluntary_ctxt_switches: 117 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2858765', 'Ngid': '0', 'Pid': '2858765', 'PPid': '2858764', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2858765', 'NSpid': '2858765', 'NSpgid': '2856659', 'NSsid': '2856659', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99128 kB', 'VmRSS': '99128 kB', 'RssAnon': '59756 kB', 'RssFile': '39372 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '592 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '52', 'nonvoluntary_ctxt_switches': '117'} ('datou_batch_current', '2858765', '1106844', '0', '1106844', '865596', '99128', b'', 'marlene', '2592768') 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 (20602408) 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 (2592768 ) ) 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 (20602408) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338137874, 'portfolio_id': 20602408}, {'photo_id': 1338137872, 'portfolio_id': 20602408}, {'photo_id': 1338137869, 'portfolio_id': 20602408}, {'photo_id': 1338137866, 'portfolio_id': 20602408}, {'photo_id': 1338137864, 'portfolio_id': 20602408}, {'photo_id': 1338137804, 'portfolio_id': 20602408}, {'photo_id': 1338137802, 'portfolio_id': 20602408}, {'photo_id': 1338137800, 'portfolio_id': 20602408}, {'photo_id': 1338137797, 'portfolio_id': 20602408}, {'photo_id': 1338137794, 'portfolio_id': 20602408}, {'photo_id': 1338137790, 'portfolio_id': 20602408}, {'photo_id': 1338137751, 'portfolio_id': 20602408}, {'photo_id': 1338137748, 'portfolio_id': 20602408}, {'photo_id': 1338137745, 'portfolio_id': 20602408}, {'photo_id': 1338137702, 'portfolio_id': 20602408}, {'photo_id': 1338137615, 'portfolio_id': 20602408}, {'photo_id': 1338137613, 'portfolio_id': 20602408}, {'photo_id': 1338137610, 'portfolio_id': 20602408}, {'photo_id': 1338137597, 'portfolio_id': 20602408}, {'photo_id': 1338137594, 'portfolio_id': 20602408}, {'photo_id': 1338137558, 'portfolio_id': 20602408}, {'photo_id': 1338137555, 'portfolio_id': 20602408}, {'photo_id': 1338137552, 'portfolio_id': 20602408}, {'photo_id': 1338137550, 'portfolio_id': 20602408}, {'photo_id': 1338137513, 'portfolio_id': 20602408}, {'photo_id': 1338137511, 'portfolio_id': 20602408}, {'photo_id': 1338137508, 'portfolio_id': 20602408}, {'photo_id': 1338137505, 'portfolio_id': 20602408}, {'photo_id': 1338137503, 'portfolio_id': 20602408}, {'photo_id': 1338137311, 'portfolio_id': 20602408}, {'photo_id': 1338137305, 'portfolio_id': 20602408}, {'photo_id': 1338137301, 'portfolio_id': 20602408}, {'photo_id': 1338137297, 'portfolio_id': 20602408}, {'photo_id': 1338137293, 'portfolio_id': 20602408}, {'photo_id': 1338137290, 'portfolio_id': 20602408}, {'photo_id': 1338137248, 'portfolio_id': 20602408}, {'photo_id': 1338137245, 'portfolio_id': 20602408}, {'photo_id': 1338137242, 'portfolio_id': 20602408}, {'photo_id': 1338137240, 'portfolio_id': 20602408}, {'photo_id': 1338137186, 'portfolio_id': 20602408}, {'photo_id': 1338137183, 'portfolio_id': 20602408}, {'photo_id': 1338137181, 'portfolio_id': 20602408}, {'photo_id': 1338137151, 'portfolio_id': 20602408}, {'photo_id': 1338137148, 'portfolio_id': 20602408}, {'photo_id': 1338137146, 'portfolio_id': 20602408}, {'photo_id': 1338137042, 'portfolio_id': 20602408}, {'photo_id': 1338137030, 'portfolio_id': 20602408}, {'photo_id': 1338137028, 'portfolio_id': 20602408}, {'photo_id': 1338136990, 'portfolio_id': 20602408}, {'photo_id': 1338136987, 'portfolio_id': 20602408}, {'photo_id': 1338136985, 'portfolio_id': 20602408}, {'photo_id': 1338136982, 'portfolio_id': 20602408}, {'photo_id': 1338136979, 'portfolio_id': 20602408}, {'photo_id': 1338136976, 'portfolio_id': 20602408}, {'photo_id': 1338136941, 'portfolio_id': 20602408}, {'photo_id': 1338136938, 'portfolio_id': 20602408}, {'photo_id': 1338136935, 'portfolio_id': 20602408}, {'photo_id': 1338136932, 'portfolio_id': 20602408}, {'photo_id': 1338136895, 'portfolio_id': 20602408}, {'photo_id': 1338136892, 'portfolio_id': 20602408}, {'photo_id': 1338136889, 'portfolio_id': 20602408}, {'photo_id': 1338136886, 'portfolio_id': 20602408}, {'photo_id': 1338136884, 'portfolio_id': 20602408}] map_portfolio_id_photo_id: {20602408: [1338137874, 1338137872, 1338137869, 1338137866, 1338137864, 1338137804, 1338137802, 1338137800, 1338137797, 1338137794, 1338137790, 1338137751, 1338137748, 1338137745, 1338137702, 1338137615, 1338137613, 1338137610, 1338137597, 1338137594, 1338137558, 1338137555, 1338137552, 1338137550, 1338137513, 1338137511, 1338137508, 1338137505, 1338137503, 1338137311, 1338137305, 1338137301, 1338137297, 1338137293, 1338137290, 1338137248, 1338137245, 1338137242, 1338137240, 1338137186, 1338137183, 1338137181, 1338137151, 1338137148, 1338137146, 1338137042, 1338137030, 1338137028, 1338136990, 1338136987, 1338136985, 1338136982, 1338136979, 1338136976, 1338136941, 1338136938, 1338136935, 1338136932, 1338136895, 1338136892, 1338136889, 1338136886, 1338136884]} ##### 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.015039205551147461 #### 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 Mon Feb 17 10:44:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20602408) 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 : 20602408 get user id for portfolio 20602408 get sub ptf for main ptf 20602408, type 3726 and hashtags ['mal_croppe', 'Teint_Dans_La_Masse', 'cartonnette', 'plastique', 'Carton_gris', 'environnement', 'metal', 'kraft', 'flou', 'papier', 'Carton_brun', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20602408 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Teint_Dans_La_Masse','cartonnette','plastique','Carton_gris','environnement','metal','kraft','flou','papier','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20602408 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Teint_Dans_La_Masse','cartonnette','plastique','Carton_gris','environnement','metal','kraft','flou','papier','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20602408, 'sub_port_id': 20602437, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260146, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 29)}, 'flou': {'main_port_id': 20602408, 'sub_port_id': 20602438, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260147, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 29)}, 'Carton_brun': {'main_port_id': 20602408, 'sub_port_id': 20602439, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260148, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 29)}, 'Carton_gris': {'main_port_id': 20602408, 'sub_port_id': 20602440, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260149, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 29)}, 'metal': {'main_port_id': 20602408, 'sub_port_id': 20602441, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260150, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 29)}, 'autre_refus': {'main_port_id': 20602408, 'sub_port_id': 20602442, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260151, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 29)}, 'environnement': {'main_port_id': 20602408, 'sub_port_id': 20602443, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260152, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 29)}, 'mal_croppe': {'main_port_id': 20602408, 'sub_port_id': 20602444, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260153, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 29)}, 'papier': {'main_port_id': 20602408, 'sub_port_id': 20602445, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260154, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 29)}, 'plastique': {'main_port_id': 20602408, 'sub_port_id': 20602446, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260155, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 29)}, 'cartonnette': {'main_port_id': 20602408, 'sub_port_id': 20602447, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260156, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 20602408, 'sub_port_id': 20602448, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260157, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20602437 , 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=20602408 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 (20602437) result : ((1338137212,), (1338137548,), (1338137639,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20602408) result : ((1338136884,), (1338136886,), (1338136889,), (1338136892,), (1338136895,), (1338136932,), (1338136935,), (1338136938,), (1338136941,), (1338136976,), (1338136979,), (1338136982,), (1338136985,), (1338136987,), (1338136990,), (1338137028,), (1338137030,), (1338137042,), (1338137146,), (1338137148,), (1338137151,), (1338137181,), (1338137183,), (1338137186,), (1338137240,), (1338137242,), (1338137245,), (1338137248,), (1338137290,), (1338137293,), (1338137297,), (1338137301,), (1338137305,), (1338137311,), (1338137503,), (1338137505,), (1338137508,), (1338137511,), (1338137513,), (1338137550,), (1338137552,), (1338137555,), (1338137558,), (1338137594,), (1338137597,), (1338137610,), (1338137613,), (1338137615,), (1338137702,), (1338137745,), (1338137748,), (1338137751,), (1338137790,), (1338137794,), (1338137797,), (1338137800,), (1338137802,), (1338137804,), (1338137864,), (1338137866,), (1338137869,), (1338137872,), (1338137874,)) 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 (1338137800) 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 20602438 , 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=20602408 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 (20602438) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20602408) result : ((1338136884,), (1338136886,), (1338136889,), (1338136892,), (1338136895,), (1338136932,), (1338136935,), (1338136938,), (1338136941,), (1338136976,), (1338136979,), (1338136982,), (1338136985,), (1338136987,), (1338136990,), (1338137028,), (1338137030,), (1338137042,), (1338137146,), (1338137148,), (1338137151,), (1338137181,), (1338137183,), (1338137186,), (1338137240,), (1338137242,), (1338137245,), (1338137248,), (1338137290,), (1338137293,), (1338137297,), (1338137301,), (1338137305,), (1338137311,), (1338137503,), (1338137505,), (1338137508,), (1338137511,), (1338137513,), (1338137550,), (1338137552,), (1338137555,), (1338137558,), (1338137594,), (1338137597,), (1338137610,), (1338137613,), (1338137615,), (1338137702,), (1338137745,), (1338137748,), (1338137751,), (1338137790,), (1338137794,), (1338137797,), (1338137800,), (1338137802,), (1338137804,), (1338137864,), (1338137866,), (1338137869,), (1338137872,), (1338137874,)) 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 (1338137800) 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 20602439 , 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=20602408 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 (20602439) result : ((1338137279,), (1338137280,), (1338137541,), (1338137542,), (1338137543,), (1338137544,), (1338137631,), (1338137632,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20602408) result : ((1338136884,), (1338136886,), (1338136889,), (1338136892,), (1338136895,), (1338136932,), (1338136935,), (1338136938,), (1338136941,), (1338136976,), (1338136979,), (1338136982,), (1338136985,), (1338136987,), (1338136990,), (1338137028,), (1338137030,), (1338137042,), (1338137146,), (1338137148,), (1338137151,), (1338137181,), (1338137183,), (1338137186,), (1338137240,), (1338137242,), (1338137245,), (1338137248,), (1338137290,), (1338137293,), (1338137297,), (1338137301,), (1338137305,), (1338137311,), (1338137503,), (1338137505,), (1338137508,), (1338137511,), (1338137513,), (1338137550,), (1338137552,), (1338137555,), (1338137558,), (1338137594,), (1338137597,), (1338137610,), (1338137613,), (1338137615,), (1338137702,), (1338137745,), (1338137748,), (1338137751,), (1338137790,), (1338137794,), (1338137797,), (1338137800,), (1338137802,), (1338137804,), (1338137864,), (1338137866,), (1338137869,), (1338137872,), (1338137874,)) 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 (1338137800) 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 20602440 , 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=20602408 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 (20602440) result : ((1338137128,), (1338137129,), (1338137130,), (1338137131,), (1338137209,), (1338137210,), (1338137276,), (1338137277,), (1338137278,), (1338137538,), (1338137539,), (1338137805,), (1338137806,), (1338137807,), (1338137922,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20602408) result : ((1338136884,), (1338136886,), (1338136889,), (1338136892,), (1338136895,), (1338136932,), (1338136935,), (1338136938,), (1338136941,), (1338136976,), (1338136979,), (1338136982,), (1338136985,), (1338136987,), (1338136990,), (1338137028,), (1338137030,), (1338137042,), (1338137146,), (1338137148,), (1338137151,), (1338137181,), (1338137183,), (1338137186,), (1338137240,), (1338137242,), (1338137245,), (1338137248,), (1338137290,), (1338137293,), (1338137297,), (1338137301,), (1338137305,), (1338137311,), (1338137503,), (1338137505,), (1338137508,), (1338137511,), (1338137513,), (1338137550,), (1338137552,), (1338137555,), (1338137558,), (1338137594,), (1338137597,), (1338137610,), (1338137613,), (1338137615,), (1338137702,), (1338137745,), (1338137748,), (1338137751,), (1338137790,), (1338137794,), (1338137797,), (1338137800,), (1338137802,), (1338137804,), (1338137864,), (1338137866,), (1338137869,), (1338137872,), (1338137874,)) 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 (1338137800) 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 20602441 , 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=20602408 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 (20602441) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20602408) result : ((1338136884,), (1338136886,), (1338136889,), (1338136892,), (1338136895,), (1338136932,), (1338136935,), (1338136938,), (1338136941,), (1338136976,), (1338136979,), (1338136982,), (1338136985,), (1338136987,), (1338136990,), (1338137028,), (1338137030,), (1338137042,), (1338137146,), (1338137148,), (1338137151,), (1338137181,), (1338137183,), (1338137186,), (1338137240,), (1338137242,), (1338137245,), (1338137248,), (1338137290,), (1338137293,), (1338137297,), (1338137301,), (1338137305,), (1338137311,), (1338137503,), (1338137505,), (1338137508,), (1338137511,), (1338137513,), (1338137550,), (1338137552,), (1338137555,), (1338137558,), (1338137594,), (1338137597,), (1338137610,), (1338137613,), (1338137615,), (1338137702,), (1338137745,), (1338137748,), (1338137751,), (1338137790,), (1338137794,), (1338137797,), (1338137800,), (1338137802,), (1338137804,), (1338137864,), (1338137866,), (1338137869,), (1338137872,), (1338137874,)) 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 (1338137800) 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 20602442 , 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=20602408 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 (20602442) result : ((1338137208,), (1338137272,), (1338137273,), (1338137274,), (1338137919,), (1338137920,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20602408) result : ((1338136884,), (1338136886,), (1338136889,), (1338136892,), (1338136895,), (1338136932,), (1338136935,), (1338136938,), (1338136941,), (1338136976,), (1338136979,), (1338136982,), (1338136985,), (1338136987,), (1338136990,), (1338137028,), (1338137030,), (1338137042,), (1338137146,), (1338137148,), (1338137151,), (1338137181,), (1338137183,), (1338137186,), (1338137240,), (1338137242,), (1338137245,), (1338137248,), (1338137290,), (1338137293,), (1338137297,), (1338137301,), (1338137305,), (1338137311,), (1338137503,), (1338137505,), (1338137508,), (1338137511,), (1338137513,), (1338137550,), (1338137552,), (1338137555,), (1338137558,), (1338137594,), (1338137597,), (1338137610,), (1338137613,), (1338137615,), (1338137702,), (1338137745,), (1338137748,), (1338137751,), (1338137790,), (1338137794,), (1338137797,), (1338137800,), (1338137802,), (1338137804,), (1338137864,), (1338137866,), (1338137869,), (1338137872,), (1338137874,)) 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 (1338137800) 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 20602443 , 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=20602408 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 (20602443) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20602408) result : ((1338136884,), (1338136886,), (1338136889,), (1338136892,), (1338136895,), (1338136932,), (1338136935,), (1338136938,), (1338136941,), (1338136976,), (1338136979,), (1338136982,), (1338136985,), (1338136987,), (1338136990,), (1338137028,), (1338137030,), (1338137042,), (1338137146,), (1338137148,), (1338137151,), (1338137181,), (1338137183,), (1338137186,), (1338137240,), (1338137242,), (1338137245,), (1338137248,), (1338137290,), (1338137293,), (1338137297,), (1338137301,), (1338137305,), (1338137311,), (1338137503,), (1338137505,), (1338137508,), (1338137511,), (1338137513,), (1338137550,), (1338137552,), (1338137555,), (1338137558,), (1338137594,), (1338137597,), (1338137610,), (1338137613,), (1338137615,), (1338137702,), (1338137745,), (1338137748,), (1338137751,), (1338137790,), (1338137794,), (1338137797,), (1338137800,), (1338137802,), (1338137804,), (1338137864,), (1338137866,), (1338137869,), (1338137872,), (1338137874,)) 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 (1338137800) 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 20602444 , 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=20602408 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 (20602444) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20602408) result : ((1338136884,), (1338136886,), (1338136889,), (1338136892,), (1338136895,), (1338136932,), (1338136935,), (1338136938,), (1338136941,), (1338136976,), (1338136979,), (1338136982,), (1338136985,), (1338136987,), (1338136990,), (1338137028,), (1338137030,), (1338137042,), (1338137146,), (1338137148,), (1338137151,), (1338137181,), (1338137183,), (1338137186,), (1338137240,), (1338137242,), (1338137245,), (1338137248,), (1338137290,), (1338137293,), (1338137297,), (1338137301,), (1338137305,), (1338137311,), (1338137503,), (1338137505,), (1338137508,), (1338137511,), (1338137513,), (1338137550,), (1338137552,), (1338137555,), (1338137558,), (1338137594,), (1338137597,), (1338137610,), (1338137613,), (1338137615,), (1338137702,), (1338137745,), (1338137748,), (1338137751,), (1338137790,), (1338137794,), (1338137797,), (1338137800,), (1338137802,), (1338137804,), (1338137864,), (1338137866,), (1338137869,), (1338137872,), (1338137874,)) 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 (1338137800) 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 20602445 , 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=20602408 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 (20602445) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20602408) result : ((1338136884,), (1338136886,), (1338136889,), (1338136892,), (1338136895,), (1338136932,), (1338136935,), (1338136938,), (1338136941,), (1338136976,), (1338136979,), (1338136982,), (1338136985,), (1338136987,), (1338136990,), (1338137028,), (1338137030,), (1338137042,), (1338137146,), (1338137148,), (1338137151,), (1338137181,), (1338137183,), (1338137186,), (1338137240,), (1338137242,), (1338137245,), (1338137248,), (1338137290,), (1338137293,), (1338137297,), (1338137301,), (1338137305,), (1338137311,), (1338137503,), (1338137505,), (1338137508,), (1338137511,), (1338137513,), (1338137550,), (1338137552,), (1338137555,), (1338137558,), (1338137594,), (1338137597,), (1338137610,), (1338137613,), (1338137615,), (1338137702,), (1338137745,), (1338137748,), (1338137751,), (1338137790,), (1338137794,), (1338137797,), (1338137800,), (1338137802,), (1338137804,), (1338137864,), (1338137866,), (1338137869,), (1338137872,), (1338137874,)) 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 (1338137800) 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 20602446 , 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=20602408 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 (20602446) result : ((1338137141,), (1338137282,), (1338137283,), (1338137502,), (1338137545,), (1338137546,), (1338137547,), (1338137635,), (1338137637,), (1338137638,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20602408) result : ((1338136884,), (1338136886,), (1338136889,), (1338136892,), (1338136895,), (1338136932,), (1338136935,), (1338136938,), (1338136941,), (1338136976,), (1338136979,), (1338136982,), (1338136985,), (1338136987,), (1338136990,), (1338137028,), (1338137030,), (1338137042,), (1338137146,), (1338137148,), (1338137151,), (1338137181,), (1338137183,), (1338137186,), (1338137240,), (1338137242,), (1338137245,), (1338137248,), (1338137290,), (1338137293,), (1338137297,), (1338137301,), (1338137305,), (1338137311,), (1338137503,), (1338137505,), (1338137508,), (1338137511,), (1338137513,), (1338137550,), (1338137552,), (1338137555,), (1338137558,), (1338137594,), (1338137597,), (1338137610,), (1338137613,), (1338137615,), (1338137702,), (1338137745,), (1338137748,), (1338137751,), (1338137790,), (1338137794,), (1338137797,), (1338137800,), (1338137802,), (1338137804,), (1338137864,), (1338137866,), (1338137869,), (1338137872,), (1338137874,)) 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 (1338137800) 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 20602447 , 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=20602408 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 (20602447) result : ((1338137139,), (1338137140,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20602408) result : ((1338136884,), (1338136886,), (1338136889,), (1338136892,), (1338136895,), (1338136932,), (1338136935,), (1338136938,), (1338136941,), (1338136976,), (1338136979,), (1338136982,), (1338136985,), (1338136987,), (1338136990,), (1338137028,), (1338137030,), (1338137042,), (1338137146,), (1338137148,), (1338137151,), (1338137181,), (1338137183,), (1338137186,), (1338137240,), (1338137242,), (1338137245,), (1338137248,), (1338137290,), (1338137293,), (1338137297,), (1338137301,), (1338137305,), (1338137311,), (1338137503,), (1338137505,), (1338137508,), (1338137511,), (1338137513,), (1338137550,), (1338137552,), (1338137555,), (1338137558,), (1338137594,), (1338137597,), (1338137610,), (1338137613,), (1338137615,), (1338137702,), (1338137745,), (1338137748,), (1338137751,), (1338137790,), (1338137794,), (1338137797,), (1338137800,), (1338137802,), (1338137804,), (1338137864,), (1338137866,), (1338137869,), (1338137872,), (1338137874,)) 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 (1338137800) 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 20602448 , 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=20602408 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 (20602448) result : ((1338137269,), (1338137270,), (1338137534,), (1338137535,), (1338137536,), (1338137537,), (1338137630,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20602408) result : ((1338136884,), (1338136886,), (1338136889,), (1338136892,), (1338136895,), (1338136932,), (1338136935,), (1338136938,), (1338136941,), (1338136976,), (1338136979,), (1338136982,), (1338136985,), (1338136987,), (1338136990,), (1338137028,), (1338137030,), (1338137042,), (1338137146,), (1338137148,), (1338137151,), (1338137181,), (1338137183,), (1338137186,), (1338137240,), (1338137242,), (1338137245,), (1338137248,), (1338137290,), (1338137293,), (1338137297,), (1338137301,), (1338137305,), (1338137311,), (1338137503,), (1338137505,), (1338137508,), (1338137511,), (1338137513,), (1338137550,), (1338137552,), (1338137555,), (1338137558,), (1338137594,), (1338137597,), (1338137610,), (1338137613,), (1338137615,), (1338137702,), (1338137745,), (1338137748,), (1338137751,), (1338137790,), (1338137794,), (1338137797,), (1338137800,), (1338137802,), (1338137804,), (1338137864,), (1338137866,), (1338137869,), (1338137872,), (1338137874,)) 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 (1338137800) 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`=20602408 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Teint_Dans_La_Masse','cartonnette','plastique','Carton_gris','environnement','metal','kraft','flou','papier','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20602408 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Teint_Dans_La_Masse','cartonnette','plastique','Carton_gris','environnement','metal','kraft','flou','papier','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20602408, 'sub_port_id': 20602449, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260158, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 31)}, 'flou': {'main_port_id': 20602408, 'sub_port_id': 20602450, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260159, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 31)}, 'Carton_brun': {'main_port_id': 20602408, 'sub_port_id': 20602451, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260160, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 31)}, 'Carton_gris': {'main_port_id': 20602408, 'sub_port_id': 20602452, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260161, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 31)}, 'metal': {'main_port_id': 20602408, 'sub_port_id': 20602453, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260162, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 31)}, 'autre_refus': {'main_port_id': 20602408, 'sub_port_id': 20602454, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260163, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 31)}, 'environnement': {'main_port_id': 20602408, 'sub_port_id': 20602455, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260164, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 31)}, 'mal_croppe': {'main_port_id': 20602408, 'sub_port_id': 20602456, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260165, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 31)}, 'papier': {'main_port_id': 20602408, 'sub_port_id': 20602457, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260166, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 31)}, 'plastique': {'main_port_id': 20602408, 'sub_port_id': 20602458, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260167, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 31)}, 'cartonnette': {'main_port_id': 20602408, 'sub_port_id': 20602459, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260168, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 20602408, 'sub_port_id': 20602460, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13260169, 'last_updated_at': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 10, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 10, 33, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20602449,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20602437 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20602450,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20602438 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20602451,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20602439 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20602452,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20602440 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20602453,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20602441 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20602454,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20602442 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20602455,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20602443 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20602456,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20602444 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20602457,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20602445 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20602458,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20602446 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20602459,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20602447 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20602460,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20602448 lien utilise dans velours : https://www.fotonower.com/velours/20602449,20602450,20602451,20602452,20602453,20602454,20602455,20602456,20602457,20602458,20602459,20602460?tags=kraft,flou,Carton_brun,Carton_gris,metal,autre_refus,environnement,mal_croppe,papier,plastique,cartonnette,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20602408]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338137874, 1338137872, 1338137869, 1338137866, 1338137864, 1338137804, 1338137802, 1338137800, 1338137797, 1338137794, 1338137790] map_info['map_portfolio_photo'] : {20602408: [1338137874, 1338137872, 1338137869, 1338137866, 1338137864, 1338137804, 1338137802, 1338137800, 1338137797, 1338137794, 1338137790, 1338137751, 1338137748, 1338137745, 1338137702, 1338137615, 1338137613, 1338137610, 1338137597, 1338137594, 1338137558, 1338137555, 1338137552, 1338137550, 1338137513, 1338137511, 1338137508, 1338137505, 1338137503, 1338137311, 1338137305, 1338137301, 1338137297, 1338137293, 1338137290, 1338137248, 1338137245, 1338137242, 1338137240, 1338137186, 1338137183, 1338137181, 1338137151, 1338137148, 1338137146, 1338137042, 1338137030, 1338137028, 1338136990, 1338136987, 1338136985, 1338136982, 1338136979, 1338136976, 1338136941, 1338136938, 1338136935, 1338136932, 1338136895, 1338136892, 1338136889, 1338136886, 1338136884]} final : False mtd_id 4302 list_pids : [1338137874, 1338137872, 1338137869, 1338137866, 1338137864, 1338137804, 1338137802, 1338137800, 1338137797, 1338137794, 1338137790] Looping around the photos to save general results len do output : 1 /20602408. 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, '2592768') ('4302', '20602408', '1338137874', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137872', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137869', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137866', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137864', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137804', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137802', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137800', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137797', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137794', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137790', None, None, None, None, None, '2592768') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '20602408', "{'kraft': 20602437, 'flou': 20602438, 'Carton_brun': 20602439, 'Carton_gris': 20602440, 'metal': 20602441, 'autre_refus': 20602442, 'environnement': 20602443, 'mal_croppe': 20602444, 'papier': 20602445, 'plastique': 20602446, 'cartonnette': 20602447, 'Teint_Dans_La_Masse': 20602448}", None, None, None, None, '2592768'), ('4302', '20602408', '1338137874', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137872', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137869', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137866', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137864', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137804', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137802', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137800', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137797', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137794', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137790', None, None, None, None, None, '2592768')] time used for this insertion : 0.013558149337768555 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.0560002326965332 time spend to save output : 0.013852834701538086 total time spend for step 1 : 1.0698530673980713 step2:final Mon Feb 17 10:44:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (20602408) 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 20602408 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338136895,1338136892,1338136889,1338136886,1338136884,1338136941,1338136938,1338136935,1338136932,1338136990,1338136987,1338136985,1338136982,1338136979,1338136976,1338137042,1338137030,1338137028,1338137186,1338137183,1338137181,1338137151,1338137148,1338137146,1338137248,1338137245,1338137242,1338137240,1338137311,1338137305,1338137301,1338137297,1338137293,1338137290,1338137513,1338137511,1338137508,1338137505,1338137503,1338137558,1338137555,1338137552,1338137550,1338137615,1338137613,1338137610,1338137597,1338137594,1338137751,1338137748,1338137745,1338137702,1338137804,1338137802,1338137800,1338137797,1338137794,1338137790,1338137874,1338137872,1338137869,1338137866,1338137864); 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([20602408]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ('0.03773459305018665',), 1338137802: ('0.03773459305018665',), 1338137800: ('0.03773459305018665',), 1338137797: ('0.03773459305018665',), 1338137794: ('0.03773459305018665',), 1338137790: ('0.03773459305018665',)} new output for save of step final : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ('0.03773459305018665',), 1338137802: ('0.03773459305018665',), 1338137800: ('0.03773459305018665',), 1338137797: ('0.03773459305018665',), 1338137794: ('0.03773459305018665',), 1338137790: ('0.03773459305018665',)} [1338137874, 1338137872, 1338137869, 1338137866, 1338137864, 1338137804, 1338137802, 1338137800, 1338137797, 1338137794, 1338137790] map_info['map_portfolio_photo'] : {20602408: [1338137874, 1338137872, 1338137869, 1338137866, 1338137864, 1338137804, 1338137802, 1338137800, 1338137797, 1338137794, 1338137790, 1338137751, 1338137748, 1338137745, 1338137702, 1338137615, 1338137613, 1338137610, 1338137597, 1338137594, 1338137558, 1338137555, 1338137552, 1338137550, 1338137513, 1338137511, 1338137508, 1338137505, 1338137503, 1338137311, 1338137305, 1338137301, 1338137297, 1338137293, 1338137290, 1338137248, 1338137245, 1338137242, 1338137240, 1338137186, 1338137183, 1338137181, 1338137151, 1338137148, 1338137146, 1338137042, 1338137030, 1338137028, 1338136990, 1338136987, 1338136985, 1338136982, 1338136979, 1338136976, 1338136941, 1338136938, 1338136935, 1338136932, 1338136895, 1338136892, 1338136889, 1338136886, 1338136884]} final : False mtd_id 4302 list_pids : [1338137874, 1338137872, 1338137869, 1338137866, 1338137864, 1338137804, 1338137802, 1338137800, 1338137797, 1338137794, 1338137790] Looping around the photos to save general results len do output : 11 /1338137874.Didn't retrieve data . /1338137872.Didn't retrieve data . /1338137869.Didn't retrieve data . /1338137866.Didn't retrieve data . /1338137864.Didn't retrieve data . /1338137804.Didn't retrieve data . /1338137802.Didn't retrieve data . /1338137800.Didn't retrieve data . /1338137797.Didn't retrieve data . /1338137794.Didn't retrieve data . /1338137790.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, '2592768') ('4302', '20602408', '1338137874', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137872', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137869', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137866', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137864', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137804', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137802', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137800', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137797', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137794', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137790', None, None, None, None, None, '2592768') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '20602408', '1338137874', '0.03773459305018665', None, None, None, None, '2592768'), ('4302', '20602408', '1338137872', '0.03773459305018665', None, None, None, None, '2592768'), ('4302', '20602408', '1338137869', '0.03773459305018665', None, None, None, None, '2592768'), ('4302', '20602408', '1338137866', '0.03773459305018665', None, None, None, None, '2592768'), ('4302', '20602408', '1338137864', '0.03773459305018665', None, None, None, None, '2592768'), ('4302', '20602408', '1338137804', '0.03773459305018665', None, None, None, None, '2592768'), ('4302', '20602408', '1338137802', '0.03773459305018665', None, None, None, None, '2592768'), ('4302', '20602408', '1338137800', '0.03773459305018665', None, None, None, None, '2592768'), ('4302', '20602408', '1338137797', '0.03773459305018665', None, None, None, None, '2592768'), ('4302', '20602408', '1338137794', '0.03773459305018665', None, None, None, None, '2592768'), ('4302', '20602408', '1338137790', '0.03773459305018665', None, None, None, None, '2592768')] time used for this insertion : 0.1187136173248291 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07391691207885742 time spend to save output : 0.11922478675842285 total time spend for step 2 : 0.19314169883728027 step3:velours_tree Mon Feb 17 10:44:31 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 : {20602408: [{'kraft': 20602437, 'flou': 20602438, 'Carton_brun': 20602439, 'Carton_gris': 20602440, 'metal': 20602441, 'autre_refus': 20602442, 'environnement': 20602443, 'mal_croppe': 20602444, 'papier': 20602445, 'plastique': 20602446, 'cartonnette': 20602447, 'Teint_Dans_La_Masse': 20602448}]} input_args_next_step : {20602408: ()} output_args : {20602408: [{'kraft': 20602437, 'flou': 20602438, 'Carton_brun': 20602439, 'Carton_gris': 20602440, 'metal': 20602441, 'autre_refus': 20602442, 'environnement': 20602443, 'mal_croppe': 20602444, 'papier': 20602445, 'plastique': 20602446, 'cartonnette': 20602447, 'Teint_Dans_La_Masse': 20602448}]} args : 20602408 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 : ({'kraft': 20602437, 'flou': 20602438, 'Carton_brun': 20602439, 'Carton_gris': 20602440, 'metal': 20602441, 'autre_refus': 20602442, 'environnement': 20602443, 'mal_croppe': 20602444, 'papier': 20602445, 'plastique': 20602446, 'cartonnette': 20602447, 'Teint_Dans_La_Masse': 20602448},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20602408) 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([20602408]) 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.38573527336120605 time spend to save output : 5.3882598876953125e-05 total time spend for step 3 : 0.385789155960083 step4:send_mail_cod Mon Feb 17 10:44:31 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 : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ('0.03773459305018665',), 1338137802: ('0.03773459305018665',), 1338137800: ('0.03773459305018665',), 1338137797: ('0.03773459305018665',), 1338137794: ('0.03773459305018665',), 1338137790: ('0.03773459305018665',)} input_args_next_step : {1338137874: ()} output_args : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ('0.03773459305018665',), 1338137802: ('0.03773459305018665',), 1338137800: ('0.03773459305018665',), 1338137797: ('0.03773459305018665',), 1338137794: ('0.03773459305018665',), 1338137790: ('0.03773459305018665',)} args : 1338137874 depend.output_id : 0 input_args_next_step : {1338137874: ('0.03773459305018665',), 1338137872: ()} output_args : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ('0.03773459305018665',), 1338137802: ('0.03773459305018665',), 1338137800: ('0.03773459305018665',), 1338137797: ('0.03773459305018665',), 1338137794: ('0.03773459305018665',), 1338137790: ('0.03773459305018665',)} args : 1338137872 depend.output_id : 0 input_args_next_step : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ()} output_args : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ('0.03773459305018665',), 1338137802: ('0.03773459305018665',), 1338137800: ('0.03773459305018665',), 1338137797: ('0.03773459305018665',), 1338137794: ('0.03773459305018665',), 1338137790: ('0.03773459305018665',)} args : 1338137869 depend.output_id : 0 input_args_next_step : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ()} output_args : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ('0.03773459305018665',), 1338137802: ('0.03773459305018665',), 1338137800: ('0.03773459305018665',), 1338137797: ('0.03773459305018665',), 1338137794: ('0.03773459305018665',), 1338137790: ('0.03773459305018665',)} args : 1338137866 depend.output_id : 0 input_args_next_step : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ()} output_args : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ('0.03773459305018665',), 1338137802: ('0.03773459305018665',), 1338137800: ('0.03773459305018665',), 1338137797: ('0.03773459305018665',), 1338137794: ('0.03773459305018665',), 1338137790: ('0.03773459305018665',)} args : 1338137864 depend.output_id : 0 input_args_next_step : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ()} output_args : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ('0.03773459305018665',), 1338137802: ('0.03773459305018665',), 1338137800: ('0.03773459305018665',), 1338137797: ('0.03773459305018665',), 1338137794: ('0.03773459305018665',), 1338137790: ('0.03773459305018665',)} args : 1338137804 depend.output_id : 0 input_args_next_step : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ('0.03773459305018665',), 1338137802: ()} output_args : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ('0.03773459305018665',), 1338137802: ('0.03773459305018665',), 1338137800: ('0.03773459305018665',), 1338137797: ('0.03773459305018665',), 1338137794: ('0.03773459305018665',), 1338137790: ('0.03773459305018665',)} args : 1338137802 depend.output_id : 0 input_args_next_step : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ('0.03773459305018665',), 1338137802: ('0.03773459305018665',), 1338137800: ()} output_args : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ('0.03773459305018665',), 1338137802: ('0.03773459305018665',), 1338137800: ('0.03773459305018665',), 1338137797: ('0.03773459305018665',), 1338137794: ('0.03773459305018665',), 1338137790: ('0.03773459305018665',)} args : 1338137800 depend.output_id : 0 input_args_next_step : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ('0.03773459305018665',), 1338137802: ('0.03773459305018665',), 1338137800: ('0.03773459305018665',), 1338137797: ()} output_args : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ('0.03773459305018665',), 1338137802: ('0.03773459305018665',), 1338137800: ('0.03773459305018665',), 1338137797: ('0.03773459305018665',), 1338137794: ('0.03773459305018665',), 1338137790: ('0.03773459305018665',)} args : 1338137797 depend.output_id : 0 input_args_next_step : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ('0.03773459305018665',), 1338137802: ('0.03773459305018665',), 1338137800: ('0.03773459305018665',), 1338137797: ('0.03773459305018665',), 1338137794: ()} output_args : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ('0.03773459305018665',), 1338137802: ('0.03773459305018665',), 1338137800: ('0.03773459305018665',), 1338137797: ('0.03773459305018665',), 1338137794: ('0.03773459305018665',), 1338137790: ('0.03773459305018665',)} args : 1338137794 depend.output_id : 0 input_args_next_step : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ('0.03773459305018665',), 1338137802: ('0.03773459305018665',), 1338137800: ('0.03773459305018665',), 1338137797: ('0.03773459305018665',), 1338137794: ('0.03773459305018665',), 1338137790: ()} output_args : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ('0.03773459305018665',), 1338137802: ('0.03773459305018665',), 1338137800: ('0.03773459305018665',), 1338137797: ('0.03773459305018665',), 1338137794: ('0.03773459305018665',), 1338137790: ('0.03773459305018665',)} args : 1338137790 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 : {20602408: [{'kraft': 20602437, 'flou': 20602438, 'Carton_brun': 20602439, 'Carton_gris': 20602440, 'metal': 20602441, 'autre_refus': 20602442, 'environnement': 20602443, 'mal_croppe': 20602444, 'papier': 20602445, 'plastique': 20602446, 'cartonnette': 20602447, 'Teint_Dans_La_Masse': 20602448}]} input_args_next_step : {1338137874: ('0.03773459305018665',), 1338137872: ('0.03773459305018665',), 1338137869: ('0.03773459305018665',), 1338137866: ('0.03773459305018665',), 1338137864: ('0.03773459305018665',), 1338137804: ('0.03773459305018665',), 1338137802: ('0.03773459305018665',), 1338137800: ('0.03773459305018665',), 1338137797: ('0.03773459305018665',), 1338137794: ('0.03773459305018665',), 1338137790: ('0.03773459305018665',), 20602408: ()} output_args : {20602408: [{'kraft': 20602437, 'flou': 20602438, 'Carton_brun': 20602439, 'Carton_gris': 20602440, 'metal': 20602441, 'autre_refus': 20602442, 'environnement': 20602443, 'mal_croppe': 20602444, 'papier': 20602445, 'plastique': 20602446, 'cartonnette': 20602447, 'Teint_Dans_La_Masse': 20602448}]} args : 20602408 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 :12, first value : ('0.03773459305018665',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20602408) 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 (1338137874,1338137872,1338137869,1338137866,1338137864,1338137804,1338137802,1338137800,1338137797,1338137794,1338137790) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338137790 begin to download photo : 1338137800 begin to download photo : 1338137864 begin to download photo : 1338137872 download finish for photo 1338137864 begin to download photo : 1338137866 download finish for photo 1338137800 begin to download photo : 1338137802 download finish for photo 1338137872 begin to download photo : 1338137874 download finish for photo 1338137790 begin to download photo : 1338137794 download finish for photo 1338137866 begin to download photo : 1338137869 download finish for photo 1338137802 begin to download photo : 1338137804 download finish for photo 1338137874 download finish for photo 1338137794 begin to download photo : 1338137797 download finish for photo 1338137869 download finish for photo 1338137804 download finish for photo 1338137797 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 : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P20602408_17-02-2025_10_44_31.pdf 20602437 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=20602437 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338137212: '1739784914_2409970_1338137030_b95269915b0e7cd50ea956f28aaba167_rle_crop_3677841032_0.png', 1338137548: '1739785052_2411877_1338137183_37a3e6ad168436f0a6789ed38bf0b207_rle_crop_3677842741_0.png', 1338137639: '1739785153_2412871_1338137305_97fa5d777c726b1831259e756f2514f5_rle_crop_3677843948_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/760fffadbcd825abb6ac08ac008a77a0_62391482.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/6360cd9a6ee477722afc4b7e8d930d07_28018895.png change filename to text .imagette206024371739785471/ imagette206024371739785471/1739784914_2409970_1338137030_b95269915b0e7cd50ea956f28aaba167_rle_crop_3677841032_0.png.png imagette206024371739785471/1739785153_2412871_1338137305_97fa5d777c726b1831259e756f2514f5_rle_crop_3677843948_0.png.png imagette206024371739785471/1739785052_2411877_1338137183_37a3e6ad168436f0a6789ed38bf0b207_rle_crop_3677842741_0.png.png imagette206024381739785472/ imagette206024411739785472/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/0e720f2fb2ed91d392b1a265062a52ac_85873620.png imagette206024371739785471 20602438 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=20602438 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206024381739785472 20602441 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=20602441 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206024411739785472 20602442 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=20602442 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338137208: '1739784914_2409970_1338137028_39212a681aff41978790bc3af423014f_rle_crop_3677841045_0.png', 1338137272: '1739784933_2410235_1338136985_0a487e645bac71ba1f8ac0e62b3b2ee1_rle_crop_3677841304_0.png', 1338137273: '1739784933_2410235_1338136982_5a3d9efb15bd8a5da54c9b01e8a517a8_rle_crop_3677841318_0.png', 1338137274: '1739784933_2410235_1338136976_8c67c8bd24954e6b65f4b0ab748508b2_rle_crop_3677841346_0.png', 1338137919: '1739785394_2417713_1338137702_886ac206c023d1b6274ff05d57044794_rle_crop_3677845796_0.png', 1338137920: '1739785394_2417713_1338137702_886ac206c023d1b6274ff05d57044794_rle_crop_3677845787_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/aa788523519f69b8e6a6c82efa8a1960_47816969.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/43fad2ab31d7059066e1a78274fdf360_37768302.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/8d0dfb78f51b20cc62095c87c11881c0_69298205.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/181d875dd81c0d700553cc2335f2a3b8_9686191.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/57cc59da0f73d816dcd2afd274d83391_16704180.png change filename to text .imagette206024421739785472/ imagette206024421739785472/1739784933_2410235_1338136985_0a487e645bac71ba1f8ac0e62b3b2ee1_rle_crop_3677841304_0.png.png imagette206024421739785472/1739785394_2417713_1338137702_886ac206c023d1b6274ff05d57044794_rle_crop_3677845796_0.png.png imagette206024421739785472/1739785394_2417713_1338137702_886ac206c023d1b6274ff05d57044794_rle_crop_3677845787_0.png.png imagette206024421739785472/1739784933_2410235_1338136976_8c67c8bd24954e6b65f4b0ab748508b2_rle_crop_3677841346_0.png.png imagette206024421739785472/1739784933_2410235_1338136982_5a3d9efb15bd8a5da54c9b01e8a517a8_rle_crop_3677841318_0.png.png imagette206024421739785472/1739784914_2409970_1338137028_39212a681aff41978790bc3af423014f_rle_crop_3677841045_0.png.png imagette206024441739785472/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/d83674a63fb227ab330e4a1238e4bce5_43199375.png imagette206024421739785472 20602444 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=20602444 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206024441739785472 20602446 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=20602446 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338137141: '1739784814_2408666_1338136892_f924b5729357db34008d1742b611a9ea_rle_crop_3677840679_0.png', 1338137282: '1739784933_2410235_1338136979_479fdaf5a83ab11caa07410ad6c03bca_rle_crop_3677841333_0.png', 1338137283: '1739784933_2410235_1338136976_8c67c8bd24954e6b65f4b0ab748508b2_rle_crop_3677841351_0.png', 1338137502: '1739785033_2411661_1338137240_d8866aaf298b3ab5d91290f19ff1b999_rle_crop_3677842195_0.png', 1338137545: '1739785052_2411877_1338137248_d02c51334a3162b3e39351009513d2e9_rle_crop_3677842726_0.png', 1338137546: '1739785052_2411877_1338137151_a159ac4db700cc1b4e38380369a3bdaf_rle_crop_3677842774_0.png', 1338137547: '1739785052_2411877_1338137148_c1d5d368038d4c7a6fd492ce9155ec48_rle_crop_3677842793_0.png', 1338137635: '1739785153_2412871_1338137305_97fa5d777c726b1831259e756f2514f5_rle_crop_3677843949_0.png', 1338137637: '1739785153_2412871_1338137301_a82021603351b6db4c9bd264152d6093_rle_crop_3677843980_0.png', 1338137638: '1739785153_2412871_1338137297_6c8494dc60ca75b4b1c1a6f5c13436ba_rle_crop_3677843988_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/2077d4582a872cfda7427d50c3659709_52065095.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/0d27c134b3b2239139d558fc6a73596c_98793108.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/9b8b66fc99c03e89e77e60d61de57ac8_84251673.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/97ed5e190f45dce1855010edb6788ff7_18659944.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/be7d0dbd9366fa6e55550b9cbaf06dc2_74727924.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/783e22deccb3671658b0e7ff349363ab_38293434.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/40381aad9179901e8de72e540eb85871_61115741.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/4fe99efda466e9137d1ed7873968d374_42672060.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/c6f010a13158e96bdbdd570a262cb6e8_80224468.png change filename to text .imagette206024461739785472/ imagette206024461739785472/1739784933_2410235_1338136979_479fdaf5a83ab11caa07410ad6c03bca_rle_crop_3677841333_0.png.png imagette206024461739785472/1739784933_2410235_1338136976_8c67c8bd24954e6b65f4b0ab748508b2_rle_crop_3677841351_0.png.png imagette206024461739785472/1739785033_2411661_1338137240_d8866aaf298b3ab5d91290f19ff1b999_rle_crop_3677842195_0.png.png imagette206024461739785472/1739785052_2411877_1338137248_d02c51334a3162b3e39351009513d2e9_rle_crop_3677842726_0.png.png imagette206024461739785472/1739785052_2411877_1338137148_c1d5d368038d4c7a6fd492ce9155ec48_rle_crop_3677842793_0.png.png imagette206024461739785472/1739785153_2412871_1338137301_a82021603351b6db4c9bd264152d6093_rle_crop_3677843980_0.png.png imagette206024461739785472/1739785153_2412871_1338137305_97fa5d777c726b1831259e756f2514f5_rle_crop_3677843949_0.png.png imagette206024461739785472/1739785052_2411877_1338137151_a159ac4db700cc1b4e38380369a3bdaf_rle_crop_3677842774_0.png.png imagette206024461739785472/1739785153_2412871_1338137297_6c8494dc60ca75b4b1c1a6f5c13436ba_rle_crop_3677843988_0.png.png imagette206024461739785472/1739784814_2408666_1338136892_f924b5729357db34008d1742b611a9ea_rle_crop_3677840679_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/970ad7c3c02bcc0ebef5490a0c790594_55530995.png imagette206024461739785472 20602447 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=20602447 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338137139: '1739784814_2408666_1338136895_241483b85d7d456dac3235975f27e578_rle_crop_3677840661_0.png', 1338137140: '1739784814_2408666_1338136884_f4fbee331ae61a9a5cad368086864bde_rle_crop_3677840811_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/7f5d2791b6e71f1de7a48f7b45f00081_66190826.png change filename to text .imagette206024471739785472/ imagette206024471739785472/1739784814_2408666_1338136884_f4fbee331ae61a9a5cad368086864bde_rle_crop_3677840811_0.png.png imagette206024471739785472/1739784814_2408666_1338136895_241483b85d7d456dac3235975f27e578_rle_crop_3677840661_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/1f05932f421cb0e4786c91aa1061cfa9_54633973.png imagette206024471739785472 20602439 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=20602439 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338137279: '1739784933_2410235_1338136982_5a3d9efb15bd8a5da54c9b01e8a517a8_rle_crop_3677841321_0.png', 1338137280: '1739784933_2410235_1338136979_479fdaf5a83ab11caa07410ad6c03bca_rle_crop_3677841335_0.png', 1338137541: '1739785052_2411877_1338137248_d02c51334a3162b3e39351009513d2e9_rle_crop_3677842728_0.png', 1338137542: '1739785052_2411877_1338137181_121aa5f742f048bf0e38574237f0ce65_rle_crop_3677842763_0.png', 1338137543: '1739785052_2411877_1338137151_a159ac4db700cc1b4e38380369a3bdaf_rle_crop_3677842775_0.png', 1338137544: '1739785052_2411877_1338137151_a159ac4db700cc1b4e38380369a3bdaf_rle_crop_3677842780_0.png', 1338137631: '1739785153_2412871_1338137513_2bbc458233b3ceb6d554cb54fe925235_rle_crop_3677843920_0.png', 1338137632: '1739785153_2412871_1338137293_0a9bef9297ae5af0106cc8898cef0c67_rle_crop_3677844027_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/284d7047675ec6b39bafbcc0af65f1b6_83448791.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/cdbe0dba40be53af8639ac2fe8ae584d_77885086.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/be387607b3edcd3720fc5024178cbb50_99890629.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/036b2cd85d0a0edefa233e92ba18c913_39181678.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/923790d69043126a15592fe98bd36c63_64176130.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/cd5da78a8a4541fee305d18450932289_87029299.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/fb2c939884a4a81131f6092a65697423_76469729.png change filename to text .imagette206024391739785473/ imagette206024391739785473/1739785052_2411877_1338137181_121aa5f742f048bf0e38574237f0ce65_rle_crop_3677842763_0.png.png imagette206024391739785473/1739785153_2412871_1338137293_0a9bef9297ae5af0106cc8898cef0c67_rle_crop_3677844027_0.png.png imagette206024391739785473/1739785052_2411877_1338137248_d02c51334a3162b3e39351009513d2e9_rle_crop_3677842728_0.png.png imagette206024391739785473/1739785153_2412871_1338137513_2bbc458233b3ceb6d554cb54fe925235_rle_crop_3677843920_0.png.png imagette206024391739785473/1739784933_2410235_1338136982_5a3d9efb15bd8a5da54c9b01e8a517a8_rle_crop_3677841321_0.png.png imagette206024391739785473/1739784933_2410235_1338136979_479fdaf5a83ab11caa07410ad6c03bca_rle_crop_3677841335_0.png.png imagette206024391739785473/1739785052_2411877_1338137151_a159ac4db700cc1b4e38380369a3bdaf_rle_crop_3677842780_0.png.png imagette206024391739785473/1739785052_2411877_1338137151_a159ac4db700cc1b4e38380369a3bdaf_rle_crop_3677842775_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/4751248cab552c3eeaab5ba73117d1c0_22752109.png imagette206024391739785473 20602440 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=20602440 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338137128: '1739784814_2408666_1338136895_241483b85d7d456dac3235975f27e578_rle_crop_3677840662_0.png', 1338137129: '1739784814_2408666_1338136895_241483b85d7d456dac3235975f27e578_rle_crop_3677840654_0.png', 1338137130: '1739784814_2408666_1338136889_b4f2196eba0e7db014d7b5847005567f_rle_crop_3677840711_0.png', 1338137131: '1739784814_2408666_1338136889_b4f2196eba0e7db014d7b5847005567f_rle_crop_3677840703_0.png', 1338137209: '1739784914_2409970_1338137028_39212a681aff41978790bc3af423014f_rle_crop_3677841041_0.png', 1338137210: '1739784914_2409970_1338137028_39212a681aff41978790bc3af423014f_rle_crop_3677841038_0.png', 1338137276: '1739784933_2410235_1338136987_17ecd0d2b355c882cd244f19b21a0535_rle_crop_3677841296_0.png', 1338137277: '1739784933_2410235_1338136987_17ecd0d2b355c882cd244f19b21a0535_rle_crop_3677841287_0.png', 1338137278: '1739784933_2410235_1338136976_8c67c8bd24954e6b65f4b0ab748508b2_rle_crop_3677841348_0.png', 1338137538: '1739785052_2411877_1338137151_a159ac4db700cc1b4e38380369a3bdaf_rle_crop_3677842772_0.png', 1338137539: '1739785052_2411877_1338137148_c1d5d368038d4c7a6fd492ce9155ec48_rle_crop_3677842790_0.png', 1338137805: '1739785262_2415182_1338137555_2921fb882e5766bddb70a37dd2694a0d_rle_crop_3677844535_0.png', 1338137806: '1739785262_2415182_1338137552_165000040eaf3167d96fe22c600b1003_rle_crop_3677844580_0.png', 1338137807: '1739785262_2415182_1338137550_344c76c1d7d9315f94611c723c254d5a_rle_crop_3677844632_0.png', 1338137922: '1739785394_2417713_1338137745_7c0975c7ce08972c40210a7b8907bb85_rle_crop_3677845776_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/ae080e7a8506a9be93e51d37cc12cde9_94971883.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/4a2af0728c7a9a1cb557a03e0036229b_15609293.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/4d1c9ff05be422ea342d9992671ee150_41313463.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/5b2cf0a879726030ce04d633d4896f83_71629665.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/6ede03afe8811420c2189b562287fef9_20449574.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/9e76bf791a4e3f7c5c8fd7e27a08a2f1_5960537.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/9327bc459c7027e639ea561487371ca5_33198017.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/ac7ae5a113b7d183c975e60f1d462947_1057414.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/03219bb13053aca5c4c70727ba7317eb_99768845.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/65bc927cb17935df9cc38aecd8089343_71094299.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/a4e9b403785ff4d71f405ab1afa6df1f_28542238.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/cd275e209acea81dd585c32459bd1f72_27331259.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/1a7a8f4eb5b738aa090d29f21bc75420_91069058.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/536232ea6459f173323af24f2a8c0b8d_19533854.png change filename to text .imagette206024401739785473/ imagette206024401739785473/1739785052_2411877_1338137151_a159ac4db700cc1b4e38380369a3bdaf_rle_crop_3677842772_0.png.png imagette206024401739785473/1739785262_2415182_1338137555_2921fb882e5766bddb70a37dd2694a0d_rle_crop_3677844535_0.png.png imagette206024401739785473/1739785262_2415182_1338137550_344c76c1d7d9315f94611c723c254d5a_rle_crop_3677844632_0.png.png imagette206024401739785473/1739784814_2408666_1338136895_241483b85d7d456dac3235975f27e578_rle_crop_3677840662_0.png.png imagette206024401739785473/1739785052_2411877_1338137148_c1d5d368038d4c7a6fd492ce9155ec48_rle_crop_3677842790_0.png.png imagette206024401739785473/1739785262_2415182_1338137552_165000040eaf3167d96fe22c600b1003_rle_crop_3677844580_0.png.png imagette206024401739785473/1739784914_2409970_1338137028_39212a681aff41978790bc3af423014f_rle_crop_3677841041_0.png.png imagette206024401739785473/1739784914_2409970_1338137028_39212a681aff41978790bc3af423014f_rle_crop_3677841038_0.png.png imagette206024401739785473/1739784933_2410235_1338136987_17ecd0d2b355c882cd244f19b21a0535_rle_crop_3677841296_0.png.png imagette206024401739785473/1739784933_2410235_1338136987_17ecd0d2b355c882cd244f19b21a0535_rle_crop_3677841287_0.png.png imagette206024401739785473/1739784933_2410235_1338136976_8c67c8bd24954e6b65f4b0ab748508b2_rle_crop_3677841348_0.png.png imagette206024401739785473/1739784814_2408666_1338136895_241483b85d7d456dac3235975f27e578_rle_crop_3677840654_0.png.png imagette206024401739785473/1739784814_2408666_1338136889_b4f2196eba0e7db014d7b5847005567f_rle_crop_3677840711_0.png.png imagette206024401739785473/1739785394_2417713_1338137745_7c0975c7ce08972c40210a7b8907bb85_rle_crop_3677845776_0.png.png imagette206024401739785473/1739784814_2408666_1338136889_b4f2196eba0e7db014d7b5847005567f_rle_crop_3677840703_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b79f0ee4cb9eb537b7b5d185c86d933f_44895292.png imagette206024401739785473 20602448 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=20602448 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338137269: '1739784933_2410235_1338136987_17ecd0d2b355c882cd244f19b21a0535_rle_crop_3677841298_0.png', 1338137270: '1739784933_2410235_1338136982_5a3d9efb15bd8a5da54c9b01e8a517a8_rle_crop_3677841323_0.png', 1338137534: '1739785052_2411877_1338137181_121aa5f742f048bf0e38574237f0ce65_rle_crop_3677842764_0.png', 1338137535: '1739785052_2411877_1338137151_a159ac4db700cc1b4e38380369a3bdaf_rle_crop_3677842779_0.png', 1338137536: '1739785052_2411877_1338137148_c1d5d368038d4c7a6fd492ce9155ec48_rle_crop_3677842794_0.png', 1338137537: '1739785052_2411877_1338137146_c66edcb06591a3d0e8236ca47351addc_rle_crop_3677842809_0.png', 1338137630: '1739785153_2412871_1338137290_bc8cde09c8a92141cfaf82bdf14c479f_rle_crop_3677844066_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/d1df88268ce88701e128377f26ac37c3_11869420.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/9f538b0c8a345ec857bf05096db054f0_42350562.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/dd543367c4615196c44a21ae5a30dbad_3128731.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/a2c9d43b6d704853f835bcb9d602d459_320809.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/ae36a03c31de0b1ac9292334113feb96_98840366.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/7cf1d0fa5c8a598fd8c8a8b9869c6f1a_95376909.png change filename to text .imagette206024481739785474/ imagette206024481739785474/1739784933_2410235_1338136987_17ecd0d2b355c882cd244f19b21a0535_rle_crop_3677841298_0.png.png imagette206024481739785474/1739785052_2411877_1338137181_121aa5f742f048bf0e38574237f0ce65_rle_crop_3677842764_0.png.png imagette206024481739785474/1739785052_2411877_1338137146_c66edcb06591a3d0e8236ca47351addc_rle_crop_3677842809_0.png.png imagette206024481739785474/1739784933_2410235_1338136982_5a3d9efb15bd8a5da54c9b01e8a517a8_rle_crop_3677841323_0.png.png imagette206024481739785474/1739785153_2412871_1338137290_bc8cde09c8a92141cfaf82bdf14c479f_rle_crop_3677844066_0.png.png imagette206024481739785474/1739785052_2411877_1338137151_a159ac4db700cc1b4e38380369a3bdaf_rle_crop_3677842779_0.png.png imagette206024481739785474/1739785052_2411877_1338137148_c1d5d368038d4c7a6fd492ce9155ec48_rle_crop_3677842794_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/0ef837cd225ac80e1eb47be9fd696f59_15758943.png imagette206024481739785474 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20602408 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20602449,20602450,20602451,20602452,20602453,20602454,20602455,20602456,20602457,20602458,20602459,20602460?tags=kraft,flou,Carton_brun,Carton_gris,metal,autre_refus,environnement,mal_croppe,papier,plastique,cartonnette,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1338137874] : ('0.03773459305018665',) no score found for photo 1338137874 apple ('0.03773459305018665',) We are sending mail with results at report@fotonower.com args[1338137872] : ('0.03773459305018665',) no score found for photo 1338137872 apple ('0.03773459305018665',) We are sending mail with results at report@fotonower.com args[1338137869] : ('0.03773459305018665',) no score found for photo 1338137869 apple ('0.03773459305018665',) We are sending mail with results at report@fotonower.com args[1338137866] : ('0.03773459305018665',) no score found for photo 1338137866 apple ('0.03773459305018665',) We are sending mail with results at report@fotonower.com args[1338137864] : ('0.03773459305018665',) no score found for photo 1338137864 apple ('0.03773459305018665',) We are sending mail with results at report@fotonower.com args[1338137804] : ('0.03773459305018665',) no score found for photo 1338137804 apple ('0.03773459305018665',) We are sending mail with results at report@fotonower.com args[1338137802] : ('0.03773459305018665',) no score found for photo 1338137802 apple ('0.03773459305018665',) We are sending mail with results at report@fotonower.com args[1338137800] : ('0.03773459305018665',) no score found for photo 1338137800 apple ('0.03773459305018665',) We are sending mail with results at report@fotonower.com args[1338137797] : ('0.03773459305018665',) no score found for photo 1338137797 apple ('0.03773459305018665',) We are sending mail with results at report@fotonower.com args[1338137794] : ('0.03773459305018665',) no score found for photo 1338137794 apple ('0.03773459305018665',) We are sending mail with results at report@fotonower.com args[1338137790] : ('0.03773459305018665',) no score found for photo 1338137790 apple ('0.03773459305018665',) We are sending mail with results at report@fotonower.com refus_total : 0.03773459305018665 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=20602408 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602408_17-02-2025_10_44_31.pdf results_Auto_P20602408_17-02-2025_10_44_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602408_17-02-2025_10_44_31.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20602408','results_Auto_P20602408_17-02-2025_10_44_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602408_17-02-2025_10_44_31.pdf','pdf','','0.26','0.03773459305018665') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20602408]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338137874, 1338137872, 1338137869, 1338137866, 1338137864, 1338137804, 1338137802, 1338137800, 1338137797, 1338137794, 1338137790] map_info['map_portfolio_photo'] : {20602408: [1338137874, 1338137872, 1338137869, 1338137866, 1338137864, 1338137804, 1338137802, 1338137800, 1338137797, 1338137794, 1338137790, 1338137751, 1338137748, 1338137745, 1338137702, 1338137615, 1338137613, 1338137610, 1338137597, 1338137594, 1338137558, 1338137555, 1338137552, 1338137550, 1338137513, 1338137511, 1338137508, 1338137505, 1338137503, 1338137311, 1338137305, 1338137301, 1338137297, 1338137293, 1338137290, 1338137248, 1338137245, 1338137242, 1338137240, 1338137186, 1338137183, 1338137181, 1338137151, 1338137148, 1338137146, 1338137042, 1338137030, 1338137028, 1338136990, 1338136987, 1338136985, 1338136982, 1338136979, 1338136976, 1338136941, 1338136938, 1338136935, 1338136932, 1338136895, 1338136892, 1338136889, 1338136886, 1338136884]} final : False mtd_id 4302 list_pids : [1338137874, 1338137872, 1338137869, 1338137866, 1338137864, 1338137804, 1338137802, 1338137800, 1338137797, 1338137794, 1338137790] 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, '2592768') ('4302', '20602408', '1338137874', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137872', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137869', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137866', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137864', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137804', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137802', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137800', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137797', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137794', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137790', None, None, None, None, None, '2592768') 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', '20602408', '1338137874', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137872', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137869', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137866', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137864', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137804', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137802', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137800', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137797', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137794', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137790', None, None, None, None, None, '2592768')] time used for this insertion : 0.013729333877563477 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.948349714279175 time spend to save output : 0.014031648635864258 total time spend for step 4 : 3.962381362915039 step5:split_time_score Mon Feb 17 10:44:35 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 : ['20602408'] 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 : [('20602408',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20602408) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338137872: {'path': 'temp/1739785471_2858765_1338137872_4981abaa08670ebe72bc1b70f5fa7d83.jpg', 'extension': 'jpg'}, 1338137874: {'path': 'temp/1739785471_2858765_1338137874_ec0aab98a45cd476b86ae52794c0c4fe.jpg', 'extension': 'jpg'}, 1338137864: {'path': 'temp/1739785471_2858765_1338137864_5cdd603c9e62c7e963a67a93ad225f52.jpg', 'extension': 'jpg'}, 1338137866: {'path': 'temp/1739785471_2858765_1338137866_37291b0ec9bde859d219199c71f17dac.jpg', 'extension': 'jpg'}, 1338137869: {'path': 'temp/1739785471_2858765_1338137869_314ef094c93a4f18bd6cf047a73cacf1.jpg', 'extension': 'jpg'}, 1338137800: {'path': 'temp/1739785471_2858765_1338137800_b48a1039cefebc83f8bba40dc414d07f.jpg', 'extension': 'jpg'}, 1338137802: {'path': 'temp/1739785471_2858765_1338137802_71dfe78ccc4bc4dcd6e2829b33d70b79.jpg', 'extension': 'jpg'}, 1338137804: {'path': 'temp/1739785471_2858765_1338137804_8ca55a3c1d5ab101638e5f20fde1497a.jpg', 'extension': 'jpg'}, 1338137790: {'path': 'temp/1739785471_2858765_1338137790_428c4037f14f484615cd2091052b816c.jpg', 'extension': 'jpg'}, 1338137794: {'path': 'temp/1739785471_2858765_1338137794_369e81875cdedafb026b1d25da558f92.jpg', 'extension': 'jpg'}, 1338137797: {'path': 'temp/1739785471_2858765_1338137797_2d0793fe296272cce7026e4b8871eafb.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 = 20602408; (('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 = 20602408 group by h (('10', 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=20602408 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 (20602408) 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 (20602408) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17022025 20602408 Nombre de photos uploadées : 63 / 23040 (0%) 17022025 20602408 Nombre de photos taguées (types de déchets): 0 / 63 (0%) 17022025 20602408 Nombre de photos taguées (volume) : 0 / 63 (0%) [{'photo_id': 1338136895, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/241483b85d7d456dac3235975f27e578.jpg', 'username': None, 'uploaded_at': 1739784667, 'text': 'image_17022025_10_30_04_010164m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338136892, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/f924b5729357db34008d1742b611a9ea.jpg', 'username': None, 'uploaded_at': 1739784667, 'text': 'image_17022025_10_30_14_010138m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1338136889, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b4f2196eba0e7db014d7b5847005567f.jpg', 'username': None, 'uploaded_at': 1739784667, 'text': 'image_17022025_10_30_24_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338136886, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b6dea48accda72bf2ce7b28f470d26f4.jpg', 'username': None, 'uploaded_at': 1739784667, 'text': 'image_17022025_10_30_35_010172m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ??????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0028858184814453125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20602408, '2025-02-17' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1607134,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023158550262451172 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= 1607134 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1607134, 'dashboard_run_id': 1615190, 'mtr_portfolio_id': 20600895, 'dashboard_result_id': 8925247, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600895_17-02-2025_10_02_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600909, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1615190, 'mtr_portfolio_id': 20601335, 'dashboard_result_id': 8925248, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601335_17-02-2025_10_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601374, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1615190, 'mtr_portfolio_id': 20601878, 'dashboard_result_id': 8925249, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601878_17-02-2025_10_32_56.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601911, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601912, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601917, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1615190, 'mtr_portfolio_id': 20602408, 'dashboard_result_id': 8925250, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602408_17-02-2025_10_42_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20602441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602448, '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 = 20600895 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': 2592645, 'mtr_portfolio_id': 20600895, 'created_at': datetime.datetime(2025, 2, 17, 10, 2, 57), 'result': '0.043650380337752946', 'result_long': None, 'result_double': None}] Qualite : 0.043650380337752946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20600895 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600895_17-02-2025_10_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20600895 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600895_17-02-2025_10_02_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600909, 'pht': 3726}}" where mtr_portfolio_id = 20600895 and dashboard_run_id = 1615190 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`=20600895 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8925247, 0.043650380337752946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600895_17-02-2025_10_02_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600909, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20601335 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': 2592685, 'mtr_portfolio_id': 20601335, 'created_at': datetime.datetime(2025, 2, 17, 10, 16, 29), 'result': '0.037630111058154725', 'result_long': None, 'result_double': None}] Qualite : 0.037630111058154725 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20601335 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601335_17-02-2025_10_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20601335 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601335_17-02-2025_10_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601374, 'pht': 3726}}" where mtr_portfolio_id = 20601335 and dashboard_run_id = 1615190 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`=20601335 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8925248, 0.037630111058154725, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601335_17-02-2025_10_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601374, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20601878 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': 2592723, 'mtr_portfolio_id': 20601878, 'created_at': datetime.datetime(2025, 2, 17, 10, 32, 56), 'result': '0.04393846946342366', 'result_long': None, 'result_double': None}] Qualite : 0.04393846946342366 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20601878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601878_17-02-2025_10_32_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20601878 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601878_17-02-2025_10_32_56.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601911, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601912, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601917, 'pht': 3726}}" where mtr_portfolio_id = 20601878 and dashboard_run_id = 1615190 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`=20601878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8925249, 0.04393846946342366, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601878_17-02-2025_10_32_56.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601911, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601912, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601917, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20602408 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': 2592768, 'mtr_portfolio_id': 20602408, 'created_at': datetime.datetime(2025, 2, 17, 10, 44, 31), 'result': '0.03773459305018665', 'result_long': None, 'result_double': None}] Qualite : 0.03773459305018665 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20602408 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602408_17-02-2025_10_44_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20602408 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602408_17-02-2025_10_44_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20602441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602448, 'pht': 3726}}" where mtr_portfolio_id = 20602408 and dashboard_run_id = 1615190 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`=20602408 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8925250, 0.03773459305018665, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602408_17-02-2025_10_44_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20602441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602448, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20600895,20601335,20601878,20602408) result : ((1338130997,), (1338130999,), (1338131004,), (1338131007,), (1338131009,), (1338131205,), (1338131206,), (1338131209,), (1338131211,), (1338131244,), (1338131246,), (1338131249,), (1338131254,), (1338131257,), (1338131278,), (1338131280,), (1338131283,), (1338131286,), (1338131309,), (1338131310,), (1338131432,), (1338131437,), (1338131504,), (1338131556,), (1338131559,), (1338131562,), (1338131608,), (1338131611,), (1338131655,), (1338131657,), (1338131659,), (1338131662,), (1338131683,), (1338131685,), (1338131688,), (1338131702,), (1338131706,), (1338131781,), (1338131783,), (1338131796,), (1338131798,), (1338131891,), (1338131893,), (1338131896,), (1338131899,), (1338131902,), (1338131941,), (1338131944,), (1338131948,), (1338131952,), (1338131992,), (1338132000,), (1338132013,), (1338132023,), (1338132027,), (1338132032,), (1338132095,), (1338132067,), (1338132070,), (1338132074,), (1338132092,), (1338132166,), (1338132169,), (1338132172,), (1338132175,), (1338132187,), (1338132190,), (1338132406,), (1338132568,), (1338132598,), (1338132601,), (1338132604,), (1338132608,), (1338132956,), (1338132958,), (1338132961,), (1338132999,), (1338133001,), (1338133004,), (1338133007,), (1338133009,), (1338133012,), (1338133040,), (1338133043,), (1338133046,), (1338133049,), (1338133052,), (1338133054,), (1338133092,), (1338133094,), (1338133097,), (1338133100,), (1338133330,), (1338133342,), (1338133347,), (1338133350,), (1338133352,), (1338133361,), (1338133386,), (1338133389,), (1338133392,), (1338133430,), (1338133432,), (1338133435,), (1338133438,), (1338133463,), (1338133465,), (1338133468,), (1338133470,), (1338133474,), (1338133479,), (1338133516,), (1338133518,), (1338133521,), (1338133541,), (1338133628,), (1338133630,), (1338133633,), (1338133636,), (1338134140,), (1338134142,), (1338134145,), (1338134148,), (1338134155,), (1338134251,), (1338134347,), (1338134349,), (1338134353,), (1338134356,), (1338134393,), (1338134386,), (1338134388,), (1338134390,), (1338134434,), (1338134446,), (1338134449,), (1338134452,), (1338134456,), (1338134463,), (1338134485,), (1338134490,), (1338134501,), (1338134505,), (1338134800,), (1338134878,), (1338134945,), (1338135153,), (1338135265,), (1338135406,), (1338135608,), (1338135610,), (1338135794,), (1338135836,), (1338135838,), (1338135850,), (1338135993,), (1338135996,), (1338135999,), (1338136002,), (1338136004,), (1338136029,), (1338136031,), (1338136034,), (1338136037,), (1338136041,), (1338136053,), (1338136076,), (1338136078,), (1338136082,), (1338136085,), (1338136087,), (1338136194,), (1338136197,), (1338136200,), (1338136203,), (1338136211,), (1338136218,), (1338136238,), (1338136261,), (1338136264,), (1338136267,), (1338136292,), (1338136294,), (1338136301,), (1338136310,), (1338136313,), (1338136318,), (1338136353,), (1338136356,), (1338136359,), (1338136442,), (1338136448,), (1338136451,), (1338136453,), (1338136456,), (1338136459,), (1338136493,), (1338136536,), (1338136625,), (1338136710,), (1338136817,), (1338136826,), (1338136830,), (1338136842,), (1338136851,), (1338136855,), (1338136897,), (1338136884,), (1338136886,), (1338136889,), (1338136892,), (1338136895,), (1338136932,), (1338136935,), (1338136938,), (1338136941,), (1338136976,), (1338136979,), (1338136982,), (1338136985,), (1338136987,), (1338136990,), (1338137028,), (1338137030,), (1338137042,), (1338137146,), (1338137148,), (1338137151,), (1338137181,), (1338137183,), (1338137186,), (1338137240,), (1338137242,), (1338137245,), (1338137248,), (1338137290,), (1338137293,), (1338137297,), (1338137301,), (1338137305,), (1338137311,), (1338137503,), (1338137505,), (1338137508,), (1338137511,), (1338137513,), (1338137550,), (1338137552,), (1338137555,), (1338137558,), (1338137594,), (1338137597,), (1338137610,), (1338137613,), (1338137615,), (1338137702,), (1338137745,), (1338137748,), (1338137751,), (1338137790,), (1338137794,), (1338137797,), (1338137800,), (1338137802,), (1338137804,), (1338137864,), (1338137866,), (1338137869,), (1338137872,), (1338137874,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17022025': {'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([20602408]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338137874, 1338137872, 1338137869, 1338137866, 1338137864, 1338137804, 1338137802, 1338137800, 1338137797, 1338137794, 1338137790] map_info['map_portfolio_photo'] : {20602408: [1338137874, 1338137872, 1338137869, 1338137866, 1338137864, 1338137804, 1338137802, 1338137800, 1338137797, 1338137794, 1338137790, 1338137751, 1338137748, 1338137745, 1338137702, 1338137615, 1338137613, 1338137610, 1338137597, 1338137594, 1338137558, 1338137555, 1338137552, 1338137550, 1338137513, 1338137511, 1338137508, 1338137505, 1338137503, 1338137311, 1338137305, 1338137301, 1338137297, 1338137293, 1338137290, 1338137248, 1338137245, 1338137242, 1338137240, 1338137186, 1338137183, 1338137181, 1338137151, 1338137148, 1338137146, 1338137042, 1338137030, 1338137028, 1338136990, 1338136987, 1338136985, 1338136982, 1338136979, 1338136976, 1338136941, 1338136938, 1338136935, 1338136932, 1338136895, 1338136892, 1338136889, 1338136886, 1338136884]} final : True mtd_id 4302 list_pids : [1338137874, 1338137872, 1338137869, 1338137866, 1338137864, 1338137804, 1338137802, 1338137800, 1338137797, 1338137794, 1338137790] Looping around the photos to save general results len do output : 1 /20602408Didn'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, '2592768') ('4302', '20602408', '1338137874', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137872', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137869', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137866', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137864', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137804', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137802', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137800', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137797', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137794', None, None, None, None, None, '2592768') ('4302', None, None, None, None, None, None, None, '2592768') ('4302', '20602408', '1338137790', None, None, None, None, None, '2592768') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '20602408', 'None', None, None, None, None, '2592768'), ('4302', '20602408', '1338137874', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137872', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137869', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137866', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137864', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137804', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137802', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137800', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137797', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137794', None, None, None, None, None, '2592768'), ('4302', '20602408', '1338137790', None, None, None, None, None, '2592768')] time used for this insertion : 0.013043403625488281 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4016718864440918 time spend to save output : 0.013217449188232422 total time spend for step 5 : 0.4148893356323242 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 (2592768) 2.47user 2.55system 0:10.45elapsed 48%CPU (0avgtext+0avgdata 160540maxresident)k 10072inputs+14536outputs (65major+75831minor)pagefaults 0swaps