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 : 198813 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 (2700430) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2700430) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828132 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2700430'] with mtr_portfolio_ids : ['21828132'] and first list_photo_ids : [] new path : /proc/198813/ Name: python3 Umask: 0002 State: R (running) Tgid: 198813 Ngid: 0 Pid: 198813 PPid: 198812 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 198813 NSpid: 198813 NSpgid: 196209 NSsid: 196209 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99332 kB VmRSS: 99332 kB RssAnon: 59760 kB RssFile: 39572 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 49 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '198813', 'Ngid': '0', 'Pid': '198813', 'PPid': '198812', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '198813', 'NSpid': '198813', 'NSpgid': '196209', 'NSsid': '196209', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99332 kB', 'VmRSS': '99332 kB', 'RssAnon': '59760 kB', 'RssFile': '39572 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '49', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '198813', '1106844', '0', '1106844', '865592', '99332', b'', 'marlene', '2700430') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (21828132) 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 (2700430 ) ) 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 (21828132) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1348178577, 'portfolio_id': 21828132}, {'photo_id': 1348178573, 'portfolio_id': 21828132}, {'photo_id': 1348178570, 'portfolio_id': 21828132}, {'photo_id': 1348178566, 'portfolio_id': 21828132}, {'photo_id': 1348178564, 'portfolio_id': 21828132}, {'photo_id': 1348178522, 'portfolio_id': 21828132}, {'photo_id': 1348178516, 'portfolio_id': 21828132}, {'photo_id': 1348178513, 'portfolio_id': 21828132}, {'photo_id': 1348178508, 'portfolio_id': 21828132}, {'photo_id': 1348178505, 'portfolio_id': 21828132}, {'photo_id': 1348178479, 'portfolio_id': 21828132}, {'photo_id': 1348178474, 'portfolio_id': 21828132}, {'photo_id': 1348178469, 'portfolio_id': 21828132}, {'photo_id': 1348178463, 'portfolio_id': 21828132}, {'photo_id': 1348178461, 'portfolio_id': 21828132}, {'photo_id': 1348178430, 'portfolio_id': 21828132}, {'photo_id': 1348178426, 'portfolio_id': 21828132}, {'photo_id': 1348178421, 'portfolio_id': 21828132}, {'photo_id': 1348178414, 'portfolio_id': 21828132}, {'photo_id': 1348178410, 'portfolio_id': 21828132}, {'photo_id': 1348178406, 'portfolio_id': 21828132}, {'photo_id': 1348178383, 'portfolio_id': 21828132}, {'photo_id': 1348178378, 'portfolio_id': 21828132}, {'photo_id': 1348178373, 'portfolio_id': 21828132}, {'photo_id': 1348178324, 'portfolio_id': 21828132}, {'photo_id': 1348178319, 'portfolio_id': 21828132}, {'photo_id': 1348178314, 'portfolio_id': 21828132}, {'photo_id': 1348178309, 'portfolio_id': 21828132}, {'photo_id': 1348178303, 'portfolio_id': 21828132}, {'photo_id': 1348178302, 'portfolio_id': 21828132}, {'photo_id': 1348178270, 'portfolio_id': 21828132}, {'photo_id': 1348178264, 'portfolio_id': 21828132}, {'photo_id': 1348178248, 'portfolio_id': 21828132}] map_portfolio_id_photo_id: {21828132: [1348178577, 1348178573, 1348178570, 1348178566, 1348178564, 1348178522, 1348178516, 1348178513, 1348178508, 1348178505, 1348178479, 1348178474, 1348178469, 1348178463, 1348178461, 1348178430, 1348178426, 1348178421, 1348178414, 1348178410, 1348178406, 1348178383, 1348178378, 1348178373, 1348178324, 1348178319, 1348178314, 1348178309, 1348178303, 1348178302, 1348178270, 1348178264, 1348178248]} ##### 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.014307975769042969 #### 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 Fri Mar 28 06:54:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21828132) 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 : 21828132 get user id for portfolio 21828132 get sub ptf for main ptf 21828132, type 3726 and hashtags ['metal', 'flou', 'mal_croppe', 'cartonnette', 'kraft', 'environnement', 'Teint_Dans_La_Masse', 'Carton_gris', 'Carton_brun', 'papier', 'plastique', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21828132 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','flou','mal_croppe','cartonnette','kraft','environnement','Teint_Dans_La_Masse','Carton_gris','Carton_brun','papier','plastique','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21828132 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','flou','mal_croppe','cartonnette','kraft','environnement','Teint_Dans_La_Masse','Carton_gris','Carton_brun','papier','plastique','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21828132, 'sub_port_id': 21828135, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345007, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 57)}, 'cartonnette': {'main_port_id': 21828132, 'sub_port_id': 21828136, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345008, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 57)}, 'Carton_gris': {'main_port_id': 21828132, 'sub_port_id': 21828137, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345009, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 57)}, 'flou': {'main_port_id': 21828132, 'sub_port_id': 21828138, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345010, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 57)}, 'metal': {'main_port_id': 21828132, 'sub_port_id': 21828139, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345011, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 57)}, 'autre_refus': {'main_port_id': 21828132, 'sub_port_id': 21828140, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345012, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 57)}, 'plastique': {'main_port_id': 21828132, 'sub_port_id': 21828141, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345013, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 57)}, 'Carton_brun': {'main_port_id': 21828132, 'sub_port_id': 21828142, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345014, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 57)}, 'mal_croppe': {'main_port_id': 21828132, 'sub_port_id': 21828143, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345015, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 57)}, 'environnement': {'main_port_id': 21828132, 'sub_port_id': 21828144, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345016, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 57)}, 'kraft': {'main_port_id': 21828132, 'sub_port_id': 21828145, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345017, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21828132, 'sub_port_id': 21828146, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345018, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21828135 , 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=21828132 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 (21828135) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21828132) result : ((1348178248,), (1348178264,), (1348178270,), (1348178302,), (1348178303,), (1348178309,), (1348178314,), (1348178319,), (1348178324,), (1348178373,), (1348178378,), (1348178383,), (1348178406,), (1348178410,), (1348178414,), (1348178421,), (1348178426,), (1348178430,), (1348178461,), (1348178463,), (1348178469,), (1348178474,), (1348178479,), (1348178505,), (1348178508,), (1348178513,), (1348178516,), (1348178522,), (1348178564,), (1348178566,), (1348178570,), (1348178573,), (1348178577,)) 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 21828136 , 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=21828132 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 (21828136) result : ((1348178445,), (1348178456,), (1348178548,), (1348178549,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21828132) result : ((1348178248,), (1348178264,), (1348178270,), (1348178302,), (1348178303,), (1348178309,), (1348178314,), (1348178319,), (1348178324,), (1348178373,), (1348178378,), (1348178383,), (1348178406,), (1348178410,), (1348178414,), (1348178421,), (1348178426,), (1348178430,), (1348178461,), (1348178463,), (1348178469,), (1348178474,), (1348178479,), (1348178505,), (1348178508,), (1348178513,), (1348178516,), (1348178522,), (1348178564,), (1348178566,), (1348178570,), (1348178573,), (1348178577,)) 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 21828137 , 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=21828132 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 (21828137) result : ((1348178546,), (1348178622,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21828132) result : ((1348178248,), (1348178264,), (1348178270,), (1348178302,), (1348178303,), (1348178309,), (1348178314,), (1348178319,), (1348178324,), (1348178373,), (1348178378,), (1348178383,), (1348178406,), (1348178410,), (1348178414,), (1348178421,), (1348178426,), (1348178430,), (1348178461,), (1348178463,), (1348178469,), (1348178474,), (1348178479,), (1348178505,), (1348178508,), (1348178513,), (1348178516,), (1348178522,), (1348178564,), (1348178566,), (1348178570,), (1348178573,), (1348178577,)) 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 21828138 , 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=21828132 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 (21828138) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21828132) result : ((1348178248,), (1348178264,), (1348178270,), (1348178302,), (1348178303,), (1348178309,), (1348178314,), (1348178319,), (1348178324,), (1348178373,), (1348178378,), (1348178383,), (1348178406,), (1348178410,), (1348178414,), (1348178421,), (1348178426,), (1348178430,), (1348178461,), (1348178463,), (1348178469,), (1348178474,), (1348178479,), (1348178505,), (1348178508,), (1348178513,), (1348178516,), (1348178522,), (1348178564,), (1348178566,), (1348178570,), (1348178573,), (1348178577,)) 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 21828139 , 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=21828132 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 (21828139) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21828132) result : ((1348178248,), (1348178264,), (1348178270,), (1348178302,), (1348178303,), (1348178309,), (1348178314,), (1348178319,), (1348178324,), (1348178373,), (1348178378,), (1348178383,), (1348178406,), (1348178410,), (1348178414,), (1348178421,), (1348178426,), (1348178430,), (1348178461,), (1348178463,), (1348178469,), (1348178474,), (1348178479,), (1348178505,), (1348178508,), (1348178513,), (1348178516,), (1348178522,), (1348178564,), (1348178566,), (1348178570,), (1348178573,), (1348178577,)) 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 21828140 , 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=21828132 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 (21828140) result : ((1348178441,), (1348178442,), (1348178443,), (1348178619,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21828132) result : ((1348178248,), (1348178264,), (1348178270,), (1348178302,), (1348178303,), (1348178309,), (1348178314,), (1348178319,), (1348178324,), (1348178373,), (1348178378,), (1348178383,), (1348178406,), (1348178410,), (1348178414,), (1348178421,), (1348178426,), (1348178430,), (1348178461,), (1348178463,), (1348178469,), (1348178474,), (1348178479,), (1348178505,), (1348178508,), (1348178513,), (1348178516,), (1348178522,), (1348178564,), (1348178566,), (1348178570,), (1348178573,), (1348178577,)) 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 21828141 , 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=21828132 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 (21828141) result : ((1348178450,), (1348178451,), (1348178458,), (1348178459,), (1348178558,), (1348178559,), (1348178560,), (1348178561,), (1348178562,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21828132) result : ((1348178248,), (1348178264,), (1348178270,), (1348178302,), (1348178303,), (1348178309,), (1348178314,), (1348178319,), (1348178324,), (1348178373,), (1348178378,), (1348178383,), (1348178406,), (1348178410,), (1348178414,), (1348178421,), (1348178426,), (1348178430,), (1348178461,), (1348178463,), (1348178469,), (1348178474,), (1348178479,), (1348178505,), (1348178508,), (1348178513,), (1348178516,), (1348178522,), (1348178564,), (1348178566,), (1348178570,), (1348178573,), (1348178577,)) 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 21828142 , 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=21828132 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 (21828142) result : ((1348178447,), (1348178448,), (1348178449,), (1348178457,), (1348178556,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21828132) result : ((1348178248,), (1348178264,), (1348178270,), (1348178302,), (1348178303,), (1348178309,), (1348178314,), (1348178319,), (1348178324,), (1348178373,), (1348178378,), (1348178383,), (1348178406,), (1348178410,), (1348178414,), (1348178421,), (1348178426,), (1348178430,), (1348178461,), (1348178463,), (1348178469,), (1348178474,), (1348178479,), (1348178505,), (1348178508,), (1348178513,), (1348178516,), (1348178522,), (1348178564,), (1348178566,), (1348178570,), (1348178573,), (1348178577,)) 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 21828143 , 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=21828132 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 (21828143) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21828132) result : ((1348178248,), (1348178264,), (1348178270,), (1348178302,), (1348178303,), (1348178309,), (1348178314,), (1348178319,), (1348178324,), (1348178373,), (1348178378,), (1348178383,), (1348178406,), (1348178410,), (1348178414,), (1348178421,), (1348178426,), (1348178430,), (1348178461,), (1348178463,), (1348178469,), (1348178474,), (1348178479,), (1348178505,), (1348178508,), (1348178513,), (1348178516,), (1348178522,), (1348178564,), (1348178566,), (1348178570,), (1348178573,), (1348178577,)) 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 21828144 , 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=21828132 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 (21828144) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21828132) result : ((1348178248,), (1348178264,), (1348178270,), (1348178302,), (1348178303,), (1348178309,), (1348178314,), (1348178319,), (1348178324,), (1348178373,), (1348178378,), (1348178383,), (1348178406,), (1348178410,), (1348178414,), (1348178421,), (1348178426,), (1348178430,), (1348178461,), (1348178463,), (1348178469,), (1348178474,), (1348178479,), (1348178505,), (1348178508,), (1348178513,), (1348178516,), (1348178522,), (1348178564,), (1348178566,), (1348178570,), (1348178573,), (1348178577,)) 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 21828145 , 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=21828132 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 (21828145) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21828132) result : ((1348178248,), (1348178264,), (1348178270,), (1348178302,), (1348178303,), (1348178309,), (1348178314,), (1348178319,), (1348178324,), (1348178373,), (1348178378,), (1348178383,), (1348178406,), (1348178410,), (1348178414,), (1348178421,), (1348178426,), (1348178430,), (1348178461,), (1348178463,), (1348178469,), (1348178474,), (1348178479,), (1348178505,), (1348178508,), (1348178513,), (1348178516,), (1348178522,), (1348178564,), (1348178566,), (1348178570,), (1348178573,), (1348178577,)) 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 21828146 , 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=21828132 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 (21828146) result : ((1348178439,), (1348178454,), (1348178536,), (1348178537,), (1348178538,), (1348178539,), (1348178540,), (1348178541,), (1348178542,), (1348178543,), (1348178544,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21828132) result : ((1348178248,), (1348178264,), (1348178270,), (1348178302,), (1348178303,), (1348178309,), (1348178314,), (1348178319,), (1348178324,), (1348178373,), (1348178378,), (1348178383,), (1348178406,), (1348178410,), (1348178414,), (1348178421,), (1348178426,), (1348178430,), (1348178461,), (1348178463,), (1348178469,), (1348178474,), (1348178479,), (1348178505,), (1348178508,), (1348178513,), (1348178516,), (1348178522,), (1348178564,), (1348178566,), (1348178570,), (1348178573,), (1348178577,)) 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`=21828132 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','flou','mal_croppe','cartonnette','kraft','environnement','Teint_Dans_La_Masse','Carton_gris','Carton_brun','papier','plastique','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21828132 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','flou','mal_croppe','cartonnette','kraft','environnement','Teint_Dans_La_Masse','Carton_gris','Carton_brun','papier','plastique','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21828132, 'sub_port_id': 21828147, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345019, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'cartonnette': {'main_port_id': 21828132, 'sub_port_id': 21828148, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345020, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'Carton_gris': {'main_port_id': 21828132, 'sub_port_id': 21828149, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345021, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'flou': {'main_port_id': 21828132, 'sub_port_id': 21828150, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345022, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'metal': {'main_port_id': 21828132, 'sub_port_id': 21828151, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345023, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'autre_refus': {'main_port_id': 21828132, 'sub_port_id': 21828152, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345024, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'plastique': {'main_port_id': 21828132, 'sub_port_id': 21828153, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345025, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'Carton_brun': {'main_port_id': 21828132, 'sub_port_id': 21828154, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345026, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'mal_croppe': {'main_port_id': 21828132, 'sub_port_id': 21828155, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345027, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'environnement': {'main_port_id': 21828132, 'sub_port_id': 21828156, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345028, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'kraft': {'main_port_id': 21828132, 'sub_port_id': 21828157, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345029, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21828132, 'sub_port_id': 21828158, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345030, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828147,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828135 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828148,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828136 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828149,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828137 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828150,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828138 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828151,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828139 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828152,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828140 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828153,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828141 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828154,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828142 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828155,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828143 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828156,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828144 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828157,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828145 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828158,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828146 lien utilise dans velours : https://www.fotonower.com/velours/21828147,21828148,21828149,21828150,21828151,21828152,21828153,21828154,21828155,21828156,21828157,21828158?tags=papier,cartonnette,Carton_gris,flou,metal,autre_refus,plastique,Carton_brun,mal_croppe,environnement,kraft,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21828132]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1348178577, 1348178573, 1348178570, 1348178566, 1348178564, 1348178522, 1348178516, 1348178513, 1348178508, 1348178505, 1348178479, 1348178474, 1348178469, 1348178463, 1348178461] map_info['map_portfolio_photo'] : {21828132: [1348178577, 1348178573, 1348178570, 1348178566, 1348178564, 1348178522, 1348178516, 1348178513, 1348178508, 1348178505, 1348178479, 1348178474, 1348178469, 1348178463, 1348178461, 1348178430, 1348178426, 1348178421, 1348178414, 1348178410, 1348178406, 1348178383, 1348178378, 1348178373, 1348178324, 1348178319, 1348178314, 1348178309, 1348178303, 1348178302, 1348178270, 1348178264, 1348178248]} final : False mtd_id 4302 list_pids : [1348178577, 1348178573, 1348178570, 1348178566, 1348178564, 1348178522, 1348178516, 1348178513, 1348178508, 1348178505, 1348178479, 1348178474, 1348178469, 1348178463, 1348178461] Looping around the photos to save general results len do output : 1 /21828132. 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, '2700430') ('4302', '21828132', '1348178577', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178573', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178570', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178566', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178564', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178522', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178516', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178513', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178508', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178505', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178479', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178474', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178469', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178463', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178461', None, None, None, None, None, '2700430') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '21828132', "{'papier': 21828135, 'cartonnette': 21828136, 'Carton_gris': 21828137, 'flou': 21828138, 'metal': 21828139, 'autre_refus': 21828140, 'plastique': 21828141, 'Carton_brun': 21828142, 'mal_croppe': 21828143, 'environnement': 21828144, 'kraft': 21828145, 'Teint_Dans_La_Masse': 21828146}", None, None, None, None, '2700430'), ('4302', '21828132', '1348178577', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178573', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178570', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178566', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178564', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178522', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178516', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178513', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178508', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178505', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178479', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178474', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178469', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178463', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178461', None, None, None, None, None, '2700430')] time used for this insertion : 0.07165765762329102 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5960981845855713 time spend to save output : 0.07198476791381836 total time spend for step 1 : 1.6680829524993896 step2:final Fri Mar 28 06:54:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21828132) 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 21828132 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1348178270,1348178264,1348178248,1348178324,1348178319,1348178314,1348178309,1348178303,1348178302,1348178383,1348178378,1348178373,1348178430,1348178426,1348178421,1348178414,1348178410,1348178406,1348178479,1348178474,1348178469,1348178463,1348178522,1348178461,1348178516,1348178513,1348178508,1348178505,1348178577,1348178573,1348178570,1348178566,1348178564); 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([21828132]) Inside saveOutput : final : False verbose : True original output for save of step final : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ('0.04547440423400647',), 1348178461: ('0.04547440423400647',)} new output for save of step final : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ('0.04547440423400647',), 1348178461: ('0.04547440423400647',)} [1348178577, 1348178573, 1348178570, 1348178566, 1348178564, 1348178522, 1348178516, 1348178513, 1348178508, 1348178505, 1348178479, 1348178474, 1348178469, 1348178463, 1348178461] map_info['map_portfolio_photo'] : {21828132: [1348178577, 1348178573, 1348178570, 1348178566, 1348178564, 1348178522, 1348178516, 1348178513, 1348178508, 1348178505, 1348178479, 1348178474, 1348178469, 1348178463, 1348178461, 1348178430, 1348178426, 1348178421, 1348178414, 1348178410, 1348178406, 1348178383, 1348178378, 1348178373, 1348178324, 1348178319, 1348178314, 1348178309, 1348178303, 1348178302, 1348178270, 1348178264, 1348178248]} final : False mtd_id 4302 list_pids : [1348178577, 1348178573, 1348178570, 1348178566, 1348178564, 1348178522, 1348178516, 1348178513, 1348178508, 1348178505, 1348178479, 1348178474, 1348178469, 1348178463, 1348178461] Looping around the photos to save general results len do output : 15 /1348178577.Didn't retrieve data . /1348178573.Didn't retrieve data . /1348178570.Didn't retrieve data . /1348178566.Didn't retrieve data . /1348178564.Didn't retrieve data . /1348178522.Didn't retrieve data . /1348178516.Didn't retrieve data . /1348178513.Didn't retrieve data . /1348178508.Didn't retrieve data . /1348178505.Didn't retrieve data . /1348178479.Didn't retrieve data . /1348178474.Didn't retrieve data . /1348178469.Didn't retrieve data . /1348178463.Didn't retrieve data . /1348178461.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, '2700430') ('4302', '21828132', '1348178577', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178573', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178570', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178566', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178564', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178522', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178516', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178513', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178508', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178505', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178479', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178474', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178469', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178463', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178461', None, None, None, None, None, '2700430') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '21828132', '1348178577', '0.04547440423400647', None, None, None, None, '2700430'), ('4302', '21828132', '1348178573', '0.04547440423400647', None, None, None, None, '2700430'), ('4302', '21828132', '1348178570', '0.04547440423400647', None, None, None, None, '2700430'), ('4302', '21828132', '1348178566', '0.04547440423400647', None, None, None, None, '2700430'), ('4302', '21828132', '1348178564', '0.04547440423400647', None, None, None, None, '2700430'), ('4302', '21828132', '1348178522', '0.04547440423400647', None, None, None, None, '2700430'), ('4302', '21828132', '1348178516', '0.04547440423400647', None, None, None, None, '2700430'), ('4302', '21828132', '1348178513', '0.04547440423400647', None, None, None, None, '2700430'), ('4302', '21828132', '1348178508', '0.04547440423400647', None, None, None, None, '2700430'), ('4302', '21828132', '1348178505', '0.04547440423400647', None, None, None, None, '2700430'), ('4302', '21828132', '1348178479', '0.04547440423400647', None, None, None, None, '2700430'), ('4302', '21828132', '1348178474', '0.04547440423400647', None, None, None, None, '2700430'), ('4302', '21828132', '1348178469', '0.04547440423400647', None, None, None, None, '2700430'), ('4302', '21828132', '1348178463', '0.04547440423400647', None, None, None, None, '2700430'), ('4302', '21828132', '1348178461', '0.04547440423400647', None, None, None, None, '2700430')] time used for this insertion : 0.016153573989868164 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0688636302947998 time spend to save output : 0.01685333251953125 total time spend for step 2 : 0.08571696281433105 step3:velours_tree Fri Mar 28 06:54:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21828132: [{'papier': 21828135, 'cartonnette': 21828136, 'Carton_gris': 21828137, 'flou': 21828138, 'metal': 21828139, 'autre_refus': 21828140, 'plastique': 21828141, 'Carton_brun': 21828142, 'mal_croppe': 21828143, 'environnement': 21828144, 'kraft': 21828145, 'Teint_Dans_La_Masse': 21828146}]} input_args_next_step : {21828132: ()} output_args : {21828132: [{'papier': 21828135, 'cartonnette': 21828136, 'Carton_gris': 21828137, 'flou': 21828138, 'metal': 21828139, 'autre_refus': 21828140, 'plastique': 21828141, 'Carton_brun': 21828142, 'mal_croppe': 21828143, 'environnement': 21828144, 'kraft': 21828145, 'Teint_Dans_La_Masse': 21828146}]} args : 21828132 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 : ({'papier': 21828135, 'cartonnette': 21828136, 'Carton_gris': 21828137, 'flou': 21828138, 'metal': 21828139, 'autre_refus': 21828140, 'plastique': 21828141, 'Carton_brun': 21828142, 'mal_croppe': 21828143, 'environnement': 21828144, 'kraft': 21828145, 'Teint_Dans_La_Masse': 21828146},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21828132) 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([21828132]) 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.31168103218078613 time spend to save output : 5.14984130859375e-05 total time spend for step 3 : 0.31173253059387207 step4:send_mail_cod Fri Mar 28 06:54:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ('0.04547440423400647',), 1348178461: ('0.04547440423400647',)} input_args_next_step : {1348178577: ()} output_args : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ('0.04547440423400647',), 1348178461: ('0.04547440423400647',)} args : 1348178577 depend.output_id : 0 input_args_next_step : {1348178577: ('0.04547440423400647',), 1348178573: ()} output_args : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ('0.04547440423400647',), 1348178461: ('0.04547440423400647',)} args : 1348178573 depend.output_id : 0 input_args_next_step : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ()} output_args : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ('0.04547440423400647',), 1348178461: ('0.04547440423400647',)} args : 1348178570 depend.output_id : 0 input_args_next_step : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ()} output_args : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ('0.04547440423400647',), 1348178461: ('0.04547440423400647',)} args : 1348178566 depend.output_id : 0 input_args_next_step : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ()} output_args : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ('0.04547440423400647',), 1348178461: ('0.04547440423400647',)} args : 1348178564 depend.output_id : 0 input_args_next_step : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ()} output_args : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ('0.04547440423400647',), 1348178461: ('0.04547440423400647',)} args : 1348178522 depend.output_id : 0 input_args_next_step : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ()} output_args : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ('0.04547440423400647',), 1348178461: ('0.04547440423400647',)} args : 1348178516 depend.output_id : 0 input_args_next_step : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ()} output_args : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ('0.04547440423400647',), 1348178461: ('0.04547440423400647',)} args : 1348178513 depend.output_id : 0 input_args_next_step : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ()} output_args : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ('0.04547440423400647',), 1348178461: ('0.04547440423400647',)} args : 1348178508 depend.output_id : 0 input_args_next_step : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ()} output_args : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ('0.04547440423400647',), 1348178461: ('0.04547440423400647',)} args : 1348178505 depend.output_id : 0 input_args_next_step : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ()} output_args : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ('0.04547440423400647',), 1348178461: ('0.04547440423400647',)} args : 1348178479 depend.output_id : 0 input_args_next_step : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ()} output_args : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ('0.04547440423400647',), 1348178461: ('0.04547440423400647',)} args : 1348178474 depend.output_id : 0 input_args_next_step : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ()} output_args : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ('0.04547440423400647',), 1348178461: ('0.04547440423400647',)} args : 1348178469 depend.output_id : 0 input_args_next_step : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ()} output_args : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ('0.04547440423400647',), 1348178461: ('0.04547440423400647',)} args : 1348178463 depend.output_id : 0 input_args_next_step : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ('0.04547440423400647',), 1348178461: ()} output_args : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ('0.04547440423400647',), 1348178461: ('0.04547440423400647',)} args : 1348178461 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 : {21828132: [{'papier': 21828135, 'cartonnette': 21828136, 'Carton_gris': 21828137, 'flou': 21828138, 'metal': 21828139, 'autre_refus': 21828140, 'plastique': 21828141, 'Carton_brun': 21828142, 'mal_croppe': 21828143, 'environnement': 21828144, 'kraft': 21828145, 'Teint_Dans_La_Masse': 21828146}]} input_args_next_step : {1348178577: ('0.04547440423400647',), 1348178573: ('0.04547440423400647',), 1348178570: ('0.04547440423400647',), 1348178566: ('0.04547440423400647',), 1348178564: ('0.04547440423400647',), 1348178522: ('0.04547440423400647',), 1348178516: ('0.04547440423400647',), 1348178513: ('0.04547440423400647',), 1348178508: ('0.04547440423400647',), 1348178505: ('0.04547440423400647',), 1348178479: ('0.04547440423400647',), 1348178474: ('0.04547440423400647',), 1348178469: ('0.04547440423400647',), 1348178463: ('0.04547440423400647',), 1348178461: ('0.04547440423400647',), 21828132: ()} output_args : {21828132: [{'papier': 21828135, 'cartonnette': 21828136, 'Carton_gris': 21828137, 'flou': 21828138, 'metal': 21828139, 'autre_refus': 21828140, 'plastique': 21828141, 'Carton_brun': 21828142, 'mal_croppe': 21828143, 'environnement': 21828144, 'kraft': 21828145, 'Teint_Dans_La_Masse': 21828146}]} args : 21828132 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 :16, first value : ('0.04547440423400647',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21828132) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1348178577,1348178573,1348178570,1348178566,1348178564,1348178522,1348178516,1348178513,1348178508,1348178505,1348178479,1348178474,1348178469,1348178463,1348178461) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1348178461 begin to download photo : 1348178479 begin to download photo : 1348178516 begin to download photo : 1348178570 download finish for photo 1348178570 begin to download photo : 1348178573 download finish for photo 1348178461 begin to download photo : 1348178463 download finish for photo 1348178516 begin to download photo : 1348178522 download finish for photo 1348178479 begin to download photo : 1348178505 download finish for photo 1348178522 begin to download photo : 1348178564 download finish for photo 1348178573 begin to download photo : 1348178577 download finish for photo 1348178463 begin to download photo : 1348178469 download finish for photo 1348178505 begin to download photo : 1348178508 download finish for photo 1348178564 begin to download photo : 1348178566 download finish for photo 1348178577 download finish for photo 1348178469 begin to download photo : 1348178474 download finish for photo 1348178508 begin to download photo : 1348178513 download finish for photo 1348178474 download finish for photo 1348178566 download finish for photo 1348178513 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P21828132_28-03-2025_06_55_00.pdf 21828136 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21828136 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348178445: '1743141025_1008161_1348178302_b32f54b6cac786a0b3f8de38a7074090_rle_crop_3735663770_0.png', 1348178456: '1743141013_627058_1348178248_7c6e6c97455de807346f4959003aa5ea_rle_crop_3735663801_0.png', 1348178548: '1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664248_0.png', 1348178549: '1743141147_1011078_1348178406_cd3e396ce444991eb255033f67f66963_rle_crop_3735664270_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b9a2b14116d9f0ee672f360d15c3db10_78518213.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/5cd20280a70afe324fd47bc7fc619386_65782661.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/6849494155ef653bdb6da3432b431345_39536486.png change filename to text .imagette218281361743141300/ imagette218281361743141300/1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664248_0.png.png imagette218281361743141300/1743141025_1008161_1348178302_b32f54b6cac786a0b3f8de38a7074090_rle_crop_3735663770_0.png.png imagette218281361743141300/1743141147_1011078_1348178406_cd3e396ce444991eb255033f67f66963_rle_crop_3735664270_0.png.png imagette218281361743141300/1743141013_627058_1348178248_7c6e6c97455de807346f4959003aa5ea_rle_crop_3735663801_0.png.png imagette218281381743141300/ imagette218281391743141300/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/c3ce36ab7ed76f5905525c663a75ed81_69207732.png imagette218281361743141300 21828138 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21828138 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218281381743141300 21828139 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21828139 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218281391743141300 21828140 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21828140 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348178441: '1743141025_1008161_1348178319_1136182ad53cfa087bc373a14a05e30d_rle_crop_3735663721_0.png', 1348178442: '1743141025_1008161_1348178314_15e54e45c7d82c0fa93e9d4359d6a7c6_rle_crop_3735663737_0.png', 1348178443: '1743141025_1008161_1348178303_6172cc7fcd652b92d45e2766aa5b586d_rle_crop_3735663762_0.png', 1348178619: '1743141232_630442_1348178430_ac336bf3b0b4aff548a1ce5eec684e1e_rle_crop_3735664344_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ae7d198bd2b82b68c77a9c5a26234633_54383694.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/7ece1d64b40a879c1f76e6ffb5f9e014_54220053.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/78c15923d27aecbdbc925ef0fe35102b_65480266.png change filename to text .imagette218281401743141300/ imagette218281401743141300/1743141025_1008161_1348178314_15e54e45c7d82c0fa93e9d4359d6a7c6_rle_crop_3735663737_0.png.png imagette218281401743141300/1743141025_1008161_1348178319_1136182ad53cfa087bc373a14a05e30d_rle_crop_3735663721_0.png.png imagette218281401743141300/1743141232_630442_1348178430_ac336bf3b0b4aff548a1ce5eec684e1e_rle_crop_3735664344_0.png.png imagette218281401743141300/1743141025_1008161_1348178303_6172cc7fcd652b92d45e2766aa5b586d_rle_crop_3735663762_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ca152a3ca98bc839474c9e84968c09cb_41132213.png imagette218281401743141300 21828141 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21828141 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348178450: '1743141025_1008161_1348178309_4ff8326d1d1ccf873d284024760438a0_rle_crop_3735663748_0.png', 1348178451: '1743141025_1008161_1348178302_b32f54b6cac786a0b3f8de38a7074090_rle_crop_3735663768_0.png', 1348178458: '1743141013_627058_1348178248_7c6e6c97455de807346f4959003aa5ea_rle_crop_3735663814_0.png', 1348178459: '1743141013_627058_1348178248_7c6e6c97455de807346f4959003aa5ea_rle_crop_3735663803_0.png', 1348178558: '1743141147_1011078_1348178426_65a45907f8696c793c2ba085ec1eab5a_rle_crop_3735664204_0.png', 1348178559: '1743141147_1011078_1348178421_ea824e6e2cb528bf2e708845792dc390_rle_crop_3735664222_0.png', 1348178560: '1743141147_1011078_1348178421_ea824e6e2cb528bf2e708845792dc390_rle_crop_3735664218_0.png', 1348178561: '1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664246_0.png', 1348178562: '1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664255_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/22afbb0e6b7e229866d2fe51582ae3c1_49953248.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/43dcb7dd7108e98d5898be06e0167b59_83331266.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/7eb2e807a2b4c3cc71916213b25585af_49231016.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/7da5fc10cc2691447d71ca2d77a70348_71114355.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/de43158c6eaf5d57ff8e2278ddf75aa5_68414794.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/5726fe59f52d2138bfe5e60e078003b0_59305047.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/0fd2fc863a1d019071910eadd1cd7b31_46788512.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/5a11d558a6042086ea550e8f81bfeda5_76220215.png change filename to text .imagette218281411743141300/ imagette218281411743141300/1743141147_1011078_1348178421_ea824e6e2cb528bf2e708845792dc390_rle_crop_3735664222_0.png.png imagette218281411743141300/1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664255_0.png.png imagette218281411743141300/1743141147_1011078_1348178421_ea824e6e2cb528bf2e708845792dc390_rle_crop_3735664218_0.png.png imagette218281411743141300/1743141013_627058_1348178248_7c6e6c97455de807346f4959003aa5ea_rle_crop_3735663803_0.png.png imagette218281411743141300/1743141025_1008161_1348178302_b32f54b6cac786a0b3f8de38a7074090_rle_crop_3735663768_0.png.png imagette218281411743141300/1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664246_0.png.png imagette218281411743141300/1743141025_1008161_1348178309_4ff8326d1d1ccf873d284024760438a0_rle_crop_3735663748_0.png.png imagette218281411743141300/1743141013_627058_1348178248_7c6e6c97455de807346f4959003aa5ea_rle_crop_3735663814_0.png.png imagette218281411743141300/1743141147_1011078_1348178426_65a45907f8696c793c2ba085ec1eab5a_rle_crop_3735664204_0.png.png imagette218281431743141301/ imagette218281451743141301/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/031db269eae1497787954fab53b0c2a2_44908692.png imagette218281411743141300 21828143 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21828143 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218281431743141301 21828145 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21828145 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218281451743141301 21828137 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21828137 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348178546: '1743141147_1011078_1348178426_65a45907f8696c793c2ba085ec1eab5a_rle_crop_3735664200_0.png', 1348178622: '1743141232_630442_1348178373_69f71108a771219bec1ebf215652e1cd_rle_crop_3735664461_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/f7676ca97715fff34bf9fcbdef039ef6_91008886.png change filename to text .imagette218281371743141301/ imagette218281371743141301/1743141147_1011078_1348178426_65a45907f8696c793c2ba085ec1eab5a_rle_crop_3735664200_0.png.png imagette218281371743141301/1743141232_630442_1348178373_69f71108a771219bec1ebf215652e1cd_rle_crop_3735664461_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/c3cc4fa6337b99e275330bf7d2563b24_38473666.png imagette218281371743141301 21828142 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21828142 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348178447: '1743141025_1008161_1348178314_15e54e45c7d82c0fa93e9d4359d6a7c6_rle_crop_3735663741_0.png', 1348178448: '1743141025_1008161_1348178314_15e54e45c7d82c0fa93e9d4359d6a7c6_rle_crop_3735663740_0.png', 1348178449: '1743141025_1008161_1348178309_4ff8326d1d1ccf873d284024760438a0_rle_crop_3735663751_0.png', 1348178457: '1743141013_627058_1348178248_7c6e6c97455de807346f4959003aa5ea_rle_crop_3735663807_0.png', 1348178556: '1743141147_1011078_1348178426_65a45907f8696c793c2ba085ec1eab5a_rle_crop_3735664208_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b99ecd2a3aa3085910c9e9ea8c204c12_19188868.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/95e21110a1e4cee80f61cc88751856b0_24377868.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/0e3913b794c3b1ca9d4829c6e5a54dc4_13706848.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ad66ed8178bb20965d7dba2162dc1b6f_71937381.png change filename to text .imagette218281421743141301/ imagette218281421743141301/1743141025_1008161_1348178314_15e54e45c7d82c0fa93e9d4359d6a7c6_rle_crop_3735663741_0.png.png imagette218281421743141301/1743141013_627058_1348178248_7c6e6c97455de807346f4959003aa5ea_rle_crop_3735663807_0.png.png imagette218281421743141301/1743141025_1008161_1348178314_15e54e45c7d82c0fa93e9d4359d6a7c6_rle_crop_3735663740_0.png.png imagette218281421743141301/1743141025_1008161_1348178309_4ff8326d1d1ccf873d284024760438a0_rle_crop_3735663751_0.png.png imagette218281421743141301/1743141147_1011078_1348178426_65a45907f8696c793c2ba085ec1eab5a_rle_crop_3735664208_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/028d69afe68fd54a418d77066dcb2ac1_46387873.png imagette218281421743141301 21828146 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21828146 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348178439: '1743141025_1008161_1348178303_6172cc7fcd652b92d45e2766aa5b586d_rle_crop_3735663761_0.png', 1348178454: '1743141013_627058_1348178324_1966551cb7f0c3c9e041497ffcb794ad_rle_crop_3735663782_0.png', 1348178536: '1743141147_1011078_1348178414_948d0e5c6c47a2a1d808a316dc7b6528_rle_crop_3735664238_0.png', 1348178537: '1743141147_1011078_1348178414_948d0e5c6c47a2a1d808a316dc7b6528_rle_crop_3735664241_0.png', 1348178538: '1743141147_1011078_1348178414_948d0e5c6c47a2a1d808a316dc7b6528_rle_crop_3735664236_0.png', 1348178539: '1743141147_1011078_1348178414_948d0e5c6c47a2a1d808a316dc7b6528_rle_crop_3735664234_0.png', 1348178540: '1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664257_0.png', 1348178541: '1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664260_0.png', 1348178542: '1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664251_0.png', 1348178543: '1743141147_1011078_1348178406_cd3e396ce444991eb255033f67f66963_rle_crop_3735664281_0.png', 1348178544: '1743141147_1011078_1348178406_cd3e396ce444991eb255033f67f66963_rle_crop_3735664277_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b06c504d006c522606111c0b4bc5cbb1_76126377.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/f7a4502f3a3b9546029248fe8eaf8e69_43814288.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/887ac37181dd7f9896c92fe401ac1034_26947178.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ea4cec9053c86b6cfc8e9186a0b01a13_27455558.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/d1c25f012e1f74e9fd49ab2ff6ce9572_67846361.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/c1720e1c9c509c525532ee2999a023f3_89487935.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/d42737b63c055cde4917b5876d471a26_48802600.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/2c9f94fab8de501a90398967d4331f0f_69313564.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/1950d14f3f57586555a981875b38ee63_87260738.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/1c0f67c2f1ea9c2e2f7610b0516cebc0_77733713.png change filename to text .imagette218281461743141301/ imagette218281461743141301/1743141147_1011078_1348178406_cd3e396ce444991eb255033f67f66963_rle_crop_3735664277_0.png.png imagette218281461743141301/1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664257_0.png.png imagette218281461743141301/1743141013_627058_1348178324_1966551cb7f0c3c9e041497ffcb794ad_rle_crop_3735663782_0.png.png imagette218281461743141301/1743141025_1008161_1348178303_6172cc7fcd652b92d45e2766aa5b586d_rle_crop_3735663761_0.png.png imagette218281461743141301/1743141147_1011078_1348178414_948d0e5c6c47a2a1d808a316dc7b6528_rle_crop_3735664241_0.png.png imagette218281461743141301/1743141147_1011078_1348178414_948d0e5c6c47a2a1d808a316dc7b6528_rle_crop_3735664236_0.png.png imagette218281461743141301/1743141147_1011078_1348178414_948d0e5c6c47a2a1d808a316dc7b6528_rle_crop_3735664234_0.png.png imagette218281461743141301/1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664251_0.png.png imagette218281461743141301/1743141147_1011078_1348178406_cd3e396ce444991eb255033f67f66963_rle_crop_3735664281_0.png.png imagette218281461743141301/1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664260_0.png.png imagette218281461743141301/1743141147_1011078_1348178414_948d0e5c6c47a2a1d808a316dc7b6528_rle_crop_3735664238_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/fbf9d80cf8d770849df0f60cb269ec92_67700918.png imagette218281461743141301 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21828132 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21828147,21828148,21828149,21828150,21828151,21828152,21828153,21828154,21828155,21828156,21828157,21828158?tags=papier,cartonnette,Carton_gris,flou,metal,autre_refus,plastique,Carton_brun,mal_croppe,environnement,kraft,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1348178577] : ('0.04547440423400647',) no score found for photo 1348178577 We are sending mail with results at report@fotonower.com args[1348178573] : ('0.04547440423400647',) no score found for photo 1348178573 We are sending mail with results at report@fotonower.com args[1348178570] : ('0.04547440423400647',) no score found for photo 1348178570 We are sending mail with results at report@fotonower.com args[1348178566] : ('0.04547440423400647',) no score found for photo 1348178566 We are sending mail with results at report@fotonower.com args[1348178564] : ('0.04547440423400647',) no score found for photo 1348178564 We are sending mail with results at report@fotonower.com args[1348178522] : ('0.04547440423400647',) no score found for photo 1348178522 We are sending mail with results at report@fotonower.com args[1348178516] : ('0.04547440423400647',) no score found for photo 1348178516 We are sending mail with results at report@fotonower.com args[1348178513] : ('0.04547440423400647',) no score found for photo 1348178513 We are sending mail with results at report@fotonower.com args[1348178508] : ('0.04547440423400647',) no score found for photo 1348178508 We are sending mail with results at report@fotonower.com args[1348178505] : ('0.04547440423400647',) no score found for photo 1348178505 We are sending mail with results at report@fotonower.com args[1348178479] : ('0.04547440423400647',) no score found for photo 1348178479 We are sending mail with results at report@fotonower.com args[1348178474] : ('0.04547440423400647',) no score found for photo 1348178474 We are sending mail with results at report@fotonower.com args[1348178469] : ('0.04547440423400647',) no score found for photo 1348178469 We are sending mail with results at report@fotonower.com args[1348178463] : ('0.04547440423400647',) no score found for photo 1348178463 We are sending mail with results at report@fotonower.com args[1348178461] : ('0.04547440423400647',) no score found for photo 1348178461 We are sending mail with results at report@fotonower.com refus_total : 0.04547440423400647 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21828132 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_P21828132_28-03-2025_06_55_00.pdf results_Auto_P21828132_28-03-2025_06_55_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21828132_28-03-2025_06_55_00.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','21828132','results_Auto_P21828132_28-03-2025_06_55_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21828132_28-03-2025_06_55_00.pdf','pdf','','0.23','0.04547440423400647') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21828132]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1348178577, 1348178573, 1348178570, 1348178566, 1348178564, 1348178522, 1348178516, 1348178513, 1348178508, 1348178505, 1348178479, 1348178474, 1348178469, 1348178463, 1348178461] map_info['map_portfolio_photo'] : {21828132: [1348178577, 1348178573, 1348178570, 1348178566, 1348178564, 1348178522, 1348178516, 1348178513, 1348178508, 1348178505, 1348178479, 1348178474, 1348178469, 1348178463, 1348178461, 1348178430, 1348178426, 1348178421, 1348178414, 1348178410, 1348178406, 1348178383, 1348178378, 1348178373, 1348178324, 1348178319, 1348178314, 1348178309, 1348178303, 1348178302, 1348178270, 1348178264, 1348178248]} final : False mtd_id 4302 list_pids : [1348178577, 1348178573, 1348178570, 1348178566, 1348178564, 1348178522, 1348178516, 1348178513, 1348178508, 1348178505, 1348178479, 1348178474, 1348178469, 1348178463, 1348178461] 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, '2700430') ('4302', '21828132', '1348178577', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178573', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178570', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178566', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178564', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178522', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178516', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178513', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178508', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178505', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178479', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178474', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178469', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178463', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178461', None, None, None, None, None, '2700430') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21828132', '1348178577', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178573', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178570', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178566', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178564', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178522', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178516', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178513', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178508', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178505', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178479', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178474', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178469', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178463', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178461', None, None, None, None, None, '2700430')] time used for this insertion : 0.021926164627075195 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.9701156616210938 time spend to save output : 0.022102832794189453 total time spend for step 4 : 3.992218494415283 step5:split_time_score Fri Mar 28 06:55:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21828132'] 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 : [('21828132',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21828132) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1348178570: {'path': 'temp/1743141299_198813_1348178570_8e6154a81234efad9345326224960169.jpg', 'extension': 'jpg'}, 1348178573: {'path': 'temp/1743141299_198813_1348178573_fef9db8f329d0e1a27a03140eb25767d.jpg', 'extension': 'jpg'}, 1348178577: {'path': 'temp/1743141299_198813_1348178577_132935b70e14f264ed785f4489d67e58.jpg', 'extension': 'jpg'}, 1348178461: {'path': 'temp/1743141299_198813_1348178461_fd7b6ea3399962809cbd99a3bbda1fe6.jpg', 'extension': 'jpg'}, 1348178463: {'path': 'temp/1743141299_198813_1348178463_619bdce8debe3e319ece71259535b71b.jpg', 'extension': 'jpg'}, 1348178469: {'path': 'temp/1743141299_198813_1348178469_6cb33557ac220a789ed4729615c055da.jpg', 'extension': 'jpg'}, 1348178474: {'path': 'temp/1743141299_198813_1348178474_421d0aedda72533c3356a930c84c3396.jpg', 'extension': 'jpg'}, 1348178516: {'path': 'temp/1743141299_198813_1348178516_8c8551f087b8a836ea257395dcf286d7.jpg', 'extension': 'jpg'}, 1348178522: {'path': 'temp/1743141299_198813_1348178522_ba6f34ef45e7e88675d5bfb82794747a.jpg', 'extension': 'jpg'}, 1348178564: {'path': 'temp/1743141299_198813_1348178564_334ea0c47d01d56bd4a580be1c1bf1db.jpg', 'extension': 'jpg'}, 1348178566: {'path': 'temp/1743141299_198813_1348178566_8caf749df0160d010b413c7fa3236009.jpg', 'extension': 'jpg'}, 1348178479: {'path': 'temp/1743141299_198813_1348178479_445025bd78263f351c42279b8db1455b.jpg', 'extension': 'jpg'}, 1348178505: {'path': 'temp/1743141299_198813_1348178505_87629d69a303240f692c446c711b93e5.jpg', 'extension': 'jpg'}, 1348178508: {'path': 'temp/1743141299_198813_1348178508_078b94e56516b553cad012c57048985f.jpg', 'extension': 'jpg'}, 1348178513: {'path': 'temp/1743141299_198813_1348178513_a6878206d65b99d1482d72889e0d2f12.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 = 21828132; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 21828132 group by h (('06', 33),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21828132 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 (21828132) 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 (21828132) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28032025 21828132 Nombre de photos uploadées : 33 / 23040 (0%) 28032025 21828132 Nombre de photos taguées (types de déchets): 0 / 33 (0%) 28032025 21828132 Nombre de photos taguées (volume) : 0 / 33 (0%) [{'photo_id': 1348178270, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/376ac60e9a76280abf84dfec24e4b7ef.jpg', 'username': None, 'uploaded_at': 1743140838, 'text': 'image_28032025_06_45_14_010133m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348178264, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/9dabb9c8c88907b42df73a17620eac45.jpg', 'username': None, 'uploaded_at': 1743140838, 'text': 'image_28032025_06_45_24_010132m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348178248, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/7c6e6c97455de807346f4959003aa5ea.jpg', 'username': None, 'uploaded_at': 1743140838, 'text': 'image_28032025_06_45_44_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348178324, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/1966551cb7f0c3c9e041497ffcb794ad.jpg', 'username': None, 'uploaded_at': 1743140898, 'text': 'image_28032025_06_45_53_009129m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 9.5367431640625e-07 elapsed_time : order_list_meta_photo_and_scores 3.0994415283203125e-06 ????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0008113384246826172 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21828132, '2025-03-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1696037,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.026152849197387695 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= 1696037 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1696037, 'dashboard_run_id': 1704415, 'mtr_portfolio_id': 21826531, 'dashboard_result_id': 9707281, '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_P21826531_28-03-2025_06_20_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21826535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21826536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21826537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21826538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21826539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21826540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21826541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21826542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21826543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21826544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21826545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21826546, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1704415, 'mtr_portfolio_id': 21827231, 'dashboard_result_id': 9707282, '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_P21827231_28-03-2025_06_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21827234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21827235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21827236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21827237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21827238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21827239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21827240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21827241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21827242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21827243, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21827244, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21827245, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1704415, 'mtr_portfolio_id': 21827676, 'dashboard_result_id': 9707283, '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_P21827676_28-03-2025_06_39_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21827679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21827680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21827681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21827682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21827683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21827684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21827685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21827686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21827687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21827688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21827689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21827690, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1704415, 'mtr_portfolio_id': 21828132, 'dashboard_result_id': 9707284, '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_P21828132_28-03-2025_06_52_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21828135, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21828136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21828137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21828138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21828139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21828140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21828141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21828142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21828143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21828144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21828145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21828146, '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 = 21826531 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': 2700328, 'mtr_portfolio_id': 21826531, 'created_at': datetime.datetime(2025, 3, 28, 6, 20), 'result': '0.0431391098155912', 'result_long': None, 'result_double': None}] Qualite : 0.0431391098155912 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21826531 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21826531_28-03-2025_06_20_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21826531 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_P21826531_28-03-2025_06_20_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21826535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21826536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21826537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21826538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21826539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21826540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21826541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21826542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21826543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21826544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21826545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21826546, 'pht': 3726}}" where mtr_portfolio_id = 21826531 and dashboard_run_id = 1704415 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`=21826531 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9707281, 0.0431391098155912, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21826531_28-03-2025_06_20_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21826535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21826536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21826537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21826538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21826539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21826540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21826541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21826542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21826543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21826544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21826545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21826546, '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 = 21827231 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': 2700366, 'mtr_portfolio_id': 21827231, 'created_at': datetime.datetime(2025, 3, 28, 6, 33, 30), 'result': '0.03436121860343487', 'result_long': None, 'result_double': None}] Qualite : 0.03436121860343487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21827231 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21827231_28-03-2025_06_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21827231 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_P21827231_28-03-2025_06_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21827234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21827235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21827236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21827237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21827238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21827239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21827240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21827241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21827242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21827243, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21827244, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21827245, 'pht': 3726}}" where mtr_portfolio_id = 21827231 and dashboard_run_id = 1704415 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`=21827231 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9707282, 0.03436121860343487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21827231_28-03-2025_06_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21827234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21827235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21827236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21827237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21827238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21827239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21827240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21827241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21827242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21827243, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21827244, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21827245, '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 = 21827676 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': 2700398, 'mtr_portfolio_id': 21827676, 'created_at': datetime.datetime(2025, 3, 28, 6, 39), 'result': '0.0390455383254466', 'result_long': None, 'result_double': None}] Qualite : 0.0390455383254466 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21827676 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21827676_28-03-2025_06_39_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21827676 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_P21827676_28-03-2025_06_39_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21827679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21827680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21827681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21827682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21827683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21827684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21827685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21827686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21827687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21827688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21827689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21827690, 'pht': 3726}}" where mtr_portfolio_id = 21827676 and dashboard_run_id = 1704415 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`=21827676 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9707283, 0.0390455383254466, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21827676_28-03-2025_06_39_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21827679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21827680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21827681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21827682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21827683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21827684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21827685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21827686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21827687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21827688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21827689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21827690, '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 = 21828132 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': 2700430, 'mtr_portfolio_id': 21828132, 'created_at': datetime.datetime(2025, 3, 28, 6, 54, 59), 'result': '0.04547440423400647', 'result_long': None, 'result_double': None}] Qualite : 0.04547440423400647 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21828132 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21828132_28-03-2025_06_55_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21828132 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_P21828132_28-03-2025_06_55_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21828135, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21828136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21828137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21828138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21828139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21828140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21828141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21828142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21828143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21828144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21828145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21828146, 'pht': 3726}}" where mtr_portfolio_id = 21828132 and dashboard_run_id = 1704415 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`=21828132 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9707284, 0.04547440423400647, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21828132_28-03-2025_06_55_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21828135, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21828136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21828137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21828138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21828139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21828140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21828141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21828142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21828143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21828144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21828145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21828146, '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 (21826531,21827231,21827676,21828132) result : ((1348173398,), (1348173415,), (1348173445,), (1348173785,), (1348173787,), (1348173804,), (1348173829,), (1348174092,), (1348174117,), (1348174134,), (1348174160,), (1348174195,), (1348174220,), (1348174480,), (1348174503,), (1348174528,), (1348174755,), (1348174775,), (1348174798,), (1348174825,), (1348174849,), (1348174872,), (1348175072,), (1348175078,), (1348175088,), (1348175091,), (1348175095,), (1348175117,), (1348175122,), (1348175126,), (1348175129,), (1348175132,), (1348175158,), (1348175162,), (1348175164,), (1348175167,), (1348175171,), (1348175198,), (1348175394,), (1348175423,), (1348175443,), (1348175464,), (1348175687,), (1348175707,), (1348175714,), (1348175721,), (1348175736,), (1348175755,), (1348176420,), (1348176422,), (1348176431,), (1348176446,), (1348176499,), (1348176502,), (1348176506,), (1348176512,), (1348176517,), (1348176618,), (1348176622,), (1348176625,), (1348176629,), (1348176632,), (1348176653,), (1348176655,), (1348176662,), (1348176671,), (1348176675,), (1348176680,), (1348176703,), (1348176707,), (1348176723,), (1348176727,), (1348176731,), (1348176734,), (1348176775,), (1348176769,), (1348176771,), (1348176796,), (1348176803,), (1348176809,), (1348176812,), (1348176818,), (1348176823,), (1348176866,), (1348176890,), (1348176895,), (1348176901,), (1348176904,), (1348176908,), (1348176942,), (1348176944,), (1348176950,), (1348176992,), (1348176995,), (1348176999,), (1348177002,), (1348177007,), (1348177012,), (1348177027,), (1348177029,), (1348177033,), (1348177036,), (1348177064,), (1348177067,), (1348177071,), (1348177076,), (1348177078,), (1348177097,), (1348177103,), (1348177106,), (1348177109,), (1348177112,), (1348177131,), (1348177133,), (1348177137,), (1348177160,), (1348177162,), (1348177167,), (1348177170,), (1348177176,), (1348177181,), (1348177235,), (1348177237,), (1348177242,), (1348177247,), (1348177252,), (1348177298,), (1348177300,), (1348177307,), (1348177327,), (1348177328,), (1348177378,), (1348177397,), (1348177408,), (1348177425,), (1348177428,), (1348177431,), (1348177510,), (1348177467,), (1348177476,), (1348177485,), (1348177495,), (1348177501,), (1348177525,), (1348177532,), (1348177537,), (1348177541,), (1348177568,), (1348177569,), (1348177579,), (1348177583,), (1348177588,), (1348177592,), (1348177627,), (1348177631,), (1348177649,), (1348177658,), (1348177702,), (1348177705,), (1348177766,), (1348177786,), (1348177790,), (1348177826,), (1348177827,), (1348177831,), (1348177835,), (1348177839,), (1348177843,), (1348177857,), (1348177859,), (1348177863,), (1348177897,), (1348177899,), (1348177903,), (1348177905,), (1348177909,), (1348177912,), (1348177924,), (1348177925,), (1348177929,), (1348177932,), (1348177938,), (1348177968,), (1348177970,), (1348177976,), (1348177996,), (1348178002,), (1348178007,), (1348178009,), (1348178013,), (1348178018,), (1348178034,), (1348178036,), (1348178040,), (1348178047,), (1348178059,), (1348178062,), (1348178076,), (1348178077,), (1348178083,), (1348178121,), (1348178123,), (1348178127,), (1348178132,), (1348178135,), (1348178140,), (1348178161,), (1348178165,), (1348178169,), (1348178217,), (1348178275,), (1348178248,), (1348178264,), (1348178270,), (1348178302,), (1348178303,), (1348178309,), (1348178314,), (1348178319,), (1348178324,), (1348178373,), (1348178378,), (1348178383,), (1348178406,), (1348178410,), (1348178414,), (1348178421,), (1348178426,), (1348178430,), (1348178461,), (1348178463,), (1348178469,), (1348178474,), (1348178479,), (1348178505,), (1348178508,), (1348178513,), (1348178516,), (1348178522,), (1348178564,), (1348178566,), (1348178570,), (1348178573,), (1348178577,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28032025': {'nb_upload': 33, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21828132]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1348178577, 1348178573, 1348178570, 1348178566, 1348178564, 1348178522, 1348178516, 1348178513, 1348178508, 1348178505, 1348178479, 1348178474, 1348178469, 1348178463, 1348178461] map_info['map_portfolio_photo'] : {21828132: [1348178577, 1348178573, 1348178570, 1348178566, 1348178564, 1348178522, 1348178516, 1348178513, 1348178508, 1348178505, 1348178479, 1348178474, 1348178469, 1348178463, 1348178461, 1348178430, 1348178426, 1348178421, 1348178414, 1348178410, 1348178406, 1348178383, 1348178378, 1348178373, 1348178324, 1348178319, 1348178314, 1348178309, 1348178303, 1348178302, 1348178270, 1348178264, 1348178248]} final : True mtd_id 4302 list_pids : [1348178577, 1348178573, 1348178570, 1348178566, 1348178564, 1348178522, 1348178516, 1348178513, 1348178508, 1348178505, 1348178479, 1348178474, 1348178469, 1348178463, 1348178461] Looping around the photos to save general results len do output : 1 /21828132Didn'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, '2700430') ('4302', '21828132', '1348178577', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178573', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178570', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178566', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178564', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178522', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178516', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178513', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178508', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178505', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178479', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178474', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178469', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178463', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178461', None, None, None, None, None, '2700430') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '21828132', 'None', None, None, None, None, '2700430'), ('4302', '21828132', '1348178577', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178573', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178570', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178566', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178564', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178522', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178516', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178513', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178508', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178505', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178479', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178474', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178469', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178463', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178461', None, None, None, None, None, '2700430')] time used for this insertion : 0.18598675727844238 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33486199378967285 time spend to save output : 0.1862032413482666 total time spend for step 5 : 0.5210652351379395 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 (2700430) 2.41user 2.63system 0:08.97elapsed 56%CPU (0avgtext+0avgdata 161488maxresident)k 3520inputs+14056outputs (52major+74832minor)pagefaults 0swaps