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 : 3846278 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 (2861860) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2861860) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23009493 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2861860'] with mtr_portfolio_ids : ['23009493'] and first list_photo_ids : [] new path : /proc/3846278/ Name: python3 Umask: 0002 State: R (running) Tgid: 3846278 Ngid: 0 Pid: 3846278 PPid: 3846277 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3846278 NSpid: 3846278 NSpgid: 3843059 NSsid: 3843059 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98668 kB VmRSS: 98668 kB RssAnon: 60192 kB RssFile: 38476 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 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: 51 nonvoluntary_ctxt_switches: 155 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3846278', 'Ngid': '0', 'Pid': '3846278', 'PPid': '3846277', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3846278', 'NSpid': '3846278', 'NSpgid': '3843059', 'NSsid': '3843059', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98668 kB', 'VmRSS': '98668 kB', 'RssAnon': '60192 kB', 'RssFile': '38476 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '51', 'nonvoluntary_ctxt_switches': '155'} ('datou_batch_current', '3846278', '1107228', '0', '1107228', '865976', '98668', b'', 'marlene', '2861860') 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 (23009493) 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 (2861860 ) ) 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 (23009493) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1358525190, 'portfolio_id': 23009493}, {'photo_id': 1358525156, 'portfolio_id': 23009493}, {'photo_id': 1358525152, 'portfolio_id': 23009493}, {'photo_id': 1358525150, 'portfolio_id': 23009493}, {'photo_id': 1358525130, 'portfolio_id': 23009493}, {'photo_id': 1358525128, 'portfolio_id': 23009493}, {'photo_id': 1358525073, 'portfolio_id': 23009493}, {'photo_id': 1358525070, 'portfolio_id': 23009493}, {'photo_id': 1358525068, 'portfolio_id': 23009493}, {'photo_id': 1358525065, 'portfolio_id': 23009493}, {'photo_id': 1358525061, 'portfolio_id': 23009493}, {'photo_id': 1358525022, 'portfolio_id': 23009493}, {'photo_id': 1358525019, 'portfolio_id': 23009493}, {'photo_id': 1358525015, 'portfolio_id': 23009493}, {'photo_id': 1358525012, 'portfolio_id': 23009493}, {'photo_id': 1358524989, 'portfolio_id': 23009493}, {'photo_id': 1358524986, 'portfolio_id': 23009493}, {'photo_id': 1358524980, 'portfolio_id': 23009493}, {'photo_id': 1358524976, 'portfolio_id': 23009493}, {'photo_id': 1358524914, 'portfolio_id': 23009493}, {'photo_id': 1358524751, 'portfolio_id': 23009493}, {'photo_id': 1358524718, 'portfolio_id': 23009493}, {'photo_id': 1358524690, 'portfolio_id': 23009493}, {'photo_id': 1358524656, 'portfolio_id': 23009493}, {'photo_id': 1358524645, 'portfolio_id': 23009493}, {'photo_id': 1358524642, 'portfolio_id': 23009493}, {'photo_id': 1358524586, 'portfolio_id': 23009493}, {'photo_id': 1358524584, 'portfolio_id': 23009493}, {'photo_id': 1358524581, 'portfolio_id': 23009493}, {'photo_id': 1358524557, 'portfolio_id': 23009493}, {'photo_id': 1358524412, 'portfolio_id': 23009493}, {'photo_id': 1358524405, 'portfolio_id': 23009493}, {'photo_id': 1358524397, 'portfolio_id': 23009493}, {'photo_id': 1358524370, 'portfolio_id': 23009493}, {'photo_id': 1358524343, 'portfolio_id': 23009493}, {'photo_id': 1358524317, 'portfolio_id': 23009493}, {'photo_id': 1358524049, 'portfolio_id': 23009493}, {'photo_id': 1358524047, 'portfolio_id': 23009493}, {'photo_id': 1358524035, 'portfolio_id': 23009493}, {'photo_id': 1358524006, 'portfolio_id': 23009493}, {'photo_id': 1358524003, 'portfolio_id': 23009493}, {'photo_id': 1358524000, 'portfolio_id': 23009493}, {'photo_id': 1358523890, 'portfolio_id': 23009493}, {'photo_id': 1358523886, 'portfolio_id': 23009493}, {'photo_id': 1358523884, 'portfolio_id': 23009493}, {'photo_id': 1358523831, 'portfolio_id': 23009493}, {'photo_id': 1358523745, 'portfolio_id': 23009493}, {'photo_id': 1358523531, 'portfolio_id': 23009493}, {'photo_id': 1358523528, 'portfolio_id': 23009493}, {'photo_id': 1358523525, 'portfolio_id': 23009493}, {'photo_id': 1358523521, 'portfolio_id': 23009493}, {'photo_id': 1358523518, 'portfolio_id': 23009493}, {'photo_id': 1358523403, 'portfolio_id': 23009493}, {'photo_id': 1358523360, 'portfolio_id': 23009493}, {'photo_id': 1358523351, 'portfolio_id': 23009493}, {'photo_id': 1358523329, 'portfolio_id': 23009493}, {'photo_id': 1358522828, 'portfolio_id': 23009493}, {'photo_id': 1358522755, 'portfolio_id': 23009493}, {'photo_id': 1358522702, 'portfolio_id': 23009493}, {'photo_id': 1358522242, 'portfolio_id': 23009493}, {'photo_id': 1358522187, 'portfolio_id': 23009493}, {'photo_id': 1358522128, 'portfolio_id': 23009493}, {'photo_id': 1358522085, 'portfolio_id': 23009493}, {'photo_id': 1358522057, 'portfolio_id': 23009493}, {'photo_id': 1358522024, 'portfolio_id': 23009493}, {'photo_id': 1358521711, 'portfolio_id': 23009493}, {'photo_id': 1358521645, 'portfolio_id': 23009493}, {'photo_id': 1358521569, 'portfolio_id': 23009493}, {'photo_id': 1358521503, 'portfolio_id': 23009493}, {'photo_id': 1358520813, 'portfolio_id': 23009493}, {'photo_id': 1358520721, 'portfolio_id': 23009493}, {'photo_id': 1358520610, 'portfolio_id': 23009493}, {'photo_id': 1358520521, 'portfolio_id': 23009493}] map_portfolio_id_photo_id: {23009493: [1358525190, 1358525156, 1358525152, 1358525150, 1358525130, 1358525128, 1358525073, 1358525070, 1358525068, 1358525065, 1358525061, 1358525022, 1358525019, 1358525015, 1358525012, 1358524989, 1358524986, 1358524980, 1358524976, 1358524914, 1358524751, 1358524718, 1358524690, 1358524656, 1358524645, 1358524642, 1358524586, 1358524584, 1358524581, 1358524557, 1358524412, 1358524405, 1358524397, 1358524370, 1358524343, 1358524317, 1358524049, 1358524047, 1358524035, 1358524006, 1358524003, 1358524000, 1358523890, 1358523886, 1358523884, 1358523831, 1358523745, 1358523531, 1358523528, 1358523525, 1358523521, 1358523518, 1358523403, 1358523360, 1358523351, 1358523329, 1358522828, 1358522755, 1358522702, 1358522242, 1358522187, 1358522128, 1358522085, 1358522057, 1358522024, 1358521711, 1358521645, 1358521569, 1358521503, 1358520813, 1358520721, 1358520610, 1358520521]} ##### 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.01866316795349121 #### 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 Thu May 15 15:16:58 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 (23009493) 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 : 23009493 get user id for portfolio 23009493 get sub ptf for main ptf 23009493, type 3726 and hashtags ['autre_refus', 'kraft', 'mal_croppe', 'environnement', 'Teint_Dans_La_Masse', 'Carton_brun', 'papier', 'metal', 'cartonnette', 'plastique', 'Carton_gris', 'flou'] 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`=23009493 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','mal_croppe','environnement','Teint_Dans_La_Masse','Carton_brun','papier','metal','cartonnette','plastique','Carton_gris','flou')) 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`=23009493 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','mal_croppe','environnement','Teint_Dans_La_Masse','Carton_brun','papier','metal','cartonnette','plastique','Carton_gris','flou')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 23009493, 'sub_port_id': 23009549, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359624, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 57)}, 'plastique': {'main_port_id': 23009493, 'sub_port_id': 23009550, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359625, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 57)}, 'papier': {'main_port_id': 23009493, 'sub_port_id': 23009551, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359626, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 57)}, 'mal_croppe': {'main_port_id': 23009493, 'sub_port_id': 23009552, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359627, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 23009493, 'sub_port_id': 23009553, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359628, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 57)}, 'cartonnette': {'main_port_id': 23009493, 'sub_port_id': 23009554, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359629, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 57)}, 'Carton_gris': {'main_port_id': 23009493, 'sub_port_id': 23009555, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359630, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 57)}, 'kraft': {'main_port_id': 23009493, 'sub_port_id': 23009556, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359631, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 57)}, 'autre_refus': {'main_port_id': 23009493, 'sub_port_id': 23009557, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359632, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 57)}, 'environnement': {'main_port_id': 23009493, 'sub_port_id': 23009558, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359633, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 57)}, 'metal': {'main_port_id': 23009493, 'sub_port_id': 23009559, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359634, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 57)}, 'Carton_brun': {'main_port_id': 23009493, 'sub_port_id': 23009560, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359635, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23009549 , 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=23009493 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 (23009549) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23009493) result : ((1358520521,), (1358520610,), (1358520721,), (1358520813,), (1358521503,), (1358521569,), (1358521645,), (1358521711,), (1358522024,), (1358522057,), (1358522085,), (1358522128,), (1358522187,), (1358522242,), (1358522702,), (1358522755,), (1358522828,), (1358523329,), (1358523351,), (1358523360,), (1358523403,), (1358523518,), (1358523521,), (1358523525,), (1358523528,), (1358523531,), (1358523745,), (1358523831,), (1358523884,), (1358523886,), (1358523890,), (1358524000,), (1358524003,), (1358524006,), (1358524035,), (1358524047,), (1358524049,), (1358524317,), (1358524343,), (1358524370,), (1358524397,), (1358524405,), (1358524412,), (1358524557,), (1358524581,), (1358524584,), (1358524586,), (1358524642,), (1358524645,), (1358524656,), (1358524690,), (1358524718,), (1358524751,), (1358524914,), (1358524976,), (1358524980,), (1358524986,), (1358524989,), (1358525012,), (1358525015,), (1358525019,), (1358525022,), (1358525061,), (1358525065,), (1358525068,), (1358525070,), (1358525073,), (1358525128,), (1358525130,), (1358525150,), (1358525152,), (1358525156,), (1358525190,)) 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 (1358524000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23009550 , 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=23009493 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 (23009550) result : ((1358524511,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23009493) result : ((1358520521,), (1358520610,), (1358520721,), (1358520813,), (1358521503,), (1358521569,), (1358521645,), (1358521711,), (1358522024,), (1358522057,), (1358522085,), (1358522128,), (1358522187,), (1358522242,), (1358522702,), (1358522755,), (1358522828,), (1358523329,), (1358523351,), (1358523360,), (1358523403,), (1358523518,), (1358523521,), (1358523525,), (1358523528,), (1358523531,), (1358523745,), (1358523831,), (1358523884,), (1358523886,), (1358523890,), (1358524000,), (1358524003,), (1358524006,), (1358524035,), (1358524047,), (1358524049,), (1358524317,), (1358524343,), (1358524370,), (1358524397,), (1358524405,), (1358524412,), (1358524557,), (1358524581,), (1358524584,), (1358524586,), (1358524642,), (1358524645,), (1358524656,), (1358524690,), (1358524718,), (1358524751,), (1358524914,), (1358524976,), (1358524980,), (1358524986,), (1358524989,), (1358525012,), (1358525015,), (1358525019,), (1358525022,), (1358525061,), (1358525065,), (1358525068,), (1358525070,), (1358525073,), (1358525128,), (1358525130,), (1358525150,), (1358525152,), (1358525156,), (1358525190,)) 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 (1358524000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23009551 , 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=23009493 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 (23009551) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23009493) result : ((1358520521,), (1358520610,), (1358520721,), (1358520813,), (1358521503,), (1358521569,), (1358521645,), (1358521711,), (1358522024,), (1358522057,), (1358522085,), (1358522128,), (1358522187,), (1358522242,), (1358522702,), (1358522755,), (1358522828,), (1358523329,), (1358523351,), (1358523360,), (1358523403,), (1358523518,), (1358523521,), (1358523525,), (1358523528,), (1358523531,), (1358523745,), (1358523831,), (1358523884,), (1358523886,), (1358523890,), (1358524000,), (1358524003,), (1358524006,), (1358524035,), (1358524047,), (1358524049,), (1358524317,), (1358524343,), (1358524370,), (1358524397,), (1358524405,), (1358524412,), (1358524557,), (1358524581,), (1358524584,), (1358524586,), (1358524642,), (1358524645,), (1358524656,), (1358524690,), (1358524718,), (1358524751,), (1358524914,), (1358524976,), (1358524980,), (1358524986,), (1358524989,), (1358525012,), (1358525015,), (1358525019,), (1358525022,), (1358525061,), (1358525065,), (1358525068,), (1358525070,), (1358525073,), (1358525128,), (1358525130,), (1358525150,), (1358525152,), (1358525156,), (1358525190,)) 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 (1358524000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23009552 , 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=23009493 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 (23009552) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23009493) result : ((1358520521,), (1358520610,), (1358520721,), (1358520813,), (1358521503,), (1358521569,), (1358521645,), (1358521711,), (1358522024,), (1358522057,), (1358522085,), (1358522128,), (1358522187,), (1358522242,), (1358522702,), (1358522755,), (1358522828,), (1358523329,), (1358523351,), (1358523360,), (1358523403,), (1358523518,), (1358523521,), (1358523525,), (1358523528,), (1358523531,), (1358523745,), (1358523831,), (1358523884,), (1358523886,), (1358523890,), (1358524000,), (1358524003,), (1358524006,), (1358524035,), (1358524047,), (1358524049,), (1358524317,), (1358524343,), (1358524370,), (1358524397,), (1358524405,), (1358524412,), (1358524557,), (1358524581,), (1358524584,), (1358524586,), (1358524642,), (1358524645,), (1358524656,), (1358524690,), (1358524718,), (1358524751,), (1358524914,), (1358524976,), (1358524980,), (1358524986,), (1358524989,), (1358525012,), (1358525015,), (1358525019,), (1358525022,), (1358525061,), (1358525065,), (1358525068,), (1358525070,), (1358525073,), (1358525128,), (1358525130,), (1358525150,), (1358525152,), (1358525156,), (1358525190,)) 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 (1358524000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23009553 , 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=23009493 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 (23009553) result : ((1358523502,), (1358523503,), (1358523504,), (1358523506,), (1358524483,), (1358524485,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23009493) result : ((1358520521,), (1358520610,), (1358520721,), (1358520813,), (1358521503,), (1358521569,), (1358521645,), (1358521711,), (1358522024,), (1358522057,), (1358522085,), (1358522128,), (1358522187,), (1358522242,), (1358522702,), (1358522755,), (1358522828,), (1358523329,), (1358523351,), (1358523360,), (1358523403,), (1358523518,), (1358523521,), (1358523525,), (1358523528,), (1358523531,), (1358523745,), (1358523831,), (1358523884,), (1358523886,), (1358523890,), (1358524000,), (1358524003,), (1358524006,), (1358524035,), (1358524047,), (1358524049,), (1358524317,), (1358524343,), (1358524370,), (1358524397,), (1358524405,), (1358524412,), (1358524557,), (1358524581,), (1358524584,), (1358524586,), (1358524642,), (1358524645,), (1358524656,), (1358524690,), (1358524718,), (1358524751,), (1358524914,), (1358524976,), (1358524980,), (1358524986,), (1358524989,), (1358525012,), (1358525015,), (1358525019,), (1358525022,), (1358525061,), (1358525065,), (1358525068,), (1358525070,), (1358525073,), (1358525128,), (1358525130,), (1358525150,), (1358525152,), (1358525156,), (1358525190,)) 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 (1358524000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23009554 , 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=23009493 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 (23009554) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23009493) result : ((1358520521,), (1358520610,), (1358520721,), (1358520813,), (1358521503,), (1358521569,), (1358521645,), (1358521711,), (1358522024,), (1358522057,), (1358522085,), (1358522128,), (1358522187,), (1358522242,), (1358522702,), (1358522755,), (1358522828,), (1358523329,), (1358523351,), (1358523360,), (1358523403,), (1358523518,), (1358523521,), (1358523525,), (1358523528,), (1358523531,), (1358523745,), (1358523831,), (1358523884,), (1358523886,), (1358523890,), (1358524000,), (1358524003,), (1358524006,), (1358524035,), (1358524047,), (1358524049,), (1358524317,), (1358524343,), (1358524370,), (1358524397,), (1358524405,), (1358524412,), (1358524557,), (1358524581,), (1358524584,), (1358524586,), (1358524642,), (1358524645,), (1358524656,), (1358524690,), (1358524718,), (1358524751,), (1358524914,), (1358524976,), (1358524980,), (1358524986,), (1358524989,), (1358525012,), (1358525015,), (1358525019,), (1358525022,), (1358525061,), (1358525065,), (1358525068,), (1358525070,), (1358525073,), (1358525128,), (1358525130,), (1358525150,), (1358525152,), (1358525156,), (1358525190,)) 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 (1358524000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23009555 , 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=23009493 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 (23009555) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23009493) result : ((1358520521,), (1358520610,), (1358520721,), (1358520813,), (1358521503,), (1358521569,), (1358521645,), (1358521711,), (1358522024,), (1358522057,), (1358522085,), (1358522128,), (1358522187,), (1358522242,), (1358522702,), (1358522755,), (1358522828,), (1358523329,), (1358523351,), (1358523360,), (1358523403,), (1358523518,), (1358523521,), (1358523525,), (1358523528,), (1358523531,), (1358523745,), (1358523831,), (1358523884,), (1358523886,), (1358523890,), (1358524000,), (1358524003,), (1358524006,), (1358524035,), (1358524047,), (1358524049,), (1358524317,), (1358524343,), (1358524370,), (1358524397,), (1358524405,), (1358524412,), (1358524557,), (1358524581,), (1358524584,), (1358524586,), (1358524642,), (1358524645,), (1358524656,), (1358524690,), (1358524718,), (1358524751,), (1358524914,), (1358524976,), (1358524980,), (1358524986,), (1358524989,), (1358525012,), (1358525015,), (1358525019,), (1358525022,), (1358525061,), (1358525065,), (1358525068,), (1358525070,), (1358525073,), (1358525128,), (1358525130,), (1358525150,), (1358525152,), (1358525156,), (1358525190,)) 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 (1358524000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23009556 , 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=23009493 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 (23009556) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23009493) result : ((1358520521,), (1358520610,), (1358520721,), (1358520813,), (1358521503,), (1358521569,), (1358521645,), (1358521711,), (1358522024,), (1358522057,), (1358522085,), (1358522128,), (1358522187,), (1358522242,), (1358522702,), (1358522755,), (1358522828,), (1358523329,), (1358523351,), (1358523360,), (1358523403,), (1358523518,), (1358523521,), (1358523525,), (1358523528,), (1358523531,), (1358523745,), (1358523831,), (1358523884,), (1358523886,), (1358523890,), (1358524000,), (1358524003,), (1358524006,), (1358524035,), (1358524047,), (1358524049,), (1358524317,), (1358524343,), (1358524370,), (1358524397,), (1358524405,), (1358524412,), (1358524557,), (1358524581,), (1358524584,), (1358524586,), (1358524642,), (1358524645,), (1358524656,), (1358524690,), (1358524718,), (1358524751,), (1358524914,), (1358524976,), (1358524980,), (1358524986,), (1358524989,), (1358525012,), (1358525015,), (1358525019,), (1358525022,), (1358525061,), (1358525065,), (1358525068,), (1358525070,), (1358525073,), (1358525128,), (1358525130,), (1358525150,), (1358525152,), (1358525156,), (1358525190,)) 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 (1358524000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23009557 , 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=23009493 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 (23009557) result : ((1358524496,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23009493) result : ((1358520521,), (1358520610,), (1358520721,), (1358520813,), (1358521503,), (1358521569,), (1358521645,), (1358521711,), (1358522024,), (1358522057,), (1358522085,), (1358522128,), (1358522187,), (1358522242,), (1358522702,), (1358522755,), (1358522828,), (1358523329,), (1358523351,), (1358523360,), (1358523403,), (1358523518,), (1358523521,), (1358523525,), (1358523528,), (1358523531,), (1358523745,), (1358523831,), (1358523884,), (1358523886,), (1358523890,), (1358524000,), (1358524003,), (1358524006,), (1358524035,), (1358524047,), (1358524049,), (1358524317,), (1358524343,), (1358524370,), (1358524397,), (1358524405,), (1358524412,), (1358524557,), (1358524581,), (1358524584,), (1358524586,), (1358524642,), (1358524645,), (1358524656,), (1358524690,), (1358524718,), (1358524751,), (1358524914,), (1358524976,), (1358524980,), (1358524986,), (1358524989,), (1358525012,), (1358525015,), (1358525019,), (1358525022,), (1358525061,), (1358525065,), (1358525068,), (1358525070,), (1358525073,), (1358525128,), (1358525130,), (1358525150,), (1358525152,), (1358525156,), (1358525190,)) 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 (1358524000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23009558 , 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=23009493 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 (23009558) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23009493) result : ((1358520521,), (1358520610,), (1358520721,), (1358520813,), (1358521503,), (1358521569,), (1358521645,), (1358521711,), (1358522024,), (1358522057,), (1358522085,), (1358522128,), (1358522187,), (1358522242,), (1358522702,), (1358522755,), (1358522828,), (1358523329,), (1358523351,), (1358523360,), (1358523403,), (1358523518,), (1358523521,), (1358523525,), (1358523528,), (1358523531,), (1358523745,), (1358523831,), (1358523884,), (1358523886,), (1358523890,), (1358524000,), (1358524003,), (1358524006,), (1358524035,), (1358524047,), (1358524049,), (1358524317,), (1358524343,), (1358524370,), (1358524397,), (1358524405,), (1358524412,), (1358524557,), (1358524581,), (1358524584,), (1358524586,), (1358524642,), (1358524645,), (1358524656,), (1358524690,), (1358524718,), (1358524751,), (1358524914,), (1358524976,), (1358524980,), (1358524986,), (1358524989,), (1358525012,), (1358525015,), (1358525019,), (1358525022,), (1358525061,), (1358525065,), (1358525068,), (1358525070,), (1358525073,), (1358525128,), (1358525130,), (1358525150,), (1358525152,), (1358525156,), (1358525190,)) 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 (1358524000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23009559 , 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=23009493 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 (23009559) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23009493) result : ((1358520521,), (1358520610,), (1358520721,), (1358520813,), (1358521503,), (1358521569,), (1358521645,), (1358521711,), (1358522024,), (1358522057,), (1358522085,), (1358522128,), (1358522187,), (1358522242,), (1358522702,), (1358522755,), (1358522828,), (1358523329,), (1358523351,), (1358523360,), (1358523403,), (1358523518,), (1358523521,), (1358523525,), (1358523528,), (1358523531,), (1358523745,), (1358523831,), (1358523884,), (1358523886,), (1358523890,), (1358524000,), (1358524003,), (1358524006,), (1358524035,), (1358524047,), (1358524049,), (1358524317,), (1358524343,), (1358524370,), (1358524397,), (1358524405,), (1358524412,), (1358524557,), (1358524581,), (1358524584,), (1358524586,), (1358524642,), (1358524645,), (1358524656,), (1358524690,), (1358524718,), (1358524751,), (1358524914,), (1358524976,), (1358524980,), (1358524986,), (1358524989,), (1358525012,), (1358525015,), (1358525019,), (1358525022,), (1358525061,), (1358525065,), (1358525068,), (1358525070,), (1358525073,), (1358525128,), (1358525130,), (1358525150,), (1358525152,), (1358525156,), (1358525190,)) 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 (1358524000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23009560 , 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=23009493 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 (23009560) result : ((1358524503,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23009493) result : ((1358520521,), (1358520610,), (1358520721,), (1358520813,), (1358521503,), (1358521569,), (1358521645,), (1358521711,), (1358522024,), (1358522057,), (1358522085,), (1358522128,), (1358522187,), (1358522242,), (1358522702,), (1358522755,), (1358522828,), (1358523329,), (1358523351,), (1358523360,), (1358523403,), (1358523518,), (1358523521,), (1358523525,), (1358523528,), (1358523531,), (1358523745,), (1358523831,), (1358523884,), (1358523886,), (1358523890,), (1358524000,), (1358524003,), (1358524006,), (1358524035,), (1358524047,), (1358524049,), (1358524317,), (1358524343,), (1358524370,), (1358524397,), (1358524405,), (1358524412,), (1358524557,), (1358524581,), (1358524584,), (1358524586,), (1358524642,), (1358524645,), (1358524656,), (1358524690,), (1358524718,), (1358524751,), (1358524914,), (1358524976,), (1358524980,), (1358524986,), (1358524989,), (1358525012,), (1358525015,), (1358525019,), (1358525022,), (1358525061,), (1358525065,), (1358525068,), (1358525070,), (1358525073,), (1358525128,), (1358525130,), (1358525150,), (1358525152,), (1358525156,), (1358525190,)) 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 (1358524000) and cspi.crop_hashtag_id = chi.id; 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`=23009493 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','mal_croppe','environnement','Teint_Dans_La_Masse','Carton_brun','papier','metal','cartonnette','plastique','Carton_gris','flou')) 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`=23009493 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','mal_croppe','environnement','Teint_Dans_La_Masse','Carton_brun','papier','metal','cartonnette','plastique','Carton_gris','flou')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 23009493, 'sub_port_id': 23009562, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359636, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 58)}, 'plastique': {'main_port_id': 23009493, 'sub_port_id': 23009563, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359637, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 58)}, 'papier': {'main_port_id': 23009493, 'sub_port_id': 23009564, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359638, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 58)}, 'mal_croppe': {'main_port_id': 23009493, 'sub_port_id': 23009565, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359639, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 23009493, 'sub_port_id': 23009566, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359640, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 58)}, 'cartonnette': {'main_port_id': 23009493, 'sub_port_id': 23009567, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359641, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 58)}, 'Carton_gris': {'main_port_id': 23009493, 'sub_port_id': 23009568, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359642, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 58)}, 'kraft': {'main_port_id': 23009493, 'sub_port_id': 23009569, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359643, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 58)}, 'autre_refus': {'main_port_id': 23009493, 'sub_port_id': 23009570, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359644, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 58)}, 'environnement': {'main_port_id': 23009493, 'sub_port_id': 23009571, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359645, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 58)}, 'metal': {'main_port_id': 23009493, 'sub_port_id': 23009572, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359646, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 58)}, 'Carton_brun': {'main_port_id': 23009493, 'sub_port_id': 23009573, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15359647, 'last_updated_at': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 15, 3, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23009562,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23009549 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23009563,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23009550 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23009564,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23009551 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23009565,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23009552 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23009566,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23009553 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23009567,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23009554 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23009568,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23009555 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23009569,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23009556 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23009570,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23009557 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23009571,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23009558 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23009572,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23009559 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23009573,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23009560 lien utilise dans velours : https://www.fotonower.com/velours/23009562,23009563,23009564,23009565,23009566,23009567,23009568,23009569,23009570,23009571,23009572,23009573?tags=flou,plastique,papier,mal_croppe,Teint_Dans_La_Masse,cartonnette,Carton_gris,kraft,autre_refus,environnement,metal,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23009493]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1358525190, 1358525156, 1358525152, 1358525150, 1358525130, 1358525128, 1358525073, 1358525070, 1358525068, 1358525065, 1358525061, 1358525022, 1358525019, 1358525015, 1358525012, 1358524989, 1358524986, 1358524980, 1358524976, 1358524914] map_info['map_portfolio_photo'] : {23009493: [1358525190, 1358525156, 1358525152, 1358525150, 1358525130, 1358525128, 1358525073, 1358525070, 1358525068, 1358525065, 1358525061, 1358525022, 1358525019, 1358525015, 1358525012, 1358524989, 1358524986, 1358524980, 1358524976, 1358524914, 1358524751, 1358524718, 1358524690, 1358524656, 1358524645, 1358524642, 1358524586, 1358524584, 1358524581, 1358524557, 1358524412, 1358524405, 1358524397, 1358524370, 1358524343, 1358524317, 1358524049, 1358524047, 1358524035, 1358524006, 1358524003, 1358524000, 1358523890, 1358523886, 1358523884, 1358523831, 1358523745, 1358523531, 1358523528, 1358523525, 1358523521, 1358523518, 1358523403, 1358523360, 1358523351, 1358523329, 1358522828, 1358522755, 1358522702, 1358522242, 1358522187, 1358522128, 1358522085, 1358522057, 1358522024, 1358521711, 1358521645, 1358521569, 1358521503, 1358520813, 1358520721, 1358520610, 1358520521]} final : False mtd_id 4302 list_pids : [1358525190, 1358525156, 1358525152, 1358525150, 1358525130, 1358525128, 1358525073, 1358525070, 1358525068, 1358525065, 1358525061, 1358525022, 1358525019, 1358525015, 1358525012, 1358524989, 1358524986, 1358524980, 1358524976, 1358524914] Looping around the photos to save general results len do output : 1 /23009493. 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, '2861860') ('4302', '23009493', '1358525190', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525156', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525152', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525150', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525130', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525128', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525073', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525070', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525068', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525065', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525061', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525022', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525019', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525015', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525012', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358524989', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358524986', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358524980', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358524976', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358524914', None, None, None, None, None, '2861860') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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, '23009493', "{'flou': 23009549, 'plastique': 23009550, 'papier': 23009551, 'mal_croppe': 23009552, 'Teint_Dans_La_Masse': 23009553, 'cartonnette': 23009554, 'Carton_gris': 23009555, 'kraft': 23009556, 'autre_refus': 23009557, 'environnement': 23009558, 'metal': 23009559, 'Carton_brun': 23009560}", None, None, None, None, '2861860'), ('4302', '23009493', '1358525190', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525156', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525152', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525150', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525130', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525128', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525073', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525070', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525068', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525065', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525061', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525022', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525019', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525015', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525012', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358524989', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358524986', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358524980', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358524976', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358524914', None, None, None, None, None, '2861860')] time used for this insertion : 0.01955699920654297 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.47832775115966797 time spend to save output : 0.020045757293701172 total time spend for step 1 : 0.49837350845336914 step2:final Thu May 15 15:16:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23009493) 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 23009493 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1358520813,1358520721,1358520610,1358520521,1358521711,1358521645,1358521569,1358521503,1358522242,1358522187,1358522128,1358522085,1358522057,1358522024,1358522828,1358522755,1358522702,1358523403,1358523360,1358523351,1358523329,1358523531,1358523528,1358523525,1358523521,1358523518,1358523890,1358523886,1358523884,1358523831,1358523745,1358524049,1358524047,1358524035,1358524006,1358524003,1358524000,1358524412,1358524405,1358524397,1358524370,1358524343,1358524317,1358524586,1358524584,1358524581,1358524557,1358524751,1358524718,1358524690,1358524656,1358524645,1358524642,1358524989,1358524986,1358524980,1358524976,1358524914,1358525022,1358525019,1358525015,1358525012,1358525073,1358525070,1358525068,1358525065,1358525061,1358525156,1358525152,1358525150,1358525130,1358525128,1358525190); 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([23009493]) Inside saveOutput : final : False verbose : True original output for save of step final : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} new output for save of step final : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} [1358525190, 1358525156, 1358525152, 1358525150, 1358525130, 1358525128, 1358525073, 1358525070, 1358525068, 1358525065, 1358525061, 1358525022, 1358525019, 1358525015, 1358525012, 1358524989, 1358524986, 1358524980, 1358524976, 1358524914] map_info['map_portfolio_photo'] : {23009493: [1358525190, 1358525156, 1358525152, 1358525150, 1358525130, 1358525128, 1358525073, 1358525070, 1358525068, 1358525065, 1358525061, 1358525022, 1358525019, 1358525015, 1358525012, 1358524989, 1358524986, 1358524980, 1358524976, 1358524914, 1358524751, 1358524718, 1358524690, 1358524656, 1358524645, 1358524642, 1358524586, 1358524584, 1358524581, 1358524557, 1358524412, 1358524405, 1358524397, 1358524370, 1358524343, 1358524317, 1358524049, 1358524047, 1358524035, 1358524006, 1358524003, 1358524000, 1358523890, 1358523886, 1358523884, 1358523831, 1358523745, 1358523531, 1358523528, 1358523525, 1358523521, 1358523518, 1358523403, 1358523360, 1358523351, 1358523329, 1358522828, 1358522755, 1358522702, 1358522242, 1358522187, 1358522128, 1358522085, 1358522057, 1358522024, 1358521711, 1358521645, 1358521569, 1358521503, 1358520813, 1358520721, 1358520610, 1358520521]} final : False mtd_id 4302 list_pids : [1358525190, 1358525156, 1358525152, 1358525150, 1358525130, 1358525128, 1358525073, 1358525070, 1358525068, 1358525065, 1358525061, 1358525022, 1358525019, 1358525015, 1358525012, 1358524989, 1358524986, 1358524980, 1358524976, 1358524914] Looping around the photos to save general results len do output : 20 /1358525190.Didn't retrieve data . /1358525156.Didn't retrieve data . /1358525152.Didn't retrieve data . /1358525150.Didn't retrieve data . /1358525130.Didn't retrieve data . /1358525128.Didn't retrieve data . /1358525073.Didn't retrieve data . /1358525070.Didn't retrieve data . /1358525068.Didn't retrieve data . /1358525065.Didn't retrieve data . /1358525061.Didn't retrieve data . /1358525022.Didn't retrieve data . /1358525019.Didn't retrieve data . /1358525015.Didn't retrieve data . /1358525012.Didn't retrieve data . /1358524989.Didn't retrieve data . /1358524986.Didn't retrieve data . /1358524980.Didn't retrieve data . /1358524976.Didn't retrieve data . /1358524914.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, '2861860') ('4302', '23009493', '1358525190', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525156', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525152', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525150', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525130', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525128', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525073', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525070', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525068', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525065', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525061', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525022', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525019', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525015', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525012', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358524989', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358524986', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358524980', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358524976', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358524914', None, None, None, None, None, '2861860') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 60 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', '23009493', '1358525190', '0.09453114928327257', None, None, None, None, '2861860'), ('4302', '23009493', '1358525156', '0.09453114928327257', None, None, None, None, '2861860'), ('4302', '23009493', '1358525152', '0.09453114928327257', None, None, None, None, '2861860'), ('4302', '23009493', '1358525150', '0.09453114928327257', None, None, None, None, '2861860'), ('4302', '23009493', '1358525130', '0.09453114928327257', None, None, None, None, '2861860'), ('4302', '23009493', '1358525128', '0.09453114928327257', None, None, None, None, '2861860'), ('4302', '23009493', '1358525073', '0.09453114928327257', None, None, None, None, '2861860'), ('4302', '23009493', '1358525070', '0.09453114928327257', None, None, None, None, '2861860'), ('4302', '23009493', '1358525068', '0.09453114928327257', None, None, None, None, '2861860'), ('4302', '23009493', '1358525065', '0.09453114928327257', None, None, None, None, '2861860'), ('4302', '23009493', '1358525061', '0.09453114928327257', None, None, None, None, '2861860'), ('4302', '23009493', '1358525022', '0.09453114928327257', None, None, None, None, '2861860'), ('4302', '23009493', '1358525019', '0.09453114928327257', None, None, None, None, '2861860'), ('4302', '23009493', '1358525015', '0.09453114928327257', None, None, None, None, '2861860'), ('4302', '23009493', '1358525012', '0.09453114928327257', None, None, None, None, '2861860'), ('4302', '23009493', '1358524989', '0.09453114928327257', None, None, None, None, '2861860'), ('4302', '23009493', '1358524986', '0.09453114928327257', None, None, None, None, '2861860'), ('4302', '23009493', '1358524980', '0.09453114928327257', None, None, None, None, '2861860'), ('4302', '23009493', '1358524976', '0.09453114928327257', None, None, None, None, '2861860'), ('4302', '23009493', '1358524914', '0.09453114928327257', None, None, None, None, '2861860')] time used for this insertion : 0.016746997833251953 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08498501777648926 time spend to save output : 0.01793694496154785 total time spend for step 2 : 0.10292196273803711 step3:velours_tree Thu May 15 15:16:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {23009493: [{'flou': 23009549, 'plastique': 23009550, 'papier': 23009551, 'mal_croppe': 23009552, 'Teint_Dans_La_Masse': 23009553, 'cartonnette': 23009554, 'Carton_gris': 23009555, 'kraft': 23009556, 'autre_refus': 23009557, 'environnement': 23009558, 'metal': 23009559, 'Carton_brun': 23009560}]} input_args_next_step : {23009493: ()} output_args : {23009493: [{'flou': 23009549, 'plastique': 23009550, 'papier': 23009551, 'mal_croppe': 23009552, 'Teint_Dans_La_Masse': 23009553, 'cartonnette': 23009554, 'Carton_gris': 23009555, 'kraft': 23009556, 'autre_refus': 23009557, 'environnement': 23009558, 'metal': 23009559, 'Carton_brun': 23009560}]} args : 23009493 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 : ({'flou': 23009549, 'plastique': 23009550, 'papier': 23009551, 'mal_croppe': 23009552, 'Teint_Dans_La_Masse': 23009553, 'cartonnette': 23009554, 'Carton_gris': 23009555, 'kraft': 23009556, 'autre_refus': 23009557, 'environnement': 23009558, 'metal': 23009559, 'Carton_brun': 23009560},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23009493) 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([23009493]) 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.406055212020874 time spend to save output : 5.1021575927734375e-05 total time spend for step 3 : 0.40610623359680176 step4:send_mail_cod Thu May 15 15:16:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} input_args_next_step : {1358525190: ()} output_args : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} args : 1358525190 depend.output_id : 0 input_args_next_step : {1358525190: ('0.09453114928327257',), 1358525156: ()} output_args : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} args : 1358525156 depend.output_id : 0 input_args_next_step : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ()} output_args : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} args : 1358525152 depend.output_id : 0 input_args_next_step : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ()} output_args : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} args : 1358525150 depend.output_id : 0 input_args_next_step : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ()} output_args : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} args : 1358525130 depend.output_id : 0 input_args_next_step : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ()} output_args : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} args : 1358525128 depend.output_id : 0 input_args_next_step : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ()} output_args : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} args : 1358525073 depend.output_id : 0 input_args_next_step : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ()} output_args : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} args : 1358525070 depend.output_id : 0 input_args_next_step : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ()} output_args : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} args : 1358525068 depend.output_id : 0 input_args_next_step : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ()} output_args : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} args : 1358525065 depend.output_id : 0 input_args_next_step : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ()} output_args : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} args : 1358525061 depend.output_id : 0 input_args_next_step : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ()} output_args : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} args : 1358525022 depend.output_id : 0 input_args_next_step : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ()} output_args : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} args : 1358525019 depend.output_id : 0 input_args_next_step : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ()} output_args : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} args : 1358525015 depend.output_id : 0 input_args_next_step : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ()} output_args : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} args : 1358525012 depend.output_id : 0 input_args_next_step : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ()} output_args : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} args : 1358524989 depend.output_id : 0 input_args_next_step : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ()} output_args : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} args : 1358524986 depend.output_id : 0 input_args_next_step : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ()} output_args : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} args : 1358524980 depend.output_id : 0 input_args_next_step : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ()} output_args : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} args : 1358524976 depend.output_id : 0 input_args_next_step : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ()} output_args : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',)} args : 1358524914 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 : {23009493: [{'flou': 23009549, 'plastique': 23009550, 'papier': 23009551, 'mal_croppe': 23009552, 'Teint_Dans_La_Masse': 23009553, 'cartonnette': 23009554, 'Carton_gris': 23009555, 'kraft': 23009556, 'autre_refus': 23009557, 'environnement': 23009558, 'metal': 23009559, 'Carton_brun': 23009560}]} input_args_next_step : {1358525190: ('0.09453114928327257',), 1358525156: ('0.09453114928327257',), 1358525152: ('0.09453114928327257',), 1358525150: ('0.09453114928327257',), 1358525130: ('0.09453114928327257',), 1358525128: ('0.09453114928327257',), 1358525073: ('0.09453114928327257',), 1358525070: ('0.09453114928327257',), 1358525068: ('0.09453114928327257',), 1358525065: ('0.09453114928327257',), 1358525061: ('0.09453114928327257',), 1358525022: ('0.09453114928327257',), 1358525019: ('0.09453114928327257',), 1358525015: ('0.09453114928327257',), 1358525012: ('0.09453114928327257',), 1358524989: ('0.09453114928327257',), 1358524986: ('0.09453114928327257',), 1358524980: ('0.09453114928327257',), 1358524976: ('0.09453114928327257',), 1358524914: ('0.09453114928327257',), 23009493: ()} output_args : {23009493: [{'flou': 23009549, 'plastique': 23009550, 'papier': 23009551, 'mal_croppe': 23009552, 'Teint_Dans_La_Masse': 23009553, 'cartonnette': 23009554, 'Carton_gris': 23009555, 'kraft': 23009556, 'autre_refus': 23009557, 'environnement': 23009558, 'metal': 23009559, 'Carton_brun': 23009560}]} args : 23009493 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 :21, first value : ('0.09453114928327257',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23009493) 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 (1358525190,1358525156,1358525152,1358525150,1358525130,1358525128,1358525073,1358525070,1358525068,1358525065,1358525061,1358525022,1358525019,1358525015,1358525012,1358524989,1358524986,1358524980,1358524976,1358524914) Found this number of photos: 20 ##### Call download_photos : nb_thread : 5 begin to download photo : 1358524914 begin to download photo : 1358525012 begin to download photo : 1358525065 begin to download photo : 1358525130 download finish for photo 1358524914 begin to download photo : 1358524976 download finish for photo 1358525012 begin to download photo : 1358525015 download finish for photo 1358525130 begin to download photo : 1358525150 download finish for photo 1358525065 begin to download photo : 1358525068 download finish for photo 1358525015 begin to download photo : 1358525019 download finish for photo 1358524976 begin to download photo : 1358524980 download finish for photo 1358525068 begin to download photo : 1358525070 download finish for photo 1358525150 begin to download photo : 1358525152 download finish for photo 1358524980 begin to download photo : 1358524986 download finish for photo 1358525070 begin to download photo : 1358525073 download finish for photo 1358525152 begin to download photo : 1358525156 download finish for photo 1358525019 begin to download photo : 1358525022 download finish for photo 1358525073 begin to download photo : 1358525128 download finish for photo 1358525022 begin to download photo : 1358525061 download finish for photo 1358525156 begin to download photo : 1358525190 download finish for photo 1358524986 begin to download photo : 1358524989 download finish for photo 1358525190 download finish for photo 1358525128 download finish for photo 1358525061 download finish for photo 1358524989 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette230095491747315020/ length of list_filenames : 20 ; length of list_pids : 20 ; length of list_args : 20 results_Auto_P23009493_15-05-2025_15_17_00.pdf 23009549 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=23009549 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230095491747315020 23009550 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=23009550 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358524511: '1747314566_2124231_1358522755_56023df3de85393c85bdfed58b09a6ef_rle_crop_3799078606_0.png'} change filename to text .imagette230095501747315020/ imagette230095501747315020/1747314566_2124231_1358522755_56023df3de85393c85bdfed58b09a6ef_rle_crop_3799078606_0.png.png imagette230095521747315020/ imagette230095541747315020/ imagette230095561747315020/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/3ed6a61883c68e4c8ff68d8223146129_62765691.png imagette230095501747315020 23009552 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=23009552 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230095521747315020 23009554 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=23009554 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230095541747315020 23009556 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=23009556 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230095561747315020 23009557 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=23009557 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358524496: '1747314566_2124231_1358522702_31cbd61218e4cdea2d6e575a8d8e8b3d_rle_crop_3799078617_0.png'} change filename to text .imagette230095571747315020/ imagette230095571747315020/1747314566_2124231_1358522702_31cbd61218e4cdea2d6e575a8d8e8b3d_rle_crop_3799078617_0.png.png imagette230095591747315020/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/da853dba4b5b5d5b001504f92442add5_32209648.png imagette230095571747315020 23009559 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=23009559 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230095591747315020 23009553 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=23009553 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358523502: '1747314326_2119793_1358521569_114f2ced52fb3daaa0fc79e2fb3ed8df_rle_crop_3799075675_0.png', 1358523503: '1747314326_2119793_1358521569_114f2ced52fb3daaa0fc79e2fb3ed8df_rle_crop_3799075670_0.png', 1358523504: '1747314326_2119793_1358521503_b7222500c65e84f34b56b5f531e0f7d2_rle_crop_3799075684_0.png', 1358523506: '1747314326_2119793_1358521503_b7222500c65e84f34b56b5f531e0f7d2_rle_crop_3799075685_0.png', 1358524483: '1747314566_2124231_1358522702_31cbd61218e4cdea2d6e575a8d8e8b3d_rle_crop_3799078619_0.png', 1358524485: '1747314566_2124231_1358522702_31cbd61218e4cdea2d6e575a8d8e8b3d_rle_crop_3799078623_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/c7f3147b4d1883bd01bd29939f49966d_78315093.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/d357786aef767d562abbd6b9d8a59a43_99106748.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/a3fec8c2ee4b510be818bccd75306b56_86716147.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/758cddf15d9c3b622870e40316532b99_20060365.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/941c7e5a2882d36039f283bd59c8fd73_15957112.png change filename to text .imagette230095531747315020/ imagette230095531747315020/1747314326_2119793_1358521569_114f2ced52fb3daaa0fc79e2fb3ed8df_rle_crop_3799075670_0.png.png imagette230095531747315020/1747314326_2119793_1358521503_b7222500c65e84f34b56b5f531e0f7d2_rle_crop_3799075685_0.png.png imagette230095531747315020/1747314566_2124231_1358522702_31cbd61218e4cdea2d6e575a8d8e8b3d_rle_crop_3799078623_0.png.png imagette230095531747315020/1747314566_2124231_1358522702_31cbd61218e4cdea2d6e575a8d8e8b3d_rle_crop_3799078619_0.png.png imagette230095531747315020/1747314326_2119793_1358521503_b7222500c65e84f34b56b5f531e0f7d2_rle_crop_3799075684_0.png.png imagette230095531747315020/1747314326_2119793_1358521569_114f2ced52fb3daaa0fc79e2fb3ed8df_rle_crop_3799075675_0.png.png imagette230095551747315020/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/403f75c984c73b0e467253bbc087b639_72649399.png imagette230095531747315020 23009555 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=23009555 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230095551747315020 23009560 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=23009560 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358524503: '1747314566_2124231_1358522755_56023df3de85393c85bdfed58b09a6ef_rle_crop_3799078607_0.png'} change filename to text .imagette230095601747315020/ imagette230095601747315020/1747314566_2124231_1358522755_56023df3de85393c85bdfed58b09a6ef_rle_crop_3799078607_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/848c66ce626ac902dfba05839affe1df_34464059.png imagette230095601747315020 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23009493 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23009562,23009563,23009564,23009565,23009566,23009567,23009568,23009569,23009570,23009571,23009572,23009573?tags=flou,plastique,papier,mal_croppe,Teint_Dans_La_Masse,cartonnette,Carton_gris,kraft,autre_refus,environnement,metal,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1358525190] : ('0.09453114928327257',) no score found for photo 1358525190 We are sending mail with results at report@fotonower.com args[1358525156] : ('0.09453114928327257',) no score found for photo 1358525156 We are sending mail with results at report@fotonower.com args[1358525152] : ('0.09453114928327257',) no score found for photo 1358525152 We are sending mail with results at report@fotonower.com args[1358525150] : ('0.09453114928327257',) no score found for photo 1358525150 We are sending mail with results at report@fotonower.com args[1358525130] : ('0.09453114928327257',) no score found for photo 1358525130 We are sending mail with results at report@fotonower.com args[1358525128] : ('0.09453114928327257',) no score found for photo 1358525128 We are sending mail with results at report@fotonower.com args[1358525073] : ('0.09453114928327257',) no score found for photo 1358525073 We are sending mail with results at report@fotonower.com args[1358525070] : ('0.09453114928327257',) no score found for photo 1358525070 We are sending mail with results at report@fotonower.com args[1358525068] : ('0.09453114928327257',) no score found for photo 1358525068 We are sending mail with results at report@fotonower.com args[1358525065] : ('0.09453114928327257',) no score found for photo 1358525065 We are sending mail with results at report@fotonower.com args[1358525061] : ('0.09453114928327257',) no score found for photo 1358525061 We are sending mail with results at report@fotonower.com args[1358525022] : ('0.09453114928327257',) no score found for photo 1358525022 We are sending mail with results at report@fotonower.com args[1358525019] : ('0.09453114928327257',) no score found for photo 1358525019 We are sending mail with results at report@fotonower.com args[1358525015] : ('0.09453114928327257',) no score found for photo 1358525015 We are sending mail with results at report@fotonower.com args[1358525012] : ('0.09453114928327257',) no score found for photo 1358525012 We are sending mail with results at report@fotonower.com args[1358524989] : ('0.09453114928327257',) no score found for photo 1358524989 We are sending mail with results at report@fotonower.com args[1358524986] : ('0.09453114928327257',) no score found for photo 1358524986 We are sending mail with results at report@fotonower.com args[1358524980] : ('0.09453114928327257',) no score found for photo 1358524980 We are sending mail with results at report@fotonower.com args[1358524976] : ('0.09453114928327257',) no score found for photo 1358524976 We are sending mail with results at report@fotonower.com args[1358524914] : ('0.09453114928327257',) no score found for photo 1358524914 We are sending mail with results at report@fotonower.com refus_total : 0.09453114928327257 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=23009493 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_P23009493_15-05-2025_15_17_00.pdf results_Auto_P23009493_15-05-2025_15_17_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23009493_15-05-2025_15_17_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','23009493','results_Auto_P23009493_15-05-2025_15_17_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23009493_15-05-2025_15_17_00.pdf','pdf','','0.19','0.09453114928327257') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23009493]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1358525190, 1358525156, 1358525152, 1358525150, 1358525130, 1358525128, 1358525073, 1358525070, 1358525068, 1358525065, 1358525061, 1358525022, 1358525019, 1358525015, 1358525012, 1358524989, 1358524986, 1358524980, 1358524976, 1358524914] map_info['map_portfolio_photo'] : {23009493: [1358525190, 1358525156, 1358525152, 1358525150, 1358525130, 1358525128, 1358525073, 1358525070, 1358525068, 1358525065, 1358525061, 1358525022, 1358525019, 1358525015, 1358525012, 1358524989, 1358524986, 1358524980, 1358524976, 1358524914, 1358524751, 1358524718, 1358524690, 1358524656, 1358524645, 1358524642, 1358524586, 1358524584, 1358524581, 1358524557, 1358524412, 1358524405, 1358524397, 1358524370, 1358524343, 1358524317, 1358524049, 1358524047, 1358524035, 1358524006, 1358524003, 1358524000, 1358523890, 1358523886, 1358523884, 1358523831, 1358523745, 1358523531, 1358523528, 1358523525, 1358523521, 1358523518, 1358523403, 1358523360, 1358523351, 1358523329, 1358522828, 1358522755, 1358522702, 1358522242, 1358522187, 1358522128, 1358522085, 1358522057, 1358522024, 1358521711, 1358521645, 1358521569, 1358521503, 1358520813, 1358520721, 1358520610, 1358520521]} final : False mtd_id 4302 list_pids : [1358525190, 1358525156, 1358525152, 1358525150, 1358525130, 1358525128, 1358525073, 1358525070, 1358525068, 1358525065, 1358525061, 1358525022, 1358525019, 1358525015, 1358525012, 1358524989, 1358524986, 1358524980, 1358524976, 1358524914] 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, '2861860') ('4302', '23009493', '1358525190', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525156', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525152', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525150', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525130', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525128', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525073', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525070', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525068', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525065', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525061', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525022', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525019', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525015', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525012', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358524989', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358524986', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358524980', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358524976', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358524914', None, None, None, None, None, '2861860') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '23009493', '1358525190', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525156', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525152', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525150', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525130', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525128', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525073', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525070', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525068', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525065', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525061', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525022', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525019', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525015', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525012', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358524989', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358524986', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358524980', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358524976', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358524914', None, None, None, None, None, '2861860')] time used for this insertion : 0.015400171279907227 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.8976569175720215 time spend to save output : 0.015740633010864258 total time spend for step 4 : 2.9133975505828857 step5:split_time_score Thu May 15 15:17:02 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 : ['23009493'] 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 : [('23009493',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23009493) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1358525130: {'path': 'temp/1747315019_3846278_1358525130_9f16c9f37f30c26fa99dc29118730c8a.jpg', 'extension': 'jpg'}, 1358525150: {'path': 'temp/1747315019_3846278_1358525150_05f445edcf5160be802ee24025baad09.jpg', 'extension': 'jpg'}, 1358525152: {'path': 'temp/1747315019_3846278_1358525152_900adc77178d65ec438ef25aba843826.jpg', 'extension': 'jpg'}, 1358525156: {'path': 'temp/1747315019_3846278_1358525156_b0e15acd21eface85b6835f29d9177f2.jpg', 'extension': 'jpg'}, 1358525190: {'path': 'temp/1747315019_3846278_1358525190_92113e491d6ef5b97b4e57da684f822c.jpg', 'extension': 'jpg'}, 1358525065: {'path': 'temp/1747315019_3846278_1358525065_eb834395c6a189c228e26e1e0fe734f8.jpg', 'extension': 'jpg'}, 1358525068: {'path': 'temp/1747315019_3846278_1358525068_55c8b1b7fde0df86fe4fc55717f1989d.jpg', 'extension': 'jpg'}, 1358525070: {'path': 'temp/1747315019_3846278_1358525070_ffcfece6a27ddf3e5d0ceb00b27d4f57.jpg', 'extension': 'jpg'}, 1358525073: {'path': 'temp/1747315019_3846278_1358525073_175d3b259328cea4c13da6c74d362007.jpg', 'extension': 'jpg'}, 1358525128: {'path': 'temp/1747315019_3846278_1358525128_31a7b33870c0e646a0766804a88796b3.jpg', 'extension': 'jpg'}, 1358525012: {'path': 'temp/1747315019_3846278_1358525012_224cc610465f100a524b726c1cb745e9.jpg', 'extension': 'jpg'}, 1358525015: {'path': 'temp/1747315019_3846278_1358525015_c92ba2e3bceffaa3bebdae7429e8806a.jpg', 'extension': 'jpg'}, 1358525019: {'path': 'temp/1747315019_3846278_1358525019_7cf1eb451f38979a7857691f788fe403.jpg', 'extension': 'jpg'}, 1358525022: {'path': 'temp/1747315019_3846278_1358525022_c3e7c6b30e4a504068db31a3a78429e4.jpg', 'extension': 'jpg'}, 1358525061: {'path': 'temp/1747315019_3846278_1358525061_7188aca6d739ed430786cf7dfa716388.jpg', 'extension': 'jpg'}, 1358524914: {'path': 'temp/1747315019_3846278_1358524914_d94f7132c587ffa1a5b7f0d87da8fbdd.jpg', 'extension': 'jpg'}, 1358524976: {'path': 'temp/1747315019_3846278_1358524976_de73d0c5e6a83157a48b6390139c9166.jpg', 'extension': 'jpg'}, 1358524980: {'path': 'temp/1747315019_3846278_1358524980_6dcb552e99d1eaee674921cd8e40fe58.jpg', 'extension': 'jpg'}, 1358524986: {'path': 'temp/1747315019_3846278_1358524986_735e311ebdf01d242f07a8fffe9b20c7.jpg', 'extension': 'jpg'}, 1358524989: {'path': 'temp/1747315019_3846278_1358524989_139fddf32fb666fc45a44a7c5bfddd41.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 = 23009493; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 23009493 group by h (('15', 73),) 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=23009493 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 (23009493) 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 (23009493) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 15052025 23009493 Nombre de photos uploadées : 73 / 23040 (0%) 15052025 23009493 Nombre de photos taguées (types de déchets): 0 / 73 (0%) 15052025 23009493 Nombre de photos taguées (volume) : 0 / 73 (0%) [{'photo_id': 1358520813, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/585e961ff2d99af5a11d1d30f49f1e71.jpg', 'username': None, 'uploaded_at': 1747314067, 'text': 'image_15052025_15_00_04_10169.jpg'}, {'photo_id': 1358520721, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/ab7873ff3cda8941bed429b6fdbdc078.jpg', 'username': None, 'uploaded_at': 1747314067, 'text': 'image_15052025_15_00_23_10135.jpg'}, {'photo_id': 1358520610, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/ca157811bc700197c9d3b7aa80eff3cf.jpg', 'username': None, 'uploaded_at': 1747314067, 'text': 'image_15052025_15_00_33_10135.jpg'}, {'photo_id': 1358520521, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/1b87acefe4b444c05a75ae36abaf4a5c.jpg', 'username': None, 'uploaded_at': 1747314067, 'text': 'image_15052025_15_00_43_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 4.0531158447265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.0967254638671875e-05 ????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004727602005004883 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23009493, '2025-05-15' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1807564,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.027554988861083984 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= 1807564 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1807564, 'dashboard_run_id': 1817257, 'mtr_portfolio_id': 23008283, 'dashboard_result_id': 10589288, '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_P23008283_15-05-2025_14_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23008284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23008285, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23008286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23008287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23008288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23008289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23008290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23008291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23008292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23008293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23008294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23008295, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1817257, 'mtr_portfolio_id': 23008972, 'dashboard_result_id': 10589289, '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_P23008972_15-05-2025_14_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23008996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23008997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23008998, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23008999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23009000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23009001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23009002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23009003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23009004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23009005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23009006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23009007, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1817257, 'mtr_portfolio_id': 23009044, 'dashboard_result_id': 10589290, '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_P23009044_15-05-2025_15_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23009072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23009073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23009074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23009075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23009076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23009077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23009078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23009079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23009080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23009081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23009082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23009083, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1817257, 'mtr_portfolio_id': 23009493, 'dashboard_result_id': 10589291, '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_P23009493_15-05-2025_15_12_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23009549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23009550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23009551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23009552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23009553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23009554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23009555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23009556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23009557, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23009558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23009559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23009560, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23008283 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': 2861559, 'mtr_portfolio_id': 23008283, 'created_at': datetime.datetime(2025, 5, 15, 14, 47), 'result': '0.07580253279821209', 'result_long': None, 'result_double': None}] Qualite : 0.07580253279821209 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23008283 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23008283_15-05-2025_14_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23008283 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_P23008283_15-05-2025_14_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23008284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23008285, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23008286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23008287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23008288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23008289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23008290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23008291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23008292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23008293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23008294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23008295, 'pht': 3726}}" where mtr_portfolio_id = 23008283 and dashboard_run_id = 1817258 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`=23008283 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10589288, 0.07580253279821209, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23008283_15-05-2025_14_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23008284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23008285, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23008286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23008287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23008288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23008289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23008290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23008291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23008292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23008293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23008294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23008295, '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 = 23008972 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': 2861704, 'mtr_portfolio_id': 23008972, 'created_at': datetime.datetime(2025, 5, 15, 14, 48, 59), 'result': '0.07046261531923294', 'result_long': None, 'result_double': None}] Qualite : 0.07046261531923294 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23008972 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23008972_15-05-2025_14_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23008972 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_P23008972_15-05-2025_14_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23008996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23008997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23008998, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23008999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23009000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23009001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23009002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23009003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23009004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23009005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23009006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23009007, 'pht': 3726}}" where mtr_portfolio_id = 23008972 and dashboard_run_id = 1817258 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`=23008972 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10589289, 0.07046261531923294, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23008972_15-05-2025_14_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23008996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23008997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23008998, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23008999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23009000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23009001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23009002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23009003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23009004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23009005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23009006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23009007, '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 = 23009044 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': 2861723, 'mtr_portfolio_id': 23009044, 'created_at': datetime.datetime(2025, 5, 15, 15, 2, 59), 'result': '0.015820406345931837', 'result_long': None, 'result_double': None}] Qualite : 0.015820406345931837 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23009044 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23009044_15-05-2025_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23009044 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_P23009044_15-05-2025_15_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23009072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23009073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23009074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23009075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23009076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23009077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23009078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23009079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23009080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23009081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23009082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23009083, 'pht': 3726}}" where mtr_portfolio_id = 23009044 and dashboard_run_id = 1817258 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`=23009044 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10589290, 0.015820406345931837, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23009044_15-05-2025_15_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23009072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23009073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23009074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23009075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23009076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23009077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23009078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23009079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23009080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23009081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23009082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23009083, '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 = 23009493 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': 2861860, 'mtr_portfolio_id': 23009493, 'created_at': datetime.datetime(2025, 5, 15, 15, 16, 59), 'result': '0.09453114928327257', 'result_long': None, 'result_double': None}] Qualite : 0.09453114928327257 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23009493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23009493_15-05-2025_15_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23009493 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_P23009493_15-05-2025_15_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23009549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23009550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23009551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23009552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23009553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23009554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23009555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23009556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23009557, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23009558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23009559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23009560, 'pht': 3726}}" where mtr_portfolio_id = 23009493 and dashboard_run_id = 1817258 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`=23009493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10589291, 0.09453114928327257, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23009493_15-05-2025_15_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23009549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23009550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23009551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23009552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23009553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23009554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23009555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23009556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23009557, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23009558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23009559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23009560, '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 (23008283,23008972,23009044,23009493) result : ((1358509930,), (1358509933,), (1358509937,), (1358509978,), (1358509988,), (1358510815,), (1358510817,), (1358510970,), (1358510972,), (1358511028,), (1358511053,), (1358511081,), (1358511105,), (1358511451,), (1358511479,), (1358511507,), (1358511534,), (1358511568,), (1358511637,), (1358511894,), (1358511920,), (1358511946,), (1358511987,), (1358512078,), (1358512189,), (1358512199,), (1358512203,), (1358512476,), (1358512401,), (1358512404,), (1358512407,), (1358512410,), (1358512445,), (1358512594,), (1358512596,), (1358512599,), (1358512635,), (1358512637,), (1358512639,), (1358512641,), (1358512644,), (1358512648,), (1358512685,), (1358512689,), (1358512691,), (1358512693,), (1358512694,), (1358512698,), (1358512730,), (1358512733,), (1358512734,), (1358512765,), (1358512767,), (1358512769,), (1358512782,), (1358512786,), (1358512792,), (1358512812,), (1358512813,), (1358512814,), (1358512817,), (1358512821,), (1358512919,), (1358512961,), (1358512989,), (1358513110,), (1358513178,), (1358513179,), (1358513182,), (1358513185,), (1358513216,), (1358513219,), (1358513222,), (1358513224,), (1358513226,), (1358513348,), (1358513376,), (1358513406,), (1358513438,), (1358513974,), (1358514020,), (1358514053,), (1358514083,), (1358514134,), (1358514444,), (1358514494,), (1358514877,), (1358515016,), (1358515091,), (1358515121,), (1358515173,), (1358515206,), (1358515280,), (1358515283,), (1358515288,), (1358515292,), (1358515624,), (1358515539,), (1358515564,), (1358515585,), (1358515598,), (1358515621,), (1358515668,), (1358515699,), (1358515726,), (1358515755,), (1358515811,), (1358515867,), (1358516175,), (1358516215,), (1358516466,), (1358516507,), (1358516509,), (1358516512,), (1358516518,), (1358516522,), (1358516527,), (1358516574,), (1358516576,), (1358516580,), (1358516583,), (1358516585,), (1358516587,), (1358516678,), (1358516705,), (1358516731,), (1358516759,), (1358517054,), (1358517058,), (1358517061,), (1358517073,), (1358517100,), (1358517129,), (1358517255,), (1358517271,), (1358517307,), (1358517325,), (1358517328,), (1358517366,), (1358517371,), (1358517377,), (1358517381,), (1358517421,), (1358517426,), (1358517430,), (1358517432,), (1358517435,), (1358517438,), (1358517475,), (1358517478,), (1358517493,), (1358517520,), (1358517799,), (1358517826,), (1358517854,), (1358519479,), (1358519566,), (1358519627,), (1358519707,), (1358519789,), (1358520038,), (1358520082,), (1358520122,), (1358520187,), (1358520253,), (1358520894,), (1358520521,), (1358520610,), (1358520721,), (1358520813,), (1358521503,), (1358521569,), (1358521645,), (1358521711,), (1358522024,), (1358522057,), (1358522085,), (1358522128,), (1358522187,), (1358522242,), (1358522702,), (1358522755,), (1358522828,), (1358523329,), (1358523351,), (1358523360,), (1358523403,), (1358523518,), (1358523521,), (1358523525,), (1358523528,), (1358523531,), (1358523745,), (1358523831,), (1358523884,), (1358523886,), (1358523890,), (1358524000,), (1358524003,), (1358524006,), (1358524035,), (1358524047,), (1358524049,), (1358524317,), (1358524343,), (1358524370,), (1358524397,), (1358524405,), (1358524412,), (1358524557,), (1358524581,), (1358524584,), (1358524586,), (1358524642,), (1358524645,), (1358524656,), (1358524690,), (1358524718,), (1358524751,), (1358524914,), (1358524976,), (1358524980,), (1358524986,), (1358524989,), (1358525012,), (1358525015,), (1358525019,), (1358525022,), (1358525061,), (1358525065,), (1358525068,), (1358525070,), (1358525073,), (1358525128,), (1358525130,), (1358525150,), (1358525152,), (1358525156,), (1358525190,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'15052025': {'nb_upload': 73, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23009493]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1358525190, 1358525156, 1358525152, 1358525150, 1358525130, 1358525128, 1358525073, 1358525070, 1358525068, 1358525065, 1358525061, 1358525022, 1358525019, 1358525015, 1358525012, 1358524989, 1358524986, 1358524980, 1358524976, 1358524914] map_info['map_portfolio_photo'] : {23009493: [1358525190, 1358525156, 1358525152, 1358525150, 1358525130, 1358525128, 1358525073, 1358525070, 1358525068, 1358525065, 1358525061, 1358525022, 1358525019, 1358525015, 1358525012, 1358524989, 1358524986, 1358524980, 1358524976, 1358524914, 1358524751, 1358524718, 1358524690, 1358524656, 1358524645, 1358524642, 1358524586, 1358524584, 1358524581, 1358524557, 1358524412, 1358524405, 1358524397, 1358524370, 1358524343, 1358524317, 1358524049, 1358524047, 1358524035, 1358524006, 1358524003, 1358524000, 1358523890, 1358523886, 1358523884, 1358523831, 1358523745, 1358523531, 1358523528, 1358523525, 1358523521, 1358523518, 1358523403, 1358523360, 1358523351, 1358523329, 1358522828, 1358522755, 1358522702, 1358522242, 1358522187, 1358522128, 1358522085, 1358522057, 1358522024, 1358521711, 1358521645, 1358521569, 1358521503, 1358520813, 1358520721, 1358520610, 1358520521]} final : True mtd_id 4302 list_pids : [1358525190, 1358525156, 1358525152, 1358525150, 1358525130, 1358525128, 1358525073, 1358525070, 1358525068, 1358525065, 1358525061, 1358525022, 1358525019, 1358525015, 1358525012, 1358524989, 1358524986, 1358524980, 1358524976, 1358524914] Looping around the photos to save general results len do output : 1 /23009493Didn'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, '2861860') ('4302', '23009493', '1358525190', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525156', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525152', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525150', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525130', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525128', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525073', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525070', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525068', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525065', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525061', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525022', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525019', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525015', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358525012', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358524989', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358524986', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358524980', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358524976', None, None, None, None, None, '2861860') ('4302', None, None, None, None, None, None, None, '2861860') ('4302', '23009493', '1358524914', None, None, None, None, None, '2861860') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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, '23009493', 'None', None, None, None, None, '2861860'), ('4302', '23009493', '1358525190', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525156', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525152', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525150', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525130', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525128', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525073', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525070', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525068', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525065', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525061', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525022', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525019', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525015', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358525012', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358524989', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358524986', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358524980', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358524976', None, None, None, None, None, '2861860'), ('4302', '23009493', '1358524914', None, None, None, None, None, '2861860')] time used for this insertion : 0.015692710876464844 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.40189242362976074 time spend to save output : 0.01604151725769043 total time spend for step 5 : 0.41793394088745117 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 (2861860) 2.38user 2.33system 0:07.77elapsed 60%CPU (0avgtext+0avgdata 160576maxresident)k 25688inputs+12120outputs (161major+76818minor)pagefaults 0swaps