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 : 2314802 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 (2599950) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2599950) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20679803 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2599950'] with mtr_portfolio_ids : ['20679803'] and first list_photo_ids : [] new path : /proc/2314802/ Name: python3 Umask: 0002 State: R (running) Tgid: 2314802 Ngid: 0 Pid: 2314802 PPid: 2314801 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2314802 NSpid: 2314802 NSpgid: 2312715 NSsid: 2312715 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98604 kB VmRSS: 98604 kB RssAnon: 59752 kB RssFile: 38852 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 560 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/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: 46 nonvoluntary_ctxt_switches: 213 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2314802', 'Ngid': '0', 'Pid': '2314802', 'PPid': '2314801', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2314802', 'NSpid': '2314802', 'NSpgid': '2312715', 'NSsid': '2312715', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98604 kB', 'VmRSS': '98604 kB', 'RssAnon': '59752 kB', 'RssFile': '38852 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '560 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/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': '46', 'nonvoluntary_ctxt_switches': '213'} ('datou_batch_current', '2314802', '1106840', '0', '1106840', '865592', '98604', b'', 'marlene', '2599950') 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 (20679803) 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 (2599950 ) ) 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 (20679803) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338615014, 'portfolio_id': 20679803}, {'photo_id': 1338615005, 'portfolio_id': 20679803}, {'photo_id': 1338615003, 'portfolio_id': 20679803}, {'photo_id': 1338614999, 'portfolio_id': 20679803}, {'photo_id': 1338614992, 'portfolio_id': 20679803}, {'photo_id': 1338614960, 'portfolio_id': 20679803}, {'photo_id': 1338614585, 'portfolio_id': 20679803}, {'photo_id': 1338614328, 'portfolio_id': 20679803}, {'photo_id': 1338614058, 'portfolio_id': 20679803}, {'photo_id': 1338613973, 'portfolio_id': 20679803}, {'photo_id': 1338613971, 'portfolio_id': 20679803}, {'photo_id': 1338613969, 'portfolio_id': 20679803}, {'photo_id': 1338613968, 'portfolio_id': 20679803}, {'photo_id': 1338613966, 'portfolio_id': 20679803}, {'photo_id': 1338613964, 'portfolio_id': 20679803}, {'photo_id': 1338613942, 'portfolio_id': 20679803}, {'photo_id': 1338613939, 'portfolio_id': 20679803}, {'photo_id': 1338613935, 'portfolio_id': 20679803}, {'photo_id': 1338613930, 'portfolio_id': 20679803}, {'photo_id': 1338613912, 'portfolio_id': 20679803}, {'photo_id': 1338613907, 'portfolio_id': 20679803}, {'photo_id': 1338613900, 'portfolio_id': 20679803}, {'photo_id': 1338613894, 'portfolio_id': 20679803}, {'photo_id': 1338613884, 'portfolio_id': 20679803}, {'photo_id': 1338613881, 'portfolio_id': 20679803}, {'photo_id': 1338613863, 'portfolio_id': 20679803}, {'photo_id': 1338613861, 'portfolio_id': 20679803}, {'photo_id': 1338613858, 'portfolio_id': 20679803}, {'photo_id': 1338613855, 'portfolio_id': 20679803}, {'photo_id': 1338613853, 'portfolio_id': 20679803}, {'photo_id': 1338613851, 'portfolio_id': 20679803}, {'photo_id': 1338613817, 'portfolio_id': 20679803}, {'photo_id': 1338613815, 'portfolio_id': 20679803}, {'photo_id': 1338613813, 'portfolio_id': 20679803}, {'photo_id': 1338613802, 'portfolio_id': 20679803}, {'photo_id': 1338613769, 'portfolio_id': 20679803}, {'photo_id': 1338613766, 'portfolio_id': 20679803}, {'photo_id': 1338613757, 'portfolio_id': 20679803}, {'photo_id': 1338613747, 'portfolio_id': 20679803}, {'photo_id': 1338613745, 'portfolio_id': 20679803}, {'photo_id': 1338613743, 'portfolio_id': 20679803}, {'photo_id': 1338613724, 'portfolio_id': 20679803}, {'photo_id': 1338613721, 'portfolio_id': 20679803}, {'photo_id': 1338613717, 'portfolio_id': 20679803}, {'photo_id': 1338613715, 'portfolio_id': 20679803}, {'photo_id': 1338613713, 'portfolio_id': 20679803}, {'photo_id': 1338613702, 'portfolio_id': 20679803}, {'photo_id': 1338613663, 'portfolio_id': 20679803}, {'photo_id': 1338613659, 'portfolio_id': 20679803}] map_portfolio_id_photo_id: {20679803: [1338615014, 1338615005, 1338615003, 1338614999, 1338614992, 1338614960, 1338614585, 1338614328, 1338614058, 1338613973, 1338613971, 1338613969, 1338613968, 1338613966, 1338613964, 1338613942, 1338613939, 1338613935, 1338613930, 1338613912, 1338613907, 1338613900, 1338613894, 1338613884, 1338613881, 1338613863, 1338613861, 1338613858, 1338613855, 1338613853, 1338613851, 1338613817, 1338613815, 1338613813, 1338613802, 1338613769, 1338613766, 1338613757, 1338613747, 1338613745, 1338613743, 1338613724, 1338613721, 1338613717, 1338613715, 1338613713, 1338613702, 1338613663, 1338613659]} ##### 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.019943952560424805 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Feb 20 15:56:28 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 (20679803) 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 : 20679803 get user id for portfolio 20679803 get sub ptf for main ptf 20679803, type 3726 and hashtags ['cartonnette', 'flou', 'environnement', 'Teint_Dans_La_Masse', 'plastique', 'Carton_gris', 'autre_refus', 'mal_croppe', 'Carton_brun', 'kraft', 'metal', 'papier'] 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`=20679803 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','environnement','Teint_Dans_La_Masse','plastique','Carton_gris','autre_refus','mal_croppe','Carton_brun','kraft','metal','papier')) 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`=20679803 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','environnement','Teint_Dans_La_Masse','plastique','Carton_gris','autre_refus','mal_croppe','Carton_brun','kraft','metal','papier')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 20679803, 'sub_port_id': 20679834, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330114, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 28)}, 'autre_refus': {'main_port_id': 20679803, 'sub_port_id': 20679835, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330115, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 28)}, 'flou': {'main_port_id': 20679803, 'sub_port_id': 20679836, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330116, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 20679803, 'sub_port_id': 20679837, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330117, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 28)}, 'mal_croppe': {'main_port_id': 20679803, 'sub_port_id': 20679838, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330118, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 28)}, 'kraft': {'main_port_id': 20679803, 'sub_port_id': 20679839, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330119, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 28)}, 'Carton_gris': {'main_port_id': 20679803, 'sub_port_id': 20679840, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330120, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 28)}, 'Carton_brun': {'main_port_id': 20679803, 'sub_port_id': 20679841, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330121, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 28)}, 'metal': {'main_port_id': 20679803, 'sub_port_id': 20679842, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330122, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 28)}, 'environnement': {'main_port_id': 20679803, 'sub_port_id': 20679843, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330123, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 28)}, 'papier': {'main_port_id': 20679803, 'sub_port_id': 20679844, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330124, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 28)}, 'cartonnette': {'main_port_id': 20679803, 'sub_port_id': 20679845, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330125, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20679834 , 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=20679803 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 (20679834) result : ((1338613910,), (1338613987,), (1338613988,), (1338614002,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20679803) result : ((1338613659,), (1338613663,), (1338613702,), (1338613713,), (1338613715,), (1338613717,), (1338613721,), (1338613724,), (1338613743,), (1338613745,), (1338613747,), (1338613757,), (1338613766,), (1338613769,), (1338613802,), (1338613813,), (1338613815,), (1338613817,), (1338613851,), (1338613853,), (1338613855,), (1338613858,), (1338613861,), (1338613863,), (1338613881,), (1338613884,), (1338613894,), (1338613900,), (1338613907,), (1338613912,), (1338613930,), (1338613935,), (1338613939,), (1338613942,), (1338613964,), (1338613966,), (1338613968,), (1338613969,), (1338613971,), (1338613973,), (1338614058,), (1338614328,), (1338614585,), (1338614960,), (1338614992,), (1338614999,), (1338615003,), (1338615005,), (1338615014,)) 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 (1338613900) 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 20679835 , 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=20679803 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 (20679835) result : ((1338613904,), (1338613905,), (1338613906,), (1338613994,), (1338613995,), (1338613996,), (1338615011,), (1338615012,), (1338615013,), (1338615122,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20679803) result : ((1338613659,), (1338613663,), (1338613702,), (1338613713,), (1338613715,), (1338613717,), (1338613721,), (1338613724,), (1338613743,), (1338613745,), (1338613747,), (1338613757,), (1338613766,), (1338613769,), (1338613802,), (1338613813,), (1338613815,), (1338613817,), (1338613851,), (1338613853,), (1338613855,), (1338613858,), (1338613861,), (1338613863,), (1338613881,), (1338613884,), (1338613894,), (1338613900,), (1338613907,), (1338613912,), (1338613930,), (1338613935,), (1338613939,), (1338613942,), (1338613964,), (1338613966,), (1338613968,), (1338613969,), (1338613971,), (1338613973,), (1338614058,), (1338614328,), (1338614585,), (1338614960,), (1338614992,), (1338614999,), (1338615003,), (1338615005,), (1338615014,)) 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 (1338613900) 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 20679836 , 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=20679803 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 (20679836) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20679803) result : ((1338613659,), (1338613663,), (1338613702,), (1338613713,), (1338613715,), (1338613717,), (1338613721,), (1338613724,), (1338613743,), (1338613745,), (1338613747,), (1338613757,), (1338613766,), (1338613769,), (1338613802,), (1338613813,), (1338613815,), (1338613817,), (1338613851,), (1338613853,), (1338613855,), (1338613858,), (1338613861,), (1338613863,), (1338613881,), (1338613884,), (1338613894,), (1338613900,), (1338613907,), (1338613912,), (1338613930,), (1338613935,), (1338613939,), (1338613942,), (1338613964,), (1338613966,), (1338613968,), (1338613969,), (1338613971,), (1338613973,), (1338614058,), (1338614328,), (1338614585,), (1338614960,), (1338614992,), (1338614999,), (1338615003,), (1338615005,), (1338615014,)) 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 (1338613900) 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 20679837 , 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=20679803 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 (20679837) result : ((1338613943,), (1338613982,), (1338615006,), (1338615007,), (1338615008,), (1338615009,), (1338615106,), (1338615107,), (1338615108,), (1338615109,), (1338615110,), (1338615111,), (1338615112,), (1338615113,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20679803) result : ((1338613659,), (1338613663,), (1338613702,), (1338613713,), (1338613715,), (1338613717,), (1338613721,), (1338613724,), (1338613743,), (1338613745,), (1338613747,), (1338613757,), (1338613766,), (1338613769,), (1338613802,), (1338613813,), (1338613815,), (1338613817,), (1338613851,), (1338613853,), (1338613855,), (1338613858,), (1338613861,), (1338613863,), (1338613881,), (1338613884,), (1338613894,), (1338613900,), (1338613907,), (1338613912,), (1338613930,), (1338613935,), (1338613939,), (1338613942,), (1338613964,), (1338613966,), (1338613968,), (1338613969,), (1338613971,), (1338613973,), (1338614058,), (1338614328,), (1338614585,), (1338614960,), (1338614992,), (1338614999,), (1338615003,), (1338615005,), (1338615014,)) 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 (1338613900) 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 20679838 , 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=20679803 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 (20679838) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20679803) result : ((1338613659,), (1338613663,), (1338613702,), (1338613713,), (1338613715,), (1338613717,), (1338613721,), (1338613724,), (1338613743,), (1338613745,), (1338613747,), (1338613757,), (1338613766,), (1338613769,), (1338613802,), (1338613813,), (1338613815,), (1338613817,), (1338613851,), (1338613853,), (1338613855,), (1338613858,), (1338613861,), (1338613863,), (1338613881,), (1338613884,), (1338613894,), (1338613900,), (1338613907,), (1338613912,), (1338613930,), (1338613935,), (1338613939,), (1338613942,), (1338613964,), (1338613966,), (1338613968,), (1338613969,), (1338613971,), (1338613973,), (1338614058,), (1338614328,), (1338614585,), (1338614960,), (1338614992,), (1338614999,), (1338615003,), (1338615005,), (1338615014,)) 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 (1338613900) 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 20679839 , 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=20679803 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 (20679839) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20679803) result : ((1338613659,), (1338613663,), (1338613702,), (1338613713,), (1338613715,), (1338613717,), (1338613721,), (1338613724,), (1338613743,), (1338613745,), (1338613747,), (1338613757,), (1338613766,), (1338613769,), (1338613802,), (1338613813,), (1338613815,), (1338613817,), (1338613851,), (1338613853,), (1338613855,), (1338613858,), (1338613861,), (1338613863,), (1338613881,), (1338613884,), (1338613894,), (1338613900,), (1338613907,), (1338613912,), (1338613930,), (1338613935,), (1338613939,), (1338613942,), (1338613964,), (1338613966,), (1338613968,), (1338613969,), (1338613971,), (1338613973,), (1338614058,), (1338614328,), (1338614585,), (1338614960,), (1338614992,), (1338614999,), (1338615003,), (1338615005,), (1338615014,)) 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 (1338613900) 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 20679840 , 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=20679803 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 (20679840) result : ((1338613984,), (1338613985,), (1338613997,), (1338615131,), (1338615133,), (1338615135,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20679803) result : ((1338613659,), (1338613663,), (1338613702,), (1338613713,), (1338613715,), (1338613717,), (1338613721,), (1338613724,), (1338613743,), (1338613745,), (1338613747,), (1338613757,), (1338613766,), (1338613769,), (1338613802,), (1338613813,), (1338613815,), (1338613817,), (1338613851,), (1338613853,), (1338613855,), (1338613858,), (1338613861,), (1338613863,), (1338613881,), (1338613884,), (1338613894,), (1338613900,), (1338613907,), (1338613912,), (1338613930,), (1338613935,), (1338613939,), (1338613942,), (1338613964,), (1338613966,), (1338613968,), (1338613969,), (1338613971,), (1338613973,), (1338614058,), (1338614328,), (1338614585,), (1338614960,), (1338614992,), (1338614999,), (1338615003,), (1338615005,), (1338615014,)) 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 (1338613900) 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 20679841 , 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=20679803 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 (20679841) result : ((1338615018,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20679803) result : ((1338613659,), (1338613663,), (1338613702,), (1338613713,), (1338613715,), (1338613717,), (1338613721,), (1338613724,), (1338613743,), (1338613745,), (1338613747,), (1338613757,), (1338613766,), (1338613769,), (1338613802,), (1338613813,), (1338613815,), (1338613817,), (1338613851,), (1338613853,), (1338613855,), (1338613858,), (1338613861,), (1338613863,), (1338613881,), (1338613884,), (1338613894,), (1338613900,), (1338613907,), (1338613912,), (1338613930,), (1338613935,), (1338613939,), (1338613942,), (1338613964,), (1338613966,), (1338613968,), (1338613969,), (1338613971,), (1338613973,), (1338614058,), (1338614328,), (1338614585,), (1338614960,), (1338614992,), (1338614999,), (1338615003,), (1338615005,), (1338615014,)) 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 (1338613900) 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 20679842 , 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=20679803 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 (20679842) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20679803) result : ((1338613659,), (1338613663,), (1338613702,), (1338613713,), (1338613715,), (1338613717,), (1338613721,), (1338613724,), (1338613743,), (1338613745,), (1338613747,), (1338613757,), (1338613766,), (1338613769,), (1338613802,), (1338613813,), (1338613815,), (1338613817,), (1338613851,), (1338613853,), (1338613855,), (1338613858,), (1338613861,), (1338613863,), (1338613881,), (1338613884,), (1338613894,), (1338613900,), (1338613907,), (1338613912,), (1338613930,), (1338613935,), (1338613939,), (1338613942,), (1338613964,), (1338613966,), (1338613968,), (1338613969,), (1338613971,), (1338613973,), (1338614058,), (1338614328,), (1338614585,), (1338614960,), (1338614992,), (1338614999,), (1338615003,), (1338615005,), (1338615014,)) 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 (1338613900) 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 20679843 , 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=20679803 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 (20679843) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20679803) result : ((1338613659,), (1338613663,), (1338613702,), (1338613713,), (1338613715,), (1338613717,), (1338613721,), (1338613724,), (1338613743,), (1338613745,), (1338613747,), (1338613757,), (1338613766,), (1338613769,), (1338613802,), (1338613813,), (1338613815,), (1338613817,), (1338613851,), (1338613853,), (1338613855,), (1338613858,), (1338613861,), (1338613863,), (1338613881,), (1338613884,), (1338613894,), (1338613900,), (1338613907,), (1338613912,), (1338613930,), (1338613935,), (1338613939,), (1338613942,), (1338613964,), (1338613966,), (1338613968,), (1338613969,), (1338613971,), (1338613973,), (1338614058,), (1338614328,), (1338614585,), (1338614960,), (1338614992,), (1338614999,), (1338615003,), (1338615005,), (1338615014,)) 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 (1338613900) 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 20679844 , 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=20679803 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 (20679844) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20679803) result : ((1338613659,), (1338613663,), (1338613702,), (1338613713,), (1338613715,), (1338613717,), (1338613721,), (1338613724,), (1338613743,), (1338613745,), (1338613747,), (1338613757,), (1338613766,), (1338613769,), (1338613802,), (1338613813,), (1338613815,), (1338613817,), (1338613851,), (1338613853,), (1338613855,), (1338613858,), (1338613861,), (1338613863,), (1338613881,), (1338613884,), (1338613894,), (1338613900,), (1338613907,), (1338613912,), (1338613930,), (1338613935,), (1338613939,), (1338613942,), (1338613964,), (1338613966,), (1338613968,), (1338613969,), (1338613971,), (1338613973,), (1338614058,), (1338614328,), (1338614585,), (1338614960,), (1338614992,), (1338614999,), (1338615003,), (1338615005,), (1338615014,)) 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 (1338613900) 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 20679845 , 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=20679803 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 (20679845) result : ((1338613908,), (1338613909,), (1338614000,), (1338614001,), (1338615016,), (1338615017,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20679803) result : ((1338613659,), (1338613663,), (1338613702,), (1338613713,), (1338613715,), (1338613717,), (1338613721,), (1338613724,), (1338613743,), (1338613745,), (1338613747,), (1338613757,), (1338613766,), (1338613769,), (1338613802,), (1338613813,), (1338613815,), (1338613817,), (1338613851,), (1338613853,), (1338613855,), (1338613858,), (1338613861,), (1338613863,), (1338613881,), (1338613884,), (1338613894,), (1338613900,), (1338613907,), (1338613912,), (1338613930,), (1338613935,), (1338613939,), (1338613942,), (1338613964,), (1338613966,), (1338613968,), (1338613969,), (1338613971,), (1338613973,), (1338614058,), (1338614328,), (1338614585,), (1338614960,), (1338614992,), (1338614999,), (1338615003,), (1338615005,), (1338615014,)) 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 (1338613900) 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`=20679803 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','environnement','Teint_Dans_La_Masse','plastique','Carton_gris','autre_refus','mal_croppe','Carton_brun','kraft','metal','papier')) 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`=20679803 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','environnement','Teint_Dans_La_Masse','plastique','Carton_gris','autre_refus','mal_croppe','Carton_brun','kraft','metal','papier')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 20679803, 'sub_port_id': 20679846, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330126, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 30)}, 'autre_refus': {'main_port_id': 20679803, 'sub_port_id': 20679847, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330127, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 30)}, 'flou': {'main_port_id': 20679803, 'sub_port_id': 20679848, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330128, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 20679803, 'sub_port_id': 20679849, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330129, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 30)}, 'mal_croppe': {'main_port_id': 20679803, 'sub_port_id': 20679850, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330130, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 30)}, 'kraft': {'main_port_id': 20679803, 'sub_port_id': 20679851, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330131, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 30)}, 'Carton_gris': {'main_port_id': 20679803, 'sub_port_id': 20679852, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330132, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 30)}, 'Carton_brun': {'main_port_id': 20679803, 'sub_port_id': 20679853, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330133, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 30)}, 'metal': {'main_port_id': 20679803, 'sub_port_id': 20679854, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330134, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 30)}, 'environnement': {'main_port_id': 20679803, 'sub_port_id': 20679855, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330135, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 30)}, 'papier': {'main_port_id': 20679803, 'sub_port_id': 20679856, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330136, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 30)}, 'cartonnette': {'main_port_id': 20679803, 'sub_port_id': 20679857, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13330137, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 49, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20679846,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20679834 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20679847,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20679835 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20679848,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20679836 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20679849,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20679837 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20679850,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20679838 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20679851,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20679839 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20679852,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20679840 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20679853,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20679841 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20679854,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20679842 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20679855,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20679843 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20679856,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20679844 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20679857,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20679845 lien utilise dans velours : https://www.fotonower.com/velours/20679846,20679847,20679848,20679849,20679850,20679851,20679852,20679853,20679854,20679855,20679856,20679857?tags=plastique,autre_refus,flou,Teint_Dans_La_Masse,mal_croppe,kraft,Carton_gris,Carton_brun,metal,environnement,papier,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20679803]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338615014, 1338615005, 1338615003, 1338614999, 1338614992, 1338614960, 1338614585, 1338614328, 1338614058] map_info['map_portfolio_photo'] : {20679803: [1338615014, 1338615005, 1338615003, 1338614999, 1338614992, 1338614960, 1338614585, 1338614328, 1338614058, 1338613973, 1338613971, 1338613969, 1338613968, 1338613966, 1338613964, 1338613942, 1338613939, 1338613935, 1338613930, 1338613912, 1338613907, 1338613900, 1338613894, 1338613884, 1338613881, 1338613863, 1338613861, 1338613858, 1338613855, 1338613853, 1338613851, 1338613817, 1338613815, 1338613813, 1338613802, 1338613769, 1338613766, 1338613757, 1338613747, 1338613745, 1338613743, 1338613724, 1338613721, 1338613717, 1338613715, 1338613713, 1338613702, 1338613663, 1338613659]} final : False mtd_id 4302 list_pids : [1338615014, 1338615005, 1338615003, 1338614999, 1338614992, 1338614960, 1338614585, 1338614328, 1338614058] Looping around the photos to save general results len do output : 1 /20679803. 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, '2599950') ('4302', '20679803', '1338615014', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338615005', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338615003', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614999', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614992', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614960', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614585', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614328', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614058', None, None, None, None, None, '2599950') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '20679803', "{'plastique': 20679834, 'autre_refus': 20679835, 'flou': 20679836, 'Teint_Dans_La_Masse': 20679837, 'mal_croppe': 20679838, 'kraft': 20679839, 'Carton_gris': 20679840, 'Carton_brun': 20679841, 'metal': 20679842, 'environnement': 20679843, 'papier': 20679844, 'cartonnette': 20679845}", None, None, None, None, '2599950'), ('4302', '20679803', '1338615014', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338615005', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338615003', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338614999', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338614992', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338614960', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338614585', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338614328', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338614058', None, None, None, None, None, '2599950')] time used for this insertion : 0.013099431991577148 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5972959995269775 time spend to save output : 0.013356447219848633 total time spend for step 1 : 0.6106524467468262 step2:final Thu Feb 20 15:56:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20679803) 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 20679803 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338613659,1338613663,1338613724,1338613721,1338613717,1338613715,1338613713,1338613702,1338613769,1338613766,1338613757,1338613747,1338613745,1338613743,1338613817,1338613815,1338613813,1338613802,1338613863,1338613861,1338613858,1338613855,1338613853,1338613851,1338613912,1338613907,1338613900,1338613894,1338613884,1338613881,1338613942,1338613939,1338613935,1338613930,1338613973,1338613971,1338613969,1338613968,1338613966,1338613964,1338614585,1338614328,1338614058,1338615014,1338615005,1338615003,1338614999,1338614992,1338614960); 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([20679803]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338615014: ('0.034766582230606',), 1338615005: ('0.034766582230606',), 1338615003: ('0.034766582230606',), 1338614999: ('0.034766582230606',), 1338614992: ('0.034766582230606',), 1338614960: ('0.034766582230606',), 1338614585: ('0.034766582230606',), 1338614328: ('0.034766582230606',), 1338614058: ('0.034766582230606',)} new output for save of step final : {1338615014: ('0.034766582230606',), 1338615005: ('0.034766582230606',), 1338615003: ('0.034766582230606',), 1338614999: ('0.034766582230606',), 1338614992: ('0.034766582230606',), 1338614960: ('0.034766582230606',), 1338614585: ('0.034766582230606',), 1338614328: ('0.034766582230606',), 1338614058: ('0.034766582230606',)} [1338615014, 1338615005, 1338615003, 1338614999, 1338614992, 1338614960, 1338614585, 1338614328, 1338614058] map_info['map_portfolio_photo'] : {20679803: [1338615014, 1338615005, 1338615003, 1338614999, 1338614992, 1338614960, 1338614585, 1338614328, 1338614058, 1338613973, 1338613971, 1338613969, 1338613968, 1338613966, 1338613964, 1338613942, 1338613939, 1338613935, 1338613930, 1338613912, 1338613907, 1338613900, 1338613894, 1338613884, 1338613881, 1338613863, 1338613861, 1338613858, 1338613855, 1338613853, 1338613851, 1338613817, 1338613815, 1338613813, 1338613802, 1338613769, 1338613766, 1338613757, 1338613747, 1338613745, 1338613743, 1338613724, 1338613721, 1338613717, 1338613715, 1338613713, 1338613702, 1338613663, 1338613659]} final : False mtd_id 4302 list_pids : [1338615014, 1338615005, 1338615003, 1338614999, 1338614992, 1338614960, 1338614585, 1338614328, 1338614058] Looping around the photos to save general results len do output : 9 /1338615014.Didn't retrieve data . /1338615005.Didn't retrieve data . /1338615003.Didn't retrieve data . /1338614999.Didn't retrieve data . /1338614992.Didn't retrieve data . /1338614960.Didn't retrieve data . /1338614585.Didn't retrieve data . /1338614328.Didn't retrieve data . /1338614058.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, '2599950') ('4302', '20679803', '1338615014', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338615005', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338615003', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614999', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614992', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614960', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614585', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614328', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614058', None, None, None, None, None, '2599950') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '20679803', '1338615014', '0.034766582230606', None, None, None, None, '2599950'), ('4302', '20679803', '1338615005', '0.034766582230606', None, None, None, None, '2599950'), ('4302', '20679803', '1338615003', '0.034766582230606', None, None, None, None, '2599950'), ('4302', '20679803', '1338614999', '0.034766582230606', None, None, None, None, '2599950'), ('4302', '20679803', '1338614992', '0.034766582230606', None, None, None, None, '2599950'), ('4302', '20679803', '1338614960', '0.034766582230606', None, None, None, None, '2599950'), ('4302', '20679803', '1338614585', '0.034766582230606', None, None, None, None, '2599950'), ('4302', '20679803', '1338614328', '0.034766582230606', None, None, None, None, '2599950'), ('4302', '20679803', '1338614058', '0.034766582230606', None, None, None, None, '2599950')] time used for this insertion : 0.015377283096313477 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.09039306640625 time spend to save output : 0.015803098678588867 total time spend for step 2 : 0.10619616508483887 step3:velours_tree Thu Feb 20 15:56:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20679803: [{'plastique': 20679834, 'autre_refus': 20679835, 'flou': 20679836, 'Teint_Dans_La_Masse': 20679837, 'mal_croppe': 20679838, 'kraft': 20679839, 'Carton_gris': 20679840, 'Carton_brun': 20679841, 'metal': 20679842, 'environnement': 20679843, 'papier': 20679844, 'cartonnette': 20679845}]} input_args_next_step : {20679803: ()} output_args : {20679803: [{'plastique': 20679834, 'autre_refus': 20679835, 'flou': 20679836, 'Teint_Dans_La_Masse': 20679837, 'mal_croppe': 20679838, 'kraft': 20679839, 'Carton_gris': 20679840, 'Carton_brun': 20679841, 'metal': 20679842, 'environnement': 20679843, 'papier': 20679844, 'cartonnette': 20679845}]} args : 20679803 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 : ({'plastique': 20679834, 'autre_refus': 20679835, 'flou': 20679836, 'Teint_Dans_La_Masse': 20679837, 'mal_croppe': 20679838, 'kraft': 20679839, 'Carton_gris': 20679840, 'Carton_brun': 20679841, 'metal': 20679842, 'environnement': 20679843, 'papier': 20679844, 'cartonnette': 20679845},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20679803) 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([20679803]) 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.3825075626373291 time spend to save output : 6.318092346191406e-05 total time spend for step 3 : 0.382570743560791 step4:send_mail_cod Thu Feb 20 15:56:30 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 : {1338615014: ('0.034766582230606',), 1338615005: ('0.034766582230606',), 1338615003: ('0.034766582230606',), 1338614999: ('0.034766582230606',), 1338614992: ('0.034766582230606',), 1338614960: ('0.034766582230606',), 1338614585: ('0.034766582230606',), 1338614328: ('0.034766582230606',), 1338614058: ('0.034766582230606',)} input_args_next_step : {1338615014: ()} output_args : {1338615014: ('0.034766582230606',), 1338615005: ('0.034766582230606',), 1338615003: ('0.034766582230606',), 1338614999: ('0.034766582230606',), 1338614992: ('0.034766582230606',), 1338614960: ('0.034766582230606',), 1338614585: ('0.034766582230606',), 1338614328: ('0.034766582230606',), 1338614058: ('0.034766582230606',)} args : 1338615014 depend.output_id : 0 input_args_next_step : {1338615014: ('0.034766582230606',), 1338615005: ()} output_args : {1338615014: ('0.034766582230606',), 1338615005: ('0.034766582230606',), 1338615003: ('0.034766582230606',), 1338614999: ('0.034766582230606',), 1338614992: ('0.034766582230606',), 1338614960: ('0.034766582230606',), 1338614585: ('0.034766582230606',), 1338614328: ('0.034766582230606',), 1338614058: ('0.034766582230606',)} args : 1338615005 depend.output_id : 0 input_args_next_step : {1338615014: ('0.034766582230606',), 1338615005: ('0.034766582230606',), 1338615003: ()} output_args : {1338615014: ('0.034766582230606',), 1338615005: ('0.034766582230606',), 1338615003: ('0.034766582230606',), 1338614999: ('0.034766582230606',), 1338614992: ('0.034766582230606',), 1338614960: ('0.034766582230606',), 1338614585: ('0.034766582230606',), 1338614328: ('0.034766582230606',), 1338614058: ('0.034766582230606',)} args : 1338615003 depend.output_id : 0 input_args_next_step : {1338615014: ('0.034766582230606',), 1338615005: ('0.034766582230606',), 1338615003: ('0.034766582230606',), 1338614999: ()} output_args : {1338615014: ('0.034766582230606',), 1338615005: ('0.034766582230606',), 1338615003: ('0.034766582230606',), 1338614999: ('0.034766582230606',), 1338614992: ('0.034766582230606',), 1338614960: ('0.034766582230606',), 1338614585: ('0.034766582230606',), 1338614328: ('0.034766582230606',), 1338614058: ('0.034766582230606',)} args : 1338614999 depend.output_id : 0 input_args_next_step : {1338615014: ('0.034766582230606',), 1338615005: ('0.034766582230606',), 1338615003: ('0.034766582230606',), 1338614999: ('0.034766582230606',), 1338614992: ()} output_args : {1338615014: ('0.034766582230606',), 1338615005: ('0.034766582230606',), 1338615003: ('0.034766582230606',), 1338614999: ('0.034766582230606',), 1338614992: ('0.034766582230606',), 1338614960: ('0.034766582230606',), 1338614585: ('0.034766582230606',), 1338614328: ('0.034766582230606',), 1338614058: ('0.034766582230606',)} args : 1338614992 depend.output_id : 0 input_args_next_step : {1338615014: ('0.034766582230606',), 1338615005: ('0.034766582230606',), 1338615003: ('0.034766582230606',), 1338614999: ('0.034766582230606',), 1338614992: ('0.034766582230606',), 1338614960: ()} output_args : {1338615014: ('0.034766582230606',), 1338615005: ('0.034766582230606',), 1338615003: ('0.034766582230606',), 1338614999: ('0.034766582230606',), 1338614992: ('0.034766582230606',), 1338614960: ('0.034766582230606',), 1338614585: ('0.034766582230606',), 1338614328: ('0.034766582230606',), 1338614058: ('0.034766582230606',)} args : 1338614960 depend.output_id : 0 input_args_next_step : {1338615014: ('0.034766582230606',), 1338615005: ('0.034766582230606',), 1338615003: ('0.034766582230606',), 1338614999: ('0.034766582230606',), 1338614992: ('0.034766582230606',), 1338614960: ('0.034766582230606',), 1338614585: ()} output_args : {1338615014: ('0.034766582230606',), 1338615005: ('0.034766582230606',), 1338615003: ('0.034766582230606',), 1338614999: ('0.034766582230606',), 1338614992: ('0.034766582230606',), 1338614960: ('0.034766582230606',), 1338614585: ('0.034766582230606',), 1338614328: ('0.034766582230606',), 1338614058: ('0.034766582230606',)} args : 1338614585 depend.output_id : 0 input_args_next_step : {1338615014: ('0.034766582230606',), 1338615005: ('0.034766582230606',), 1338615003: ('0.034766582230606',), 1338614999: ('0.034766582230606',), 1338614992: ('0.034766582230606',), 1338614960: ('0.034766582230606',), 1338614585: ('0.034766582230606',), 1338614328: ()} output_args : {1338615014: ('0.034766582230606',), 1338615005: ('0.034766582230606',), 1338615003: ('0.034766582230606',), 1338614999: ('0.034766582230606',), 1338614992: ('0.034766582230606',), 1338614960: ('0.034766582230606',), 1338614585: ('0.034766582230606',), 1338614328: ('0.034766582230606',), 1338614058: ('0.034766582230606',)} args : 1338614328 depend.output_id : 0 input_args_next_step : {1338615014: ('0.034766582230606',), 1338615005: ('0.034766582230606',), 1338615003: ('0.034766582230606',), 1338614999: ('0.034766582230606',), 1338614992: ('0.034766582230606',), 1338614960: ('0.034766582230606',), 1338614585: ('0.034766582230606',), 1338614328: ('0.034766582230606',), 1338614058: ()} output_args : {1338615014: ('0.034766582230606',), 1338615005: ('0.034766582230606',), 1338615003: ('0.034766582230606',), 1338614999: ('0.034766582230606',), 1338614992: ('0.034766582230606',), 1338614960: ('0.034766582230606',), 1338614585: ('0.034766582230606',), 1338614328: ('0.034766582230606',), 1338614058: ('0.034766582230606',)} args : 1338614058 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 : {20679803: [{'plastique': 20679834, 'autre_refus': 20679835, 'flou': 20679836, 'Teint_Dans_La_Masse': 20679837, 'mal_croppe': 20679838, 'kraft': 20679839, 'Carton_gris': 20679840, 'Carton_brun': 20679841, 'metal': 20679842, 'environnement': 20679843, 'papier': 20679844, 'cartonnette': 20679845}]} input_args_next_step : {1338615014: ('0.034766582230606',), 1338615005: ('0.034766582230606',), 1338615003: ('0.034766582230606',), 1338614999: ('0.034766582230606',), 1338614992: ('0.034766582230606',), 1338614960: ('0.034766582230606',), 1338614585: ('0.034766582230606',), 1338614328: ('0.034766582230606',), 1338614058: ('0.034766582230606',), 20679803: ()} output_args : {20679803: [{'plastique': 20679834, 'autre_refus': 20679835, 'flou': 20679836, 'Teint_Dans_La_Masse': 20679837, 'mal_croppe': 20679838, 'kraft': 20679839, 'Carton_gris': 20679840, 'Carton_brun': 20679841, 'metal': 20679842, 'environnement': 20679843, 'papier': 20679844, 'cartonnette': 20679845}]} args : 20679803 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 :10, first value : ('0.034766582230606',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20679803) 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 (1338615014,1338615005,1338615003,1338614999,1338614992,1338614960,1338614585,1338614328,1338614058) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338614058 begin to download photo : 1338614585 begin to download photo : 1338614992 begin to download photo : 1338615003 begin to download photo : 1338615014 download finish for photo 1338614992 begin to download photo : 1338614999 download finish for photo 1338615003 begin to download photo : 1338615005 download finish for photo 1338614585 begin to download photo : 1338614960 download finish for photo 1338614058 begin to download photo : 1338614328 download finish for photo 1338615014 download finish for photo 1338614999 download finish for photo 1338614960 download finish for photo 1338615005 download finish for photo 1338614328 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 : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P20679803_20-02-2025_15_56_30.pdf 20679834 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=20679834 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338613910: '1740063014_1986710_1338613702_e22b1fa503d88e4002609e7e369b0dbd_rle_crop_3680657803_0.png', 1338613987: '1740063113_1988184_1338613745_1bb14c4f8c880b0b38e250cf2c5b1311_rle_crop_3680660173_0.png', 1338613988: '1740063113_1988184_1338613743_c0d244c76c1e5ed1d2a55c6571326dd4_rle_crop_3680660205_0.png', 1338614002: '1740063133_1988498_1338613702_e22b1fa503d88e4002609e7e369b0dbd_rle_crop_3680657803_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/4a16cd0e9e8c3f9140175005b1490c92_27216911.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/980acdfc35163c462ad11f5837663b77_31634874.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/51edcccc8680278c83e23fed8dc7305e_59427249.png change filename to text .imagette206798341740063390/ imagette206798341740063390/1740063113_1988184_1338613745_1bb14c4f8c880b0b38e250cf2c5b1311_rle_crop_3680660173_0.png.png imagette206798341740063390/1740063014_1986710_1338613702_e22b1fa503d88e4002609e7e369b0dbd_rle_crop_3680657803_0.png.png imagette206798341740063390/1740063133_1988498_1338613702_e22b1fa503d88e4002609e7e369b0dbd_rle_crop_3680657803_0.png.png imagette206798341740063390/1740063113_1988184_1338613743_c0d244c76c1e5ed1d2a55c6571326dd4_rle_crop_3680660205_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/4a16cd0e9e8c3f9140175005b1490c92_27919141.png imagette206798341740063390 20679835 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=20679835 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338613904: '1740063014_1986710_1338613715_35d6662fe6c917b97e9affd4bda297d4_rle_crop_3680657769_0.png', 1338613905: '1740063014_1986710_1338613713_ecfdde1e21cc95b584365b34ea3072c0_rle_crop_3680657785_0.png', 1338613906: '1740063014_1986710_1338613702_e22b1fa503d88e4002609e7e369b0dbd_rle_crop_3680657799_0.png', 1338613994: '1740063133_1988498_1338613715_35d6662fe6c917b97e9affd4bda297d4_rle_crop_3680657769_0.png', 1338613995: '1740063133_1988498_1338613713_ecfdde1e21cc95b584365b34ea3072c0_rle_crop_3680657785_0.png', 1338613996: '1740063133_1988498_1338613702_e22b1fa503d88e4002609e7e369b0dbd_rle_crop_3680657799_0.png', 1338615011: '1740063273_1994429_1338613907_db6438aa6d6ba5010907ad844a1e81cb_rle_crop_3680660851_0.png', 1338615012: '1740063273_1994429_1338613884_63ab096c692c2f56fcff38a4ddaab57f_rle_crop_3680661091_0.png', 1338615013: '1740063273_1994429_1338613884_63ab096c692c2f56fcff38a4ddaab57f_rle_crop_3680661090_0.png', 1338615122: '1740063294_1994629_1338613858_4ed225a9e1a419a0fcd15b5ff5d16701_rle_crop_3680661517_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/12019e9d7c76cf589d8b5ff25cca36c6_90186954.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/40bac91fc1b1f1587b66813dbd635ace_2950320.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/cec700b583a3c4705d29377ad6a31738_21607398.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/12019e9d7c76cf589d8b5ff25cca36c6_72302202.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/40bac91fc1b1f1587b66813dbd635ace_67238797.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/cec700b583a3c4705d29377ad6a31738_4019610.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/ff0c4a7f429f326f16d69c7083479847_87617106.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/88afc54ffe562b5e0471f20191a07074_93207876.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/4e79cb42e553f3c712bab36fcca90250_32837590.png change filename to text .imagette206798351740063390/ imagette206798351740063390/1740063133_1988498_1338613713_ecfdde1e21cc95b584365b34ea3072c0_rle_crop_3680657785_0.png.png imagette206798351740063390/1740063133_1988498_1338613715_35d6662fe6c917b97e9affd4bda297d4_rle_crop_3680657769_0.png.png imagette206798351740063390/1740063273_1994429_1338613884_63ab096c692c2f56fcff38a4ddaab57f_rle_crop_3680661090_0.png.png imagette206798351740063390/1740063273_1994429_1338613884_63ab096c692c2f56fcff38a4ddaab57f_rle_crop_3680661091_0.png.png imagette206798351740063390/1740063294_1994629_1338613858_4ed225a9e1a419a0fcd15b5ff5d16701_rle_crop_3680661517_0.png.png imagette206798351740063390/1740063133_1988498_1338613702_e22b1fa503d88e4002609e7e369b0dbd_rle_crop_3680657799_0.png.png imagette206798351740063390/1740063014_1986710_1338613713_ecfdde1e21cc95b584365b34ea3072c0_rle_crop_3680657785_0.png.png imagette206798351740063390/1740063273_1994429_1338613907_db6438aa6d6ba5010907ad844a1e81cb_rle_crop_3680660851_0.png.png imagette206798351740063390/1740063014_1986710_1338613702_e22b1fa503d88e4002609e7e369b0dbd_rle_crop_3680657799_0.png.png imagette206798351740063390/1740063014_1986710_1338613715_35d6662fe6c917b97e9affd4bda297d4_rle_crop_3680657769_0.png.png imagette206798361740063391/ imagette206798381740063391/ imagette206798391740063391/ imagette206798421740063391/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/cec429b92f42aafe58fd39efbd8ebeb9_40835052.png imagette206798351740063390 20679836 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=20679836 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206798361740063391 20679838 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=20679838 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206798381740063391 20679839 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=20679839 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206798391740063391 20679842 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=20679842 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206798421740063391 20679845 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=20679845 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338613908: '1740063014_1986710_1338613717_88fccb62cf1a68a3a85cb2931498b8e3_rle_crop_3680657698_0.png', 1338613909: '1740063014_1986710_1338613713_ecfdde1e21cc95b584365b34ea3072c0_rle_crop_3680657781_0.png', 1338614000: '1740063133_1988498_1338613717_88fccb62cf1a68a3a85cb2931498b8e3_rle_crop_3680657698_0.png', 1338614001: '1740063133_1988498_1338613713_ecfdde1e21cc95b584365b34ea3072c0_rle_crop_3680657781_0.png', 1338615016: '1740063273_1994429_1338613900_aef2ee393cf85a7d96384e2dd8e96c47_rle_crop_3680660866_0.png', 1338615017: '1740063273_1994429_1338613894_b7bea7af53cfe0e97827a394c67dae8c_rle_crop_3680661076_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/2eee2f4f8236df1ff59a05441ecea334_75136606.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/9dd7522df02048e42ea4d4a4c3f1f976_72314957.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/2eee2f4f8236df1ff59a05441ecea334_59001756.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/9dd7522df02048e42ea4d4a4c3f1f976_39321032.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/239daaf2d38d1704966f77d40a11a5ac_76124953.png change filename to text .imagette206798451740063391/ imagette206798451740063391/1740063014_1986710_1338613717_88fccb62cf1a68a3a85cb2931498b8e3_rle_crop_3680657698_0.png.png imagette206798451740063391/1740063014_1986710_1338613713_ecfdde1e21cc95b584365b34ea3072c0_rle_crop_3680657781_0.png.png imagette206798451740063391/1740063273_1994429_1338613900_aef2ee393cf85a7d96384e2dd8e96c47_rle_crop_3680660866_0.png.png imagette206798451740063391/1740063273_1994429_1338613894_b7bea7af53cfe0e97827a394c67dae8c_rle_crop_3680661076_0.png.png imagette206798451740063391/1740063133_1988498_1338613713_ecfdde1e21cc95b584365b34ea3072c0_rle_crop_3680657781_0.png.png imagette206798451740063391/1740063133_1988498_1338613717_88fccb62cf1a68a3a85cb2931498b8e3_rle_crop_3680657698_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/3c7e9a3ba56315a3a2a0c3f5d5b8dde5_81214272.png imagette206798451740063391 20679837 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=20679837 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338613943: '1740063094_1987876_1338613815_b5ae5333756896c150a957517832754c_rle_crop_3680659264_0.png', 1338613982: '1740063113_1988184_1338613747_4e9f068352d2fd36e7a388e9cace7fd5_rle_crop_3680660088_0.png', 1338615006: '1740063273_1994429_1338613907_db6438aa6d6ba5010907ad844a1e81cb_rle_crop_3680660854_0.png', 1338615007: '1740063273_1994429_1338613894_b7bea7af53cfe0e97827a394c67dae8c_rle_crop_3680661078_0.png', 1338615008: '1740063273_1994429_1338613881_e33e37d512bee02d5ba429ff782cd800_rle_crop_3680661112_0.png', 1338615009: '1740063273_1994429_1338613881_e33e37d512bee02d5ba429ff782cd800_rle_crop_3680661110_0.png', 1338615106: '1740063294_1994629_1338613912_faf6dd5937d36d5e03cf056b5052ddfd_rle_crop_3680661334_0.png', 1338615107: '1740063294_1994629_1338613912_faf6dd5937d36d5e03cf056b5052ddfd_rle_crop_3680661340_0.png', 1338615108: '1740063294_1994629_1338613912_faf6dd5937d36d5e03cf056b5052ddfd_rle_crop_3680661333_0.png', 1338615109: '1740063294_1994629_1338613861_9e404f8ce4459a89003c1fd4904a9b75_rle_crop_3680661505_0.png', 1338615110: '1740063294_1994629_1338613861_9e404f8ce4459a89003c1fd4904a9b75_rle_crop_3680661507_0.png', 1338615111: '1740063294_1994629_1338613855_e49dc02cdb03b48bf2f99d14ecc2791d_rle_crop_3680661535_0.png', 1338615112: '1740063294_1994629_1338613853_0551679932aa6624c740ce12ea3588c8_rle_crop_3680661556_0.png', 1338615113: '1740063294_1994629_1338613851_db430e6cd9c44029838439b11d313167_rle_crop_3680661640_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/74a86befd179843b19bfd980b3f1d3f3_72234439.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/a90726f3b86949c772fc1e92a32da0c6_76787451.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/579c771842039fd7ae6e197d37d19461_58436282.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/f2ae920fbdb3de99135b1b462b946c1a_61630632.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/76cb700832740d35f733a01889c4c996_48610002.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/a75720d270ccd72f688a388e89e1c860_1605243.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/856d11101de6062d0c4e7725f7707455_53961803.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/e6c3cac444c015ba4f69d7985dfc8d6a_80449471.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/7eac9ed2ab9d79d837f34ef2fa64e60e_37320916.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/eb35c03bc1cc230274e3f5dfee72dae3_45918685.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/178589fd9175de51c25a078db0e71758_71384473.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/a3d30035f1058cdf7be4bcec6b4fd55e_4946400.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/dcfe54e9fe1b10f0f76f7169cb869fd0_75396625.png change filename to text .imagette206798371740063391/ imagette206798371740063391/1740063294_1994629_1338613861_9e404f8ce4459a89003c1fd4904a9b75_rle_crop_3680661505_0.png.png imagette206798371740063391/1740063113_1988184_1338613747_4e9f068352d2fd36e7a388e9cace7fd5_rle_crop_3680660088_0.png.png imagette206798371740063391/1740063294_1994629_1338613855_e49dc02cdb03b48bf2f99d14ecc2791d_rle_crop_3680661535_0.png.png imagette206798371740063391/1740063273_1994429_1338613881_e33e37d512bee02d5ba429ff782cd800_rle_crop_3680661112_0.png.png imagette206798371740063391/1740063094_1987876_1338613815_b5ae5333756896c150a957517832754c_rle_crop_3680659264_0.png.png imagette206798371740063391/1740063294_1994629_1338613912_faf6dd5937d36d5e03cf056b5052ddfd_rle_crop_3680661340_0.png.png imagette206798371740063391/1740063294_1994629_1338613853_0551679932aa6624c740ce12ea3588c8_rle_crop_3680661556_0.png.png imagette206798371740063391/1740063273_1994429_1338613894_b7bea7af53cfe0e97827a394c67dae8c_rle_crop_3680661078_0.png.png imagette206798371740063391/1740063294_1994629_1338613851_db430e6cd9c44029838439b11d313167_rle_crop_3680661640_0.png.png imagette206798371740063391/1740063294_1994629_1338613912_faf6dd5937d36d5e03cf056b5052ddfd_rle_crop_3680661333_0.png.png imagette206798371740063391/1740063273_1994429_1338613881_e33e37d512bee02d5ba429ff782cd800_rle_crop_3680661110_0.png.png imagette206798371740063391/1740063294_1994629_1338613861_9e404f8ce4459a89003c1fd4904a9b75_rle_crop_3680661507_0.png.png imagette206798371740063391/1740063273_1994429_1338613907_db6438aa6d6ba5010907ad844a1e81cb_rle_crop_3680660854_0.png.png imagette206798371740063391/1740063294_1994629_1338613912_faf6dd5937d36d5e03cf056b5052ddfd_rle_crop_3680661334_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/4d043b4fa7befcc722df45ee6120b4c3_49498194.png imagette206798371740063391 20679840 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=20679840 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338613984: '1740063113_1988184_1338613817_9279504c4ca50107674622e97cb8769c_rle_crop_3680659976_0.png', 1338613985: '1740063113_1988184_1338613743_c0d244c76c1e5ed1d2a55c6571326dd4_rle_crop_3680660213_0.png', 1338613997: '1740063133_1988498_1338613769_0af6a0625a2b0cc1ee30aae81b13122c_rle_crop_3680660106_0.png', 1338615131: '1740063294_1994629_1338613855_e49dc02cdb03b48bf2f99d14ecc2791d_rle_crop_3680661536_0.png', 1338615133: '1740063294_1994629_1338613853_0551679932aa6624c740ce12ea3588c8_rle_crop_3680661559_0.png', 1338615135: '1740063294_1994629_1338613851_db430e6cd9c44029838439b11d313167_rle_crop_3680661628_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/41990099f9afc5ed6778c3073de0f28c_70776041.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/4f18658cd8a86ad83d90bc69496f46f4_80872996.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/d3e4a0ecc2557fd0dca4ba0548d486cc_24177247.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/a3535081453186aa735505c7cbd26bfa_50515906.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/8cb05ae1f76fbe7b342ce178bdd070b2_20324064.png change filename to text .imagette206798401740063392/ imagette206798401740063392/1740063294_1994629_1338613855_e49dc02cdb03b48bf2f99d14ecc2791d_rle_crop_3680661536_0.png.png imagette206798401740063392/1740063294_1994629_1338613853_0551679932aa6624c740ce12ea3588c8_rle_crop_3680661559_0.png.png imagette206798401740063392/1740063113_1988184_1338613817_9279504c4ca50107674622e97cb8769c_rle_crop_3680659976_0.png.png imagette206798401740063392/1740063294_1994629_1338613851_db430e6cd9c44029838439b11d313167_rle_crop_3680661628_0.png.png imagette206798401740063392/1740063133_1988498_1338613769_0af6a0625a2b0cc1ee30aae81b13122c_rle_crop_3680660106_0.png.png imagette206798401740063392/1740063113_1988184_1338613743_c0d244c76c1e5ed1d2a55c6571326dd4_rle_crop_3680660213_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/cb9498eeef5a69968729d7643b6d3e6d_12561244.png imagette206798401740063392 20679841 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=20679841 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338615018: '1740063273_1994429_1338613881_e33e37d512bee02d5ba429ff782cd800_rle_crop_3680661108_0.png'} change filename to text .imagette206798411740063392/ imagette206798411740063392/1740063273_1994429_1338613881_e33e37d512bee02d5ba429ff782cd800_rle_crop_3680661108_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/4938275947c60c0cfc59452508283c49_41612522.png imagette206798411740063392 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20679803 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20679846,20679847,20679848,20679849,20679850,20679851,20679852,20679853,20679854,20679855,20679856,20679857?tags=plastique,autre_refus,flou,Teint_Dans_La_Masse,mal_croppe,kraft,Carton_gris,Carton_brun,metal,environnement,papier,cartonnette your option no_mail is active, we will not send the real mail to your client args[1338615014] : ('0.034766582230606',) no score found for photo 1338615014 We are sending mail with results at report@fotonower.com args[1338615005] : ('0.034766582230606',) no score found for photo 1338615005 We are sending mail with results at report@fotonower.com args[1338615003] : ('0.034766582230606',) no score found for photo 1338615003 We are sending mail with results at report@fotonower.com args[1338614999] : ('0.034766582230606',) no score found for photo 1338614999 We are sending mail with results at report@fotonower.com args[1338614992] : ('0.034766582230606',) no score found for photo 1338614992 We are sending mail with results at report@fotonower.com args[1338614960] : ('0.034766582230606',) no score found for photo 1338614960 We are sending mail with results at report@fotonower.com args[1338614585] : ('0.034766582230606',) no score found for photo 1338614585 We are sending mail with results at report@fotonower.com args[1338614328] : ('0.034766582230606',) no score found for photo 1338614328 We are sending mail with results at report@fotonower.com args[1338614058] : ('0.034766582230606',) no score found for photo 1338614058 We are sending mail with results at report@fotonower.com refus_total : 0.034766582230606 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=20679803 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_P20679803_20-02-2025_15_56_30.pdf results_Auto_P20679803_20-02-2025_15_56_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679803_20-02-2025_15_56_30.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20679803','results_Auto_P20679803_20-02-2025_15_56_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679803_20-02-2025_15_56_30.pdf','pdf','','0.21','0.034766582230606') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20679803]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338615014, 1338615005, 1338615003, 1338614999, 1338614992, 1338614960, 1338614585, 1338614328, 1338614058] map_info['map_portfolio_photo'] : {20679803: [1338615014, 1338615005, 1338615003, 1338614999, 1338614992, 1338614960, 1338614585, 1338614328, 1338614058, 1338613973, 1338613971, 1338613969, 1338613968, 1338613966, 1338613964, 1338613942, 1338613939, 1338613935, 1338613930, 1338613912, 1338613907, 1338613900, 1338613894, 1338613884, 1338613881, 1338613863, 1338613861, 1338613858, 1338613855, 1338613853, 1338613851, 1338613817, 1338613815, 1338613813, 1338613802, 1338613769, 1338613766, 1338613757, 1338613747, 1338613745, 1338613743, 1338613724, 1338613721, 1338613717, 1338613715, 1338613713, 1338613702, 1338613663, 1338613659]} final : False mtd_id 4302 list_pids : [1338615014, 1338615005, 1338615003, 1338614999, 1338614992, 1338614960, 1338614585, 1338614328, 1338614058] 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, '2599950') ('4302', '20679803', '1338615014', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338615005', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338615003', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614999', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614992', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614960', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614585', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614328', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614058', None, None, None, None, None, '2599950') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '20679803', '1338615014', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338615005', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338615003', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338614999', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338614992', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338614960', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338614585', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338614328', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338614058', None, None, None, None, None, '2599950')] time used for this insertion : 0.017508745193481445 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.5896809101104736 time spend to save output : 0.017934799194335938 total time spend for step 4 : 3.6076157093048096 step5:split_time_score Thu Feb 20 15:56:33 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 : ['20679803'] 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 : [('20679803',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20679803) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338615014: {'path': 'temp/1740063390_2314802_1338615014_67f4a657b3b90d9be849c3b16ab215a2.jpg', 'extension': 'jpg'}, 1338614992: {'path': 'temp/1740063390_2314802_1338614992_5964a2f430849cf617828f48c273621e.jpg', 'extension': 'jpg'}, 1338614999: {'path': 'temp/1740063390_2314802_1338614999_2acb39a74deb18f202e351e9d92a236e.jpg', 'extension': 'jpg'}, 1338614585: {'path': 'temp/1740063390_2314802_1338614585_61ebda88c8e39213019356da9e630da0.jpg', 'extension': 'jpg'}, 1338614960: {'path': 'temp/1740063390_2314802_1338614960_37c02f96ef84825d5d2539ac321ff4b3.jpg', 'extension': 'jpg'}, 1338615003: {'path': 'temp/1740063390_2314802_1338615003_3412f91382ff1231f249ae95f36bdae3.jpg', 'extension': 'jpg'}, 1338615005: {'path': 'temp/1740063390_2314802_1338615005_714b4f350edaeafbf2e47aaf4d78bbb7.jpg', 'extension': 'jpg'}, 1338614058: {'path': 'temp/1740063390_2314802_1338614058_9d6fcff07636d4130446128e51efc38a.jpg', 'extension': 'jpg'}, 1338614328: {'path': 'temp/1740063390_2314802_1338614328_a29cae46b9013517890f60b027c5149c.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 = 20679803; (('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 = 20679803 group by h (('15', 49),) 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=20679803 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 (20679803) 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 (20679803) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 20022025 20679803 Nombre de photos uploadées : 49 / 23040 (0%) 20022025 20679803 Nombre de photos taguées (types de déchets): 0 / 49 (0%) 20022025 20679803 Nombre de photos taguées (volume) : 0 / 49 (0%) [{'photo_id': 1338613659, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/160aa4a46d6a5f75b426773e2f682036.jpg', 'username': None, 'uploaded_at': 1740062777, 'text': 'image_20022025_15_45_03_009135m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1338613663, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/5f4dae34ac47b0c7e03b49ad0bdb4beb.jpg', 'username': None, 'uploaded_at': 1740062791, 'text': 'image_20022025_15_45_14_010139m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1338613724, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/40a314d824dcfba6c99d101e5fdfc395.jpg', 'username': None, 'uploaded_at': 1740062841, 'text': 'image_20022025_15_45_24_010143m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338613721, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/74855ea568086f7e49246e23e6c37630.jpg', 'username': None, 'uploaded_at': 1740062841, 'text': 'image_20022025_15_46_04_010139m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 4.5299530029296875e-06 elapsed_time : order_list_meta_photo_and_scores 1.5735626220703125e-05 ????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003830432891845703 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20679803, '2025-02-20' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1613763,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.027126073837280273 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= 1613763 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1613763, 'dashboard_run_id': 1621405, 'mtr_portfolio_id': 20677981, 'dashboard_result_id': 8976403, '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_P20677981_20-02-2025_15_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677997, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1621405, 'mtr_portfolio_id': 20678504, 'dashboard_result_id': 8976404, '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_P20678504_20-02-2025_15_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20678525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20678526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20678527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20678528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20678529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20678530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20678531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20678532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20678533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20678534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20678535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20678536, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1621405, 'mtr_portfolio_id': 20679292, 'dashboard_result_id': 8976405, '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_P20679292_20-02-2025_15_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679331, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1621405, 'mtr_portfolio_id': 20679803, 'dashboard_result_id': 8976406, '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_P20679803_20-02-2025_15_54_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679845, '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 = 20677981 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': 2599788, 'mtr_portfolio_id': 20677981, 'created_at': datetime.datetime(2025, 2, 20, 15, 18, 59), 'result': '0.08309749407359794', 'result_long': None, 'result_double': None}] Qualite : 0.08309749407359794 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20677981 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677981_20-02-2025_15_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20677981 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_P20677981_20-02-2025_15_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677997, 'pht': 3726}}" where mtr_portfolio_id = 20677981 and dashboard_run_id = 1621405 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`=20677981 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8976403, 0.08309749407359794, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677981_20-02-2025_15_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677997, '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 = 20678504 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': 2599850, 'mtr_portfolio_id': 20678504, 'created_at': datetime.datetime(2025, 2, 20, 15, 33), 'result': '0.042563049600808166', 'result_long': None, 'result_double': None}] Qualite : 0.042563049600808166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20678504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20678504_20-02-2025_15_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20678504 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_P20678504_20-02-2025_15_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20678525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20678526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20678527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20678528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20678529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20678530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20678531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20678532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20678533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20678534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20678535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20678536, 'pht': 3726}}" where mtr_portfolio_id = 20678504 and dashboard_run_id = 1621405 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`=20678504 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8976404, 0.042563049600808166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20678504_20-02-2025_15_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20678525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20678526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20678527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20678528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20678529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20678530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20678531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20678532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20678533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20678534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20678535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20678536, '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 = 20679292 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': 2599910, 'mtr_portfolio_id': 20679292, 'created_at': datetime.datetime(2025, 2, 20, 15, 48, 59), 'result': '0.04291927462634941', 'result_long': None, 'result_double': None}] Qualite : 0.04291927462634941 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20679292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679292_20-02-2025_15_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20679292 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_P20679292_20-02-2025_15_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679331, 'pht': 3726}}" where mtr_portfolio_id = 20679292 and dashboard_run_id = 1621405 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`=20679292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8976405, 0.04291927462634941, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679292_20-02-2025_15_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679331, '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 = 20679803 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': 2599950, 'mtr_portfolio_id': 20679803, 'created_at': datetime.datetime(2025, 2, 20, 15, 56, 29), 'result': '0.034766582230606', 'result_long': None, 'result_double': None}] Qualite : 0.034766582230606 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20679803 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679803_20-02-2025_15_56_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20679803 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_P20679803_20-02-2025_15_56_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679845, 'pht': 3726}}" where mtr_portfolio_id = 20679803 and dashboard_run_id = 1621405 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`=20679803 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8976406, 0.034766582230606, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679803_20-02-2025_15_56_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679845, '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 (20677981,20678504,20679292,20679803) result : ((1338604826,), (1338604830,), (1338604835,), (1338605049,), (1338605052,), (1338605055,), (1338605057,), (1338605061,), (1338605064,), (1338605089,), (1338605092,), (1338605096,), (1338605102,), (1338605110,), (1338605117,), (1338605133,), (1338605136,), (1338605138,), (1338605165,), (1338605168,), (1338605171,), (1338605180,), (1338605187,), (1338605192,), (1338605209,), (1338605211,), (1338605213,), (1338605215,), (1338605218,), (1338605239,), (1338605245,), (1338605248,), (1338605252,), (1338606422,), (1338606424,), (1338606427,), (1338606429,), (1338606432,), (1338606650,), (1338606867,), (1338607088,), (1338607095,), (1338607098,), (1338607275,), (1338607279,), (1338607282,), (1338607290,), (1338607295,), (1338607301,), (1338607335,), (1338607340,), (1338607343,), (1338607347,), (1338607418,), (1338607421,), (1338607424,), (1338607435,), (1338607443,), (1338607448,), (1338607522,), (1338607527,), (1338607532,), (1338607536,), (1338607611,), (1338607599,), (1338607604,), (1338607607,), (1338607610,), (1338607634,), (1338607638,), (1338607643,), (1338607646,), (1338608175,), (1338608244,), (1338608249,), (1338608252,), (1338608327,), (1338608339,), (1338608340,), (1338608342,), (1338608344,), (1338608426,), (1338608435,), (1338608444,), (1338608447,), (1338608482,), (1338608509,), (1338608603,), (1338608831,), (1338609102,), (1338609323,), (1338609327,), (1338609797,), (1338609800,), (1338609804,), (1338609808,), (1338609812,), (1338609816,), (1338610017,), (1338610098,), (1338610154,), (1338610218,), (1338610411,), (1338610413,), (1338610422,), (1338610477,), (1338610524,), (1338610591,), (1338610698,), (1338610723,), (1338610739,), (1338610745,), (1338610763,), (1338610807,), (1338610905,), (1338610910,), (1338610918,), (1338610921,), (1338610959,), (1338610971,), (1338611047,), (1338611128,), (1338611259,), (1338611432,), (1338611427,), (1338611429,), (1338611506,), (1338611514,), (1338611527,), (1338611529,), (1338611530,), (1338611533,), (1338611574,), (1338611577,), (1338611580,), (1338611584,), (1338611689,), (1338611691,), (1338611694,), (1338611697,), (1338611703,), (1338611710,), (1338611740,), (1338611742,), (1338611745,), (1338611749,), (1338611753,), (1338611756,), (1338612014,), (1338612239,), (1338612335,), (1338612489,), (1338612528,), (1338612602,), (1338612687,), (1338612741,), (1338612745,), (1338612750,), (1338612973,), (1338613049,), (1338613118,), (1338613123,), (1338613203,), (1338613228,), (1338613348,), (1338613370,), (1338613385,), (1338613418,), (1338613460,), (1338613464,), (1338613467,), (1338613471,), (1338613475,), (1338613478,), (1338613492,), (1338613494,), (1338613499,), (1338613502,), (1338613524,), (1338613533,), (1338613535,), (1338613538,), (1338613541,), (1338613545,), (1338613569,), (1338613571,), (1338613573,), (1338613577,), (1338613598,), (1338613602,), (1338613605,), (1338613608,), (1338613611,), (1338613632,), (1338613634,), (1338613636,), (1338613639,), (1338613640,), (1338613666,), (1338613659,), (1338613663,), (1338613702,), (1338613713,), (1338613715,), (1338613717,), (1338613721,), (1338613724,), (1338613743,), (1338613745,), (1338613747,), (1338613757,), (1338613766,), (1338613769,), (1338613802,), (1338613813,), (1338613815,), (1338613817,), (1338613851,), (1338613853,), (1338613855,), (1338613858,), (1338613861,), (1338613863,), (1338613881,), (1338613884,), (1338613894,), (1338613900,), (1338613907,), (1338613912,), (1338613930,), (1338613935,), (1338613939,), (1338613942,), (1338613964,), (1338613966,), (1338613968,), (1338613969,), (1338613971,), (1338613973,), (1338614058,), (1338614328,), (1338614585,), (1338614960,), (1338614992,), (1338614999,), (1338615003,), (1338615005,), (1338615014,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'20022025': {'nb_upload': 49, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20679803]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338615014, 1338615005, 1338615003, 1338614999, 1338614992, 1338614960, 1338614585, 1338614328, 1338614058] map_info['map_portfolio_photo'] : {20679803: [1338615014, 1338615005, 1338615003, 1338614999, 1338614992, 1338614960, 1338614585, 1338614328, 1338614058, 1338613973, 1338613971, 1338613969, 1338613968, 1338613966, 1338613964, 1338613942, 1338613939, 1338613935, 1338613930, 1338613912, 1338613907, 1338613900, 1338613894, 1338613884, 1338613881, 1338613863, 1338613861, 1338613858, 1338613855, 1338613853, 1338613851, 1338613817, 1338613815, 1338613813, 1338613802, 1338613769, 1338613766, 1338613757, 1338613747, 1338613745, 1338613743, 1338613724, 1338613721, 1338613717, 1338613715, 1338613713, 1338613702, 1338613663, 1338613659]} final : True mtd_id 4302 list_pids : [1338615014, 1338615005, 1338615003, 1338614999, 1338614992, 1338614960, 1338614585, 1338614328, 1338614058] Looping around the photos to save general results len do output : 1 /20679803Didn'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, '2599950') ('4302', '20679803', '1338615014', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338615005', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338615003', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614999', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614992', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614960', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614585', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614328', None, None, None, None, None, '2599950') ('4302', None, None, None, None, None, None, None, '2599950') ('4302', '20679803', '1338614058', None, None, None, None, None, '2599950') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '20679803', 'None', None, None, None, None, '2599950'), ('4302', '20679803', '1338615014', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338615005', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338615003', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338614999', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338614992', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338614960', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338614585', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338614328', None, None, None, None, None, '2599950'), ('4302', '20679803', '1338614058', None, None, None, None, None, '2599950')] time used for this insertion : 0.01450657844543457 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4256417751312256 time spend to save output : 0.014713525772094727 total time spend for step 5 : 0.4403553009033203 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 (2599950) 2.41user 2.04system 0:09.70elapsed 45%CPU (0avgtext+0avgdata 159900maxresident)k 720inputs+11240outputs (27major+77462minor)pagefaults 0swaps