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 : 1967448 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 (2692125) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2692125) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21723967 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2692125'] with mtr_portfolio_ids : ['21723967'] and first list_photo_ids : [] new path : /proc/1967448/ Name: python3 Umask: 0002 State: R (running) Tgid: 1967448 Ngid: 0 Pid: 1967448 PPid: 1967447 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1967448 NSpid: 1967448 NSpgid: 1964529 NSsid: 1964529 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97200 kB VmRSS: 97200 kB RssAnon: 59764 kB RssFile: 37436 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 52 nonvoluntary_ctxt_switches: 96 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1967448', 'Ngid': '0', 'Pid': '1967448', 'PPid': '1967447', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1967448', 'NSpid': '1967448', 'NSpgid': '1964529', 'NSsid': '1964529', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97200 kB', 'VmRSS': '97200 kB', 'RssAnon': '59764 kB', 'RssFile': '37436 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '52', 'nonvoluntary_ctxt_switches': '96'} ('datou_batch_current', '1967448', '1106928', '0', '1106928', '865676', '97200', b'', 'marlene', '2692125') 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 (21723967) 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 (2692125 ) ) 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 (21723967) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1347447399, 'portfolio_id': 21723967}, {'photo_id': 1347447366, 'portfolio_id': 21723967}, {'photo_id': 1347447358, 'portfolio_id': 21723967}, {'photo_id': 1347447298, 'portfolio_id': 21723967}, {'photo_id': 1347447251, 'portfolio_id': 21723967}, {'photo_id': 1347447241, 'portfolio_id': 21723967}, {'photo_id': 1347447225, 'portfolio_id': 21723967}, {'photo_id': 1347447222, 'portfolio_id': 21723967}, {'photo_id': 1347447205, 'portfolio_id': 21723967}, {'photo_id': 1347447182, 'portfolio_id': 21723967}, {'photo_id': 1347447035, 'portfolio_id': 21723967}, {'photo_id': 1347447026, 'portfolio_id': 21723967}, {'photo_id': 1347447006, 'portfolio_id': 21723967}, {'photo_id': 1347446754, 'portfolio_id': 21723967}, {'photo_id': 1347446753, 'portfolio_id': 21723967}, {'photo_id': 1347446751, 'portfolio_id': 21723967}, {'photo_id': 1347446656, 'portfolio_id': 21723967}, {'photo_id': 1347446649, 'portfolio_id': 21723967}, {'photo_id': 1347446598, 'portfolio_id': 21723967}, {'photo_id': 1347446592, 'portfolio_id': 21723967}, {'photo_id': 1347446589, 'portfolio_id': 21723967}, {'photo_id': 1347446580, 'portfolio_id': 21723967}, {'photo_id': 1347446446, 'portfolio_id': 21723967}, {'photo_id': 1347446418, 'portfolio_id': 21723967}, {'photo_id': 1347446392, 'portfolio_id': 21723967}, {'photo_id': 1347446364, 'portfolio_id': 21723967}, {'photo_id': 1347446261, 'portfolio_id': 21723967}, {'photo_id': 1347446258, 'portfolio_id': 21723967}, {'photo_id': 1347446150, 'portfolio_id': 21723967}, {'photo_id': 1347446145, 'portfolio_id': 21723967}, {'photo_id': 1347446142, 'portfolio_id': 21723967}, {'photo_id': 1347446138, 'portfolio_id': 21723967}] map_portfolio_id_photo_id: {21723967: [1347447399, 1347447366, 1347447358, 1347447298, 1347447251, 1347447241, 1347447225, 1347447222, 1347447205, 1347447182, 1347447035, 1347447026, 1347447006, 1347446754, 1347446753, 1347446751, 1347446656, 1347446649, 1347446598, 1347446592, 1347446589, 1347446580, 1347446446, 1347446418, 1347446392, 1347446364, 1347446261, 1347446258, 1347446150, 1347446145, 1347446142, 1347446138]} ##### 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.014963150024414062 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Mar 26 08:24:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21723967) 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 : 21723967 get user id for portfolio 21723967 get sub ptf for main ptf 21723967, type 3726 and hashtags ['kraft', 'papier', 'mal_croppe', 'Carton_brun', 'Carton_gris', 'environnement', 'metal', 'Teint_Dans_La_Masse', 'cartonnette', 'plastique', 'flou', '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`=21723967 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','mal_croppe','Carton_brun','Carton_gris','environnement','metal','Teint_Dans_La_Masse','cartonnette','plastique','flou','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`=21723967 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','mal_croppe','Carton_brun','Carton_gris','environnement','metal','Teint_Dans_La_Masse','cartonnette','plastique','flou','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21723967, 'sub_port_id': 21723968, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251230, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23)}, 'cartonnette': {'main_port_id': 21723967, 'sub_port_id': 21723969, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251231, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23)}, 'autre_refus': {'main_port_id': 21723967, 'sub_port_id': 21723970, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251232, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23)}, 'metal': {'main_port_id': 21723967, 'sub_port_id': 21723971, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251233, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23)}, 'Carton_gris': {'main_port_id': 21723967, 'sub_port_id': 21723972, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251234, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23)}, 'mal_croppe': {'main_port_id': 21723967, 'sub_port_id': 21723973, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251235, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23)}, 'papier': {'main_port_id': 21723967, 'sub_port_id': 21723974, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251236, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23)}, 'Carton_brun': {'main_port_id': 21723967, 'sub_port_id': 21723975, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251237, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23)}, 'environnement': {'main_port_id': 21723967, 'sub_port_id': 21723976, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251238, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23)}, 'plastique': {'main_port_id': 21723967, 'sub_port_id': 21723977, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251239, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23)}, 'flou': {'main_port_id': 21723967, 'sub_port_id': 21723978, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251240, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23)}, 'kraft': {'main_port_id': 21723967, 'sub_port_id': 21723979, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251241, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21723968 , 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=21723967 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 (21723968) result : ((1347446945,), (1347447028,), (1347447029,), (1347447030,), (1347447031,), (1347447135,), (1347447229,), (1347447382,), (1347447383,), (1347447385,), (1347447386,), (1347447387,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21723967) result : ((1347446138,), (1347446142,), (1347446145,), (1347446150,), (1347446258,), (1347446261,), (1347446364,), (1347446392,), (1347446418,), (1347446446,), (1347446580,), (1347446589,), (1347446592,), (1347446598,), (1347446649,), (1347446656,), (1347446751,), (1347446753,), (1347446754,), (1347447006,), (1347447026,), (1347447035,), (1347447182,), (1347447205,), (1347447222,), (1347447225,), (1347447241,), (1347447251,), (1347447298,), (1347447358,), (1347447366,), (1347447399,)) 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 21723969 , 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=21723967 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 (21723969) result : ((1347447037,), (1347447038,), (1347447400,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21723967) result : ((1347446138,), (1347446142,), (1347446145,), (1347446150,), (1347446258,), (1347446261,), (1347446364,), (1347446392,), (1347446418,), (1347446446,), (1347446580,), (1347446589,), (1347446592,), (1347446598,), (1347446649,), (1347446656,), (1347446751,), (1347446753,), (1347446754,), (1347447006,), (1347447026,), (1347447035,), (1347447182,), (1347447205,), (1347447222,), (1347447225,), (1347447241,), (1347447251,), (1347447298,), (1347447358,), (1347447366,), (1347447399,)) 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 21723970 , 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=21723967 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 (21723970) result : ((1347447032,), (1347447395,), (1347447396,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21723967) result : ((1347446138,), (1347446142,), (1347446145,), (1347446150,), (1347446258,), (1347446261,), (1347446364,), (1347446392,), (1347446418,), (1347446446,), (1347446580,), (1347446589,), (1347446592,), (1347446598,), (1347446649,), (1347446656,), (1347446751,), (1347446753,), (1347446754,), (1347447006,), (1347447026,), (1347447035,), (1347447182,), (1347447205,), (1347447222,), (1347447225,), (1347447241,), (1347447251,), (1347447298,), (1347447358,), (1347447366,), (1347447399,)) 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 21723971 , 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=21723967 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 (21723971) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21723967) result : ((1347446138,), (1347446142,), (1347446145,), (1347446150,), (1347446258,), (1347446261,), (1347446364,), (1347446392,), (1347446418,), (1347446446,), (1347446580,), (1347446589,), (1347446592,), (1347446598,), (1347446649,), (1347446656,), (1347446751,), (1347446753,), (1347446754,), (1347447006,), (1347447026,), (1347447035,), (1347447182,), (1347447205,), (1347447222,), (1347447225,), (1347447241,), (1347447251,), (1347447298,), (1347447358,), (1347447366,), (1347447399,)) 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 21723972 , 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=21723967 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 (21723972) result : ((1347447034,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21723967) result : ((1347446138,), (1347446142,), (1347446145,), (1347446150,), (1347446258,), (1347446261,), (1347446364,), (1347446392,), (1347446418,), (1347446446,), (1347446580,), (1347446589,), (1347446592,), (1347446598,), (1347446649,), (1347446656,), (1347446751,), (1347446753,), (1347446754,), (1347447006,), (1347447026,), (1347447035,), (1347447182,), (1347447205,), (1347447222,), (1347447225,), (1347447241,), (1347447251,), (1347447298,), (1347447358,), (1347447366,), (1347447399,)) 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 21723973 , 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=21723967 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 (21723973) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21723967) result : ((1347446138,), (1347446142,), (1347446145,), (1347446150,), (1347446258,), (1347446261,), (1347446364,), (1347446392,), (1347446418,), (1347446446,), (1347446580,), (1347446589,), (1347446592,), (1347446598,), (1347446649,), (1347446656,), (1347446751,), (1347446753,), (1347446754,), (1347447006,), (1347447026,), (1347447035,), (1347447182,), (1347447205,), (1347447222,), (1347447225,), (1347447241,), (1347447251,), (1347447298,), (1347447358,), (1347447366,), (1347447399,)) 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 21723974 , 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=21723967 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 (21723974) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21723967) result : ((1347446138,), (1347446142,), (1347446145,), (1347446150,), (1347446258,), (1347446261,), (1347446364,), (1347446392,), (1347446418,), (1347446446,), (1347446580,), (1347446589,), (1347446592,), (1347446598,), (1347446649,), (1347446656,), (1347446751,), (1347446753,), (1347446754,), (1347447006,), (1347447026,), (1347447035,), (1347447182,), (1347447205,), (1347447222,), (1347447225,), (1347447241,), (1347447251,), (1347447298,), (1347447358,), (1347447366,), (1347447399,)) 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 21723975 , 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=21723967 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 (21723975) result : ((1347447401,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21723967) result : ((1347446138,), (1347446142,), (1347446145,), (1347446150,), (1347446258,), (1347446261,), (1347446364,), (1347446392,), (1347446418,), (1347446446,), (1347446580,), (1347446589,), (1347446592,), (1347446598,), (1347446649,), (1347446656,), (1347446751,), (1347446753,), (1347446754,), (1347447006,), (1347447026,), (1347447035,), (1347447182,), (1347447205,), (1347447222,), (1347447225,), (1347447241,), (1347447251,), (1347447298,), (1347447358,), (1347447366,), (1347447399,)) 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 21723976 , 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=21723967 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 (21723976) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21723967) result : ((1347446138,), (1347446142,), (1347446145,), (1347446150,), (1347446258,), (1347446261,), (1347446364,), (1347446392,), (1347446418,), (1347446446,), (1347446580,), (1347446589,), (1347446592,), (1347446598,), (1347446649,), (1347446656,), (1347446751,), (1347446753,), (1347446754,), (1347447006,), (1347447026,), (1347447035,), (1347447182,), (1347447205,), (1347447222,), (1347447225,), (1347447241,), (1347447251,), (1347447298,), (1347447358,), (1347447366,), (1347447399,)) 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 21723977 , 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=21723967 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 (21723977) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21723967) result : ((1347446138,), (1347446142,), (1347446145,), (1347446150,), (1347446258,), (1347446261,), (1347446364,), (1347446392,), (1347446418,), (1347446446,), (1347446580,), (1347446589,), (1347446592,), (1347446598,), (1347446649,), (1347446656,), (1347446751,), (1347446753,), (1347446754,), (1347447006,), (1347447026,), (1347447035,), (1347447182,), (1347447205,), (1347447222,), (1347447225,), (1347447241,), (1347447251,), (1347447298,), (1347447358,), (1347447366,), (1347447399,)) 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 21723978 , 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=21723967 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 (21723978) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21723967) result : ((1347446138,), (1347446142,), (1347446145,), (1347446150,), (1347446258,), (1347446261,), (1347446364,), (1347446392,), (1347446418,), (1347446446,), (1347446580,), (1347446589,), (1347446592,), (1347446598,), (1347446649,), (1347446656,), (1347446751,), (1347446753,), (1347446754,), (1347447006,), (1347447026,), (1347447035,), (1347447182,), (1347447205,), (1347447222,), (1347447225,), (1347447241,), (1347447251,), (1347447298,), (1347447358,), (1347447366,), (1347447399,)) 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 21723979 , 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=21723967 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 (21723979) result : ((1347447403,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21723967) result : ((1347446138,), (1347446142,), (1347446145,), (1347446150,), (1347446258,), (1347446261,), (1347446364,), (1347446392,), (1347446418,), (1347446446,), (1347446580,), (1347446589,), (1347446592,), (1347446598,), (1347446649,), (1347446656,), (1347446751,), (1347446753,), (1347446754,), (1347447006,), (1347447026,), (1347447035,), (1347447182,), (1347447205,), (1347447222,), (1347447225,), (1347447241,), (1347447251,), (1347447298,), (1347447358,), (1347447366,), (1347447399,)) 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`=21723967 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','mal_croppe','Carton_brun','Carton_gris','environnement','metal','Teint_Dans_La_Masse','cartonnette','plastique','flou','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`=21723967 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','mal_croppe','Carton_brun','Carton_gris','environnement','metal','Teint_Dans_La_Masse','cartonnette','plastique','flou','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21723967, 'sub_port_id': 21723980, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251242, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23, 2)}, 'cartonnette': {'main_port_id': 21723967, 'sub_port_id': 21723981, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251243, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23, 2)}, 'autre_refus': {'main_port_id': 21723967, 'sub_port_id': 21723982, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251244, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23, 2)}, 'metal': {'main_port_id': 21723967, 'sub_port_id': 21723983, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251245, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23, 2)}, 'Carton_gris': {'main_port_id': 21723967, 'sub_port_id': 21723984, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251246, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23, 2)}, 'mal_croppe': {'main_port_id': 21723967, 'sub_port_id': 21723985, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251247, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23, 2)}, 'papier': {'main_port_id': 21723967, 'sub_port_id': 21723986, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251248, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23, 2)}, 'Carton_brun': {'main_port_id': 21723967, 'sub_port_id': 21723987, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251249, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23, 2)}, 'environnement': {'main_port_id': 21723967, 'sub_port_id': 21723988, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251250, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23, 2)}, 'plastique': {'main_port_id': 21723967, 'sub_port_id': 21723989, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251251, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23, 2)}, 'flou': {'main_port_id': 21723967, 'sub_port_id': 21723990, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251252, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23, 2)}, 'kraft': {'main_port_id': 21723967, 'sub_port_id': 21723991, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14251253, 'last_updated_at': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 8, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 8, 23, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21723980,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21723968 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21723981,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21723969 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21723982,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21723970 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21723983,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21723971 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21723984,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21723972 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21723985,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21723973 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21723986,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21723974 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21723987,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21723975 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21723988,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21723976 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21723989,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21723977 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21723990,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21723978 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21723991,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21723979 lien utilise dans velours : https://www.fotonower.com/velours/21723980,21723981,21723982,21723983,21723984,21723985,21723986,21723987,21723988,21723989,21723990,21723991?tags=Teint_Dans_La_Masse,cartonnette,autre_refus,metal,Carton_gris,mal_croppe,papier,Carton_brun,environnement,plastique,flou,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21723967]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347447399, 1347447366, 1347447358, 1347447298, 1347447251, 1347447241, 1347447225, 1347447222, 1347447205, 1347447182] map_info['map_portfolio_photo'] : {21723967: [1347447399, 1347447366, 1347447358, 1347447298, 1347447251, 1347447241, 1347447225, 1347447222, 1347447205, 1347447182, 1347447035, 1347447026, 1347447006, 1347446754, 1347446753, 1347446751, 1347446656, 1347446649, 1347446598, 1347446592, 1347446589, 1347446580, 1347446446, 1347446418, 1347446392, 1347446364, 1347446261, 1347446258, 1347446150, 1347446145, 1347446142, 1347446138]} final : False mtd_id 4302 list_pids : [1347447399, 1347447366, 1347447358, 1347447298, 1347447251, 1347447241, 1347447225, 1347447222, 1347447205, 1347447182] Looping around the photos to save general results len do output : 1 /21723967. 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, '2692125') ('4302', '21723967', '1347447399', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447366', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447358', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447298', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447251', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447241', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447225', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447222', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447205', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447182', None, None, None, None, None, '2692125') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21723967', "{'Teint_Dans_La_Masse': 21723968, 'cartonnette': 21723969, 'autre_refus': 21723970, 'metal': 21723971, 'Carton_gris': 21723972, 'mal_croppe': 21723973, 'papier': 21723974, 'Carton_brun': 21723975, 'environnement': 21723976, 'plastique': 21723977, 'flou': 21723978, 'kraft': 21723979}", None, None, None, None, '2692125'), ('4302', '21723967', '1347447399', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447366', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447358', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447298', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447251', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447241', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447225', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447222', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447205', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447182', None, None, None, None, None, '2692125')] time used for this insertion : 0.014618635177612305 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5811271667480469 time spend to save output : 0.015053749084472656 total time spend for step 1 : 1.5961809158325195 step2:final Wed Mar 26 08:25:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21723967) 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 21723967 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347446150,1347446145,1347446142,1347446138,1347446261,1347446258,1347446446,1347446418,1347446392,1347446364,1347446656,1347446649,1347446598,1347446592,1347446589,1347446580,1347446754,1347446753,1347446751,1347447035,1347447026,1347447006,1347447251,1347447241,1347447225,1347447222,1347447205,1347447182,1347447399,1347447366,1347447358,1347447298); 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([21723967]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ('0.05967929892238344',), 1347447251: ('0.05967929892238344',), 1347447241: ('0.05967929892238344',), 1347447225: ('0.05967929892238344',), 1347447222: ('0.05967929892238344',), 1347447205: ('0.05967929892238344',), 1347447182: ('0.05967929892238344',)} new output for save of step final : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ('0.05967929892238344',), 1347447251: ('0.05967929892238344',), 1347447241: ('0.05967929892238344',), 1347447225: ('0.05967929892238344',), 1347447222: ('0.05967929892238344',), 1347447205: ('0.05967929892238344',), 1347447182: ('0.05967929892238344',)} [1347447399, 1347447366, 1347447358, 1347447298, 1347447251, 1347447241, 1347447225, 1347447222, 1347447205, 1347447182] map_info['map_portfolio_photo'] : {21723967: [1347447399, 1347447366, 1347447358, 1347447298, 1347447251, 1347447241, 1347447225, 1347447222, 1347447205, 1347447182, 1347447035, 1347447026, 1347447006, 1347446754, 1347446753, 1347446751, 1347446656, 1347446649, 1347446598, 1347446592, 1347446589, 1347446580, 1347446446, 1347446418, 1347446392, 1347446364, 1347446261, 1347446258, 1347446150, 1347446145, 1347446142, 1347446138]} final : False mtd_id 4302 list_pids : [1347447399, 1347447366, 1347447358, 1347447298, 1347447251, 1347447241, 1347447225, 1347447222, 1347447205, 1347447182] Looping around the photos to save general results len do output : 10 /1347447399.Didn't retrieve data . /1347447366.Didn't retrieve data . /1347447358.Didn't retrieve data . /1347447298.Didn't retrieve data . /1347447251.Didn't retrieve data . /1347447241.Didn't retrieve data . /1347447225.Didn't retrieve data . /1347447222.Didn't retrieve data . /1347447205.Didn't retrieve data . /1347447182.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, '2692125') ('4302', '21723967', '1347447399', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447366', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447358', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447298', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447251', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447241', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447225', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447222', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447205', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447182', None, None, None, None, None, '2692125') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21723967', '1347447399', '0.05967929892238344', None, None, None, None, '2692125'), ('4302', '21723967', '1347447366', '0.05967929892238344', None, None, None, None, '2692125'), ('4302', '21723967', '1347447358', '0.05967929892238344', None, None, None, None, '2692125'), ('4302', '21723967', '1347447298', '0.05967929892238344', None, None, None, None, '2692125'), ('4302', '21723967', '1347447251', '0.05967929892238344', None, None, None, None, '2692125'), ('4302', '21723967', '1347447241', '0.05967929892238344', None, None, None, None, '2692125'), ('4302', '21723967', '1347447225', '0.05967929892238344', None, None, None, None, '2692125'), ('4302', '21723967', '1347447222', '0.05967929892238344', None, None, None, None, '2692125'), ('4302', '21723967', '1347447205', '0.05967929892238344', None, None, None, None, '2692125'), ('4302', '21723967', '1347447182', '0.05967929892238344', None, None, None, None, '2692125')] time used for this insertion : 0.01343536376953125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07163667678833008 time spend to save output : 0.01401829719543457 total time spend for step 2 : 0.08565497398376465 step3:velours_tree Wed Mar 26 08:25:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21723967: [{'Teint_Dans_La_Masse': 21723968, 'cartonnette': 21723969, 'autre_refus': 21723970, 'metal': 21723971, 'Carton_gris': 21723972, 'mal_croppe': 21723973, 'papier': 21723974, 'Carton_brun': 21723975, 'environnement': 21723976, 'plastique': 21723977, 'flou': 21723978, 'kraft': 21723979}]} input_args_next_step : {21723967: ()} output_args : {21723967: [{'Teint_Dans_La_Masse': 21723968, 'cartonnette': 21723969, 'autre_refus': 21723970, 'metal': 21723971, 'Carton_gris': 21723972, 'mal_croppe': 21723973, 'papier': 21723974, 'Carton_brun': 21723975, 'environnement': 21723976, 'plastique': 21723977, 'flou': 21723978, 'kraft': 21723979}]} args : 21723967 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 : ({'Teint_Dans_La_Masse': 21723968, 'cartonnette': 21723969, 'autre_refus': 21723970, 'metal': 21723971, 'Carton_gris': 21723972, 'mal_croppe': 21723973, 'papier': 21723974, 'Carton_brun': 21723975, 'environnement': 21723976, 'plastique': 21723977, 'flou': 21723978, 'kraft': 21723979},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21723967) 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([21723967]) 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.3568251132965088 time spend to save output : 4.029273986816406e-05 total time spend for step 3 : 0.35686540603637695 step4:send_mail_cod Wed Mar 26 08:25:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ('0.05967929892238344',), 1347447251: ('0.05967929892238344',), 1347447241: ('0.05967929892238344',), 1347447225: ('0.05967929892238344',), 1347447222: ('0.05967929892238344',), 1347447205: ('0.05967929892238344',), 1347447182: ('0.05967929892238344',)} input_args_next_step : {1347447399: ()} output_args : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ('0.05967929892238344',), 1347447251: ('0.05967929892238344',), 1347447241: ('0.05967929892238344',), 1347447225: ('0.05967929892238344',), 1347447222: ('0.05967929892238344',), 1347447205: ('0.05967929892238344',), 1347447182: ('0.05967929892238344',)} args : 1347447399 depend.output_id : 0 input_args_next_step : {1347447399: ('0.05967929892238344',), 1347447366: ()} output_args : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ('0.05967929892238344',), 1347447251: ('0.05967929892238344',), 1347447241: ('0.05967929892238344',), 1347447225: ('0.05967929892238344',), 1347447222: ('0.05967929892238344',), 1347447205: ('0.05967929892238344',), 1347447182: ('0.05967929892238344',)} args : 1347447366 depend.output_id : 0 input_args_next_step : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ()} output_args : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ('0.05967929892238344',), 1347447251: ('0.05967929892238344',), 1347447241: ('0.05967929892238344',), 1347447225: ('0.05967929892238344',), 1347447222: ('0.05967929892238344',), 1347447205: ('0.05967929892238344',), 1347447182: ('0.05967929892238344',)} args : 1347447358 depend.output_id : 0 input_args_next_step : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ()} output_args : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ('0.05967929892238344',), 1347447251: ('0.05967929892238344',), 1347447241: ('0.05967929892238344',), 1347447225: ('0.05967929892238344',), 1347447222: ('0.05967929892238344',), 1347447205: ('0.05967929892238344',), 1347447182: ('0.05967929892238344',)} args : 1347447298 depend.output_id : 0 input_args_next_step : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ('0.05967929892238344',), 1347447251: ()} output_args : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ('0.05967929892238344',), 1347447251: ('0.05967929892238344',), 1347447241: ('0.05967929892238344',), 1347447225: ('0.05967929892238344',), 1347447222: ('0.05967929892238344',), 1347447205: ('0.05967929892238344',), 1347447182: ('0.05967929892238344',)} args : 1347447251 depend.output_id : 0 input_args_next_step : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ('0.05967929892238344',), 1347447251: ('0.05967929892238344',), 1347447241: ()} output_args : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ('0.05967929892238344',), 1347447251: ('0.05967929892238344',), 1347447241: ('0.05967929892238344',), 1347447225: ('0.05967929892238344',), 1347447222: ('0.05967929892238344',), 1347447205: ('0.05967929892238344',), 1347447182: ('0.05967929892238344',)} args : 1347447241 depend.output_id : 0 input_args_next_step : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ('0.05967929892238344',), 1347447251: ('0.05967929892238344',), 1347447241: ('0.05967929892238344',), 1347447225: ()} output_args : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ('0.05967929892238344',), 1347447251: ('0.05967929892238344',), 1347447241: ('0.05967929892238344',), 1347447225: ('0.05967929892238344',), 1347447222: ('0.05967929892238344',), 1347447205: ('0.05967929892238344',), 1347447182: ('0.05967929892238344',)} args : 1347447225 depend.output_id : 0 input_args_next_step : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ('0.05967929892238344',), 1347447251: ('0.05967929892238344',), 1347447241: ('0.05967929892238344',), 1347447225: ('0.05967929892238344',), 1347447222: ()} output_args : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ('0.05967929892238344',), 1347447251: ('0.05967929892238344',), 1347447241: ('0.05967929892238344',), 1347447225: ('0.05967929892238344',), 1347447222: ('0.05967929892238344',), 1347447205: ('0.05967929892238344',), 1347447182: ('0.05967929892238344',)} args : 1347447222 depend.output_id : 0 input_args_next_step : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ('0.05967929892238344',), 1347447251: ('0.05967929892238344',), 1347447241: ('0.05967929892238344',), 1347447225: ('0.05967929892238344',), 1347447222: ('0.05967929892238344',), 1347447205: ()} output_args : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ('0.05967929892238344',), 1347447251: ('0.05967929892238344',), 1347447241: ('0.05967929892238344',), 1347447225: ('0.05967929892238344',), 1347447222: ('0.05967929892238344',), 1347447205: ('0.05967929892238344',), 1347447182: ('0.05967929892238344',)} args : 1347447205 depend.output_id : 0 input_args_next_step : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ('0.05967929892238344',), 1347447251: ('0.05967929892238344',), 1347447241: ('0.05967929892238344',), 1347447225: ('0.05967929892238344',), 1347447222: ('0.05967929892238344',), 1347447205: ('0.05967929892238344',), 1347447182: ()} output_args : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ('0.05967929892238344',), 1347447251: ('0.05967929892238344',), 1347447241: ('0.05967929892238344',), 1347447225: ('0.05967929892238344',), 1347447222: ('0.05967929892238344',), 1347447205: ('0.05967929892238344',), 1347447182: ('0.05967929892238344',)} args : 1347447182 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 : {21723967: [{'Teint_Dans_La_Masse': 21723968, 'cartonnette': 21723969, 'autre_refus': 21723970, 'metal': 21723971, 'Carton_gris': 21723972, 'mal_croppe': 21723973, 'papier': 21723974, 'Carton_brun': 21723975, 'environnement': 21723976, 'plastique': 21723977, 'flou': 21723978, 'kraft': 21723979}]} input_args_next_step : {1347447399: ('0.05967929892238344',), 1347447366: ('0.05967929892238344',), 1347447358: ('0.05967929892238344',), 1347447298: ('0.05967929892238344',), 1347447251: ('0.05967929892238344',), 1347447241: ('0.05967929892238344',), 1347447225: ('0.05967929892238344',), 1347447222: ('0.05967929892238344',), 1347447205: ('0.05967929892238344',), 1347447182: ('0.05967929892238344',), 21723967: ()} output_args : {21723967: [{'Teint_Dans_La_Masse': 21723968, 'cartonnette': 21723969, 'autre_refus': 21723970, 'metal': 21723971, 'Carton_gris': 21723972, 'mal_croppe': 21723973, 'papier': 21723974, 'Carton_brun': 21723975, 'environnement': 21723976, 'plastique': 21723977, 'flou': 21723978, 'kraft': 21723979}]} args : 21723967 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.05967929892238344',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21723967) 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 (1347447399,1347447366,1347447358,1347447298,1347447251,1347447241,1347447225,1347447222,1347447205,1347447182) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347447182 begin to download photo : 1347447225 begin to download photo : 1347447298 begin to download photo : 1347447399 download finish for photo 1347447298 begin to download photo : 1347447358 download finish for photo 1347447399 download finish for photo 1347447225 begin to download photo : 1347447241 download finish for photo 1347447182 begin to download photo : 1347447205 download finish for photo 1347447358 begin to download photo : 1347447366 download finish for photo 1347447241 begin to download photo : 1347447251 download finish for photo 1347447205 begin to download photo : 1347447222 download finish for photo 1347447366 download finish for photo 1347447251 download finish for photo 1347447222 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P21723967_26-03-2025_08_25_01.pdf 21723969 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=21723969 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347447037: '1742973690_1529863_1347446150_bcfe3487cb6aca6efcfc330cd0db262f_rle_crop_3730904600_0.png', 1347447038: '1742973690_1529863_1347446138_62c2848f523f2bde5ee7734834004431_rle_crop_3730904630_0.png', 1347447400: '1742973792_1531234_1347446592_96b6f0870c24adcad3e8808bdffb8e0a_rle_crop_3730904951_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/327df9b7b71b1869411d82a38e0ec9d2_79552898.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/3be808a89b8bf16209ec4b15a303fc48_58156664.png change filename to text .imagette217239691742973901/ imagette217239691742973901/1742973690_1529863_1347446138_62c2848f523f2bde5ee7734834004431_rle_crop_3730904630_0.png.png imagette217239691742973901/1742973690_1529863_1347446150_bcfe3487cb6aca6efcfc330cd0db262f_rle_crop_3730904600_0.png.png imagette217239691742973901/1742973792_1531234_1347446592_96b6f0870c24adcad3e8808bdffb8e0a_rle_crop_3730904951_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/d43af719cb2afcf70a29ad1e82e3cce0_41574669.png imagette217239691742973901 21723970 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=21723970 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347447032: '1742973690_1529863_1347446142_591f84d056b489ac265d06d7ca3c6069_rle_crop_3730904618_0.png', 1347447395: '1742973792_1531234_1347446649_1bf07ae4090ec08f42a9f29a0ed737c0_rle_crop_3730904906_0.png', 1347447396: '1742973792_1531234_1347446589_8085da8097d600047b28773183ddb72c_rle_crop_3730904976_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/bb0e93943dc308371d4fded65037cd5d_55253736.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/fb116378fab6b9c39b462ce9a6a54107_16424886.png change filename to text .imagette217239701742973902/ imagette217239701742973902/1742973690_1529863_1347446142_591f84d056b489ac265d06d7ca3c6069_rle_crop_3730904618_0.png.png imagette217239701742973902/1742973792_1531234_1347446589_8085da8097d600047b28773183ddb72c_rle_crop_3730904976_0.png.png imagette217239701742973902/1742973792_1531234_1347446649_1bf07ae4090ec08f42a9f29a0ed737c0_rle_crop_3730904906_0.png.png imagette217239711742973902/ imagette217239731742973902/ imagette217239771742973902/ imagette217239781742973902/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/706fbee77f75d04db409cecf77caf847_16230540.png imagette217239701742973902 21723971 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=21723971 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217239711742973902 21723973 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=21723973 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217239731742973902 21723977 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=21723977 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217239771742973902 21723978 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=21723978 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217239781742973902 21723979 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=21723979 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347447403: '1742973792_1531234_1347446580_725cbce1dd72db8ac4fa02fa8192bb5f_rle_crop_3730905071_0.png'} change filename to text .imagette217239791742973902/ imagette217239791742973902/1742973792_1531234_1347446580_725cbce1dd72db8ac4fa02fa8192bb5f_rle_crop_3730905071_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/76482191f0d97322c7626ee9a52a2a1e_17917034.png imagette217239791742973902 21723968 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=21723968 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347446945: '1742973673_1529561_1347446446_bc05fce9764701f01a246c886b6972a5_rle_crop_3730904495_0.png', 1347447028: '1742973690_1529863_1347446150_bcfe3487cb6aca6efcfc330cd0db262f_rle_crop_3730904602_0.png', 1347447029: '1742973690_1529863_1347446150_bcfe3487cb6aca6efcfc330cd0db262f_rle_crop_3730904597_0.png', 1347447030: '1742973690_1529863_1347446145_273f95bae69e38e114f226c7df079811_rle_crop_3730904611_0.png', 1347447031: '1742973690_1529863_1347446142_591f84d056b489ac265d06d7ca3c6069_rle_crop_3730904620_0.png', 1347447135: '1742973753_1530614_1347446446_bc05fce9764701f01a246c886b6972a5_rle_crop_3730904495_0.png', 1347447229: '1742973773_1530861_1347446751_f091f47a1426dc920fc7fba1ad7c1651_rle_crop_3730905218_0.png', 1347447382: '1742973792_1531234_1347446649_1bf07ae4090ec08f42a9f29a0ed737c0_rle_crop_3730904915_0.png', 1347447383: '1742973792_1531234_1347446592_96b6f0870c24adcad3e8808bdffb8e0a_rle_crop_3730904955_0.png', 1347447385: '1742973792_1531234_1347446589_8085da8097d600047b28773183ddb72c_bib_crop_3730904977_0.jpg', 1347447386: '1742973792_1531234_1347446589_8085da8097d600047b28773183ddb72c_rle_crop_3730905515_0.png', 1347447387: '1742973792_1531234_1347446589_8085da8097d600047b28773183ddb72c_rle_crop_3730904980_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/93537642c259d44e169431b2b97184c1_23390858.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/a63fadd305634e2836d644d76b5c3e9c_40324772.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/d1b98e85506f98bb1f494efcb6b162da_22333306.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/5674256e1856d901dd1857f17d3a817d_56537595.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/915e5f5fc334e5f87b63ed82f8982ba7_41659120.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/93537642c259d44e169431b2b97184c1_38719334.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/2dc80d373c9ca753e515bb0dabfd2710_78610521.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/144ad5ceecc4ca2b3c2f76c2d8d1e39a_94950425.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/17b411d4ca391eee04e2c30ce621ebbb_89983494.png change filename to text .wget -O 10.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/72cd3c7d86b1df810337cb47afa91a5a_28713565.jpg change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/aae36bdf0bed8414a89bd47baf9d90f4_89908353.png change filename to text .imagette217239681742973902/ imagette217239681742973902/1742973690_1529863_1347446142_591f84d056b489ac265d06d7ca3c6069_rle_crop_3730904620_0.png.png imagette217239681742973902/1742973690_1529863_1347446150_bcfe3487cb6aca6efcfc330cd0db262f_rle_crop_3730904597_0.png.png imagette217239681742973902/1742973792_1531234_1347446592_96b6f0870c24adcad3e8808bdffb8e0a_rle_crop_3730904955_0.png.png imagette217239681742973902/1742973690_1529863_1347446145_273f95bae69e38e114f226c7df079811_rle_crop_3730904611_0.png.png imagette217239681742973902/1742973673_1529561_1347446446_bc05fce9764701f01a246c886b6972a5_rle_crop_3730904495_0.png.png imagette217239681742973902/1742973792_1531234_1347446589_8085da8097d600047b28773183ddb72c_rle_crop_3730904980_0.png.png imagette217239681742973902/1742973792_1531234_1347446649_1bf07ae4090ec08f42a9f29a0ed737c0_rle_crop_3730904915_0.png.png imagette217239681742973902/1742973792_1531234_1347446589_8085da8097d600047b28773183ddb72c_bib_crop_3730904977_0.jpg.jpg imagette217239681742973902/1742973753_1530614_1347446446_bc05fce9764701f01a246c886b6972a5_rle_crop_3730904495_0.png.png imagette217239681742973902/1742973792_1531234_1347446589_8085da8097d600047b28773183ddb72c_rle_crop_3730905515_0.png.png imagette217239681742973902/1742973690_1529863_1347446150_bcfe3487cb6aca6efcfc330cd0db262f_rle_crop_3730904602_0.png.png imagette217239681742973902/1742973773_1530861_1347446751_f091f47a1426dc920fc7fba1ad7c1651_rle_crop_3730905218_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/329720feeb2fae7d033c6e5a14b96b30_51868238.png imagette217239681742973902 21723972 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=21723972 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347447034: '1742973690_1529863_1347446145_273f95bae69e38e114f226c7df079811_rle_crop_3730904609_0.png'} change filename to text .imagette217239721742973903/ imagette217239721742973903/1742973690_1529863_1347446145_273f95bae69e38e114f226c7df079811_rle_crop_3730904609_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/394a86b8fef9ab2c477fb4bae9773393_98321310.png imagette217239721742973903 21723975 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=21723975 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347447401: '1742973792_1531234_1347446649_1bf07ae4090ec08f42a9f29a0ed737c0_rle_crop_3730904913_0.png'} change filename to text .imagette217239751742973903/ imagette217239751742973903/1742973792_1531234_1347446649_1bf07ae4090ec08f42a9f29a0ed737c0_rle_crop_3730904913_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/8f5c70d1d280137baaef7771325d0d26_71167928.png imagette217239751742973903 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21723967 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21723980,21723981,21723982,21723983,21723984,21723985,21723986,21723987,21723988,21723989,21723990,21723991?tags=Teint_Dans_La_Masse,cartonnette,autre_refus,metal,Carton_gris,mal_croppe,papier,Carton_brun,environnement,plastique,flou,kraft your option no_mail is active, we will not send the real mail to your client args[1347447399] : ('0.05967929892238344',) no score found for photo 1347447399 We are sending mail with results at report@fotonower.com args[1347447366] : ('0.05967929892238344',) no score found for photo 1347447366 We are sending mail with results at report@fotonower.com args[1347447358] : ('0.05967929892238344',) no score found for photo 1347447358 We are sending mail with results at report@fotonower.com args[1347447298] : ('0.05967929892238344',) no score found for photo 1347447298 We are sending mail with results at report@fotonower.com args[1347447251] : ('0.05967929892238344',) no score found for photo 1347447251 We are sending mail with results at report@fotonower.com args[1347447241] : ('0.05967929892238344',) no score found for photo 1347447241 We are sending mail with results at report@fotonower.com args[1347447225] : ('0.05967929892238344',) no score found for photo 1347447225 We are sending mail with results at report@fotonower.com args[1347447222] : ('0.05967929892238344',) no score found for photo 1347447222 We are sending mail with results at report@fotonower.com args[1347447205] : ('0.05967929892238344',) no score found for photo 1347447205 We are sending mail with results at report@fotonower.com args[1347447182] : ('0.05967929892238344',) no score found for photo 1347447182 We are sending mail with results at report@fotonower.com refus_total : 0.05967929892238344 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=21723967 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_P21723967_26-03-2025_08_25_01.pdf results_Auto_P21723967_26-03-2025_08_25_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21723967_26-03-2025_08_25_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21723967','results_Auto_P21723967_26-03-2025_08_25_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21723967_26-03-2025_08_25_01.pdf','pdf','','0.16','0.05967929892238344') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21723967]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347447399, 1347447366, 1347447358, 1347447298, 1347447251, 1347447241, 1347447225, 1347447222, 1347447205, 1347447182] map_info['map_portfolio_photo'] : {21723967: [1347447399, 1347447366, 1347447358, 1347447298, 1347447251, 1347447241, 1347447225, 1347447222, 1347447205, 1347447182, 1347447035, 1347447026, 1347447006, 1347446754, 1347446753, 1347446751, 1347446656, 1347446649, 1347446598, 1347446592, 1347446589, 1347446580, 1347446446, 1347446418, 1347446392, 1347446364, 1347446261, 1347446258, 1347446150, 1347446145, 1347446142, 1347446138]} final : False mtd_id 4302 list_pids : [1347447399, 1347447366, 1347447358, 1347447298, 1347447251, 1347447241, 1347447225, 1347447222, 1347447205, 1347447182] 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, '2692125') ('4302', '21723967', '1347447399', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447366', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447358', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447298', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447251', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447241', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447225', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447222', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447205', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447182', None, None, None, None, None, '2692125') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21723967', '1347447399', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447366', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447358', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447298', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447251', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447241', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447225', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447222', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447205', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447182', None, None, None, None, None, '2692125')] time used for this insertion : 0.013919591903686523 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.8928585052490234 time spend to save output : 0.014149665832519531 total time spend for step 4 : 2.907008171081543 step5:split_time_score Wed Mar 26 08:25:04 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 : ['21723967'] 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 : [('21723967',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21723967) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347447399: {'path': 'temp/1742973901_1967448_1347447399_83b5de64264e38b31d6030adce8b8379.jpg', 'extension': 'jpg'}, 1347447298: {'path': 'temp/1742973901_1967448_1347447298_427cacfbdbb67dc952305616ec7084a1.jpg', 'extension': 'jpg'}, 1347447358: {'path': 'temp/1742973901_1967448_1347447358_b0e57bf037c340ddd628d2c6507f2a2f.jpg', 'extension': 'jpg'}, 1347447366: {'path': 'temp/1742973901_1967448_1347447366_67a22376b02c6854c9e92b8116e0d2b2.jpg', 'extension': 'jpg'}, 1347447225: {'path': 'temp/1742973901_1967448_1347447225_ce1b8ad8811eeca8b1153c4fae32dbe8.jpg', 'extension': 'jpg'}, 1347447241: {'path': 'temp/1742973901_1967448_1347447241_2e6e5198bd6e208bbc89927fad6b3820.jpg', 'extension': 'jpg'}, 1347447251: {'path': 'temp/1742973901_1967448_1347447251_4ea73a16223bfae585417e538e819992.jpg', 'extension': 'jpg'}, 1347447182: {'path': 'temp/1742973901_1967448_1347447182_121d0aa2f8c95046dc8fc4af51e52a18.jpg', 'extension': 'jpg'}, 1347447205: {'path': 'temp/1742973901_1967448_1347447205_5c1a01965b64a064f2aa690c188af88d.jpg', 'extension': 'jpg'}, 1347447222: {'path': 'temp/1742973901_1967448_1347447222_f469b849d1dc1db5ad9d19bfd1cd657f.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 = 21723967; (('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 = 21723967 group by h (('08', 32),) 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=21723967 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 (21723967) 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 (21723967) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26032025 21723967 Nombre de photos uploadées : 32 / 23040 (0%) 26032025 21723967 Nombre de photos taguées (types de déchets): 0 / 32 (0%) 26032025 21723967 Nombre de photos taguées (volume) : 0 / 32 (0%) [{'photo_id': 1347446150, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/bcfe3487cb6aca6efcfc330cd0db262f.jpg', 'username': None, 'uploaded_at': 1742973434, 'text': 'image_26032025_08_15_14_010138m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1347446145, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/273f95bae69e38e114f226c7df079811.jpg', 'username': None, 'uploaded_at': 1742973434, 'text': 'image_26032025_08_15_24_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347446142, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/591f84d056b489ac265d06d7ca3c6069.jpg', 'username': None, 'uploaded_at': 1742973434, 'text': 'image_26032025_08_15_34_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347446138, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/62c2848f523f2bde5ee7734834004431.jpg', 'username': None, 'uploaded_at': 1742973434, 'text': 'image_26032025_08_15_44_009124m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ???????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0013651847839355469 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21723967, '2025-03-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1689284,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023680686950683594 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= 1689284 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1689284, 'dashboard_run_id': 1697696, 'mtr_portfolio_id': 21721639, 'dashboard_result_id': 9632436, '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_P21721639_26-03-2025_07_49_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21721688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21721689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21721690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21721691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21721692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21721693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21721694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21721695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21721696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21721697, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21721698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21721699, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1697696, 'mtr_portfolio_id': 21722303, 'dashboard_result_id': 9632437, '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_P21722303_26-03-2025_08_05_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21722328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21722329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21722330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21722331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21722332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21722333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21722334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21722335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21722336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21722337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21722338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21722339, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1697696, 'mtr_portfolio_id': 21722992, 'dashboard_result_id': 9632438, '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_P21722992_26-03-2025_08_18_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21722994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21722995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21722996, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21722997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21722998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21722999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21723000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21723001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21723002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21723003, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21723004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21723005, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1697696, 'mtr_portfolio_id': 21723967, 'dashboard_result_id': 9632439, '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_P21723967_26-03-2025_08_23_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21723968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21723969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21723970, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21723971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21723972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21723973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21723974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21723975, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21723976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21723977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21723978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21723979, '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 = 21721639 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': 2691955, 'mtr_portfolio_id': 21721639, 'created_at': datetime.datetime(2025, 3, 26, 7, 49), 'result': '0.041839463060911346', 'result_long': None, 'result_double': None}] Qualite : 0.041839463060911346 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21721639 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21721639_26-03-2025_07_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21721639 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_P21721639_26-03-2025_07_49_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21721688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21721689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21721690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21721691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21721692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21721693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21721694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21721695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21721696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21721697, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21721698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21721699, 'pht': 3726}}" where mtr_portfolio_id = 21721639 and dashboard_run_id = 1697696 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`=21721639 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9632436, 0.041839463060911346, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21721639_26-03-2025_07_49_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21721688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21721689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21721690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21721691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21721692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21721693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21721694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21721695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21721696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21721697, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21721698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21721699, '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 = 21722303 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': 2692002, 'mtr_portfolio_id': 21722303, 'created_at': datetime.datetime(2025, 3, 26, 8, 5), 'result': '0.03732429601324408', 'result_long': None, 'result_double': None}] Qualite : 0.03732429601324408 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21722303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21722303_26-03-2025_08_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21722303 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_P21722303_26-03-2025_08_05_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21722328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21722329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21722330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21722331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21722332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21722333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21722334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21722335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21722336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21722337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21722338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21722339, 'pht': 3726}}" where mtr_portfolio_id = 21722303 and dashboard_run_id = 1697696 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`=21722303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9632437, 0.03732429601324408, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21722303_26-03-2025_08_05_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21722328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21722329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21722330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21722331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21722332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21722333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21722334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21722335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21722336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21722337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21722338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21722339, '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 = 21722992 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': 2692069, 'mtr_portfolio_id': 21722992, 'created_at': datetime.datetime(2025, 3, 26, 8, 18, 33), 'result': '0.040867470220811324', 'result_long': None, 'result_double': None}] Qualite : 0.040867470220811324 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21722992 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21722992_26-03-2025_08_18_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21722992 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_P21722992_26-03-2025_08_18_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21722994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21722995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21722996, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21722997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21722998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21722999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21723000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21723001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21723002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21723003, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21723004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21723005, 'pht': 3726}}" where mtr_portfolio_id = 21722992 and dashboard_run_id = 1697696 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`=21722992 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9632438, 0.040867470220811324, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21722992_26-03-2025_08_18_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21722994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21722995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21722996, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21722997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21722998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21722999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21723000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21723001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21723002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21723003, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21723004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21723005, '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 = 21723967 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': 2692125, 'mtr_portfolio_id': 21723967, 'created_at': datetime.datetime(2025, 3, 26, 8, 25, 1), 'result': '0.05967929892238344', 'result_long': None, 'result_double': None}] Qualite : 0.05967929892238344 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21723967 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21723967_26-03-2025_08_25_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21723967 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_P21723967_26-03-2025_08_25_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21723968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21723969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21723970, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21723971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21723972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21723973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21723974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21723975, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21723976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21723977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21723978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21723979, 'pht': 3726}}" where mtr_portfolio_id = 21723967 and dashboard_run_id = 1697696 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`=21723967 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9632439, 0.05967929892238344, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21723967_26-03-2025_08_25_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21723968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21723969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21723970, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21723971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21723972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21723973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21723974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21723975, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21723976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21723977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21723978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21723979, '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 (21721639,21722303,21722992,21723967) result : ((1347437435,), (1347437473,), (1347437638,), (1347437649,), (1347437658,), (1347437663,), (1347437672,), (1347437676,), (1347437747,), (1347437771,), (1347437797,), (1347437824,), (1347437854,), (1347437988,), (1347438038,), (1347438144,), (1347438168,), (1347438214,), (1347438371,), (1347438409,), (1347438424,), (1347438442,), (1347438449,), (1347438513,), (1347438611,), (1347438616,), (1347438654,), (1347438680,), (1347438779,), (1347438784,), (1347438788,), (1347438792,), (1347438797,), (1347438803,), (1347438838,), (1347438843,), (1347438848,), (1347438853,), (1347438864,), (1347438871,), (1347439083,), (1347439116,), (1347439142,), (1347439186,), (1347439218,), (1347439296,), (1347439302,), (1347439305,), (1347439312,), (1347439319,), (1347439330,), (1347439364,), (1347439370,), (1347439375,), (1347439382,), (1347439426,), (1347439432,), (1347439437,), (1347439449,), (1347439650,), (1347439653,), (1347439661,), (1347439670,), (1347439683,), (1347439692,), (1347439727,), (1347439738,), (1347439745,), (1347439754,), (1347439795,), (1347439799,), (1347439803,), (1347439812,), (1347439820,), (1347440049,), (1347439994,), (1347440007,), (1347440014,), (1347440035,), (1347440043,), (1347440090,), (1347440098,), (1347440110,), (1347440124,), (1347440294,), (1347440303,), (1347440313,), (1347440320,), (1347440481,), (1347440489,), (1347440495,), (1347440529,), (1347440586,), (1347440591,), (1347440599,), (1347440609,), (1347440614,), (1347440621,), (1347440656,), (1347440662,), (1347440668,), (1347440673,), (1347440679,), (1347440684,), (1347440734,), (1347440736,), (1347440746,), (1347440752,), (1347440822,), (1347440827,), (1347440832,), (1347440839,), (1347440879,), (1347440886,), (1347440892,), (1347440905,), (1347440921,), (1347440936,), (1347440967,), (1347440972,), (1347440978,), (1347441026,), (1347441033,), (1347441039,), (1347441051,), (1347441058,), (1347441066,), (1347441266,), (1347441272,), (1347441289,), (1347441339,), (1347441343,), (1347441346,), (1347441352,), (1347441358,), (1347441363,), (1347442047,), (1347442094,), (1347442142,), (1347442191,), (1347442240,), (1347442779,), (1347442677,), (1347442707,), (1347442733,), (1347442761,), (1347442980,), (1347442985,), (1347443003,), (1347443030,), (1347443551,), (1347443576,), (1347443620,), (1347443656,), (1347443903,), (1347443906,), (1347443908,), (1347443912,), (1347443958,), (1347444091,), (1347444101,), (1347444112,), (1347444128,), (1347444141,), (1347444152,), (1347444303,), (1347444329,), (1347444339,), (1347444545,), (1347444550,), (1347444560,), (1347444566,), (1347444571,), (1347444716,), (1347444720,), (1347444724,), (1347444727,), (1347444731,), (1347444737,), (1347444845,), (1347444868,), (1347444892,), (1347445100,), (1347445104,), (1347445111,), (1347445125,), (1347445157,), (1347445193,), (1347445407,), (1347445410,), (1347445415,), (1347445420,), (1347445427,), (1347445471,), (1347445494,), (1347445499,), (1347445507,), (1347445516,), (1347445632,), (1347445636,), (1347445637,), (1347445806,), (1347445814,), (1347445821,), (1347445835,), (1347445845,), (1347445852,), (1347446045,), (1347446056,), (1347446065,), (1347446081,), (1347446086,), (1347446203,), (1347446138,), (1347446142,), (1347446145,), (1347446150,), (1347446258,), (1347446261,), (1347446364,), (1347446392,), (1347446418,), (1347446446,), (1347446580,), (1347446589,), (1347446592,), (1347446598,), (1347446649,), (1347446656,), (1347446751,), (1347446753,), (1347446754,), (1347447006,), (1347447026,), (1347447035,), (1347447182,), (1347447205,), (1347447222,), (1347447225,), (1347447241,), (1347447251,), (1347447298,), (1347447358,), (1347447366,), (1347447399,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26032025': {'nb_upload': 32, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21723967]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347447399, 1347447366, 1347447358, 1347447298, 1347447251, 1347447241, 1347447225, 1347447222, 1347447205, 1347447182] map_info['map_portfolio_photo'] : {21723967: [1347447399, 1347447366, 1347447358, 1347447298, 1347447251, 1347447241, 1347447225, 1347447222, 1347447205, 1347447182, 1347447035, 1347447026, 1347447006, 1347446754, 1347446753, 1347446751, 1347446656, 1347446649, 1347446598, 1347446592, 1347446589, 1347446580, 1347446446, 1347446418, 1347446392, 1347446364, 1347446261, 1347446258, 1347446150, 1347446145, 1347446142, 1347446138]} final : True mtd_id 4302 list_pids : [1347447399, 1347447366, 1347447358, 1347447298, 1347447251, 1347447241, 1347447225, 1347447222, 1347447205, 1347447182] Looping around the photos to save general results len do output : 1 /21723967Didn'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, '2692125') ('4302', '21723967', '1347447399', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447366', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447358', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447298', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447251', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447241', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447225', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447222', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447205', None, None, None, None, None, '2692125') ('4302', None, None, None, None, None, None, None, '2692125') ('4302', '21723967', '1347447182', None, None, None, None, None, '2692125') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21723967', 'None', None, None, None, None, '2692125'), ('4302', '21723967', '1347447399', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447366', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447358', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447298', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447251', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447241', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447225', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447222', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447205', None, None, None, None, None, '2692125'), ('4302', '21723967', '1347447182', None, None, None, None, None, '2692125')] time used for this insertion : 0.012833356857299805 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33939361572265625 time spend to save output : 0.013048410415649414 total time spend for step 5 : 0.35244202613830566 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 (2692125) 2.22user 2.43system 0:09.69elapsed 48%CPU (0avgtext+0avgdata 157648maxresident)k 6928inputs+8192outputs (105major+63979minor)pagefaults 0swaps