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 : 2051869 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 (2742205) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2742205) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22251992 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2742205'] with mtr_portfolio_ids : ['22251992'] and first list_photo_ids : [] new path : /proc/2051869/ Name: python3 Umask: 0002 State: R (running) Tgid: 2051869 Ngid: 0 Pid: 2051869 PPid: 2051868 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2051869 NSpid: 2051869 NSpgid: 2049124 NSsid: 2049124 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97820 kB VmRSS: 97820 kB RssAnon: 59756 kB RssFile: 38064 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 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: 55 nonvoluntary_ctxt_switches: 94 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2051869', 'Ngid': '0', 'Pid': '2051869', 'PPid': '2051868', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2051869', 'NSpid': '2051869', 'NSpgid': '2049124', 'NSsid': '2049124', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97820 kB', 'VmRSS': '97820 kB', 'RssAnon': '59756 kB', 'RssFile': '38064 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 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': '55', 'nonvoluntary_ctxt_switches': '94'} ('datou_batch_current', '2051869', '1106928', '0', '1106928', '865676', '97820', b'', 'marlene', '2742205') 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 (22251992) 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 (2742205 ) ) 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 (22251992) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1351472997, 'portfolio_id': 22251992}, {'photo_id': 1351471626, 'portfolio_id': 22251992}, {'photo_id': 1351471427, 'portfolio_id': 22251992}, {'photo_id': 1351470953, 'portfolio_id': 22251992}, {'photo_id': 1351470923, 'portfolio_id': 22251992}, {'photo_id': 1351470893, 'portfolio_id': 22251992}, {'photo_id': 1351470868, 'portfolio_id': 22251992}, {'photo_id': 1351470837, 'portfolio_id': 22251992}, {'photo_id': 1351470623, 'portfolio_id': 22251992}, {'photo_id': 1351470579, 'portfolio_id': 22251992}, {'photo_id': 1351470552, 'portfolio_id': 22251992}, {'photo_id': 1351470533, 'portfolio_id': 22251992}, {'photo_id': 1351470488, 'portfolio_id': 22251992}, {'photo_id': 1351470171, 'portfolio_id': 22251992}, {'photo_id': 1351470144, 'portfolio_id': 22251992}, {'photo_id': 1351470069, 'portfolio_id': 22251992}, {'photo_id': 1351470046, 'portfolio_id': 22251992}, {'photo_id': 1351469709, 'portfolio_id': 22251992}, {'photo_id': 1351469650, 'portfolio_id': 22251992}, {'photo_id': 1351469611, 'portfolio_id': 22251992}, {'photo_id': 1351469558, 'portfolio_id': 22251992}, {'photo_id': 1351469542, 'portfolio_id': 22251992}, {'photo_id': 1351469479, 'portfolio_id': 22251992}, {'photo_id': 1351469318, 'portfolio_id': 22251992}, {'photo_id': 1351469315, 'portfolio_id': 22251992}, {'photo_id': 1351469293, 'portfolio_id': 22251992}, {'photo_id': 1351469269, 'portfolio_id': 22251992}, {'photo_id': 1351469243, 'portfolio_id': 22251992}, {'photo_id': 1351468903, 'portfolio_id': 22251992}, {'photo_id': 1351468838, 'portfolio_id': 22251992}, {'photo_id': 1351468759, 'portfolio_id': 22251992}, {'photo_id': 1351468693, 'portfolio_id': 22251992}, {'photo_id': 1351468654, 'portfolio_id': 22251992}, {'photo_id': 1351468616, 'portfolio_id': 22251992}, {'photo_id': 1351468085, 'portfolio_id': 22251992}, {'photo_id': 1351468027, 'portfolio_id': 22251992}, {'photo_id': 1351467997, 'portfolio_id': 22251992}, {'photo_id': 1351467943, 'portfolio_id': 22251992}, {'photo_id': 1351467389, 'portfolio_id': 22251992}, {'photo_id': 1351467353, 'portfolio_id': 22251992}, {'photo_id': 1351467311, 'portfolio_id': 22251992}, {'photo_id': 1351467285, 'portfolio_id': 22251992}, {'photo_id': 1351467222, 'portfolio_id': 22251992}, {'photo_id': 1351467201, 'portfolio_id': 22251992}, {'photo_id': 1351466852, 'portfolio_id': 22251992}, {'photo_id': 1351466806, 'portfolio_id': 22251992}, {'photo_id': 1351466666, 'portfolio_id': 22251992}, {'photo_id': 1351466565, 'portfolio_id': 22251992}, {'photo_id': 1351466550, 'portfolio_id': 22251992}, {'photo_id': 1351466527, 'portfolio_id': 22251992}, {'photo_id': 1351466425, 'portfolio_id': 22251992}, {'photo_id': 1351466415, 'portfolio_id': 22251992}, {'photo_id': 1351466411, 'portfolio_id': 22251992}] map_portfolio_id_photo_id: {22251992: [1351472997, 1351471626, 1351471427, 1351470953, 1351470923, 1351470893, 1351470868, 1351470837, 1351470623, 1351470579, 1351470552, 1351470533, 1351470488, 1351470171, 1351470144, 1351470069, 1351470046, 1351469709, 1351469650, 1351469611, 1351469558, 1351469542, 1351469479, 1351469318, 1351469315, 1351469293, 1351469269, 1351469243, 1351468903, 1351468838, 1351468759, 1351468693, 1351468654, 1351468616, 1351468085, 1351468027, 1351467997, 1351467943, 1351467389, 1351467353, 1351467311, 1351467285, 1351467222, 1351467201, 1351466852, 1351466806, 1351466666, 1351466565, 1351466550, 1351466527, 1351466425, 1351466415, 1351466411]} ##### 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.014441251754760742 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Apr 11 06:14:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22251992) 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 : 22251992 get user id for portfolio 22251992 get sub ptf for main ptf 22251992, type 3726 and hashtags ['cartonnette', 'Teint_Dans_La_Masse', 'Carton_brun', 'metal', 'kraft', 'flou', 'Carton_gris', 'environnement', 'papier', 'autre_refus', 'mal_croppe', 'plastique'] 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`=22251992 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','Carton_brun','metal','kraft','flou','Carton_gris','environnement','papier','autre_refus','mal_croppe','plastique')) 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`=22251992 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','Carton_brun','metal','kraft','flou','Carton_gris','environnement','papier','autre_refus','mal_croppe','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 22251992, 'sub_port_id': 22252019, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720893, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 4, 59)}, 'Carton_gris': {'main_port_id': 22251992, 'sub_port_id': 22252020, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720894, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 4, 59)}, 'papier': {'main_port_id': 22251992, 'sub_port_id': 22252021, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720895, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 4, 59)}, 'plastique': {'main_port_id': 22251992, 'sub_port_id': 22252022, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720896, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 4, 59)}, 'cartonnette': {'main_port_id': 22251992, 'sub_port_id': 22252023, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720897, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22251992, 'sub_port_id': 22252024, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720898, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 4, 59)}, 'environnement': {'main_port_id': 22251992, 'sub_port_id': 22252025, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720899, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 4, 59)}, 'kraft': {'main_port_id': 22251992, 'sub_port_id': 22252026, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720900, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 4, 59)}, 'flou': {'main_port_id': 22251992, 'sub_port_id': 22252027, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720901, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 4, 59)}, 'Carton_brun': {'main_port_id': 22251992, 'sub_port_id': 22252028, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720902, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 4, 59)}, 'metal': {'main_port_id': 22251992, 'sub_port_id': 22252029, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720903, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 4, 59)}, 'autre_refus': {'main_port_id': 22251992, 'sub_port_id': 22252030, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720904, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22252019 , 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=22251992 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 (22252019) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22251992) result : ((1351466411,), (1351466415,), (1351466425,), (1351466527,), (1351466550,), (1351466565,), (1351466666,), (1351466806,), (1351466852,), (1351467201,), (1351467222,), (1351467285,), (1351467311,), (1351467353,), (1351467389,), (1351467943,), (1351467997,), (1351468027,), (1351468085,), (1351468616,), (1351468654,), (1351468693,), (1351468759,), (1351468838,), (1351468903,), (1351469243,), (1351469269,), (1351469293,), (1351469315,), (1351469318,), (1351469479,), (1351469542,), (1351469558,), (1351469611,), (1351469650,), (1351469709,), (1351470046,), (1351470069,), (1351470144,), (1351470171,), (1351470488,), (1351470533,), (1351470552,), (1351470579,), (1351470623,), (1351470837,), (1351470868,), (1351470893,), (1351470923,), (1351470953,), (1351471427,), (1351471626,), (1351472997,)) 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 22252020 , 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=22251992 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 (22252020) result : ((1351469412,), (1351469678,), (1351470933,), (1351470935,), (1351470936,), (1351470938,), (1351470972,), (1351470973,), (1351470974,), (1351470975,), (1351472785,), (1351472787,), (1351473464,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22251992) result : ((1351466411,), (1351466415,), (1351466425,), (1351466527,), (1351466550,), (1351466565,), (1351466666,), (1351466806,), (1351466852,), (1351467201,), (1351467222,), (1351467285,), (1351467311,), (1351467353,), (1351467389,), (1351467943,), (1351467997,), (1351468027,), (1351468085,), (1351468616,), (1351468654,), (1351468693,), (1351468759,), (1351468838,), (1351468903,), (1351469243,), (1351469269,), (1351469293,), (1351469315,), (1351469318,), (1351469479,), (1351469542,), (1351469558,), (1351469611,), (1351469650,), (1351469709,), (1351470046,), (1351470069,), (1351470144,), (1351470171,), (1351470488,), (1351470533,), (1351470552,), (1351470579,), (1351470623,), (1351470837,), (1351470868,), (1351470893,), (1351470923,), (1351470953,), (1351471427,), (1351471626,), (1351472997,)) 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 22252021 , 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=22251992 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 (22252021) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22251992) result : ((1351466411,), (1351466415,), (1351466425,), (1351466527,), (1351466550,), (1351466565,), (1351466666,), (1351466806,), (1351466852,), (1351467201,), (1351467222,), (1351467285,), (1351467311,), (1351467353,), (1351467389,), (1351467943,), (1351467997,), (1351468027,), (1351468085,), (1351468616,), (1351468654,), (1351468693,), (1351468759,), (1351468838,), (1351468903,), (1351469243,), (1351469269,), (1351469293,), (1351469315,), (1351469318,), (1351469479,), (1351469542,), (1351469558,), (1351469611,), (1351469650,), (1351469709,), (1351470046,), (1351470069,), (1351470144,), (1351470171,), (1351470488,), (1351470533,), (1351470552,), (1351470579,), (1351470623,), (1351470837,), (1351470868,), (1351470893,), (1351470923,), (1351470953,), (1351471427,), (1351471626,), (1351472997,)) 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 22252022 , 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=22251992 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 (22252022) result : ((1351467857,), (1351469284,), (1351469444,), (1351469721,), (1351469722,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22251992) result : ((1351466411,), (1351466415,), (1351466425,), (1351466527,), (1351466550,), (1351466565,), (1351466666,), (1351466806,), (1351466852,), (1351467201,), (1351467222,), (1351467285,), (1351467311,), (1351467353,), (1351467389,), (1351467943,), (1351467997,), (1351468027,), (1351468085,), (1351468616,), (1351468654,), (1351468693,), (1351468759,), (1351468838,), (1351468903,), (1351469243,), (1351469269,), (1351469293,), (1351469315,), (1351469318,), (1351469479,), (1351469542,), (1351469558,), (1351469611,), (1351469650,), (1351469709,), (1351470046,), (1351470069,), (1351470144,), (1351470171,), (1351470488,), (1351470533,), (1351470552,), (1351470579,), (1351470623,), (1351470837,), (1351470868,), (1351470893,), (1351470923,), (1351470953,), (1351471427,), (1351471626,), (1351472997,)) 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 22252023 , 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=22251992 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 (22252023) result : ((1351469422,), (1351469689,), (1351470946,), (1351470949,), (1351470951,), (1351470979,), (1351472584,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22251992) result : ((1351466411,), (1351466415,), (1351466425,), (1351466527,), (1351466550,), (1351466565,), (1351466666,), (1351466806,), (1351466852,), (1351467201,), (1351467222,), (1351467285,), (1351467311,), (1351467353,), (1351467389,), (1351467943,), (1351467997,), (1351468027,), (1351468085,), (1351468616,), (1351468654,), (1351468693,), (1351468759,), (1351468838,), (1351468903,), (1351469243,), (1351469269,), (1351469293,), (1351469315,), (1351469318,), (1351469479,), (1351469542,), (1351469558,), (1351469611,), (1351469650,), (1351469709,), (1351470046,), (1351470069,), (1351470144,), (1351470171,), (1351470488,), (1351470533,), (1351470552,), (1351470579,), (1351470623,), (1351470837,), (1351470868,), (1351470893,), (1351470923,), (1351470953,), (1351471427,), (1351471626,), (1351472997,)) 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 22252024 , 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=22251992 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 (22252024) result : ((1351467842,), (1351469266,), (1351469656,), (1351469658,), (1351469660,), (1351469661,), (1351469662,), (1351469663,), (1351469664,), (1351469665,), (1351472569,), (1351472571,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22251992) result : ((1351466411,), (1351466415,), (1351466425,), (1351466527,), (1351466550,), (1351466565,), (1351466666,), (1351466806,), (1351466852,), (1351467201,), (1351467222,), (1351467285,), (1351467311,), (1351467353,), (1351467389,), (1351467943,), (1351467997,), (1351468027,), (1351468085,), (1351468616,), (1351468654,), (1351468693,), (1351468759,), (1351468838,), (1351468903,), (1351469243,), (1351469269,), (1351469293,), (1351469315,), (1351469318,), (1351469479,), (1351469542,), (1351469558,), (1351469611,), (1351469650,), (1351469709,), (1351470046,), (1351470069,), (1351470144,), (1351470171,), (1351470488,), (1351470533,), (1351470552,), (1351470579,), (1351470623,), (1351470837,), (1351470868,), (1351470893,), (1351470923,), (1351470953,), (1351471427,), (1351471626,), (1351472997,)) 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 22252025 , 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=22251992 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 (22252025) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22251992) result : ((1351466411,), (1351466415,), (1351466425,), (1351466527,), (1351466550,), (1351466565,), (1351466666,), (1351466806,), (1351466852,), (1351467201,), (1351467222,), (1351467285,), (1351467311,), (1351467353,), (1351467389,), (1351467943,), (1351467997,), (1351468027,), (1351468085,), (1351468616,), (1351468654,), (1351468693,), (1351468759,), (1351468838,), (1351468903,), (1351469243,), (1351469269,), (1351469293,), (1351469315,), (1351469318,), (1351469479,), (1351469542,), (1351469558,), (1351469611,), (1351469650,), (1351469709,), (1351470046,), (1351470069,), (1351470144,), (1351470171,), (1351470488,), (1351470533,), (1351470552,), (1351470579,), (1351470623,), (1351470837,), (1351470868,), (1351470893,), (1351470923,), (1351470953,), (1351471427,), (1351471626,), (1351472997,)) 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 22252026 , 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=22251992 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 (22252026) result : ((1351469463,), (1351469465,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22251992) result : ((1351466411,), (1351466415,), (1351466425,), (1351466527,), (1351466550,), (1351466565,), (1351466666,), (1351466806,), (1351466852,), (1351467201,), (1351467222,), (1351467285,), (1351467311,), (1351467353,), (1351467389,), (1351467943,), (1351467997,), (1351468027,), (1351468085,), (1351468616,), (1351468654,), (1351468693,), (1351468759,), (1351468838,), (1351468903,), (1351469243,), (1351469269,), (1351469293,), (1351469315,), (1351469318,), (1351469479,), (1351469542,), (1351469558,), (1351469611,), (1351469650,), (1351469709,), (1351470046,), (1351470069,), (1351470144,), (1351470171,), (1351470488,), (1351470533,), (1351470552,), (1351470579,), (1351470623,), (1351470837,), (1351470868,), (1351470893,), (1351470923,), (1351470953,), (1351471427,), (1351471626,), (1351472997,)) 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 22252027 , 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=22251992 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 (22252027) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22251992) result : ((1351466411,), (1351466415,), (1351466425,), (1351466527,), (1351466550,), (1351466565,), (1351466666,), (1351466806,), (1351466852,), (1351467201,), (1351467222,), (1351467285,), (1351467311,), (1351467353,), (1351467389,), (1351467943,), (1351467997,), (1351468027,), (1351468085,), (1351468616,), (1351468654,), (1351468693,), (1351468759,), (1351468838,), (1351468903,), (1351469243,), (1351469269,), (1351469293,), (1351469315,), (1351469318,), (1351469479,), (1351469542,), (1351469558,), (1351469611,), (1351469650,), (1351469709,), (1351470046,), (1351470069,), (1351470144,), (1351470171,), (1351470488,), (1351470533,), (1351470552,), (1351470579,), (1351470623,), (1351470837,), (1351470868,), (1351470893,), (1351470923,), (1351470953,), (1351471427,), (1351471626,), (1351472997,)) 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 22252028 , 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=22251992 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 (22252028) result : ((1351469277,), (1351469433,), (1351469703,), (1351469704,), (1351470961,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22251992) result : ((1351466411,), (1351466415,), (1351466425,), (1351466527,), (1351466550,), (1351466565,), (1351466666,), (1351466806,), (1351466852,), (1351467201,), (1351467222,), (1351467285,), (1351467311,), (1351467353,), (1351467389,), (1351467943,), (1351467997,), (1351468027,), (1351468085,), (1351468616,), (1351468654,), (1351468693,), (1351468759,), (1351468838,), (1351468903,), (1351469243,), (1351469269,), (1351469293,), (1351469315,), (1351469318,), (1351469479,), (1351469542,), (1351469558,), (1351469611,), (1351469650,), (1351469709,), (1351470046,), (1351470069,), (1351470144,), (1351470171,), (1351470488,), (1351470533,), (1351470552,), (1351470579,), (1351470623,), (1351470837,), (1351470868,), (1351470893,), (1351470923,), (1351470953,), (1351471427,), (1351471626,), (1351472997,)) 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 22252029 , 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=22251992 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 (22252029) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22251992) result : ((1351466411,), (1351466415,), (1351466425,), (1351466527,), (1351466550,), (1351466565,), (1351466666,), (1351466806,), (1351466852,), (1351467201,), (1351467222,), (1351467285,), (1351467311,), (1351467353,), (1351467389,), (1351467943,), (1351467997,), (1351468027,), (1351468085,), (1351468616,), (1351468654,), (1351468693,), (1351468759,), (1351468838,), (1351468903,), (1351469243,), (1351469269,), (1351469293,), (1351469315,), (1351469318,), (1351469479,), (1351469542,), (1351469558,), (1351469611,), (1351469650,), (1351469709,), (1351470046,), (1351470069,), (1351470144,), (1351470171,), (1351470488,), (1351470533,), (1351470552,), (1351470579,), (1351470623,), (1351470837,), (1351470868,), (1351470893,), (1351470923,), (1351470953,), (1351471427,), (1351471626,), (1351472997,)) 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 22252030 , 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=22251992 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 (22252030) result : ((1351469272,), (1351470919,), (1351470963,), (1351472677,), (1351472678,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22251992) result : ((1351466411,), (1351466415,), (1351466425,), (1351466527,), (1351466550,), (1351466565,), (1351466666,), (1351466806,), (1351466852,), (1351467201,), (1351467222,), (1351467285,), (1351467311,), (1351467353,), (1351467389,), (1351467943,), (1351467997,), (1351468027,), (1351468085,), (1351468616,), (1351468654,), (1351468693,), (1351468759,), (1351468838,), (1351468903,), (1351469243,), (1351469269,), (1351469293,), (1351469315,), (1351469318,), (1351469479,), (1351469542,), (1351469558,), (1351469611,), (1351469650,), (1351469709,), (1351470046,), (1351470069,), (1351470144,), (1351470171,), (1351470488,), (1351470533,), (1351470552,), (1351470579,), (1351470623,), (1351470837,), (1351470868,), (1351470893,), (1351470923,), (1351470953,), (1351471427,), (1351471626,), (1351472997,)) 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`=22251992 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','Carton_brun','metal','kraft','flou','Carton_gris','environnement','papier','autre_refus','mal_croppe','plastique')) 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`=22251992 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','Carton_brun','metal','kraft','flou','Carton_gris','environnement','papier','autre_refus','mal_croppe','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 22251992, 'sub_port_id': 22252031, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720905, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 5, 1)}, 'Carton_gris': {'main_port_id': 22251992, 'sub_port_id': 22252032, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720906, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 5, 1)}, 'papier': {'main_port_id': 22251992, 'sub_port_id': 22252033, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720907, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 5, 1)}, 'plastique': {'main_port_id': 22251992, 'sub_port_id': 22252034, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720908, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 5, 1)}, 'cartonnette': {'main_port_id': 22251992, 'sub_port_id': 22252035, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720909, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 5, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22251992, 'sub_port_id': 22252036, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720910, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 5, 1)}, 'environnement': {'main_port_id': 22251992, 'sub_port_id': 22252037, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720911, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 5, 1)}, 'kraft': {'main_port_id': 22251992, 'sub_port_id': 22252038, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720912, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 5, 1)}, 'flou': {'main_port_id': 22251992, 'sub_port_id': 22252039, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720913, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 5, 1)}, 'Carton_brun': {'main_port_id': 22251992, 'sub_port_id': 22252040, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720914, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 5, 1)}, 'metal': {'main_port_id': 22251992, 'sub_port_id': 22252041, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720915, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 5, 1)}, 'autre_refus': {'main_port_id': 22251992, 'sub_port_id': 22252042, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14720916, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 5, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252031,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252019 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252032,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252020 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252033,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252021 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252034,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252022 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252035,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252023 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252036,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252024 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252037,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252025 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252038,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252026 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252039,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252027 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252040,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252028 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252041,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252029 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252042,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252030 lien utilise dans velours : https://www.fotonower.com/velours/22252031,22252032,22252033,22252034,22252035,22252036,22252037,22252038,22252039,22252040,22252041,22252042?tags=mal_croppe,Carton_gris,papier,plastique,cartonnette,Teint_Dans_La_Masse,environnement,kraft,flou,Carton_brun,metal,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22251992]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351472997] map_info['map_portfolio_photo'] : {22251992: [1351472997, 1351471626, 1351471427, 1351470953, 1351470923, 1351470893, 1351470868, 1351470837, 1351470623, 1351470579, 1351470552, 1351470533, 1351470488, 1351470171, 1351470144, 1351470069, 1351470046, 1351469709, 1351469650, 1351469611, 1351469558, 1351469542, 1351469479, 1351469318, 1351469315, 1351469293, 1351469269, 1351469243, 1351468903, 1351468838, 1351468759, 1351468693, 1351468654, 1351468616, 1351468085, 1351468027, 1351467997, 1351467943, 1351467389, 1351467353, 1351467311, 1351467285, 1351467222, 1351467201, 1351466852, 1351466806, 1351466666, 1351466565, 1351466550, 1351466527, 1351466425, 1351466415, 1351466411]} final : False mtd_id 4302 list_pids : [1351472997] Looping around the photos to save general results len do output : 1 /22251992. 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, '2742205') ('4302', '22251992', '1351472997', None, None, None, None, None, '2742205') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '22251992', "{'mal_croppe': 22252019, 'Carton_gris': 22252020, 'papier': 22252021, 'plastique': 22252022, 'cartonnette': 22252023, 'Teint_Dans_La_Masse': 22252024, 'environnement': 22252025, 'kraft': 22252026, 'flou': 22252027, 'Carton_brun': 22252028, 'metal': 22252029, 'autre_refus': 22252030}", None, None, None, None, '2742205'), ('4302', '22251992', '1351472997', None, None, None, None, None, '2742205')] time used for this insertion : 0.012485504150390625 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.662980556488037 time spend to save output : 0.012733697891235352 total time spend for step 1 : 1.6757142543792725 step2:final Fri Apr 11 06:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22251992) 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 22251992 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351466425,1351466415,1351466411,1351466852,1351466806,1351466666,1351466565,1351466550,1351466527,1351467389,1351467353,1351467311,1351467285,1351467222,1351467201,1351468085,1351468027,1351467997,1351467943,1351468903,1351468838,1351468759,1351468693,1351468654,1351468616,1351469318,1351469315,1351469293,1351469269,1351469243,1351469709,1351469650,1351469611,1351469558,1351469542,1351469479,1351470171,1351470144,1351470069,1351470046,1351470623,1351470579,1351470552,1351470533,1351470488,1351470953,1351470923,1351470893,1351470868,1351470837,1351471626,1351471427,1351472997); 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([22251992]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351472997: ('0.04650126136997219',)} new output for save of step final : {1351472997: ('0.04650126136997219',)} [1351472997] map_info['map_portfolio_photo'] : {22251992: [1351472997, 1351471626, 1351471427, 1351470953, 1351470923, 1351470893, 1351470868, 1351470837, 1351470623, 1351470579, 1351470552, 1351470533, 1351470488, 1351470171, 1351470144, 1351470069, 1351470046, 1351469709, 1351469650, 1351469611, 1351469558, 1351469542, 1351469479, 1351469318, 1351469315, 1351469293, 1351469269, 1351469243, 1351468903, 1351468838, 1351468759, 1351468693, 1351468654, 1351468616, 1351468085, 1351468027, 1351467997, 1351467943, 1351467389, 1351467353, 1351467311, 1351467285, 1351467222, 1351467201, 1351466852, 1351466806, 1351466666, 1351466565, 1351466550, 1351466527, 1351466425, 1351466415, 1351466411]} final : False mtd_id 4302 list_pids : [1351472997] Looping around the photos to save general results len do output : 1 /1351472997.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, '2742205') ('4302', '22251992', '1351472997', None, None, None, None, None, '2742205') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '22251992', '1351472997', '0.04650126136997219', None, None, None, None, '2742205')] time used for this insertion : 0.016512155532836914 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07201623916625977 time spend to save output : 0.016779184341430664 total time spend for step 2 : 0.08879542350769043 step3:velours_tree Fri Apr 11 06:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22251992: [{'mal_croppe': 22252019, 'Carton_gris': 22252020, 'papier': 22252021, 'plastique': 22252022, 'cartonnette': 22252023, 'Teint_Dans_La_Masse': 22252024, 'environnement': 22252025, 'kraft': 22252026, 'flou': 22252027, 'Carton_brun': 22252028, 'metal': 22252029, 'autre_refus': 22252030}]} input_args_next_step : {22251992: ()} output_args : {22251992: [{'mal_croppe': 22252019, 'Carton_gris': 22252020, 'papier': 22252021, 'plastique': 22252022, 'cartonnette': 22252023, 'Teint_Dans_La_Masse': 22252024, 'environnement': 22252025, 'kraft': 22252026, 'flou': 22252027, 'Carton_brun': 22252028, 'metal': 22252029, 'autre_refus': 22252030}]} args : 22251992 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'mal_croppe': 22252019, 'Carton_gris': 22252020, 'papier': 22252021, 'plastique': 22252022, 'cartonnette': 22252023, 'Teint_Dans_La_Masse': 22252024, 'environnement': 22252025, 'kraft': 22252026, 'flou': 22252027, 'Carton_brun': 22252028, 'metal': 22252029, 'autre_refus': 22252030},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22251992) 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([22251992]) 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.31677842140197754 time spend to save output : 5.435943603515625e-05 total time spend for step 3 : 0.3168327808380127 step4:send_mail_cod Fri Apr 11 06:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1351472997: ('0.04650126136997219',)} input_args_next_step : {1351472997: ()} output_args : {1351472997: ('0.04650126136997219',)} args : 1351472997 depend.output_id : 0 complete output_args for input 3 : {22251992: [{'mal_croppe': 22252019, 'Carton_gris': 22252020, 'papier': 22252021, 'plastique': 22252022, 'cartonnette': 22252023, 'Teint_Dans_La_Masse': 22252024, 'environnement': 22252025, 'kraft': 22252026, 'flou': 22252027, 'Carton_brun': 22252028, 'metal': 22252029, 'autre_refus': 22252030}]} input_args_next_step : {1351472997: ('0.04650126136997219',), 22251992: ()} output_args : {22251992: [{'mal_croppe': 22252019, 'Carton_gris': 22252020, 'papier': 22252021, 'plastique': 22252022, 'cartonnette': 22252023, 'Teint_Dans_La_Masse': 22252024, 'environnement': 22252025, 'kraft': 22252026, 'flou': 22252027, 'Carton_brun': 22252028, 'metal': 22252029, 'autre_refus': 22252030}]} args : 22251992 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 :2, first value : ('0.04650126136997219',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22251992) 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 (1351472997) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351472997 download finish for photo 1351472997 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette222520191744344900/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P22251992_11-04-2025_06_15_00.pdf 22252019 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=22252019 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222520191744344900 22252022 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=22252022 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351467857: '1744344206_1277450_1351466425_533899e745a7f1f3700afde30b6f0b90_rle_crop_3756040643_0.png', 1351469284: '1744344326_1280211_1351468027_dd358ffcd38b8b5459d2ea9d11df6515_rle_crop_3756042450_0.png', 1351469444: '1744344311_1031823_1351468085_5aaf3d7f8ae90160854ba0ba47f5b345_rle_crop_3756043538_0.png', 1351469721: '1744344331_1032206_1351466806_d5e9b2a0745c52ec6db754544369ccdf_rle_crop_3756043837_0.png', 1351469722: '1744344331_1032206_1351466666_05a6a82c414a961fafe41c2063c3e7c9_rle_crop_3756043964_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/7b6f38232d442ea7ee77b6fc3fbe9a0a_14398660.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/d3a485bf09ead53dc3aa738a3f2639b7_88692141.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/21c2f19e82985e4a3083eda1c068f822_32306953.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/066041c0ac4b4fd29dc8ba01bb2215f4_7242346.png change filename to text .imagette222520221744344900/ imagette222520221744344900/1744344206_1277450_1351466425_533899e745a7f1f3700afde30b6f0b90_rle_crop_3756040643_0.png.png imagette222520221744344900/1744344331_1032206_1351466806_d5e9b2a0745c52ec6db754544369ccdf_rle_crop_3756043837_0.png.png imagette222520221744344900/1744344326_1280211_1351468027_dd358ffcd38b8b5459d2ea9d11df6515_rle_crop_3756042450_0.png.png imagette222520221744344900/1744344331_1032206_1351466666_05a6a82c414a961fafe41c2063c3e7c9_rle_crop_3756043964_0.png.png imagette222520221744344900/1744344311_1031823_1351468085_5aaf3d7f8ae90160854ba0ba47f5b345_rle_crop_3756043538_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/1b2c9427320b7096240eba3fe0ba9505_21804020.png imagette222520221744344900 22252023 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=22252023 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351469422: '1744344311_1031823_1351468085_5aaf3d7f8ae90160854ba0ba47f5b345_rle_crop_3756043540_0.png', 1351469689: '1744344331_1032206_1351466565_1612439acd0cd6ec3ceee1d3864acdf8_rle_crop_3756044133_0.png', 1351470946: '1744344566_1282194_1351469611_e0f93dee6efb8d8a5f15f5ab1ecb974c_rle_crop_3756046629_0.png', 1351470949: '1744344566_1282194_1351469558_863227720ed2c97a7eeaded68c3d3e58_rle_crop_3756047138_0.png', 1351470951: '1744344566_1282194_1351469542_5ff05a1c455b389121a5fa9980ce7be6_rle_crop_3756047159_0.png', 1351470979: '1744344572_1036200_1351469243_27db53bb991bfec48150da6195c8e45a_rle_crop_3756047253_0.png', 1351472584: '1744344685_1283521_1351470488_2b52ce032a79e033c5f34f48ac85cb11_rle_crop_3756047786_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/c5cceb7b3ab2fdfc46707d267158b62e_59023737.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/657f4c49629c9a1c77a2fe44c047cc48_95351762.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/c63f6a8d1fe517a17dc9a0fd086849fa_86931699.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/5bd0655681e62ada928df4550d2e655f_23055828.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/fe5e78ebdbc3d4f55f56aaeca8cf1f36_86693745.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/7e7e42024127f1ca5ac5bfc25d98eb48_66016482.png change filename to text .imagette222520231744344900/ imagette222520231744344900/1744344311_1031823_1351468085_5aaf3d7f8ae90160854ba0ba47f5b345_rle_crop_3756043540_0.png.png imagette222520231744344900/1744344566_1282194_1351469542_5ff05a1c455b389121a5fa9980ce7be6_rle_crop_3756047159_0.png.png imagette222520231744344900/1744344685_1283521_1351470488_2b52ce032a79e033c5f34f48ac85cb11_rle_crop_3756047786_0.png.png imagette222520231744344900/1744344566_1282194_1351469611_e0f93dee6efb8d8a5f15f5ab1ecb974c_rle_crop_3756046629_0.png.png imagette222520231744344900/1744344572_1036200_1351469243_27db53bb991bfec48150da6195c8e45a_rle_crop_3756047253_0.png.png imagette222520231744344900/1744344566_1282194_1351469558_863227720ed2c97a7eeaded68c3d3e58_rle_crop_3756047138_0.png.png imagette222520231744344900/1744344331_1032206_1351466565_1612439acd0cd6ec3ceee1d3864acdf8_rle_crop_3756044133_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ad4809e2e6fffe7356769c982331afca_88899836.png imagette222520231744344900 22252026 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=22252026 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351469463: '1744344311_1031823_1351467353_9f21abe840a7630c2dd7bf4883beb49d_rle_crop_3756043747_0.png', 1351469465: '1744344311_1031823_1351467311_716b9f56da48b575d020cb5272a14e59_rle_crop_3756043813_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/46dd5681fb40f4670b5af3f3eaac55a9_88541277.png change filename to text .imagette222520261744344900/ imagette222520261744344900/1744344311_1031823_1351467311_716b9f56da48b575d020cb5272a14e59_rle_crop_3756043813_0.png.png imagette222520261744344900/1744344311_1031823_1351467353_9f21abe840a7630c2dd7bf4883beb49d_rle_crop_3756043747_0.png.png imagette222520271744344901/ imagette222520291744344901/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/465491714fb78a3d9c245627b5352f7c_64893902.png imagette222520261744344900 22252027 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=22252027 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222520271744344901 22252029 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=22252029 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222520291744344901 22252030 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=22252030 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351469272: '1744344326_1280211_1351468027_dd358ffcd38b8b5459d2ea9d11df6515_rle_crop_3756042454_0.png', 1351470919: '1744344566_1282194_1351469542_5ff05a1c455b389121a5fa9980ce7be6_rle_crop_3756047163_0.png', 1351470963: '1744344572_1036200_1351469243_27db53bb991bfec48150da6195c8e45a_rle_crop_3756047252_0.png', 1351472677: '1744344692_1038265_1351470623_d7f79ad3cde7347a7bcf797f35b82a53_rle_crop_3756047800_0.png', 1351472678: '1744344692_1038265_1351470046_fcf7827bab7ceb4a034fabc2bf1c9a1a_rle_crop_3756047834_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e851d32c5c0ea96d600b0644154dee2c_83279841.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/c55088aed676c2d7cdd6ee04b841bec5_18449125.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/db7bf079bbd415632ccbff41783a5b52_30806362.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/87419a28bad1f9671c86406ab8aba424_54770023.png change filename to text .imagette222520301744344901/ imagette222520301744344901/1744344692_1038265_1351470623_d7f79ad3cde7347a7bcf797f35b82a53_rle_crop_3756047800_0.png.png imagette222520301744344901/1744344566_1282194_1351469542_5ff05a1c455b389121a5fa9980ce7be6_rle_crop_3756047163_0.png.png imagette222520301744344901/1744344692_1038265_1351470046_fcf7827bab7ceb4a034fabc2bf1c9a1a_rle_crop_3756047834_0.png.png imagette222520301744344901/1744344326_1280211_1351468027_dd358ffcd38b8b5459d2ea9d11df6515_rle_crop_3756042454_0.png.png imagette222520301744344901/1744344572_1036200_1351469243_27db53bb991bfec48150da6195c8e45a_rle_crop_3756047252_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b3764d3c642d4fcbf851f4dc3fa56cc8_77144992.png imagette222520301744344901 22252020 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=22252020 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351469412: '1744344311_1031823_1351467201_d3942ba5c925565bcf209aee82a66c8f_rle_crop_3756043970_0.png', 1351469678: '1744344331_1032206_1351466565_1612439acd0cd6ec3ceee1d3864acdf8_rle_crop_3756044136_0.png', 1351470933: '1744344566_1282194_1351469611_e0f93dee6efb8d8a5f15f5ab1ecb974c_rle_crop_3756046624_0.png', 1351470935: '1744344566_1282194_1351469558_863227720ed2c97a7eeaded68c3d3e58_rle_crop_3756047141_0.png', 1351470936: '1744344566_1282194_1351469558_863227720ed2c97a7eeaded68c3d3e58_rle_crop_3756047145_0.png', 1351470938: '1744344566_1282194_1351469542_5ff05a1c455b389121a5fa9980ce7be6_rle_crop_3756047162_0.png', 1351470972: '1744344572_1036200_1351469315_8d828fcd6e7d317fab03f784b9b0263a_rle_crop_3756047214_0.png', 1351470973: '1744344572_1036200_1351469293_be74d2f100d8706d9985e98e93e0e2d3_rle_crop_3756047228_0.png', 1351470974: '1744344572_1036200_1351469269_6105d9dc431588be8a0c9e2881088e8e_rle_crop_3756047244_0.png', 1351470975: '1744344572_1036200_1351469243_27db53bb991bfec48150da6195c8e45a_rle_crop_3756047251_0.png', 1351472785: '1744344692_1038265_1351470069_db9bbcdb4c6fa2263c169557c1ae20b9_rle_crop_3756047812_0.png', 1351472787: '1744344692_1038265_1351470046_fcf7827bab7ceb4a034fabc2bf1c9a1a_rle_crop_3756047830_0.png', 1351473464: '1744344794_1039784_1351470893_dad053501927bfa32b9ff0ada9e17600_rle_crop_3756051335_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/7ccf3b33438c38a6305a14fc5a079a36_36111966.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f1e35397d074c34c0d9ede5a6cc1880f_50114592.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/349efd7d5fff897eed50daec596bf7c9_42144937.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b7ac9b4f27291d39ccbda90b9d44e917_57444091.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/82fb6384445810de45183954ecc59cf9_37333172.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8d5b71d83ead1c9f2062871c49ed33d6_57121841.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/9123b4aacd3006330f2e49598b54b6e6_594244.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ce71f7dc59f3eb52175ebcea91841c99_55659170.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3966727e509142d3affab1c0c3e38178_76179023.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/aa34d999d4768af3c6c408e654f3b68e_77031806.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8cde13f81ab7897a570185267c2e1ad2_83567875.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/01a97d1df1580182f5d510ab5e13bbcc_47452241.png change filename to text .imagette222520201744344901/ imagette222520201744344901/1744344692_1038265_1351470046_fcf7827bab7ceb4a034fabc2bf1c9a1a_rle_crop_3756047830_0.png.png imagette222520201744344901/1744344566_1282194_1351469542_5ff05a1c455b389121a5fa9980ce7be6_rle_crop_3756047162_0.png.png imagette222520201744344901/1744344572_1036200_1351469243_27db53bb991bfec48150da6195c8e45a_rle_crop_3756047251_0.png.png imagette222520201744344901/1744344311_1031823_1351467201_d3942ba5c925565bcf209aee82a66c8f_rle_crop_3756043970_0.png.png imagette222520201744344901/1744344566_1282194_1351469611_e0f93dee6efb8d8a5f15f5ab1ecb974c_rle_crop_3756046624_0.png.png imagette222520201744344901/1744344566_1282194_1351469558_863227720ed2c97a7eeaded68c3d3e58_rle_crop_3756047145_0.png.png imagette222520201744344901/1744344572_1036200_1351469293_be74d2f100d8706d9985e98e93e0e2d3_rle_crop_3756047228_0.png.png imagette222520201744344901/1744344794_1039784_1351470893_dad053501927bfa32b9ff0ada9e17600_rle_crop_3756051335_0.png.png imagette222520201744344901/1744344692_1038265_1351470069_db9bbcdb4c6fa2263c169557c1ae20b9_rle_crop_3756047812_0.png.png imagette222520201744344901/1744344566_1282194_1351469558_863227720ed2c97a7eeaded68c3d3e58_rle_crop_3756047141_0.png.png imagette222520201744344901/1744344572_1036200_1351469315_8d828fcd6e7d317fab03f784b9b0263a_rle_crop_3756047214_0.png.png imagette222520201744344901/1744344572_1036200_1351469269_6105d9dc431588be8a0c9e2881088e8e_rle_crop_3756047244_0.png.png imagette222520201744344901/1744344331_1032206_1351466565_1612439acd0cd6ec3ceee1d3864acdf8_rle_crop_3756044136_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b32a3dddfb21019bafdec52bb06e9030_53087539.png imagette222520201744344901 22252024 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=22252024 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351467842: '1744344206_1277450_1351466425_533899e745a7f1f3700afde30b6f0b90_rle_crop_3756040644_0.png', 1351469266: '1744344326_1280211_1351467943_1811f217b0810d5e443c5045047a04a0_rle_crop_3756042724_0.png', 1351469656: '1744344331_1032206_1351467389_c3e9b2c7bcb18da1dbcc5fa287a89be4_rle_crop_3756043774_0.png', 1351469658: '1744344331_1032206_1351466806_d5e9b2a0745c52ec6db754544369ccdf_rle_crop_3756043836_0.png', 1351469660: '1744344331_1032206_1351466806_d5e9b2a0745c52ec6db754544369ccdf_rle_crop_3756043835_0.png', 1351469661: '1744344331_1032206_1351466666_05a6a82c414a961fafe41c2063c3e7c9_rle_crop_3756043957_0.png', 1351469662: '1744344331_1032206_1351466666_05a6a82c414a961fafe41c2063c3e7c9_rle_crop_3756043959_0.png', 1351469663: '1744344331_1032206_1351466666_05a6a82c414a961fafe41c2063c3e7c9_rle_crop_3756043954_0.png', 1351469664: '1744344331_1032206_1351466565_1612439acd0cd6ec3ceee1d3864acdf8_rle_crop_3756044138_0.png', 1351469665: '1744344331_1032206_1351466527_44ffdd92fb6df112919a80e550d628df_rle_crop_3756044236_0.png', 1351472569: '1744344685_1283521_1351470579_322c0bb29a70432028f2e75d389491ba_rle_crop_3756047755_0.png', 1351472571: '1744344685_1283521_1351470552_e16df9ccc22c4cbf87a80d2a148f818c_rle_crop_3756047766_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/5a141ba91976f4460332fa1029bc08af_14492620.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3c3cf9b79e985e980905e4a2304a7f12_77763481.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8a3ea3102670b6e94186e8300a895065_88108723.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3288f3028229f8bdfef73ebaebc20b14_50188146.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/617012f02d7e88e0d1e4798762e43149_20214672.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/46e6be842bf2c937fb54a92dced709a2_25879748.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b43b15e4abb1e6cb8daf9147f4dde9ae_75643785.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/efad4dcc7678e9b26677d15440f14b51_55804164.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2a635467dfae9a21334261df9888fb64_39827567.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/5f740ac92fe2a933dae2cbee7fb20154_7334527.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b5ea5ec22ba3e23dd10fc1f3a63d56bb_72228220.png change filename to text .imagette222520241744344902/ imagette222520241744344902/1744344326_1280211_1351467943_1811f217b0810d5e443c5045047a04a0_rle_crop_3756042724_0.png.png imagette222520241744344902/1744344331_1032206_1351466565_1612439acd0cd6ec3ceee1d3864acdf8_rle_crop_3756044138_0.png.png imagette222520241744344902/1744344331_1032206_1351466806_d5e9b2a0745c52ec6db754544369ccdf_rle_crop_3756043835_0.png.png imagette222520241744344902/1744344331_1032206_1351466666_05a6a82c414a961fafe41c2063c3e7c9_rle_crop_3756043957_0.png.png imagette222520241744344902/1744344331_1032206_1351466806_d5e9b2a0745c52ec6db754544369ccdf_rle_crop_3756043836_0.png.png imagette222520241744344902/1744344331_1032206_1351466666_05a6a82c414a961fafe41c2063c3e7c9_rle_crop_3756043959_0.png.png imagette222520241744344902/1744344685_1283521_1351470552_e16df9ccc22c4cbf87a80d2a148f818c_rle_crop_3756047766_0.png.png imagette222520241744344902/1744344331_1032206_1351467389_c3e9b2c7bcb18da1dbcc5fa287a89be4_rle_crop_3756043774_0.png.png imagette222520241744344902/1744344331_1032206_1351466527_44ffdd92fb6df112919a80e550d628df_rle_crop_3756044236_0.png.png imagette222520241744344902/1744344685_1283521_1351470579_322c0bb29a70432028f2e75d389491ba_rle_crop_3756047755_0.png.png imagette222520241744344902/1744344206_1277450_1351466425_533899e745a7f1f3700afde30b6f0b90_rle_crop_3756040644_0.png.png imagette222520241744344902/1744344331_1032206_1351466666_05a6a82c414a961fafe41c2063c3e7c9_rle_crop_3756043954_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/1cf07de04797d7001c10cdd90f60ce4e_25593909.png imagette222520241744344902 22252028 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=22252028 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351469277: '1744344326_1280211_1351467997_3900820f16ab4fc8b9ec007dfce19222_rle_crop_3756042487_0.png', 1351469433: '1744344311_1031823_1351467201_d3942ba5c925565bcf209aee82a66c8f_rle_crop_3756043974_0.png', 1351469703: '1744344331_1032206_1351466550_071035f0d175c65ab691caee31d6236a_rle_crop_3756044167_0.png', 1351469704: '1744344331_1032206_1351466527_44ffdd92fb6df112919a80e550d628df_rle_crop_3756044235_0.png', 1351470961: '1744344566_1282194_1351469611_e0f93dee6efb8d8a5f15f5ab1ecb974c_rle_crop_3756046627_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3f1cfb860217ee91e3ce929e7288fbb4_67370293.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/0cbd6f4cc35f25c88c941d0e56dc3d93_29696439.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/67e4ca7b3eabd32d4f7f00c32bd1165f_88682018.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/a8ec2ed4b42709f64027a0138b189a23_30757808.png change filename to text .imagette222520281744344902/ imagette222520281744344902/1744344311_1031823_1351467201_d3942ba5c925565bcf209aee82a66c8f_rle_crop_3756043974_0.png.png imagette222520281744344902/1744344331_1032206_1351466550_071035f0d175c65ab691caee31d6236a_rle_crop_3756044167_0.png.png imagette222520281744344902/1744344331_1032206_1351466527_44ffdd92fb6df112919a80e550d628df_rle_crop_3756044235_0.png.png imagette222520281744344902/1744344326_1280211_1351467997_3900820f16ab4fc8b9ec007dfce19222_rle_crop_3756042487_0.png.png imagette222520281744344902/1744344566_1282194_1351469611_e0f93dee6efb8d8a5f15f5ab1ecb974c_rle_crop_3756046627_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/324a9d8f4468c80188ec921042c43b35_70662727.png imagette222520281744344902 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22251992 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22252031,22252032,22252033,22252034,22252035,22252036,22252037,22252038,22252039,22252040,22252041,22252042?tags=mal_croppe,Carton_gris,papier,plastique,cartonnette,Teint_Dans_La_Masse,environnement,kraft,flou,Carton_brun,metal,autre_refus your option no_mail is active, we will not send the real mail to your client args[1351472997] : ('0.04650126136997219',) no score found for photo 1351472997 We are sending mail with results at report@fotonower.com refus_total : 0.04650126136997219 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=22251992 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_P22251992_11-04-2025_06_15_00.pdf results_Auto_P22251992_11-04-2025_06_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22251992_11-04-2025_06_15_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22251992','results_Auto_P22251992_11-04-2025_06_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22251992_11-04-2025_06_15_00.pdf','pdf','','0.19','0.04650126136997219') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22251992]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351472997] map_info['map_portfolio_photo'] : {22251992: [1351472997, 1351471626, 1351471427, 1351470953, 1351470923, 1351470893, 1351470868, 1351470837, 1351470623, 1351470579, 1351470552, 1351470533, 1351470488, 1351470171, 1351470144, 1351470069, 1351470046, 1351469709, 1351469650, 1351469611, 1351469558, 1351469542, 1351469479, 1351469318, 1351469315, 1351469293, 1351469269, 1351469243, 1351468903, 1351468838, 1351468759, 1351468693, 1351468654, 1351468616, 1351468085, 1351468027, 1351467997, 1351467943, 1351467389, 1351467353, 1351467311, 1351467285, 1351467222, 1351467201, 1351466852, 1351466806, 1351466666, 1351466565, 1351466550, 1351466527, 1351466425, 1351466415, 1351466411]} final : False mtd_id 4302 list_pids : [1351472997] 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, '2742205') ('4302', '22251992', '1351472997', None, None, None, None, None, '2742205') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '22251992', '1351472997', None, None, None, None, None, '2742205')] time used for this insertion : 0.01271963119506836 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.21361780166626 time spend to save output : 0.012837886810302734 total time spend for step 4 : 4.2264556884765625 step5:split_time_score Fri Apr 11 06:15: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 : ['22251992'] 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 : [('22251992',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22251992) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351472997: {'path': 'temp/1744344899_2051869_1351472997_186e80f20ded7bcf12dc5a9053c954d5.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 = 22251992; (('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 = 22251992 group by h (('06', 53),) 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=22251992 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 (22251992) 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 (22251992) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11042025 22251992 Nombre de photos uploadées : 53 / 23040 (0%) 11042025 22251992 Nombre de photos taguées (types de déchets): 0 / 53 (0%) 11042025 22251992 Nombre de photos taguées (volume) : 0 / 53 (0%) [{'photo_id': 1351466425, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/533899e745a7f1f3700afde30b6f0b90.jpg', 'username': None, 'uploaded_at': 1744344082, 'text': 'image_11042025_06_00_04_10145.jpg'}, {'photo_id': 1351466415, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8c8129fbc34f4bb634a9751a58670a29.jpg', 'username': None, 'uploaded_at': 1744344082, 'text': 'image_11042025_06_00_14_10138.jpg'}, {'photo_id': 1351466411, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e02f2418ec5eafebd68eed1d7ed69f29.jpg', 'username': None, 'uploaded_at': 1744344082, 'text': 'image_11042025_06_00_44_10135.jpg'}, {'photo_id': 1351466852, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ef04c74ee97e9d709d1973d2dcc38367.jpg', 'username': None, 'uploaded_at': 1744344127, 'text': 'image_11042025_06_00_54_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002304553985595703 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22251992, '2025-04-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1733453,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03266263008117676 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= 1733453 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1733453, 'dashboard_run_id': 1741890, 'mtr_portfolio_id': 22250905, 'dashboard_result_id': 10009955, '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_P22250905_11-04-2025_06_09_08.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22250907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22250908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22250909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22250910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22250911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22250912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22250913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22250914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22250915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22250916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22250917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22250918, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1741890, 'mtr_portfolio_id': 22251131, 'dashboard_result_id': 10009956, '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_P22251131_11-04-2025_06_09_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22251134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22251135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22251136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22251137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22251138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22251139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22251140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22251141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22251142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22251143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22251144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22251145, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1741890, 'mtr_portfolio_id': 22251556, 'dashboard_result_id': 10009957, '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_P22251556_11-04-2025_06_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22251560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22251561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22251562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22251563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22251564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22251565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22251566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22251567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22251568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22251569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22251570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22251571, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1741890, 'mtr_portfolio_id': 22251992, 'dashboard_result_id': 10009958, '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_P22251992_11-04-2025_06_13_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22252019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22252020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22252021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22252022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22252023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22252024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22252025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22252026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22252027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22252028, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22252029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22252030, '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 = 22250905 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': 2742128, 'mtr_portfolio_id': 22250905, 'created_at': datetime.datetime(2025, 4, 11, 6, 8, 58), 'result': '0.04563386672342721', 'result_long': None, 'result_double': None}] Qualite : 0.04563386672342721 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22250905 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22250905_11-04-2025_06_09_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22250905 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_P22250905_11-04-2025_06_09_08.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22250907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22250908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22250909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22250910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22250911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22250912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22250913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22250914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22250915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22250916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22250917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22250918, 'pht': 3726}}" where mtr_portfolio_id = 22250905 and dashboard_run_id = 1741890 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`=22250905 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10009955, 0.04563386672342721, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22250905_11-04-2025_06_09_08.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22250907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22250908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22250909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22250910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22250911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22250912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22250913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22250914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22250915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22250916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22250917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22250918, '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 = 22251131 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': 2742129, 'mtr_portfolio_id': 22251131, 'created_at': datetime.datetime(2025, 4, 11, 6, 9, 29), 'result': '0.04045011640719762', 'result_long': None, 'result_double': None}] Qualite : 0.04045011640719762 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22251131 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22251131_11-04-2025_06_09_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22251131 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_P22251131_11-04-2025_06_09_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22251134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22251135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22251136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22251137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22251138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22251139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22251140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22251141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22251142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22251143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22251144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22251145, 'pht': 3726}}" where mtr_portfolio_id = 22251131 and dashboard_run_id = 1741890 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`=22251131 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10009956, 0.04045011640719762, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22251131_11-04-2025_06_09_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22251134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22251135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22251136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22251137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22251138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22251139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22251140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22251141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22251142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22251143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22251144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22251145, '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 = 22251556 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': 2742157, 'mtr_portfolio_id': 22251556, 'created_at': datetime.datetime(2025, 4, 11, 6, 3, 1), 'result': '0.04475795228937768', 'result_long': None, 'result_double': None}] Qualite : 0.04475795228937768 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22251556 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22251556_11-04-2025_06_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22251556 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_P22251556_11-04-2025_06_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22251560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22251561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22251562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22251563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22251564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22251565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22251566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22251567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22251568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22251569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22251570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22251571, 'pht': 3726}}" where mtr_portfolio_id = 22251556 and dashboard_run_id = 1741890 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`=22251556 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10009957, 0.04475795228937768, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22251556_11-04-2025_06_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22251560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22251561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22251562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22251563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22251564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22251565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22251566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22251567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22251568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22251569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22251570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22251571, '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 = 22251992 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': 2742205, 'mtr_portfolio_id': 22251992, 'created_at': datetime.datetime(2025, 4, 11, 6, 14, 59), 'result': '0.04650126136997219', 'result_long': None, 'result_double': None}] Qualite : 0.04650126136997219 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22251992 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22251992_11-04-2025_06_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22251992 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_P22251992_11-04-2025_06_15_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22252019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22252020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22252021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22252022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22252023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22252024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22252025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22252026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22252027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22252028, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22252029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22252030, 'pht': 3726}}" where mtr_portfolio_id = 22251992 and dashboard_run_id = 1741890 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`=22251992 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10009958, 0.04650126136997219, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22251992_11-04-2025_06_15_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22252019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22252020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22252021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22252022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22252023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22252024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22252025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22252026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22252027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22252028, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22252029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22252030, '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 (22250905,22251131,22251556,22251992) result : ((1351460406,), (1351462169,), (1351462213,), (1351462215,), (1351462217,), (1351462240,), (1351462246,), (1351462250,), (1351462252,), (1351462275,), (1351462278,), (1351462279,), (1351462283,), (1351462289,), (1351462329,), (1351462331,), (1351462336,), (1351462345,), (1351462357,), (1351462459,), (1351462553,), (1351462608,), (1351462665,), (1351462668,), (1351462672,), (1351462674,), (1351462809,), (1351462815,), (1351462818,), (1351462821,), (1351462835,), (1351463386,), (1351463512,), (1351463497,), (1351463500,), (1351463503,), (1351463507,), (1351463510,), (1351463553,), (1351463557,), (1351463561,), (1351463595,), (1351463597,), (1351463600,), (1351463604,), (1351463608,), (1351463633,), (1351463637,), (1351463640,), (1351463677,), (1351463680,), (1351463732,), (1351463735,), (1351463771,), (1351463942,), (1351463946,), (1351463948,), (1351463950,), (1351463954,), (1351463992,), (1351463994,), (1351463996,), (1351464058,), (1351464061,), (1351464080,), (1351464084,), (1351464093,), (1351464193,), (1351464196,), (1351464199,), (1351464201,), (1351464286,), (1351464376,), (1351464379,), (1351464380,), (1351464382,), (1351464419,), (1351464422,), (1351464460,), (1351464463,), (1351464466,), (1351464497,), (1351464504,), (1351464506,), (1351464509,), (1351464512,), (1351464549,), (1351464552,), (1351464557,), (1351464560,), (1351464790,), (1351464794,), (1351464710,), (1351464732,), (1351464759,), (1351464843,), (1351464848,), (1351464850,), (1351464880,), (1351464892,), (1351464894,), (1351464896,), (1351465014,), (1351465021,), (1351465022,), (1351465024,), (1351465026,), (1351465029,), (1351465122,), (1351465198,), (1351465308,), (1351465324,), (1351465408,), (1351465410,), (1351465413,), (1351465416,), (1351465419,), (1351465458,), (1351465461,), (1351465463,), (1351465464,), (1351465469,), (1351465473,), (1351465500,), (1351465503,), (1351465506,), (1351465591,), (1351465596,), (1351465656,), (1351465660,), (1351465663,), (1351465675,), (1351465685,), (1351465710,), (1351465712,), (1351465713,), (1351465714,), (1351465716,), (1351465739,), (1351465745,), (1351465747,), (1351465857,), (1351465862,), (1351465866,), (1351465871,), (1351465877,), (1351465886,), (1351465909,), (1351465911,), (1351465917,), (1351465946,), (1351466094,), (1351466430,), (1351466411,), (1351466415,), (1351466425,), (1351466527,), (1351466550,), (1351466565,), (1351466666,), (1351466806,), (1351466852,), (1351467201,), (1351467222,), (1351467285,), (1351467311,), (1351467353,), (1351467389,), (1351467943,), (1351467997,), (1351468027,), (1351468085,), (1351468616,), (1351468654,), (1351468693,), (1351468759,), (1351468838,), (1351468903,), (1351469243,), (1351469269,), (1351469293,), (1351469315,), (1351469318,), (1351469479,), (1351469542,), (1351469558,), (1351469611,), (1351469650,), (1351469709,), (1351470046,), (1351470069,), (1351470144,), (1351470171,), (1351470488,), (1351470533,), (1351470552,), (1351470579,), (1351470623,), (1351470837,), (1351470868,), (1351470893,), (1351470923,), (1351470953,), (1351471427,), (1351471626,), (1351472997,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11042025': {'nb_upload': 53, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22251992]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351472997] map_info['map_portfolio_photo'] : {22251992: [1351472997, 1351471626, 1351471427, 1351470953, 1351470923, 1351470893, 1351470868, 1351470837, 1351470623, 1351470579, 1351470552, 1351470533, 1351470488, 1351470171, 1351470144, 1351470069, 1351470046, 1351469709, 1351469650, 1351469611, 1351469558, 1351469542, 1351469479, 1351469318, 1351469315, 1351469293, 1351469269, 1351469243, 1351468903, 1351468838, 1351468759, 1351468693, 1351468654, 1351468616, 1351468085, 1351468027, 1351467997, 1351467943, 1351467389, 1351467353, 1351467311, 1351467285, 1351467222, 1351467201, 1351466852, 1351466806, 1351466666, 1351466565, 1351466550, 1351466527, 1351466425, 1351466415, 1351466411]} final : True mtd_id 4302 list_pids : [1351472997] Looping around the photos to save general results len do output : 1 /22251992Didn'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, '2742205') ('4302', '22251992', '1351472997', None, None, None, None, None, '2742205') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '22251992', 'None', None, None, None, None, '2742205'), ('4302', '22251992', '1351472997', None, None, None, None, None, '2742205')] time used for this insertion : 0.015927791595458984 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.35834312438964844 time spend to save output : 0.01605224609375 total time spend for step 5 : 0.37439537048339844 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 (2742205) 2.11user 2.71system 0:09.41elapsed 51%CPU (0avgtext+0avgdata 154932maxresident)k 1080inputs+9280outputs (38major+61742minor)pagefaults 0swaps