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 : 3004411 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 (2723445) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2723445) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22056524 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2723445'] with mtr_portfolio_ids : ['22056524'] and first list_photo_ids : [] new path : /proc/3004411/ Name: python3 Umask: 0002 State: R (running) Tgid: 3004411 Ngid: 0 Pid: 3004411 PPid: 3004410 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3004411 NSpid: 3004411 NSpgid: 3002457 NSsid: 3002457 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98016 kB VmRSS: 98016 kB RssAnon: 59796 kB RssFile: 38220 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 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: 50 nonvoluntary_ctxt_switches: 103 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3004411', 'Ngid': '0', 'Pid': '3004411', 'PPid': '3004410', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3004411', 'NSpid': '3004411', 'NSpgid': '3002457', 'NSsid': '3002457', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98016 kB', 'VmRSS': '98016 kB', 'RssAnon': '59796 kB', 'RssFile': '38220 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 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': '50', 'nonvoluntary_ctxt_switches': '103'} ('datou_batch_current', '3004411', '1106928', '0', '1106928', '865676', '98016', b'', 'marlene', '2723445') 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 (22056524) 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 (2723445 ) ) 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 (22056524) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349987543, 'portfolio_id': 22056524}, {'photo_id': 1349987539, 'portfolio_id': 22056524}, {'photo_id': 1349987538, 'portfolio_id': 22056524}, {'photo_id': 1349987534, 'portfolio_id': 22056524}, {'photo_id': 1349987513, 'portfolio_id': 22056524}, {'photo_id': 1349987511, 'portfolio_id': 22056524}, {'photo_id': 1349987508, 'portfolio_id': 22056524}, {'photo_id': 1349987500, 'portfolio_id': 22056524}, {'photo_id': 1349987488, 'portfolio_id': 22056524}, {'photo_id': 1349987459, 'portfolio_id': 22056524}, {'photo_id': 1349987457, 'portfolio_id': 22056524}, {'photo_id': 1349987453, 'portfolio_id': 22056524}, {'photo_id': 1349987451, 'portfolio_id': 22056524}, {'photo_id': 1349987449, 'portfolio_id': 22056524}, {'photo_id': 1349987417, 'portfolio_id': 22056524}, {'photo_id': 1349987358, 'portfolio_id': 22056524}, {'photo_id': 1349987349, 'portfolio_id': 22056524}, {'photo_id': 1349987311, 'portfolio_id': 22056524}, {'photo_id': 1349987308, 'portfolio_id': 22056524}, {'photo_id': 1349987222, 'portfolio_id': 22056524}, {'photo_id': 1349987217, 'portfolio_id': 22056524}, {'photo_id': 1349987199, 'portfolio_id': 22056524}, {'photo_id': 1349987146, 'portfolio_id': 22056524}, {'photo_id': 1349987057, 'portfolio_id': 22056524}, {'photo_id': 1349987055, 'portfolio_id': 22056524}, {'photo_id': 1349987053, 'portfolio_id': 22056524}, {'photo_id': 1349987052, 'portfolio_id': 22056524}, {'photo_id': 1349987001, 'portfolio_id': 22056524}, {'photo_id': 1349986972, 'portfolio_id': 22056524}, {'photo_id': 1349986423, 'portfolio_id': 22056524}, {'photo_id': 1349986367, 'portfolio_id': 22056524}, {'photo_id': 1349986356, 'portfolio_id': 22056524}, {'photo_id': 1349986354, 'portfolio_id': 22056524}, {'photo_id': 1349986350, 'portfolio_id': 22056524}, {'photo_id': 1349986313, 'portfolio_id': 22056524}, {'photo_id': 1349986309, 'portfolio_id': 22056524}, {'photo_id': 1349986307, 'portfolio_id': 22056524}, {'photo_id': 1349986304, 'portfolio_id': 22056524}, {'photo_id': 1349986300, 'portfolio_id': 22056524}] map_portfolio_id_photo_id: {22056524: [1349987543, 1349987539, 1349987538, 1349987534, 1349987513, 1349987511, 1349987508, 1349987500, 1349987488, 1349987459, 1349987457, 1349987453, 1349987451, 1349987449, 1349987417, 1349987358, 1349987349, 1349987311, 1349987308, 1349987222, 1349987217, 1349987199, 1349987146, 1349987057, 1349987055, 1349987053, 1349987052, 1349987001, 1349986972, 1349986423, 1349986367, 1349986356, 1349986354, 1349986350, 1349986313, 1349986309, 1349986307, 1349986304, 1349986300]} ##### 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.015366077423095703 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Apr 4 06:38:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22056524) 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 : 22056524 get user id for portfolio 22056524 get sub ptf for main ptf 22056524, type 3726 and hashtags ['Carton_gris', 'kraft', 'metal', 'autre_refus', 'cartonnette', 'environnement', 'mal_croppe', 'plastique', 'flou', 'Carton_brun', 'papier', 'Teint_Dans_La_Masse'] 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`=22056524 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','metal','autre_refus','cartonnette','environnement','mal_croppe','plastique','flou','Carton_brun','papier','Teint_Dans_La_Masse')) 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`=22056524 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','metal','autre_refus','cartonnette','environnement','mal_croppe','plastique','flou','Carton_brun','papier','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22056524, 'sub_port_id': 22056540, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547033, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'cartonnette': {'main_port_id': 22056524, 'sub_port_id': 22056541, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547034, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'papier': {'main_port_id': 22056524, 'sub_port_id': 22056542, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547035, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'mal_croppe': {'main_port_id': 22056524, 'sub_port_id': 22056543, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547036, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'flou': {'main_port_id': 22056524, 'sub_port_id': 22056544, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547037, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'environnement': {'main_port_id': 22056524, 'sub_port_id': 22056545, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547038, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'autre_refus': {'main_port_id': 22056524, 'sub_port_id': 22056546, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547039, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'kraft': {'main_port_id': 22056524, 'sub_port_id': 22056547, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547040, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'metal': {'main_port_id': 22056524, 'sub_port_id': 22056548, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547041, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'plastique': {'main_port_id': 22056524, 'sub_port_id': 22056549, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547042, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'Carton_gris': {'main_port_id': 22056524, 'sub_port_id': 22056550, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547043, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 22056524, 'sub_port_id': 22056551, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547044, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22056540 , 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=22056524 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 (22056540) result : ((1349987489,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22056524) result : ((1349986300,), (1349986304,), (1349986307,), (1349986309,), (1349986313,), (1349986350,), (1349986354,), (1349986356,), (1349986367,), (1349986423,), (1349986972,), (1349987001,), (1349987052,), (1349987053,), (1349987055,), (1349987057,), (1349987146,), (1349987199,), (1349987217,), (1349987222,), (1349987308,), (1349987311,), (1349987349,), (1349987358,), (1349987417,), (1349987449,), (1349987451,), (1349987453,), (1349987457,), (1349987459,), (1349987488,), (1349987500,), (1349987508,), (1349987511,), (1349987513,), (1349987534,), (1349987538,), (1349987539,), (1349987543,)) 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 (1349987500,1349986300) 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 22056541 , 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=22056524 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 (22056541) result : ((1349987455,), (1349987487,), (1349987501,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22056524) result : ((1349986300,), (1349986304,), (1349986307,), (1349986309,), (1349986313,), (1349986350,), (1349986354,), (1349986356,), (1349986367,), (1349986423,), (1349986972,), (1349987001,), (1349987052,), (1349987053,), (1349987055,), (1349987057,), (1349987146,), (1349987199,), (1349987217,), (1349987222,), (1349987308,), (1349987311,), (1349987349,), (1349987358,), (1349987417,), (1349987449,), (1349987451,), (1349987453,), (1349987457,), (1349987459,), (1349987488,), (1349987500,), (1349987508,), (1349987511,), (1349987513,), (1349987534,), (1349987538,), (1349987539,), (1349987543,)) 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 (1349987500,1349986300) 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 22056542 , 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=22056524 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 (22056542) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22056524) result : ((1349986300,), (1349986304,), (1349986307,), (1349986309,), (1349986313,), (1349986350,), (1349986354,), (1349986356,), (1349986367,), (1349986423,), (1349986972,), (1349987001,), (1349987052,), (1349987053,), (1349987055,), (1349987057,), (1349987146,), (1349987199,), (1349987217,), (1349987222,), (1349987308,), (1349987311,), (1349987349,), (1349987358,), (1349987417,), (1349987449,), (1349987451,), (1349987453,), (1349987457,), (1349987459,), (1349987488,), (1349987500,), (1349987508,), (1349987511,), (1349987513,), (1349987534,), (1349987538,), (1349987539,), (1349987543,)) 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 (1349987500,1349986300) 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 22056543 , 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=22056524 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 (22056543) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22056524) result : ((1349986300,), (1349986304,), (1349986307,), (1349986309,), (1349986313,), (1349986350,), (1349986354,), (1349986356,), (1349986367,), (1349986423,), (1349986972,), (1349987001,), (1349987052,), (1349987053,), (1349987055,), (1349987057,), (1349987146,), (1349987199,), (1349987217,), (1349987222,), (1349987308,), (1349987311,), (1349987349,), (1349987358,), (1349987417,), (1349987449,), (1349987451,), (1349987453,), (1349987457,), (1349987459,), (1349987488,), (1349987500,), (1349987508,), (1349987511,), (1349987513,), (1349987534,), (1349987538,), (1349987539,), (1349987543,)) 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 (1349987500,1349986300) 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 22056544 , 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=22056524 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 (22056544) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22056524) result : ((1349986300,), (1349986304,), (1349986307,), (1349986309,), (1349986313,), (1349986350,), (1349986354,), (1349986356,), (1349986367,), (1349986423,), (1349986972,), (1349987001,), (1349987052,), (1349987053,), (1349987055,), (1349987057,), (1349987146,), (1349987199,), (1349987217,), (1349987222,), (1349987308,), (1349987311,), (1349987349,), (1349987358,), (1349987417,), (1349987449,), (1349987451,), (1349987453,), (1349987457,), (1349987459,), (1349987488,), (1349987500,), (1349987508,), (1349987511,), (1349987513,), (1349987534,), (1349987538,), (1349987539,), (1349987543,)) 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 (1349987500,1349986300) 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 22056545 , 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=22056524 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 (22056545) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22056524) result : ((1349986300,), (1349986304,), (1349986307,), (1349986309,), (1349986313,), (1349986350,), (1349986354,), (1349986356,), (1349986367,), (1349986423,), (1349986972,), (1349987001,), (1349987052,), (1349987053,), (1349987055,), (1349987057,), (1349987146,), (1349987199,), (1349987217,), (1349987222,), (1349987308,), (1349987311,), (1349987349,), (1349987358,), (1349987417,), (1349987449,), (1349987451,), (1349987453,), (1349987457,), (1349987459,), (1349987488,), (1349987500,), (1349987508,), (1349987511,), (1349987513,), (1349987534,), (1349987538,), (1349987539,), (1349987543,)) 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 (1349987500,1349986300) 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 22056546 , 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=22056524 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 (22056546) result : ((1349987454,), (1349987495,), (1349987496,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22056524) result : ((1349986300,), (1349986304,), (1349986307,), (1349986309,), (1349986313,), (1349986350,), (1349986354,), (1349986356,), (1349986367,), (1349986423,), (1349986972,), (1349987001,), (1349987052,), (1349987053,), (1349987055,), (1349987057,), (1349987146,), (1349987199,), (1349987217,), (1349987222,), (1349987308,), (1349987311,), (1349987349,), (1349987358,), (1349987417,), (1349987449,), (1349987451,), (1349987453,), (1349987457,), (1349987459,), (1349987488,), (1349987500,), (1349987508,), (1349987511,), (1349987513,), (1349987534,), (1349987538,), (1349987539,), (1349987543,)) 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 (1349987500,1349986300) 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 22056547 , 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=22056524 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 (22056547) result : ((1349987504,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22056524) result : ((1349986300,), (1349986304,), (1349986307,), (1349986309,), (1349986313,), (1349986350,), (1349986354,), (1349986356,), (1349986367,), (1349986423,), (1349986972,), (1349987001,), (1349987052,), (1349987053,), (1349987055,), (1349987057,), (1349987146,), (1349987199,), (1349987217,), (1349987222,), (1349987308,), (1349987311,), (1349987349,), (1349987358,), (1349987417,), (1349987449,), (1349987451,), (1349987453,), (1349987457,), (1349987459,), (1349987488,), (1349987500,), (1349987508,), (1349987511,), (1349987513,), (1349987534,), (1349987538,), (1349987539,), (1349987543,)) 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 (1349987500,1349986300) 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 22056548 , 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=22056524 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 (22056548) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22056524) result : ((1349986300,), (1349986304,), (1349986307,), (1349986309,), (1349986313,), (1349986350,), (1349986354,), (1349986356,), (1349986367,), (1349986423,), (1349986972,), (1349987001,), (1349987052,), (1349987053,), (1349987055,), (1349987057,), (1349987146,), (1349987199,), (1349987217,), (1349987222,), (1349987308,), (1349987311,), (1349987349,), (1349987358,), (1349987417,), (1349987449,), (1349987451,), (1349987453,), (1349987457,), (1349987459,), (1349987488,), (1349987500,), (1349987508,), (1349987511,), (1349987513,), (1349987534,), (1349987538,), (1349987539,), (1349987543,)) 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 (1349987500,1349986300) 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 22056549 , 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=22056524 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 (22056549) result : ((1349987491,), (1349987492,), (1349987502,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22056524) result : ((1349986300,), (1349986304,), (1349986307,), (1349986309,), (1349986313,), (1349986350,), (1349986354,), (1349986356,), (1349986367,), (1349986423,), (1349986972,), (1349987001,), (1349987052,), (1349987053,), (1349987055,), (1349987057,), (1349987146,), (1349987199,), (1349987217,), (1349987222,), (1349987308,), (1349987311,), (1349987349,), (1349987358,), (1349987417,), (1349987449,), (1349987451,), (1349987453,), (1349987457,), (1349987459,), (1349987488,), (1349987500,), (1349987508,), (1349987511,), (1349987513,), (1349987534,), (1349987538,), (1349987539,), (1349987543,)) 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 (1349987500,1349986300) 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 22056550 , 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=22056524 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 (22056550) result : ((1349987483,), (1349987484,), (1349987498,), (1349987499,), (1349987548,), (1349987549,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22056524) result : ((1349986300,), (1349986304,), (1349986307,), (1349986309,), (1349986313,), (1349986350,), (1349986354,), (1349986356,), (1349986367,), (1349986423,), (1349986972,), (1349987001,), (1349987052,), (1349987053,), (1349987055,), (1349987057,), (1349987146,), (1349987199,), (1349987217,), (1349987222,), (1349987308,), (1349987311,), (1349987349,), (1349987358,), (1349987417,), (1349987449,), (1349987451,), (1349987453,), (1349987457,), (1349987459,), (1349987488,), (1349987500,), (1349987508,), (1349987511,), (1349987513,), (1349987534,), (1349987538,), (1349987539,), (1349987543,)) 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 (1349987500,1349986300) 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 22056551 , 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=22056524 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 (22056551) result : ((1349987481,), (1349987482,), (1349987545,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22056524) result : ((1349986300,), (1349986304,), (1349986307,), (1349986309,), (1349986313,), (1349986350,), (1349986354,), (1349986356,), (1349986367,), (1349986423,), (1349986972,), (1349987001,), (1349987052,), (1349987053,), (1349987055,), (1349987057,), (1349987146,), (1349987199,), (1349987217,), (1349987222,), (1349987308,), (1349987311,), (1349987349,), (1349987358,), (1349987417,), (1349987449,), (1349987451,), (1349987453,), (1349987457,), (1349987459,), (1349987488,), (1349987500,), (1349987508,), (1349987511,), (1349987513,), (1349987534,), (1349987538,), (1349987539,), (1349987543,)) 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 (1349987500,1349986300) 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`=22056524 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','metal','autre_refus','cartonnette','environnement','mal_croppe','plastique','flou','Carton_brun','papier','Teint_Dans_La_Masse')) 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`=22056524 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','metal','autre_refus','cartonnette','environnement','mal_croppe','plastique','flou','Carton_brun','papier','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22056524, 'sub_port_id': 22056552, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547045, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'cartonnette': {'main_port_id': 22056524, 'sub_port_id': 22056553, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547046, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'papier': {'main_port_id': 22056524, 'sub_port_id': 22056554, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547047, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'mal_croppe': {'main_port_id': 22056524, 'sub_port_id': 22056555, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547048, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'flou': {'main_port_id': 22056524, 'sub_port_id': 22056556, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547049, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'environnement': {'main_port_id': 22056524, 'sub_port_id': 22056557, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547050, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'autre_refus': {'main_port_id': 22056524, 'sub_port_id': 22056558, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547051, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'kraft': {'main_port_id': 22056524, 'sub_port_id': 22056559, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547052, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'metal': {'main_port_id': 22056524, 'sub_port_id': 22056560, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547053, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'plastique': {'main_port_id': 22056524, 'sub_port_id': 22056561, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547054, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'Carton_gris': {'main_port_id': 22056524, 'sub_port_id': 22056562, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547055, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 22056524, 'sub_port_id': 22056563, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14547056, 'last_updated_at': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 6, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 6, 34, 57)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22056552,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22056540 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22056553,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22056541 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22056554,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22056542 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22056555,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22056543 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22056556,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22056544 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22056557,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22056545 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22056558,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22056546 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22056559,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22056547 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22056560,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22056548 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22056561,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22056549 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22056562,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22056550 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22056563,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22056551 lien utilise dans velours : https://www.fotonower.com/velours/22056552,22056553,22056554,22056555,22056556,22056557,22056558,22056559,22056560,22056561,22056562,22056563?tags=Carton_brun,cartonnette,papier,mal_croppe,flou,environnement,autre_refus,kraft,metal,plastique,Carton_gris,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22056524]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349987543, 1349987539, 1349987538, 1349987534, 1349987513, 1349987511, 1349987508, 1349987500, 1349987488, 1349987459, 1349987457, 1349987453, 1349987451, 1349987449, 1349987417] map_info['map_portfolio_photo'] : {22056524: [1349987543, 1349987539, 1349987538, 1349987534, 1349987513, 1349987511, 1349987508, 1349987500, 1349987488, 1349987459, 1349987457, 1349987453, 1349987451, 1349987449, 1349987417, 1349987358, 1349987349, 1349987311, 1349987308, 1349987222, 1349987217, 1349987199, 1349987146, 1349987057, 1349987055, 1349987053, 1349987052, 1349987001, 1349986972, 1349986423, 1349986367, 1349986356, 1349986354, 1349986350, 1349986313, 1349986309, 1349986307, 1349986304, 1349986300]} final : False mtd_id 4302 list_pids : [1349987543, 1349987539, 1349987538, 1349987534, 1349987513, 1349987511, 1349987508, 1349987500, 1349987488, 1349987459, 1349987457, 1349987453, 1349987451, 1349987449, 1349987417] Looping around the photos to save general results len do output : 1 /22056524. 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, '2723445') ('4302', '22056524', '1349987543', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987539', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987538', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987534', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987513', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987511', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987508', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987500', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987488', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987459', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987457', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987453', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987451', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987449', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987417', None, None, None, None, None, '2723445') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22056524', "{'Carton_brun': 22056540, 'cartonnette': 22056541, 'papier': 22056542, 'mal_croppe': 22056543, 'flou': 22056544, 'environnement': 22056545, 'autre_refus': 22056546, 'kraft': 22056547, 'metal': 22056548, 'plastique': 22056549, 'Carton_gris': 22056550, 'Teint_Dans_La_Masse': 22056551}", None, None, None, None, '2723445'), ('4302', '22056524', '1349987543', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987539', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987538', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987534', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987513', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987511', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987508', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987500', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987488', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987459', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987457', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987453', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987451', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987449', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987417', None, None, None, None, None, '2723445')] time used for this insertion : 0.018733501434326172 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5033938884735107 time spend to save output : 0.01905369758605957 total time spend for step 1 : 0.5224475860595703 step2:final Fri Apr 4 06:38: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 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 (22056524) 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 22056524 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349986313,1349986309,1349986307,1349986304,1349986300,1349986423,1349986367,1349986356,1349986354,1349986350,1349987057,1349987055,1349987053,1349987052,1349987001,1349986972,1349987222,1349987217,1349987199,1349987146,1349987358,1349987349,1349987311,1349987308,1349987459,1349987457,1349987453,1349987451,1349987449,1349987417,1349987513,1349987511,1349987508,1349987500,1349987488,1349987543,1349987539,1349987538,1349987534); 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([22056524]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ('0.06793763991240151',), 1349987417: ('0.06793763991240151',)} new output for save of step final : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ('0.06793763991240151',), 1349987417: ('0.06793763991240151',)} [1349987543, 1349987539, 1349987538, 1349987534, 1349987513, 1349987511, 1349987508, 1349987500, 1349987488, 1349987459, 1349987457, 1349987453, 1349987451, 1349987449, 1349987417] map_info['map_portfolio_photo'] : {22056524: [1349987543, 1349987539, 1349987538, 1349987534, 1349987513, 1349987511, 1349987508, 1349987500, 1349987488, 1349987459, 1349987457, 1349987453, 1349987451, 1349987449, 1349987417, 1349987358, 1349987349, 1349987311, 1349987308, 1349987222, 1349987217, 1349987199, 1349987146, 1349987057, 1349987055, 1349987053, 1349987052, 1349987001, 1349986972, 1349986423, 1349986367, 1349986356, 1349986354, 1349986350, 1349986313, 1349986309, 1349986307, 1349986304, 1349986300]} final : False mtd_id 4302 list_pids : [1349987543, 1349987539, 1349987538, 1349987534, 1349987513, 1349987511, 1349987508, 1349987500, 1349987488, 1349987459, 1349987457, 1349987453, 1349987451, 1349987449, 1349987417] Looping around the photos to save general results len do output : 15 /1349987543.Didn't retrieve data . /1349987539.Didn't retrieve data . /1349987538.Didn't retrieve data . /1349987534.Didn't retrieve data . /1349987513.Didn't retrieve data . /1349987511.Didn't retrieve data . /1349987508.Didn't retrieve data . /1349987500.Didn't retrieve data . /1349987488.Didn't retrieve data . /1349987459.Didn't retrieve data . /1349987457.Didn't retrieve data . /1349987453.Didn't retrieve data . /1349987451.Didn't retrieve data . /1349987449.Didn't retrieve data . /1349987417.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, '2723445') ('4302', '22056524', '1349987543', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987539', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987538', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987534', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987513', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987511', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987508', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987500', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987488', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987459', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987457', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987453', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987451', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987449', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987417', None, None, None, None, None, '2723445') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '22056524', '1349987543', '0.06793763991240151', None, None, None, None, '2723445'), ('4302', '22056524', '1349987539', '0.06793763991240151', None, None, None, None, '2723445'), ('4302', '22056524', '1349987538', '0.06793763991240151', None, None, None, None, '2723445'), ('4302', '22056524', '1349987534', '0.06793763991240151', None, None, None, None, '2723445'), ('4302', '22056524', '1349987513', '0.06793763991240151', None, None, None, None, '2723445'), ('4302', '22056524', '1349987511', '0.06793763991240151', None, None, None, None, '2723445'), ('4302', '22056524', '1349987508', '0.06793763991240151', None, None, None, None, '2723445'), ('4302', '22056524', '1349987500', '0.06793763991240151', None, None, None, None, '2723445'), ('4302', '22056524', '1349987488', '0.06793763991240151', None, None, None, None, '2723445'), ('4302', '22056524', '1349987459', '0.06793763991240151', None, None, None, None, '2723445'), ('4302', '22056524', '1349987457', '0.06793763991240151', None, None, None, None, '2723445'), ('4302', '22056524', '1349987453', '0.06793763991240151', None, None, None, None, '2723445'), ('4302', '22056524', '1349987451', '0.06793763991240151', None, None, None, None, '2723445'), ('4302', '22056524', '1349987449', '0.06793763991240151', None, None, None, None, '2723445'), ('4302', '22056524', '1349987417', '0.06793763991240151', None, None, None, None, '2723445')] time used for this insertion : 2.882883310317993 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07020282745361328 time spend to save output : 2.883761167526245 total time spend for step 2 : 2.9539639949798584 step3:velours_tree Fri Apr 4 06:39:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22056524: [{'Carton_brun': 22056540, 'cartonnette': 22056541, 'papier': 22056542, 'mal_croppe': 22056543, 'flou': 22056544, 'environnement': 22056545, 'autre_refus': 22056546, 'kraft': 22056547, 'metal': 22056548, 'plastique': 22056549, 'Carton_gris': 22056550, 'Teint_Dans_La_Masse': 22056551}]} input_args_next_step : {22056524: ()} output_args : {22056524: [{'Carton_brun': 22056540, 'cartonnette': 22056541, 'papier': 22056542, 'mal_croppe': 22056543, 'flou': 22056544, 'environnement': 22056545, 'autre_refus': 22056546, 'kraft': 22056547, 'metal': 22056548, 'plastique': 22056549, 'Carton_gris': 22056550, 'Teint_Dans_La_Masse': 22056551}]} args : 22056524 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 22056540, 'cartonnette': 22056541, 'papier': 22056542, 'mal_croppe': 22056543, 'flou': 22056544, 'environnement': 22056545, 'autre_refus': 22056546, 'kraft': 22056547, 'metal': 22056548, 'plastique': 22056549, 'Carton_gris': 22056550, 'Teint_Dans_La_Masse': 22056551},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22056524) 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([22056524]) 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.31549501419067383 time spend to save output : 5.1975250244140625e-05 total time spend for step 3 : 0.31554698944091797 step4:send_mail_cod Fri Apr 4 06:39:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ('0.06793763991240151',), 1349987417: ('0.06793763991240151',)} input_args_next_step : {1349987543: ()} output_args : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ('0.06793763991240151',), 1349987417: ('0.06793763991240151',)} args : 1349987543 depend.output_id : 0 input_args_next_step : {1349987543: ('0.06793763991240151',), 1349987539: ()} output_args : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ('0.06793763991240151',), 1349987417: ('0.06793763991240151',)} args : 1349987539 depend.output_id : 0 input_args_next_step : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ()} output_args : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ('0.06793763991240151',), 1349987417: ('0.06793763991240151',)} args : 1349987538 depend.output_id : 0 input_args_next_step : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ()} output_args : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ('0.06793763991240151',), 1349987417: ('0.06793763991240151',)} args : 1349987534 depend.output_id : 0 input_args_next_step : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ()} output_args : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ('0.06793763991240151',), 1349987417: ('0.06793763991240151',)} args : 1349987513 depend.output_id : 0 input_args_next_step : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ()} output_args : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ('0.06793763991240151',), 1349987417: ('0.06793763991240151',)} args : 1349987511 depend.output_id : 0 input_args_next_step : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ()} output_args : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ('0.06793763991240151',), 1349987417: ('0.06793763991240151',)} args : 1349987508 depend.output_id : 0 input_args_next_step : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ()} output_args : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ('0.06793763991240151',), 1349987417: ('0.06793763991240151',)} args : 1349987500 depend.output_id : 0 input_args_next_step : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ()} output_args : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ('0.06793763991240151',), 1349987417: ('0.06793763991240151',)} args : 1349987488 depend.output_id : 0 input_args_next_step : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ()} output_args : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ('0.06793763991240151',), 1349987417: ('0.06793763991240151',)} args : 1349987459 depend.output_id : 0 input_args_next_step : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ()} output_args : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ('0.06793763991240151',), 1349987417: ('0.06793763991240151',)} args : 1349987457 depend.output_id : 0 input_args_next_step : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ()} output_args : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ('0.06793763991240151',), 1349987417: ('0.06793763991240151',)} args : 1349987453 depend.output_id : 0 input_args_next_step : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ()} output_args : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ('0.06793763991240151',), 1349987417: ('0.06793763991240151',)} args : 1349987451 depend.output_id : 0 input_args_next_step : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ()} output_args : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ('0.06793763991240151',), 1349987417: ('0.06793763991240151',)} args : 1349987449 depend.output_id : 0 input_args_next_step : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ('0.06793763991240151',), 1349987417: ()} output_args : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ('0.06793763991240151',), 1349987417: ('0.06793763991240151',)} args : 1349987417 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 : {22056524: [{'Carton_brun': 22056540, 'cartonnette': 22056541, 'papier': 22056542, 'mal_croppe': 22056543, 'flou': 22056544, 'environnement': 22056545, 'autre_refus': 22056546, 'kraft': 22056547, 'metal': 22056548, 'plastique': 22056549, 'Carton_gris': 22056550, 'Teint_Dans_La_Masse': 22056551}]} input_args_next_step : {1349987543: ('0.06793763991240151',), 1349987539: ('0.06793763991240151',), 1349987538: ('0.06793763991240151',), 1349987534: ('0.06793763991240151',), 1349987513: ('0.06793763991240151',), 1349987511: ('0.06793763991240151',), 1349987508: ('0.06793763991240151',), 1349987500: ('0.06793763991240151',), 1349987488: ('0.06793763991240151',), 1349987459: ('0.06793763991240151',), 1349987457: ('0.06793763991240151',), 1349987453: ('0.06793763991240151',), 1349987451: ('0.06793763991240151',), 1349987449: ('0.06793763991240151',), 1349987417: ('0.06793763991240151',), 22056524: ()} output_args : {22056524: [{'Carton_brun': 22056540, 'cartonnette': 22056541, 'papier': 22056542, 'mal_croppe': 22056543, 'flou': 22056544, 'environnement': 22056545, 'autre_refus': 22056546, 'kraft': 22056547, 'metal': 22056548, 'plastique': 22056549, 'Carton_gris': 22056550, 'Teint_Dans_La_Masse': 22056551}]} args : 22056524 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 :16, first value : ('0.06793763991240151',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22056524) 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 (1349987543,1349987539,1349987538,1349987534,1349987513,1349987511,1349987508,1349987500,1349987488,1349987459,1349987457,1349987453,1349987451,1349987449,1349987417) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349987417 begin to download photo : 1349987457 begin to download photo : 1349987508 begin to download photo : 1349987538 download finish for photo 1349987508 begin to download photo : 1349987511 download finish for photo 1349987538 begin to download photo : 1349987539 download finish for photo 1349987417 begin to download photo : 1349987449 download finish for photo 1349987457 begin to download photo : 1349987459 download finish for photo 1349987539 begin to download photo : 1349987543 download finish for photo 1349987511 begin to download photo : 1349987513 download finish for photo 1349987449 begin to download photo : 1349987451 download finish for photo 1349987459 begin to download photo : 1349987488 download finish for photo 1349987543 download finish for photo 1349987451 begin to download photo : 1349987453 download finish for photo 1349987488 begin to download photo : 1349987500 download finish for photo 1349987513 begin to download photo : 1349987534 download finish for photo 1349987453 download finish for photo 1349987500 download finish for photo 1349987534 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P22056524_04-04-2025_06_39_02.pdf 22056541 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=22056541 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349987455: '1743741330_3076555_1349987199_9b31136b153aa99218e702357ccddf1d_rle_crop_3747409799_0.png', 1349987487: '1743741352_3076787_1349987053_c6349ee0f63d643740aaa394df9404d9_rle_crop_3747410361_0.png', 1349987501: '1743741374_3077091_1349986350_22f18eeea882270860aebe4bb732926a_rle_crop_3747410592_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/4e46da58954b27adac9213e51dbba80c_9837845.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/0fb7c0809319572053ade1b9b8b7eb07_20277704.png change filename to text .imagette220565411743741542/ imagette220565411743741542/1743741374_3077091_1349986350_22f18eeea882270860aebe4bb732926a_rle_crop_3747410592_0.png.png imagette220565411743741542/1743741330_3076555_1349987199_9b31136b153aa99218e702357ccddf1d_rle_crop_3747409799_0.png.png imagette220565411743741542/1743741352_3076787_1349987053_c6349ee0f63d643740aaa394df9404d9_rle_crop_3747410361_0.png.png imagette220565431743741542/ imagette220565441743741542/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/0926e40f4f52004231120905b8961c9f_85509888.png imagette220565411743741542 22056543 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=22056543 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220565431743741542 22056544 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=22056544 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220565441743741542 22056546 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=22056546 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349987454: '1743741330_3076555_1349987146_37dd1433ce12ac8304455fdd7dabc35f_rle_crop_3747409823_0.png', 1349987495: '1743741374_3077091_1349987057_0807ff4f8a666ec4fa771a9fa4fa2c1c_rle_crop_3747410545_0.png', 1349987496: '1743741374_3077091_1349987057_0807ff4f8a666ec4fa771a9fa4fa2c1c_rle_crop_3747410543_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/acab4d32884493320e466e405e94105c_71726387.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/68daaa824c120a337c82b864b00841d0_58564556.png change filename to text .imagette220565461743741542/ imagette220565461743741542/1743741374_3077091_1349987057_0807ff4f8a666ec4fa771a9fa4fa2c1c_rle_crop_3747410545_0.png.png imagette220565461743741542/1743741330_3076555_1349987146_37dd1433ce12ac8304455fdd7dabc35f_rle_crop_3747409823_0.png.png imagette220565461743741542/1743741374_3077091_1349987057_0807ff4f8a666ec4fa771a9fa4fa2c1c_rle_crop_3747410543_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/984674ba778e1d05c88a57a286d068c9_87995668.png imagette220565461743741542 22056547 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=22056547 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349987504: '1743741374_3077091_1349986367_6136a5211c15a8983b0a931268d23836_rle_crop_3747410561_0.png'} change filename to text .imagette220565471743741542/ imagette220565471743741542/1743741374_3077091_1349986367_6136a5211c15a8983b0a931268d23836_rle_crop_3747410561_0.png.png imagette220565481743741542/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/744ada50b3eb40e4326a9be7e8b39cce_10887739.png imagette220565471743741542 22056548 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=22056548 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220565481743741542 22056549 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=22056549 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349987491: '1743741352_3076787_1349987222_df4d954714fd49a7bbcef864d60894df_rle_crop_3747410311_0.png', 1349987492: '1743741352_3076787_1349987001_fa34bc2e47cf1a8e162a8b72ececebc0_rle_crop_3747410402_0.png', 1349987502: '1743741374_3077091_1349987057_0807ff4f8a666ec4fa771a9fa4fa2c1c_rle_crop_3747410547_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/caedaef4cb37617efb3d87ca10c07852_33261809.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/8be5e2f9e3146ae4b0ab9f1ad3b43de6_61870542.png change filename to text .imagette220565491743741542/ imagette220565491743741542/1743741352_3076787_1349987222_df4d954714fd49a7bbcef864d60894df_rle_crop_3747410311_0.png.png imagette220565491743741542/1743741374_3077091_1349987057_0807ff4f8a666ec4fa771a9fa4fa2c1c_rle_crop_3747410547_0.png.png imagette220565491743741542/1743741352_3076787_1349987001_fa34bc2e47cf1a8e162a8b72ececebc0_rle_crop_3747410402_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/d55611b8f66892db185c0d23e2926825_42021850.png imagette220565491743741542 22056540 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=22056540 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349987489: '1743741352_3076787_1349987001_fa34bc2e47cf1a8e162a8b72ececebc0_rle_crop_3747410403_0.png'} change filename to text .imagette220565401743741542/ imagette220565401743741542/1743741352_3076787_1349987001_fa34bc2e47cf1a8e162a8b72ececebc0_rle_crop_3747410403_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/bf12d330620f35f9dc200600bcd9ff74_20487281.png imagette220565401743741542 22056550 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=22056550 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349987483: '1743741352_3076787_1349987053_c6349ee0f63d643740aaa394df9404d9_rle_crop_3747410358_0.png', 1349987484: '1743741352_3076787_1349987052_70aaeb4c66c423d7d0f423a35b3311f5_rle_crop_3747410391_0.png', 1349987498: '1743741374_3077091_1349986367_6136a5211c15a8983b0a931268d23836_rle_crop_3747410554_0.png', 1349987499: '1743741374_3077091_1349986367_6136a5211c15a8983b0a931268d23836_rle_crop_3747410556_0.png', 1349987548: '1743741445_1727547_1349987311_393a6a3b534b8938985477d6d9264efa_rle_crop_3747411252_0.png', 1349987549: '1743741445_1727547_1349987308_0807b64d49a0f55d83e85c877bd7b849_rle_crop_3747411281_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/8fe1a64f6098418d8934ea542eb52f9c_17956865.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/5c8c895dca07e89e9bf2a9101bced7d2_22624696.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/c093823af670aea05f08fbd041405599_25339387.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/4cdb62a45ccd43e534b1e6203d834f6d_29340962.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/b65dc5e7dc441395237f59b02cc1eebe_5030245.png change filename to text .imagette220565501743741543/ imagette220565501743741543/1743741374_3077091_1349986367_6136a5211c15a8983b0a931268d23836_rle_crop_3747410556_0.png.png imagette220565501743741543/1743741374_3077091_1349986367_6136a5211c15a8983b0a931268d23836_rle_crop_3747410554_0.png.png imagette220565501743741543/1743741352_3076787_1349987052_70aaeb4c66c423d7d0f423a35b3311f5_rle_crop_3747410391_0.png.png imagette220565501743741543/1743741352_3076787_1349987053_c6349ee0f63d643740aaa394df9404d9_rle_crop_3747410358_0.png.png imagette220565501743741543/1743741445_1727547_1349987311_393a6a3b534b8938985477d6d9264efa_rle_crop_3747411252_0.png.png imagette220565501743741543/1743741445_1727547_1349987308_0807b64d49a0f55d83e85c877bd7b849_rle_crop_3747411281_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/6d6ee7ac59684a60656464a7869d1f2e_69984485.png imagette220565501743741543 22056551 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=22056551 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349987481: '1743741352_3076787_1349987222_df4d954714fd49a7bbcef864d60894df_rle_crop_3747410309_0.png', 1349987482: '1743741352_3076787_1349987055_a97783b9dc3c3e2fb9cc31f014437100_rle_crop_3747410338_0.png', 1349987545: '1743741445_1727547_1349987308_0807b64d49a0f55d83e85c877bd7b849_rle_crop_3747411282_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/5e4bee4b36b4113b980d75f418cc7995_98298804.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/98b4480d702a8309c7ce24fadf9b785c_72790672.png change filename to text .imagette220565511743741543/ imagette220565511743741543/1743741445_1727547_1349987308_0807b64d49a0f55d83e85c877bd7b849_rle_crop_3747411282_0.png.png imagette220565511743741543/1743741352_3076787_1349987222_df4d954714fd49a7bbcef864d60894df_rle_crop_3747410309_0.png.png imagette220565511743741543/1743741352_3076787_1349987055_a97783b9dc3c3e2fb9cc31f014437100_rle_crop_3747410338_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/17789a0f29726e3fe70553260ce507e5_55700893.png imagette220565511743741543 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22056524 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22056552,22056553,22056554,22056555,22056556,22056557,22056558,22056559,22056560,22056561,22056562,22056563?tags=Carton_brun,cartonnette,papier,mal_croppe,flou,environnement,autre_refus,kraft,metal,plastique,Carton_gris,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1349987543] : ('0.06793763991240151',) no score found for photo 1349987543 We are sending mail with results at report@fotonower.com args[1349987539] : ('0.06793763991240151',) no score found for photo 1349987539 We are sending mail with results at report@fotonower.com args[1349987538] : ('0.06793763991240151',) no score found for photo 1349987538 We are sending mail with results at report@fotonower.com args[1349987534] : ('0.06793763991240151',) no score found for photo 1349987534 We are sending mail with results at report@fotonower.com args[1349987513] : ('0.06793763991240151',) no score found for photo 1349987513 We are sending mail with results at report@fotonower.com args[1349987511] : ('0.06793763991240151',) no score found for photo 1349987511 We are sending mail with results at report@fotonower.com args[1349987508] : ('0.06793763991240151',) no score found for photo 1349987508 We are sending mail with results at report@fotonower.com args[1349987500] : ('0.06793763991240151',) no score found for photo 1349987500 We are sending mail with results at report@fotonower.com args[1349987488] : ('0.06793763991240151',) no score found for photo 1349987488 We are sending mail with results at report@fotonower.com args[1349987459] : ('0.06793763991240151',) no score found for photo 1349987459 We are sending mail with results at report@fotonower.com args[1349987457] : ('0.06793763991240151',) no score found for photo 1349987457 We are sending mail with results at report@fotonower.com args[1349987453] : ('0.06793763991240151',) no score found for photo 1349987453 We are sending mail with results at report@fotonower.com args[1349987451] : ('0.06793763991240151',) no score found for photo 1349987451 We are sending mail with results at report@fotonower.com args[1349987449] : ('0.06793763991240151',) no score found for photo 1349987449 We are sending mail with results at report@fotonower.com args[1349987417] : ('0.06793763991240151',) no score found for photo 1349987417 We are sending mail with results at report@fotonower.com refus_total : 0.06793763991240151 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=22056524 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_P22056524_04-04-2025_06_39_02.pdf results_Auto_P22056524_04-04-2025_06_39_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22056524_04-04-2025_06_39_02.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','22056524','results_Auto_P22056524_04-04-2025_06_39_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22056524_04-04-2025_06_39_02.pdf','pdf','','0.19','0.06793763991240151') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22056524]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349987543, 1349987539, 1349987538, 1349987534, 1349987513, 1349987511, 1349987508, 1349987500, 1349987488, 1349987459, 1349987457, 1349987453, 1349987451, 1349987449, 1349987417] map_info['map_portfolio_photo'] : {22056524: [1349987543, 1349987539, 1349987538, 1349987534, 1349987513, 1349987511, 1349987508, 1349987500, 1349987488, 1349987459, 1349987457, 1349987453, 1349987451, 1349987449, 1349987417, 1349987358, 1349987349, 1349987311, 1349987308, 1349987222, 1349987217, 1349987199, 1349987146, 1349987057, 1349987055, 1349987053, 1349987052, 1349987001, 1349986972, 1349986423, 1349986367, 1349986356, 1349986354, 1349986350, 1349986313, 1349986309, 1349986307, 1349986304, 1349986300]} final : False mtd_id 4302 list_pids : [1349987543, 1349987539, 1349987538, 1349987534, 1349987513, 1349987511, 1349987508, 1349987500, 1349987488, 1349987459, 1349987457, 1349987453, 1349987451, 1349987449, 1349987417] 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, '2723445') ('4302', '22056524', '1349987543', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987539', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987538', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987534', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987513', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987511', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987508', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987500', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987488', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987459', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987457', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987453', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987451', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987449', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987417', None, None, None, None, None, '2723445') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '22056524', '1349987543', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987539', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987538', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987534', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987513', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987511', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987508', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987500', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987488', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987459', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987457', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987453', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987451', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987449', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987417', None, None, None, None, None, '2723445')] time used for this insertion : 0.014801979064941406 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.9864065647125244 time spend to save output : 0.015024662017822266 total time spend for step 4 : 3.0014312267303467 step5:split_time_score Fri Apr 4 06:39:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22056524'] 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 : [('22056524',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22056524) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349987538: {'path': 'temp/1743741541_3004411_1349987538_2da758ec410db17cb829220a811a36c0.jpg', 'extension': 'jpg'}, 1349987539: {'path': 'temp/1743741541_3004411_1349987539_b4ed8a7857d7cdc5b8850aa60b8acb7b.jpg', 'extension': 'jpg'}, 1349987543: {'path': 'temp/1743741541_3004411_1349987543_1844e09348945cddbc7d39c4a40c6318.jpg', 'extension': 'jpg'}, 1349987417: {'path': 'temp/1743741541_3004411_1349987417_fcb7d1bb1a3c3de2fe4cf1be1c477e0d.jpg', 'extension': 'jpg'}, 1349987449: {'path': 'temp/1743741541_3004411_1349987449_cf1b8c46a57ead016690bb36d1ac102a.jpg', 'extension': 'jpg'}, 1349987451: {'path': 'temp/1743741541_3004411_1349987451_4e8b98782be3d4d505162e449920cb62.jpg', 'extension': 'jpg'}, 1349987453: {'path': 'temp/1743741541_3004411_1349987453_646e4742cc6961a850fff77a651e7407.jpg', 'extension': 'jpg'}, 1349987457: {'path': 'temp/1743741541_3004411_1349987457_da98204a5c1e52d739c08669049ca833.jpg', 'extension': 'jpg'}, 1349987459: {'path': 'temp/1743741541_3004411_1349987459_1798090436e280db88cc35a6f4c04644.jpg', 'extension': 'jpg'}, 1349987488: {'path': 'temp/1743741541_3004411_1349987488_c884e069634ce9d2f6305bec4a116523.jpg', 'extension': 'jpg'}, 1349987500: {'path': 'temp/1743741541_3004411_1349987500_07c7530deb75c7e17b5aa1ce0549fedb.jpg', 'extension': 'jpg'}, 1349987508: {'path': 'temp/1743741541_3004411_1349987508_130287a6ec069b4fe26623b16a20a503.jpg', 'extension': 'jpg'}, 1349987511: {'path': 'temp/1743741541_3004411_1349987511_5824ba319b6b28869b6c0f2c9d3f9178.jpg', 'extension': 'jpg'}, 1349987513: {'path': 'temp/1743741541_3004411_1349987513_f6917d98a1862d533fd000e867cc0400.jpg', 'extension': 'jpg'}, 1349987534: {'path': 'temp/1743741541_3004411_1349987534_5ed16f2814b9b57875ea4c8d89e7b6e9.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 = 22056524; (('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 = 22056524 group by h (('06', 39),) 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=22056524 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 (22056524) 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 (22056524) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04042025 22056524 Nombre de photos uploadées : 39 / 23040 (0%) 04042025 22056524 Nombre de photos taguées (types de déchets): 0 / 39 (0%) 04042025 22056524 Nombre de photos taguées (volume) : 0 / 39 (0%) [{'photo_id': 1349986313, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/e4bd1d72f1238c5832e272f2bdd607e0.jpg', 'username': None, 'uploaded_at': 1743741067, 'text': 'image_04042025_06_30_05_10159.jpg'}, {'photo_id': 1349986309, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/ad4fa813dd1c4d1d5b65cf1d384d03ef.jpg', 'username': None, 'uploaded_at': 1743741067, 'text': 'image_04042025_06_30_15_10135.jpg'}, {'photo_id': 1349986307, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/c7ce2e30bcc087e675d17e8e25d4a991.jpg', 'username': None, 'uploaded_at': 1743741067, 'text': 'image_04042025_06_30_25_10136.jpg'}, {'photo_id': 1349986304, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/a1648247ec92dfe6f18bfac248371d1e.jpg', 'username': None, 'uploaded_at': 1743741067, 'text': 'image_04042025_06_30_34_9127.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 1.0967254638671875e-05 ??????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0030341148376464844 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22056524, '2025-04-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1715710,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.027925729751586914 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1715710 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1715710, 'dashboard_run_id': 1724089, 'mtr_portfolio_id': 22054629, 'dashboard_result_id': 9874330, '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_P22054629_04-04-2025_06_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22054632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22054633, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22054634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22054635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22054636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22054637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22054638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22054639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22054640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22054641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22054642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22054643, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1724089, 'mtr_portfolio_id': 22055241, 'dashboard_result_id': 9874331, '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_P22055241_04-04-2025_06_19_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22055268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22055269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22055270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22055271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22055272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22055273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22055274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22055275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22055276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22055277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22055278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22055279, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1724089, 'mtr_portfolio_id': 22055853, 'dashboard_result_id': 9874332, '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_P22055853_04-04-2025_06_33_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22055904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22055905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22055906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22055907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22055908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22055909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22055910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22055911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22055912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22055913, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22055914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22055915, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1724089, 'mtr_portfolio_id': 22056524, 'dashboard_result_id': 9874333, '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_P22056524_04-04-2025_06_36_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22056540, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22056541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22056542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22056543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22056544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22056545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22056546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22056547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22056548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22056549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22056550, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22056551, '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 = 22054629 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': 2723321, 'mtr_portfolio_id': 22054629, 'created_at': datetime.datetime(2025, 4, 4, 6, 2, 59), 'result': '0.037053431910240964', 'result_long': None, 'result_double': None}] Qualite : 0.037053431910240964 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22054629 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22054629_04-04-2025_06_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22054629 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_P22054629_04-04-2025_06_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22054632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22054633, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22054634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22054635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22054636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22054637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22054638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22054639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22054640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22054641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22054642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22054643, 'pht': 3726}}" where mtr_portfolio_id = 22054629 and dashboard_run_id = 1724089 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`=22054629 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9874330, 0.037053431910240964, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22054629_04-04-2025_06_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22054632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22054633, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22054634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22054635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22054636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22054637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22054638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22054639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22054640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22054641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22054642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22054643, '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 = 22055241 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': 2723369, 'mtr_portfolio_id': 22055241, 'created_at': datetime.datetime(2025, 4, 4, 6, 19, 29), 'result': '0.05104201828202896', 'result_long': None, 'result_double': None}] Qualite : 0.05104201828202896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22055241 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22055241_04-04-2025_06_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22055241 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_P22055241_04-04-2025_06_19_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22055268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22055269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22055270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22055271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22055272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22055273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22055274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22055275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22055276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22055277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22055278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22055279, 'pht': 3726}}" where mtr_portfolio_id = 22055241 and dashboard_run_id = 1724089 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`=22055241 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9874331, 0.05104201828202896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22055241_04-04-2025_06_19_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22055268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22055269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22055270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22055271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22055272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22055273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22055274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22055275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22055276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22055277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22055278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22055279, '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 = 22055853 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': 2723410, 'mtr_portfolio_id': 22055853, 'created_at': datetime.datetime(2025, 4, 4, 6, 33, 1), 'result': '0.06883170233482606', 'result_long': None, 'result_double': None}] Qualite : 0.06883170233482606 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22055853 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22055853_04-04-2025_06_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22055853 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_P22055853_04-04-2025_06_33_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22055904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22055905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22055906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22055907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22055908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22055909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22055910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22055911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22055912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22055913, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22055914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22055915, 'pht': 3726}}" where mtr_portfolio_id = 22055853 and dashboard_run_id = 1724089 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`=22055853 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9874332, 0.06883170233482606, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22055853_04-04-2025_06_33_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22055904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22055905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22055906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22055907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22055908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22055909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22055910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22055911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22055912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22055913, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22055914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22055915, '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 = 22056524 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': 2723445, 'mtr_portfolio_id': 22056524, 'created_at': datetime.datetime(2025, 4, 4, 6, 38, 58), 'result': '0.06793763991240151', 'result_long': None, 'result_double': None}] Qualite : 0.06793763991240151 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22056524 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22056524_04-04-2025_06_39_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22056524 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_P22056524_04-04-2025_06_39_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22056540, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22056541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22056542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22056543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22056544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22056545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22056546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22056547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22056548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22056549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22056550, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22056551, 'pht': 3726}}" where mtr_portfolio_id = 22056524 and dashboard_run_id = 1724089 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`=22056524 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9874333, 0.06793763991240151, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22056524_04-04-2025_06_39_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22056540, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22056541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22056542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22056543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22056544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22056545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22056546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22056547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22056548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22056549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22056550, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22056551, '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 (22054629,22055241,22055853,22056524) result : ((1349979062,), (1349979064,), (1349979070,), (1349979075,), (1349979132,), (1349979135,), (1349979152,), (1349979179,), (1349979210,), (1349979280,), (1349979284,), (1349979299,), (1349979306,), (1349979310,), (1349979316,), (1349979408,), (1349979412,), (1349979417,), (1349979420,), (1349979422,), (1349979536,), (1349979540,), (1349979542,), (1349979545,), (1349979547,), (1349979549,), (1349979616,), (1349979624,), (1349979627,), (1349979630,), (1349979726,), (1349979730,), (1349979733,), (1349979735,), (1349979738,), (1349979876,), (1349979881,), (1349979885,), (1349979887,), (1349979888,), (1349979890,), (1349980038,), (1349980048,), (1349980060,), (1349980068,), (1349980074,), (1349980155,), (1349980159,), (1349980166,), (1349980176,), (1349980180,), (1349980211,), (1349980216,), (1349980237,), (1349980243,), (1349980247,), (1349980251,), (1349980414,), (1349980474,), (1349980507,), (1349980536,), (1349980784,), (1349980789,), (1349980792,), (1349980812,), (1349981219,), (1349981250,), (1349981283,), (1349981295,), (1349981320,), (1349981337,), (1349981388,), (1349981371,), (1349981376,), (1349981379,), (1349981383,), (1349981477,), (1349981505,), (1349981624,), (1349981664,), (1349981809,), (1349981837,), (1349981863,), (1349981887,), (1349981916,), (1349981949,), (1349982127,), (1349982134,), (1349982140,), (1349982143,), (1349982220,), (1349982224,), (1349982237,), (1349982270,), (1349982304,), (1349982335,), (1349982892,), (1349982898,), (1349982903,), (1349982947,), (1349983128,), (1349983130,), (1349983135,), (1349983139,), (1349983161,), (1349983170,), (1349983239,), (1349983249,), (1349983251,), (1349983253,), (1349983292,), (1349983315,), (1349983319,), (1349983321,), (1349983323,), (1349983347,), (1349983352,), (1349983356,), (1349983358,), (1349983362,), (1349983365,), (1349983408,), (1349983412,), (1349983415,), (1349983418,), (1349983446,), (1349983450,), (1349983452,), (1349983454,), (1349983458,), (1349983467,), (1349983500,), (1349983505,), (1349983508,), (1349983536,), (1349983550,), (1349983559,), (1349983565,), (1349983568,), (1349983571,), (1349983615,), (1349983619,), (1349983620,), (1349983623,), (1349983724,), (1349983668,), (1349983712,), (1349983718,), (1349983719,), (1349983722,), (1349983780,), (1349983820,), (1349983829,), (1349983849,), (1349983922,), (1349983930,), (1349983937,), (1349983943,), (1349983956,), (1349983969,), (1349984177,), (1349984198,), (1349984230,), (1349984235,), (1349984237,), (1349984268,), (1349984371,), (1349984375,), (1349984376,), (1349984449,), (1349984456,), (1349984459,), (1349984460,), (1349984464,), (1349984467,), (1349984618,), (1349984628,), (1349984631,), (1349984634,), (1349984638,), (1349984687,), (1349984699,), (1349984707,), (1349984722,), (1349984845,), (1349984849,), (1349984917,), (1349984944,), (1349984993,), (1349985077,), (1349985322,), (1349985348,), (1349985373,), (1349985410,), (1349985709,), (1349985779,), (1349985840,), (1349985925,), (1349985960,), (1349986028,), (1349986082,), (1349986087,), (1349986091,), (1349986094,), (1349986133,), (1349986143,), (1349986151,), (1349986156,), (1349986158,), (1349986175,), (1349986184,), (1349986188,), (1349986198,), (1349986203,), (1349986226,), (1349986234,), (1349986238,), (1349986243,), (1349986246,), (1349986320,), (1349986300,), (1349986304,), (1349986307,), (1349986309,), (1349986313,), (1349986350,), (1349986354,), (1349986356,), (1349986367,), (1349986423,), (1349986972,), (1349987001,), (1349987052,), (1349987053,), (1349987055,), (1349987057,), (1349987146,), (1349987199,), (1349987217,), (1349987222,), (1349987308,), (1349987311,), (1349987349,), (1349987358,), (1349987417,), (1349987449,), (1349987451,), (1349987453,), (1349987457,), (1349987459,), (1349987488,), (1349987500,), (1349987508,), (1349987511,), (1349987513,), (1349987534,), (1349987538,), (1349987539,), (1349987543,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04042025': {'nb_upload': 39, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22056524]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349987543, 1349987539, 1349987538, 1349987534, 1349987513, 1349987511, 1349987508, 1349987500, 1349987488, 1349987459, 1349987457, 1349987453, 1349987451, 1349987449, 1349987417] map_info['map_portfolio_photo'] : {22056524: [1349987543, 1349987539, 1349987538, 1349987534, 1349987513, 1349987511, 1349987508, 1349987500, 1349987488, 1349987459, 1349987457, 1349987453, 1349987451, 1349987449, 1349987417, 1349987358, 1349987349, 1349987311, 1349987308, 1349987222, 1349987217, 1349987199, 1349987146, 1349987057, 1349987055, 1349987053, 1349987052, 1349987001, 1349986972, 1349986423, 1349986367, 1349986356, 1349986354, 1349986350, 1349986313, 1349986309, 1349986307, 1349986304, 1349986300]} final : True mtd_id 4302 list_pids : [1349987543, 1349987539, 1349987538, 1349987534, 1349987513, 1349987511, 1349987508, 1349987500, 1349987488, 1349987459, 1349987457, 1349987453, 1349987451, 1349987449, 1349987417] Looping around the photos to save general results len do output : 1 /22056524Didn'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, '2723445') ('4302', '22056524', '1349987543', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987539', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987538', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987534', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987513', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987511', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987508', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987500', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987488', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987459', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987457', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987453', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987451', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987449', None, None, None, None, None, '2723445') ('4302', None, None, None, None, None, None, None, '2723445') ('4302', '22056524', '1349987417', None, None, None, None, None, '2723445') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22056524', 'None', None, None, None, None, '2723445'), ('4302', '22056524', '1349987543', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987539', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987538', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987534', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987513', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987511', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987508', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987500', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987488', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987459', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987457', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987453', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987451', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987449', None, None, None, None, None, '2723445'), ('4302', '22056524', '1349987417', None, None, None, None, None, '2723445')] time used for this insertion : 0.014924287796020508 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4723038673400879 time spend to save output : 0.015262603759765625 total time spend for step 5 : 0.4875664710998535 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 (2723445) 2.32user 2.64system 0:10.36elapsed 47%CPU (0avgtext+0avgdata 158432maxresident)k 1736inputs+11944outputs (25major+75184minor)pagefaults 0swaps