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 : 1843967 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 (2570804) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2570804) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20398181 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2570804'] with mtr_portfolio_ids : ['20398181'] and first list_photo_ids : [] new path : /proc/1843967/ Name: python3 Umask: 0002 State: R (running) Tgid: 1843967 Ngid: 0 Pid: 1843967 PPid: 1843966 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1843967 NSpid: 1843967 NSpgid: 1842287 NSsid: 1842287 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98664 kB VmRSS: 98664 kB RssAnon: 59756 kB RssFile: 38908 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 604 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: 51 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1843967', 'Ngid': '0', 'Pid': '1843967', 'PPid': '1843966', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1843967', 'NSpid': '1843967', 'NSpgid': '1842287', 'NSsid': '1842287', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98664 kB', 'VmRSS': '98664 kB', 'RssAnon': '59756 kB', 'RssFile': '38908 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '51', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '1843967', '1106928', '0', '1106928', '865680', '98664', b'', 'marlene', '2570804') 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 (20398181) 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 (2570804 ) ) 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 (20398181) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1336458241, 'portfolio_id': 20398181}, {'photo_id': 1336458160, 'portfolio_id': 20398181}, {'photo_id': 1336458102, 'portfolio_id': 20398181}, {'photo_id': 1336457817, 'portfolio_id': 20398181}, {'photo_id': 1336457812, 'portfolio_id': 20398181}, {'photo_id': 1336457718, 'portfolio_id': 20398181}, {'photo_id': 1336457667, 'portfolio_id': 20398181}, {'photo_id': 1336457664, 'portfolio_id': 20398181}, {'photo_id': 1336457662, 'portfolio_id': 20398181}, {'photo_id': 1336457635, 'portfolio_id': 20398181}, {'photo_id': 1336457627, 'portfolio_id': 20398181}, {'photo_id': 1336457625, 'portfolio_id': 20398181}, {'photo_id': 1336457623, 'portfolio_id': 20398181}, {'photo_id': 1336457622, 'portfolio_id': 20398181}, {'photo_id': 1336457592, 'portfolio_id': 20398181}, {'photo_id': 1336457591, 'portfolio_id': 20398181}, {'photo_id': 1336457589, 'portfolio_id': 20398181}, {'photo_id': 1336457428, 'portfolio_id': 20398181}, {'photo_id': 1336457423, 'portfolio_id': 20398181}, {'photo_id': 1336457411, 'portfolio_id': 20398181}, {'photo_id': 1336457403, 'portfolio_id': 20398181}, {'photo_id': 1336457399, 'portfolio_id': 20398181}, {'photo_id': 1336457395, 'portfolio_id': 20398181}, {'photo_id': 1336457146, 'portfolio_id': 20398181}, {'photo_id': 1336457131, 'portfolio_id': 20398181}, {'photo_id': 1336457055, 'portfolio_id': 20398181}, {'photo_id': 1336456801, 'portfolio_id': 20398181}, {'photo_id': 1336456795, 'portfolio_id': 20398181}, {'photo_id': 1336456794, 'portfolio_id': 20398181}, {'photo_id': 1336456789, 'portfolio_id': 20398181}, {'photo_id': 1336456778, 'portfolio_id': 20398181}, {'photo_id': 1336456705, 'portfolio_id': 20398181}, {'photo_id': 1336456702, 'portfolio_id': 20398181}, {'photo_id': 1336456701, 'portfolio_id': 20398181}, {'photo_id': 1336456700, 'portfolio_id': 20398181}, {'photo_id': 1336456699, 'portfolio_id': 20398181}, {'photo_id': 1336456659, 'portfolio_id': 20398181}, {'photo_id': 1336456629, 'portfolio_id': 20398181}, {'photo_id': 1336456628, 'portfolio_id': 20398181}, {'photo_id': 1336456600, 'portfolio_id': 20398181}, {'photo_id': 1336456393, 'portfolio_id': 20398181}, {'photo_id': 1336456299, 'portfolio_id': 20398181}, {'photo_id': 1336456056, 'portfolio_id': 20398181}, {'photo_id': 1336455845, 'portfolio_id': 20398181}, {'photo_id': 1336455842, 'portfolio_id': 20398181}, {'photo_id': 1336455816, 'portfolio_id': 20398181}, {'photo_id': 1336455813, 'portfolio_id': 20398181}, {'photo_id': 1336455812, 'portfolio_id': 20398181}, {'photo_id': 1336455806, 'portfolio_id': 20398181}, {'photo_id': 1336455802, 'portfolio_id': 20398181}, {'photo_id': 1336455764, 'portfolio_id': 20398181}, {'photo_id': 1336455678, 'portfolio_id': 20398181}, {'photo_id': 1336455665, 'portfolio_id': 20398181}, {'photo_id': 1336455661, 'portfolio_id': 20398181}, {'photo_id': 1336455659, 'portfolio_id': 20398181}, {'photo_id': 1336455658, 'portfolio_id': 20398181}, {'photo_id': 1336455460, 'portfolio_id': 20398181}, {'photo_id': 1336455458, 'portfolio_id': 20398181}, {'photo_id': 1336455457, 'portfolio_id': 20398181}] map_portfolio_id_photo_id: {20398181: [1336458241, 1336458160, 1336458102, 1336457817, 1336457812, 1336457718, 1336457667, 1336457664, 1336457662, 1336457635, 1336457627, 1336457625, 1336457623, 1336457622, 1336457592, 1336457591, 1336457589, 1336457428, 1336457423, 1336457411, 1336457403, 1336457399, 1336457395, 1336457146, 1336457131, 1336457055, 1336456801, 1336456795, 1336456794, 1336456789, 1336456778, 1336456705, 1336456702, 1336456701, 1336456700, 1336456699, 1336456659, 1336456629, 1336456628, 1336456600, 1336456393, 1336456299, 1336456056, 1336455845, 1336455842, 1336455816, 1336455813, 1336455812, 1336455806, 1336455802, 1336455764, 1336455678, 1336455665, 1336455661, 1336455659, 1336455658, 1336455460, 1336455458, 1336455457]} ##### 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.014519214630126953 #### 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 10 10:58:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20398181) 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 : 20398181 get user id for portfolio 20398181 get sub ptf for main ptf 20398181, type 3726 and hashtags ['papier', 'cartonnette', 'autre_refus', 'Carton_brun', 'kraft', 'Carton_gris', 'mal_croppe', 'environnement', 'Teint_Dans_La_Masse', 'plastique', 'flou', 'metal'] 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`=20398181 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','autre_refus','Carton_brun','kraft','Carton_gris','mal_croppe','environnement','Teint_Dans_La_Masse','plastique','flou','metal')) 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`=20398181 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','autre_refus','Carton_brun','kraft','Carton_gris','mal_croppe','environnement','Teint_Dans_La_Masse','plastique','flou','metal')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20398181, 'sub_port_id': 20398185, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077513, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 58)}, 'mal_croppe': {'main_port_id': 20398181, 'sub_port_id': 20398186, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077514, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 58)}, 'metal': {'main_port_id': 20398181, 'sub_port_id': 20398187, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077515, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 58)}, 'papier': {'main_port_id': 20398181, 'sub_port_id': 20398188, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077516, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 58)}, 'autre_refus': {'main_port_id': 20398181, 'sub_port_id': 20398189, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077517, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 58)}, 'cartonnette': {'main_port_id': 20398181, 'sub_port_id': 20398190, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077518, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 58)}, 'plastique': {'main_port_id': 20398181, 'sub_port_id': 20398191, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077519, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 58)}, 'Carton_brun': {'main_port_id': 20398181, 'sub_port_id': 20398192, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077520, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 58)}, 'flou': {'main_port_id': 20398181, 'sub_port_id': 20398193, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077521, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 58)}, 'Carton_gris': {'main_port_id': 20398181, 'sub_port_id': 20398194, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077522, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 58)}, 'environnement': {'main_port_id': 20398181, 'sub_port_id': 20398195, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077523, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20398181, 'sub_port_id': 20398196, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077524, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20398185 , 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=20398181 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 (20398185) result : ((1336456802,), (1336457329,), (1336458173,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20398181) result : ((1336455457,), (1336455458,), (1336455460,), (1336455658,), (1336455659,), (1336455661,), (1336455665,), (1336455678,), (1336455764,), (1336455802,), (1336455806,), (1336455812,), (1336455813,), (1336455816,), (1336455842,), (1336455845,), (1336456056,), (1336456299,), (1336456393,), (1336456600,), (1336456628,), (1336456629,), (1336456659,), (1336456699,), (1336456700,), (1336456701,), (1336456702,), (1336456705,), (1336456778,), (1336456789,), (1336456794,), (1336456795,), (1336456801,), (1336457055,), (1336457131,), (1336457146,), (1336457395,), (1336457399,), (1336457403,), (1336457411,), (1336457423,), (1336457428,), (1336457589,), (1336457591,), (1336457592,), (1336457622,), (1336457623,), (1336457625,), (1336457627,), (1336457635,), (1336457662,), (1336457664,), (1336457667,), (1336457718,), (1336457812,), (1336457817,), (1336458102,), (1336458160,), (1336458241,)) 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 (1336456600,1336456700) 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 20398186 , 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=20398181 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 (20398186) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20398181) result : ((1336455457,), (1336455458,), (1336455460,), (1336455658,), (1336455659,), (1336455661,), (1336455665,), (1336455678,), (1336455764,), (1336455802,), (1336455806,), (1336455812,), (1336455813,), (1336455816,), (1336455842,), (1336455845,), (1336456056,), (1336456299,), (1336456393,), (1336456600,), (1336456628,), (1336456629,), (1336456659,), (1336456699,), (1336456700,), (1336456701,), (1336456702,), (1336456705,), (1336456778,), (1336456789,), (1336456794,), (1336456795,), (1336456801,), (1336457055,), (1336457131,), (1336457146,), (1336457395,), (1336457399,), (1336457403,), (1336457411,), (1336457423,), (1336457428,), (1336457589,), (1336457591,), (1336457592,), (1336457622,), (1336457623,), (1336457625,), (1336457627,), (1336457635,), (1336457662,), (1336457664,), (1336457667,), (1336457718,), (1336457812,), (1336457817,), (1336458102,), (1336458160,), (1336458241,)) 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 (1336456600,1336456700) 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 20398187 , 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=20398181 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 (20398187) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20398181) result : ((1336455457,), (1336455458,), (1336455460,), (1336455658,), (1336455659,), (1336455661,), (1336455665,), (1336455678,), (1336455764,), (1336455802,), (1336455806,), (1336455812,), (1336455813,), (1336455816,), (1336455842,), (1336455845,), (1336456056,), (1336456299,), (1336456393,), (1336456600,), (1336456628,), (1336456629,), (1336456659,), (1336456699,), (1336456700,), (1336456701,), (1336456702,), (1336456705,), (1336456778,), (1336456789,), (1336456794,), (1336456795,), (1336456801,), (1336457055,), (1336457131,), (1336457146,), (1336457395,), (1336457399,), (1336457403,), (1336457411,), (1336457423,), (1336457428,), (1336457589,), (1336457591,), (1336457592,), (1336457622,), (1336457623,), (1336457625,), (1336457627,), (1336457635,), (1336457662,), (1336457664,), (1336457667,), (1336457718,), (1336457812,), (1336457817,), (1336458102,), (1336458160,), (1336458241,)) 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 (1336456600,1336456700) 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 20398188 , 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=20398181 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 (20398188) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20398181) result : ((1336455457,), (1336455458,), (1336455460,), (1336455658,), (1336455659,), (1336455661,), (1336455665,), (1336455678,), (1336455764,), (1336455802,), (1336455806,), (1336455812,), (1336455813,), (1336455816,), (1336455842,), (1336455845,), (1336456056,), (1336456299,), (1336456393,), (1336456600,), (1336456628,), (1336456629,), (1336456659,), (1336456699,), (1336456700,), (1336456701,), (1336456702,), (1336456705,), (1336456778,), (1336456789,), (1336456794,), (1336456795,), (1336456801,), (1336457055,), (1336457131,), (1336457146,), (1336457395,), (1336457399,), (1336457403,), (1336457411,), (1336457423,), (1336457428,), (1336457589,), (1336457591,), (1336457592,), (1336457622,), (1336457623,), (1336457625,), (1336457627,), (1336457635,), (1336457662,), (1336457664,), (1336457667,), (1336457718,), (1336457812,), (1336457817,), (1336458102,), (1336458160,), (1336458241,)) 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 (1336456600,1336456700) 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 20398189 , 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=20398181 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 (20398189) result : ((1336455807,), (1336457409,), (1336457611,), (1336458098,), (1336458100,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20398181) result : ((1336455457,), (1336455458,), (1336455460,), (1336455658,), (1336455659,), (1336455661,), (1336455665,), (1336455678,), (1336455764,), (1336455802,), (1336455806,), (1336455812,), (1336455813,), (1336455816,), (1336455842,), (1336455845,), (1336456056,), (1336456299,), (1336456393,), (1336456600,), (1336456628,), (1336456629,), (1336456659,), (1336456699,), (1336456700,), (1336456701,), (1336456702,), (1336456705,), (1336456778,), (1336456789,), (1336456794,), (1336456795,), (1336456801,), (1336457055,), (1336457131,), (1336457146,), (1336457395,), (1336457399,), (1336457403,), (1336457411,), (1336457423,), (1336457428,), (1336457589,), (1336457591,), (1336457592,), (1336457622,), (1336457623,), (1336457625,), (1336457627,), (1336457635,), (1336457662,), (1336457664,), (1336457667,), (1336457718,), (1336457812,), (1336457817,), (1336458102,), (1336458160,), (1336458241,)) 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 (1336456600,1336456700) 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 20398190 , 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=20398181 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 (20398190) result : ((1336455810,), (1336455811,), (1336456798,), (1336457325,), (1336457326,), (1336457327,), (1336457415,), (1336457416,), (1336457417,), (1336457418,), (1336457419,), (1336457420,), (1336457421,), (1336457632,), (1336457633,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20398181) result : ((1336455457,), (1336455458,), (1336455460,), (1336455658,), (1336455659,), (1336455661,), (1336455665,), (1336455678,), (1336455764,), (1336455802,), (1336455806,), (1336455812,), (1336455813,), (1336455816,), (1336455842,), (1336455845,), (1336456056,), (1336456299,), (1336456393,), (1336456600,), (1336456628,), (1336456629,), (1336456659,), (1336456699,), (1336456700,), (1336456701,), (1336456702,), (1336456705,), (1336456778,), (1336456789,), (1336456794,), (1336456795,), (1336456801,), (1336457055,), (1336457131,), (1336457146,), (1336457395,), (1336457399,), (1336457403,), (1336457411,), (1336457423,), (1336457428,), (1336457589,), (1336457591,), (1336457592,), (1336457622,), (1336457623,), (1336457625,), (1336457627,), (1336457635,), (1336457662,), (1336457664,), (1336457667,), (1336457718,), (1336457812,), (1336457817,), (1336458102,), (1336458160,), (1336458241,)) 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 (1336456600,1336456700) 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 20398191 , 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=20398181 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 (20398191) result : ((1336456777,), (1336457424,), (1336457425,), (1336457636,), (1336458155,), (1336458157,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20398181) result : ((1336455457,), (1336455458,), (1336455460,), (1336455658,), (1336455659,), (1336455661,), (1336455665,), (1336455678,), (1336455764,), (1336455802,), (1336455806,), (1336455812,), (1336455813,), (1336455816,), (1336455842,), (1336455845,), (1336456056,), (1336456299,), (1336456393,), (1336456600,), (1336456628,), (1336456629,), (1336456659,), (1336456699,), (1336456700,), (1336456701,), (1336456702,), (1336456705,), (1336456778,), (1336456789,), (1336456794,), (1336456795,), (1336456801,), (1336457055,), (1336457131,), (1336457146,), (1336457395,), (1336457399,), (1336457403,), (1336457411,), (1336457423,), (1336457428,), (1336457589,), (1336457591,), (1336457592,), (1336457622,), (1336457623,), (1336457625,), (1336457627,), (1336457635,), (1336457662,), (1336457664,), (1336457667,), (1336457718,), (1336457812,), (1336457817,), (1336458102,), (1336458160,), (1336458241,)) 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 (1336456600,1336456700) 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 20398192 , 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=20398181 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 (20398192) result : ((1336456776,), (1336456799,), (1336458136,), (1336458137,), (1336458138,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20398181) result : ((1336455457,), (1336455458,), (1336455460,), (1336455658,), (1336455659,), (1336455661,), (1336455665,), (1336455678,), (1336455764,), (1336455802,), (1336455806,), (1336455812,), (1336455813,), (1336455816,), (1336455842,), (1336455845,), (1336456056,), (1336456299,), (1336456393,), (1336456600,), (1336456628,), (1336456629,), (1336456659,), (1336456699,), (1336456700,), (1336456701,), (1336456702,), (1336456705,), (1336456778,), (1336456789,), (1336456794,), (1336456795,), (1336456801,), (1336457055,), (1336457131,), (1336457146,), (1336457395,), (1336457399,), (1336457403,), (1336457411,), (1336457423,), (1336457428,), (1336457589,), (1336457591,), (1336457592,), (1336457622,), (1336457623,), (1336457625,), (1336457627,), (1336457635,), (1336457662,), (1336457664,), (1336457667,), (1336457718,), (1336457812,), (1336457817,), (1336458102,), (1336458160,), (1336458241,)) 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 (1336456600,1336456700) 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 20398193 , 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=20398181 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 (20398193) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20398181) result : ((1336455457,), (1336455458,), (1336455460,), (1336455658,), (1336455659,), (1336455661,), (1336455665,), (1336455678,), (1336455764,), (1336455802,), (1336455806,), (1336455812,), (1336455813,), (1336455816,), (1336455842,), (1336455845,), (1336456056,), (1336456299,), (1336456393,), (1336456600,), (1336456628,), (1336456629,), (1336456659,), (1336456699,), (1336456700,), (1336456701,), (1336456702,), (1336456705,), (1336456778,), (1336456789,), (1336456794,), (1336456795,), (1336456801,), (1336457055,), (1336457131,), (1336457146,), (1336457395,), (1336457399,), (1336457403,), (1336457411,), (1336457423,), (1336457428,), (1336457589,), (1336457591,), (1336457592,), (1336457622,), (1336457623,), (1336457625,), (1336457627,), (1336457635,), (1336457662,), (1336457664,), (1336457667,), (1336457718,), (1336457812,), (1336457817,), (1336458102,), (1336458160,), (1336458241,)) 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 (1336456600,1336456700) 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 20398194 , 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=20398181 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 (20398194) result : ((1336455808,), (1336456773,), (1336456774,), (1336456775,), (1336456797,), (1336457324,), (1336457412,), (1336457612,), (1336457630,), (1336457631,), (1336458099,), (1336458101,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20398181) result : ((1336455457,), (1336455458,), (1336455460,), (1336455658,), (1336455659,), (1336455661,), (1336455665,), (1336455678,), (1336455764,), (1336455802,), (1336455806,), (1336455812,), (1336455813,), (1336455816,), (1336455842,), (1336455845,), (1336456056,), (1336456299,), (1336456393,), (1336456600,), (1336456628,), (1336456629,), (1336456659,), (1336456699,), (1336456700,), (1336456701,), (1336456702,), (1336456705,), (1336456778,), (1336456789,), (1336456794,), (1336456795,), (1336456801,), (1336457055,), (1336457131,), (1336457146,), (1336457395,), (1336457399,), (1336457403,), (1336457411,), (1336457423,), (1336457428,), (1336457589,), (1336457591,), (1336457592,), (1336457622,), (1336457623,), (1336457625,), (1336457627,), (1336457635,), (1336457662,), (1336457664,), (1336457667,), (1336457718,), (1336457812,), (1336457817,), (1336458102,), (1336458160,), (1336458241,)) 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 (1336456600,1336456700) 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 20398195 , 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=20398181 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 (20398195) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20398181) result : ((1336455457,), (1336455458,), (1336455460,), (1336455658,), (1336455659,), (1336455661,), (1336455665,), (1336455678,), (1336455764,), (1336455802,), (1336455806,), (1336455812,), (1336455813,), (1336455816,), (1336455842,), (1336455845,), (1336456056,), (1336456299,), (1336456393,), (1336456600,), (1336456628,), (1336456629,), (1336456659,), (1336456699,), (1336456700,), (1336456701,), (1336456702,), (1336456705,), (1336456778,), (1336456789,), (1336456794,), (1336456795,), (1336456801,), (1336457055,), (1336457131,), (1336457146,), (1336457395,), (1336457399,), (1336457403,), (1336457411,), (1336457423,), (1336457428,), (1336457589,), (1336457591,), (1336457592,), (1336457622,), (1336457623,), (1336457625,), (1336457627,), (1336457635,), (1336457662,), (1336457664,), (1336457667,), (1336457718,), (1336457812,), (1336457817,), (1336458102,), (1336458160,), (1336458241,)) 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 (1336456600,1336456700) 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 20398196 , 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=20398181 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 (20398196) result : ((1336455804,), (1336455805,), (1336456826,), (1336457323,), (1336457406,), (1336457628,), (1336457629,), (1336458097,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20398181) result : ((1336455457,), (1336455458,), (1336455460,), (1336455658,), (1336455659,), (1336455661,), (1336455665,), (1336455678,), (1336455764,), (1336455802,), (1336455806,), (1336455812,), (1336455813,), (1336455816,), (1336455842,), (1336455845,), (1336456056,), (1336456299,), (1336456393,), (1336456600,), (1336456628,), (1336456629,), (1336456659,), (1336456699,), (1336456700,), (1336456701,), (1336456702,), (1336456705,), (1336456778,), (1336456789,), (1336456794,), (1336456795,), (1336456801,), (1336457055,), (1336457131,), (1336457146,), (1336457395,), (1336457399,), (1336457403,), (1336457411,), (1336457423,), (1336457428,), (1336457589,), (1336457591,), (1336457592,), (1336457622,), (1336457623,), (1336457625,), (1336457627,), (1336457635,), (1336457662,), (1336457664,), (1336457667,), (1336457718,), (1336457812,), (1336457817,), (1336458102,), (1336458160,), (1336458241,)) 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 (1336456600,1336456700) 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`=20398181 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','autre_refus','Carton_brun','kraft','Carton_gris','mal_croppe','environnement','Teint_Dans_La_Masse','plastique','flou','metal')) 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`=20398181 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','autre_refus','Carton_brun','kraft','Carton_gris','mal_croppe','environnement','Teint_Dans_La_Masse','plastique','flou','metal')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20398181, 'sub_port_id': 20398197, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077525, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 59)}, 'mal_croppe': {'main_port_id': 20398181, 'sub_port_id': 20398198, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077526, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 59)}, 'metal': {'main_port_id': 20398181, 'sub_port_id': 20398199, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077527, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 59)}, 'papier': {'main_port_id': 20398181, 'sub_port_id': 20398200, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077528, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 59)}, 'autre_refus': {'main_port_id': 20398181, 'sub_port_id': 20398201, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077529, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 59)}, 'cartonnette': {'main_port_id': 20398181, 'sub_port_id': 20398202, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077530, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 59)}, 'plastique': {'main_port_id': 20398181, 'sub_port_id': 20398203, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077531, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 59)}, 'Carton_brun': {'main_port_id': 20398181, 'sub_port_id': 20398204, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077532, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 59)}, 'flou': {'main_port_id': 20398181, 'sub_port_id': 20398205, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077533, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 59)}, 'Carton_gris': {'main_port_id': 20398181, 'sub_port_id': 20398206, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077534, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 59)}, 'environnement': {'main_port_id': 20398181, 'sub_port_id': 20398207, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077535, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20398181, 'sub_port_id': 20398208, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13077536, 'last_updated_at': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 10, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 10, 48, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20398197,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20398185 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20398198,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20398186 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20398199,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20398187 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20398200,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20398188 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20398201,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20398189 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20398202,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20398190 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20398203,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20398191 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20398204,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20398192 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20398205,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20398193 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20398206,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20398194 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20398207,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20398195 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20398208,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20398196 lien utilise dans velours : https://www.fotonower.com/velours/20398197,20398198,20398199,20398200,20398201,20398202,20398203,20398204,20398205,20398206,20398207,20398208?tags=kraft,mal_croppe,metal,papier,autre_refus,cartonnette,plastique,Carton_brun,flou,Carton_gris,environnement,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20398181]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1336458241, 1336458160, 1336458102, 1336457817, 1336457812, 1336457718, 1336457667, 1336457664, 1336457662, 1336457635, 1336457627, 1336457625, 1336457623, 1336457622] map_info['map_portfolio_photo'] : {20398181: [1336458241, 1336458160, 1336458102, 1336457817, 1336457812, 1336457718, 1336457667, 1336457664, 1336457662, 1336457635, 1336457627, 1336457625, 1336457623, 1336457622, 1336457592, 1336457591, 1336457589, 1336457428, 1336457423, 1336457411, 1336457403, 1336457399, 1336457395, 1336457146, 1336457131, 1336457055, 1336456801, 1336456795, 1336456794, 1336456789, 1336456778, 1336456705, 1336456702, 1336456701, 1336456700, 1336456699, 1336456659, 1336456629, 1336456628, 1336456600, 1336456393, 1336456299, 1336456056, 1336455845, 1336455842, 1336455816, 1336455813, 1336455812, 1336455806, 1336455802, 1336455764, 1336455678, 1336455665, 1336455661, 1336455659, 1336455658, 1336455460, 1336455458, 1336455457]} final : False mtd_id 4302 list_pids : [1336458241, 1336458160, 1336458102, 1336457817, 1336457812, 1336457718, 1336457667, 1336457664, 1336457662, 1336457635, 1336457627, 1336457625, 1336457623, 1336457622] Looping around the photos to save general results len do output : 1 /20398181. 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, '2570804') ('4302', '20398181', '1336458241', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336458160', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336458102', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457817', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457812', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457718', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457667', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457664', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457662', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457635', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457627', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457625', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457623', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457622', None, None, None, None, None, '2570804') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20398181', "{'kraft': 20398185, 'mal_croppe': 20398186, 'metal': 20398187, 'papier': 20398188, 'autre_refus': 20398189, 'cartonnette': 20398190, 'plastique': 20398191, 'Carton_brun': 20398192, 'flou': 20398193, 'Carton_gris': 20398194, 'environnement': 20398195, 'Teint_Dans_La_Masse': 20398196}", None, None, None, None, '2570804'), ('4302', '20398181', '1336458241', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336458160', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336458102', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457817', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457812', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457718', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457667', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457664', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457662', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457635', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457627', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457625', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457623', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457622', None, None, None, None, None, '2570804')] time used for this insertion : 0.01371908187866211 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4762890338897705 time spend to save output : 0.01398158073425293 total time spend for step 1 : 0.49027061462402344 step2:final Mon Feb 10 10:58:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20398181) 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 20398181 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1336455460,1336455458,1336455457,1336455678,1336455665,1336455661,1336455659,1336455658,1336455816,1336455813,1336455812,1336455806,1336455802,1336455764,1336456393,1336456299,1336456056,1336455845,1336455842,1336456659,1336456629,1336456628,1336456600,1336456705,1336456702,1336456701,1336456700,1336456699,1336456801,1336456795,1336456794,1336456789,1336456778,1336457146,1336457131,1336457055,1336457428,1336457423,1336457411,1336457403,1336457399,1336457395,1336457592,1336457591,1336457589,1336457635,1336457627,1336457625,1336457623,1336457622,1336457817,1336457812,1336457718,1336457667,1336457664,1336457662,1336458241,1336458160,1336458102); 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([20398181]) Inside saveOutput : final : False verbose : True original output for save of step final : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ('0.03671444305244183',), 1336457623: ('0.03671444305244183',), 1336457622: ('0.03671444305244183',)} new output for save of step final : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ('0.03671444305244183',), 1336457623: ('0.03671444305244183',), 1336457622: ('0.03671444305244183',)} [1336458241, 1336458160, 1336458102, 1336457817, 1336457812, 1336457718, 1336457667, 1336457664, 1336457662, 1336457635, 1336457627, 1336457625, 1336457623, 1336457622] map_info['map_portfolio_photo'] : {20398181: [1336458241, 1336458160, 1336458102, 1336457817, 1336457812, 1336457718, 1336457667, 1336457664, 1336457662, 1336457635, 1336457627, 1336457625, 1336457623, 1336457622, 1336457592, 1336457591, 1336457589, 1336457428, 1336457423, 1336457411, 1336457403, 1336457399, 1336457395, 1336457146, 1336457131, 1336457055, 1336456801, 1336456795, 1336456794, 1336456789, 1336456778, 1336456705, 1336456702, 1336456701, 1336456700, 1336456699, 1336456659, 1336456629, 1336456628, 1336456600, 1336456393, 1336456299, 1336456056, 1336455845, 1336455842, 1336455816, 1336455813, 1336455812, 1336455806, 1336455802, 1336455764, 1336455678, 1336455665, 1336455661, 1336455659, 1336455658, 1336455460, 1336455458, 1336455457]} final : False mtd_id 4302 list_pids : [1336458241, 1336458160, 1336458102, 1336457817, 1336457812, 1336457718, 1336457667, 1336457664, 1336457662, 1336457635, 1336457627, 1336457625, 1336457623, 1336457622] Looping around the photos to save general results len do output : 14 /1336458241.Didn't retrieve data . /1336458160.Didn't retrieve data . /1336458102.Didn't retrieve data . /1336457817.Didn't retrieve data . /1336457812.Didn't retrieve data . /1336457718.Didn't retrieve data . /1336457667.Didn't retrieve data . /1336457664.Didn't retrieve data . /1336457662.Didn't retrieve data . /1336457635.Didn't retrieve data . /1336457627.Didn't retrieve data . /1336457625.Didn't retrieve data . /1336457623.Didn't retrieve data . /1336457622.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, '2570804') ('4302', '20398181', '1336458241', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336458160', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336458102', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457817', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457812', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457718', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457667', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457664', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457662', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457635', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457627', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457625', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457623', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457622', None, None, None, None, None, '2570804') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20398181', '1336458241', '0.03671444305244183', None, None, None, None, '2570804'), ('4302', '20398181', '1336458160', '0.03671444305244183', None, None, None, None, '2570804'), ('4302', '20398181', '1336458102', '0.03671444305244183', None, None, None, None, '2570804'), ('4302', '20398181', '1336457817', '0.03671444305244183', None, None, None, None, '2570804'), ('4302', '20398181', '1336457812', '0.03671444305244183', None, None, None, None, '2570804'), ('4302', '20398181', '1336457718', '0.03671444305244183', None, None, None, None, '2570804'), ('4302', '20398181', '1336457667', '0.03671444305244183', None, None, None, None, '2570804'), ('4302', '20398181', '1336457664', '0.03671444305244183', None, None, None, None, '2570804'), ('4302', '20398181', '1336457662', '0.03671444305244183', None, None, None, None, '2570804'), ('4302', '20398181', '1336457635', '0.03671444305244183', None, None, None, None, '2570804'), ('4302', '20398181', '1336457627', '0.03671444305244183', None, None, None, None, '2570804'), ('4302', '20398181', '1336457625', '0.03671444305244183', None, None, None, None, '2570804'), ('4302', '20398181', '1336457623', '0.03671444305244183', None, None, None, None, '2570804'), ('4302', '20398181', '1336457622', '0.03671444305244183', None, None, None, None, '2570804')] time used for this insertion : 0.01327061653137207 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.1710681915283203 time spend to save output : 0.013990163803100586 total time spend for step 2 : 0.1850583553314209 step3:velours_tree Mon Feb 10 10:58:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20398181: [{'kraft': 20398185, 'mal_croppe': 20398186, 'metal': 20398187, 'papier': 20398188, 'autre_refus': 20398189, 'cartonnette': 20398190, 'plastique': 20398191, 'Carton_brun': 20398192, 'flou': 20398193, 'Carton_gris': 20398194, 'environnement': 20398195, 'Teint_Dans_La_Masse': 20398196}]} input_args_next_step : {20398181: ()} output_args : {20398181: [{'kraft': 20398185, 'mal_croppe': 20398186, 'metal': 20398187, 'papier': 20398188, 'autre_refus': 20398189, 'cartonnette': 20398190, 'plastique': 20398191, 'Carton_brun': 20398192, 'flou': 20398193, 'Carton_gris': 20398194, 'environnement': 20398195, 'Teint_Dans_La_Masse': 20398196}]} args : 20398181 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': 20398185, 'mal_croppe': 20398186, 'metal': 20398187, 'papier': 20398188, 'autre_refus': 20398189, 'cartonnette': 20398190, 'plastique': 20398191, 'Carton_brun': 20398192, 'flou': 20398193, 'Carton_gris': 20398194, 'environnement': 20398195, 'Teint_Dans_La_Masse': 20398196},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20398181) 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([20398181]) 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.29349541664123535 time spend to save output : 4.363059997558594e-05 total time spend for step 3 : 0.29353904724121094 step4:send_mail_cod Mon Feb 10 10:58:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ('0.03671444305244183',), 1336457623: ('0.03671444305244183',), 1336457622: ('0.03671444305244183',)} input_args_next_step : {1336458241: ()} output_args : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ('0.03671444305244183',), 1336457623: ('0.03671444305244183',), 1336457622: ('0.03671444305244183',)} args : 1336458241 depend.output_id : 0 input_args_next_step : {1336458241: ('0.03671444305244183',), 1336458160: ()} output_args : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ('0.03671444305244183',), 1336457623: ('0.03671444305244183',), 1336457622: ('0.03671444305244183',)} args : 1336458160 depend.output_id : 0 input_args_next_step : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ()} output_args : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ('0.03671444305244183',), 1336457623: ('0.03671444305244183',), 1336457622: ('0.03671444305244183',)} args : 1336458102 depend.output_id : 0 input_args_next_step : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ()} output_args : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ('0.03671444305244183',), 1336457623: ('0.03671444305244183',), 1336457622: ('0.03671444305244183',)} args : 1336457817 depend.output_id : 0 input_args_next_step : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ()} output_args : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ('0.03671444305244183',), 1336457623: ('0.03671444305244183',), 1336457622: ('0.03671444305244183',)} args : 1336457812 depend.output_id : 0 input_args_next_step : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ()} output_args : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ('0.03671444305244183',), 1336457623: ('0.03671444305244183',), 1336457622: ('0.03671444305244183',)} args : 1336457718 depend.output_id : 0 input_args_next_step : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ()} output_args : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ('0.03671444305244183',), 1336457623: ('0.03671444305244183',), 1336457622: ('0.03671444305244183',)} args : 1336457667 depend.output_id : 0 input_args_next_step : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ()} output_args : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ('0.03671444305244183',), 1336457623: ('0.03671444305244183',), 1336457622: ('0.03671444305244183',)} args : 1336457664 depend.output_id : 0 input_args_next_step : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ()} output_args : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ('0.03671444305244183',), 1336457623: ('0.03671444305244183',), 1336457622: ('0.03671444305244183',)} args : 1336457662 depend.output_id : 0 input_args_next_step : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ()} output_args : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ('0.03671444305244183',), 1336457623: ('0.03671444305244183',), 1336457622: ('0.03671444305244183',)} args : 1336457635 depend.output_id : 0 input_args_next_step : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ()} output_args : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ('0.03671444305244183',), 1336457623: ('0.03671444305244183',), 1336457622: ('0.03671444305244183',)} args : 1336457627 depend.output_id : 0 input_args_next_step : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ()} output_args : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ('0.03671444305244183',), 1336457623: ('0.03671444305244183',), 1336457622: ('0.03671444305244183',)} args : 1336457625 depend.output_id : 0 input_args_next_step : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ('0.03671444305244183',), 1336457623: ()} output_args : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ('0.03671444305244183',), 1336457623: ('0.03671444305244183',), 1336457622: ('0.03671444305244183',)} args : 1336457623 depend.output_id : 0 input_args_next_step : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ('0.03671444305244183',), 1336457623: ('0.03671444305244183',), 1336457622: ()} output_args : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ('0.03671444305244183',), 1336457623: ('0.03671444305244183',), 1336457622: ('0.03671444305244183',)} args : 1336457622 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 : {20398181: [{'kraft': 20398185, 'mal_croppe': 20398186, 'metal': 20398187, 'papier': 20398188, 'autre_refus': 20398189, 'cartonnette': 20398190, 'plastique': 20398191, 'Carton_brun': 20398192, 'flou': 20398193, 'Carton_gris': 20398194, 'environnement': 20398195, 'Teint_Dans_La_Masse': 20398196}]} input_args_next_step : {1336458241: ('0.03671444305244183',), 1336458160: ('0.03671444305244183',), 1336458102: ('0.03671444305244183',), 1336457817: ('0.03671444305244183',), 1336457812: ('0.03671444305244183',), 1336457718: ('0.03671444305244183',), 1336457667: ('0.03671444305244183',), 1336457664: ('0.03671444305244183',), 1336457662: ('0.03671444305244183',), 1336457635: ('0.03671444305244183',), 1336457627: ('0.03671444305244183',), 1336457625: ('0.03671444305244183',), 1336457623: ('0.03671444305244183',), 1336457622: ('0.03671444305244183',), 20398181: ()} output_args : {20398181: [{'kraft': 20398185, 'mal_croppe': 20398186, 'metal': 20398187, 'papier': 20398188, 'autre_refus': 20398189, 'cartonnette': 20398190, 'plastique': 20398191, 'Carton_brun': 20398192, 'flou': 20398193, 'Carton_gris': 20398194, 'environnement': 20398195, 'Teint_Dans_La_Masse': 20398196}]} args : 20398181 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :15, first value : ('0.03671444305244183',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20398181) 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 (1336458241,1336458160,1336458102,1336457817,1336457812,1336457718,1336457667,1336457664,1336457662,1336457635,1336457627,1336457625,1336457623,1336457622) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1336457622 begin to download photo : 1336457627 begin to download photo : 1336457664 begin to download photo : 1336457812 begin to download photo : 1336458160 download finish for photo 1336458160 begin to download photo : 1336458241 download finish for photo 1336457622 begin to download photo : 1336457623 download finish for photo 1336457627 begin to download photo : 1336457635 download finish for photo 1336457812 begin to download photo : 1336457817 download finish for photo 1336457664 begin to download photo : 1336457667 download finish for photo 1336457623 begin to download photo : 1336457625 download finish for photo 1336457635 begin to download photo : 1336457662 download finish for photo 1336458241 download finish for photo 1336457817 begin to download photo : 1336458102 download finish for photo 1336457667 begin to download photo : 1336457718 download finish for photo 1336458102 download finish for photo 1336457662 download finish for photo 1336457625 download finish for photo 1336457718 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P20398181_10-02-2025_10_58_58.pdf 20398185 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=20398185 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336456802: '1739181094_3936915_1336455842_8f0864051df946ea58b6546836ab9f2c_rle_crop_3667745296_0.png', 1336457329: '1739181190_3937763_1336456702_ec12480c8587666113e7e9506387683b_rle_crop_3667745875_0.png', 1336458173: '1739181421_3939723_1336457423_096d13d55e28aa46a902bd0572918a53_rle_crop_3667749780_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/09cca15ea9ce85302aae44ecbc61aebd_25701319.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/943dc7d35da4d27678be9dbf03add7eb_88311713.png change filename to text .imagette203981851739181538/ imagette203981851739181538/1739181094_3936915_1336455842_8f0864051df946ea58b6546836ab9f2c_rle_crop_3667745296_0.png.png imagette203981851739181538/1739181421_3939723_1336457423_096d13d55e28aa46a902bd0572918a53_rle_crop_3667749780_0.png.png imagette203981851739181538/1739181190_3937763_1336456702_ec12480c8587666113e7e9506387683b_rle_crop_3667745875_0.png.png imagette203981861739181538/ imagette203981871739181538/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/9416552cfdf266a2eee8fc3762bf2c91_65890880.png imagette203981851739181538 20398186 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=20398186 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203981861739181538 20398187 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=20398187 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203981871739181538 20398189 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=20398189 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336455807: '1739180842_3929507_1336455457_67faa7ca7c7a1ea051471d0f0dfa2154_rle_crop_3667739287_0.png', 1336457409: '1739181209_3937955_1336455813_77fc8ea5f110d091993de95c989b488b_rle_crop_3667745373_0.png', 1336457611: '1739181314_3938915_1336457131_cd092e2af21780e328700260b8ed620d_rle_crop_3667746211_0.png', 1336458098: '1739181433_3939842_1336457589_040e25f207ebead832a376a1fa2313cc_rle_crop_3667749759_0.png', 1336458100: '1739181421_3939723_1336457403_39504632a86aceb025077fbb5fb39e7a_rle_crop_3667749814_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/3b5a97ae452c37dfaf95f92c0f953bdb_70372821.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/e8b5ee8a917f4199e35500f2083300d2_66326527.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/2b2c19c6818c3c679a49bbbb89c004e2_71992323.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/a7f6f5f474dcf63b7b5d8ea436c5f8fc_63742813.png change filename to text .imagette203981891739181538/ imagette203981891739181538/1739181421_3939723_1336457403_39504632a86aceb025077fbb5fb39e7a_rle_crop_3667749814_0.png.png imagette203981891739181538/1739181209_3937955_1336455813_77fc8ea5f110d091993de95c989b488b_rle_crop_3667745373_0.png.png imagette203981891739181538/1739181314_3938915_1336457131_cd092e2af21780e328700260b8ed620d_rle_crop_3667746211_0.png.png imagette203981891739181538/1739181433_3939842_1336457589_040e25f207ebead832a376a1fa2313cc_rle_crop_3667749759_0.png.png imagette203981891739181538/1739180842_3929507_1336455457_67faa7ca7c7a1ea051471d0f0dfa2154_rle_crop_3667739287_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/fa4d8fda9f97b6e79c0df0ee847f725f_46637385.png imagette203981891739181538 20398190 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=20398190 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336455810: '1739180842_3929507_1336455458_3eccbbdce871cec353cfbca657b19dbd_rle_crop_3667739276_0.png', 1336455811: '1739180842_3929507_1336455457_67faa7ca7c7a1ea051471d0f0dfa2154_rle_crop_3667739289_0.png', 1336456798: '1739181094_3936915_1336456299_96514b5f60a1add4f6509c4ac337cd4a_rle_crop_3667745091_0.png', 1336457325: '1739181190_3937763_1336456701_877e4009ce7fe70c7d80d5731960151e_rle_crop_3667745894_0.png', 1336457326: '1739181190_3937763_1336456700_07464d80b4e7ba9284f18997894e410c_rle_crop_3667745913_0.png', 1336457327: '1739181190_3937763_1336456699_7ee1e1addb37d9c7391ece3b937eaaca_rle_crop_3667745928_0.png', 1336457415: '1739181209_3937955_1336455813_77fc8ea5f110d091993de95c989b488b_rle_crop_3667745370_0.png', 1336457416: '1739181209_3937955_1336455812_e9ed0751c13c984a1b3a3094eb1a4d0e_rle_crop_3667745386_0.png', 1336457417: '1739181209_3937955_1336455812_e9ed0751c13c984a1b3a3094eb1a4d0e_rle_crop_3667745383_0.png', 1336457418: '1739181209_3937955_1336455812_e9ed0751c13c984a1b3a3094eb1a4d0e_rle_crop_3667745387_0.png', 1336457419: '1739181209_3937955_1336455764_57f450de215af09bdace0f4dce2713cc_rle_crop_3667745469_0.png', 1336457420: '1739181209_3937955_1336455764_57f450de215af09bdace0f4dce2713cc_rle_crop_3667745471_0.png', 1336457421: '1739181209_3937955_1336455764_57f450de215af09bdace0f4dce2713cc_rle_crop_3667745473_0.png', 1336457632: '1739181333_3939110_1336456794_1641ff260fcbc9127cd752dec39ffd9c_rle_crop_3667747905_0.png', 1336457633: '1739181333_3939110_1336456789_1b2151a9e0ff232e6a5040441a817c12_rle_crop_3667747922_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/ca5c0e37de375b7df1be4bacc355c2f2_37944699.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/473933d5412f73395dd1dcb4afa79b94_59956017.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/a139c6c7ad028be02572b649a1abb641_47990181.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/f4c4cbb85adba164c48e8e378ab7ea5b_7767293.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/80963220e83f08f3340be528966b5177_28749998.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/220a5b063ba38209cacf0b766a5dabe7_79265525.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/48cb7199295b12627a4613bd0c0bba27_93018167.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/38836b2b7310f4bb496565aa62169110_11350938.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/df49bd1ca2b1efe863dd64392b7199f4_49128513.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/ac9fc82930b21a90d46207fd6ae68f31_1566974.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/0254ff21542d27e6ec7c03ed374aa77f_74255283.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/df8c9b02c34468404f2bf08eaed0b348_56200758.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/1e8f4c615abc9353cc1e2d8d489b3055_93050143.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/3c3423079fd2eda46f341dd6675dd6ef_42731569.png change filename to text .imagette203981901739181539/ imagette203981901739181539/1739180842_3929507_1336455458_3eccbbdce871cec353cfbca657b19dbd_rle_crop_3667739276_0.png.png imagette203981901739181539/1739180842_3929507_1336455457_67faa7ca7c7a1ea051471d0f0dfa2154_rle_crop_3667739289_0.png.png imagette203981901739181539/1739181333_3939110_1336456794_1641ff260fcbc9127cd752dec39ffd9c_rle_crop_3667747905_0.png.png imagette203981901739181539/1739181209_3937955_1336455812_e9ed0751c13c984a1b3a3094eb1a4d0e_rle_crop_3667745386_0.png.png imagette203981901739181539/1739181190_3937763_1336456701_877e4009ce7fe70c7d80d5731960151e_rle_crop_3667745894_0.png.png imagette203981901739181539/1739181209_3937955_1336455764_57f450de215af09bdace0f4dce2713cc_rle_crop_3667745471_0.png.png imagette203981901739181539/1739181209_3937955_1336455764_57f450de215af09bdace0f4dce2713cc_rle_crop_3667745473_0.png.png imagette203981901739181539/1739181190_3937763_1336456699_7ee1e1addb37d9c7391ece3b937eaaca_rle_crop_3667745928_0.png.png imagette203981901739181539/1739181333_3939110_1336456789_1b2151a9e0ff232e6a5040441a817c12_rle_crop_3667747922_0.png.png imagette203981901739181539/1739181094_3936915_1336456299_96514b5f60a1add4f6509c4ac337cd4a_rle_crop_3667745091_0.png.png imagette203981901739181539/1739181209_3937955_1336455764_57f450de215af09bdace0f4dce2713cc_rle_crop_3667745469_0.png.png imagette203981901739181539/1739181209_3937955_1336455812_e9ed0751c13c984a1b3a3094eb1a4d0e_rle_crop_3667745387_0.png.png imagette203981901739181539/1739181209_3937955_1336455812_e9ed0751c13c984a1b3a3094eb1a4d0e_rle_crop_3667745383_0.png.png imagette203981901739181539/1739181209_3937955_1336455813_77fc8ea5f110d091993de95c989b488b_rle_crop_3667745370_0.png.png imagette203981901739181539/1739181190_3937763_1336456700_07464d80b4e7ba9284f18997894e410c_rle_crop_3667745913_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/14f18b9abb1ee03455e61e0c58e85f9a_21840180.png imagette203981901739181539 20398191 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=20398191 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336456777: '1739181073_3936695_1336456600_92588658b0514930c5524f8b0ff04e1a_rle_crop_3667744851_0.png', 1336457424: '1739181209_3937955_1336455812_e9ed0751c13c984a1b3a3094eb1a4d0e_rle_crop_3667745391_0.png', 1336457425: '1739181209_3937955_1336455802_7203e25e8c571e34e025110395aa4066_rle_crop_3667745461_0.png', 1336457636: '1739181333_3939110_1336456778_933082fbdb0e4ed255a1aaf6491da600_rle_crop_3667747935_0.png', 1336458155: '1739181421_3939723_1336457403_39504632a86aceb025077fbb5fb39e7a_rle_crop_3667749819_0.png', 1336458157: '1739181421_3939723_1336457399_469663914120c9029efbb6d84bdef7a9_rle_crop_3667749829_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/74f183dcd583f12da10fbe673834b027_10119066.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/d102718596f6366f52595ab551384406_59429726.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/d21f065ba778e0e378d7ed586c539458_43329109.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/cfbfed5bd45111b39f85fd70eb4a6923_52073517.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/b9d3ffe596c9162c04da9b85f23af260_21974649.png change filename to text .imagette203981911739181541/ imagette203981911739181541/1739181209_3937955_1336455802_7203e25e8c571e34e025110395aa4066_rle_crop_3667745461_0.png.png imagette203981911739181541/1739181209_3937955_1336455812_e9ed0751c13c984a1b3a3094eb1a4d0e_rle_crop_3667745391_0.png.png imagette203981911739181541/1739181421_3939723_1336457403_39504632a86aceb025077fbb5fb39e7a_rle_crop_3667749819_0.png.png imagette203981911739181541/1739181421_3939723_1336457399_469663914120c9029efbb6d84bdef7a9_rle_crop_3667749829_0.png.png imagette203981911739181541/1739181073_3936695_1336456600_92588658b0514930c5524f8b0ff04e1a_rle_crop_3667744851_0.png.png imagette203981911739181541/1739181333_3939110_1336456778_933082fbdb0e4ed255a1aaf6491da600_rle_crop_3667747935_0.png.png imagette203981931739181541/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/cd90ab6ffd13d7927174d31aca9be6f4_11994962.png imagette203981911739181541 20398193 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=20398193 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203981931739181541 20398192 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=20398192 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336456776: '1739181073_3936695_1336456600_92588658b0514930c5524f8b0ff04e1a_rle_crop_3667744854_0.png', 1336456799: '1739181094_3936915_1336455845_84f6da5707676ce12cd169f307d4cc99_rle_crop_3667745286_0.png', 1336458136: '1739181421_3939723_1336457423_096d13d55e28aa46a902bd0572918a53_rle_crop_3667749775_0.png', 1336458137: '1739181421_3939723_1336457403_39504632a86aceb025077fbb5fb39e7a_rle_crop_3667749815_0.png', 1336458138: '1739181421_3939723_1336457399_469663914120c9029efbb6d84bdef7a9_rle_crop_3667749821_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/73343933a8729ce41b26de08a1313713_3195087.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/14fe1e8e22cb2be93fdb58b41e75891f_36556940.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/67bbf73b3103cc73e93d6a45e54568e2_96336415.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/a26e88b10fe21de15bbe7939945295df_12211519.png change filename to text .imagette203981921739181541/ imagette203981921739181541/1739181073_3936695_1336456600_92588658b0514930c5524f8b0ff04e1a_rle_crop_3667744854_0.png.png imagette203981921739181541/1739181094_3936915_1336455845_84f6da5707676ce12cd169f307d4cc99_rle_crop_3667745286_0.png.png imagette203981921739181541/1739181421_3939723_1336457399_469663914120c9029efbb6d84bdef7a9_rle_crop_3667749821_0.png.png imagette203981921739181541/1739181421_3939723_1336457403_39504632a86aceb025077fbb5fb39e7a_rle_crop_3667749815_0.png.png imagette203981921739181541/1739181421_3939723_1336457423_096d13d55e28aa46a902bd0572918a53_rle_crop_3667749775_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/57c25da5a073ec1dfffadf508d1965b9_5856450.png imagette203981921739181541 20398194 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=20398194 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336455808: '1739180842_3929507_1336455458_3eccbbdce871cec353cfbca657b19dbd_rle_crop_3667739275_0.png', 1336456773: '1739181073_3936695_1336456628_d3efff53748b06836afcf4f86b26ee3e_rle_crop_3667744616_0.png', 1336456774: '1739181073_3936695_1336456628_d3efff53748b06836afcf4f86b26ee3e_rle_crop_3667744609_0.png', 1336456775: '1739181073_3936695_1336456600_92588658b0514930c5524f8b0ff04e1a_rle_crop_3667744853_0.png', 1336456797: '1739181094_3936915_1336456056_7006c55c0732c2c0a1c79bb2f98e73b0_rle_crop_3667745269_0.png', 1336457324: '1739181190_3937763_1336456702_ec12480c8587666113e7e9506387683b_rle_crop_3667745873_0.png', 1336457412: '1739181209_3937955_1336455813_77fc8ea5f110d091993de95c989b488b_rle_crop_3667745371_0.png', 1336457612: '1739181314_3938915_1336457131_cd092e2af21780e328700260b8ed620d_rle_crop_3667746205_0.png', 1336457630: '1739181333_3939110_1336456789_1b2151a9e0ff232e6a5040441a817c12_rle_crop_3667747916_0.png', 1336457631: '1739181333_3939110_1336456789_1b2151a9e0ff232e6a5040441a817c12_rle_crop_3667747924_0.png', 1336458099: '1739181433_3939842_1336457589_040e25f207ebead832a376a1fa2313cc_rle_crop_3667749756_0.png', 1336458101: '1739181421_3939723_1336457423_096d13d55e28aa46a902bd0572918a53_rle_crop_3667749769_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/c61307431026a5d48ee0cf88b1e7e300_51823886.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/4e442d0396c7b55327ac7ae702f5bc37_61300719.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/005a9053004bdd532cc4efba8f31cf58_25620549.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/6b9599cb6bf5efec81ca57a53e9c3478_45648854.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/7085a0ffe8f5b7faefa567a9f860a47a_72388113.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/5bbe8bdbe8a4acba961dbac63827d0a9_24328562.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/27fc20d035c3f2b1beb2dd1a5e97ceec_74382123.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/542a39f2edd065f87f3d06810f8b25e6_57771236.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/f27ec5022a4b98d6f696d7c816bef269_65369931.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/bc24bcbae8cb824af04f5baac0e08b71_61110835.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/ac88272e53aeeec96751174e97db5883_53371640.png change filename to text .imagette203981941739181541/ imagette203981941739181541/1739181073_3936695_1336456628_d3efff53748b06836afcf4f86b26ee3e_rle_crop_3667744616_0.png.png imagette203981941739181541/1739181209_3937955_1336455813_77fc8ea5f110d091993de95c989b488b_rle_crop_3667745371_0.png.png imagette203981941739181541/1739181190_3937763_1336456702_ec12480c8587666113e7e9506387683b_rle_crop_3667745873_0.png.png imagette203981941739181541/1739181073_3936695_1336456628_d3efff53748b06836afcf4f86b26ee3e_rle_crop_3667744609_0.png.png imagette203981941739181541/1739181073_3936695_1336456600_92588658b0514930c5524f8b0ff04e1a_rle_crop_3667744853_0.png.png imagette203981941739181541/1739181094_3936915_1336456056_7006c55c0732c2c0a1c79bb2f98e73b0_rle_crop_3667745269_0.png.png imagette203981941739181541/1739181421_3939723_1336457423_096d13d55e28aa46a902bd0572918a53_rle_crop_3667749769_0.png.png imagette203981941739181541/1739181433_3939842_1336457589_040e25f207ebead832a376a1fa2313cc_rle_crop_3667749756_0.png.png imagette203981941739181541/1739181314_3938915_1336457131_cd092e2af21780e328700260b8ed620d_rle_crop_3667746205_0.png.png imagette203981941739181541/1739181333_3939110_1336456789_1b2151a9e0ff232e6a5040441a817c12_rle_crop_3667747924_0.png.png imagette203981941739181541/1739180842_3929507_1336455458_3eccbbdce871cec353cfbca657b19dbd_rle_crop_3667739275_0.png.png imagette203981941739181541/1739181333_3939110_1336456789_1b2151a9e0ff232e6a5040441a817c12_rle_crop_3667747916_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/1fb17e03000ce67a855f8c01543a2f6a_59907401.png imagette203981941739181541 20398196 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=20398196 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336455804: '1739180842_3929507_1336455460_d3138cd3d000715e9544ed861f6c53df_rle_crop_3667739268_0.png', 1336455805: '1739180842_3929507_1336455458_3eccbbdce871cec353cfbca657b19dbd_rle_crop_3667739281_0.png', 1336456826: '1739181111_3937097_1336455813_77fc8ea5f110d091993de95c989b488b_rle_crop_3667745374_0.png', 1336457323: '1739181190_3937763_1336456699_7ee1e1addb37d9c7391ece3b937eaaca_rle_crop_3667745931_0.png', 1336457406: '1739181209_3937955_1336455813_77fc8ea5f110d091993de95c989b488b_rle_crop_3667745374_0.png', 1336457628: '1739181333_3939110_1336456794_1641ff260fcbc9127cd752dec39ffd9c_rle_crop_3667747908_0.png', 1336457629: '1739181333_3939110_1336456778_933082fbdb0e4ed255a1aaf6491da600_rle_crop_3667747937_0.png', 1336458097: '1739181433_3939842_1336457589_040e25f207ebead832a376a1fa2313cc_rle_crop_3667749761_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/5e4ea943ef3066781fc352ae58a31d72_65189522.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/27ba86692867e1796151753159ae196c_99815015.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/8a63a548d4a341dff6cb91c5a06ebd4c_82393646.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/26517583aef4d0b9db1e64f07cdf1e4c_94861466.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/8a63a548d4a341dff6cb91c5a06ebd4c_29136891.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/c4c355624e139e858cccb8ad536bd17b_34085451.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/28fba419e586aa86fdaa656e4b60d477_51779550.png change filename to text .imagette203981961739181542/ imagette203981961739181542/1739180842_3929507_1336455460_d3138cd3d000715e9544ed861f6c53df_rle_crop_3667739268_0.png.png imagette203981961739181542/1739181433_3939842_1336457589_040e25f207ebead832a376a1fa2313cc_rle_crop_3667749761_0.png.png imagette203981961739181542/1739181111_3937097_1336455813_77fc8ea5f110d091993de95c989b488b_rle_crop_3667745374_0.png.png imagette203981961739181542/1739181333_3939110_1336456778_933082fbdb0e4ed255a1aaf6491da600_rle_crop_3667747937_0.png.png imagette203981961739181542/1739181190_3937763_1336456699_7ee1e1addb37d9c7391ece3b937eaaca_rle_crop_3667745931_0.png.png imagette203981961739181542/1739181333_3939110_1336456794_1641ff260fcbc9127cd752dec39ffd9c_rle_crop_3667747908_0.png.png imagette203981961739181542/1739180842_3929507_1336455458_3eccbbdce871cec353cfbca657b19dbd_rle_crop_3667739281_0.png.png imagette203981961739181542/1739181209_3937955_1336455813_77fc8ea5f110d091993de95c989b488b_rle_crop_3667745374_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/2d5359ef0cf10fc2b7e3d796a16fe519_97960348.png imagette203981961739181542 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20398181 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20398197,20398198,20398199,20398200,20398201,20398202,20398203,20398204,20398205,20398206,20398207,20398208?tags=kraft,mal_croppe,metal,papier,autre_refus,cartonnette,plastique,Carton_brun,flou,Carton_gris,environnement,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1336458241] : ('0.03671444305244183',) no score found for photo 1336458241 apple ('0.03671444305244183',) We are sending mail with results at report@fotonower.com args[1336458160] : ('0.03671444305244183',) no score found for photo 1336458160 apple ('0.03671444305244183',) We are sending mail with results at report@fotonower.com args[1336458102] : ('0.03671444305244183',) no score found for photo 1336458102 apple ('0.03671444305244183',) We are sending mail with results at report@fotonower.com args[1336457817] : ('0.03671444305244183',) no score found for photo 1336457817 apple ('0.03671444305244183',) We are sending mail with results at report@fotonower.com args[1336457812] : ('0.03671444305244183',) no score found for photo 1336457812 apple ('0.03671444305244183',) We are sending mail with results at report@fotonower.com args[1336457718] : ('0.03671444305244183',) no score found for photo 1336457718 apple ('0.03671444305244183',) We are sending mail with results at report@fotonower.com args[1336457667] : ('0.03671444305244183',) no score found for photo 1336457667 apple ('0.03671444305244183',) We are sending mail with results at report@fotonower.com args[1336457664] : ('0.03671444305244183',) no score found for photo 1336457664 apple ('0.03671444305244183',) We are sending mail with results at report@fotonower.com args[1336457662] : ('0.03671444305244183',) no score found for photo 1336457662 apple ('0.03671444305244183',) We are sending mail with results at report@fotonower.com args[1336457635] : ('0.03671444305244183',) no score found for photo 1336457635 apple ('0.03671444305244183',) We are sending mail with results at report@fotonower.com args[1336457627] : ('0.03671444305244183',) no score found for photo 1336457627 apple ('0.03671444305244183',) We are sending mail with results at report@fotonower.com args[1336457625] : ('0.03671444305244183',) no score found for photo 1336457625 apple ('0.03671444305244183',) We are sending mail with results at report@fotonower.com args[1336457623] : ('0.03671444305244183',) no score found for photo 1336457623 apple ('0.03671444305244183',) We are sending mail with results at report@fotonower.com args[1336457622] : ('0.03671444305244183',) no score found for photo 1336457622 apple ('0.03671444305244183',) We are sending mail with results at report@fotonower.com refus_total : 0.03671444305244183 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=20398181 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_P20398181_10-02-2025_10_58_58.pdf results_Auto_P20398181_10-02-2025_10_58_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20398181_10-02-2025_10_58_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20398181','results_Auto_P20398181_10-02-2025_10_58_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20398181_10-02-2025_10_58_58.pdf','pdf','','0.29','0.03671444305244183') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20398181]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1336458241, 1336458160, 1336458102, 1336457817, 1336457812, 1336457718, 1336457667, 1336457664, 1336457662, 1336457635, 1336457627, 1336457625, 1336457623, 1336457622] map_info['map_portfolio_photo'] : {20398181: [1336458241, 1336458160, 1336458102, 1336457817, 1336457812, 1336457718, 1336457667, 1336457664, 1336457662, 1336457635, 1336457627, 1336457625, 1336457623, 1336457622, 1336457592, 1336457591, 1336457589, 1336457428, 1336457423, 1336457411, 1336457403, 1336457399, 1336457395, 1336457146, 1336457131, 1336457055, 1336456801, 1336456795, 1336456794, 1336456789, 1336456778, 1336456705, 1336456702, 1336456701, 1336456700, 1336456699, 1336456659, 1336456629, 1336456628, 1336456600, 1336456393, 1336456299, 1336456056, 1336455845, 1336455842, 1336455816, 1336455813, 1336455812, 1336455806, 1336455802, 1336455764, 1336455678, 1336455665, 1336455661, 1336455659, 1336455658, 1336455460, 1336455458, 1336455457]} final : False mtd_id 4302 list_pids : [1336458241, 1336458160, 1336458102, 1336457817, 1336457812, 1336457718, 1336457667, 1336457664, 1336457662, 1336457635, 1336457627, 1336457625, 1336457623, 1336457622] 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, '2570804') ('4302', '20398181', '1336458241', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336458160', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336458102', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457817', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457812', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457718', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457667', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457664', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457662', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457635', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457627', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457625', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457623', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457622', None, None, None, None, None, '2570804') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20398181', '1336458241', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336458160', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336458102', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457817', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457812', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457718', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457667', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457664', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457662', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457635', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457627', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457625', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457623', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457622', None, None, None, None, None, '2570804')] time used for this insertion : 1.4099974632263184 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.61108922958374 time spend to save output : 1.4103188514709473 total time spend for step 4 : 7.0214080810546875 step5:split_time_score Mon Feb 10 10:59:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20398181'] 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 : [('20398181',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20398181) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1336458160: {'path': 'temp/1739181538_1843967_1336458160_2e7519fd03a5b88457a78f4676a4650f.jpg', 'extension': 'jpg'}, 1336458241: {'path': 'temp/1739181538_1843967_1336458241_5dc0cb0c339767c96a4d05c8d1d111fa.jpg', 'extension': 'jpg'}, 1336457812: {'path': 'temp/1739181538_1843967_1336457812_a8672622c2e4ebad610c8e1f79c0d4c1.jpg', 'extension': 'jpg'}, 1336457817: {'path': 'temp/1739181538_1843967_1336457817_24d93131b471a48f0f6e9634baf6facd.jpg', 'extension': 'jpg'}, 1336458102: {'path': 'temp/1739181538_1843967_1336458102_c565f7c138c16d74a82d641eaab33907.jpg', 'extension': 'jpg'}, 1336457627: {'path': 'temp/1739181538_1843967_1336457627_bcaf366f1b26c1f0d523c1457a8e20c4.jpg', 'extension': 'jpg'}, 1336457635: {'path': 'temp/1739181538_1843967_1336457635_d001b1f6c200fffab0df21fb35169642.jpg', 'extension': 'jpg'}, 1336457662: {'path': 'temp/1739181538_1843967_1336457662_28a513dd2ac486c3ad3ae73e245ecfba.jpg', 'extension': 'jpg'}, 1336457622: {'path': 'temp/1739181538_1843967_1336457622_31ea42e31d5d4869d392d25fcd72ba3f.jpg', 'extension': 'jpg'}, 1336457623: {'path': 'temp/1739181538_1843967_1336457623_5aae6df851c5c351b1c862fd6f0e3eff.jpg', 'extension': 'jpg'}, 1336457625: {'path': 'temp/1739181538_1843967_1336457625_9fbeaf928100323e6ff5035cd5e29e69.jpg', 'extension': 'jpg'}, 1336457664: {'path': 'temp/1739181538_1843967_1336457664_ade0f3619471460693c25638f78bb239.jpg', 'extension': 'jpg'}, 1336457667: {'path': 'temp/1739181538_1843967_1336457667_66196a5d3e4e789a1bfb3f92eb389fd5.jpg', 'extension': 'jpg'}, 1336457718: {'path': 'temp/1739181538_1843967_1336457718_c90b176de0146af0449a751654438fab.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 = 20398181; (('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 = 20398181 group by h (('10', 59),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20398181 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 (20398181) 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 (20398181) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10022025 20398181 Nombre de photos uploadées : 59 / 23040 (0%) 10022025 20398181 Nombre de photos taguées (types de déchets): 0 / 59 (0%) 10022025 20398181 Nombre de photos taguées (volume) : 0 / 59 (0%) [{'photo_id': 1336455460, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/d3138cd3d000715e9544ed861f6c53df.jpg', 'username': None, 'uploaded_at': 1739180767, 'text': 'image_10022025_10_45_04_10150.jpg'}, {'photo_id': 1336455458, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/3eccbbdce871cec353cfbca657b19dbd.jpg', 'username': None, 'uploaded_at': 1739180767, 'text': 'image_10022025_10_45_13_9126.jpg'}, {'photo_id': 1336455457, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/67faa7ca7c7a1ea051471d0f0dfa2154.jpg', 'username': None, 'uploaded_at': 1739180767, 'text': 'image_10022025_10_45_23_10135.jpg'}, {'photo_id': 1336455678, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/7ae148c639800073327ca4a0c4de4158.jpg', 'username': None, 'uploaded_at': 1739180827, 'text': 'image_10022025_10_45_33_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ??????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0029420852661132812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20398181, '2025-02-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1590566,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.0234072208404541 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= 1590566 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1590566, 'dashboard_run_id': 1598706, 'mtr_portfolio_id': 20396366, 'dashboard_result_id': 8787167, '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_P20396366_10-02-2025_10_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20396369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20396370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20396371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20396372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20396373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20396374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20396375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20396376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20396377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20396378, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20396379, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20396380, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1598706, 'mtr_portfolio_id': 20396893, 'dashboard_result_id': 8787168, '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_P20396893_10-02-2025_10_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20396895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20396896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20396897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20396898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20396899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20396900, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20396901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20396902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20396903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20396904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20396905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20396906, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1598706, 'mtr_portfolio_id': 20397393, 'dashboard_result_id': 8787169, '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_P20397393_10-02-2025_10_46_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20397424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20397425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20397426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20397427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20397428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20397429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20397430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20397431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20397432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20397433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20397434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20397435, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1598706, 'mtr_portfolio_id': 20398181, 'dashboard_result_id': 8787170, '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_P20398181_10-02-2025_10_56_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20398185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20398186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20398187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20398188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20398189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20398190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20398191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20398192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20398193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20398194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20398195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20398196, '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 = 20396366 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': 2570689, 'mtr_portfolio_id': 20396366, 'created_at': datetime.datetime(2025, 2, 10, 10, 16, 58), 'result': '0.04118415370043225', 'result_long': None, 'result_double': None}] Qualite : 0.04118415370043225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20396366 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20396366_10-02-2025_10_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20396366 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_P20396366_10-02-2025_10_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20396369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20396370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20396371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20396372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20396373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20396374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20396375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20396376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20396377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20396378, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20396379, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20396380, 'pht': 3726}}" where mtr_portfolio_id = 20396366 and dashboard_run_id = 1598706 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`=20396366 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8787167, 0.04118415370043225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20396366_10-02-2025_10_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20396369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20396370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20396371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20396372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20396373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20396374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20396375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20396376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20396377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20396378, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20396379, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20396380, '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 = 20396893 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': 2570719, 'mtr_portfolio_id': 20396893, 'created_at': datetime.datetime(2025, 2, 10, 10, 32, 59), 'result': '0.03383714306070083', 'result_long': None, 'result_double': None}] Qualite : 0.03383714306070083 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20396893 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20396893_10-02-2025_10_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20396893 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_P20396893_10-02-2025_10_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20396895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20396896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20396897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20396898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20396899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20396900, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20396901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20396902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20396903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20396904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20396905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20396906, 'pht': 3726}}" where mtr_portfolio_id = 20396893 and dashboard_run_id = 1598706 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`=20396893 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8787168, 0.03383714306070083, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20396893_10-02-2025_10_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20396895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20396896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20396897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20396898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20396899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20396900, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20396901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20396902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20396903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20396904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20396905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20396906, '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 = 20397393 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': 2570759, 'mtr_portfolio_id': 20397393, 'created_at': datetime.datetime(2025, 2, 10, 10, 46, 30), 'result': '0.03375196302023234', 'result_long': None, 'result_double': None}] Qualite : 0.03375196302023234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20397393 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20397393_10-02-2025_10_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20397393 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_P20397393_10-02-2025_10_46_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20397424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20397425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20397426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20397427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20397428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20397429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20397430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20397431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20397432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20397433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20397434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20397435, 'pht': 3726}}" where mtr_portfolio_id = 20397393 and dashboard_run_id = 1598706 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`=20397393 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8787169, 0.03375196302023234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20397393_10-02-2025_10_46_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20397424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20397425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20397426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20397427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20397428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20397429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20397430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20397431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20397432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20397433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20397434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20397435, '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 = 20398181 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': 2570804, 'mtr_portfolio_id': 20398181, 'created_at': datetime.datetime(2025, 2, 10, 10, 58, 58), 'result': '0.03671444305244183', 'result_long': None, 'result_double': None}] Qualite : 0.03671444305244183 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20398181 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20398181_10-02-2025_10_58_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20398181 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_P20398181_10-02-2025_10_58_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20398185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20398186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20398187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20398188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20398189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20398190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20398191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20398192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20398193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20398194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20398195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20398196, 'pht': 3726}}" where mtr_portfolio_id = 20398181 and dashboard_run_id = 1598706 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`=20398181 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8787170, 0.03671444305244183, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20398181_10-02-2025_10_58_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20398185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20398186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20398187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20398188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20398189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20398190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20398191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20398192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20398193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20398194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20398195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20398196, '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 (20396366,20396893,20397393,20398181) result : ((1336445500,), (1336445501,), (1336445502,), (1336445731,), (1336445733,), (1336445772,), (1336445779,), (1336445801,), (1336445802,), (1336445805,), (1336445808,), (1336445880,), (1336446531,), (1336446533,), (1336446535,), (1336446587,), (1336446647,), (1336446648,), (1336446650,), (1336446652,), (1336446696,), (1336446699,), (1336446746,), (1336446748,), (1336446823,), (1336446825,), (1336446828,), (1336446831,), (1336446861,), (1336446862,), (1336446864,), (1336446866,), (1336446869,), (1336446894,), (1336446897,), (1336446899,), (1336446902,), (1336446905,), (1336447098,), (1336447104,), (1336447105,), (1336447107,), (1336447109,), (1336447135,), (1336447137,), (1336447141,), (1336447165,), (1336447208,), (1336447320,), (1336447323,), (1336447327,), (1336447330,), (1336447333,), (1336447358,), (1336447360,), (1336447362,), (1336447366,), (1336447368,), (1336447396,), (1336447398,), (1336447404,), (1336447407,), (1336447436,), (1336447438,), (1336447440,), (1336447443,), (1336447446,), (1336447487,), (1336447484,), (1336447725,), (1336447767,), (1336447771,), (1336447774,), (1336447776,), (1336447778,), (1336447856,), (1336447859,), (1336447898,), (1336447900,), (1336447903,), (1336448700,), (1336448701,), (1336448704,), (1336448771,), (1336448861,), (1336448862,), (1336448866,), (1336448868,), (1336448872,), (1336448898,), (1336448900,), (1336448903,), (1336449441,), (1336449526,), (1336449613,), (1336449697,), (1336450511,), (1336450613,), (1336450615,), (1336451018,), (1336451020,), (1336451045,), (1336451079,), (1336451083,), (1336451088,), (1336451572,), (1336451662,), (1336451676,), (1336451720,), (1336451741,), (1336451758,), (1336451811,), (1336451812,), (1336451816,), (1336451819,), (1336451823,), (1336451825,), (1336451855,), (1336451859,), (1336451861,), (1336451887,), (1336451889,), (1336451891,), (1336451893,), (1336451927,), (1336451930,), (1336451932,), (1336451934,), (1336451942,), (1336452002,), (1336451988,), (1336451991,), (1336451996,), (1336451999,), (1336452049,), (1336452052,), (1336452053,), (1336452055,), (1336452092,), (1336452093,), (1336452095,), (1336452097,), (1336452098,), (1336452827,), (1336452831,), (1336452843,), (1336452845,), (1336453008,), (1336453014,), (1336453090,), (1336453092,), (1336453095,), (1336453100,), (1336453444,), (1336453537,), (1336453619,), (1336453725,), (1336453815,), (1336454063,), (1336454085,), (1336454107,), (1336454213,), (1336454367,), (1336454452,), (1336454613,), (1336454615,), (1336454622,), (1336454630,), (1336454656,), (1336454769,), (1336454858,), (1336455022,), (1336455025,), (1336455028,), (1336455031,), (1336455033,), (1336455035,), (1336455069,), (1336455073,), (1336455075,), (1336455078,), (1336455081,), (1336455083,), (1336455251,), (1336455253,), (1336455257,), (1336455261,), (1336455264,), (1336455290,), (1336455291,), (1336455294,), (1336455297,), (1336455299,), (1336455336,), (1336455338,), (1336455341,), (1336455345,), (1336455349,), (1336455353,), (1336455394,), (1336455396,), (1336455399,), (1336455405,), (1336455409,), (1336455463,), (1336455457,), (1336455458,), (1336455460,), (1336455658,), (1336455659,), (1336455661,), (1336455665,), (1336455678,), (1336455764,), (1336455802,), (1336455806,), (1336455812,), (1336455813,), (1336455816,), (1336455842,), (1336455845,), (1336456056,), (1336456299,), (1336456393,), (1336456600,), (1336456628,), (1336456629,), (1336456659,), (1336456699,), (1336456700,), (1336456701,), (1336456702,), (1336456705,), (1336456778,), (1336456789,), (1336456794,), (1336456795,), (1336456801,), (1336457055,), (1336457131,), (1336457146,), (1336457395,), (1336457399,), (1336457403,), (1336457411,), (1336457423,), (1336457428,), (1336457589,), (1336457591,), (1336457592,), (1336457622,), (1336457623,), (1336457625,), (1336457627,), (1336457635,), (1336457662,), (1336457664,), (1336457667,), (1336457718,), (1336457812,), (1336457817,), (1336458102,), (1336458160,), (1336458241,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10022025': {'nb_upload': 59, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20398181]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1336458241, 1336458160, 1336458102, 1336457817, 1336457812, 1336457718, 1336457667, 1336457664, 1336457662, 1336457635, 1336457627, 1336457625, 1336457623, 1336457622] map_info['map_portfolio_photo'] : {20398181: [1336458241, 1336458160, 1336458102, 1336457817, 1336457812, 1336457718, 1336457667, 1336457664, 1336457662, 1336457635, 1336457627, 1336457625, 1336457623, 1336457622, 1336457592, 1336457591, 1336457589, 1336457428, 1336457423, 1336457411, 1336457403, 1336457399, 1336457395, 1336457146, 1336457131, 1336457055, 1336456801, 1336456795, 1336456794, 1336456789, 1336456778, 1336456705, 1336456702, 1336456701, 1336456700, 1336456699, 1336456659, 1336456629, 1336456628, 1336456600, 1336456393, 1336456299, 1336456056, 1336455845, 1336455842, 1336455816, 1336455813, 1336455812, 1336455806, 1336455802, 1336455764, 1336455678, 1336455665, 1336455661, 1336455659, 1336455658, 1336455460, 1336455458, 1336455457]} final : True mtd_id 4302 list_pids : [1336458241, 1336458160, 1336458102, 1336457817, 1336457812, 1336457718, 1336457667, 1336457664, 1336457662, 1336457635, 1336457627, 1336457625, 1336457623, 1336457622] Looping around the photos to save general results len do output : 1 /20398181Didn'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, '2570804') ('4302', '20398181', '1336458241', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336458160', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336458102', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457817', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457812', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457718', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457667', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457664', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457662', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457635', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457627', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457625', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457623', None, None, None, None, None, '2570804') ('4302', None, None, None, None, None, None, None, '2570804') ('4302', '20398181', '1336457622', None, None, None, None, None, '2570804') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20398181', 'None', None, None, None, None, '2570804'), ('4302', '20398181', '1336458241', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336458160', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336458102', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457817', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457812', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457718', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457667', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457664', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457662', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457635', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457627', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457625', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457623', None, None, None, None, None, '2570804'), ('4302', '20398181', '1336457622', None, None, None, None, None, '2570804')] time used for this insertion : 0.015503644943237305 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3470118045806885 time spend to save output : 0.015787839889526367 total time spend for step 5 : 0.36279964447021484 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 (2570804) 2.18user 2.52system 0:10.59elapsed 44%CPU (0avgtext+0avgdata 162036maxresident)k 24inputs+17176outputs (0major+72245minor)pagefaults 0swaps