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 : 3831234 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 (2722061) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2722061) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22034056 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2722061'] with mtr_portfolio_ids : ['22034056'] and first list_photo_ids : [] new path : /proc/3831234/ Name: python3 Umask: 0002 State: R (running) Tgid: 3831234 Ngid: 0 Pid: 3831234 PPid: 3831233 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3831234 NSpid: 3831234 NSpgid: 3827221 NSsid: 3827221 VmPeak: 1106964 kB VmSize: 1106964 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98972 kB VmRSS: 98972 kB RssAnon: 59816 kB RssFile: 39156 kB RssShmem: 0 kB VmData: 865712 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 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: 56 nonvoluntary_ctxt_switches: 131 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3831234', 'Ngid': '0', 'Pid': '3831234', 'PPid': '3831233', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3831234', 'NSpid': '3831234', 'NSpgid': '3827221', 'NSsid': '3827221', 'VmPeak': '1106964 kB', 'VmSize': '1106964 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98972 kB', 'VmRSS': '98972 kB', 'RssAnon': '59816 kB', 'RssFile': '39156 kB', 'RssShmem': '0 kB', 'VmData': '865712 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 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': '56', 'nonvoluntary_ctxt_switches': '131'} ('datou_batch_current', '3831234', '1106964', '0', '1106964', '865712', '98972', b'', 'marlene', '2722061') 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 (22034056) 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 (2722061 ) ) 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 (22034056) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349914024, 'portfolio_id': 22034056}, {'photo_id': 1349914021, 'portfolio_id': 22034056}, {'photo_id': 1349914016, 'portfolio_id': 22034056}, {'photo_id': 1349914000, 'portfolio_id': 22034056}, {'photo_id': 1349913996, 'portfolio_id': 22034056}, {'photo_id': 1349913994, 'portfolio_id': 22034056}, {'photo_id': 1349913989, 'portfolio_id': 22034056}, {'photo_id': 1349913988, 'portfolio_id': 22034056}, {'photo_id': 1349913984, 'portfolio_id': 22034056}, {'photo_id': 1349913983, 'portfolio_id': 22034056}, {'photo_id': 1349913980, 'portfolio_id': 22034056}, {'photo_id': 1349913978, 'portfolio_id': 22034056}, {'photo_id': 1349913976, 'portfolio_id': 22034056}, {'photo_id': 1349913926, 'portfolio_id': 22034056}, {'photo_id': 1349913920, 'portfolio_id': 22034056}, {'photo_id': 1349913914, 'portfolio_id': 22034056}, {'photo_id': 1349913910, 'portfolio_id': 22034056}, {'photo_id': 1349913906, 'portfolio_id': 22034056}, {'photo_id': 1349913904, 'portfolio_id': 22034056}, {'photo_id': 1349913860, 'portfolio_id': 22034056}, {'photo_id': 1349913858, 'portfolio_id': 22034056}, {'photo_id': 1349913855, 'portfolio_id': 22034056}, {'photo_id': 1349913851, 'portfolio_id': 22034056}, {'photo_id': 1349913756, 'portfolio_id': 22034056}, {'photo_id': 1349913746, 'portfolio_id': 22034056}, {'photo_id': 1349913490, 'portfolio_id': 22034056}, {'photo_id': 1349913487, 'portfolio_id': 22034056}, {'photo_id': 1349913486, 'portfolio_id': 22034056}, {'photo_id': 1349913481, 'portfolio_id': 22034056}, {'photo_id': 1349913476, 'portfolio_id': 22034056}, {'photo_id': 1349913471, 'portfolio_id': 22034056}, {'photo_id': 1349913437, 'portfolio_id': 22034056}, {'photo_id': 1349913434, 'portfolio_id': 22034056}, {'photo_id': 1349913427, 'portfolio_id': 22034056}, {'photo_id': 1349913404, 'portfolio_id': 22034056}, {'photo_id': 1349913400, 'portfolio_id': 22034056}, {'photo_id': 1349913370, 'portfolio_id': 22034056}, {'photo_id': 1349913351, 'portfolio_id': 22034056}, {'photo_id': 1349913346, 'portfolio_id': 22034056}] map_portfolio_id_photo_id: {22034056: [1349914024, 1349914021, 1349914016, 1349914000, 1349913996, 1349913994, 1349913989, 1349913988, 1349913984, 1349913983, 1349913980, 1349913978, 1349913976, 1349913926, 1349913920, 1349913914, 1349913910, 1349913906, 1349913904, 1349913860, 1349913858, 1349913855, 1349913851, 1349913756, 1349913746, 1349913490, 1349913487, 1349913486, 1349913481, 1349913476, 1349913471, 1349913437, 1349913434, 1349913427, 1349913404, 1349913400, 1349913370, 1349913351, 1349913346]} ##### 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.014785528182983398 #### 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 Tue Apr 15 15: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 (22034056) 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 : 22034056 get user id for portfolio 22034056 get sub ptf for main ptf 22034056, type 3726 and hashtags ['Carton_gris', 'autre_refus', 'kraft', 'flou', 'cartonnette', 'mal_croppe', 'plastique', 'Carton_brun', 'environnement', 'Teint_Dans_La_Masse', 'papier', 'metal'] 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`=22034056 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','kraft','flou','cartonnette','mal_croppe','plastique','Carton_brun','environnement','Teint_Dans_La_Masse','papier','metal')) 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`=22034056 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','kraft','flou','cartonnette','mal_croppe','plastique','Carton_brun','environnement','Teint_Dans_La_Masse','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22034056, 'sub_port_id': 22034081, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526505, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'cartonnette': {'main_port_id': 22034056, 'sub_port_id': 22034082, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526506, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'plastique': {'main_port_id': 22034056, 'sub_port_id': 22034083, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526507, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'flou': {'main_port_id': 22034056, 'sub_port_id': 22034084, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526508, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'mal_croppe': {'main_port_id': 22034056, 'sub_port_id': 22034085, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526509, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22034056, 'sub_port_id': 22034086, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526510, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'metal': {'main_port_id': 22034056, 'sub_port_id': 22034087, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526511, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'papier': {'main_port_id': 22034056, 'sub_port_id': 22034088, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526512, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'autre_refus': {'main_port_id': 22034056, 'sub_port_id': 22034089, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526513, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'Carton_brun': {'main_port_id': 22034056, 'sub_port_id': 22034090, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526514, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'environnement': {'main_port_id': 22034056, 'sub_port_id': 22034091, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526515, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'kraft': {'main_port_id': 22034056, 'sub_port_id': 22034092, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526516, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22034081 , 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=22034056 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 (22034081) result : ((1349913846,), (1349913943,), (1349913944,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22034056) result : ((1349913346,), (1349913351,), (1349913370,), (1349913400,), (1349913404,), (1349913427,), (1349913434,), (1349913437,), (1349913471,), (1349913476,), (1349913481,), (1349913486,), (1349913487,), (1349913490,), (1349913746,), (1349913756,), (1349913851,), (1349913855,), (1349913858,), (1349913860,), (1349913904,), (1349913906,), (1349913910,), (1349913914,), (1349913920,), (1349913926,), (1349913976,), (1349913978,), (1349913980,), (1349913983,), (1349913984,), (1349913988,), (1349913989,), (1349913994,), (1349913996,), (1349914000,), (1349914016,), (1349914021,), (1349914024,)) 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 (1349914000,1349913400) 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 22034082 , 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=22034056 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 (22034082) result : ((1349913946,), (1349913947,), (1349913948,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22034056) result : ((1349913346,), (1349913351,), (1349913370,), (1349913400,), (1349913404,), (1349913427,), (1349913434,), (1349913437,), (1349913471,), (1349913476,), (1349913481,), (1349913486,), (1349913487,), (1349913490,), (1349913746,), (1349913756,), (1349913851,), (1349913855,), (1349913858,), (1349913860,), (1349913904,), (1349913906,), (1349913910,), (1349913914,), (1349913920,), (1349913926,), (1349913976,), (1349913978,), (1349913980,), (1349913983,), (1349913984,), (1349913988,), (1349913989,), (1349913994,), (1349913996,), (1349914000,), (1349914016,), (1349914021,), (1349914024,)) 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 (1349914000,1349913400) 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 22034083 , 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=22034056 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 (22034083) result : ((1349913847,), (1349913949,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22034056) result : ((1349913346,), (1349913351,), (1349913370,), (1349913400,), (1349913404,), (1349913427,), (1349913434,), (1349913437,), (1349913471,), (1349913476,), (1349913481,), (1349913486,), (1349913487,), (1349913490,), (1349913746,), (1349913756,), (1349913851,), (1349913855,), (1349913858,), (1349913860,), (1349913904,), (1349913906,), (1349913910,), (1349913914,), (1349913920,), (1349913926,), (1349913976,), (1349913978,), (1349913980,), (1349913983,), (1349913984,), (1349913988,), (1349913989,), (1349913994,), (1349913996,), (1349914000,), (1349914016,), (1349914021,), (1349914024,)) 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 (1349914000,1349913400) 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 22034084 , 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=22034056 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 (22034084) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22034056) result : ((1349913346,), (1349913351,), (1349913370,), (1349913400,), (1349913404,), (1349913427,), (1349913434,), (1349913437,), (1349913471,), (1349913476,), (1349913481,), (1349913486,), (1349913487,), (1349913490,), (1349913746,), (1349913756,), (1349913851,), (1349913855,), (1349913858,), (1349913860,), (1349913904,), (1349913906,), (1349913910,), (1349913914,), (1349913920,), (1349913926,), (1349913976,), (1349913978,), (1349913980,), (1349913983,), (1349913984,), (1349913988,), (1349913989,), (1349913994,), (1349913996,), (1349914000,), (1349914016,), (1349914021,), (1349914024,)) 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 (1349914000,1349913400) 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 22034085 , 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=22034056 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 (22034085) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22034056) result : ((1349913346,), (1349913351,), (1349913370,), (1349913400,), (1349913404,), (1349913427,), (1349913434,), (1349913437,), (1349913471,), (1349913476,), (1349913481,), (1349913486,), (1349913487,), (1349913490,), (1349913746,), (1349913756,), (1349913851,), (1349913855,), (1349913858,), (1349913860,), (1349913904,), (1349913906,), (1349913910,), (1349913914,), (1349913920,), (1349913926,), (1349913976,), (1349913978,), (1349913980,), (1349913983,), (1349913984,), (1349913988,), (1349913989,), (1349913994,), (1349913996,), (1349914000,), (1349914016,), (1349914021,), (1349914024,)) 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 (1349914000,1349913400) 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 22034086 , 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=22034056 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 (22034086) result : ((1349913843,), (1349913936,), (1349913937,), (1349913938,), (1349913939,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22034056) result : ((1349913346,), (1349913351,), (1349913370,), (1349913400,), (1349913404,), (1349913427,), (1349913434,), (1349913437,), (1349913471,), (1349913476,), (1349913481,), (1349913486,), (1349913487,), (1349913490,), (1349913746,), (1349913756,), (1349913851,), (1349913855,), (1349913858,), (1349913860,), (1349913904,), (1349913906,), (1349913910,), (1349913914,), (1349913920,), (1349913926,), (1349913976,), (1349913978,), (1349913980,), (1349913983,), (1349913984,), (1349913988,), (1349913989,), (1349913994,), (1349913996,), (1349914000,), (1349914016,), (1349914021,), (1349914024,)) 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 (1349914000,1349913400) 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 22034087 , 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=22034056 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 (22034087) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22034056) result : ((1349913346,), (1349913351,), (1349913370,), (1349913400,), (1349913404,), (1349913427,), (1349913434,), (1349913437,), (1349913471,), (1349913476,), (1349913481,), (1349913486,), (1349913487,), (1349913490,), (1349913746,), (1349913756,), (1349913851,), (1349913855,), (1349913858,), (1349913860,), (1349913904,), (1349913906,), (1349913910,), (1349913914,), (1349913920,), (1349913926,), (1349913976,), (1349913978,), (1349913980,), (1349913983,), (1349913984,), (1349913988,), (1349913989,), (1349913994,), (1349913996,), (1349914000,), (1349914016,), (1349914021,), (1349914024,)) 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 (1349914000,1349913400) 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 22034088 , 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=22034056 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 (22034088) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22034056) result : ((1349913346,), (1349913351,), (1349913370,), (1349913400,), (1349913404,), (1349913427,), (1349913434,), (1349913437,), (1349913471,), (1349913476,), (1349913481,), (1349913486,), (1349913487,), (1349913490,), (1349913746,), (1349913756,), (1349913851,), (1349913855,), (1349913858,), (1349913860,), (1349913904,), (1349913906,), (1349913910,), (1349913914,), (1349913920,), (1349913926,), (1349913976,), (1349913978,), (1349913980,), (1349913983,), (1349913984,), (1349913988,), (1349913989,), (1349913994,), (1349913996,), (1349914000,), (1349914016,), (1349914021,), (1349914024,)) 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 (1349914000,1349913400) 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 22034089 , 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=22034056 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 (22034089) result : ((1349913844,), (1349913845,), (1349913941,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22034056) result : ((1349913346,), (1349913351,), (1349913370,), (1349913400,), (1349913404,), (1349913427,), (1349913434,), (1349913437,), (1349913471,), (1349913476,), (1349913481,), (1349913486,), (1349913487,), (1349913490,), (1349913746,), (1349913756,), (1349913851,), (1349913855,), (1349913858,), (1349913860,), (1349913904,), (1349913906,), (1349913910,), (1349913914,), (1349913920,), (1349913926,), (1349913976,), (1349913978,), (1349913980,), (1349913983,), (1349913984,), (1349913988,), (1349913989,), (1349913994,), (1349913996,), (1349914000,), (1349914016,), (1349914021,), (1349914024,)) 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 (1349914000,1349913400) 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 22034090 , 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=22034056 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 (22034090) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22034056) result : ((1349913346,), (1349913351,), (1349913370,), (1349913400,), (1349913404,), (1349913427,), (1349913434,), (1349913437,), (1349913471,), (1349913476,), (1349913481,), (1349913486,), (1349913487,), (1349913490,), (1349913746,), (1349913756,), (1349913851,), (1349913855,), (1349913858,), (1349913860,), (1349913904,), (1349913906,), (1349913910,), (1349913914,), (1349913920,), (1349913926,), (1349913976,), (1349913978,), (1349913980,), (1349913983,), (1349913984,), (1349913988,), (1349913989,), (1349913994,), (1349913996,), (1349914000,), (1349914016,), (1349914021,), (1349914024,)) 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 (1349914000,1349913400) 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 22034091 , 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=22034056 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 (22034091) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22034056) result : ((1349913346,), (1349913351,), (1349913370,), (1349913400,), (1349913404,), (1349913427,), (1349913434,), (1349913437,), (1349913471,), (1349913476,), (1349913481,), (1349913486,), (1349913487,), (1349913490,), (1349913746,), (1349913756,), (1349913851,), (1349913855,), (1349913858,), (1349913860,), (1349913904,), (1349913906,), (1349913910,), (1349913914,), (1349913920,), (1349913926,), (1349913976,), (1349913978,), (1349913980,), (1349913983,), (1349913984,), (1349913988,), (1349913989,), (1349913994,), (1349913996,), (1349914000,), (1349914016,), (1349914021,), (1349914024,)) 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 (1349914000,1349913400) 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 22034092 , 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=22034056 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 (22034092) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22034056) result : ((1349913346,), (1349913351,), (1349913370,), (1349913400,), (1349913404,), (1349913427,), (1349913434,), (1349913437,), (1349913471,), (1349913476,), (1349913481,), (1349913486,), (1349913487,), (1349913490,), (1349913746,), (1349913756,), (1349913851,), (1349913855,), (1349913858,), (1349913860,), (1349913904,), (1349913906,), (1349913910,), (1349913914,), (1349913920,), (1349913926,), (1349913976,), (1349913978,), (1349913980,), (1349913983,), (1349913984,), (1349913988,), (1349913989,), (1349913994,), (1349913996,), (1349914000,), (1349914016,), (1349914021,), (1349914024,)) 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 (1349914000,1349913400) 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`=22034056 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','kraft','flou','cartonnette','mal_croppe','plastique','Carton_brun','environnement','Teint_Dans_La_Masse','papier','metal')) 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`=22034056 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','kraft','flou','cartonnette','mal_croppe','plastique','Carton_brun','environnement','Teint_Dans_La_Masse','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22034056, 'sub_port_id': 22034093, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526517, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'cartonnette': {'main_port_id': 22034056, 'sub_port_id': 22034094, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526518, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'plastique': {'main_port_id': 22034056, 'sub_port_id': 22034095, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526519, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'flou': {'main_port_id': 22034056, 'sub_port_id': 22034096, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526520, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'mal_croppe': {'main_port_id': 22034056, 'sub_port_id': 22034097, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526521, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22034056, 'sub_port_id': 22034098, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526522, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'metal': {'main_port_id': 22034056, 'sub_port_id': 22034099, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526523, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'papier': {'main_port_id': 22034056, 'sub_port_id': 22034100, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526524, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'autre_refus': {'main_port_id': 22034056, 'sub_port_id': 22034101, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526525, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'Carton_brun': {'main_port_id': 22034056, 'sub_port_id': 22034102, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526526, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'environnement': {'main_port_id': 22034056, 'sub_port_id': 22034103, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526527, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}, 'kraft': {'main_port_id': 22034056, 'sub_port_id': 22034104, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526528, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 37), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 37), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 36, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22034093,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22034081 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22034094,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22034082 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22034095,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22034083 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22034096,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22034084 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22034097,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22034085 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22034098,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22034086 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22034099,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22034087 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22034100,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22034088 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22034101,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22034089 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22034102,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22034090 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22034103,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22034091 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22034104,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22034092 lien utilise dans velours : https://www.fotonower.com/velours/22034093,22034094,22034095,22034096,22034097,22034098,22034099,22034100,22034101,22034102,22034103,22034104?tags=Carton_gris,cartonnette,plastique,flou,mal_croppe,Teint_Dans_La_Masse,metal,papier,autre_refus,Carton_brun,environnement,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22034056]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349914024, 1349914021, 1349914016, 1349914000, 1349913996, 1349913994, 1349913989, 1349913988, 1349913984, 1349913983, 1349913980, 1349913978, 1349913976] map_info['map_portfolio_photo'] : {22034056: [1349914024, 1349914021, 1349914016, 1349914000, 1349913996, 1349913994, 1349913989, 1349913988, 1349913984, 1349913983, 1349913980, 1349913978, 1349913976, 1349913926, 1349913920, 1349913914, 1349913910, 1349913906, 1349913904, 1349913860, 1349913858, 1349913855, 1349913851, 1349913756, 1349913746, 1349913490, 1349913487, 1349913486, 1349913481, 1349913476, 1349913471, 1349913437, 1349913434, 1349913427, 1349913404, 1349913400, 1349913370, 1349913351, 1349913346]} final : False mtd_id 4302 list_pids : [1349914024, 1349914021, 1349914016, 1349914000, 1349913996, 1349913994, 1349913989, 1349913988, 1349913984, 1349913983, 1349913980, 1349913978, 1349913976] Looping around the photos to save general results len do output : 1 /22034056. 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, '2722061') ('4302', '22034056', '1349914024', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349914021', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349914016', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349914000', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913996', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913994', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913989', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913988', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913984', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913983', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913980', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913978', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913976', None, None, None, None, None, '2722061') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '22034056', "{'Carton_gris': 22034081, 'cartonnette': 22034082, 'plastique': 22034083, 'flou': 22034084, 'mal_croppe': 22034085, 'Teint_Dans_La_Masse': 22034086, 'metal': 22034087, 'papier': 22034088, 'autre_refus': 22034089, 'Carton_brun': 22034090, 'environnement': 22034091, 'kraft': 22034092}", None, None, None, None, '2722061'), ('4302', '22034056', '1349914024', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349914021', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349914016', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349914000', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913996', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913994', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913989', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913988', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913984', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913983', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913980', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913978', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913976', None, None, None, None, None, '2722061')] time used for this insertion : 0.01446843147277832 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.41149473190307617 time spend to save output : 0.014850616455078125 total time spend for step 1 : 0.4263453483581543 step2:final Tue Apr 15 15: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 (22034056) 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 22034056 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349913404,1349913400,1349913370,1349913351,1349913346,1349913481,1349913476,1349913471,1349913437,1349913434,1349913427,1349913490,1349913487,1349913486,1349913756,1349913746,1349913860,1349913858,1349913855,1349913851,1349913926,1349913920,1349913914,1349913910,1349913906,1349913904,1349914000,1349913996,1349913994,1349913989,1349913984,1349913988,1349913980,1349913983,1349913978,1349913976,1349914024,1349914021,1349914016); 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([22034056]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ('0.024969084487416592',), 1349913980: ('0.024969084487416592',), 1349913978: ('0.024969084487416592',), 1349913976: ('0.024969084487416592',)} new output for save of step final : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ('0.024969084487416592',), 1349913980: ('0.024969084487416592',), 1349913978: ('0.024969084487416592',), 1349913976: ('0.024969084487416592',)} [1349914024, 1349914021, 1349914016, 1349914000, 1349913996, 1349913994, 1349913989, 1349913988, 1349913984, 1349913983, 1349913980, 1349913978, 1349913976] map_info['map_portfolio_photo'] : {22034056: [1349914024, 1349914021, 1349914016, 1349914000, 1349913996, 1349913994, 1349913989, 1349913988, 1349913984, 1349913983, 1349913980, 1349913978, 1349913976, 1349913926, 1349913920, 1349913914, 1349913910, 1349913906, 1349913904, 1349913860, 1349913858, 1349913855, 1349913851, 1349913756, 1349913746, 1349913490, 1349913487, 1349913486, 1349913481, 1349913476, 1349913471, 1349913437, 1349913434, 1349913427, 1349913404, 1349913400, 1349913370, 1349913351, 1349913346]} final : False mtd_id 4302 list_pids : [1349914024, 1349914021, 1349914016, 1349914000, 1349913996, 1349913994, 1349913989, 1349913988, 1349913984, 1349913983, 1349913980, 1349913978, 1349913976] Looping around the photos to save general results len do output : 13 /1349914024.Didn't retrieve data . /1349914021.Didn't retrieve data . /1349914016.Didn't retrieve data . /1349914000.Didn't retrieve data . /1349913996.Didn't retrieve data . /1349913994.Didn't retrieve data . /1349913989.Didn't retrieve data . /1349913988.Didn't retrieve data . /1349913984.Didn't retrieve data . /1349913983.Didn't retrieve data . /1349913980.Didn't retrieve data . /1349913978.Didn't retrieve data . /1349913976.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, '2722061') ('4302', '22034056', '1349914024', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349914021', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349914016', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349914000', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913996', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913994', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913989', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913988', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913984', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913983', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913980', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913978', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913976', None, None, None, None, None, '2722061') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '22034056', '1349914024', '0.024969084487416592', None, None, None, None, '2722061'), ('4302', '22034056', '1349914021', '0.024969084487416592', None, None, None, None, '2722061'), ('4302', '22034056', '1349914016', '0.024969084487416592', None, None, None, None, '2722061'), ('4302', '22034056', '1349914000', '0.024969084487416592', None, None, None, None, '2722061'), ('4302', '22034056', '1349913996', '0.024969084487416592', None, None, None, None, '2722061'), ('4302', '22034056', '1349913994', '0.024969084487416592', None, None, None, None, '2722061'), ('4302', '22034056', '1349913989', '0.024969084487416592', None, None, None, None, '2722061'), ('4302', '22034056', '1349913988', '0.024969084487416592', None, None, None, None, '2722061'), ('4302', '22034056', '1349913984', '0.024969084487416592', None, None, None, None, '2722061'), ('4302', '22034056', '1349913983', '0.024969084487416592', None, None, None, None, '2722061'), ('4302', '22034056', '1349913980', '0.024969084487416592', None, None, None, None, '2722061'), ('4302', '22034056', '1349913978', '0.024969084487416592', None, None, None, None, '2722061'), ('4302', '22034056', '1349913976', '0.024969084487416592', None, None, None, None, '2722061')] time used for this insertion : 0.013307809829711914 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06093573570251465 time spend to save output : 0.014007091522216797 total time spend for step 2 : 0.07494282722473145 step3:velours_tree Tue Apr 15 15: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 complete output_args for input 0 : {22034056: [{'Carton_gris': 22034081, 'cartonnette': 22034082, 'plastique': 22034083, 'flou': 22034084, 'mal_croppe': 22034085, 'Teint_Dans_La_Masse': 22034086, 'metal': 22034087, 'papier': 22034088, 'autre_refus': 22034089, 'Carton_brun': 22034090, 'environnement': 22034091, 'kraft': 22034092}]} input_args_next_step : {22034056: ()} output_args : {22034056: [{'Carton_gris': 22034081, 'cartonnette': 22034082, 'plastique': 22034083, 'flou': 22034084, 'mal_croppe': 22034085, 'Teint_Dans_La_Masse': 22034086, 'metal': 22034087, 'papier': 22034088, 'autre_refus': 22034089, 'Carton_brun': 22034090, 'environnement': 22034091, 'kraft': 22034092}]} args : 22034056 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_gris': 22034081, 'cartonnette': 22034082, 'plastique': 22034083, 'flou': 22034084, 'mal_croppe': 22034085, 'Teint_Dans_La_Masse': 22034086, 'metal': 22034087, 'papier': 22034088, 'autre_refus': 22034089, 'Carton_brun': 22034090, 'environnement': 22034091, 'kraft': 22034092},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22034056) 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([22034056]) 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.3896050453186035 time spend to save output : 5.030632019042969e-05 total time spend for step 3 : 0.38965535163879395 step4:send_mail_cod Tue Apr 15 15: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 ! complete output_args for input 2 : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ('0.024969084487416592',), 1349913980: ('0.024969084487416592',), 1349913978: ('0.024969084487416592',), 1349913976: ('0.024969084487416592',)} input_args_next_step : {1349914024: ()} output_args : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ('0.024969084487416592',), 1349913980: ('0.024969084487416592',), 1349913978: ('0.024969084487416592',), 1349913976: ('0.024969084487416592',)} args : 1349914024 depend.output_id : 0 input_args_next_step : {1349914024: ('0.024969084487416592',), 1349914021: ()} output_args : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ('0.024969084487416592',), 1349913980: ('0.024969084487416592',), 1349913978: ('0.024969084487416592',), 1349913976: ('0.024969084487416592',)} args : 1349914021 depend.output_id : 0 input_args_next_step : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ()} output_args : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ('0.024969084487416592',), 1349913980: ('0.024969084487416592',), 1349913978: ('0.024969084487416592',), 1349913976: ('0.024969084487416592',)} args : 1349914016 depend.output_id : 0 input_args_next_step : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ()} output_args : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ('0.024969084487416592',), 1349913980: ('0.024969084487416592',), 1349913978: ('0.024969084487416592',), 1349913976: ('0.024969084487416592',)} args : 1349914000 depend.output_id : 0 input_args_next_step : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ()} output_args : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ('0.024969084487416592',), 1349913980: ('0.024969084487416592',), 1349913978: ('0.024969084487416592',), 1349913976: ('0.024969084487416592',)} args : 1349913996 depend.output_id : 0 input_args_next_step : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ()} output_args : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ('0.024969084487416592',), 1349913980: ('0.024969084487416592',), 1349913978: ('0.024969084487416592',), 1349913976: ('0.024969084487416592',)} args : 1349913994 depend.output_id : 0 input_args_next_step : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ()} output_args : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ('0.024969084487416592',), 1349913980: ('0.024969084487416592',), 1349913978: ('0.024969084487416592',), 1349913976: ('0.024969084487416592',)} args : 1349913989 depend.output_id : 0 input_args_next_step : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ()} output_args : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ('0.024969084487416592',), 1349913980: ('0.024969084487416592',), 1349913978: ('0.024969084487416592',), 1349913976: ('0.024969084487416592',)} args : 1349913988 depend.output_id : 0 input_args_next_step : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ()} output_args : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ('0.024969084487416592',), 1349913980: ('0.024969084487416592',), 1349913978: ('0.024969084487416592',), 1349913976: ('0.024969084487416592',)} args : 1349913984 depend.output_id : 0 input_args_next_step : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ()} output_args : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ('0.024969084487416592',), 1349913980: ('0.024969084487416592',), 1349913978: ('0.024969084487416592',), 1349913976: ('0.024969084487416592',)} args : 1349913983 depend.output_id : 0 input_args_next_step : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ('0.024969084487416592',), 1349913980: ()} output_args : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ('0.024969084487416592',), 1349913980: ('0.024969084487416592',), 1349913978: ('0.024969084487416592',), 1349913976: ('0.024969084487416592',)} args : 1349913980 depend.output_id : 0 input_args_next_step : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ('0.024969084487416592',), 1349913980: ('0.024969084487416592',), 1349913978: ()} output_args : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ('0.024969084487416592',), 1349913980: ('0.024969084487416592',), 1349913978: ('0.024969084487416592',), 1349913976: ('0.024969084487416592',)} args : 1349913978 depend.output_id : 0 input_args_next_step : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ('0.024969084487416592',), 1349913980: ('0.024969084487416592',), 1349913978: ('0.024969084487416592',), 1349913976: ()} output_args : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ('0.024969084487416592',), 1349913980: ('0.024969084487416592',), 1349913978: ('0.024969084487416592',), 1349913976: ('0.024969084487416592',)} args : 1349913976 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 : {22034056: [{'Carton_gris': 22034081, 'cartonnette': 22034082, 'plastique': 22034083, 'flou': 22034084, 'mal_croppe': 22034085, 'Teint_Dans_La_Masse': 22034086, 'metal': 22034087, 'papier': 22034088, 'autre_refus': 22034089, 'Carton_brun': 22034090, 'environnement': 22034091, 'kraft': 22034092}]} input_args_next_step : {1349914024: ('0.024969084487416592',), 1349914021: ('0.024969084487416592',), 1349914016: ('0.024969084487416592',), 1349914000: ('0.024969084487416592',), 1349913996: ('0.024969084487416592',), 1349913994: ('0.024969084487416592',), 1349913989: ('0.024969084487416592',), 1349913988: ('0.024969084487416592',), 1349913984: ('0.024969084487416592',), 1349913983: ('0.024969084487416592',), 1349913980: ('0.024969084487416592',), 1349913978: ('0.024969084487416592',), 1349913976: ('0.024969084487416592',), 22034056: ()} output_args : {22034056: [{'Carton_gris': 22034081, 'cartonnette': 22034082, 'plastique': 22034083, 'flou': 22034084, 'mal_croppe': 22034085, 'Teint_Dans_La_Masse': 22034086, 'metal': 22034087, 'papier': 22034088, 'autre_refus': 22034089, 'Carton_brun': 22034090, 'environnement': 22034091, 'kraft': 22034092}]} args : 22034056 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 :14, first value : ('0.024969084487416592',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22034056) 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 (1349914024,1349914021,1349914016,1349914000,1349913996,1349913994,1349913989,1349913988,1349913984,1349913983,1349913980,1349913978,1349913976) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349913976 begin to download photo : 1349913983 begin to download photo : 1349913989 begin to download photo : 1349914000 begin to download photo : 1349914024 download finish for photo 1349914000 begin to download photo : 1349914016 download finish for photo 1349914024 download finish for photo 1349913976 begin to download photo : 1349913978 download finish for photo 1349913989 begin to download photo : 1349913994 download finish for photo 1349913983 begin to download photo : 1349913984 download finish for photo 1349914016 begin to download photo : 1349914021 download finish for photo 1349913978 begin to download photo : 1349913980 download finish for photo 1349913994 begin to download photo : 1349913996 download finish for photo 1349913984 begin to download photo : 1349913988 download finish for photo 1349914021 download finish for photo 1349913980 download finish for photo 1349913988 download finish for photo 1349913996 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 : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P22034056_15-04-2025_15_38_59.pdf 22034082 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=22034082 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349913946: '1744724171_809450_1349913370_8b901df2e6f90e2470ada393a5d06580_rle_crop_3746767190_0.png', 1349913947: '1744724171_809450_1349913351_d1fd60c49735a49b26aa935d5a9a12f7_rle_crop_3746767204_0.png', 1349913948: '1744724171_809450_1349913346_4bd473562f01f3645a4291d2093afb9b_rle_crop_3746767219_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/577f84859421b7b524fd22f0bf3a46bd_60208723.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/d2e2ec9620d849a10452364d02b564b9_11070314.png change filename to text .imagette220340821744724339/ imagette220340821744724339/1744724171_809450_1349913370_8b901df2e6f90e2470ada393a5d06580_rle_crop_3746767190_0.png.png imagette220340821744724339/1744724171_809450_1349913351_d1fd60c49735a49b26aa935d5a9a12f7_rle_crop_3746767204_0.png.png imagette220340821744724339/1744724171_809450_1349913346_4bd473562f01f3645a4291d2093afb9b_rle_crop_3746767219_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/7dbe16b9c307506a50ae16e9c1f23dbc_94255588.png imagette220340821744724339 22034083 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=22034083 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349913847: '1744724081_941508_1349913427_bdca80cdfeae77c80bd4a0f4e68b27b6_rle_crop_3746764396_0.png', 1349913949: '1744724171_809450_1349913481_6322f6363e75f485f8b50c7c33de5b66_rle_crop_3746767157_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/9d8ea7f34c51da0b62a87abb699df065_31288618.png change filename to text .imagette220340831744724339/ imagette220340831744724339/1744724081_941508_1349913427_bdca80cdfeae77c80bd4a0f4e68b27b6_rle_crop_3746764396_0.png.png imagette220340831744724339/1744724171_809450_1349913481_6322f6363e75f485f8b50c7c33de5b66_rle_crop_3746767157_0.png.png imagette220340841744724339/ imagette220340851744724339/ imagette220340871744724339/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/6b10ceee253bb6b1cb84fd09c2bbc1ca_12356730.png imagette220340831744724339 22034084 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=22034084 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220340841744724339 22034085 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=22034085 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220340851744724339 22034087 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=22034087 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220340871744724339 22034089 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=22034089 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349913844: '1744724081_941508_1349913437_03fc07c044f4c79763a5278232bbb032_rle_crop_3746764361_0.png', 1349913845: '1744724081_941508_1349913434_5d95d4d2fa30ff78391f272548dcc279_rle_crop_3746764374_0.png', 1349913941: '1744724171_809450_1349913370_8b901df2e6f90e2470ada393a5d06580_rle_crop_3746767191_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/2f3becf87532dcdb1272ccb172c58440_81592746.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/5e90a46dedab69f13e1a3f8e56edbe84_39405731.png change filename to text .imagette220340891744724339/ imagette220340891744724339/1744724081_941508_1349913437_03fc07c044f4c79763a5278232bbb032_rle_crop_3746764361_0.png.png imagette220340891744724339/1744724171_809450_1349913370_8b901df2e6f90e2470ada393a5d06580_rle_crop_3746767191_0.png.png imagette220340891744724339/1744724081_941508_1349913434_5d95d4d2fa30ff78391f272548dcc279_rle_crop_3746764374_0.png.png imagette220340921744724339/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/1afafb740e31a1a9ecd4cde063f19d8e_8858018.png imagette220340891744724339 22034092 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=22034092 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220340921744724339 22034081 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=22034081 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349913846: '1744724081_941508_1349913427_bdca80cdfeae77c80bd4a0f4e68b27b6_rle_crop_3746764388_0.png', 1349913943: '1744724171_809450_1349913351_d1fd60c49735a49b26aa935d5a9a12f7_rle_crop_3746767202_0.png', 1349913944: '1744724171_809450_1349913346_4bd473562f01f3645a4291d2093afb9b_rle_crop_3746767224_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/936dcd2ddfcb1149e538db4020d7dfc0_46947270.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/5232b4ef94d6936d3bd8fd4368b51a45_53589425.png change filename to text .imagette220340811744724339/ imagette220340811744724339/1744724081_941508_1349913427_bdca80cdfeae77c80bd4a0f4e68b27b6_rle_crop_3746764388_0.png.png imagette220340811744724339/1744724171_809450_1349913346_4bd473562f01f3645a4291d2093afb9b_rle_crop_3746767224_0.png.png imagette220340811744724339/1744724171_809450_1349913351_d1fd60c49735a49b26aa935d5a9a12f7_rle_crop_3746767202_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/d340d3f6e2b8983d912904eddf48487f_18813828.png imagette220340811744724339 22034086 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=22034086 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349913843: '1744724081_941508_1349913437_03fc07c044f4c79763a5278232bbb032_rle_crop_3746764362_0.png', 1349913936: '1744724171_809450_1349913481_6322f6363e75f485f8b50c7c33de5b66_rle_crop_3746767155_0.png', 1349913937: '1744724171_809450_1349913404_ea986f4b88cfa4252c472f6cb224962b_rle_crop_3746767173_0.png', 1349913938: '1744724171_809450_1349913370_8b901df2e6f90e2470ada393a5d06580_rle_crop_3746767194_0.png', 1349913939: '1744724171_809450_1349913351_d1fd60c49735a49b26aa935d5a9a12f7_rle_crop_3746767208_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/c1ff626359d8a6d1be6b5165db7a5d58_74508729.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/66339e179a7dc3107d1464523837eccc_17274135.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/25cdcab498f63940031e179c177b43eb_71289227.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/4f47f5b64b9291b028a3470d9a3e59ea_2863357.png change filename to text .imagette220340861744724339/ imagette220340861744724339/1744724171_809450_1349913404_ea986f4b88cfa4252c472f6cb224962b_rle_crop_3746767173_0.png.png imagette220340861744724339/1744724081_941508_1349913437_03fc07c044f4c79763a5278232bbb032_rle_crop_3746764362_0.png.png imagette220340861744724339/1744724171_809450_1349913370_8b901df2e6f90e2470ada393a5d06580_rle_crop_3746767194_0.png.png imagette220340861744724339/1744724171_809450_1349913481_6322f6363e75f485f8b50c7c33de5b66_rle_crop_3746767155_0.png.png imagette220340861744724339/1744724171_809450_1349913351_d1fd60c49735a49b26aa935d5a9a12f7_rle_crop_3746767208_0.png.png imagette220340901744724340/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/0858184655c92baf952ffe929a925ca3_46531308.png imagette220340861744724339 22034090 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=22034090 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220340901744724340 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22034056 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22034093,22034094,22034095,22034096,22034097,22034098,22034099,22034100,22034101,22034102,22034103,22034104?tags=Carton_gris,cartonnette,plastique,flou,mal_croppe,Teint_Dans_La_Masse,metal,papier,autre_refus,Carton_brun,environnement,kraft your option no_mail is active, we will not send the real mail to your client args[1349914024] : ('0.024969084487416592',) no score found for photo 1349914024 We are sending mail with results at report@fotonower.com args[1349914021] : ('0.024969084487416592',) no score found for photo 1349914021 We are sending mail with results at report@fotonower.com args[1349914016] : ('0.024969084487416592',) no score found for photo 1349914016 We are sending mail with results at report@fotonower.com args[1349914000] : ('0.024969084487416592',) no score found for photo 1349914000 We are sending mail with results at report@fotonower.com args[1349913996] : ('0.024969084487416592',) no score found for photo 1349913996 We are sending mail with results at report@fotonower.com args[1349913994] : ('0.024969084487416592',) no score found for photo 1349913994 We are sending mail with results at report@fotonower.com args[1349913989] : ('0.024969084487416592',) no score found for photo 1349913989 We are sending mail with results at report@fotonower.com args[1349913988] : ('0.024969084487416592',) no score found for photo 1349913988 We are sending mail with results at report@fotonower.com args[1349913984] : ('0.024969084487416592',) no score found for photo 1349913984 We are sending mail with results at report@fotonower.com args[1349913983] : ('0.024969084487416592',) no score found for photo 1349913983 We are sending mail with results at report@fotonower.com args[1349913980] : ('0.024969084487416592',) no score found for photo 1349913980 We are sending mail with results at report@fotonower.com args[1349913978] : ('0.024969084487416592',) no score found for photo 1349913978 We are sending mail with results at report@fotonower.com args[1349913976] : ('0.024969084487416592',) no score found for photo 1349913976 We are sending mail with results at report@fotonower.com refus_total : 0.024969084487416592 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=22034056 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_P22034056_15-04-2025_15_38_59.pdf results_Auto_P22034056_15-04-2025_15_38_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22034056_15-04-2025_15_38_59.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','22034056','results_Auto_P22034056_15-04-2025_15_38_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22034056_15-04-2025_15_38_59.pdf','pdf','','0.16','0.024969084487416592') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22034056]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349914024, 1349914021, 1349914016, 1349914000, 1349913996, 1349913994, 1349913989, 1349913988, 1349913984, 1349913983, 1349913980, 1349913978, 1349913976] map_info['map_portfolio_photo'] : {22034056: [1349914024, 1349914021, 1349914016, 1349914000, 1349913996, 1349913994, 1349913989, 1349913988, 1349913984, 1349913983, 1349913980, 1349913978, 1349913976, 1349913926, 1349913920, 1349913914, 1349913910, 1349913906, 1349913904, 1349913860, 1349913858, 1349913855, 1349913851, 1349913756, 1349913746, 1349913490, 1349913487, 1349913486, 1349913481, 1349913476, 1349913471, 1349913437, 1349913434, 1349913427, 1349913404, 1349913400, 1349913370, 1349913351, 1349913346]} final : False mtd_id 4302 list_pids : [1349914024, 1349914021, 1349914016, 1349914000, 1349913996, 1349913994, 1349913989, 1349913988, 1349913984, 1349913983, 1349913980, 1349913978, 1349913976] 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, '2722061') ('4302', '22034056', '1349914024', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349914021', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349914016', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349914000', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913996', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913994', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913989', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913988', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913984', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913983', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913980', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913978', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913976', None, None, None, None, None, '2722061') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '22034056', '1349914024', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349914021', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349914016', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349914000', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913996', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913994', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913989', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913988', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913984', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913983', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913980', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913978', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913976', None, None, None, None, None, '2722061')] time used for this insertion : 0.014481782913208008 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4881319999694824 time spend to save output : 0.01476144790649414 total time spend for step 4 : 2.5028934478759766 step5:split_time_score Tue Apr 15 15: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 : ['22034056'] 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 : [('22034056',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22034056) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349914024: {'path': 'temp/1744724338_3831234_1349914024_b0a4e8f11c18037688ab2b95766c29fb.jpg', 'extension': 'jpg'}, 1349914000: {'path': 'temp/1744724338_3831234_1349914000_9be3c4282113c471df84b9e93dbb3bcc.jpg', 'extension': 'jpg'}, 1349914016: {'path': 'temp/1744724338_3831234_1349914016_b9f4ba3798c29d946d419152a5b53007.jpg', 'extension': 'jpg'}, 1349914021: {'path': 'temp/1744724338_3831234_1349914021_1828b1a88d6f7eb761566fff0db7ea56.jpg', 'extension': 'jpg'}, 1349913976: {'path': 'temp/1744724338_3831234_1349913976_6eca2c1450ae3fbe435df4dc6684363c.jpg', 'extension': 'jpg'}, 1349913978: {'path': 'temp/1744724338_3831234_1349913978_a105ae5560b2ded527cd39fcd45a240c.jpg', 'extension': 'jpg'}, 1349913980: {'path': 'temp/1744724338_3831234_1349913980_5138a1ec5bd7fc2c89737ac124080208.jpg', 'extension': 'jpg'}, 1349913983: {'path': 'temp/1744724338_3831234_1349913983_b1e4c37019c8f7582f7e4b980dc1ce44.jpg', 'extension': 'jpg'}, 1349913984: {'path': 'temp/1744724338_3831234_1349913984_c73a2bfe2ed839076f89909251859bb0.jpg', 'extension': 'jpg'}, 1349913988: {'path': 'temp/1744724338_3831234_1349913988_4425182113c45743fe550a5dbafc57a1.jpg', 'extension': 'jpg'}, 1349913989: {'path': 'temp/1744724338_3831234_1349913989_18934994c65e17d3f00a9236c4d371a6.jpg', 'extension': 'jpg'}, 1349913994: {'path': 'temp/1744724338_3831234_1349913994_e791b7b61ce9b277fff9e29548f46b47.jpg', 'extension': 'jpg'}, 1349913996: {'path': 'temp/1744724338_3831234_1349913996_5502aaa0c2eb3e51994c7d3a319b7cdc.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 = 22034056; (('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 = 22034056 group by h (('15', 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=22034056 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 (22034056) 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 (22034056) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 15042025 22034056 Nombre de photos uploadées : 39 / 23040 (0%) 15042025 22034056 Nombre de photos taguées (types de déchets): 0 / 39 (0%) 15042025 22034056 Nombre de photos taguées (volume) : 0 / 39 (0%) [{'photo_id': 1349913404, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/ea986f4b88cfa4252c472f6cb224962b.jpg', 'username': None, 'uploaded_at': 1744723907, 'text': 'image_15042025_15_30_04_010141m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349913400, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/b53d2861f6434a448f5e94ea523164cf.jpg', 'username': None, 'uploaded_at': 1744723907, 'text': 'image_15042025_15_30_14_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349913370, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/8b901df2e6f90e2470ada393a5d06580.jpg', 'username': None, 'uploaded_at': 1744723907, 'text': 'image_15042025_15_30_23_009124m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349913351, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/d1fd60c49735a49b26aa935d5a9a12f7.jpg', 'username': None, 'uploaded_at': 1744723907, 'text': 'image_15042025_15_30_33_010136m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ??????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0046024322509765625 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22034056, '2025-04-15' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1714503,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022357702255249023 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= 1714503 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1714503, 'dashboard_run_id': 1723121, 'mtr_portfolio_id': 22032110, 'dashboard_result_id': 9853310, '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_P22032110_15-04-2025_15_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032162, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1723121, 'mtr_portfolio_id': 22032679, 'dashboard_result_id': 9853311, '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_P22032679_15-04-2025_15_18_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032686, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032697, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1723121, 'mtr_portfolio_id': 22033468, 'dashboard_result_id': 9853312, '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_P22033468_15-04-2025_15_33_51.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22033484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22033485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22033486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22033487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22033488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22033489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22033490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22033491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22033492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22033493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22033494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22033495, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1723121, 'mtr_portfolio_id': 22034056, 'dashboard_result_id': 9853313, '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_P22034056_15-04-2025_15_37_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22034081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22034082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22034083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22034084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22034085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22034086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22034087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22034088, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22034089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22034090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22034091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22034092, '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 = 22032110 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': 2721869, 'mtr_portfolio_id': 22032110, 'created_at': datetime.datetime(2025, 4, 15, 15, 2, 59), 'result': '0.0673990057763429', 'result_long': None, 'result_double': None}] Qualite : 0.0673990057763429 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22032110 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032110_15-04-2025_15_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22032110 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_P22032110_15-04-2025_15_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032162, 'pht': 3726}}" where mtr_portfolio_id = 22032110 and dashboard_run_id = 1723121 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`=22032110 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9853310, 0.0673990057763429, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032110_15-04-2025_15_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032162, '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 = 22032679 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': 2721938, 'mtr_portfolio_id': 22032679, 'created_at': datetime.datetime(2025, 4, 15, 15, 18, 56), 'result': '0.04123487982642538', 'result_long': None, 'result_double': None}] Qualite : 0.04123487982642538 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22032679 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032679_15-04-2025_15_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22032679 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_P22032679_15-04-2025_15_18_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032686, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032697, 'pht': 3726}}" where mtr_portfolio_id = 22032679 and dashboard_run_id = 1723121 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`=22032679 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9853311, 0.04123487982642538, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032679_15-04-2025_15_18_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032686, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032697, '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 = 22033468 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': 2722001, 'mtr_portfolio_id': 22033468, 'created_at': datetime.datetime(2025, 4, 15, 15, 33, 50), 'result': '0.02778178732415547', 'result_long': None, 'result_double': None}] Qualite : 0.02778178732415547 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22033468 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22033468_15-04-2025_15_33_51.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22033468 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_P22033468_15-04-2025_15_33_51.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22033484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22033485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22033486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22033487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22033488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22033489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22033490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22033491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22033492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22033493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22033494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22033495, 'pht': 3726}}" where mtr_portfolio_id = 22033468 and dashboard_run_id = 1723121 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`=22033468 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9853312, 0.02778178732415547, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22033468_15-04-2025_15_33_51.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22033484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22033485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22033486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22033487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22033488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22033489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22033490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22033491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22033492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22033493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22033494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22033495, '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 = 22034056 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': 2722061, 'mtr_portfolio_id': 22034056, 'created_at': datetime.datetime(2025, 4, 15, 15, 38, 58), 'result': '0.024969084487416592', 'result_long': None, 'result_double': None}] Qualite : 0.024969084487416592 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22034056 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22034056_15-04-2025_15_38_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22034056 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_P22034056_15-04-2025_15_38_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22034081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22034082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22034083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22034084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22034085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22034086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22034087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22034088, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22034089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22034090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22034091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22034092, 'pht': 3726}}" where mtr_portfolio_id = 22034056 and dashboard_run_id = 1723121 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`=22034056 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9853313, 0.024969084487416592, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22034056_15-04-2025_15_38_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22034081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22034082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22034083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22034084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22034085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22034086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22034087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22034088, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22034089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22034090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22034091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22034092, '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 (22032110,22032679,22033468,22034056) result : ((1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,), (1349903177,), (1349903180,), (1349903337,), (1349903339,), (1349903349,), (1349903350,), (1349903363,), (1349903365,), (1349903378,), (1349903380,), (1349903385,), (1349903388,), (1349903390,), (1349903391,), (1349903435,), (1349903441,), (1349903446,), (1349903471,), (1349903602,), (1349903606,), (1349903620,), (1349903625,), (1349903699,), (1349903702,), (1349903706,), (1349903710,), (1349903714,), (1349903725,), (1349903955,), (1349903960,), (1349904043,), (1349904121,), (1349904187,), (1349904191,), (1349904195,), (1349904199,), (1349904205,), (1349904340,), (1349904345,), (1349904361,), (1349904371,), (1349904376,), (1349904379,), (1349904497,), (1349904498,), (1349904508,), (1349904511,), (1349904518,), (1349904520,), (1349904531,), (1349904533,), (1349904538,), (1349904539,), (1349904795,), (1349904843,), (1349904897,), (1349904934,), (1349904962,), (1349904994,), (1349905111,), (1349905137,), (1349905161,), (1349905189,), (1349905214,), (1349905502,), (1349905290,), (1349905361,), (1349905443,), (1349906150,), (1349906217,), (1349906296,), (1349906360,), (1349906423,), (1349906492,), (1349907320,), (1349907356,), (1349907382,), (1349907405,), (1349907444,), (1349907811,), (1349907837,), (1349907862,), (1349907890,), (1349908309,), (1349908343,), (1349908378,), (1349908602,), (1349908631,), (1349908727,), (1349908732,), (1349908735,), (1349908739,), (1349908744,), (1349908797,), (1349908809,), (1349908817,), (1349908827,), (1349908967,), (1349909026,), (1349909032,), (1349909037,), (1349909327,), (1349909332,), (1349909452,), (1349909456,), (1349909460,), (1349909464,), (1349909473,), (1349909885,), (1349909931,), (1349909961,), (1349909991,), (1349910013,), (1349910361,), (1349910390,), (1349910395,), (1349910415,), (1349910574,), (1349910600,), (1349910626,), (1349910655,), (1349910956,), (1349911010,), (1349911022,), (1349911026,), (1349911045,), (1349911072,), (1349911170,), (1349911158,), (1349911163,), (1349911285,), (1349911291,), (1349911363,), (1349911366,), (1349911369,), (1349911683,), (1349911707,), (1349911787,), (1349911870,), (1349911881,), (1349911891,), (1349911912,), (1349912030,), (1349912032,), (1349912035,), (1349912038,), (1349912039,), (1349912044,), (1349912555,), (1349912558,), (1349912561,), (1349912611,), (1349912615,), (1349912639,), (1349912654,), (1349912749,), (1349912751,), (1349912753,), (1349912787,), (1349912793,), (1349912834,), (1349912838,), (1349912842,), (1349912846,), (1349912851,), (1349912855,), (1349913218,), (1349913246,), (1349913252,), (1349913408,), (1349913346,), (1349913351,), (1349913370,), (1349913400,), (1349913404,), (1349913427,), (1349913434,), (1349913437,), (1349913471,), (1349913476,), (1349913481,), (1349913486,), (1349913487,), (1349913490,), (1349913746,), (1349913756,), (1349913851,), (1349913855,), (1349913858,), (1349913860,), (1349913904,), (1349913906,), (1349913910,), (1349913914,), (1349913920,), (1349913926,), (1349913976,), (1349913978,), (1349913980,), (1349913983,), (1349913984,), (1349913988,), (1349913989,), (1349913994,), (1349913996,), (1349914000,), (1349914016,), (1349914021,), (1349914024,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'15042025': {'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([22034056]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349914024, 1349914021, 1349914016, 1349914000, 1349913996, 1349913994, 1349913989, 1349913988, 1349913984, 1349913983, 1349913980, 1349913978, 1349913976] map_info['map_portfolio_photo'] : {22034056: [1349914024, 1349914021, 1349914016, 1349914000, 1349913996, 1349913994, 1349913989, 1349913988, 1349913984, 1349913983, 1349913980, 1349913978, 1349913976, 1349913926, 1349913920, 1349913914, 1349913910, 1349913906, 1349913904, 1349913860, 1349913858, 1349913855, 1349913851, 1349913756, 1349913746, 1349913490, 1349913487, 1349913486, 1349913481, 1349913476, 1349913471, 1349913437, 1349913434, 1349913427, 1349913404, 1349913400, 1349913370, 1349913351, 1349913346]} final : True mtd_id 4302 list_pids : [1349914024, 1349914021, 1349914016, 1349914000, 1349913996, 1349913994, 1349913989, 1349913988, 1349913984, 1349913983, 1349913980, 1349913978, 1349913976] Looping around the photos to save general results len do output : 1 /22034056Didn'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, '2722061') ('4302', '22034056', '1349914024', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349914021', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349914016', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349914000', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913996', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913994', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913989', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913988', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913984', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913983', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913980', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913978', None, None, None, None, None, '2722061') ('4302', None, None, None, None, None, None, None, '2722061') ('4302', '22034056', '1349913976', None, None, None, None, None, '2722061') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '22034056', 'None', None, None, None, None, '2722061'), ('4302', '22034056', '1349914024', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349914021', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349914016', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349914000', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913996', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913994', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913989', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913988', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913984', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913983', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913980', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913978', None, None, None, None, None, '2722061'), ('4302', '22034056', '1349913976', None, None, None, None, None, '2722061')] time used for this insertion : 0.01424551010131836 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.32065773010253906 time spend to save output : 0.01452779769897461 total time spend for step 5 : 0.33518552780151367 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 (2722061) 2.31user 2.37system 0:06.83elapsed 68%CPU (0avgtext+0avgdata 161884maxresident)k 32640inputs+9728outputs (119major+75480minor)pagefaults 0swaps