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 : 2939223 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 (2629706) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2629706) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20980858 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2629706'] with mtr_portfolio_ids : ['20980858'] and first list_photo_ids : [] new path : /proc/2939223/ Name: python3 Umask: 0002 State: R (running) Tgid: 2939223 Ngid: 0 Pid: 2939223 PPid: 2939222 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2939223 NSpid: 2939223 NSpgid: 2934965 NSsid: 2934965 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97728 kB VmRSS: 97728 kB RssAnon: 59764 kB RssFile: 37964 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 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: 47 nonvoluntary_ctxt_switches: 100 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2939223', 'Ngid': '0', 'Pid': '2939223', 'PPid': '2939222', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2939223', 'NSpid': '2939223', 'NSpgid': '2934965', 'NSsid': '2934965', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97728 kB', 'VmRSS': '97728 kB', 'RssAnon': '59764 kB', 'RssFile': '37964 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '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': '47', 'nonvoluntary_ctxt_switches': '100'} ('datou_batch_current', '2939223', '1106844', '0', '1106844', '865592', '97728', b'', 'marlene', '2629706') 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 (20980858) 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 (2629706 ) ) 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 (20980858) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340638168, 'portfolio_id': 20980858}, {'photo_id': 1340638163, 'portfolio_id': 20980858}, {'photo_id': 1340638161, 'portfolio_id': 20980858}, {'photo_id': 1340638156, 'portfolio_id': 20980858}, {'photo_id': 1340638052, 'portfolio_id': 20980858}, {'photo_id': 1340637901, 'portfolio_id': 20980858}, {'photo_id': 1340637892, 'portfolio_id': 20980858}, {'photo_id': 1340637881, 'portfolio_id': 20980858}, {'photo_id': 1340637878, 'portfolio_id': 20980858}, {'photo_id': 1340637452, 'portfolio_id': 20980858}, {'photo_id': 1340637449, 'portfolio_id': 20980858}, {'photo_id': 1340637444, 'portfolio_id': 20980858}, {'photo_id': 1340637439, 'portfolio_id': 20980858}, {'photo_id': 1340637418, 'portfolio_id': 20980858}, {'photo_id': 1340637413, 'portfolio_id': 20980858}, {'photo_id': 1340637408, 'portfolio_id': 20980858}, {'photo_id': 1340637407, 'portfolio_id': 20980858}, {'photo_id': 1340637404, 'portfolio_id': 20980858}, {'photo_id': 1340637400, 'portfolio_id': 20980858}, {'photo_id': 1340637375, 'portfolio_id': 20980858}, {'photo_id': 1340637372, 'portfolio_id': 20980858}, {'photo_id': 1340637368, 'portfolio_id': 20980858}, {'photo_id': 1340637366, 'portfolio_id': 20980858}, {'photo_id': 1340637360, 'portfolio_id': 20980858}, {'photo_id': 1340637355, 'portfolio_id': 20980858}, {'photo_id': 1340637311, 'portfolio_id': 20980858}, {'photo_id': 1340637306, 'portfolio_id': 20980858}, {'photo_id': 1340637303, 'portfolio_id': 20980858}, {'photo_id': 1340637290, 'portfolio_id': 20980858}, {'photo_id': 1340637280, 'portfolio_id': 20980858}] map_portfolio_id_photo_id: {20980858: [1340638168, 1340638163, 1340638161, 1340638156, 1340638052, 1340637901, 1340637892, 1340637881, 1340637878, 1340637452, 1340637449, 1340637444, 1340637439, 1340637418, 1340637413, 1340637408, 1340637407, 1340637404, 1340637400, 1340637375, 1340637372, 1340637368, 1340637366, 1340637360, 1340637355, 1340637311, 1340637306, 1340637303, 1340637290, 1340637280]} ##### 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.014696836471557617 #### 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 Mon Mar 3 15:38:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20980858) 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 : 20980858 get user id for portfolio 20980858 get sub ptf for main ptf 20980858, type 3726 and hashtags ['autre_refus', 'Carton_gris', 'cartonnette', 'Carton_brun', 'metal', 'plastique', 'papier', 'environnement', 'kraft', 'mal_croppe', 'flou', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20980858 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','cartonnette','Carton_brun','metal','plastique','papier','environnement','kraft','mal_croppe','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20980858 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','cartonnette','Carton_brun','metal','plastique','papier','environnement','kraft','mal_croppe','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 20980858, 'sub_port_id': 20980861, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601078, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 28)}, 'metal': {'main_port_id': 20980858, 'sub_port_id': 20980862, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601079, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 28)}, 'papier': {'main_port_id': 20980858, 'sub_port_id': 20980863, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601080, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 20980858, 'sub_port_id': 20980864, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601081, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 28)}, 'autre_refus': {'main_port_id': 20980858, 'sub_port_id': 20980865, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601082, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 28)}, 'Carton_brun': {'main_port_id': 20980858, 'sub_port_id': 20980866, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601083, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 28)}, 'mal_croppe': {'main_port_id': 20980858, 'sub_port_id': 20980867, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601084, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 28)}, 'plastique': {'main_port_id': 20980858, 'sub_port_id': 20980868, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601085, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 28)}, 'environnement': {'main_port_id': 20980858, 'sub_port_id': 20980869, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601086, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 28)}, 'Carton_gris': {'main_port_id': 20980858, 'sub_port_id': 20980870, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601087, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 28)}, 'kraft': {'main_port_id': 20980858, 'sub_port_id': 20980871, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601088, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 28)}, 'flou': {'main_port_id': 20980858, 'sub_port_id': 20980872, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601089, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20980861 , 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=20980858 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 (20980861) result : ((1340637889,), (1340637890,), (1340637891,), (1340638467,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20980858) result : ((1340637280,), (1340637290,), (1340637303,), (1340637306,), (1340637311,), (1340637355,), (1340637360,), (1340637366,), (1340637368,), (1340637372,), (1340637375,), (1340637400,), (1340637404,), (1340637407,), (1340637408,), (1340637413,), (1340637418,), (1340637439,), (1340637444,), (1340637449,), (1340637452,), (1340637878,), (1340637881,), (1340637892,), (1340637901,), (1340638052,), (1340638156,), (1340638161,), (1340638163,), (1340638168,)) 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 (1340637400) 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 20980862 , 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=20980858 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 (20980862) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20980858) result : ((1340637280,), (1340637290,), (1340637303,), (1340637306,), (1340637311,), (1340637355,), (1340637360,), (1340637366,), (1340637368,), (1340637372,), (1340637375,), (1340637400,), (1340637404,), (1340637407,), (1340637408,), (1340637413,), (1340637418,), (1340637439,), (1340637444,), (1340637449,), (1340637452,), (1340637878,), (1340637881,), (1340637892,), (1340637901,), (1340638052,), (1340638156,), (1340638161,), (1340638163,), (1340638168,)) 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 (1340637400) 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 20980863 , 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=20980858 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 (20980863) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20980858) result : ((1340637280,), (1340637290,), (1340637303,), (1340637306,), (1340637311,), (1340637355,), (1340637360,), (1340637366,), (1340637368,), (1340637372,), (1340637375,), (1340637400,), (1340637404,), (1340637407,), (1340637408,), (1340637413,), (1340637418,), (1340637439,), (1340637444,), (1340637449,), (1340637452,), (1340637878,), (1340637881,), (1340637892,), (1340637901,), (1340638052,), (1340638156,), (1340638161,), (1340638163,), (1340638168,)) 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 (1340637400) 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 20980864 , 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=20980858 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 (20980864) result : ((1340637614,), (1340637616,), (1340637618,), (1340638183,), (1340638184,), (1340638185,), (1340638187,), (1340638188,), (1340638189,), (1340638190,), (1340638191,), (1340638447,), (1340638448,), (1340638449,), (1340638450,), (1340638451,), (1340638452,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20980858) result : ((1340637280,), (1340637290,), (1340637303,), (1340637306,), (1340637311,), (1340637355,), (1340637360,), (1340637366,), (1340637368,), (1340637372,), (1340637375,), (1340637400,), (1340637404,), (1340637407,), (1340637408,), (1340637413,), (1340637418,), (1340637439,), (1340637444,), (1340637449,), (1340637452,), (1340637878,), (1340637881,), (1340637892,), (1340637901,), (1340638052,), (1340638156,), (1340638161,), (1340638163,), (1340638168,)) 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 (1340637400) 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 20980865 , 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=20980858 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 (20980865) result : ((1340637759,), (1340637761,), (1340637763,), (1340637765,), (1340637767,), (1340637882,), (1340637883,), (1340637884,), (1340637885,), (1340637886,), (1340637887,), (1340638193,), (1340638196,), (1340638197,), (1340638454,), (1340638455,), (1340638456,), (1340638457,), (1340638458,), (1340638459,), (1340638460,), (1340638461,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20980858) result : ((1340637280,), (1340637290,), (1340637303,), (1340637306,), (1340637311,), (1340637355,), (1340637360,), (1340637366,), (1340637368,), (1340637372,), (1340637375,), (1340637400,), (1340637404,), (1340637407,), (1340637408,), (1340637413,), (1340637418,), (1340637439,), (1340637444,), (1340637449,), (1340637452,), (1340637878,), (1340637881,), (1340637892,), (1340637901,), (1340638052,), (1340638156,), (1340638161,), (1340638163,), (1340638168,)) 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 (1340637400) 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 20980866 , 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=20980858 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 (20980866) result : ((1340637869,), (1340637870,), (1340637893,), (1340637894,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20980858) result : ((1340637280,), (1340637290,), (1340637303,), (1340637306,), (1340637311,), (1340637355,), (1340637360,), (1340637366,), (1340637368,), (1340637372,), (1340637375,), (1340637400,), (1340637404,), (1340637407,), (1340637408,), (1340637413,), (1340637418,), (1340637439,), (1340637444,), (1340637449,), (1340637452,), (1340637878,), (1340637881,), (1340637892,), (1340637901,), (1340638052,), (1340638156,), (1340638161,), (1340638163,), (1340638168,)) 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 (1340637400) 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 20980867 , 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=20980858 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 (20980867) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20980858) result : ((1340637280,), (1340637290,), (1340637303,), (1340637306,), (1340637311,), (1340637355,), (1340637360,), (1340637366,), (1340637368,), (1340637372,), (1340637375,), (1340637400,), (1340637404,), (1340637407,), (1340637408,), (1340637413,), (1340637418,), (1340637439,), (1340637444,), (1340637449,), (1340637452,), (1340637878,), (1340637881,), (1340637892,), (1340637901,), (1340638052,), (1340638156,), (1340638161,), (1340638163,), (1340638168,)) 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 (1340637400) 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 20980868 , 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=20980858 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 (20980868) result : ((1340637896,), (1340637897,), (1340637898,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20980858) result : ((1340637280,), (1340637290,), (1340637303,), (1340637306,), (1340637311,), (1340637355,), (1340637360,), (1340637366,), (1340637368,), (1340637372,), (1340637375,), (1340637400,), (1340637404,), (1340637407,), (1340637408,), (1340637413,), (1340637418,), (1340637439,), (1340637444,), (1340637449,), (1340637452,), (1340637878,), (1340637881,), (1340637892,), (1340637901,), (1340638052,), (1340638156,), (1340638161,), (1340638163,), (1340638168,)) 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 (1340637400) 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 20980869 , 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=20980858 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 (20980869) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20980858) result : ((1340637280,), (1340637290,), (1340637303,), (1340637306,), (1340637311,), (1340637355,), (1340637360,), (1340637366,), (1340637368,), (1340637372,), (1340637375,), (1340637400,), (1340637404,), (1340637407,), (1340637408,), (1340637413,), (1340637418,), (1340637439,), (1340637444,), (1340637449,), (1340637452,), (1340637878,), (1340637881,), (1340637892,), (1340637901,), (1340638052,), (1340638156,), (1340638161,), (1340638163,), (1340638168,)) 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 (1340637400) 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 20980870 , 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=20980858 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 (20980870) result : ((1340637815,), (1340638211,), (1340638463,), (1340638464,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20980858) result : ((1340637280,), (1340637290,), (1340637303,), (1340637306,), (1340637311,), (1340637355,), (1340637360,), (1340637366,), (1340637368,), (1340637372,), (1340637375,), (1340637400,), (1340637404,), (1340637407,), (1340637408,), (1340637413,), (1340637418,), (1340637439,), (1340637444,), (1340637449,), (1340637452,), (1340637878,), (1340637881,), (1340637892,), (1340637901,), (1340638052,), (1340638156,), (1340638161,), (1340638163,), (1340638168,)) 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 (1340637400) 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 20980871 , 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=20980858 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 (20980871) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20980858) result : ((1340637280,), (1340637290,), (1340637303,), (1340637306,), (1340637311,), (1340637355,), (1340637360,), (1340637366,), (1340637368,), (1340637372,), (1340637375,), (1340637400,), (1340637404,), (1340637407,), (1340637408,), (1340637413,), (1340637418,), (1340637439,), (1340637444,), (1340637449,), (1340637452,), (1340637878,), (1340637881,), (1340637892,), (1340637901,), (1340638052,), (1340638156,), (1340638161,), (1340638163,), (1340638168,)) 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 (1340637400) 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 20980872 , 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=20980858 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 (20980872) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20980858) result : ((1340637280,), (1340637290,), (1340637303,), (1340637306,), (1340637311,), (1340637355,), (1340637360,), (1340637366,), (1340637368,), (1340637372,), (1340637375,), (1340637400,), (1340637404,), (1340637407,), (1340637408,), (1340637413,), (1340637418,), (1340637439,), (1340637444,), (1340637449,), (1340637452,), (1340637878,), (1340637881,), (1340637892,), (1340637901,), (1340638052,), (1340638156,), (1340638161,), (1340638163,), (1340638168,)) 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 (1340637400) 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`=20980858 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','cartonnette','Carton_brun','metal','plastique','papier','environnement','kraft','mal_croppe','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20980858 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','cartonnette','Carton_brun','metal','plastique','papier','environnement','kraft','mal_croppe','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 20980858, 'sub_port_id': 20980873, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601090, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 30)}, 'metal': {'main_port_id': 20980858, 'sub_port_id': 20980874, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601091, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 30)}, 'papier': {'main_port_id': 20980858, 'sub_port_id': 20980875, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601092, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 20980858, 'sub_port_id': 20980876, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601093, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 30)}, 'autre_refus': {'main_port_id': 20980858, 'sub_port_id': 20980877, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601094, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 30)}, 'Carton_brun': {'main_port_id': 20980858, 'sub_port_id': 20980878, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601095, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 30)}, 'mal_croppe': {'main_port_id': 20980858, 'sub_port_id': 20980879, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601096, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 30)}, 'plastique': {'main_port_id': 20980858, 'sub_port_id': 20980880, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601097, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 30)}, 'environnement': {'main_port_id': 20980858, 'sub_port_id': 20980881, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601098, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 30)}, 'Carton_gris': {'main_port_id': 20980858, 'sub_port_id': 20980882, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601099, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 30)}, 'kraft': {'main_port_id': 20980858, 'sub_port_id': 20980883, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601100, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 30)}, 'flou': {'main_port_id': 20980858, 'sub_port_id': 20980884, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601101, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 35, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20980873,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20980861 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20980874,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20980862 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20980875,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20980863 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20980876,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20980864 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20980877,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20980865 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20980878,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20980866 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20980879,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20980867 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20980880,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20980868 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20980881,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20980869 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20980882,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20980870 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20980883,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20980871 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20980884,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20980872 lien utilise dans velours : https://www.fotonower.com/velours/20980873,20980874,20980875,20980876,20980877,20980878,20980879,20980880,20980881,20980882,20980883,20980884?tags=cartonnette,metal,papier,Teint_Dans_La_Masse,autre_refus,Carton_brun,mal_croppe,plastique,environnement,Carton_gris,kraft,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20980858]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340638168, 1340638163, 1340638161, 1340638156, 1340638052, 1340637901, 1340637892, 1340637881, 1340637878] map_info['map_portfolio_photo'] : {20980858: [1340638168, 1340638163, 1340638161, 1340638156, 1340638052, 1340637901, 1340637892, 1340637881, 1340637878, 1340637452, 1340637449, 1340637444, 1340637439, 1340637418, 1340637413, 1340637408, 1340637407, 1340637404, 1340637400, 1340637375, 1340637372, 1340637368, 1340637366, 1340637360, 1340637355, 1340637311, 1340637306, 1340637303, 1340637290, 1340637280]} final : False mtd_id 4302 list_pids : [1340638168, 1340638163, 1340638161, 1340638156, 1340638052, 1340637901, 1340637892, 1340637881, 1340637878] Looping around the photos to save general results len do output : 1 /20980858. 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, '2629706') ('4302', '20980858', '1340638168', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340638163', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340638161', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340638156', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340638052', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340637901', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340637892', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340637881', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340637878', None, None, None, None, None, '2629706') 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, '20980858', "{'cartonnette': 20980861, 'metal': 20980862, 'papier': 20980863, 'Teint_Dans_La_Masse': 20980864, 'autre_refus': 20980865, 'Carton_brun': 20980866, 'mal_croppe': 20980867, 'plastique': 20980868, 'environnement': 20980869, 'Carton_gris': 20980870, 'kraft': 20980871, 'flou': 20980872}", None, None, None, None, '2629706'), ('4302', '20980858', '1340638168', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340638163', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340638161', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340638156', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340638052', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340637901', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340637892', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340637881', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340637878', None, None, None, None, None, '2629706')] time used for this insertion : 0.01345372200012207 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4586825370788574 time spend to save output : 0.013846874237060547 total time spend for step 1 : 0.47252941131591797 step2:final Mon Mar 3 15:38:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (20980858) 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 20980858 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340637311,1340637306,1340637303,1340637290,1340637280,1340637375,1340637372,1340637368,1340637366,1340637360,1340637355,1340637418,1340637413,1340637408,1340637407,1340637404,1340637400,1340637452,1340637449,1340637444,1340637439,1340638052,1340637901,1340637892,1340637881,1340637878,1340638168,1340638163,1340638161,1340638156); 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([20980858]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340638168: ('0.09659244894228336',), 1340638163: ('0.09659244894228336',), 1340638161: ('0.09659244894228336',), 1340638156: ('0.09659244894228336',), 1340638052: ('0.09659244894228336',), 1340637901: ('0.09659244894228336',), 1340637892: ('0.09659244894228336',), 1340637881: ('0.09659244894228336',), 1340637878: ('0.09659244894228336',)} new output for save of step final : {1340638168: ('0.09659244894228336',), 1340638163: ('0.09659244894228336',), 1340638161: ('0.09659244894228336',), 1340638156: ('0.09659244894228336',), 1340638052: ('0.09659244894228336',), 1340637901: ('0.09659244894228336',), 1340637892: ('0.09659244894228336',), 1340637881: ('0.09659244894228336',), 1340637878: ('0.09659244894228336',)} [1340638168, 1340638163, 1340638161, 1340638156, 1340638052, 1340637901, 1340637892, 1340637881, 1340637878] map_info['map_portfolio_photo'] : {20980858: [1340638168, 1340638163, 1340638161, 1340638156, 1340638052, 1340637901, 1340637892, 1340637881, 1340637878, 1340637452, 1340637449, 1340637444, 1340637439, 1340637418, 1340637413, 1340637408, 1340637407, 1340637404, 1340637400, 1340637375, 1340637372, 1340637368, 1340637366, 1340637360, 1340637355, 1340637311, 1340637306, 1340637303, 1340637290, 1340637280]} final : False mtd_id 4302 list_pids : [1340638168, 1340638163, 1340638161, 1340638156, 1340638052, 1340637901, 1340637892, 1340637881, 1340637878] Looping around the photos to save general results len do output : 9 /1340638168.Didn't retrieve data . /1340638163.Didn't retrieve data . /1340638161.Didn't retrieve data . /1340638156.Didn't retrieve data . /1340638052.Didn't retrieve data . /1340637901.Didn't retrieve data . /1340637892.Didn't retrieve data . /1340637881.Didn't retrieve data . /1340637878.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, '2629706') ('4302', '20980858', '1340638168', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340638163', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340638161', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340638156', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340638052', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340637901', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340637892', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340637881', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340637878', None, None, None, None, None, '2629706') 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', '20980858', '1340638168', '0.09659244894228336', None, None, None, None, '2629706'), ('4302', '20980858', '1340638163', '0.09659244894228336', None, None, None, None, '2629706'), ('4302', '20980858', '1340638161', '0.09659244894228336', None, None, None, None, '2629706'), ('4302', '20980858', '1340638156', '0.09659244894228336', None, None, None, None, '2629706'), ('4302', '20980858', '1340638052', '0.09659244894228336', None, None, None, None, '2629706'), ('4302', '20980858', '1340637901', '0.09659244894228336', None, None, None, None, '2629706'), ('4302', '20980858', '1340637892', '0.09659244894228336', None, None, None, None, '2629706'), ('4302', '20980858', '1340637881', '0.09659244894228336', None, None, None, None, '2629706'), ('4302', '20980858', '1340637878', '0.09659244894228336', None, None, None, None, '2629706')] time used for this insertion : 0.012656688690185547 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.065765380859375 time spend to save output : 0.013071775436401367 total time spend for step 2 : 0.07883715629577637 step3:velours_tree Mon Mar 3 15:38:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {20980858: [{'cartonnette': 20980861, 'metal': 20980862, 'papier': 20980863, 'Teint_Dans_La_Masse': 20980864, 'autre_refus': 20980865, 'Carton_brun': 20980866, 'mal_croppe': 20980867, 'plastique': 20980868, 'environnement': 20980869, 'Carton_gris': 20980870, 'kraft': 20980871, 'flou': 20980872}]} input_args_next_step : {20980858: ()} output_args : {20980858: [{'cartonnette': 20980861, 'metal': 20980862, 'papier': 20980863, 'Teint_Dans_La_Masse': 20980864, 'autre_refus': 20980865, 'Carton_brun': 20980866, 'mal_croppe': 20980867, 'plastique': 20980868, 'environnement': 20980869, 'Carton_gris': 20980870, 'kraft': 20980871, 'flou': 20980872}]} args : 20980858 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 : ({'cartonnette': 20980861, 'metal': 20980862, 'papier': 20980863, 'Teint_Dans_La_Masse': 20980864, 'autre_refus': 20980865, 'Carton_brun': 20980866, 'mal_croppe': 20980867, 'plastique': 20980868, 'environnement': 20980869, 'Carton_gris': 20980870, 'kraft': 20980871, 'flou': 20980872},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20980858) 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([20980858]) 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.3436925411224365 time spend to save output : 7.796287536621094e-05 total time spend for step 3 : 0.34377050399780273 step4:send_mail_cod Mon Mar 3 15:38:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1340638168: ('0.09659244894228336',), 1340638163: ('0.09659244894228336',), 1340638161: ('0.09659244894228336',), 1340638156: ('0.09659244894228336',), 1340638052: ('0.09659244894228336',), 1340637901: ('0.09659244894228336',), 1340637892: ('0.09659244894228336',), 1340637881: ('0.09659244894228336',), 1340637878: ('0.09659244894228336',)} input_args_next_step : {1340638168: ()} output_args : {1340638168: ('0.09659244894228336',), 1340638163: ('0.09659244894228336',), 1340638161: ('0.09659244894228336',), 1340638156: ('0.09659244894228336',), 1340638052: ('0.09659244894228336',), 1340637901: ('0.09659244894228336',), 1340637892: ('0.09659244894228336',), 1340637881: ('0.09659244894228336',), 1340637878: ('0.09659244894228336',)} args : 1340638168 depend.output_id : 0 input_args_next_step : {1340638168: ('0.09659244894228336',), 1340638163: ()} output_args : {1340638168: ('0.09659244894228336',), 1340638163: ('0.09659244894228336',), 1340638161: ('0.09659244894228336',), 1340638156: ('0.09659244894228336',), 1340638052: ('0.09659244894228336',), 1340637901: ('0.09659244894228336',), 1340637892: ('0.09659244894228336',), 1340637881: ('0.09659244894228336',), 1340637878: ('0.09659244894228336',)} args : 1340638163 depend.output_id : 0 input_args_next_step : {1340638168: ('0.09659244894228336',), 1340638163: ('0.09659244894228336',), 1340638161: ()} output_args : {1340638168: ('0.09659244894228336',), 1340638163: ('0.09659244894228336',), 1340638161: ('0.09659244894228336',), 1340638156: ('0.09659244894228336',), 1340638052: ('0.09659244894228336',), 1340637901: ('0.09659244894228336',), 1340637892: ('0.09659244894228336',), 1340637881: ('0.09659244894228336',), 1340637878: ('0.09659244894228336',)} args : 1340638161 depend.output_id : 0 input_args_next_step : {1340638168: ('0.09659244894228336',), 1340638163: ('0.09659244894228336',), 1340638161: ('0.09659244894228336',), 1340638156: ()} output_args : {1340638168: ('0.09659244894228336',), 1340638163: ('0.09659244894228336',), 1340638161: ('0.09659244894228336',), 1340638156: ('0.09659244894228336',), 1340638052: ('0.09659244894228336',), 1340637901: ('0.09659244894228336',), 1340637892: ('0.09659244894228336',), 1340637881: ('0.09659244894228336',), 1340637878: ('0.09659244894228336',)} args : 1340638156 depend.output_id : 0 input_args_next_step : {1340638168: ('0.09659244894228336',), 1340638163: ('0.09659244894228336',), 1340638161: ('0.09659244894228336',), 1340638156: ('0.09659244894228336',), 1340638052: ()} output_args : {1340638168: ('0.09659244894228336',), 1340638163: ('0.09659244894228336',), 1340638161: ('0.09659244894228336',), 1340638156: ('0.09659244894228336',), 1340638052: ('0.09659244894228336',), 1340637901: ('0.09659244894228336',), 1340637892: ('0.09659244894228336',), 1340637881: ('0.09659244894228336',), 1340637878: ('0.09659244894228336',)} args : 1340638052 depend.output_id : 0 input_args_next_step : {1340638168: ('0.09659244894228336',), 1340638163: ('0.09659244894228336',), 1340638161: ('0.09659244894228336',), 1340638156: ('0.09659244894228336',), 1340638052: ('0.09659244894228336',), 1340637901: ()} output_args : {1340638168: ('0.09659244894228336',), 1340638163: ('0.09659244894228336',), 1340638161: ('0.09659244894228336',), 1340638156: ('0.09659244894228336',), 1340638052: ('0.09659244894228336',), 1340637901: ('0.09659244894228336',), 1340637892: ('0.09659244894228336',), 1340637881: ('0.09659244894228336',), 1340637878: ('0.09659244894228336',)} args : 1340637901 depend.output_id : 0 input_args_next_step : {1340638168: ('0.09659244894228336',), 1340638163: ('0.09659244894228336',), 1340638161: ('0.09659244894228336',), 1340638156: ('0.09659244894228336',), 1340638052: ('0.09659244894228336',), 1340637901: ('0.09659244894228336',), 1340637892: ()} output_args : {1340638168: ('0.09659244894228336',), 1340638163: ('0.09659244894228336',), 1340638161: ('0.09659244894228336',), 1340638156: ('0.09659244894228336',), 1340638052: ('0.09659244894228336',), 1340637901: ('0.09659244894228336',), 1340637892: ('0.09659244894228336',), 1340637881: ('0.09659244894228336',), 1340637878: ('0.09659244894228336',)} args : 1340637892 depend.output_id : 0 input_args_next_step : {1340638168: ('0.09659244894228336',), 1340638163: ('0.09659244894228336',), 1340638161: ('0.09659244894228336',), 1340638156: ('0.09659244894228336',), 1340638052: ('0.09659244894228336',), 1340637901: ('0.09659244894228336',), 1340637892: ('0.09659244894228336',), 1340637881: ()} output_args : {1340638168: ('0.09659244894228336',), 1340638163: ('0.09659244894228336',), 1340638161: ('0.09659244894228336',), 1340638156: ('0.09659244894228336',), 1340638052: ('0.09659244894228336',), 1340637901: ('0.09659244894228336',), 1340637892: ('0.09659244894228336',), 1340637881: ('0.09659244894228336',), 1340637878: ('0.09659244894228336',)} args : 1340637881 depend.output_id : 0 input_args_next_step : {1340638168: ('0.09659244894228336',), 1340638163: ('0.09659244894228336',), 1340638161: ('0.09659244894228336',), 1340638156: ('0.09659244894228336',), 1340638052: ('0.09659244894228336',), 1340637901: ('0.09659244894228336',), 1340637892: ('0.09659244894228336',), 1340637881: ('0.09659244894228336',), 1340637878: ()} output_args : {1340638168: ('0.09659244894228336',), 1340638163: ('0.09659244894228336',), 1340638161: ('0.09659244894228336',), 1340638156: ('0.09659244894228336',), 1340638052: ('0.09659244894228336',), 1340637901: ('0.09659244894228336',), 1340637892: ('0.09659244894228336',), 1340637881: ('0.09659244894228336',), 1340637878: ('0.09659244894228336',)} args : 1340637878 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 : {20980858: [{'cartonnette': 20980861, 'metal': 20980862, 'papier': 20980863, 'Teint_Dans_La_Masse': 20980864, 'autre_refus': 20980865, 'Carton_brun': 20980866, 'mal_croppe': 20980867, 'plastique': 20980868, 'environnement': 20980869, 'Carton_gris': 20980870, 'kraft': 20980871, 'flou': 20980872}]} input_args_next_step : {1340638168: ('0.09659244894228336',), 1340638163: ('0.09659244894228336',), 1340638161: ('0.09659244894228336',), 1340638156: ('0.09659244894228336',), 1340638052: ('0.09659244894228336',), 1340637901: ('0.09659244894228336',), 1340637892: ('0.09659244894228336',), 1340637881: ('0.09659244894228336',), 1340637878: ('0.09659244894228336',), 20980858: ()} output_args : {20980858: [{'cartonnette': 20980861, 'metal': 20980862, 'papier': 20980863, 'Teint_Dans_La_Masse': 20980864, 'autre_refus': 20980865, 'Carton_brun': 20980866, 'mal_croppe': 20980867, 'plastique': 20980868, 'environnement': 20980869, 'Carton_gris': 20980870, 'kraft': 20980871, 'flou': 20980872}]} args : 20980858 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.09659244894228336',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20980858) 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 (1340638168,1340638163,1340638161,1340638156,1340638052,1340637901,1340637892,1340637881,1340637878) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340637878 begin to download photo : 1340637892 begin to download photo : 1340638052 begin to download photo : 1340638161 begin to download photo : 1340638168 download finish for photo 1340638168 download finish for photo 1340637878 begin to download photo : 1340637881 download finish for photo 1340637892 begin to download photo : 1340637901 download finish for photo 1340638161 begin to download photo : 1340638163 download finish for photo 1340637901 download finish for photo 1340637881 download finish for photo 1340638163 download finish for photo 1340638052 begin to download photo : 1340638156 download finish for photo 1340638156 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_P20980858_03-03-2025_15_38_58.pdf 20980861 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=20980861 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340637889: '1741012532_2766112_1340637306_6e35d0306ac061da859703bba6d7c2c9_rle_crop_3692441374_0.png', 1340637890: '1741012532_2766112_1340637303_6ef8f14d4f46d2007c4b65e6ff07475a_rle_crop_3692441387_0.png', 1340637891: '1741012532_2766112_1340637280_c3a99bb03dfc901e9597447ab61bb991_rle_crop_3692441416_0.png', 1340638467: '1741012650_2767508_1340637408_659c830405343af22ca69dd9aff202c4_rle_crop_3692442149_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7a9d6dca026a301d70862cdd1ae2dbd2_40551314.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/5f37ba816fd0e3569749742f1cb541d8_87085299.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ab228aa23ee608dab1a200a9ccdcfc12_28776486.png change filename to text .imagette209808611741012738/ imagette209808611741012738/1741012532_2766112_1340637306_6e35d0306ac061da859703bba6d7c2c9_rle_crop_3692441374_0.png.png imagette209808611741012738/1741012532_2766112_1340637280_c3a99bb03dfc901e9597447ab61bb991_rle_crop_3692441416_0.png.png imagette209808611741012738/1741012532_2766112_1340637303_6ef8f14d4f46d2007c4b65e6ff07475a_rle_crop_3692441387_0.png.png imagette209808611741012738/1741012650_2767508_1340637408_659c830405343af22ca69dd9aff202c4_rle_crop_3692442149_0.png.png imagette209808621741012738/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c28f5f98e1d48ca207857a394d31540e_98374774.png imagette209808611741012738 20980862 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=20980862 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209808621741012738 20980865 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=20980865 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340638193: '1741012633_2767293_1340637449_b3efd45da464ca8d045f82abcaad4bfc_rle_crop_3692441880_0.png', 1340638461: '1741012650_2767508_1340637400_52dc85ca17a29cba28ed39b3bdec3102_rle_crop_3692442200_0.png', 1340638460: '1741012650_2767508_1340637404_bafa6911eb6058825bb2d4f9cd74aa00_rle_crop_3692442180_0.png', 1340638459: '1741012650_2767508_1340637404_bafa6911eb6058825bb2d4f9cd74aa00_rle_crop_3692442188_0.png', 1340638458: '1741012650_2767508_1340637404_bafa6911eb6058825bb2d4f9cd74aa00_rle_crop_3692442187_0.png', 1340638457: '1741012650_2767508_1340637407_4ab6d01d39d7187fd159a1e0c29cc969_rle_crop_3692442173_0.png', 1340638456: '1741012650_2767508_1340637408_659c830405343af22ca69dd9aff202c4_rle_crop_3692442154_0.png', 1340638455: '1741012650_2767508_1340637413_72ae6c059eabce140df9813ebd92b00f_rle_crop_3692442137_0.png', 1340638454: '1741012650_2767508_1340637452_a7c8bdb3b87613d1b7ac4f33c9b11a11_rle_crop_3692442124_0.png', 1340638197: '1741012633_2767293_1340637439_4dbaa76dedf75eb39469d68a9dae8233_rle_crop_3692441907_0.png', 1340638196: '1741012633_2767293_1340637444_08e032f7ac13b6ee02631bc72c9819b2_rle_crop_3692441897_0.png', 1340637759: '1741012510_2765872_1340637372_5ef92d309448da5348b4e4695a4b511f_rle_crop_3692441084_0.png', 1340637887: '1741012532_2766112_1340637280_c3a99bb03dfc901e9597447ab61bb991_rle_crop_3692441431_0.png', 1340637886: '1741012532_2766112_1340637290_8d3f4596b941db3e70b8e7db9a9d5f2d_rle_crop_3692441404_0.png', 1340637885: '1741012532_2766112_1340637290_8d3f4596b941db3e70b8e7db9a9d5f2d_rle_crop_3692441405_0.png', 1340637884: '1741012532_2766112_1340637303_6ef8f14d4f46d2007c4b65e6ff07475a_rle_crop_3692441391_0.png', 1340637883: '1741012532_2766112_1340637306_6e35d0306ac061da859703bba6d7c2c9_rle_crop_3692441380_0.png', 1340637882: '1741012532_2766112_1340637375_46e7148b234d9efe499c88404ec42a08_rle_crop_3692441359_0.png', 1340637767: '1741012510_2765872_1340637355_1e6622a9969c198ea0dfc7056fdec073_rle_crop_3692441334_0.png', 1340637765: '1741012510_2765872_1340637360_3fe70837459158813a96fd520b504559_rle_crop_3692441315_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6030f908834549c192fa1fbf91398f73_27642675.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6f96b88b5188bce90bdb3e477b5a4ee2_44122431.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/1ea5cc9273f090f0cb1a694b180f16ad_31040049.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/81e388fdbf86648d42e6f649795699c5_98238757.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b179f42f133ae9dd1f3cdd88223d6788_55785850.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/773dc0a28e801945baa38738368b6495_86358516.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8484e0c45214f6c7bbc6c345ab1d99b3_95000788.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/002224c713138f1d03869e8e28baab8a_88738557.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f50e3a967bd574a375dc8b54c44628b2_50770101.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b47ddbc99eacf1f6e5019dc7f77a77e0_77758992.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/e767ebe1fc0f4675ed182a322106e8d7_75215826.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/09fd790fa6b9d103ae61339f392e5b7b_45843287.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/33bbc199ec0d654db568476c67a97063_4991446.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/3cfc8167fc6f30d90e8a92f42b9492d2_92195234.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/64f95ec2fab9f6dd17069be726f742d0_35392495.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/cf786eeafc10006a6facde3004d5b5e6_75623644.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/cb435d889d22190361a5af68e992217c_52508187.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f16825484118603251dc440c74455189_39225798.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/850fa9af1904d90d6039a22ab7837eee_37962272.png change filename to text .imagette209808651741012738/ imagette209808651741012738/1741012650_2767508_1340637407_4ab6d01d39d7187fd159a1e0c29cc969_rle_crop_3692442173_0.png.png imagette209808651741012738/1741012650_2767508_1340637404_bafa6911eb6058825bb2d4f9cd74aa00_rle_crop_3692442180_0.png.png imagette209808651741012738/1741012532_2766112_1340637375_46e7148b234d9efe499c88404ec42a08_rle_crop_3692441359_0.png.png imagette209808651741012738/1741012650_2767508_1340637413_72ae6c059eabce140df9813ebd92b00f_rle_crop_3692442137_0.png.png imagette209808651741012738/1741012532_2766112_1340637290_8d3f4596b941db3e70b8e7db9a9d5f2d_rle_crop_3692441405_0.png.png imagette209808651741012738/1741012510_2765872_1340637372_5ef92d309448da5348b4e4695a4b511f_rle_crop_3692441084_0.png.png imagette209808651741012738/1741012532_2766112_1340637303_6ef8f14d4f46d2007c4b65e6ff07475a_rle_crop_3692441391_0.png.png imagette209808651741012738/1741012650_2767508_1340637404_bafa6911eb6058825bb2d4f9cd74aa00_rle_crop_3692442187_0.png.png imagette209808651741012738/1741012633_2767293_1340637439_4dbaa76dedf75eb39469d68a9dae8233_rle_crop_3692441907_0.png.png imagette209808651741012738/1741012633_2767293_1340637444_08e032f7ac13b6ee02631bc72c9819b2_rle_crop_3692441897_0.png.png imagette209808651741012738/1741012650_2767508_1340637452_a7c8bdb3b87613d1b7ac4f33c9b11a11_rle_crop_3692442124_0.png.png imagette209808651741012738/1741012633_2767293_1340637449_b3efd45da464ca8d045f82abcaad4bfc_rle_crop_3692441880_0.png.png imagette209808651741012738/1741012510_2765872_1340637355_1e6622a9969c198ea0dfc7056fdec073_rle_crop_3692441334_0.png.png imagette209808651741012738/1741012532_2766112_1340637290_8d3f4596b941db3e70b8e7db9a9d5f2d_rle_crop_3692441404_0.png.png imagette209808651741012738/1741012650_2767508_1340637408_659c830405343af22ca69dd9aff202c4_rle_crop_3692442154_0.png.png imagette209808651741012738/1741012650_2767508_1340637400_52dc85ca17a29cba28ed39b3bdec3102_rle_crop_3692442200_0.png.png imagette209808651741012738/1741012650_2767508_1340637404_bafa6911eb6058825bb2d4f9cd74aa00_rle_crop_3692442188_0.png.png imagette209808651741012738/1741012532_2766112_1340637306_6e35d0306ac061da859703bba6d7c2c9_rle_crop_3692441380_0.png.png imagette209808651741012738/1741012532_2766112_1340637280_c3a99bb03dfc901e9597447ab61bb991_rle_crop_3692441431_0.png.png imagette209808651741012738/1741012510_2765872_1340637360_3fe70837459158813a96fd520b504559_rle_crop_3692441315_0.png.png imagette209808671741012739/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/53584ce97f325fc2fafeea66d9c339cf_42313704.png imagette209808651741012738 20980867 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=20980867 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209808671741012739 20980868 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=20980868 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340637896: '1741012532_2766112_1340637375_46e7148b234d9efe499c88404ec42a08_rle_crop_3692441351_0.png', 1340637897: '1741012532_2766112_1340637306_6e35d0306ac061da859703bba6d7c2c9_rle_crop_3692441377_0.png', 1340637898: '1741012532_2766112_1340637280_c3a99bb03dfc901e9597447ab61bb991_rle_crop_3692441425_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/bec95af125a74793d8c1b6809dca27aa_99165668.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9844873db0c5e7bd7c7349fce54c62de_79291244.png change filename to text .imagette209808681741012739/ imagette209808681741012739/1741012532_2766112_1340637375_46e7148b234d9efe499c88404ec42a08_rle_crop_3692441351_0.png.png imagette209808681741012739/1741012532_2766112_1340637306_6e35d0306ac061da859703bba6d7c2c9_rle_crop_3692441377_0.png.png imagette209808681741012739/1741012532_2766112_1340637280_c3a99bb03dfc901e9597447ab61bb991_rle_crop_3692441425_0.png.png imagette209808711741012739/ imagette209808721741012739/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b58a88af42853334e6a93033cf6b8817_60763176.png imagette209808681741012739 20980871 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=20980871 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209808711741012739 20980872 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=20980872 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209808721741012739 20980864 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=20980864 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340638189: '1741012633_2767293_1340637444_08e032f7ac13b6ee02631bc72c9819b2_rle_crop_3692441892_0.png', 1340638452: '1741012650_2767508_1340637400_52dc85ca17a29cba28ed39b3bdec3102_rle_crop_3692442205_0.png', 1340638451: '1741012650_2767508_1340637408_659c830405343af22ca69dd9aff202c4_rle_crop_3692442156_0.png', 1340638450: '1741012650_2767508_1340637408_659c830405343af22ca69dd9aff202c4_rle_crop_3692442153_0.png', 1340638449: '1741012650_2767508_1340637413_72ae6c059eabce140df9813ebd92b00f_rle_crop_3692442138_0.png', 1340638448: '1741012650_2767508_1340637452_a7c8bdb3b87613d1b7ac4f33c9b11a11_rle_crop_3692442129_0.png', 1340638447: '1741012650_2767508_1340637452_a7c8bdb3b87613d1b7ac4f33c9b11a11_rle_crop_3692442125_0.png', 1340638191: '1741012633_2767293_1340637444_08e032f7ac13b6ee02631bc72c9819b2_rle_crop_3692441890_0.png', 1340638190: '1741012633_2767293_1340637444_08e032f7ac13b6ee02631bc72c9819b2_rle_crop_3692441895_0.png', 1340637614: '1741012510_2765872_1340637366_6bfbb9d6774a74d6987d2fa525e9d619_rle_crop_3692441296_0.png', 1340638188: '1741012633_2767293_1340637444_08e032f7ac13b6ee02631bc72c9819b2_rle_crop_3692441898_0.png', 1340638187: '1741012633_2767293_1340637449_b3efd45da464ca8d045f82abcaad4bfc_rle_crop_3692441878_0.png', 1340638185: '1741012633_2767293_1340637449_b3efd45da464ca8d045f82abcaad4bfc_rle_crop_3692441876_0.png', 1340638184: '1741012633_2767293_1340637449_b3efd45da464ca8d045f82abcaad4bfc_rle_crop_3692441871_0.png', 1340638183: '1741012633_2767293_1340637449_b3efd45da464ca8d045f82abcaad4bfc_rle_crop_3692441882_0.png', 1340637618: '1741012510_2765872_1340637355_1e6622a9969c198ea0dfc7056fdec073_rle_crop_3692441336_0.png', 1340637616: '1741012510_2765872_1340637360_3fe70837459158813a96fd520b504559_rle_crop_3692441321_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ac0ce9bcb0823371a30d56e613cd915e_85585950.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/19e23566d16312f4cdd1ac3eae784c47_21974507.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/40caab07bc0d43b32109c64b5a474178_17270474.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2504614db6afabcb5d878c3bf1887d91_93544971.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/139c280cc02b51a1c37cb2cfaa1f4d60_36393853.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0fbc00d3073d2e0eec431971c954e53a_68052255.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/3f39d32b290e2e99814c6ce64645cd4f_22922903.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/5caf328776411fbfad0aae5cd8cf29d1_25340252.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/a2fa716f1d451c73d49f463d557e1bac_18686560.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/79f58a945850a139cc6d40282802ddbd_94863038.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ac69ea7b40c6ce71e3ae39816b0e3b64_5172288.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/e8dde09a44a2457a47c04a883e8f5896_52051467.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/43d16b01af4f04ea8c95defdc8f05f54_86326758.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/3a30f85b8d1977206e882d2343d6cd04_7235332.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f4e7c94acf7beae23f1c01943247d005_58824075.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/50883ee7edb9df4a52d2458e7f058f68_19739792.png change filename to text .imagette209808641741012739/ imagette209808641741012739/1741012650_2767508_1340637408_659c830405343af22ca69dd9aff202c4_rle_crop_3692442153_0.png.png imagette209808641741012739/1741012633_2767293_1340637444_08e032f7ac13b6ee02631bc72c9819b2_rle_crop_3692441892_0.png.png imagette209808641741012739/1741012633_2767293_1340637444_08e032f7ac13b6ee02631bc72c9819b2_rle_crop_3692441890_0.png.png imagette209808641741012739/1741012633_2767293_1340637449_b3efd45da464ca8d045f82abcaad4bfc_rle_crop_3692441871_0.png.png imagette209808641741012739/1741012650_2767508_1340637413_72ae6c059eabce140df9813ebd92b00f_rle_crop_3692442138_0.png.png imagette209808641741012739/1741012650_2767508_1340637408_659c830405343af22ca69dd9aff202c4_rle_crop_3692442156_0.png.png imagette209808641741012739/1741012650_2767508_1340637452_a7c8bdb3b87613d1b7ac4f33c9b11a11_rle_crop_3692442125_0.png.png imagette209808641741012739/1741012633_2767293_1340637444_08e032f7ac13b6ee02631bc72c9819b2_rle_crop_3692441895_0.png.png imagette209808641741012739/1741012510_2765872_1340637355_1e6622a9969c198ea0dfc7056fdec073_rle_crop_3692441336_0.png.png imagette209808641741012739/1741012650_2767508_1340637452_a7c8bdb3b87613d1b7ac4f33c9b11a11_rle_crop_3692442129_0.png.png imagette209808641741012739/1741012650_2767508_1340637400_52dc85ca17a29cba28ed39b3bdec3102_rle_crop_3692442205_0.png.png imagette209808641741012739/1741012633_2767293_1340637449_b3efd45da464ca8d045f82abcaad4bfc_rle_crop_3692441882_0.png.png imagette209808641741012739/1741012510_2765872_1340637366_6bfbb9d6774a74d6987d2fa525e9d619_rle_crop_3692441296_0.png.png imagette209808641741012739/1741012633_2767293_1340637449_b3efd45da464ca8d045f82abcaad4bfc_rle_crop_3692441878_0.png.png imagette209808641741012739/1741012633_2767293_1340637449_b3efd45da464ca8d045f82abcaad4bfc_rle_crop_3692441876_0.png.png imagette209808641741012739/1741012633_2767293_1340637444_08e032f7ac13b6ee02631bc72c9819b2_rle_crop_3692441898_0.png.png imagette209808641741012739/1741012510_2765872_1340637360_3fe70837459158813a96fd520b504559_rle_crop_3692441321_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/96de6ae801dc62c67bf7f2e647d1f62a_92253688.png imagette209808641741012739 20980866 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=20980866 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340637869: '1741012510_2765872_1340637368_273210065981cf2b129d0eed0c5096fc_rle_crop_3692441105_0.png', 1340637870: '1741012510_2765872_1340637366_6bfbb9d6774a74d6987d2fa525e9d619_rle_crop_3692441297_0.png', 1340637893: '1741012532_2766112_1340637375_46e7148b234d9efe499c88404ec42a08_rle_crop_3692441355_0.png', 1340637894: '1741012532_2766112_1340637290_8d3f4596b941db3e70b8e7db9a9d5f2d_rle_crop_3692441406_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/607f168b4c9d0c6ac6713f0f06bbcf24_71489736.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/83f544b862177da2e643ba308d691f85_44277232.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2f8857bb5122fc8d7003af1a3eca0c0d_93287957.png change filename to text .imagette209808661741012740/ imagette209808661741012740/1741012510_2765872_1340637368_273210065981cf2b129d0eed0c5096fc_rle_crop_3692441105_0.png.png imagette209808661741012740/1741012532_2766112_1340637375_46e7148b234d9efe499c88404ec42a08_rle_crop_3692441355_0.png.png imagette209808661741012740/1741012532_2766112_1340637290_8d3f4596b941db3e70b8e7db9a9d5f2d_rle_crop_3692441406_0.png.png imagette209808661741012740/1741012510_2765872_1340637366_6bfbb9d6774a74d6987d2fa525e9d619_rle_crop_3692441297_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/75a7ee75611703156da2a89ffb8c4dfc_35123494.png imagette209808661741012740 20980870 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=20980870 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340637815: '1741012510_2765872_1340637355_1e6622a9969c198ea0dfc7056fdec073_rle_crop_3692441329_0.png', 1340638211: '1741012633_2767293_1340637449_b3efd45da464ca8d045f82abcaad4bfc_rle_crop_3692441875_0.png', 1340638463: '1741012650_2767508_1340637452_a7c8bdb3b87613d1b7ac4f33c9b11a11_rle_crop_3692442121_0.png', 1340638464: '1741012650_2767508_1340637404_bafa6911eb6058825bb2d4f9cd74aa00_rle_crop_3692442183_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/1002a2b4b023eefef7b065903f7be4b5_20552337.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b10c46e41d76f5a40c1a5b5f93e37be2_40436624.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/a5bb842bef2fb15a2325bf7c05f29caa_66934280.png change filename to text .imagette209808701741012741/ imagette209808701741012741/1741012650_2767508_1340637452_a7c8bdb3b87613d1b7ac4f33c9b11a11_rle_crop_3692442121_0.png.png imagette209808701741012741/1741012633_2767293_1340637449_b3efd45da464ca8d045f82abcaad4bfc_rle_crop_3692441875_0.png.png imagette209808701741012741/1741012510_2765872_1340637355_1e6622a9969c198ea0dfc7056fdec073_rle_crop_3692441329_0.png.png imagette209808701741012741/1741012650_2767508_1340637404_bafa6911eb6058825bb2d4f9cd74aa00_rle_crop_3692442183_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/290cc3a329e7b5ca506d1da9e48896cd_48199682.png imagette209808701741012741 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20980858 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20980873,20980874,20980875,20980876,20980877,20980878,20980879,20980880,20980881,20980882,20980883,20980884?tags=cartonnette,metal,papier,Teint_Dans_La_Masse,autre_refus,Carton_brun,mal_croppe,plastique,environnement,Carton_gris,kraft,flou your option no_mail is active, we will not send the real mail to your client args[1340638168] : ('0.09659244894228336',) no score found for photo 1340638168 We are sending mail with results at report@fotonower.com args[1340638163] : ('0.09659244894228336',) no score found for photo 1340638163 We are sending mail with results at report@fotonower.com args[1340638161] : ('0.09659244894228336',) no score found for photo 1340638161 We are sending mail with results at report@fotonower.com args[1340638156] : ('0.09659244894228336',) no score found for photo 1340638156 We are sending mail with results at report@fotonower.com args[1340638052] : ('0.09659244894228336',) no score found for photo 1340638052 We are sending mail with results at report@fotonower.com args[1340637901] : ('0.09659244894228336',) no score found for photo 1340637901 We are sending mail with results at report@fotonower.com args[1340637892] : ('0.09659244894228336',) no score found for photo 1340637892 We are sending mail with results at report@fotonower.com args[1340637881] : ('0.09659244894228336',) no score found for photo 1340637881 We are sending mail with results at report@fotonower.com args[1340637878] : ('0.09659244894228336',) no score found for photo 1340637878 We are sending mail with results at report@fotonower.com refus_total : 0.09659244894228336 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=20980858 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_P20980858_03-03-2025_15_38_58.pdf results_Auto_P20980858_03-03-2025_15_38_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20980858_03-03-2025_15_38_58.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','20980858','results_Auto_P20980858_03-03-2025_15_38_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20980858_03-03-2025_15_38_58.pdf','pdf','','0.25','0.09659244894228336') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20980858]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340638168, 1340638163, 1340638161, 1340638156, 1340638052, 1340637901, 1340637892, 1340637881, 1340637878] map_info['map_portfolio_photo'] : {20980858: [1340638168, 1340638163, 1340638161, 1340638156, 1340638052, 1340637901, 1340637892, 1340637881, 1340637878, 1340637452, 1340637449, 1340637444, 1340637439, 1340637418, 1340637413, 1340637408, 1340637407, 1340637404, 1340637400, 1340637375, 1340637372, 1340637368, 1340637366, 1340637360, 1340637355, 1340637311, 1340637306, 1340637303, 1340637290, 1340637280]} final : False mtd_id 4302 list_pids : [1340638168, 1340638163, 1340638161, 1340638156, 1340638052, 1340637901, 1340637892, 1340637881, 1340637878] 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, '2629706') ('4302', '20980858', '1340638168', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340638163', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340638161', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340638156', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340638052', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340637901', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340637892', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340637881', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340637878', None, None, None, None, None, '2629706') 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', '20980858', '1340638168', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340638163', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340638161', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340638156', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340638052', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340637901', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340637892', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340637881', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340637878', None, None, None, None, None, '2629706')] time used for this insertion : 0.014901161193847656 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.3272576332092285 time spend to save output : 0.015141725540161133 total time spend for step 4 : 4.34239935874939 step5:split_time_score Mon Mar 3 15:39:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20980858'] 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 : [('20980858',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20980858) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340638168: {'path': 'temp/1741012738_2939223_1340638168_a7701e40ff207d84e0a61adb3917d9c5.jpg', 'extension': 'jpg'}, 1340637892: {'path': 'temp/1741012738_2939223_1340637892_ef70a2220b86aa8e6819bf703704b246.jpg', 'extension': 'jpg'}, 1340637901: {'path': 'temp/1741012738_2939223_1340637901_baf28cc75619d8e0c45aacb62719297f.jpg', 'extension': 'jpg'}, 1340637878: {'path': 'temp/1741012738_2939223_1340637878_3bec4ae7c6744ff6da2e40197e2c6ca9.jpg', 'extension': 'jpg'}, 1340637881: {'path': 'temp/1741012738_2939223_1340637881_72a6c0ef3a70c7680ed429588862ed31.jpg', 'extension': 'jpg'}, 1340638161: {'path': 'temp/1741012738_2939223_1340638161_e7bca8c3734738ca48331b7f4a94a14f.jpg', 'extension': 'jpg'}, 1340638163: {'path': 'temp/1741012738_2939223_1340638163_1cab53b093c62f060a440e0dce93cbc0.jpg', 'extension': 'jpg'}, 1340638052: {'path': 'temp/1741012738_2939223_1340638052_29a1b3055e1c98a27328346248a7ac65.jpg', 'extension': 'jpg'}, 1340638156: {'path': 'temp/1741012738_2939223_1340638156_29d0ecf24343dcf16d28fe995bfcffb9.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 = 20980858; (('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 = 20980858 group by h (('15', 30),) 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=20980858 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 (20980858) 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 (20980858) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03032025 20980858 Nombre de photos uploadées : 30 / 23040 (0%) 03032025 20980858 Nombre de photos taguées (types de déchets): 0 / 30 (0%) 03032025 20980858 Nombre de photos taguées (volume) : 0 / 30 (0%) [{'photo_id': 1340637311, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/04ebd2c7aa8c4b644a804e0b0cdc75e1.jpg', 'username': None, 'uploaded_at': 1741012339, 'text': 'image_03032025_15_31_04_10138.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340637306, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6e35d0306ac061da859703bba6d7c2c9.jpg', 'username': None, 'uploaded_at': 1741012339, 'text': 'image_03032025_15_31_15_10135.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340637303, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6ef8f14d4f46d2007c4b65e6ff07475a.jpg', 'username': None, 'uploaded_at': 1741012339, 'text': 'image_03032025_15_31_24_9128.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340637290, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8d3f4596b941db3e70b8e7db9a9d5f2d.jpg', 'username': None, 'uploaded_at': 1741012339, 'text': 'image_03032025_15_31_34_10143.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 7.62939453125e-06 ?????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0015726089477539062 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20980858, '2025-03-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1634063,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022919178009033203 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= 1634063 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1634063, 'dashboard_run_id': 1642794, 'mtr_portfolio_id': 20979220, 'dashboard_result_id': 9172115, '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_P20979220_03-03-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20979258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20979259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20979260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20979261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20979262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20979263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20979264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20979265, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20979266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20979267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20979268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20979269, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1642794, 'mtr_portfolio_id': 20979676, 'dashboard_result_id': 9172116, '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_P20979676_03-03-2025_15_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20979703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20979704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20979705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20979706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20979707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20979708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20979709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20979710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20979711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20979712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20979713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20979714, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1642794, 'mtr_portfolio_id': 20980311, 'dashboard_result_id': 9172117, '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_P20980311_03-03-2025_15_35_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20980375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20980376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20980377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20980378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20980379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20980380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20980381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20980382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20980383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20980384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20980385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20980386, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1642794, 'mtr_portfolio_id': 20980858, 'dashboard_result_id': 9172118, '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_P20980858_03-03-2025_15_36_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20980861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20980862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20980863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20980864, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20980865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20980866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20980867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20980868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20980869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20980870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20980871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20980872, '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 = 20979220 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': 2629560, 'mtr_portfolio_id': 20979220, 'created_at': datetime.datetime(2025, 3, 3, 15, 2, 59), 'result': '0.08360492160908141', 'result_long': None, 'result_double': None}] Qualite : 0.08360492160908141 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20979220 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20979220_03-03-2025_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20979220 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_P20979220_03-03-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20979258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20979259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20979260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20979261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20979262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20979263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20979264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20979265, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20979266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20979267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20979268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20979269, 'pht': 3726}}" where mtr_portfolio_id = 20979220 and dashboard_run_id = 1642794 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`=20979220 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9172115, 0.08360492160908141, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20979220_03-03-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20979258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20979259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20979260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20979261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20979262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20979263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20979264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20979265, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20979266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20979267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20979268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20979269, '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 = 20979676 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': 2629616, 'mtr_portfolio_id': 20979676, 'created_at': datetime.datetime(2025, 3, 3, 15, 18, 58), 'result': '0.08385893980639138', 'result_long': None, 'result_double': None}] Qualite : 0.08385893980639138 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20979676 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20979676_03-03-2025_15_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20979676 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_P20979676_03-03-2025_15_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20979703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20979704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20979705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20979706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20979707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20979708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20979709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20979710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20979711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20979712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20979713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20979714, 'pht': 3726}}" where mtr_portfolio_id = 20979676 and dashboard_run_id = 1642794 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`=20979676 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9172116, 0.08385893980639138, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20979676_03-03-2025_15_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20979703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20979704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20979705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20979706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20979707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20979708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20979709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20979710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20979711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20979712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20979713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20979714, '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 = 20980311 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': 2629661, 'mtr_portfolio_id': 20980311, 'created_at': datetime.datetime(2025, 3, 3, 15, 35, 1), 'result': '0.07414809706872667', 'result_long': None, 'result_double': None}] Qualite : 0.07414809706872667 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20980311 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20980311_03-03-2025_15_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20980311 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_P20980311_03-03-2025_15_35_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20980375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20980376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20980377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20980378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20980379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20980380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20980381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20980382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20980383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20980384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20980385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20980386, 'pht': 3726}}" where mtr_portfolio_id = 20980311 and dashboard_run_id = 1642794 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`=20980311 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9172117, 0.07414809706872667, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20980311_03-03-2025_15_35_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20980375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20980376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20980377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20980378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20980379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20980380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20980381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20980382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20980383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20980384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20980385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20980386, '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 = 20980858 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': 2629706, 'mtr_portfolio_id': 20980858, 'created_at': datetime.datetime(2025, 3, 3, 15, 38, 57), 'result': '0.09659244894228336', 'result_long': None, 'result_double': None}] Qualite : 0.09659244894228336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20980858 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20980858_03-03-2025_15_38_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20980858 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_P20980858_03-03-2025_15_38_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20980861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20980862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20980863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20980864, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20980865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20980866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20980867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20980868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20980869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20980870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20980871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20980872, 'pht': 3726}}" where mtr_portfolio_id = 20980858 and dashboard_run_id = 1642794 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`=20980858 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9172118, 0.09659244894228336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20980858_03-03-2025_15_38_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20980861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20980862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20980863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20980864, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20980865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20980866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20980867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20980868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20980869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20980870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20980871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20980872, '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 (20979220,20979676,20980311,20980858) result : ((1340632807,), (1340632884,), (1340632899,), (1340632905,), (1340632908,), (1340632914,), (1340633391,), (1340633397,), (1340633400,), (1340633714,), (1340633761,), (1340633765,), (1340633770,), (1340633806,), (1340633812,), (1340633818,), (1340633821,), (1340633866,), (1340633872,), (1340633877,), (1340633947,), (1340633952,), (1340633955,), (1340633956,), (1340633960,), (1340633964,), (1340634001,), (1340634006,), (1340634010,), (1340634016,), (1340634059,), (1340634071,), (1340634079,), (1340634084,), (1340634088,), (1340634092,), (1340634125,), (1340634132,), (1340634135,), (1340634139,), (1340634143,), (1340634208,), (1340634216,), (1340634232,), (1340634239,), (1340634250,), (1340634255,), (1340634260,), (1340634296,), (1340634285,), (1340634291,), (1340634526,), (1340634532,), (1340634537,), (1340634556,), (1340634608,), (1340634611,), (1340634619,), (1340634635,), (1340634701,), (1340634710,), (1340634718,), (1340634721,), (1340634728,), (1340634768,), (1340634781,), (1340634794,), (1340634812,), (1340634851,), (1340634855,), (1340634858,), (1340634862,), (1340634867,), (1340634906,), (1340634910,), (1340634917,), (1340634920,), (1340634991,), (1340635012,), (1340635016,), (1340635063,), (1340635067,), (1340635076,), (1340635081,), (1340635132,), (1340635138,), (1340635143,), (1340635146,), (1340635151,), (1340635155,), (1340635182,), (1340635186,), (1340635192,), (1340635196,), (1340635200,), (1340635207,), (1340635247,), (1340635255,), (1340635259,), (1340635291,), (1340635296,), (1340635305,), (1340635310,), (1340635361,), (1340635367,), (1340635370,), (1340635373,), (1340635426,), (1340635430,), (1340635436,), (1340635442,), (1340635566,), (1340635551,), (1340635561,), (1340636009,), (1340636016,), (1340636018,), (1340636045,), (1340636201,), (1340636210,), (1340636212,), (1340636220,), (1340636233,), (1340636239,), (1340636296,), (1340636307,), (1340636315,), (1340636318,), (1340636363,), (1340636365,), (1340636368,), (1340636371,), (1340636376,), (1340636382,), (1340636426,), (1340636428,), (1340636434,), (1340636505,), (1340636525,), (1340636629,), (1340636630,), (1340636632,), (1340636637,), (1340636668,), (1340636669,), (1340636672,), (1340636675,), (1340636722,), (1340636730,), (1340636736,), (1340636792,), (1340637316,), (1340637280,), (1340637290,), (1340637303,), (1340637306,), (1340637311,), (1340637355,), (1340637360,), (1340637366,), (1340637368,), (1340637372,), (1340637375,), (1340637400,), (1340637404,), (1340637407,), (1340637408,), (1340637413,), (1340637418,), (1340637439,), (1340637444,), (1340637449,), (1340637452,), (1340637878,), (1340637881,), (1340637892,), (1340637901,), (1340638052,), (1340638156,), (1340638161,), (1340638163,), (1340638168,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03032025': {'nb_upload': 30, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20980858]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340638168, 1340638163, 1340638161, 1340638156, 1340638052, 1340637901, 1340637892, 1340637881, 1340637878] map_info['map_portfolio_photo'] : {20980858: [1340638168, 1340638163, 1340638161, 1340638156, 1340638052, 1340637901, 1340637892, 1340637881, 1340637878, 1340637452, 1340637449, 1340637444, 1340637439, 1340637418, 1340637413, 1340637408, 1340637407, 1340637404, 1340637400, 1340637375, 1340637372, 1340637368, 1340637366, 1340637360, 1340637355, 1340637311, 1340637306, 1340637303, 1340637290, 1340637280]} final : True mtd_id 4302 list_pids : [1340638168, 1340638163, 1340638161, 1340638156, 1340638052, 1340637901, 1340637892, 1340637881, 1340637878] Looping around the photos to save general results len do output : 1 /20980858Didn'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, '2629706') ('4302', '20980858', '1340638168', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340638163', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340638161', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340638156', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340638052', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340637901', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340637892', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340637881', None, None, None, None, None, '2629706') ('4302', None, None, None, None, None, None, None, '2629706') ('4302', '20980858', '1340637878', None, None, None, None, None, '2629706') 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, '20980858', 'None', None, None, None, None, '2629706'), ('4302', '20980858', '1340638168', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340638163', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340638161', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340638156', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340638052', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340637901', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340637892', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340637881', None, None, None, None, None, '2629706'), ('4302', '20980858', '1340637878', None, None, None, None, None, '2629706')] time used for this insertion : 0.01428985595703125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3413429260253906 time spend to save output : 0.014536857604980469 total time spend for step 5 : 0.3558797836303711 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 (2629706) 2.25user 2.37system 0:08.22elapsed 56%CPU (0avgtext+0avgdata 158944maxresident)k 1976inputs+11712outputs (21major+76856minor)pagefaults 0swaps