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 : 1506515 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 (4142791) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4142791) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29036243 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4142791'] with mtr_portfolio_ids : ['29036243'] and first list_photo_ids : [] new path : /proc/1506515/ Name: python3 Umask: 0002 State: R (running) Tgid: 1506515 Ngid: 0 Pid: 1506515 PPid: 1506514 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1506515 NSpid: 1506515 NSpgid: 1504826 NSsid: 1504826 VmPeak: 1113408 kB VmSize: 1113384 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105192 kB VmRSS: 105192 kB RssAnon: 66372 kB RssFile: 38820 kB RssShmem: 0 kB VmData: 872112 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 44 nonvoluntary_ctxt_switches: 98 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1506515', 'Ngid': '0', 'Pid': '1506515', 'PPid': '1506514', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1506515', 'NSpid': '1506515', 'NSpgid': '1504826', 'NSsid': '1504826', 'VmPeak': '1113408 kB', 'VmSize': '1113384 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105192 kB', 'VmRSS': '105192 kB', 'RssAnon': '66372 kB', 'RssFile': '38820 kB', 'RssShmem': '0 kB', 'VmData': '872112 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '44', 'nonvoluntary_ctxt_switches': '98'} ('datou_batch_current', '1506515', '1113408', '0', '1113384', '872112', '105192', b'', 'marlene', '4142791') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29036243) 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 (4142791 ) ) 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 (29036243) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1397160473, 'portfolio_id': 29036243}, {'photo_id': 1397160470, 'portfolio_id': 29036243}, {'photo_id': 1397160466, 'portfolio_id': 29036243}, {'photo_id': 1397160462, 'portfolio_id': 29036243}, {'photo_id': 1397160457, 'portfolio_id': 29036243}, {'photo_id': 1397160455, 'portfolio_id': 29036243}, {'photo_id': 1397160451, 'portfolio_id': 29036243}, {'photo_id': 1397160450, 'portfolio_id': 29036243}, {'photo_id': 1397160448, 'portfolio_id': 29036243}, {'photo_id': 1397160447, 'portfolio_id': 29036243}, {'photo_id': 1397160444, 'portfolio_id': 29036243}, {'photo_id': 1397160443, 'portfolio_id': 29036243}, {'photo_id': 1397160441, 'portfolio_id': 29036243}, {'photo_id': 1397160439, 'portfolio_id': 29036243}, {'photo_id': 1397160438, 'portfolio_id': 29036243}, {'photo_id': 1397160437, 'portfolio_id': 29036243}, {'photo_id': 1397160435, 'portfolio_id': 29036243}, {'photo_id': 1397160434, 'portfolio_id': 29036243}, {'photo_id': 1397160418, 'portfolio_id': 29036243}, {'photo_id': 1397160416, 'portfolio_id': 29036243}, {'photo_id': 1397160414, 'portfolio_id': 29036243}, {'photo_id': 1397160412, 'portfolio_id': 29036243}, {'photo_id': 1397160411, 'portfolio_id': 29036243}, {'photo_id': 1397160410, 'portfolio_id': 29036243}, {'photo_id': 1397160405, 'portfolio_id': 29036243}, {'photo_id': 1397160402, 'portfolio_id': 29036243}, {'photo_id': 1397160399, 'portfolio_id': 29036243}, {'photo_id': 1397160396, 'portfolio_id': 29036243}, {'photo_id': 1397160393, 'portfolio_id': 29036243}, {'photo_id': 1397160392, 'portfolio_id': 29036243}, {'photo_id': 1397160360, 'portfolio_id': 29036243}, {'photo_id': 1397160357, 'portfolio_id': 29036243}, {'photo_id': 1397160355, 'portfolio_id': 29036243}, {'photo_id': 1397160353, 'portfolio_id': 29036243}, {'photo_id': 1397160352, 'portfolio_id': 29036243}, {'photo_id': 1397160351, 'portfolio_id': 29036243}, {'photo_id': 1397160334, 'portfolio_id': 29036243}, {'photo_id': 1397160331, 'portfolio_id': 29036243}, {'photo_id': 1397160329, 'portfolio_id': 29036243}, {'photo_id': 1397160327, 'portfolio_id': 29036243}, {'photo_id': 1397160325, 'portfolio_id': 29036243}, {'photo_id': 1397160315, 'portfolio_id': 29036243}, {'photo_id': 1397160313, 'portfolio_id': 29036243}, {'photo_id': 1397160310, 'portfolio_id': 29036243}, {'photo_id': 1397160308, 'portfolio_id': 29036243}, {'photo_id': 1397160305, 'portfolio_id': 29036243}, {'photo_id': 1397160303, 'portfolio_id': 29036243}, {'photo_id': 1397160277, 'portfolio_id': 29036243}, {'photo_id': 1397160275, 'portfolio_id': 29036243}, {'photo_id': 1397160273, 'portfolio_id': 29036243}, {'photo_id': 1397160272, 'portfolio_id': 29036243}, {'photo_id': 1397160262, 'portfolio_id': 29036243}, {'photo_id': 1397160260, 'portfolio_id': 29036243}, {'photo_id': 1397160258, 'portfolio_id': 29036243}, {'photo_id': 1397160256, 'portfolio_id': 29036243}, {'photo_id': 1397160252, 'portfolio_id': 29036243}, {'photo_id': 1397160244, 'portfolio_id': 29036243}, {'photo_id': 1397160057, 'portfolio_id': 29036243}, {'photo_id': 1397160056, 'portfolio_id': 29036243}] map_portfolio_id_photo_id: {29036243: [1397160473, 1397160470, 1397160466, 1397160462, 1397160457, 1397160455, 1397160451, 1397160450, 1397160448, 1397160447, 1397160444, 1397160443, 1397160441, 1397160439, 1397160438, 1397160437, 1397160435, 1397160434, 1397160418, 1397160416, 1397160414, 1397160412, 1397160411, 1397160410, 1397160405, 1397160402, 1397160399, 1397160396, 1397160393, 1397160392, 1397160360, 1397160357, 1397160355, 1397160353, 1397160352, 1397160351, 1397160334, 1397160331, 1397160329, 1397160327, 1397160325, 1397160315, 1397160313, 1397160310, 1397160308, 1397160305, 1397160303, 1397160277, 1397160275, 1397160273, 1397160272, 1397160262, 1397160260, 1397160258, 1397160256, 1397160252, 1397160244, 1397160057, 1397160056]} ##### 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.019275188446044922 #### 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 Dec 1 06:10:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29036243) 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 : 29036243 get user id for portfolio 29036243 get sub ptf for main ptf 29036243, type 3726 and hashtags ['Teint_Dans_La_Masse', 'Carton_brun', 'plastique', 'metal', 'autre_refus', 'kraft', 'Carton_gris', 'papier', 'environnement', 'flou', 'mal_croppe', 'cartonnette'] 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`=29036243 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','plastique','metal','autre_refus','kraft','Carton_gris','papier','environnement','flou','mal_croppe','cartonnette')) 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`=29036243 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','plastique','metal','autre_refus','kraft','Carton_gris','papier','environnement','flou','mal_croppe','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 29036243, 'sub_port_id': 29036252, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733280, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 28)}, 'metal': {'main_port_id': 29036243, 'sub_port_id': 29036253, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733281, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 28)}, 'kraft': {'main_port_id': 29036243, 'sub_port_id': 29036254, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733282, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 28)}, 'Carton_brun': {'main_port_id': 29036243, 'sub_port_id': 29036255, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733283, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 28)}, 'autre_refus': {'main_port_id': 29036243, 'sub_port_id': 29036256, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733284, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 28)}, 'cartonnette': {'main_port_id': 29036243, 'sub_port_id': 29036257, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733285, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 29036243, 'sub_port_id': 29036258, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733286, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 28)}, 'plastique': {'main_port_id': 29036243, 'sub_port_id': 29036259, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733287, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 28)}, 'flou': {'main_port_id': 29036243, 'sub_port_id': 29036260, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733288, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 28)}, 'papier': {'main_port_id': 29036243, 'sub_port_id': 29036261, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733289, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 28)}, 'environnement': {'main_port_id': 29036243, 'sub_port_id': 29036262, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733290, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 28)}, 'Carton_gris': {'main_port_id': 29036243, 'sub_port_id': 29036263, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733291, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29036252 , 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=29036243 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 (29036252) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29036243) result : ((1397160056,), (1397160057,), (1397160244,), (1397160252,), (1397160256,), (1397160258,), (1397160260,), (1397160262,), (1397160272,), (1397160273,), (1397160275,), (1397160277,), (1397160303,), (1397160305,), (1397160308,), (1397160310,), (1397160313,), (1397160315,), (1397160325,), (1397160327,), (1397160329,), (1397160331,), (1397160334,), (1397160351,), (1397160352,), (1397160353,), (1397160355,), (1397160357,), (1397160360,), (1397160392,), (1397160393,), (1397160396,), (1397160399,), (1397160402,), (1397160405,), (1397160410,), (1397160411,), (1397160412,), (1397160414,), (1397160416,), (1397160418,), (1397160434,), (1397160435,), (1397160437,), (1397160438,), (1397160439,), (1397160441,), (1397160443,), (1397160444,), (1397160447,), (1397160448,), (1397160450,), (1397160451,), (1397160455,), (1397160457,), (1397160462,), (1397160466,), (1397160470,), (1397160473,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29036253 , 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=29036243 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 (29036253) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29036243) result : ((1397160056,), (1397160057,), (1397160244,), (1397160252,), (1397160256,), (1397160258,), (1397160260,), (1397160262,), (1397160272,), (1397160273,), (1397160275,), (1397160277,), (1397160303,), (1397160305,), (1397160308,), (1397160310,), (1397160313,), (1397160315,), (1397160325,), (1397160327,), (1397160329,), (1397160331,), (1397160334,), (1397160351,), (1397160352,), (1397160353,), (1397160355,), (1397160357,), (1397160360,), (1397160392,), (1397160393,), (1397160396,), (1397160399,), (1397160402,), (1397160405,), (1397160410,), (1397160411,), (1397160412,), (1397160414,), (1397160416,), (1397160418,), (1397160434,), (1397160435,), (1397160437,), (1397160438,), (1397160439,), (1397160441,), (1397160443,), (1397160444,), (1397160447,), (1397160448,), (1397160450,), (1397160451,), (1397160455,), (1397160457,), (1397160462,), (1397160466,), (1397160470,), (1397160473,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29036254 , 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=29036243 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 (29036254) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29036243) result : ((1397160056,), (1397160057,), (1397160244,), (1397160252,), (1397160256,), (1397160258,), (1397160260,), (1397160262,), (1397160272,), (1397160273,), (1397160275,), (1397160277,), (1397160303,), (1397160305,), (1397160308,), (1397160310,), (1397160313,), (1397160315,), (1397160325,), (1397160327,), (1397160329,), (1397160331,), (1397160334,), (1397160351,), (1397160352,), (1397160353,), (1397160355,), (1397160357,), (1397160360,), (1397160392,), (1397160393,), (1397160396,), (1397160399,), (1397160402,), (1397160405,), (1397160410,), (1397160411,), (1397160412,), (1397160414,), (1397160416,), (1397160418,), (1397160434,), (1397160435,), (1397160437,), (1397160438,), (1397160439,), (1397160441,), (1397160443,), (1397160444,), (1397160447,), (1397160448,), (1397160450,), (1397160451,), (1397160455,), (1397160457,), (1397160462,), (1397160466,), (1397160470,), (1397160473,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29036255 , 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=29036243 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 (29036255) result : ((1397160338,), (1397160540,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29036243) result : ((1397160056,), (1397160057,), (1397160244,), (1397160252,), (1397160256,), (1397160258,), (1397160260,), (1397160262,), (1397160272,), (1397160273,), (1397160275,), (1397160277,), (1397160303,), (1397160305,), (1397160308,), (1397160310,), (1397160313,), (1397160315,), (1397160325,), (1397160327,), (1397160329,), (1397160331,), (1397160334,), (1397160351,), (1397160352,), (1397160353,), (1397160355,), (1397160357,), (1397160360,), (1397160392,), (1397160393,), (1397160396,), (1397160399,), (1397160402,), (1397160405,), (1397160410,), (1397160411,), (1397160412,), (1397160414,), (1397160416,), (1397160418,), (1397160434,), (1397160435,), (1397160437,), (1397160438,), (1397160439,), (1397160441,), (1397160443,), (1397160444,), (1397160447,), (1397160448,), (1397160450,), (1397160451,), (1397160455,), (1397160457,), (1397160462,), (1397160466,), (1397160470,), (1397160473,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29036256 , 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=29036243 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 (29036256) result : ((1397160337,), (1397160420,), (1397160421,), (1397160424,), (1397160536,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29036243) result : ((1397160056,), (1397160057,), (1397160244,), (1397160252,), (1397160256,), (1397160258,), (1397160260,), (1397160262,), (1397160272,), (1397160273,), (1397160275,), (1397160277,), (1397160303,), (1397160305,), (1397160308,), (1397160310,), (1397160313,), (1397160315,), (1397160325,), (1397160327,), (1397160329,), (1397160331,), (1397160334,), (1397160351,), (1397160352,), (1397160353,), (1397160355,), (1397160357,), (1397160360,), (1397160392,), (1397160393,), (1397160396,), (1397160399,), (1397160402,), (1397160405,), (1397160410,), (1397160411,), (1397160412,), (1397160414,), (1397160416,), (1397160418,), (1397160434,), (1397160435,), (1397160437,), (1397160438,), (1397160439,), (1397160441,), (1397160443,), (1397160444,), (1397160447,), (1397160448,), (1397160450,), (1397160451,), (1397160455,), (1397160457,), (1397160462,), (1397160466,), (1397160470,), (1397160473,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29036257 , 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=29036243 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 (29036257) result : ((1397160386,), (1397160387,), (1397160388,), (1397160429,), (1397160430,), (1397160539,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29036243) result : ((1397160056,), (1397160057,), (1397160244,), (1397160252,), (1397160256,), (1397160258,), (1397160260,), (1397160262,), (1397160272,), (1397160273,), (1397160275,), (1397160277,), (1397160303,), (1397160305,), (1397160308,), (1397160310,), (1397160313,), (1397160315,), (1397160325,), (1397160327,), (1397160329,), (1397160331,), (1397160334,), (1397160351,), (1397160352,), (1397160353,), (1397160355,), (1397160357,), (1397160360,), (1397160392,), (1397160393,), (1397160396,), (1397160399,), (1397160402,), (1397160405,), (1397160410,), (1397160411,), (1397160412,), (1397160414,), (1397160416,), (1397160418,), (1397160434,), (1397160435,), (1397160437,), (1397160438,), (1397160439,), (1397160441,), (1397160443,), (1397160444,), (1397160447,), (1397160448,), (1397160450,), (1397160451,), (1397160455,), (1397160457,), (1397160462,), (1397160466,), (1397160470,), (1397160473,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29036258 , 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=29036243 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 (29036258) result : ((1397160381,), (1397160382,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29036243) result : ((1397160056,), (1397160057,), (1397160244,), (1397160252,), (1397160256,), (1397160258,), (1397160260,), (1397160262,), (1397160272,), (1397160273,), (1397160275,), (1397160277,), (1397160303,), (1397160305,), (1397160308,), (1397160310,), (1397160313,), (1397160315,), (1397160325,), (1397160327,), (1397160329,), (1397160331,), (1397160334,), (1397160351,), (1397160352,), (1397160353,), (1397160355,), (1397160357,), (1397160360,), (1397160392,), (1397160393,), (1397160396,), (1397160399,), (1397160402,), (1397160405,), (1397160410,), (1397160411,), (1397160412,), (1397160414,), (1397160416,), (1397160418,), (1397160434,), (1397160435,), (1397160437,), (1397160438,), (1397160439,), (1397160441,), (1397160443,), (1397160444,), (1397160447,), (1397160448,), (1397160450,), (1397160451,), (1397160455,), (1397160457,), (1397160462,), (1397160466,), (1397160470,), (1397160473,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29036259 , 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=29036243 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 (29036259) result : ((1397160340,), (1397160389,), (1397160541,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29036243) result : ((1397160056,), (1397160057,), (1397160244,), (1397160252,), (1397160256,), (1397160258,), (1397160260,), (1397160262,), (1397160272,), (1397160273,), (1397160275,), (1397160277,), (1397160303,), (1397160305,), (1397160308,), (1397160310,), (1397160313,), (1397160315,), (1397160325,), (1397160327,), (1397160329,), (1397160331,), (1397160334,), (1397160351,), (1397160352,), (1397160353,), (1397160355,), (1397160357,), (1397160360,), (1397160392,), (1397160393,), (1397160396,), (1397160399,), (1397160402,), (1397160405,), (1397160410,), (1397160411,), (1397160412,), (1397160414,), (1397160416,), (1397160418,), (1397160434,), (1397160435,), (1397160437,), (1397160438,), (1397160439,), (1397160441,), (1397160443,), (1397160444,), (1397160447,), (1397160448,), (1397160450,), (1397160451,), (1397160455,), (1397160457,), (1397160462,), (1397160466,), (1397160470,), (1397160473,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29036260 , 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=29036243 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 (29036260) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29036243) result : ((1397160056,), (1397160057,), (1397160244,), (1397160252,), (1397160256,), (1397160258,), (1397160260,), (1397160262,), (1397160272,), (1397160273,), (1397160275,), (1397160277,), (1397160303,), (1397160305,), (1397160308,), (1397160310,), (1397160313,), (1397160315,), (1397160325,), (1397160327,), (1397160329,), (1397160331,), (1397160334,), (1397160351,), (1397160352,), (1397160353,), (1397160355,), (1397160357,), (1397160360,), (1397160392,), (1397160393,), (1397160396,), (1397160399,), (1397160402,), (1397160405,), (1397160410,), (1397160411,), (1397160412,), (1397160414,), (1397160416,), (1397160418,), (1397160434,), (1397160435,), (1397160437,), (1397160438,), (1397160439,), (1397160441,), (1397160443,), (1397160444,), (1397160447,), (1397160448,), (1397160450,), (1397160451,), (1397160455,), (1397160457,), (1397160462,), (1397160466,), (1397160470,), (1397160473,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29036261 , 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=29036243 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 (29036261) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29036243) result : ((1397160056,), (1397160057,), (1397160244,), (1397160252,), (1397160256,), (1397160258,), (1397160260,), (1397160262,), (1397160272,), (1397160273,), (1397160275,), (1397160277,), (1397160303,), (1397160305,), (1397160308,), (1397160310,), (1397160313,), (1397160315,), (1397160325,), (1397160327,), (1397160329,), (1397160331,), (1397160334,), (1397160351,), (1397160352,), (1397160353,), (1397160355,), (1397160357,), (1397160360,), (1397160392,), (1397160393,), (1397160396,), (1397160399,), (1397160402,), (1397160405,), (1397160410,), (1397160411,), (1397160412,), (1397160414,), (1397160416,), (1397160418,), (1397160434,), (1397160435,), (1397160437,), (1397160438,), (1397160439,), (1397160441,), (1397160443,), (1397160444,), (1397160447,), (1397160448,), (1397160450,), (1397160451,), (1397160455,), (1397160457,), (1397160462,), (1397160466,), (1397160470,), (1397160473,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29036262 , 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=29036243 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 (29036262) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29036243) result : ((1397160056,), (1397160057,), (1397160244,), (1397160252,), (1397160256,), (1397160258,), (1397160260,), (1397160262,), (1397160272,), (1397160273,), (1397160275,), (1397160277,), (1397160303,), (1397160305,), (1397160308,), (1397160310,), (1397160313,), (1397160315,), (1397160325,), (1397160327,), (1397160329,), (1397160331,), (1397160334,), (1397160351,), (1397160352,), (1397160353,), (1397160355,), (1397160357,), (1397160360,), (1397160392,), (1397160393,), (1397160396,), (1397160399,), (1397160402,), (1397160405,), (1397160410,), (1397160411,), (1397160412,), (1397160414,), (1397160416,), (1397160418,), (1397160434,), (1397160435,), (1397160437,), (1397160438,), (1397160439,), (1397160441,), (1397160443,), (1397160444,), (1397160447,), (1397160448,), (1397160450,), (1397160451,), (1397160455,), (1397160457,), (1397160462,), (1397160466,), (1397160470,), (1397160473,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29036263 , 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=29036243 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 (29036263) result : ((1397160383,), (1397160384,), (1397160425,), (1397160426,), (1397160427,), (1397160428,), (1397160538,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29036243) result : ((1397160056,), (1397160057,), (1397160244,), (1397160252,), (1397160256,), (1397160258,), (1397160260,), (1397160262,), (1397160272,), (1397160273,), (1397160275,), (1397160277,), (1397160303,), (1397160305,), (1397160308,), (1397160310,), (1397160313,), (1397160315,), (1397160325,), (1397160327,), (1397160329,), (1397160331,), (1397160334,), (1397160351,), (1397160352,), (1397160353,), (1397160355,), (1397160357,), (1397160360,), (1397160392,), (1397160393,), (1397160396,), (1397160399,), (1397160402,), (1397160405,), (1397160410,), (1397160411,), (1397160412,), (1397160414,), (1397160416,), (1397160418,), (1397160434,), (1397160435,), (1397160437,), (1397160438,), (1397160439,), (1397160441,), (1397160443,), (1397160444,), (1397160447,), (1397160448,), (1397160450,), (1397160451,), (1397160455,), (1397160457,), (1397160462,), (1397160466,), (1397160470,), (1397160473,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") 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`=29036243 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','plastique','metal','autre_refus','kraft','Carton_gris','papier','environnement','flou','mal_croppe','cartonnette')) 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`=29036243 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','plastique','metal','autre_refus','kraft','Carton_gris','papier','environnement','flou','mal_croppe','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 29036243, 'sub_port_id': 29036276, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733304, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 34)}, 'metal': {'main_port_id': 29036243, 'sub_port_id': 29036277, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733305, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 34)}, 'kraft': {'main_port_id': 29036243, 'sub_port_id': 29036278, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733306, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 34)}, 'Carton_brun': {'main_port_id': 29036243, 'sub_port_id': 29036279, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733307, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 34)}, 'autre_refus': {'main_port_id': 29036243, 'sub_port_id': 29036280, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733308, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 34)}, 'cartonnette': {'main_port_id': 29036243, 'sub_port_id': 29036281, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733309, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 29036243, 'sub_port_id': 29036282, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733310, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 34)}, 'plastique': {'main_port_id': 29036243, 'sub_port_id': 29036283, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733311, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 34)}, 'flou': {'main_port_id': 29036243, 'sub_port_id': 29036284, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733312, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 34)}, 'papier': {'main_port_id': 29036243, 'sub_port_id': 29036285, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733313, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 34)}, 'environnement': {'main_port_id': 29036243, 'sub_port_id': 29036286, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733314, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 34)}, 'Carton_gris': {'main_port_id': 29036243, 'sub_port_id': 29036287, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19733315, 'last_updated_at': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 6, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 6, 3, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29036276,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29036252 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29036277,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29036253 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29036278,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29036254 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29036279,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29036255 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29036280,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29036256 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29036281,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29036257 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29036282,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29036258 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29036283,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29036259 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29036284,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29036260 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29036285,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29036261 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29036286,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29036262 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29036287,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29036263 lien utilise dans velours : https://marlene.fotonower.com/velours/29036276,29036277,29036278,29036279,29036280,29036281,29036282,29036283,29036284,29036285,29036286,29036287?tags=mal_croppe,metal,kraft,Carton_brun,autre_refus,cartonnette,Teint_Dans_La_Masse,plastique,flou,papier,environnement,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29036243]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1397160473, 1397160470, 1397160466, 1397160462, 1397160457, 1397160455, 1397160451, 1397160450, 1397160448, 1397160447, 1397160444, 1397160443, 1397160441, 1397160439, 1397160438, 1397160437, 1397160435, 1397160434] map_info['map_portfolio_photo'] : {29036243: [1397160473, 1397160470, 1397160466, 1397160462, 1397160457, 1397160455, 1397160451, 1397160450, 1397160448, 1397160447, 1397160444, 1397160443, 1397160441, 1397160439, 1397160438, 1397160437, 1397160435, 1397160434, 1397160418, 1397160416, 1397160414, 1397160412, 1397160411, 1397160410, 1397160405, 1397160402, 1397160399, 1397160396, 1397160393, 1397160392, 1397160360, 1397160357, 1397160355, 1397160353, 1397160352, 1397160351, 1397160334, 1397160331, 1397160329, 1397160327, 1397160325, 1397160315, 1397160313, 1397160310, 1397160308, 1397160305, 1397160303, 1397160277, 1397160275, 1397160273, 1397160272, 1397160262, 1397160260, 1397160258, 1397160256, 1397160252, 1397160244, 1397160057, 1397160056]} final : False mtd_id 4302 list_pids : [1397160473, 1397160470, 1397160466, 1397160462, 1397160457, 1397160455, 1397160451, 1397160450, 1397160448, 1397160447, 1397160444, 1397160443, 1397160441, 1397160439, 1397160438, 1397160437, 1397160435, 1397160434] Looping around the photos to save general results len do output : 1 /29036243. 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, '4142791') ('4302', '29036243', '1397160473', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160470', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160466', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160462', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160457', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160455', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160451', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160450', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160448', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160447', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160444', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160443', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160441', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160439', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160438', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160437', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160435', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160434', None, None, None, None, None, '4142791') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '29036243', "{'mal_croppe': 29036252, 'metal': 29036253, 'kraft': 29036254, 'Carton_brun': 29036255, 'autre_refus': 29036256, 'cartonnette': 29036257, 'Teint_Dans_La_Masse': 29036258, 'plastique': 29036259, 'flou': 29036260, 'papier': 29036261, 'environnement': 29036262, 'Carton_gris': 29036263}", None, None, None, None, '4142791'), ('4302', '29036243', '1397160473', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160470', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160466', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160462', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160457', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160455', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160451', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160450', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160448', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160447', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160444', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160443', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160441', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160439', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160438', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160437', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160435', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160434', None, None, None, None, None, '4142791')] time used for this insertion : 0.017241716384887695 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8409132957458496 time spend to save output : 0.01757049560546875 total time spend for step 1 : 1.8584837913513184 step2:final Mon Dec 1 06:11:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29036243) 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 29036243 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1397160057,1397160056,1397160262,1397160260,1397160258,1397160256,1397160252,1397160244,1397160277,1397160275,1397160273,1397160272,1397160315,1397160313,1397160310,1397160308,1397160305,1397160303,1397160334,1397160331,1397160450,1397160451,1397160329,1397160447,1397160448,1397160327,1397160418,1397160360,1397160325,1397160416,1397160357,1397160414,1397160355,1397160412,1397160411,1397160353,1397160410,1397160352,1397160405,1397160351,1397160402,1397160399,1397160396,1397160393,1397160392,1397160443,1397160444,1397160439,1397160441,1397160438,1397160437,1397160435,1397160434,1397160473,1397160470,1397160466,1397160462,1397160457,1397160455); 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([29036243]) Inside saveOutput : final : False verbose : True original output for save of step final : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} new output for save of step final : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} [1397160473, 1397160470, 1397160466, 1397160462, 1397160457, 1397160455, 1397160451, 1397160450, 1397160448, 1397160447, 1397160444, 1397160443, 1397160441, 1397160439, 1397160438, 1397160437, 1397160435, 1397160434] map_info['map_portfolio_photo'] : {29036243: [1397160473, 1397160470, 1397160466, 1397160462, 1397160457, 1397160455, 1397160451, 1397160450, 1397160448, 1397160447, 1397160444, 1397160443, 1397160441, 1397160439, 1397160438, 1397160437, 1397160435, 1397160434, 1397160418, 1397160416, 1397160414, 1397160412, 1397160411, 1397160410, 1397160405, 1397160402, 1397160399, 1397160396, 1397160393, 1397160392, 1397160360, 1397160357, 1397160355, 1397160353, 1397160352, 1397160351, 1397160334, 1397160331, 1397160329, 1397160327, 1397160325, 1397160315, 1397160313, 1397160310, 1397160308, 1397160305, 1397160303, 1397160277, 1397160275, 1397160273, 1397160272, 1397160262, 1397160260, 1397160258, 1397160256, 1397160252, 1397160244, 1397160057, 1397160056]} final : False mtd_id 4302 list_pids : [1397160473, 1397160470, 1397160466, 1397160462, 1397160457, 1397160455, 1397160451, 1397160450, 1397160448, 1397160447, 1397160444, 1397160443, 1397160441, 1397160439, 1397160438, 1397160437, 1397160435, 1397160434] Looping around the photos to save general results len do output : 18 /1397160473.Didn't retrieve data . /1397160470.Didn't retrieve data . /1397160466.Didn't retrieve data . /1397160462.Didn't retrieve data . /1397160457.Didn't retrieve data . /1397160455.Didn't retrieve data . /1397160451.Didn't retrieve data . /1397160450.Didn't retrieve data . /1397160448.Didn't retrieve data . /1397160447.Didn't retrieve data . /1397160444.Didn't retrieve data . /1397160443.Didn't retrieve data . /1397160441.Didn't retrieve data . /1397160439.Didn't retrieve data . /1397160438.Didn't retrieve data . /1397160437.Didn't retrieve data . /1397160435.Didn't retrieve data . /1397160434.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, '4142791') ('4302', '29036243', '1397160473', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160470', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160466', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160462', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160457', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160455', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160451', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160450', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160448', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160447', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160444', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160443', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160441', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160439', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160438', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160437', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160435', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160434', None, None, None, None, None, '4142791') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 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', '29036243', '1397160473', '0.044776118684229996', None, None, None, None, '4142791'), ('4302', '29036243', '1397160470', '0.044776118684229996', None, None, None, None, '4142791'), ('4302', '29036243', '1397160466', '0.044776118684229996', None, None, None, None, '4142791'), ('4302', '29036243', '1397160462', '0.044776118684229996', None, None, None, None, '4142791'), ('4302', '29036243', '1397160457', '0.044776118684229996', None, None, None, None, '4142791'), ('4302', '29036243', '1397160455', '0.044776118684229996', None, None, None, None, '4142791'), ('4302', '29036243', '1397160451', '0.044776118684229996', None, None, None, None, '4142791'), ('4302', '29036243', '1397160450', '0.044776118684229996', None, None, None, None, '4142791'), ('4302', '29036243', '1397160448', '0.044776118684229996', None, None, None, None, '4142791'), ('4302', '29036243', '1397160447', '0.044776118684229996', None, None, None, None, '4142791'), ('4302', '29036243', '1397160444', '0.044776118684229996', None, None, None, None, '4142791'), ('4302', '29036243', '1397160443', '0.044776118684229996', None, None, None, None, '4142791'), ('4302', '29036243', '1397160441', '0.044776118684229996', None, None, None, None, '4142791'), ('4302', '29036243', '1397160439', '0.044776118684229996', None, None, None, None, '4142791'), ('4302', '29036243', '1397160438', '0.044776118684229996', None, None, None, None, '4142791'), ('4302', '29036243', '1397160437', '0.044776118684229996', None, None, None, None, '4142791'), ('4302', '29036243', '1397160435', '0.044776118684229996', None, None, None, None, '4142791'), ('4302', '29036243', '1397160434', '0.044776118684229996', None, None, None, None, '4142791')] time used for this insertion : 0.016157865524291992 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0800020694732666 time spend to save output : 0.017076730728149414 total time spend for step 2 : 0.09707880020141602 step3:velours_tree Mon Dec 1 06:11:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29036243: [{'mal_croppe': 29036252, 'metal': 29036253, 'kraft': 29036254, 'Carton_brun': 29036255, 'autre_refus': 29036256, 'cartonnette': 29036257, 'Teint_Dans_La_Masse': 29036258, 'plastique': 29036259, 'flou': 29036260, 'papier': 29036261, 'environnement': 29036262, 'Carton_gris': 29036263}]} input_args_next_step : {29036243: ()} output_args : {29036243: [{'mal_croppe': 29036252, 'metal': 29036253, 'kraft': 29036254, 'Carton_brun': 29036255, 'autre_refus': 29036256, 'cartonnette': 29036257, 'Teint_Dans_La_Masse': 29036258, 'plastique': 29036259, 'flou': 29036260, 'papier': 29036261, 'environnement': 29036262, 'Carton_gris': 29036263}]} args : 29036243 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 : ({'mal_croppe': 29036252, 'metal': 29036253, 'kraft': 29036254, 'Carton_brun': 29036255, 'autre_refus': 29036256, 'cartonnette': 29036257, 'Teint_Dans_La_Masse': 29036258, 'plastique': 29036259, 'flou': 29036260, 'papier': 29036261, 'environnement': 29036262, 'Carton_gris': 29036263},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29036243) 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([29036243]) 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.29265451431274414 time spend to save output : 5.459785461425781e-05 total time spend for step 3 : 0.2927091121673584 step4:send_mail_cod Mon Dec 1 06:11:01 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 : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} input_args_next_step : {1397160473: ()} output_args : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} args : 1397160473 depend.output_id : 0 input_args_next_step : {1397160473: ('0.044776118684229996',), 1397160470: ()} output_args : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} args : 1397160470 depend.output_id : 0 input_args_next_step : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ()} output_args : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} args : 1397160466 depend.output_id : 0 input_args_next_step : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ()} output_args : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} args : 1397160462 depend.output_id : 0 input_args_next_step : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ()} output_args : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} args : 1397160457 depend.output_id : 0 input_args_next_step : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ()} output_args : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} args : 1397160455 depend.output_id : 0 input_args_next_step : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ()} output_args : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} args : 1397160451 depend.output_id : 0 input_args_next_step : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ()} output_args : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} args : 1397160450 depend.output_id : 0 input_args_next_step : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ()} output_args : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} args : 1397160448 depend.output_id : 0 input_args_next_step : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ()} output_args : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} args : 1397160447 depend.output_id : 0 input_args_next_step : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ()} output_args : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} args : 1397160444 depend.output_id : 0 input_args_next_step : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ()} output_args : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} args : 1397160443 depend.output_id : 0 input_args_next_step : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ()} output_args : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} args : 1397160441 depend.output_id : 0 input_args_next_step : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ()} output_args : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} args : 1397160439 depend.output_id : 0 input_args_next_step : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ()} output_args : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} args : 1397160438 depend.output_id : 0 input_args_next_step : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ()} output_args : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} args : 1397160437 depend.output_id : 0 input_args_next_step : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ()} output_args : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} args : 1397160435 depend.output_id : 0 input_args_next_step : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ()} output_args : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',)} args : 1397160434 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 : {29036243: [{'mal_croppe': 29036252, 'metal': 29036253, 'kraft': 29036254, 'Carton_brun': 29036255, 'autre_refus': 29036256, 'cartonnette': 29036257, 'Teint_Dans_La_Masse': 29036258, 'plastique': 29036259, 'flou': 29036260, 'papier': 29036261, 'environnement': 29036262, 'Carton_gris': 29036263}]} input_args_next_step : {1397160473: ('0.044776118684229996',), 1397160470: ('0.044776118684229996',), 1397160466: ('0.044776118684229996',), 1397160462: ('0.044776118684229996',), 1397160457: ('0.044776118684229996',), 1397160455: ('0.044776118684229996',), 1397160451: ('0.044776118684229996',), 1397160450: ('0.044776118684229996',), 1397160448: ('0.044776118684229996',), 1397160447: ('0.044776118684229996',), 1397160444: ('0.044776118684229996',), 1397160443: ('0.044776118684229996',), 1397160441: ('0.044776118684229996',), 1397160439: ('0.044776118684229996',), 1397160438: ('0.044776118684229996',), 1397160437: ('0.044776118684229996',), 1397160435: ('0.044776118684229996',), 1397160434: ('0.044776118684229996',), 29036243: ()} output_args : {29036243: [{'mal_croppe': 29036252, 'metal': 29036253, 'kraft': 29036254, 'Carton_brun': 29036255, 'autre_refus': 29036256, 'cartonnette': 29036257, 'Teint_Dans_La_Masse': 29036258, 'plastique': 29036259, 'flou': 29036260, 'papier': 29036261, 'environnement': 29036262, 'Carton_gris': 29036263}]} args : 29036243 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 :19, first value : ('0.044776118684229996',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29036243) 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_view ph WHERE photo_id IN (1397160473,1397160470,1397160466,1397160462,1397160457,1397160455,1397160451,1397160450,1397160448,1397160447,1397160444,1397160443,1397160441,1397160439,1397160438,1397160437,1397160435,1397160434) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1397160434 begin to download photo : 1397160439 begin to download photo : 1397160447 begin to download photo : 1397160455 begin to download photo : 1397160470 download finish for photo 1397160455 begin to download photo : 1397160457 download finish for photo 1397160439 begin to download photo : 1397160441 download finish for photo 1397160447 begin to download photo : 1397160448 download finish for photo 1397160434 begin to download photo : 1397160435 download finish for photo 1397160470 begin to download photo : 1397160473 download finish for photo 1397160441 begin to download photo : 1397160443 download finish for photo 1397160448 begin to download photo : 1397160450 download finish for photo 1397160473 download finish for photo 1397160443 begin to download photo : 1397160444 download finish for photo 1397160435 begin to download photo : 1397160437 download finish for photo 1397160457 begin to download photo : 1397160462 download finish for photo 1397160450 begin to download photo : 1397160451 download finish for photo 1397160444 download finish for photo 1397160437 begin to download photo : 1397160438 download finish for photo 1397160462 begin to download photo : 1397160466 download finish for photo 1397160451 download finish for photo 1397160466 download finish for photo 1397160438 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette290362521764565861/ imagette290362531764565861/ imagette290362541764565862/ length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P29036243_01-12-2025_06_11_01.pdf 29036252 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29036252 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290362521764565861 29036253 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29036253 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290362531764565861 29036254 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29036254 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290362541764565862 29036256 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29036256 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397160337: '1764565507_2128678_1397160057_a695738523cff047bb9d319fd951e697_rle_crop_4053302649_0.png', 1397160420: '1764565645_2133913_1397160260_0a456a4dbeddcbc845df06249fd718c4_rle_crop_4053303108_0.png', 1397160421: '1764565645_2133913_1397160260_0a456a4dbeddcbc845df06249fd718c4_rle_crop_4053303109_0.png', 1397160424: '1764565645_2133913_1397160256_5bfc8112a45dbf596f6ec80d4bdf1ee0_rle_crop_4053303124_0.png', 1397160536: '1764565824_2140557_1397160399_3cd2060d562ac4b512b74dca665c8a03_rle_crop_4053303316_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/4931a791baf4642f2fbea035dca41438_27344903.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/478c8538418a03ea48f26716441fa9c0_12657830.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/d87497f0c8e74ac955bca6cd74c38eaa_79048897.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/a44ef6cce53fc5dec7038cc2f56b4469_65299223.png change filename to text .imagette290362561764565862/ imagette290362561764565862/1764565645_2133913_1397160256_5bfc8112a45dbf596f6ec80d4bdf1ee0_rle_crop_4053303124_0.png.png imagette290362561764565862/1764565824_2140557_1397160399_3cd2060d562ac4b512b74dca665c8a03_rle_crop_4053303316_0.png.png imagette290362561764565862/1764565507_2128678_1397160057_a695738523cff047bb9d319fd951e697_rle_crop_4053302649_0.png.png imagette290362561764565862/1764565645_2133913_1397160260_0a456a4dbeddcbc845df06249fd718c4_rle_crop_4053303108_0.png.png imagette290362561764565862/1764565645_2133913_1397160260_0a456a4dbeddcbc845df06249fd718c4_rle_crop_4053303109_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/8cc2b402c359b4132a4db6afb9117f29_74919836.png imagette290362561764565862 29036257 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29036257 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397160386: '1764565587_2132513_1397160275_1ca0df0f7fad893259bf8d0af763537e_rle_crop_4053302844_0.png', 1397160387: '1764565587_2132513_1397160272_eeb790aec944e3761c58156949b5fa74_rle_crop_4053302875_0.png', 1397160388: '1764565587_2132513_1397160272_eeb790aec944e3761c58156949b5fa74_rle_crop_4053302884_0.png', 1397160429: '1764565645_2133913_1397160277_668514f72d3e1b50af8814c1d4925d2c_rle_crop_4053303093_0.png', 1397160430: '1764565645_2133913_1397160244_300b638a6c6c0aa38d69b927ec48c22d_rle_crop_4053303147_0.png', 1397160539: '1764565824_2140557_1397160393_e1b0bb6f6281a4f9eba7b33d3d0f8879_rle_crop_4053303347_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/12600dad08d49ba4279f7e1de01c5dc5_19592555.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/b54a76bf69564eaa156ee3cde37cf1c8_36907162.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/d91021deed5c3400251d72f4ec16e57f_60196714.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/447b5a2bb8ca303db45d27f8092fc992_24566157.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/abc2674077f7d2c6bdf9642e49501515_66181271.png change filename to text .imagette290362571764565862/ imagette290362571764565862/1764565587_2132513_1397160272_eeb790aec944e3761c58156949b5fa74_rle_crop_4053302884_0.png.png imagette290362571764565862/1764565587_2132513_1397160272_eeb790aec944e3761c58156949b5fa74_rle_crop_4053302875_0.png.png imagette290362571764565862/1764565645_2133913_1397160244_300b638a6c6c0aa38d69b927ec48c22d_rle_crop_4053303147_0.png.png imagette290362571764565862/1764565824_2140557_1397160393_e1b0bb6f6281a4f9eba7b33d3d0f8879_rle_crop_4053303347_0.png.png imagette290362571764565862/1764565645_2133913_1397160277_668514f72d3e1b50af8814c1d4925d2c_rle_crop_4053303093_0.png.png imagette290362571764565862/1764565587_2132513_1397160275_1ca0df0f7fad893259bf8d0af763537e_rle_crop_4053302844_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/7c89d920982917ace73eb7ed497bfaf5_69358958.png imagette290362571764565862 29036259 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29036259 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397160340: '1764565507_2128678_1397160057_a695738523cff047bb9d319fd951e697_rle_crop_4053302661_0.png', 1397160389: '1764565587_2132513_1397160272_eeb790aec944e3761c58156949b5fa74_rle_crop_4053302878_0.png', 1397160541: '1764565824_2140557_1397160396_ba85734d587f1f7bd428b9ca28dbec33_rle_crop_4053303333_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/4a79ce8b6b46e8694f56e96a72255a67_11796873.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/6253c744d7ed6d89b07a9bd295803f77_71361908.png change filename to text .imagette290362591764565862/ imagette290362591764565862/1764565587_2132513_1397160272_eeb790aec944e3761c58156949b5fa74_rle_crop_4053302878_0.png.png imagette290362591764565862/1764565507_2128678_1397160057_a695738523cff047bb9d319fd951e697_rle_crop_4053302661_0.png.png imagette290362591764565862/1764565824_2140557_1397160396_ba85734d587f1f7bd428b9ca28dbec33_rle_crop_4053303333_0.png.png imagette290362601764565863/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/65e348d9c0aef56556b0d8841d04ef8d_1009955.png imagette290362591764565862 29036260 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29036260 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290362601764565863 29036255 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29036255 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397160338: '1764565507_2128678_1397160057_a695738523cff047bb9d319fd951e697_rle_crop_4053302655_0.png', 1397160540: '1764565824_2140557_1397160393_e1b0bb6f6281a4f9eba7b33d3d0f8879_rle_crop_4053303346_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/4abb16fe15f4eada08056afd1502bb4b_60155574.png change filename to text .imagette290362551764565863/ imagette290362551764565863/1764565507_2128678_1397160057_a695738523cff047bb9d319fd951e697_rle_crop_4053302655_0.png.png imagette290362551764565863/1764565824_2140557_1397160393_e1b0bb6f6281a4f9eba7b33d3d0f8879_rle_crop_4053303346_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/81a6bcbac7d97a0c271d9de5d5aaa624_79938797.png imagette290362551764565863 29036258 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29036258 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397160381: '1764565587_2132513_1397160275_1ca0df0f7fad893259bf8d0af763537e_rle_crop_4053302849_0.png', 1397160382: '1764565587_2132513_1397160273_e624ea30f5d37f34b096f6d27fe3e317_rle_crop_4053302860_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/45ad866995014617e3240873411a35a1_98080539.png change filename to text .imagette290362581764565863/ imagette290362581764565863/1764565587_2132513_1397160273_e624ea30f5d37f34b096f6d27fe3e317_rle_crop_4053302860_0.png.png imagette290362581764565863/1764565587_2132513_1397160275_1ca0df0f7fad893259bf8d0af763537e_rle_crop_4053302849_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/849e3deefb61d403d3e33c55097c3ec4_99301423.png imagette290362581764565863 29036263 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29036263 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397160383: '1764565587_2132513_1397160275_1ca0df0f7fad893259bf8d0af763537e_rle_crop_4053302847_0.png', 1397160384: '1764565587_2132513_1397160272_eeb790aec944e3761c58156949b5fa74_rle_crop_4053302883_0.png', 1397160425: '1764565645_2133913_1397160277_668514f72d3e1b50af8814c1d4925d2c_rle_crop_4053303095_0.png', 1397160426: '1764565645_2133913_1397160252_fbdcd8157a930c437f6c38e8c84bfbc3_rle_crop_4053303139_0.png', 1397160427: '1764565645_2133913_1397160252_fbdcd8157a930c437f6c38e8c84bfbc3_rle_crop_4053303134_0.png', 1397160428: '1764565645_2133913_1397160244_300b638a6c6c0aa38d69b927ec48c22d_rle_crop_4053303151_0.png', 1397160538: '1764565824_2140557_1397160396_ba85734d587f1f7bd428b9ca28dbec33_rle_crop_4053303325_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/7217e63c47322a8ce5ab0caa3644af79_46384887.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/69fec671ac58d4cfeea536a5e636a1fa_5184823.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/f965c523cf19f11920d61b882ae999a0_58047391.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/c71134a6f85bf6bbf47b5a0dc571ad16_84977170.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/98859c1615f6e781b6dcc7d3c89a1f7f_57961157.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/222645dd27d4840b51c3b1e670e8dca9_15554395.png change filename to text .imagette290362631764565863/ imagette290362631764565863/1764565645_2133913_1397160252_fbdcd8157a930c437f6c38e8c84bfbc3_rle_crop_4053303139_0.png.png imagette290362631764565863/1764565645_2133913_1397160252_fbdcd8157a930c437f6c38e8c84bfbc3_rle_crop_4053303134_0.png.png imagette290362631764565863/1764565824_2140557_1397160396_ba85734d587f1f7bd428b9ca28dbec33_rle_crop_4053303325_0.png.png imagette290362631764565863/1764565645_2133913_1397160277_668514f72d3e1b50af8814c1d4925d2c_rle_crop_4053303095_0.png.png imagette290362631764565863/1764565587_2132513_1397160275_1ca0df0f7fad893259bf8d0af763537e_rle_crop_4053302847_0.png.png imagette290362631764565863/1764565645_2133913_1397160244_300b638a6c6c0aa38d69b927ec48c22d_rle_crop_4053303151_0.png.png imagette290362631764565863/1764565587_2132513_1397160272_eeb790aec944e3761c58156949b5fa74_rle_crop_4053302883_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/43e3f80887c369e9ae4b9f3070dd311d_16690734.png imagette290362631764565863 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29036243 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29036276,29036277,29036278,29036279,29036280,29036281,29036282,29036283,29036284,29036285,29036286,29036287?tags=mal_croppe,metal,kraft,Carton_brun,autre_refus,cartonnette,Teint_Dans_La_Masse,plastique,flou,papier,environnement,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1397160473] : ('0.044776118684229996',) no score found for photo 1397160473 We are sending mail with results at report@fotonower.com args[1397160470] : ('0.044776118684229996',) no score found for photo 1397160470 We are sending mail with results at report@fotonower.com args[1397160466] : ('0.044776118684229996',) no score found for photo 1397160466 We are sending mail with results at report@fotonower.com args[1397160462] : ('0.044776118684229996',) no score found for photo 1397160462 We are sending mail with results at report@fotonower.com args[1397160457] : ('0.044776118684229996',) no score found for photo 1397160457 We are sending mail with results at report@fotonower.com args[1397160455] : ('0.044776118684229996',) no score found for photo 1397160455 We are sending mail with results at report@fotonower.com args[1397160451] : ('0.044776118684229996',) no score found for photo 1397160451 We are sending mail with results at report@fotonower.com args[1397160450] : ('0.044776118684229996',) no score found for photo 1397160450 We are sending mail with results at report@fotonower.com args[1397160448] : ('0.044776118684229996',) no score found for photo 1397160448 We are sending mail with results at report@fotonower.com args[1397160447] : ('0.044776118684229996',) no score found for photo 1397160447 We are sending mail with results at report@fotonower.com args[1397160444] : ('0.044776118684229996',) no score found for photo 1397160444 We are sending mail with results at report@fotonower.com args[1397160443] : ('0.044776118684229996',) no score found for photo 1397160443 We are sending mail with results at report@fotonower.com args[1397160441] : ('0.044776118684229996',) no score found for photo 1397160441 We are sending mail with results at report@fotonower.com args[1397160439] : ('0.044776118684229996',) no score found for photo 1397160439 We are sending mail with results at report@fotonower.com args[1397160438] : ('0.044776118684229996',) no score found for photo 1397160438 We are sending mail with results at report@fotonower.com args[1397160437] : ('0.044776118684229996',) no score found for photo 1397160437 We are sending mail with results at report@fotonower.com args[1397160435] : ('0.044776118684229996',) no score found for photo 1397160435 We are sending mail with results at report@fotonower.com args[1397160434] : ('0.044776118684229996',) no score found for photo 1397160434 We are sending mail with results at report@fotonower.com refus_total : 0.044776118684229996 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29036243 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_P29036243_01-12-2025_06_11_01.pdf results_Auto_P29036243_01-12-2025_06_11_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29036243_01-12-2025_06_11_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29036243','results_Auto_P29036243_01-12-2025_06_11_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29036243_01-12-2025_06_11_01.pdf','pdf','','0.21','0.044776118684229996') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29036243]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1397160473, 1397160470, 1397160466, 1397160462, 1397160457, 1397160455, 1397160451, 1397160450, 1397160448, 1397160447, 1397160444, 1397160443, 1397160441, 1397160439, 1397160438, 1397160437, 1397160435, 1397160434] map_info['map_portfolio_photo'] : {29036243: [1397160473, 1397160470, 1397160466, 1397160462, 1397160457, 1397160455, 1397160451, 1397160450, 1397160448, 1397160447, 1397160444, 1397160443, 1397160441, 1397160439, 1397160438, 1397160437, 1397160435, 1397160434, 1397160418, 1397160416, 1397160414, 1397160412, 1397160411, 1397160410, 1397160405, 1397160402, 1397160399, 1397160396, 1397160393, 1397160392, 1397160360, 1397160357, 1397160355, 1397160353, 1397160352, 1397160351, 1397160334, 1397160331, 1397160329, 1397160327, 1397160325, 1397160315, 1397160313, 1397160310, 1397160308, 1397160305, 1397160303, 1397160277, 1397160275, 1397160273, 1397160272, 1397160262, 1397160260, 1397160258, 1397160256, 1397160252, 1397160244, 1397160057, 1397160056]} final : False mtd_id 4302 list_pids : [1397160473, 1397160470, 1397160466, 1397160462, 1397160457, 1397160455, 1397160451, 1397160450, 1397160448, 1397160447, 1397160444, 1397160443, 1397160441, 1397160439, 1397160438, 1397160437, 1397160435, 1397160434] 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, '4142791') ('4302', '29036243', '1397160473', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160470', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160466', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160462', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160457', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160455', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160451', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160450', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160448', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160447', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160444', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160443', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160441', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160439', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160438', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160437', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160435', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160434', None, None, None, None, None, '4142791') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '29036243', '1397160473', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160470', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160466', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160462', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160457', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160455', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160451', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160450', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160448', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160447', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160444', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160443', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160441', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160439', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160438', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160437', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160435', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160434', None, None, None, None, None, '4142791')] time used for this insertion : 0.019976139068603516 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.8581814765930176 time spend to save output : 0.020246028900146484 total time spend for step 4 : 3.878427505493164 step5:split_time_score Mon Dec 1 06:11: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 : ['29036243'] 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 : [('29036243',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29036243) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1397160470: {'path': 'temp/1764565861_1506515_1397160470_d55e32064aeb3ae477603e7fc81c32e0.jpg', 'extension': 'jpg'}, 1397160473: {'path': 'temp/1764565861_1506515_1397160473_838459d58068205a48efc843047cce22.jpg', 'extension': 'jpg'}, 1397160439: {'path': 'temp/1764565861_1506515_1397160439_0d8ccf507fc2534ccc13b401b1595818.jpg', 'extension': 'jpg'}, 1397160441: {'path': 'temp/1764565861_1506515_1397160441_493e658ac8e2789ccd8a51a9fd24a8f9.jpg', 'extension': 'jpg'}, 1397160443: {'path': 'temp/1764565861_1506515_1397160443_5f98ca59224b852b3e8439e47abfb6da.jpg', 'extension': 'jpg'}, 1397160444: {'path': 'temp/1764565861_1506515_1397160444_ab33a41783cbb721042cc5a5ab1df0f1.jpg', 'extension': 'jpg'}, 1397160447: {'path': 'temp/1764565861_1506515_1397160447_df51ab129d6354fe6441ce085c886d4d.jpg', 'extension': 'jpg'}, 1397160448: {'path': 'temp/1764565861_1506515_1397160448_29d91a6df3802093fa00dd374e96524b.jpg', 'extension': 'jpg'}, 1397160450: {'path': 'temp/1764565861_1506515_1397160450_6f909fe2d2d65343cc16aa061c6e838e.jpg', 'extension': 'jpg'}, 1397160451: {'path': 'temp/1764565861_1506515_1397160451_c1fc128282ff7c7620fa78b02cc75db8.jpg', 'extension': 'jpg'}, 1397160455: {'path': 'temp/1764565861_1506515_1397160455_bba02cc4febab8136193540dbe9d97aa.jpg', 'extension': 'jpg'}, 1397160457: {'path': 'temp/1764565861_1506515_1397160457_7c379ad2b720b21954f564b0fc44ce4e.jpg', 'extension': 'jpg'}, 1397160462: {'path': 'temp/1764565861_1506515_1397160462_3c4450be62cc510e3175b554c0d96886.jpg', 'extension': 'jpg'}, 1397160466: {'path': 'temp/1764565861_1506515_1397160466_525ccc08c4ac65f84649eb5284121e5f.jpg', 'extension': 'jpg'}, 1397160434: {'path': 'temp/1764565861_1506515_1397160434_64995f06678a4ebed2e47d1f4643f648.jpg', 'extension': 'jpg'}, 1397160435: {'path': 'temp/1764565861_1506515_1397160435_a163c4ffd14843f102c7d977f61ccd97.jpg', 'extension': 'jpg'}, 1397160437: {'path': 'temp/1764565861_1506515_1397160437_e1b9d2155c5889ceb77880e3dc126b57.jpg', 'extension': 'jpg'}, 1397160438: {'path': 'temp/1764565861_1506515_1397160438_3a4127f315ce93aca22c3761033bf13f.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 = 29036243; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29036243 group by h (('06', 59),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29036243 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 (29036243) 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 (29036243) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 01122025 29036243 Nombre de photos uploadées : 59 / 23040 (0%) 01122025 29036243 Nombre de photos taguées (types de déchets): 0 / 59 (0%) 01122025 29036243 Nombre de photos taguées (volume) : 0 / 59 (0%) [{'photo_id': 1397160057, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/a695738523cff047bb9d319fd951e697.jpg', 'username': None, 'uploaded_at': 1764565267, 'text': 'image_01122025_06_00_14_010198m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1397160056, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/fceac9a861501ef73144e2b90f71b4c4.jpg', 'username': None, 'uploaded_at': 1764565267, 'text': 'image_01122025_06_00_24_010142m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1397160262, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/25a68e63a02f670b622435b96e61af42.jpg', 'username': None, 'uploaded_at': 1764565328, 'text': 'image_01122025_06_00_34_010139m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1397160260, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/0a456a4dbeddcbc845df06249fd718c4.jpg', 'username': None, 'uploaded_at': 1764565328, 'text': 'image_01122025_06_01_05_010167m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ??????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024847984313964844 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29036243, '2025-12-01' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-01' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2671044,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.26833128929138184 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= 2671044 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2671044, 'dashboard_run_id': 2677976, 'mtr_portfolio_id': 29035031, 'dashboard_result_id': 17890749, '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_P29035031_01-12-2025_05_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035043, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2677976, 'mtr_portfolio_id': 29035264, 'dashboard_result_id': 17890750, '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_P29035264_01-12-2025_05_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035278, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2677976, 'mtr_portfolio_id': 29035717, 'dashboard_result_id': 17890751, '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_P29035717_01-12-2025_05_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29035720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035731, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2677976, 'mtr_portfolio_id': 29035848, 'dashboard_result_id': 17890752, '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_P29035848_01-12-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035863, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2677976, 'mtr_portfolio_id': 29036243, 'dashboard_result_id': 17890753, '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_P29036243_01-12-2025_06_09_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29036252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29036253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29036254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29036255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29036256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29036257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29036258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29036259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29036260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29036261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29036262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29036263, '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 = 29035031 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': 4142623, 'mtr_portfolio_id': 29035031, 'created_at': datetime.datetime(2025, 12, 1, 5, 18, 59), 'result': '0.052209996136521615', 'result_long': None, 'result_double': None}] Qualite : 0.052209996136521615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29035031 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035031_01-12-2025_05_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29035031 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_P29035031_01-12-2025_05_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035043, 'pht': 3726}}" where mtr_portfolio_id = 29035031 and dashboard_run_id = 2677976 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`=29035031 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17890749, 0.052209996136521615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035031_01-12-2025_05_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035043, '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 = 29035264 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': 4142651, 'mtr_portfolio_id': 29035264, 'created_at': datetime.datetime(2025, 12, 1, 5, 41), 'result': '0.04045093731297344', 'result_long': None, 'result_double': None}] Qualite : 0.04045093731297344 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29035264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035264_01-12-2025_05_41_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29035264 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_P29035264_01-12-2025_05_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035278, 'pht': 3726}}" where mtr_portfolio_id = 29035264 and dashboard_run_id = 2677978 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`=29035264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17890750, 0.04045093731297344, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035264_01-12-2025_05_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035278, '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 = 29035717 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': 4142721, 'mtr_portfolio_id': 29035717, 'created_at': datetime.datetime(2025, 12, 1, 5, 49), 'result': '0.044011842645829045', 'result_long': None, 'result_double': None}] Qualite : 0.044011842645829045 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29035717 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035717_01-12-2025_05_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29035717 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_P29035717_01-12-2025_05_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29035720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035731, 'pht': 3726}}" where mtr_portfolio_id = 29035717 and dashboard_run_id = 2677978 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`=29035717 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17890751, 0.044011842645829045, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035717_01-12-2025_05_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29035720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035731, '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 = 29035848 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': 4142737, 'mtr_portfolio_id': 29035848, 'created_at': datetime.datetime(2025, 12, 1, 6, 2, 59), 'result': '0.05611569585040716', 'result_long': None, 'result_double': None}] Qualite : 0.05611569585040716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29035848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035848_01-12-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29035848 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_P29035848_01-12-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035863, 'pht': 3726}}" where mtr_portfolio_id = 29035848 and dashboard_run_id = 2677978 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`=29035848 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17890752, 0.05611569585040716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035848_01-12-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035863, '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 = 29036243 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': 4142791, 'mtr_portfolio_id': 29036243, 'created_at': datetime.datetime(2025, 12, 1, 6, 11), 'result': '0.044776118684229996', 'result_long': None, 'result_double': None}] Qualite : 0.044776118684229996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29036243 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29036243_01-12-2025_06_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29036243 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_P29036243_01-12-2025_06_11_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29036252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29036253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29036254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29036255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29036256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29036257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29036258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29036259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29036260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29036261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29036262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29036263, 'pht': 3726}}" where mtr_portfolio_id = 29036243 and dashboard_run_id = 2677978 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`=29036243 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17890753, 0.044776118684229996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29036243_01-12-2025_06_11_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29036252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29036253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29036254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29036255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29036256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29036257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29036258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29036259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29036260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29036261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29036262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29036263, '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 (29035031,29035264,29035717,29035848,29036243) result : ((1397157552,), (1397157615,), (1397157616,), (1397157617,), (1397157618,), (1397157669,), (1397157670,), (1397157688,), (1397157689,), (1397157691,), (1397157693,), (1397157705,), (1397157707,), (1397157709,), (1397157711,), (1397157713,), (1397157739,), (1397157741,), (1397157743,), (1397157754,), (1397157756,), (1397157759,), (1397157762,), (1397157765,), (1397157767,), (1397157774,), (1397157775,), (1397157777,), (1397157780,), (1397157788,), (1397157796,), (1397157798,), (1397157818,), (1397157820,), (1397157821,), (1397157822,), (1397157823,), (1397157824,), (1397157833,), (1397157835,), (1397157836,), (1397157837,), (1397157839,), (1397157876,), (1397157878,), (1397157882,), (1397157883,), (1397157884,), (1397157885,), (1397157868,), (1397157870,), (1397157872,), (1397157874,), (1397157886,), (1397157887,), (1397157912,), (1397157914,), (1397157916,), (1397157918,), (1397157920,), (1397157922,), (1397157980,), (1397158013,), (1397158045,), (1397158078,), (1397158480,), (1397158514,), (1397158537,), (1397158539,), (1397158541,), (1397158543,), (1397158697,), (1397158721,), (1397158726,), (1397158727,), (1397158751,), (1397158846,), (1397158856,), (1397158863,), (1397158880,), (1397158883,), (1397158887,), (1397158891,), (1397158894,), (1397158898,), (1397158940,), (1397158944,), (1397158948,), (1397158950,), (1397158988,), (1397158990,), (1397158992,), (1397158994,), (1397158996,), (1397158998,), (1397159016,), (1397159017,), (1397159018,), (1397159020,), (1397159022,), (1397159024,), (1397159030,), (1397159031,), (1397159032,), (1397159035,), (1397159245,), (1397159239,), (1397159241,), (1397159243,), (1397159256,), (1397159258,), (1397159260,), (1397159262,), (1397159264,), (1397159267,), (1397159279,), (1397159281,), (1397159283,), (1397159295,), (1397159299,), (1397159304,), (1397159306,), (1397159308,), (1397159310,), (1397159311,), (1397159312,), (1397159313,), (1397159325,), (1397159328,), (1397159330,), (1397159334,), (1397159338,), (1397159339,), (1397159340,), (1397159341,), (1397159343,), (1397159344,), (1397159358,), (1397159360,), (1397159362,), (1397159364,), (1397159367,), (1397159368,), (1397159369,), (1397159355,), (1397159357,), (1397159372,), (1397159375,), (1397159378,), (1397159381,), (1397159383,), (1397159385,), (1397159406,), (1397159407,), (1397159409,), (1397159410,), (1397159411,), (1397159412,), (1397159420,), (1397159421,), (1397159423,), (1397159425,), (1397159451,), (1397159452,), (1397159453,), (1397159454,), (1397159456,), (1397159458,), (1397159465,), (1397159468,), (1397159470,), (1397159473,), (1397159491,), (1397159493,), (1397159495,), (1397159497,), (1397159499,), (1397159507,), (1397159508,), (1397159510,), (1397159512,), (1397159515,), (1397159518,), (1397159541,), (1397159542,), (1397159544,), (1397159546,), (1397159554,), (1397159555,), (1397159557,), (1397159559,), (1397159561,), (1397159562,), (1397159595,), (1397159601,), (1397159602,), (1397159604,), (1397159606,), (1397159608,), (1397159611,), (1397159612,), (1397159613,), (1397159614,), (1397159618,), (1397159620,), (1397159622,), (1397159624,), (1397159626,), (1397159633,), (1397159634,), (1397159635,), (1397159636,), (1397159638,), (1397159642,), (1397159657,), (1397159660,), (1397159662,), (1397160059,), (1397160056,), (1397160057,), (1397160244,), (1397160252,), (1397160256,), (1397160258,), (1397160260,), (1397160262,), (1397160272,), (1397160273,), (1397160275,), (1397160277,), (1397160303,), (1397160305,), (1397160308,), (1397160310,), (1397160313,), (1397160315,), (1397160325,), (1397160327,), (1397160329,), (1397160331,), (1397160334,), (1397160351,), (1397160352,), (1397160353,), (1397160355,), (1397160357,), (1397160360,), (1397160392,), (1397160393,), (1397160396,), (1397160399,), (1397160402,), (1397160405,), (1397160410,), (1397160411,), (1397160412,), (1397160414,), (1397160416,), (1397160418,), (1397160434,), (1397160435,), (1397160437,), (1397160438,), (1397160439,), (1397160441,), (1397160443,), (1397160444,), (1397160447,), (1397160448,), (1397160450,), (1397160451,), (1397160455,), (1397160457,), (1397160462,), (1397160466,), (1397160470,), (1397160473,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'01122025': {'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([29036243]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1397160473, 1397160470, 1397160466, 1397160462, 1397160457, 1397160455, 1397160451, 1397160450, 1397160448, 1397160447, 1397160444, 1397160443, 1397160441, 1397160439, 1397160438, 1397160437, 1397160435, 1397160434] map_info['map_portfolio_photo'] : {29036243: [1397160473, 1397160470, 1397160466, 1397160462, 1397160457, 1397160455, 1397160451, 1397160450, 1397160448, 1397160447, 1397160444, 1397160443, 1397160441, 1397160439, 1397160438, 1397160437, 1397160435, 1397160434, 1397160418, 1397160416, 1397160414, 1397160412, 1397160411, 1397160410, 1397160405, 1397160402, 1397160399, 1397160396, 1397160393, 1397160392, 1397160360, 1397160357, 1397160355, 1397160353, 1397160352, 1397160351, 1397160334, 1397160331, 1397160329, 1397160327, 1397160325, 1397160315, 1397160313, 1397160310, 1397160308, 1397160305, 1397160303, 1397160277, 1397160275, 1397160273, 1397160272, 1397160262, 1397160260, 1397160258, 1397160256, 1397160252, 1397160244, 1397160057, 1397160056]} final : True mtd_id 4302 list_pids : [1397160473, 1397160470, 1397160466, 1397160462, 1397160457, 1397160455, 1397160451, 1397160450, 1397160448, 1397160447, 1397160444, 1397160443, 1397160441, 1397160439, 1397160438, 1397160437, 1397160435, 1397160434] Looping around the photos to save general results len do output : 1 /29036243Didn'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, '4142791') ('4302', '29036243', '1397160473', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160470', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160466', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160462', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160457', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160455', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160451', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160450', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160448', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160447', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160444', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160443', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160441', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160439', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160438', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160437', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160435', None, None, None, None, None, '4142791') ('4302', None, None, None, None, None, None, None, '4142791') ('4302', '29036243', '1397160434', None, None, None, None, None, '4142791') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '29036243', 'None', None, None, None, None, '4142791'), ('4302', '29036243', '1397160473', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160470', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160466', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160462', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160457', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160455', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160451', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160450', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160448', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160447', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160444', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160443', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160441', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160439', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160438', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160437', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160435', None, None, None, None, None, '4142791'), ('4302', '29036243', '1397160434', None, None, None, None, None, '4142791')] time used for this insertion : 0.017114877700805664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7405979633331299 time spend to save output : 0.01737666130065918 total time spend for step 5 : 0.7579746246337891 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 (4142791) 2.23user 2.59system 0:10.18elapsed 47%CPU (0avgtext+0avgdata 166956maxresident)k 5008inputs+13384outputs (45major+79491minor)pagefaults 0swaps