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 : 3287608 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 (2723742) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2723742) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22059940 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2723742'] with mtr_portfolio_ids : ['22059940'] and first list_photo_ids : [] new path : /proc/3287608/ Name: python3 Umask: 0002 State: R (running) Tgid: 3287608 Ngid: 0 Pid: 3287608 PPid: 3287607 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3287608 NSpid: 3287608 NSpgid: 3283877 NSsid: 3283877 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97712 kB VmRSS: 97712 kB RssAnon: 59796 kB RssFile: 37916 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 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: 60 nonvoluntary_ctxt_switches: 165 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3287608', 'Ngid': '0', 'Pid': '3287608', 'PPid': '3287607', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3287608', 'NSpid': '3287608', 'NSpgid': '3283877', 'NSsid': '3283877', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97712 kB', 'VmRSS': '97712 kB', 'RssAnon': '59796 kB', 'RssFile': '37916 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 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': '60', 'nonvoluntary_ctxt_switches': '165'} ('datou_batch_current', '3287608', '1106928', '0', '1106928', '865676', '97712', b'', 'marlene', '2723742') 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 (22059940) 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 (2723742 ) ) 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 (22059940) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349997357, 'portfolio_id': 22059940}, {'photo_id': 1349997353, 'portfolio_id': 22059940}, {'photo_id': 1349997349, 'portfolio_id': 22059940}, {'photo_id': 1349997340, 'portfolio_id': 22059940}, {'photo_id': 1349997191, 'portfolio_id': 22059940}, {'photo_id': 1349997187, 'portfolio_id': 22059940}, {'photo_id': 1349997181, 'portfolio_id': 22059940}, {'photo_id': 1349997171, 'portfolio_id': 22059940}, {'photo_id': 1349997165, 'portfolio_id': 22059940}, {'photo_id': 1349997061, 'portfolio_id': 22059940}, {'photo_id': 1349997054, 'portfolio_id': 22059940}, {'photo_id': 1349997048, 'portfolio_id': 22059940}, {'photo_id': 1349997037, 'portfolio_id': 22059940}, {'photo_id': 1349997023, 'portfolio_id': 22059940}, {'photo_id': 1349996925, 'portfolio_id': 22059940}, {'photo_id': 1349996915, 'portfolio_id': 22059940}, {'photo_id': 1349996906, 'portfolio_id': 22059940}, {'photo_id': 1349996835, 'portfolio_id': 22059940}, {'photo_id': 1349996828, 'portfolio_id': 22059940}] map_portfolio_id_photo_id: {22059940: [1349997357, 1349997353, 1349997349, 1349997340, 1349997191, 1349997187, 1349997181, 1349997171, 1349997165, 1349997061, 1349997054, 1349997048, 1349997037, 1349997023, 1349996925, 1349996915, 1349996906, 1349996835, 1349996828]} ##### 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.01622462272644043 #### 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 4 07:50: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 (22059940) 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 : 22059940 get user id for portfolio 22059940 get sub ptf for main ptf 22059940, type 3726 and hashtags ['Teint_Dans_La_Masse', 'autre_refus', 'environnement', 'papier', 'flou', 'mal_croppe', 'metal', 'kraft', 'Carton_gris', 'cartonnette', 'plastique', 'Carton_brun'] 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`=22059940 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','environnement','papier','flou','mal_croppe','metal','kraft','Carton_gris','cartonnette','plastique','Carton_brun')) 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`=22059940 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','environnement','papier','flou','mal_croppe','metal','kraft','Carton_gris','cartonnette','plastique','Carton_brun')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_3726_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_3726_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_3726_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_3726_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_3726_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_3726_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_3726_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_3726_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_3726_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_3726_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_3726_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_3726_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[22059940, 22059946, 3726, 0.5, 2107752385, 979], [22059940, 22059947, 3726, 0.5, 2107752406, 979], [22059940, 22059948, 3726, 0.5, 493012381, 979], [22059940, 22059949, 3726, 0.5, 492668766, 979], [22059940, 22059950, 3726, 0.5, 492777938, 979], [22059940, 22059951, 3726, 0.5, 2107755527, 979], [22059940, 22059952, 3726, 0.5, 492628673, 979], [22059940, 22059953, 3726, 0.5, 493202403, 979], [22059940, 22059954, 3726, 0.5, 2107753020, 979], [22059940, 22059955, 3726, 0.5, 702398920, 979], [22059940, 22059956, 3726, 0.5, 492725882, 979], [22059940, 22059957, 3726, 0.5, 2107753024, 979]] 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`=22059940 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','environnement','papier','flou','mal_croppe','metal','kraft','Carton_gris','cartonnette','plastique','Carton_brun')) 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`=22059940 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','environnement','papier','flou','mal_croppe','metal','kraft','Carton_gris','cartonnette','plastique','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22059940, 'sub_port_id': 22059946, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550090, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 58)}, 'autre_refus': {'main_port_id': 22059940, 'sub_port_id': 22059947, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550091, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 58)}, 'environnement': {'main_port_id': 22059940, 'sub_port_id': 22059948, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550092, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 58)}, 'papier': {'main_port_id': 22059940, 'sub_port_id': 22059949, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550093, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 58)}, 'flou': {'main_port_id': 22059940, 'sub_port_id': 22059950, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550094, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 58)}, 'mal_croppe': {'main_port_id': 22059940, 'sub_port_id': 22059951, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550095, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 58)}, 'metal': {'main_port_id': 22059940, 'sub_port_id': 22059952, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550096, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 58)}, 'kraft': {'main_port_id': 22059940, 'sub_port_id': 22059953, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550097, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 58)}, 'Carton_gris': {'main_port_id': 22059940, 'sub_port_id': 22059954, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550098, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 58)}, 'cartonnette': {'main_port_id': 22059940, 'sub_port_id': 22059955, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550099, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 58)}, 'plastique': {'main_port_id': 22059940, 'sub_port_id': 22059956, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550100, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 58)}, 'Carton_brun': {'main_port_id': 22059940, 'sub_port_id': 22059957, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550101, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22059946 , 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=22059940 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 (22059946) result : ((1349997272,), (1349997273,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22059940) result : ((1349996828,), (1349996835,), (1349996906,), (1349996915,), (1349996925,), (1349997023,), (1349997037,), (1349997048,), (1349997054,), (1349997061,), (1349997165,), (1349997171,), (1349997181,), (1349997187,), (1349997191,), (1349997340,), (1349997349,), (1349997353,), (1349997357,)) 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 22059947 , 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=22059940 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 (22059947) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22059940) result : ((1349996828,), (1349996835,), (1349996906,), (1349996915,), (1349996925,), (1349997023,), (1349997037,), (1349997048,), (1349997054,), (1349997061,), (1349997165,), (1349997171,), (1349997181,), (1349997187,), (1349997191,), (1349997340,), (1349997349,), (1349997353,), (1349997357,)) 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 22059948 , 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=22059940 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 (22059948) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22059940) result : ((1349996828,), (1349996835,), (1349996906,), (1349996915,), (1349996925,), (1349997023,), (1349997037,), (1349997048,), (1349997054,), (1349997061,), (1349997165,), (1349997171,), (1349997181,), (1349997187,), (1349997191,), (1349997340,), (1349997349,), (1349997353,), (1349997357,)) 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 22059949 , 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=22059940 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 (22059949) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22059940) result : ((1349996828,), (1349996835,), (1349996906,), (1349996915,), (1349996925,), (1349997023,), (1349997037,), (1349997048,), (1349997054,), (1349997061,), (1349997165,), (1349997171,), (1349997181,), (1349997187,), (1349997191,), (1349997340,), (1349997349,), (1349997353,), (1349997357,)) 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 22059950 , 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=22059940 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 (22059950) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22059940) result : ((1349996828,), (1349996835,), (1349996906,), (1349996915,), (1349996925,), (1349997023,), (1349997037,), (1349997048,), (1349997054,), (1349997061,), (1349997165,), (1349997171,), (1349997181,), (1349997187,), (1349997191,), (1349997340,), (1349997349,), (1349997353,), (1349997357,)) 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 22059951 , 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=22059940 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 (22059951) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22059940) result : ((1349996828,), (1349996835,), (1349996906,), (1349996915,), (1349996925,), (1349997023,), (1349997037,), (1349997048,), (1349997054,), (1349997061,), (1349997165,), (1349997171,), (1349997181,), (1349997187,), (1349997191,), (1349997340,), (1349997349,), (1349997353,), (1349997357,)) 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 22059952 , 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=22059940 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 (22059952) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22059940) result : ((1349996828,), (1349996835,), (1349996906,), (1349996915,), (1349996925,), (1349997023,), (1349997037,), (1349997048,), (1349997054,), (1349997061,), (1349997165,), (1349997171,), (1349997181,), (1349997187,), (1349997191,), (1349997340,), (1349997349,), (1349997353,), (1349997357,)) 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 22059953 , 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=22059940 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 (22059953) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22059940) result : ((1349996828,), (1349996835,), (1349996906,), (1349996915,), (1349996925,), (1349997023,), (1349997037,), (1349997048,), (1349997054,), (1349997061,), (1349997165,), (1349997171,), (1349997181,), (1349997187,), (1349997191,), (1349997340,), (1349997349,), (1349997353,), (1349997357,)) 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 22059954 , 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=22059940 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 (22059954) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22059940) result : ((1349996828,), (1349996835,), (1349996906,), (1349996915,), (1349996925,), (1349997023,), (1349997037,), (1349997048,), (1349997054,), (1349997061,), (1349997165,), (1349997171,), (1349997181,), (1349997187,), (1349997191,), (1349997340,), (1349997349,), (1349997353,), (1349997357,)) 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 22059955 , 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=22059940 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 (22059955) result : ((1349997236,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22059940) result : ((1349996828,), (1349996835,), (1349996906,), (1349996915,), (1349996925,), (1349997023,), (1349997037,), (1349997048,), (1349997054,), (1349997061,), (1349997165,), (1349997171,), (1349997181,), (1349997187,), (1349997191,), (1349997340,), (1349997349,), (1349997353,), (1349997357,)) 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 22059956 , 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=22059940 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 (22059956) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22059940) result : ((1349996828,), (1349996835,), (1349996906,), (1349996915,), (1349996925,), (1349997023,), (1349997037,), (1349997048,), (1349997054,), (1349997061,), (1349997165,), (1349997171,), (1349997181,), (1349997187,), (1349997191,), (1349997340,), (1349997349,), (1349997353,), (1349997357,)) 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 22059957 , 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=22059940 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 (22059957) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22059940) result : ((1349996828,), (1349996835,), (1349996906,), (1349996915,), (1349996925,), (1349997023,), (1349997037,), (1349997048,), (1349997054,), (1349997061,), (1349997165,), (1349997171,), (1349997181,), (1349997187,), (1349997191,), (1349997340,), (1349997349,), (1349997353,), (1349997357,)) 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`=22059940 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','environnement','papier','flou','mal_croppe','metal','kraft','Carton_gris','cartonnette','plastique','Carton_brun')) 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`=22059940 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','environnement','papier','flou','mal_croppe','metal','kraft','Carton_gris','cartonnette','plastique','Carton_brun')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_4417_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_4417_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_4417_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_4417_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_4417_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_4417_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_4417_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_4417_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_4417_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04042025_07_45_04_10151_4417_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[22059940, 22059958, 4417, 0.5, 2107752385, 979], [22059940, 22059959, 4417, 0.5, 2107752406, 979], [22059940, 22059960, 4417, 0.5, 493012381, 979], [22059940, 22059961, 4417, 0.5, 492668766, 979], [22059940, 22059962, 4417, 0.5, 492777938, 979], [22059940, 22059963, 4417, 0.5, 2107755527, 979], [22059940, 22059964, 4417, 0.5, 492628673, 979], [22059940, 22059965, 4417, 0.5, 493202403, 979], [22059940, 22059966, 4417, 0.5, 2107753020, 979], [22059940, 22059967, 4417, 0.5, 702398920, 979], [22059940, 22059968, 4417, 0.5, 492725882, 979], [22059940, 22059969, 4417, 0.5, 2107753024, 979]] 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`=22059940 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','environnement','papier','flou','mal_croppe','metal','kraft','Carton_gris','cartonnette','plastique','Carton_brun')) 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`=22059940 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','environnement','papier','flou','mal_croppe','metal','kraft','Carton_gris','cartonnette','plastique','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22059940, 'sub_port_id': 22059958, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550102, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 59)}, 'autre_refus': {'main_port_id': 22059940, 'sub_port_id': 22059959, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550103, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 59)}, 'environnement': {'main_port_id': 22059940, 'sub_port_id': 22059960, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550104, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 59)}, 'papier': {'main_port_id': 22059940, 'sub_port_id': 22059961, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550105, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 59)}, 'flou': {'main_port_id': 22059940, 'sub_port_id': 22059962, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550106, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 59)}, 'mal_croppe': {'main_port_id': 22059940, 'sub_port_id': 22059963, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550107, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 59)}, 'metal': {'main_port_id': 22059940, 'sub_port_id': 22059964, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550108, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 59)}, 'kraft': {'main_port_id': 22059940, 'sub_port_id': 22059965, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550109, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 59)}, 'Carton_gris': {'main_port_id': 22059940, 'sub_port_id': 22059966, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550110, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 59)}, 'cartonnette': {'main_port_id': 22059940, 'sub_port_id': 22059967, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550111, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 59)}, 'plastique': {'main_port_id': 22059940, 'sub_port_id': 22059968, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550112, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 59)}, 'Carton_brun': {'main_port_id': 22059940, 'sub_port_id': 22059969, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550113, 'last_updated_at': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 7, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 7, 50, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22059958,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22059946 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22059959,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22059947 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22059960,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22059948 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22059961,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22059949 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22059962,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22059950 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22059963,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22059951 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22059964,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22059952 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22059965,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22059953 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22059966,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22059954 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22059967,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22059955 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22059968,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22059956 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22059969,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22059957 lien utilise dans velours : https://www.fotonower.com/velours/22059958,22059959,22059960,22059961,22059962,22059963,22059964,22059965,22059966,22059967,22059968,22059969?tags=Teint_Dans_La_Masse,autre_refus,environnement,papier,flou,mal_croppe,metal,kraft,Carton_gris,cartonnette,plastique,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22059940]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349997357, 1349997353, 1349997349, 1349997340, 1349997191, 1349997187, 1349997181, 1349997171, 1349997165, 1349997061, 1349997054, 1349997048, 1349997037, 1349997023, 1349996925, 1349996915, 1349996906, 1349996835, 1349996828] map_info['map_portfolio_photo'] : {22059940: [1349997357, 1349997353, 1349997349, 1349997340, 1349997191, 1349997187, 1349997181, 1349997171, 1349997165, 1349997061, 1349997054, 1349997048, 1349997037, 1349997023, 1349996925, 1349996915, 1349996906, 1349996835, 1349996828]} final : False mtd_id 4302 list_pids : [1349997357, 1349997353, 1349997349, 1349997340, 1349997191, 1349997187, 1349997181, 1349997171, 1349997165, 1349997061, 1349997054, 1349997048, 1349997037, 1349997023, 1349996925, 1349996915, 1349996906, 1349996835, 1349996828] Looping around the photos to save general results len do output : 1 /22059940. 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, '2723742') ('4302', '22059940', '1349997357', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997353', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997349', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997340', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997191', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997187', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997181', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997171', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997165', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997061', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997054', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997048', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997037', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997023', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349996925', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349996915', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349996906', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349996835', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349996828', None, None, None, None, None, '2723742') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '22059940', "{'Teint_Dans_La_Masse': 22059946, 'autre_refus': 22059947, 'environnement': 22059948, 'papier': 22059949, 'flou': 22059950, 'mal_croppe': 22059951, 'metal': 22059952, 'kraft': 22059953, 'Carton_gris': 22059954, 'cartonnette': 22059955, 'plastique': 22059956, 'Carton_brun': 22059957}", None, None, None, None, '2723742'), ('4302', '22059940', '1349997357', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997353', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997349', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997340', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997191', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997187', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997181', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997171', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997165', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997061', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997054', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997048', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997037', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997023', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349996925', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349996915', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349996906', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349996835', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349996828', None, None, None, None, None, '2723742')] time used for this insertion : 0.014595985412597656 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.1395881175994873 time spend to save output : 0.014997243881225586 total time spend for step 1 : 2.154585361480713 step2:final Fri Apr 4 07:50: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 (22059940) 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 22059940 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349996835,1349996828,1349996925,1349996915,1349996906,1349997061,1349997054,1349997048,1349997037,1349997023,1349997191,1349997187,1349997181,1349997171,1349997165,1349997357,1349997353,1349997349,1349997340); 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([22059940]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} new output for save of step final : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} [1349997357, 1349997353, 1349997349, 1349997340, 1349997191, 1349997187, 1349997181, 1349997171, 1349997165, 1349997061, 1349997054, 1349997048, 1349997037, 1349997023, 1349996925, 1349996915, 1349996906, 1349996835, 1349996828] map_info['map_portfolio_photo'] : {22059940: [1349997357, 1349997353, 1349997349, 1349997340, 1349997191, 1349997187, 1349997181, 1349997171, 1349997165, 1349997061, 1349997054, 1349997048, 1349997037, 1349997023, 1349996925, 1349996915, 1349996906, 1349996835, 1349996828]} final : False mtd_id 4302 list_pids : [1349997357, 1349997353, 1349997349, 1349997340, 1349997191, 1349997187, 1349997181, 1349997171, 1349997165, 1349997061, 1349997054, 1349997048, 1349997037, 1349997023, 1349996925, 1349996915, 1349996906, 1349996835, 1349996828] Looping around the photos to save general results len do output : 19 /1349997357.Didn't retrieve data . /1349997353.Didn't retrieve data . /1349997349.Didn't retrieve data . /1349997340.Didn't retrieve data . /1349997191.Didn't retrieve data . /1349997187.Didn't retrieve data . /1349997181.Didn't retrieve data . /1349997171.Didn't retrieve data . /1349997165.Didn't retrieve data . /1349997061.Didn't retrieve data . /1349997054.Didn't retrieve data . /1349997048.Didn't retrieve data . /1349997037.Didn't retrieve data . /1349997023.Didn't retrieve data . /1349996925.Didn't retrieve data . /1349996915.Didn't retrieve data . /1349996906.Didn't retrieve data . /1349996835.Didn't retrieve data . /1349996828.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, '2723742') ('4302', '22059940', '1349997357', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997353', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997349', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997340', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997191', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997187', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997181', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997171', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997165', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997061', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997054', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997048', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997037', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997023', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349996925', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349996915', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349996906', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349996835', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349996828', None, None, None, None, None, '2723742') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 57 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', '22059940', '1349997357', '0.006318627133115024', None, None, None, None, '2723742'), ('4302', '22059940', '1349997353', '0.006318627133115024', None, None, None, None, '2723742'), ('4302', '22059940', '1349997349', '0.006318627133115024', None, None, None, None, '2723742'), ('4302', '22059940', '1349997340', '0.006318627133115024', None, None, None, None, '2723742'), ('4302', '22059940', '1349997191', '0.006318627133115024', None, None, None, None, '2723742'), ('4302', '22059940', '1349997187', '0.006318627133115024', None, None, None, None, '2723742'), ('4302', '22059940', '1349997181', '0.006318627133115024', None, None, None, None, '2723742'), ('4302', '22059940', '1349997171', '0.006318627133115024', None, None, None, None, '2723742'), ('4302', '22059940', '1349997165', '0.006318627133115024', None, None, None, None, '2723742'), ('4302', '22059940', '1349997061', '0.006318627133115024', None, None, None, None, '2723742'), ('4302', '22059940', '1349997054', '0.006318627133115024', None, None, None, None, '2723742'), ('4302', '22059940', '1349997048', '0.006318627133115024', None, None, None, None, '2723742'), ('4302', '22059940', '1349997037', '0.006318627133115024', None, None, None, None, '2723742'), ('4302', '22059940', '1349997023', '0.006318627133115024', None, None, None, None, '2723742'), ('4302', '22059940', '1349996925', '0.006318627133115024', None, None, None, None, '2723742'), ('4302', '22059940', '1349996915', '0.006318627133115024', None, None, None, None, '2723742'), ('4302', '22059940', '1349996906', '0.006318627133115024', None, None, None, None, '2723742'), ('4302', '22059940', '1349996835', '0.006318627133115024', None, None, None, None, '2723742'), ('4302', '22059940', '1349996828', '0.006318627133115024', None, None, None, None, '2723742')] time used for this insertion : 0.014847993850708008 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.02704930305480957 time spend to save output : 0.015851736068725586 total time spend for step 2 : 0.042901039123535156 step3:velours_tree Fri Apr 4 07:50: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 : {22059940: [{'Teint_Dans_La_Masse': 22059946, 'autre_refus': 22059947, 'environnement': 22059948, 'papier': 22059949, 'flou': 22059950, 'mal_croppe': 22059951, 'metal': 22059952, 'kraft': 22059953, 'Carton_gris': 22059954, 'cartonnette': 22059955, 'plastique': 22059956, 'Carton_brun': 22059957}]} input_args_next_step : {22059940: ()} output_args : {22059940: [{'Teint_Dans_La_Masse': 22059946, 'autre_refus': 22059947, 'environnement': 22059948, 'papier': 22059949, 'flou': 22059950, 'mal_croppe': 22059951, 'metal': 22059952, 'kraft': 22059953, 'Carton_gris': 22059954, 'cartonnette': 22059955, 'plastique': 22059956, 'Carton_brun': 22059957}]} args : 22059940 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Teint_Dans_La_Masse': 22059946, 'autre_refus': 22059947, 'environnement': 22059948, 'papier': 22059949, 'flou': 22059950, 'mal_croppe': 22059951, 'metal': 22059952, 'kraft': 22059953, 'Carton_gris': 22059954, 'cartonnette': 22059955, 'plastique': 22059956, 'Carton_brun': 22059957},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22059940) 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([22059940]) 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.5816564559936523 time spend to save output : 7.295608520507812e-05 total time spend for step 3 : 0.5817294120788574 step4:send_mail_cod Fri Apr 4 07:51:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} input_args_next_step : {1349997357: ()} output_args : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} args : 1349997357 depend.output_id : 0 input_args_next_step : {1349997357: ('0.006318627133115024',), 1349997353: ()} output_args : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} args : 1349997353 depend.output_id : 0 input_args_next_step : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ()} output_args : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} args : 1349997349 depend.output_id : 0 input_args_next_step : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ()} output_args : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} args : 1349997340 depend.output_id : 0 input_args_next_step : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ()} output_args : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} args : 1349997191 depend.output_id : 0 input_args_next_step : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ()} output_args : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} args : 1349997187 depend.output_id : 0 input_args_next_step : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ()} output_args : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} args : 1349997181 depend.output_id : 0 input_args_next_step : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ()} output_args : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} args : 1349997171 depend.output_id : 0 input_args_next_step : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ()} output_args : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} args : 1349997165 depend.output_id : 0 input_args_next_step : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ()} output_args : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} args : 1349997061 depend.output_id : 0 input_args_next_step : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ()} output_args : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} args : 1349997054 depend.output_id : 0 input_args_next_step : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ()} output_args : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} args : 1349997048 depend.output_id : 0 input_args_next_step : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ()} output_args : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} args : 1349997037 depend.output_id : 0 input_args_next_step : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ()} output_args : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} args : 1349997023 depend.output_id : 0 input_args_next_step : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ()} output_args : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} args : 1349996925 depend.output_id : 0 input_args_next_step : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ()} output_args : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} args : 1349996915 depend.output_id : 0 input_args_next_step : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ()} output_args : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} args : 1349996906 depend.output_id : 0 input_args_next_step : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ()} output_args : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} args : 1349996835 depend.output_id : 0 input_args_next_step : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ()} output_args : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',)} args : 1349996828 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {22059940: [{'Teint_Dans_La_Masse': 22059946, 'autre_refus': 22059947, 'environnement': 22059948, 'papier': 22059949, 'flou': 22059950, 'mal_croppe': 22059951, 'metal': 22059952, 'kraft': 22059953, 'Carton_gris': 22059954, 'cartonnette': 22059955, 'plastique': 22059956, 'Carton_brun': 22059957}]} input_args_next_step : {1349997357: ('0.006318627133115024',), 1349997353: ('0.006318627133115024',), 1349997349: ('0.006318627133115024',), 1349997340: ('0.006318627133115024',), 1349997191: ('0.006318627133115024',), 1349997187: ('0.006318627133115024',), 1349997181: ('0.006318627133115024',), 1349997171: ('0.006318627133115024',), 1349997165: ('0.006318627133115024',), 1349997061: ('0.006318627133115024',), 1349997054: ('0.006318627133115024',), 1349997048: ('0.006318627133115024',), 1349997037: ('0.006318627133115024',), 1349997023: ('0.006318627133115024',), 1349996925: ('0.006318627133115024',), 1349996915: ('0.006318627133115024',), 1349996906: ('0.006318627133115024',), 1349996835: ('0.006318627133115024',), 1349996828: ('0.006318627133115024',), 22059940: ()} output_args : {22059940: [{'Teint_Dans_La_Masse': 22059946, 'autre_refus': 22059947, 'environnement': 22059948, 'papier': 22059949, 'flou': 22059950, 'mal_croppe': 22059951, 'metal': 22059952, 'kraft': 22059953, 'Carton_gris': 22059954, 'cartonnette': 22059955, 'plastique': 22059956, 'Carton_brun': 22059957}]} args : 22059940 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 :20, first value : ('0.006318627133115024',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22059940) 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 (1349997357,1349997353,1349997349,1349997340,1349997191,1349997187,1349997181,1349997171,1349997165,1349997061,1349997054,1349997048,1349997037,1349997023,1349996925,1349996915,1349996906,1349996835,1349996828) Found this number of photos: 19 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349996828 begin to download photo : 1349996925 begin to download photo : 1349997054 begin to download photo : 1349997181 begin to download photo : 1349997349 download finish for photo 1349996925 begin to download photo : 1349997023 download finish for photo 1349997181 begin to download photo : 1349997187 download finish for photo 1349997349 begin to download photo : 1349997353 download finish for photo 1349996828 begin to download photo : 1349996835 download finish for photo 1349997054 begin to download photo : 1349997061 download finish for photo 1349996835 begin to download photo : 1349996906 download finish for photo 1349997187 begin to download photo : 1349997191 download finish for photo 1349997353 begin to download photo : 1349997357 download finish for photo 1349997023 begin to download photo : 1349997037 download finish for photo 1349997061 begin to download photo : 1349997165 download finish for photo 1349997357 download finish for photo 1349996906 begin to download photo : 1349996915 download finish for photo 1349997191 begin to download photo : 1349997340 download finish for photo 1349997037 begin to download photo : 1349997048 download finish for photo 1349997165 begin to download photo : 1349997171 download finish for photo 1349997340 download finish for photo 1349996915 download finish for photo 1349997171 download finish for photo 1349997048 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220599471743745860/ imagette220599501743745860/ imagette220599511743745860/ imagette220599521743745861/ imagette220599531743745861/ length of list_filenames : 19 ; length of list_pids : 19 ; length of list_args : 19 results_Auto_P22059940_04-04-2025_07_51_00.pdf 22059947 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=22059947 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220599471743745860 22059950 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=22059950 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220599501743745860 22059951 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=22059951 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220599511743745860 22059952 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=22059952 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220599521743745861 22059953 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=22059953 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220599531743745861 22059955 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=22059955 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349997236: '1743745740_3130140_1349996925_910ca7e99c0e05df2012d7e071b9059b_rle_crop_3747466989_0.png'} change filename to text .imagette220599551743745861/ imagette220599551743745861/1743745740_3130140_1349996925_910ca7e99c0e05df2012d7e071b9059b_rle_crop_3747466989_0.png.png imagette220599561743745861/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/5b5dd457eec51edf151d4d9af808dc3e_46681597.png imagette220599551743745861 22059956 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=22059956 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220599561743745861 22059946 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=22059946 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349997272: '1743745753_3130316_1349996915_86e7d25d3974b2083ed5956e4cb9bf76_rle_crop_3747467042_0.png', 1349997273: '1743745753_3130316_1349996906_9bf39f36f1325aa2f5ff08ac8fa92ca1_rle_crop_3747467048_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/242bcab2073b56504112545b19816306_76113696.png change filename to text .imagette220599461743745861/ imagette220599461743745861/1743745753_3130316_1349996906_9bf39f36f1325aa2f5ff08ac8fa92ca1_rle_crop_3747467048_0.png.png imagette220599461743745861/1743745753_3130316_1349996915_86e7d25d3974b2083ed5956e4cb9bf76_rle_crop_3747467042_0.png.png imagette220599541743745861/ imagette220599571743745861/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/0201277efe0a08d81c90d806e7ee8a65_21726359.png imagette220599461743745861 22059954 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=22059954 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220599541743745861 22059957 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=22059957 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220599571743745861 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22059940 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22059958,22059959,22059960,22059961,22059962,22059963,22059964,22059965,22059966,22059967,22059968,22059969?tags=Teint_Dans_La_Masse,autre_refus,environnement,papier,flou,mal_croppe,metal,kraft,Carton_gris,cartonnette,plastique,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1349997357] : ('0.006318627133115024',) no score found for photo 1349997357 We are sending mail with results at report@fotonower.com args[1349997353] : ('0.006318627133115024',) no score found for photo 1349997353 We are sending mail with results at report@fotonower.com args[1349997349] : ('0.006318627133115024',) no score found for photo 1349997349 We are sending mail with results at report@fotonower.com args[1349997340] : ('0.006318627133115024',) no score found for photo 1349997340 We are sending mail with results at report@fotonower.com args[1349997191] : ('0.006318627133115024',) no score found for photo 1349997191 We are sending mail with results at report@fotonower.com args[1349997187] : ('0.006318627133115024',) no score found for photo 1349997187 We are sending mail with results at report@fotonower.com args[1349997181] : ('0.006318627133115024',) no score found for photo 1349997181 We are sending mail with results at report@fotonower.com args[1349997171] : ('0.006318627133115024',) no score found for photo 1349997171 We are sending mail with results at report@fotonower.com args[1349997165] : ('0.006318627133115024',) no score found for photo 1349997165 We are sending mail with results at report@fotonower.com args[1349997061] : ('0.006318627133115024',) no score found for photo 1349997061 We are sending mail with results at report@fotonower.com args[1349997054] : ('0.006318627133115024',) no score found for photo 1349997054 We are sending mail with results at report@fotonower.com args[1349997048] : ('0.006318627133115024',) no score found for photo 1349997048 We are sending mail with results at report@fotonower.com args[1349997037] : ('0.006318627133115024',) no score found for photo 1349997037 We are sending mail with results at report@fotonower.com args[1349997023] : ('0.006318627133115024',) no score found for photo 1349997023 We are sending mail with results at report@fotonower.com args[1349996925] : ('0.006318627133115024',) no score found for photo 1349996925 We are sending mail with results at report@fotonower.com args[1349996915] : ('0.006318627133115024',) no score found for photo 1349996915 We are sending mail with results at report@fotonower.com args[1349996906] : ('0.006318627133115024',) no score found for photo 1349996906 We are sending mail with results at report@fotonower.com args[1349996835] : ('0.006318627133115024',) no score found for photo 1349996835 We are sending mail with results at report@fotonower.com args[1349996828] : ('0.006318627133115024',) no score found for photo 1349996828 We are sending mail with results at report@fotonower.com refus_total : 0.006318627133115024 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=22059940 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_P22059940_04-04-2025_07_51_00.pdf results_Auto_P22059940_04-04-2025_07_51_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22059940_04-04-2025_07_51_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','22059940','results_Auto_P22059940_04-04-2025_07_51_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22059940_04-04-2025_07_51_00.pdf','pdf','','0.16','0.006318627133115024') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22059940]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349997357, 1349997353, 1349997349, 1349997340, 1349997191, 1349997187, 1349997181, 1349997171, 1349997165, 1349997061, 1349997054, 1349997048, 1349997037, 1349997023, 1349996925, 1349996915, 1349996906, 1349996835, 1349996828] map_info['map_portfolio_photo'] : {22059940: [1349997357, 1349997353, 1349997349, 1349997340, 1349997191, 1349997187, 1349997181, 1349997171, 1349997165, 1349997061, 1349997054, 1349997048, 1349997037, 1349997023, 1349996925, 1349996915, 1349996906, 1349996835, 1349996828]} final : False mtd_id 4302 list_pids : [1349997357, 1349997353, 1349997349, 1349997340, 1349997191, 1349997187, 1349997181, 1349997171, 1349997165, 1349997061, 1349997054, 1349997048, 1349997037, 1349997023, 1349996925, 1349996915, 1349996906, 1349996835, 1349996828] 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, '2723742') ('4302', '22059940', '1349997357', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997353', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997349', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997340', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997191', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997187', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997181', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997171', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997165', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997061', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997054', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997048', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997037', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997023', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349996925', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349996915', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349996906', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349996835', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349996828', None, None, None, None, None, '2723742') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22059940', '1349997357', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997353', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997349', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997340', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997191', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997187', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997181', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997171', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997165', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997061', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997054', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997048', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997037', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997023', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349996925', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349996915', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349996906', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349996835', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349996828', None, None, None, None, None, '2723742')] time used for this insertion : 0.014821052551269531 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.528653621673584 time spend to save output : 0.015205860137939453 total time spend for step 4 : 4.543859481811523 step5:split_time_score Fri Apr 4 07:51:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22059940'] 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 : [('22059940',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22059940) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349997349: {'path': 'temp/1743745860_3287608_1349997349_2b165b42c10d755de1e1fd368c38359e.jpg', 'extension': 'jpg'}, 1349997353: {'path': 'temp/1743745860_3287608_1349997353_b4438f00e8e3eaf4dc8f66610f1a1eb4.jpg', 'extension': 'jpg'}, 1349997357: {'path': 'temp/1743745860_3287608_1349997357_ebb64e1eba92d6f1849567004881a563.jpg', 'extension': 'jpg'}, 1349997181: {'path': 'temp/1743745860_3287608_1349997181_406a146d92a14d19697cfa416935937d.jpg', 'extension': 'jpg'}, 1349997187: {'path': 'temp/1743745860_3287608_1349997187_24bb2238f3a47ceb836f52f6d0b931f3.jpg', 'extension': 'jpg'}, 1349997191: {'path': 'temp/1743745860_3287608_1349997191_566aec9e38dc5849fab39683b1372e35.jpg', 'extension': 'jpg'}, 1349997340: {'path': 'temp/1743745860_3287608_1349997340_ccc253653b8354a93c9b5dba42febc4e.jpg', 'extension': 'jpg'}, 1349996828: {'path': 'temp/1743745860_3287608_1349996828_d02acc06c516bf379fbf9147ff98e71e.jpg', 'extension': 'jpg'}, 1349996835: {'path': 'temp/1743745860_3287608_1349996835_e150a34e03928877ca39cae76b7f46e7.jpg', 'extension': 'jpg'}, 1349996906: {'path': 'temp/1743745860_3287608_1349996906_9bf39f36f1325aa2f5ff08ac8fa92ca1.jpg', 'extension': 'jpg'}, 1349996915: {'path': 'temp/1743745860_3287608_1349996915_86e7d25d3974b2083ed5956e4cb9bf76.jpg', 'extension': 'jpg'}, 1349997054: {'path': 'temp/1743745860_3287608_1349997054_9a71f0607273c35cd8928306e4c2e7fe.jpg', 'extension': 'jpg'}, 1349997061: {'path': 'temp/1743745860_3287608_1349997061_2d6fd462942f61c19bfba55bc89fd99d.jpg', 'extension': 'jpg'}, 1349997165: {'path': 'temp/1743745860_3287608_1349997165_1aa93ac18963f581b2f8ce42cef3bf3f.jpg', 'extension': 'jpg'}, 1349997171: {'path': 'temp/1743745860_3287608_1349997171_26cb7e5ba2249a14dbdc5bae0a541d19.jpg', 'extension': 'jpg'}, 1349996925: {'path': 'temp/1743745860_3287608_1349996925_910ca7e99c0e05df2012d7e071b9059b.jpg', 'extension': 'jpg'}, 1349997023: {'path': 'temp/1743745860_3287608_1349997023_58f2b7c78c0b41c0370d65ce702ab8f6.jpg', 'extension': 'jpg'}, 1349997037: {'path': 'temp/1743745860_3287608_1349997037_faca7299aaddf130bfbd92a0e1b624dd.jpg', 'extension': 'jpg'}, 1349997048: {'path': 'temp/1743745860_3287608_1349997048_1839d6d8ef1c0f5e25d0954e3392ccde.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 = 22059940; (('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 = 22059940 group by h (('07', 19),) 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=22059940 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 (22059940) 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 (22059940) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04042025 22059940 Nombre de photos uploadées : 19 / 23040 (0%) 04042025 22059940 Nombre de photos taguées (types de déchets): 0 / 19 (0%) 04042025 22059940 Nombre de photos taguées (volume) : 0 / 19 (0%) [{'photo_id': 1349996835, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/e150a34e03928877ca39cae76b7f46e7.jpg', 'username': None, 'uploaded_at': 1743745568, 'text': 'image_04042025_07_45_04_10150.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349996828, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/d02acc06c516bf379fbf9147ff98e71e.jpg', 'username': None, 'uploaded_at': 1743745568, 'text': 'image_04042025_07_45_14_10137.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349996925, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/910ca7e99c0e05df2012d7e071b9059b.jpg', 'username': None, 'uploaded_at': 1743745627, 'text': 'image_04042025_07_45_55_10134.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349996915, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/86e7d25d3974b2083ed5956e4cb9bf76.jpg', 'username': None, 'uploaded_at': 1743745627, 'text': 'image_04042025_07_46_04_9137.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 4.5299530029296875e-06 elapsed_time : order_list_meta_photo_and_scores 1.52587890625e-05 ??????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0011782646179199219 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22059940, '2025-04-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1715710,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.021758556365966797 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= 1715710 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1715710, 'dashboard_run_id': 1724271, 'mtr_portfolio_id': 22057769, 'dashboard_result_id': 9876711, '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_P22057769_04-04-2025_07_22_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22057775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22057776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22057777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22057778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22057779, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22057780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22057781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22057782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22057783, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22057784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22057785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22057786, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1724271, 'mtr_portfolio_id': 22058292, 'dashboard_result_id': 9876712, '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_P22058292_04-04-2025_07_32_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22058378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22058379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22058380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22058381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22058382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22058383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22058384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22058385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22058386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22058387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22058388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22058389, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1724271, 'mtr_portfolio_id': 22059269, 'dashboard_result_id': 9876713, '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_P22059269_04-04-2025_07_47_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22059273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22059274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22059275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22059276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22059277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22059278, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22059279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22059280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22059281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22059282, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22059283, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22059284, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1724271, 'mtr_portfolio_id': 22059940, 'dashboard_result_id': 9876714, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] 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 = 22057769 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': 2723581, 'mtr_portfolio_id': 22057769, 'created_at': datetime.datetime(2025, 4, 4, 7, 22, 59), 'result': '0.05601251464793865', 'result_long': None, 'result_double': None}] Qualite : 0.05601251464793865 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22057769 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22057769_04-04-2025_07_22_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22057769 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_P22057769_04-04-2025_07_22_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22057775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22057776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22057777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22057778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22057779, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22057780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22057781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22057782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22057783, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22057784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22057785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22057786, 'pht': 3726}}" where mtr_portfolio_id = 22057769 and dashboard_run_id = 1724271 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`=22057769 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9876711, 0.05601251464793865, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22057769_04-04-2025_07_22_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22057775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22057776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22057777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22057778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22057779, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22057780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22057781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22057782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22057783, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22057784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22057785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22057786, '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 = 22058292 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': 2723620, 'mtr_portfolio_id': 22058292, 'created_at': datetime.datetime(2025, 4, 4, 7, 32, 31), 'result': '0.06062983961213723', 'result_long': None, 'result_double': None}] Qualite : 0.06062983961213723 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22058292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22058292_04-04-2025_07_32_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22058292 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_P22058292_04-04-2025_07_32_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22058378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22058379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22058380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22058381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22058382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22058383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22058384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22058385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22058386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22058387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22058388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22058389, 'pht': 3726}}" where mtr_portfolio_id = 22058292 and dashboard_run_id = 1724271 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`=22058292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9876712, 0.06062983961213723, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22058292_04-04-2025_07_32_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22058378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22058379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22058380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22058381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22058382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22058383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22058384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22058385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22058386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22058387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22058388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22058389, '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 = 22059269 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': 2723693, 'mtr_portfolio_id': 22059269, 'created_at': datetime.datetime(2025, 4, 4, 7, 47, 1), 'result': '0.05096592707842609', 'result_long': None, 'result_double': None}] Qualite : 0.05096592707842609 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22059269 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22059269_04-04-2025_07_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22059269 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_P22059269_04-04-2025_07_47_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22059273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22059274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22059275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22059276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22059277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22059278, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22059279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22059280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22059281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22059282, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22059283, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22059284, 'pht': 3726}}" where mtr_portfolio_id = 22059269 and dashboard_run_id = 1724271 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`=22059269 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9876713, 0.05096592707842609, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22059269_04-04-2025_07_47_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22059273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22059274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22059275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22059276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22059277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22059278, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22059279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22059280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22059281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22059282, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22059283, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22059284, '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 = 22059940 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': 2723742, 'mtr_portfolio_id': 22059940, 'created_at': datetime.datetime(2025, 4, 4, 7, 50, 59), 'result': '0.006318627133115024', 'result_long': None, 'result_double': None}] Qualite : 0.006318627133115024 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22059940 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22059940_04-04-2025_07_51_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22059940 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_P22059940_04-04-2025_07_51_00.pdf'}" where mtr_portfolio_id = 22059940 and dashboard_run_id = 1724271 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`=22059940 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9876714, 0.006318627133115024, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22059940_04-04-2025_07_51_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22059946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22059947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22059948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22059949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22059950, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22059951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22059952, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22059953, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22059954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22059955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22059956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22059957, '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 (22057769,22058292,22059269,22059940) result : ((1349990694,), (1349990714,), (1349990728,), (1349991127,), (1349991174,), (1349991215,), (1349991255,), (1349991292,), (1349991327,), (1349991558,), (1349991581,), (1349991586,), (1349991591,), (1349991595,), (1349991623,), (1349991626,), (1349991651,), (1349991677,), (1349991704,), (1349991728,), (1349992448,), (1349992467,), (1349992493,), (1349992554,), (1349992765,), (1349992816,), (1349992824,), (1349992851,), (1349992882,), (1349992887,), (1349992916,), (1349992920,), (1349992927,), (1349992931,), (1349993021,), (1349993024,), (1349993027,), (1349993030,), (1349993033,), (1349993050,), (1349993097,), (1349993132,), (1349993159,), (1349993191,), (1349993198,), (1349993218,), (1349993229,), (1349993235,), (1349993244,), (1349993256,), (1349993264,), (1349993272,), (1349993275,), (1349993278,), (1349993279,), (1349993280,), (1349993284,), (1349993337,), (1349993342,), (1349993376,), (1349993386,), (1349993392,), (1349993397,), (1349993406,), (1349993425,), (1349993430,), (1349993463,), (1349993482,), (1349993525,), (1349993551,), (1349993555,), (1349993568,), (1349993573,), (1349993585,), (1349993636,), (1349993772,), (1349993795,), (1349993847,), (1349993852,), (1349993856,), (1349993861,), (1349993866,), (1349993302,), (1349993308,), (1349993319,), (1349993329,), (1349993354,), (1349993356,), (1349993361,), (1349993365,), (1349993370,), (1349993441,), (1349993444,), (1349993450,), (1349993453,), (1349993603,), (1349993607,), (1349993614,), (1349993620,), (1349993629,), (1349993683,), (1349993705,), (1349993722,), (1349993754,), (1349993885,), (1349993888,), (1349993906,), (1349993938,), (1349993943,), (1349993967,), (1349993985,), (1349993995,), (1349994010,), (1349994014,), (1349994017,), (1349994024,), (1349994032,), (1349994036,), (1349994039,), (1349994041,), (1349994044,), (1349994050,), (1349994062,), (1349994068,), (1349994070,), (1349994121,), (1349994137,), (1349994146,), (1349994150,), (1349994153,), (1349994156,), (1349994164,), (1349994167,), (1349994172,), (1349994181,), (1349994196,), (1349994265,), (1349994292,), (1349994320,), (1349994430,), (1349994434,), (1349994451,), (1349994467,), (1349994471,), (1349994520,), (1349994527,), (1349994534,), (1349994542,), (1349994545,), (1349994648,), (1349994652,), (1349994678,), (1349994683,), (1349994823,), (1349994829,), (1349994836,), (1349994839,), (1349994845,), (1349994848,), (1349994893,), (1349994883,), (1349994887,), (1349994889,), (1349994890,), (1349994933,), (1349994939,), (1349994947,), (1349994950,), (1349995039,), (1349995050,), (1349995070,), (1349995082,), (1349995101,), (1349995105,), (1349995161,), (1349995173,), (1349995179,), (1349995496,), (1349995526,), (1349995533,), (1349995543,), (1349995666,), (1349995691,), (1349995716,), (1349995748,), (1349996044,), (1349996074,), (1349996096,), (1349996202,), (1349996272,), (1349996275,), (1349996326,), (1349996330,), (1349996334,), (1349996407,), (1349996417,), (1349996430,), (1349996439,), (1349996447,), (1349996452,), (1349996508,), (1349996579,), (1349996585,), (1349996590,), (1349996633,), (1349996640,), (1349996648,), (1349996653,), (1349996656,), (1349996660,), (1349996695,), (1349996701,), (1349996710,), (1349996714,), (1349996722,), (1349996768,), (1349996772,), (1349996778,), (1349996782,), (1349996786,), (1349996789,), (1349996842,), (1349996828,), (1349996835,), (1349996906,), (1349996915,), (1349996925,), (1349997023,), (1349997037,), (1349997048,), (1349997054,), (1349997061,), (1349997165,), (1349997171,), (1349997181,), (1349997187,), (1349997191,), (1349997340,), (1349997349,), (1349997353,), (1349997357,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04042025': {'nb_upload': 19, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22059940]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349997357, 1349997353, 1349997349, 1349997340, 1349997191, 1349997187, 1349997181, 1349997171, 1349997165, 1349997061, 1349997054, 1349997048, 1349997037, 1349997023, 1349996925, 1349996915, 1349996906, 1349996835, 1349996828] map_info['map_portfolio_photo'] : {22059940: [1349997357, 1349997353, 1349997349, 1349997340, 1349997191, 1349997187, 1349997181, 1349997171, 1349997165, 1349997061, 1349997054, 1349997048, 1349997037, 1349997023, 1349996925, 1349996915, 1349996906, 1349996835, 1349996828]} final : True mtd_id 4302 list_pids : [1349997357, 1349997353, 1349997349, 1349997340, 1349997191, 1349997187, 1349997181, 1349997171, 1349997165, 1349997061, 1349997054, 1349997048, 1349997037, 1349997023, 1349996925, 1349996915, 1349996906, 1349996835, 1349996828] Looping around the photos to save general results len do output : 1 /22059940Didn'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, '2723742') ('4302', '22059940', '1349997357', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997353', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997349', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997340', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997191', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997187', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997181', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997171', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997165', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997061', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997054', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997048', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997037', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349997023', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349996925', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349996915', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349996906', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349996835', None, None, None, None, None, '2723742') ('4302', None, None, None, None, None, None, None, '2723742') ('4302', '22059940', '1349996828', None, None, None, None, None, '2723742') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '22059940', 'None', None, None, None, None, '2723742'), ('4302', '22059940', '1349997357', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997353', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997349', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997340', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997191', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997187', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997181', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997171', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997165', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997061', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997054', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997048', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997037', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349997023', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349996925', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349996915', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349996906', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349996835', None, None, None, None, None, '2723742'), ('4302', '22059940', '1349996828', None, None, None, None, None, '2723742')] time used for this insertion : 0.014404058456420898 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3256237506866455 time spend to save output : 0.014745712280273438 total time spend for step 5 : 0.34036946296691895 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 (2723742) 2.56user 2.22system 0:09.61elapsed 49%CPU (0avgtext+0avgdata 160388maxresident)k 31088inputs+11248outputs (150major+78730minor)pagefaults 0swaps