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 : 3395355 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 (2775757) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2775757) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22561424 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2775757'] with mtr_portfolio_ids : ['22561424'] and first list_photo_ids : [] new path : /proc/3395355/ Name: python3 Umask: 0002 State: R (running) Tgid: 3395355 Ngid: 0 Pid: 3395355 PPid: 3395354 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3395355 NSpid: 3395355 NSpgid: 3393772 NSsid: 3393772 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98636 kB VmRSS: 98636 kB RssAnon: 60196 kB RssFile: 38440 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 552 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: 47 nonvoluntary_ctxt_switches: 138 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3395355', 'Ngid': '0', 'Pid': '3395355', 'PPid': '3395354', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3395355', 'NSpid': '3395355', 'NSpgid': '3393772', 'NSsid': '3393772', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98636 kB', 'VmRSS': '98636 kB', 'RssAnon': '60196 kB', 'RssFile': '38440 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '552 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': '47', 'nonvoluntary_ctxt_switches': '138'} ('datou_batch_current', '3395355', '1107228', '0', '1107228', '865976', '98636', b'', 'marlene', '2775757') 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 (22561424) 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 (2775757 ) ) 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 (22561424) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1354856804, 'portfolio_id': 22561424}, {'photo_id': 1354856789, 'portfolio_id': 22561424}, {'photo_id': 1354856785, 'portfolio_id': 22561424}, {'photo_id': 1354856782, 'portfolio_id': 22561424}, {'photo_id': 1354856656, 'portfolio_id': 22561424}, {'photo_id': 1354856635, 'portfolio_id': 22561424}, {'photo_id': 1354856633, 'portfolio_id': 22561424}, {'photo_id': 1354856629, 'portfolio_id': 22561424}, {'photo_id': 1354856267, 'portfolio_id': 22561424}, {'photo_id': 1354856239, 'portfolio_id': 22561424}, {'photo_id': 1354856208, 'portfolio_id': 22561424}, {'photo_id': 1354856169, 'portfolio_id': 22561424}, {'photo_id': 1354856004, 'portfolio_id': 22561424}, {'photo_id': 1354855585, 'portfolio_id': 22561424}, {'photo_id': 1354855553, 'portfolio_id': 22561424}, {'photo_id': 1354855524, 'portfolio_id': 22561424}] map_portfolio_id_photo_id: {22561424: [1354856804, 1354856789, 1354856785, 1354856782, 1354856656, 1354856635, 1354856633, 1354856629, 1354856267, 1354856239, 1354856208, 1354856169, 1354856004, 1354855585, 1354855553, 1354855524]} ##### 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.015098333358764648 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Apr 30 19:35:27 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 (22561424) 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 : 22561424 get user id for portfolio 22561424 get sub ptf for main ptf 22561424, type 3726 and hashtags ['Carton_brun', 'flou', 'Teint_Dans_La_Masse', 'metal', 'autre_refus', 'kraft', 'mal_croppe', 'Carton_gris', 'plastique', 'environnement', 'papier', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22561424 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','Teint_Dans_La_Masse','metal','autre_refus','kraft','mal_croppe','Carton_gris','plastique','environnement','papier','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22561424 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','Teint_Dans_La_Masse','metal','autre_refus','kraft','mal_croppe','Carton_gris','plastique','environnement','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__30042025_19_30_05_10135_3726_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__30042025_19_30_05_10135_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__30042025_19_30_05_10135_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__30042025_19_30_05_10135_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__30042025_19_30_05_10135_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__30042025_19_30_05_10135_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__30042025_19_30_05_10135_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__30042025_19_30_05_10135_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__30042025_19_30_05_10135_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__30042025_19_30_05_10135_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__30042025_19_30_05_10135_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__30042025_19_30_05_10135_3726_cartonnette_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)[[22561424, 22561453, 3726, 0.5, 2107753024, 979], [22561424, 22561454, 3726, 0.5, 492777938, 979], [22561424, 22561455, 3726, 0.5, 2107752385, 979], [22561424, 22561456, 3726, 0.5, 492628673, 979], [22561424, 22561457, 3726, 0.5, 2107752406, 979], [22561424, 22561458, 3726, 0.5, 493202403, 979], [22561424, 22561459, 3726, 0.5, 2107755527, 979], [22561424, 22561460, 3726, 0.5, 2107753020, 979], [22561424, 22561461, 3726, 0.5, 492725882, 979], [22561424, 22561462, 3726, 0.5, 493012381, 979], [22561424, 22561463, 3726, 0.5, 492668766, 979], [22561424, 22561464, 3726, 0.5, 702398920, 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`=22561424 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','Teint_Dans_La_Masse','metal','autre_refus','kraft','mal_croppe','Carton_gris','plastique','environnement','papier','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22561424 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','Teint_Dans_La_Masse','metal','autre_refus','kraft','mal_croppe','Carton_gris','plastique','environnement','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22561424, 'sub_port_id': 22561453, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994829, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 27)}, 'flou': {'main_port_id': 22561424, 'sub_port_id': 22561454, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994830, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 22561424, 'sub_port_id': 22561455, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994831, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 27)}, 'metal': {'main_port_id': 22561424, 'sub_port_id': 22561456, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994832, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 27)}, 'autre_refus': {'main_port_id': 22561424, 'sub_port_id': 22561457, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994833, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 27)}, 'kraft': {'main_port_id': 22561424, 'sub_port_id': 22561458, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994834, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 27)}, 'mal_croppe': {'main_port_id': 22561424, 'sub_port_id': 22561459, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994835, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 27)}, 'Carton_gris': {'main_port_id': 22561424, 'sub_port_id': 22561460, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994836, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 27)}, 'plastique': {'main_port_id': 22561424, 'sub_port_id': 22561461, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994837, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 27)}, 'environnement': {'main_port_id': 22561424, 'sub_port_id': 22561462, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994838, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 27)}, 'papier': {'main_port_id': 22561424, 'sub_port_id': 22561463, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994839, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 27)}, 'cartonnette': {'main_port_id': 22561424, 'sub_port_id': 22561464, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994840, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22561453 , 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=22561424 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 (22561453) result : ((1354856769,), (1354856770,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22561424) result : ((1354855524,), (1354855553,), (1354855585,), (1354856004,), (1354856169,), (1354856208,), (1354856239,), (1354856267,), (1354856629,), (1354856633,), (1354856635,), (1354856656,), (1354856782,), (1354856785,), (1354856789,), (1354856804,)) 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 22561454 , 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=22561424 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 (22561454) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22561424) result : ((1354855524,), (1354855553,), (1354855585,), (1354856004,), (1354856169,), (1354856208,), (1354856239,), (1354856267,), (1354856629,), (1354856633,), (1354856635,), (1354856656,), (1354856782,), (1354856785,), (1354856789,), (1354856804,)) 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 22561455 , 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=22561424 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 (22561455) result : ((1354856765,), (1354856766,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22561424) result : ((1354855524,), (1354855553,), (1354855585,), (1354856004,), (1354856169,), (1354856208,), (1354856239,), (1354856267,), (1354856629,), (1354856633,), (1354856635,), (1354856656,), (1354856782,), (1354856785,), (1354856789,), (1354856804,)) 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 22561456 , 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=22561424 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 (22561456) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22561424) result : ((1354855524,), (1354855553,), (1354855585,), (1354856004,), (1354856169,), (1354856208,), (1354856239,), (1354856267,), (1354856629,), (1354856633,), (1354856635,), (1354856656,), (1354856782,), (1354856785,), (1354856789,), (1354856804,)) 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 22561457 , 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=22561424 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 (22561457) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22561424) result : ((1354855524,), (1354855553,), (1354855585,), (1354856004,), (1354856169,), (1354856208,), (1354856239,), (1354856267,), (1354856629,), (1354856633,), (1354856635,), (1354856656,), (1354856782,), (1354856785,), (1354856789,), (1354856804,)) 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 22561458 , 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=22561424 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 (22561458) result : ((1354856775,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22561424) result : ((1354855524,), (1354855553,), (1354855585,), (1354856004,), (1354856169,), (1354856208,), (1354856239,), (1354856267,), (1354856629,), (1354856633,), (1354856635,), (1354856656,), (1354856782,), (1354856785,), (1354856789,), (1354856804,)) 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 22561459 , 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=22561424 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 (22561459) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22561424) result : ((1354855524,), (1354855553,), (1354855585,), (1354856004,), (1354856169,), (1354856208,), (1354856239,), (1354856267,), (1354856629,), (1354856633,), (1354856635,), (1354856656,), (1354856782,), (1354856785,), (1354856789,), (1354856804,)) 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 22561460 , 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=22561424 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 (22561460) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22561424) result : ((1354855524,), (1354855553,), (1354855585,), (1354856004,), (1354856169,), (1354856208,), (1354856239,), (1354856267,), (1354856629,), (1354856633,), (1354856635,), (1354856656,), (1354856782,), (1354856785,), (1354856789,), (1354856804,)) 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 22561461 , 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=22561424 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 (22561461) result : ((1354856772,), (1354856773,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22561424) result : ((1354855524,), (1354855553,), (1354855585,), (1354856004,), (1354856169,), (1354856208,), (1354856239,), (1354856267,), (1354856629,), (1354856633,), (1354856635,), (1354856656,), (1354856782,), (1354856785,), (1354856789,), (1354856804,)) 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 22561462 , 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=22561424 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 (22561462) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22561424) result : ((1354855524,), (1354855553,), (1354855585,), (1354856004,), (1354856169,), (1354856208,), (1354856239,), (1354856267,), (1354856629,), (1354856633,), (1354856635,), (1354856656,), (1354856782,), (1354856785,), (1354856789,), (1354856804,)) 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 22561463 , 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=22561424 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 (22561463) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22561424) result : ((1354855524,), (1354855553,), (1354855585,), (1354856004,), (1354856169,), (1354856208,), (1354856239,), (1354856267,), (1354856629,), (1354856633,), (1354856635,), (1354856656,), (1354856782,), (1354856785,), (1354856789,), (1354856804,)) 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 22561464 , 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=22561424 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 (22561464) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22561424) result : ((1354855524,), (1354855553,), (1354855585,), (1354856004,), (1354856169,), (1354856208,), (1354856239,), (1354856267,), (1354856629,), (1354856633,), (1354856635,), (1354856656,), (1354856782,), (1354856785,), (1354856789,), (1354856804,)) 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`=22561424 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','Teint_Dans_La_Masse','metal','autre_refus','kraft','mal_croppe','Carton_gris','plastique','environnement','papier','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22561424 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','Teint_Dans_La_Masse','metal','autre_refus','kraft','mal_croppe','Carton_gris','plastique','environnement','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__30042025_19_30_05_10135_4417_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__30042025_19_30_05_10135_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__30042025_19_30_05_10135_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__30042025_19_30_05_10135_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__30042025_19_30_05_10135_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__30042025_19_30_05_10135_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__30042025_19_30_05_10135_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__30042025_19_30_05_10135_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__30042025_19_30_05_10135_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__30042025_19_30_05_10135_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__30042025_19_30_05_10135_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__30042025_19_30_05_10135_4417_cartonnette_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)[[22561424, 22561465, 4417, 0.5, 2107753024, 979], [22561424, 22561466, 4417, 0.5, 492777938, 979], [22561424, 22561467, 4417, 0.5, 2107752385, 979], [22561424, 22561468, 4417, 0.5, 492628673, 979], [22561424, 22561469, 4417, 0.5, 2107752406, 979], [22561424, 22561470, 4417, 0.5, 493202403, 979], [22561424, 22561471, 4417, 0.5, 2107755527, 979], [22561424, 22561472, 4417, 0.5, 2107753020, 979], [22561424, 22561473, 4417, 0.5, 492725882, 979], [22561424, 22561474, 4417, 0.5, 493012381, 979], [22561424, 22561475, 4417, 0.5, 492668766, 979], [22561424, 22561476, 4417, 0.5, 702398920, 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`=22561424 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','Teint_Dans_La_Masse','metal','autre_refus','kraft','mal_croppe','Carton_gris','plastique','environnement','papier','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22561424 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','Teint_Dans_La_Masse','metal','autre_refus','kraft','mal_croppe','Carton_gris','plastique','environnement','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22561424, 'sub_port_id': 22561465, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994841, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 28)}, 'flou': {'main_port_id': 22561424, 'sub_port_id': 22561466, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994842, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 22561424, 'sub_port_id': 22561467, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994843, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 28)}, 'metal': {'main_port_id': 22561424, 'sub_port_id': 22561468, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994844, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 28)}, 'autre_refus': {'main_port_id': 22561424, 'sub_port_id': 22561469, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994845, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 28)}, 'kraft': {'main_port_id': 22561424, 'sub_port_id': 22561470, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994846, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 28)}, 'mal_croppe': {'main_port_id': 22561424, 'sub_port_id': 22561471, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994847, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 28)}, 'Carton_gris': {'main_port_id': 22561424, 'sub_port_id': 22561472, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994848, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 28)}, 'plastique': {'main_port_id': 22561424, 'sub_port_id': 22561473, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994849, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 28)}, 'environnement': {'main_port_id': 22561424, 'sub_port_id': 22561474, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994850, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 28)}, 'papier': {'main_port_id': 22561424, 'sub_port_id': 22561475, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994851, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 28)}, 'cartonnette': {'main_port_id': 22561424, 'sub_port_id': 22561476, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14994852, 'last_updated_at': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 19, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 19, 35, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22561465,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22561453 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22561466,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22561454 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22561467,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22561455 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22561468,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22561456 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22561469,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22561457 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22561470,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22561458 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22561471,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22561459 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22561472,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22561460 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22561473,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22561461 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22561474,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22561462 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22561475,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22561463 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22561476,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22561464 lien utilise dans velours : https://www.fotonower.com/velours/22561465,22561466,22561467,22561468,22561469,22561470,22561471,22561472,22561473,22561474,22561475,22561476?tags=Carton_brun,flou,Teint_Dans_La_Masse,metal,autre_refus,kraft,mal_croppe,Carton_gris,plastique,environnement,papier,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22561424]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1354856804, 1354856789, 1354856785, 1354856782, 1354856656, 1354856635, 1354856633, 1354856629, 1354856267, 1354856239, 1354856208, 1354856169, 1354856004, 1354855585, 1354855553, 1354855524] map_info['map_portfolio_photo'] : {22561424: [1354856804, 1354856789, 1354856785, 1354856782, 1354856656, 1354856635, 1354856633, 1354856629, 1354856267, 1354856239, 1354856208, 1354856169, 1354856004, 1354855585, 1354855553, 1354855524]} final : False mtd_id 4302 list_pids : [1354856804, 1354856789, 1354856785, 1354856782, 1354856656, 1354856635, 1354856633, 1354856629, 1354856267, 1354856239, 1354856208, 1354856169, 1354856004, 1354855585, 1354855553, 1354855524] Looping around the photos to save general results len do output : 1 /22561424. 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, '2775757') ('4302', '22561424', '1354856804', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856789', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856785', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856782', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856656', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856635', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856633', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856629', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856267', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856239', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856208', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856169', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856004', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354855585', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354855553', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354855524', None, None, None, None, None, '2775757') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '22561424', "{'Carton_brun': 22561453, 'flou': 22561454, 'Teint_Dans_La_Masse': 22561455, 'metal': 22561456, 'autre_refus': 22561457, 'kraft': 22561458, 'mal_croppe': 22561459, 'Carton_gris': 22561460, 'plastique': 22561461, 'environnement': 22561462, 'papier': 22561463, 'cartonnette': 22561464}", None, None, None, None, '2775757'), ('4302', '22561424', '1354856804', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856789', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856785', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856782', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856656', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856635', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856633', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856629', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856267', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856239', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856208', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856169', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856004', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354855585', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354855553', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354855524', None, None, None, None, None, '2775757')] time used for this insertion : 0.015873193740844727 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0428431034088135 time spend to save output : 0.017131328582763672 total time spend for step 1 : 2.059974431991577 step2:final Wed Apr 30 19:35:29 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 (22561424) 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 22561424 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1354855585,1354855553,1354855524,1354856267,1354856239,1354856208,1354856169,1354856656,1354856004,1354856635,1354856633,1354856629,1354856804,1354856789,1354856785,1354856782); 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([22561424]) Inside saveOutput : final : False verbose : True original output for save of step final : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ('0.07003273769441548',)} new output for save of step final : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ('0.07003273769441548',)} [1354856804, 1354856789, 1354856785, 1354856782, 1354856656, 1354856635, 1354856633, 1354856629, 1354856267, 1354856239, 1354856208, 1354856169, 1354856004, 1354855585, 1354855553, 1354855524] map_info['map_portfolio_photo'] : {22561424: [1354856804, 1354856789, 1354856785, 1354856782, 1354856656, 1354856635, 1354856633, 1354856629, 1354856267, 1354856239, 1354856208, 1354856169, 1354856004, 1354855585, 1354855553, 1354855524]} final : False mtd_id 4302 list_pids : [1354856804, 1354856789, 1354856785, 1354856782, 1354856656, 1354856635, 1354856633, 1354856629, 1354856267, 1354856239, 1354856208, 1354856169, 1354856004, 1354855585, 1354855553, 1354855524] Looping around the photos to save general results len do output : 16 /1354856804.Didn't retrieve data . /1354856789.Didn't retrieve data . /1354856785.Didn't retrieve data . /1354856782.Didn't retrieve data . /1354856656.Didn't retrieve data . /1354856635.Didn't retrieve data . /1354856633.Didn't retrieve data . /1354856629.Didn't retrieve data . /1354856267.Didn't retrieve data . /1354856239.Didn't retrieve data . /1354856208.Didn't retrieve data . /1354856169.Didn't retrieve data . /1354856004.Didn't retrieve data . /1354855585.Didn't retrieve data . /1354855553.Didn't retrieve data . /1354855524.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, '2775757') ('4302', '22561424', '1354856804', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856789', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856785', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856782', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856656', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856635', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856633', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856629', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856267', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856239', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856208', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856169', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856004', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354855585', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354855553', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354855524', None, None, None, None, None, '2775757') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '22561424', '1354856804', '0.07003273769441548', None, None, None, None, '2775757'), ('4302', '22561424', '1354856789', '0.07003273769441548', None, None, None, None, '2775757'), ('4302', '22561424', '1354856785', '0.07003273769441548', None, None, None, None, '2775757'), ('4302', '22561424', '1354856782', '0.07003273769441548', None, None, None, None, '2775757'), ('4302', '22561424', '1354856656', '0.07003273769441548', None, None, None, None, '2775757'), ('4302', '22561424', '1354856635', '0.07003273769441548', None, None, None, None, '2775757'), ('4302', '22561424', '1354856633', '0.07003273769441548', None, None, None, None, '2775757'), ('4302', '22561424', '1354856629', '0.07003273769441548', None, None, None, None, '2775757'), ('4302', '22561424', '1354856267', '0.07003273769441548', None, None, None, None, '2775757'), ('4302', '22561424', '1354856239', '0.07003273769441548', None, None, None, None, '2775757'), ('4302', '22561424', '1354856208', '0.07003273769441548', None, None, None, None, '2775757'), ('4302', '22561424', '1354856169', '0.07003273769441548', None, None, None, None, '2775757'), ('4302', '22561424', '1354856004', '0.07003273769441548', None, None, None, None, '2775757'), ('4302', '22561424', '1354855585', '0.07003273769441548', None, None, None, None, '2775757'), ('4302', '22561424', '1354855553', '0.07003273769441548', None, None, None, None, '2775757'), ('4302', '22561424', '1354855524', '0.07003273769441548', None, None, None, None, '2775757')] time used for this insertion : 0.019947052001953125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.031998395919799805 time spend to save output : 0.023627042770385742 total time spend for step 2 : 0.05562543869018555 step3:velours_tree Wed Apr 30 19:35:29 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 : {22561424: [{'Carton_brun': 22561453, 'flou': 22561454, 'Teint_Dans_La_Masse': 22561455, 'metal': 22561456, 'autre_refus': 22561457, 'kraft': 22561458, 'mal_croppe': 22561459, 'Carton_gris': 22561460, 'plastique': 22561461, 'environnement': 22561462, 'papier': 22561463, 'cartonnette': 22561464}]} input_args_next_step : {22561424: ()} output_args : {22561424: [{'Carton_brun': 22561453, 'flou': 22561454, 'Teint_Dans_La_Masse': 22561455, 'metal': 22561456, 'autre_refus': 22561457, 'kraft': 22561458, 'mal_croppe': 22561459, 'Carton_gris': 22561460, 'plastique': 22561461, 'environnement': 22561462, 'papier': 22561463, 'cartonnette': 22561464}]} args : 22561424 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 : ({'Carton_brun': 22561453, 'flou': 22561454, 'Teint_Dans_La_Masse': 22561455, 'metal': 22561456, 'autre_refus': 22561457, 'kraft': 22561458, 'mal_croppe': 22561459, 'Carton_gris': 22561460, 'plastique': 22561461, 'environnement': 22561462, 'papier': 22561463, 'cartonnette': 22561464},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22561424) 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([22561424]) 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.3304557800292969 time spend to save output : 5.793571472167969e-05 total time spend for step 3 : 0.33051371574401855 step4:send_mail_cod Wed Apr 30 19:35:29 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 : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ('0.07003273769441548',)} input_args_next_step : {1354856804: ()} output_args : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ('0.07003273769441548',)} args : 1354856804 depend.output_id : 0 input_args_next_step : {1354856804: ('0.07003273769441548',), 1354856789: ()} output_args : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ('0.07003273769441548',)} args : 1354856789 depend.output_id : 0 input_args_next_step : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ()} output_args : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ('0.07003273769441548',)} args : 1354856785 depend.output_id : 0 input_args_next_step : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ()} output_args : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ('0.07003273769441548',)} args : 1354856782 depend.output_id : 0 input_args_next_step : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ()} output_args : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ('0.07003273769441548',)} args : 1354856656 depend.output_id : 0 input_args_next_step : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ()} output_args : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ('0.07003273769441548',)} args : 1354856635 depend.output_id : 0 input_args_next_step : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ()} output_args : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ('0.07003273769441548',)} args : 1354856633 depend.output_id : 0 input_args_next_step : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ()} output_args : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ('0.07003273769441548',)} args : 1354856629 depend.output_id : 0 input_args_next_step : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ()} output_args : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ('0.07003273769441548',)} args : 1354856267 depend.output_id : 0 input_args_next_step : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ()} output_args : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ('0.07003273769441548',)} args : 1354856239 depend.output_id : 0 input_args_next_step : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ()} output_args : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ('0.07003273769441548',)} args : 1354856208 depend.output_id : 0 input_args_next_step : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ()} output_args : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ('0.07003273769441548',)} args : 1354856169 depend.output_id : 0 input_args_next_step : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ()} output_args : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ('0.07003273769441548',)} args : 1354856004 depend.output_id : 0 input_args_next_step : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ()} output_args : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ('0.07003273769441548',)} args : 1354855585 depend.output_id : 0 input_args_next_step : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ()} output_args : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ('0.07003273769441548',)} args : 1354855553 depend.output_id : 0 input_args_next_step : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ()} output_args : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ('0.07003273769441548',)} args : 1354855524 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 : {22561424: [{'Carton_brun': 22561453, 'flou': 22561454, 'Teint_Dans_La_Masse': 22561455, 'metal': 22561456, 'autre_refus': 22561457, 'kraft': 22561458, 'mal_croppe': 22561459, 'Carton_gris': 22561460, 'plastique': 22561461, 'environnement': 22561462, 'papier': 22561463, 'cartonnette': 22561464}]} input_args_next_step : {1354856804: ('0.07003273769441548',), 1354856789: ('0.07003273769441548',), 1354856785: ('0.07003273769441548',), 1354856782: ('0.07003273769441548',), 1354856656: ('0.07003273769441548',), 1354856635: ('0.07003273769441548',), 1354856633: ('0.07003273769441548',), 1354856629: ('0.07003273769441548',), 1354856267: ('0.07003273769441548',), 1354856239: ('0.07003273769441548',), 1354856208: ('0.07003273769441548',), 1354856169: ('0.07003273769441548',), 1354856004: ('0.07003273769441548',), 1354855585: ('0.07003273769441548',), 1354855553: ('0.07003273769441548',), 1354855524: ('0.07003273769441548',), 22561424: ()} output_args : {22561424: [{'Carton_brun': 22561453, 'flou': 22561454, 'Teint_Dans_La_Masse': 22561455, 'metal': 22561456, 'autre_refus': 22561457, 'kraft': 22561458, 'mal_croppe': 22561459, 'Carton_gris': 22561460, 'plastique': 22561461, 'environnement': 22561462, 'papier': 22561463, 'cartonnette': 22561464}]} args : 22561424 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 :17, first value : ('0.07003273769441548',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22561424) 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 (1354856804,1354856789,1354856785,1354856782,1354856656,1354856635,1354856633,1354856629,1354856267,1354856239,1354856208,1354856169,1354856004,1354855585,1354855553,1354855524) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1354855524 begin to download photo : 1354856169 begin to download photo : 1354856629 begin to download photo : 1354856782 download finish for photo 1354856629 begin to download photo : 1354856633 download finish for photo 1354856169 begin to download photo : 1354856208 download finish for photo 1354856782 begin to download photo : 1354856785 download finish for photo 1354855524 begin to download photo : 1354855553 download finish for photo 1354856785 begin to download photo : 1354856789 download finish for photo 1354856208 begin to download photo : 1354856239 download finish for photo 1354856633 begin to download photo : 1354856635 download finish for photo 1354856239 begin to download photo : 1354856267 download finish for photo 1354856789 begin to download photo : 1354856804 download finish for photo 1354856635 begin to download photo : 1354856656 download finish for photo 1354855553 begin to download photo : 1354855585 download finish for photo 1354856267 download finish for photo 1354856804 download finish for photo 1354856656 download finish for photo 1354855585 begin to download photo : 1354856004 download finish for photo 1354856004 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette225614541746034530/ imagette225614561746034530/ imagette225614571746034530/ length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P22561424_30-04-2025_19_35_30.pdf 22561454 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=22561454 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette225614541746034530 22561456 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=22561456 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette225614561746034530 22561457 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=22561457 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette225614571746034530 22561458 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=22561458 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354856775: '1746034406_2340228_1354855524_2ba3bc5735e9a4fade760f872e9caf69_rle_crop_3776679037_0.png'} change filename to text .imagette225614581746034530/ imagette225614581746034530/1746034406_2340228_1354855524_2ba3bc5735e9a4fade760f872e9caf69_rle_crop_3776679037_0.png.png imagette225614591746034530/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/6a039e2e3901a25af08c3c3d9ce556c0_64873052.png imagette225614581746034530 22561459 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=22561459 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette225614591746034530 22561461 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=22561461 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354856772: '1746034406_2340228_1354855553_8a25830dadc802d15e89ed36d2de6e82_rle_crop_3776679030_0.png', 1354856773: '1746034406_2340228_1354855524_2ba3bc5735e9a4fade760f872e9caf69_rle_crop_3776679039_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/acdc044527220e4186e0421427ec6fee_54976940.png change filename to text .imagette225614611746034530/ imagette225614611746034530/1746034406_2340228_1354855524_2ba3bc5735e9a4fade760f872e9caf69_rle_crop_3776679039_0.png.png imagette225614611746034530/1746034406_2340228_1354855553_8a25830dadc802d15e89ed36d2de6e82_rle_crop_3776679030_0.png.png imagette225614641746034530/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/94e8465edb12f10f011be325740a0b57_78067051.png imagette225614611746034530 22561464 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=22561464 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette225614641746034530 22561453 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=22561453 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354856769: '1746034406_2340228_1354855585_00ef3f8aaf79241a252194385b6d99b5_rle_crop_3776679008_0.png', 1354856770: '1746034406_2340228_1354855553_8a25830dadc802d15e89ed36d2de6e82_rle_crop_3776679027_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/c845662f31309852b19353e1d6cc2b41_69029600.png change filename to text .imagette225614531746034530/ imagette225614531746034530/1746034406_2340228_1354855553_8a25830dadc802d15e89ed36d2de6e82_rle_crop_3776679027_0.png.png imagette225614531746034530/1746034406_2340228_1354855585_00ef3f8aaf79241a252194385b6d99b5_rle_crop_3776679008_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/96a02117f9f85dad9faf549edbe4f95f_43931696.png imagette225614531746034530 22561455 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=22561455 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354856765: '1746034406_2340228_1354855585_00ef3f8aaf79241a252194385b6d99b5_rle_crop_3776679005_0.png', 1354856766: '1746034406_2340228_1354855524_2ba3bc5735e9a4fade760f872e9caf69_rle_crop_3776679041_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/b6050cc2e66d98c2e2d729fbf477f562_88526778.png change filename to text .imagette225614551746034530/ imagette225614551746034530/1746034406_2340228_1354855524_2ba3bc5735e9a4fade760f872e9caf69_rle_crop_3776679041_0.png.png imagette225614551746034530/1746034406_2340228_1354855585_00ef3f8aaf79241a252194385b6d99b5_rle_crop_3776679005_0.png.png imagette225614601746034530/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/66cb8ca5a8eef728d26de79aa1f2858c_29001177.png imagette225614551746034530 22561460 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=22561460 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette225614601746034530 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22561424 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22561465,22561466,22561467,22561468,22561469,22561470,22561471,22561472,22561473,22561474,22561475,22561476?tags=Carton_brun,flou,Teint_Dans_La_Masse,metal,autre_refus,kraft,mal_croppe,Carton_gris,plastique,environnement,papier,cartonnette your option no_mail is active, we will not send the real mail to your client args[1354856804] : ('0.07003273769441548',) no score found for photo 1354856804 We are sending mail with results at report@fotonower.com args[1354856789] : ('0.07003273769441548',) no score found for photo 1354856789 We are sending mail with results at report@fotonower.com args[1354856785] : ('0.07003273769441548',) no score found for photo 1354856785 We are sending mail with results at report@fotonower.com args[1354856782] : ('0.07003273769441548',) no score found for photo 1354856782 We are sending mail with results at report@fotonower.com args[1354856656] : ('0.07003273769441548',) no score found for photo 1354856656 We are sending mail with results at report@fotonower.com args[1354856635] : ('0.07003273769441548',) no score found for photo 1354856635 We are sending mail with results at report@fotonower.com args[1354856633] : ('0.07003273769441548',) no score found for photo 1354856633 We are sending mail with results at report@fotonower.com args[1354856629] : ('0.07003273769441548',) no score found for photo 1354856629 We are sending mail with results at report@fotonower.com args[1354856267] : ('0.07003273769441548',) no score found for photo 1354856267 We are sending mail with results at report@fotonower.com args[1354856239] : ('0.07003273769441548',) no score found for photo 1354856239 We are sending mail with results at report@fotonower.com args[1354856208] : ('0.07003273769441548',) no score found for photo 1354856208 We are sending mail with results at report@fotonower.com args[1354856169] : ('0.07003273769441548',) no score found for photo 1354856169 We are sending mail with results at report@fotonower.com args[1354856004] : ('0.07003273769441548',) no score found for photo 1354856004 We are sending mail with results at report@fotonower.com args[1354855585] : ('0.07003273769441548',) no score found for photo 1354855585 We are sending mail with results at report@fotonower.com args[1354855553] : ('0.07003273769441548',) no score found for photo 1354855553 We are sending mail with results at report@fotonower.com args[1354855524] : ('0.07003273769441548',) no score found for photo 1354855524 We are sending mail with results at report@fotonower.com refus_total : 0.07003273769441548 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=22561424 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_P22561424_30-04-2025_19_35_30.pdf results_Auto_P22561424_30-04-2025_19_35_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22561424_30-04-2025_19_35_30.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','22561424','results_Auto_P22561424_30-04-2025_19_35_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22561424_30-04-2025_19_35_30.pdf','pdf','','0.16','0.07003273769441548') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22561424]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1354856804, 1354856789, 1354856785, 1354856782, 1354856656, 1354856635, 1354856633, 1354856629, 1354856267, 1354856239, 1354856208, 1354856169, 1354856004, 1354855585, 1354855553, 1354855524] map_info['map_portfolio_photo'] : {22561424: [1354856804, 1354856789, 1354856785, 1354856782, 1354856656, 1354856635, 1354856633, 1354856629, 1354856267, 1354856239, 1354856208, 1354856169, 1354856004, 1354855585, 1354855553, 1354855524]} final : False mtd_id 4302 list_pids : [1354856804, 1354856789, 1354856785, 1354856782, 1354856656, 1354856635, 1354856633, 1354856629, 1354856267, 1354856239, 1354856208, 1354856169, 1354856004, 1354855585, 1354855553, 1354855524] 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, '2775757') ('4302', '22561424', '1354856804', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856789', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856785', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856782', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856656', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856635', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856633', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856629', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856267', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856239', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856208', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856169', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856004', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354855585', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354855553', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354855524', None, None, None, None, None, '2775757') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22561424', '1354856804', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856789', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856785', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856782', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856656', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856635', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856633', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856629', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856267', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856239', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856208', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856169', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856004', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354855585', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354855553', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354855524', None, None, None, None, None, '2775757')] time used for this insertion : 0.022678613662719727 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.373089551925659 time spend to save output : 0.023011445999145508 total time spend for step 4 : 2.3961009979248047 step5:split_time_score Wed Apr 30 19:35:31 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 : ['22561424'] 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 : [('22561424',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22561424) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1354856169: {'path': 'temp/1746034529_3395355_1354856169_3e3d0211d4ab0559da1ab68c00da591d.jpg', 'extension': 'jpg'}, 1354856208: {'path': 'temp/1746034529_3395355_1354856208_bdf7470a1c75fb6ebe4648855e0a36b8.jpg', 'extension': 'jpg'}, 1354856239: {'path': 'temp/1746034529_3395355_1354856239_896e1b3dc3701c5df870ceb136e5039d.jpg', 'extension': 'jpg'}, 1354856267: {'path': 'temp/1746034529_3395355_1354856267_0930f6c5c95c66bcada50e92c37ddd67.jpg', 'extension': 'jpg'}, 1354856782: {'path': 'temp/1746034529_3395355_1354856782_eefa930a93387e53b0cce55acd19008f.jpg', 'extension': 'jpg'}, 1354856785: {'path': 'temp/1746034529_3395355_1354856785_a4ed9d3751a9e1ee0776c75174d315c4.jpg', 'extension': 'jpg'}, 1354856789: {'path': 'temp/1746034529_3395355_1354856789_a93b3de44359dbbb8b1bdeb5b6b86219.jpg', 'extension': 'jpg'}, 1354856804: {'path': 'temp/1746034529_3395355_1354856804_3b9f3a326ca8ce3de82daa5e72375ae6.jpg', 'extension': 'jpg'}, 1354856629: {'path': 'temp/1746034529_3395355_1354856629_db0ef5e9a8b1f27f85a6e87d094c7459.jpg', 'extension': 'jpg'}, 1354856633: {'path': 'temp/1746034529_3395355_1354856633_505f385a66edb9d33f97811c69108d58.jpg', 'extension': 'jpg'}, 1354856635: {'path': 'temp/1746034529_3395355_1354856635_a180c2f71ae304b07494dcffe11fc177.jpg', 'extension': 'jpg'}, 1354856656: {'path': 'temp/1746034529_3395355_1354856656_dc2d9e4487e1f49b716cbcfe28217094.jpg', 'extension': 'jpg'}, 1354855524: {'path': 'temp/1746034529_3395355_1354855524_2ba3bc5735e9a4fade760f872e9caf69.jpg', 'extension': 'jpg'}, 1354855553: {'path': 'temp/1746034529_3395355_1354855553_8a25830dadc802d15e89ed36d2de6e82.jpg', 'extension': 'jpg'}, 1354855585: {'path': 'temp/1746034529_3395355_1354855585_00ef3f8aaf79241a252194385b6d99b5.jpg', 'extension': 'jpg'}, 1354856004: {'path': 'temp/1746034529_3395355_1354856004_b34c47eecc819d416084a30cb301f14e.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 = 22561424; (('arc_en_ciel_jrm_live',),) 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 = 22561424 group by h (('19', 16),) 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=22561424 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 (22561424) 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 (22561424) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30042025 22561424 Nombre de photos uploadées : 16 / 23040 (0%) 30042025 22561424 Nombre de photos taguées (types de déchets): 0 / 16 (0%) 30042025 22561424 Nombre de photos taguées (volume) : 0 / 16 (0%) [{'photo_id': 1354855585, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/00ef3f8aaf79241a252194385b6d99b5.jpg', 'username': None, 'uploaded_at': 1746034267, 'text': 'image_30042025_19_30_05_10134.jpg'}, {'photo_id': 1354855553, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/8a25830dadc802d15e89ed36d2de6e82.jpg', 'username': None, 'uploaded_at': 1746034267, 'text': 'image_30042025_19_30_15_10134.jpg'}, {'photo_id': 1354855524, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/2ba3bc5735e9a4fade760f872e9caf69.jpg', 'username': None, 'uploaded_at': 1746034267, 'text': 'image_30042025_19_30_44_10135.jpg'}, {'photo_id': 1354856267, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/0930f6c5c95c66bcada50e92c37ddd67.jpg', 'username': None, 'uploaded_at': 1746034337, 'text': 'image_30042025_19_30_55_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ???????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0008683204650878906 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 22561424, '2025-04-30' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1757158,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024136066436767578 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= 1757158 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1757158, 'dashboard_run_id': 1768086, 'mtr_portfolio_id': 22558906, 'dashboard_result_id': 10200134, '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_P22558906_30-04-2025_19_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22558988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22558989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22558990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22558991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22558992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22558993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22558994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22558995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22558996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22558997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22558998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22558999, 'pht': 3726}}"}, {'dashboat_entry_day': 1757158, 'dashboard_run_id': 1768086, 'mtr_portfolio_id': 22559944, 'dashboard_result_id': 10200138, '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_P22559944_30-04-2025_19_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22560002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22560003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22560004, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22560005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22560006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22560007, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22560008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22560009, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22560010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22560011, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22560012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22560013, 'pht': 3726}}"}, {'dashboat_entry_day': 1757158, 'dashboard_run_id': 1768086, 'mtr_portfolio_id': 22560698, 'dashboard_result_id': 10200144, '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_P22560698_30-04-2025_19_34_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22560729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22560730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22560731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22560732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22560733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22560734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22560735, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22560736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22560737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22560738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22560739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22560740, 'pht': 3726}}"}, {'dashboat_entry_day': 1757158, 'dashboard_run_id': 1768086, 'mtr_portfolio_id': 22561424, 'dashboard_result_id': 10200154, '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 = 22558906 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': 2775544, 'mtr_portfolio_id': 22558906, 'created_at': datetime.datetime(2025, 4, 30, 19, 2, 59), 'result': '0.044421808255649446', 'result_long': None, 'result_double': None}] Qualite : 0.044421808255649446 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22558906 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22558906_30-04-2025_19_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22558906 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_P22558906_30-04-2025_19_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22558988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22558989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22558990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22558991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22558992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22558993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22558994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22558995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22558996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22558997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22558998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22558999, 'pht': 3726}}" where mtr_portfolio_id = 22558906 and dashboard_run_id = 1768086 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`=22558906 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10200134, 0.044421808255649446, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22558906_30-04-2025_19_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22558988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22558989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22558990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22558991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22558992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22558993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22558994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22558995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22558996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22558997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22558998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22558999, '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 = 22559944 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': 2775624, 'mtr_portfolio_id': 22559944, 'created_at': datetime.datetime(2025, 4, 30, 19, 17), 'result': '0.03875513598901541', 'result_long': None, 'result_double': None}] Qualite : 0.03875513598901541 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22559944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22559944_30-04-2025_19_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22559944 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_P22559944_30-04-2025_19_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22560002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22560003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22560004, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22560005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22560006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22560007, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22560008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22560009, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22560010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22560011, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22560012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22560013, 'pht': 3726}}" where mtr_portfolio_id = 22559944 and dashboard_run_id = 1768086 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`=22559944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10200138, 0.03875513598901541, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22559944_30-04-2025_19_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22560002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22560003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22560004, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22560005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22560006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22560007, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22560008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22560009, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22560010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22560011, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22560012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22560013, '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 = 22560698 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': 2775673, 'mtr_portfolio_id': 22560698, 'created_at': datetime.datetime(2025, 4, 30, 19, 34, 58), 'result': '0.031557684341894696', 'result_long': None, 'result_double': None}] Qualite : 0.031557684341894696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22560698 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22560698_30-04-2025_19_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22560698 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_P22560698_30-04-2025_19_34_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22560729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22560730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22560731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22560732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22560733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22560734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22560735, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22560736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22560737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22560738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22560739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22560740, 'pht': 3726}}" where mtr_portfolio_id = 22560698 and dashboard_run_id = 1768086 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`=22560698 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10200144, 0.031557684341894696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22560698_30-04-2025_19_34_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22560729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22560730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22560731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22560732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22560733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22560734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22560735, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22560736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22560737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22560738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22560739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22560740, '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 = 22561424 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': 2775757, 'mtr_portfolio_id': 22561424, 'created_at': datetime.datetime(2025, 4, 30, 19, 35, 29), 'result': '0.07003273769441548', 'result_long': None, 'result_double': None}] Qualite : 0.07003273769441548 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22561424 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22561424_30-04-2025_19_35_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22561424 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_P22561424_30-04-2025_19_35_30.pdf'}" where mtr_portfolio_id = 22561424 and dashboard_run_id = 1768086 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`=22561424 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10200154, 0.07003273769441548, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22561424_30-04-2025_19_35_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22561453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22561454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22561455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22561456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22561457, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22561458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22561459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22561460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22561461, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22561462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22561463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22561464, '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 (22558906,22559944,22560698,22561424) result : ((1354832626,), (1354832657,), (1354832686,), (1354832716,), (1354833537,), (1354833629,), (1354833663,), (1354833695,), (1354834496,), (1354835275,), (1354835306,), (1354835346,), (1354835406,), (1354835963,), (1354835976,), (1354835996,), (1354836026,), (1354836318,), (1354836372,), (1354836455,), (1354836522,), (1354836567,), (1354836609,), (1354837043,), (1354837075,), (1354837097,), (1354837101,), (1354837172,), (1354837240,), (1354837328,), (1354837414,), (1354837507,), (1354837939,), (1354837983,), (1354838013,), (1354838045,), (1354838075,), (1354838080,), (1354838224,), (1354838313,), (1354838341,), (1354838363,), (1354838451,), (1354838466,), (1354838496,), (1354838527,), (1354838558,), (1354838749,), (1354838778,), (1354838806,), (1354838990,), (1354839016,), (1354839048,), (1354839065,), (1354839454,), (1354839486,), (1354839520,), (1354840491,), (1354839953,), (1354839984,), (1354840198,), (1354840409,), (1354840706,), (1354840738,), (1354840765,), (1354840863,), (1354840894,), (1354841587,), (1354841636,), (1354841693,), (1354841754,), (1354841804,), (1354842202,), (1354842319,), (1354842450,), (1354842584,), (1354843348,), (1354843718,), (1354843725,), (1354843727,), (1354843939,), (1354844004,), (1354844903,), (1354845021,), (1354845042,), (1354845399,), (1354845425,), (1354845429,), (1354845455,), (1354845458,), (1354846236,), (1354846265,), (1354846293,), (1354846320,), (1354846347,), (1354846616,), (1354846654,), (1354846682,), (1354847321,), (1354847371,), (1354847421,), (1354848109,), (1354848112,), (1354848116,), (1354848121,), (1354848506,), (1354848544,), (1354848560,), (1354848583,), (1354848980,), (1354849226,), (1354849246,), (1354849263,), (1354849418,), (1354849479,), (1354849483,), (1354849513,), (1354849504,), (1354849507,), (1354849510,), (1354849868,), (1354849921,), (1354850990,), (1354850992,), (1354851199,), (1354851223,), (1354851490,), (1354851494,), (1354851498,), (1354851502,), (1354851536,), (1354851540,), (1354851578,), (1354851580,), (1354851597,), (1354851605,), (1354851620,), (1354851652,), (1354851929,), (1354851956,), (1354851982,), (1354852012,), (1354852041,), (1354852393,), (1354852425,), (1354852441,), (1354852448,), (1354852453,), (1354852478,), (1354852483,), (1354852487,), (1354852551,), (1354852752,), (1354852825,), (1354853312,), (1354853349,), (1354853402,), (1354853452,), (1354853504,), (1354854155,), (1354854210,), (1354854261,), (1354854316,), (1354854968,), (1354854997,), (1354855026,), (1354855617,), (1354855524,), (1354855553,), (1354855585,), (1354856004,), (1354856169,), (1354856208,), (1354856239,), (1354856267,), (1354856629,), (1354856633,), (1354856635,), (1354856656,), (1354856782,), (1354856785,), (1354856789,), (1354856804,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30042025': {'nb_upload': 16, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22561424]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1354856804, 1354856789, 1354856785, 1354856782, 1354856656, 1354856635, 1354856633, 1354856629, 1354856267, 1354856239, 1354856208, 1354856169, 1354856004, 1354855585, 1354855553, 1354855524] map_info['map_portfolio_photo'] : {22561424: [1354856804, 1354856789, 1354856785, 1354856782, 1354856656, 1354856635, 1354856633, 1354856629, 1354856267, 1354856239, 1354856208, 1354856169, 1354856004, 1354855585, 1354855553, 1354855524]} final : True mtd_id 4302 list_pids : [1354856804, 1354856789, 1354856785, 1354856782, 1354856656, 1354856635, 1354856633, 1354856629, 1354856267, 1354856239, 1354856208, 1354856169, 1354856004, 1354855585, 1354855553, 1354855524] Looping around the photos to save general results len do output : 1 /22561424Didn'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, '2775757') ('4302', '22561424', '1354856804', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856789', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856785', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856782', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856656', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856635', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856633', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856629', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856267', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856239', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856208', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856169', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354856004', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354855585', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354855553', None, None, None, None, None, '2775757') ('4302', None, None, None, None, None, None, None, '2775757') ('4302', '22561424', '1354855524', None, None, None, None, None, '2775757') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '22561424', 'None', None, None, None, None, '2775757'), ('4302', '22561424', '1354856804', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856789', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856785', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856782', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856656', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856635', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856633', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856629', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856267', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856239', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856208', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856169', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354856004', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354855585', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354855553', None, None, None, None, None, '2775757'), ('4302', '22561424', '1354855524', None, None, None, None, None, '2775757')] time used for this insertion : 0.01851940155029297 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33839964866638184 time spend to save output : 0.018778324127197266 total time spend for step 5 : 0.3571779727935791 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 (2775757) 2.32user 2.02system 0:07.23elapsed 60%CPU (0avgtext+0avgdata 159568maxresident)k 1088inputs+9592outputs (10major+79454minor)pagefaults 0swaps