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 : 2490008 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 (2600209) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2600209) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20682044 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2600209'] with mtr_portfolio_ids : ['20682044'] and first list_photo_ids : [] new path : /proc/2490008/ Name: python3 Umask: 0002 State: R (running) Tgid: 2490008 Ngid: 0 Pid: 2490008 PPid: 2490007 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2490008 NSpid: 2490008 NSpgid: 2487341 NSsid: 2487341 VmPeak: 1106836 kB VmSize: 1106836 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98660 kB VmRSS: 98660 kB RssAnon: 59748 kB RssFile: 38912 kB RssShmem: 0 kB VmData: 865588 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 596 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: 48 nonvoluntary_ctxt_switches: 98 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2490008', 'Ngid': '0', 'Pid': '2490008', 'PPid': '2490007', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2490008', 'NSpid': '2490008', 'NSpgid': '2487341', 'NSsid': '2487341', 'VmPeak': '1106836 kB', 'VmSize': '1106836 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98660 kB', 'VmRSS': '98660 kB', 'RssAnon': '59748 kB', 'RssFile': '38912 kB', 'RssShmem': '0 kB', 'VmData': '865588 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '596 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': '48', 'nonvoluntary_ctxt_switches': '98'} ('datou_batch_current', '2490008', '1106836', '0', '1106836', '865588', '98660', b'', 'marlene', '2600209') 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 (20682044) 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 (2600209 ) ) 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 (20682044) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338625615, 'portfolio_id': 20682044}, {'photo_id': 1338625598, 'portfolio_id': 20682044}, {'photo_id': 1338625595, 'portfolio_id': 20682044}, {'photo_id': 1338625592, 'portfolio_id': 20682044}, {'photo_id': 1338625589, 'portfolio_id': 20682044}, {'photo_id': 1338625586, 'portfolio_id': 20682044}, {'photo_id': 1338625366, 'portfolio_id': 20682044}, {'photo_id': 1338625363, 'portfolio_id': 20682044}, {'photo_id': 1338625362, 'portfolio_id': 20682044}, {'photo_id': 1338625358, 'portfolio_id': 20682044}, {'photo_id': 1338625354, 'portfolio_id': 20682044}, {'photo_id': 1338625317, 'portfolio_id': 20682044}, {'photo_id': 1338625315, 'portfolio_id': 20682044}, {'photo_id': 1338625304, 'portfolio_id': 20682044}, {'photo_id': 1338625291, 'portfolio_id': 20682044}, {'photo_id': 1338625286, 'portfolio_id': 20682044}, {'photo_id': 1338625261, 'portfolio_id': 20682044}, {'photo_id': 1338625258, 'portfolio_id': 20682044}, {'photo_id': 1338625255, 'portfolio_id': 20682044}, {'photo_id': 1338625249, 'portfolio_id': 20682044}, {'photo_id': 1338625218, 'portfolio_id': 20682044}, {'photo_id': 1338625214, 'portfolio_id': 20682044}, {'photo_id': 1338625209, 'portfolio_id': 20682044}, {'photo_id': 1338625199, 'portfolio_id': 20682044}, {'photo_id': 1338625195, 'portfolio_id': 20682044}, {'photo_id': 1338625178, 'portfolio_id': 20682044}, {'photo_id': 1338625174, 'portfolio_id': 20682044}, {'photo_id': 1338625170, 'portfolio_id': 20682044}, {'photo_id': 1338625167, 'portfolio_id': 20682044}, {'photo_id': 1338625164, 'portfolio_id': 20682044}, {'photo_id': 1338625130, 'portfolio_id': 20682044}, {'photo_id': 1338624948, 'portfolio_id': 20682044}, {'photo_id': 1338624945, 'portfolio_id': 20682044}, {'photo_id': 1338624943, 'portfolio_id': 20682044}, {'photo_id': 1338624941, 'portfolio_id': 20682044}] map_portfolio_id_photo_id: {20682044: [1338625615, 1338625598, 1338625595, 1338625592, 1338625589, 1338625586, 1338625366, 1338625363, 1338625362, 1338625358, 1338625354, 1338625317, 1338625315, 1338625304, 1338625291, 1338625286, 1338625261, 1338625258, 1338625255, 1338625249, 1338625218, 1338625214, 1338625209, 1338625199, 1338625195, 1338625178, 1338625174, 1338625170, 1338625167, 1338625164, 1338625130, 1338624948, 1338624945, 1338624943, 1338624941]} ##### 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.018698692321777344 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Feb 20 16: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 (20682044) 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 : 20682044 get user id for portfolio 20682044 get sub ptf for main ptf 20682044, type 3726 and hashtags ['cartonnette', 'Teint_Dans_La_Masse', 'flou', 'metal', 'plastique', 'environnement', 'Carton_gris', 'mal_croppe', 'autre_refus', 'kraft', 'papier', 'Carton_brun'] 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`=20682044 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','flou','metal','plastique','environnement','Carton_gris','mal_croppe','autre_refus','kraft','papier','Carton_brun')) 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`=20682044 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','flou','metal','plastique','environnement','Carton_gris','mal_croppe','autre_refus','kraft','papier','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20682044, 'sub_port_id': 20682074, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332079, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 34, 58)}, 'mal_croppe': {'main_port_id': 20682044, 'sub_port_id': 20682075, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332080, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 34, 58)}, 'kraft': {'main_port_id': 20682044, 'sub_port_id': 20682076, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332081, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 34, 58)}, 'flou': {'main_port_id': 20682044, 'sub_port_id': 20682077, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332082, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 34, 58)}, 'autre_refus': {'main_port_id': 20682044, 'sub_port_id': 20682078, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332083, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 34, 58)}, 'cartonnette': {'main_port_id': 20682044, 'sub_port_id': 20682079, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332084, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 34, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20682044, 'sub_port_id': 20682080, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332085, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 34, 58)}, 'environnement': {'main_port_id': 20682044, 'sub_port_id': 20682081, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332086, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 34, 58)}, 'Carton_brun': {'main_port_id': 20682044, 'sub_port_id': 20682082, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332087, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 34, 58)}, 'metal': {'main_port_id': 20682044, 'sub_port_id': 20682083, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332088, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 34, 58)}, 'plastique': {'main_port_id': 20682044, 'sub_port_id': 20682084, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332089, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 34, 58)}, 'papier': {'main_port_id': 20682044, 'sub_port_id': 20682085, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332090, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20682074 , 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=20682044 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 (20682074) result : ((1338625305,), (1338625306,), (1338625307,), (1338625308,), (1338625699,), (1338625700,), (1338625702,), (1338625703,), (1338625704,), (1338625725,), (1338625750,), (1338625751,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20682044) result : ((1338624941,), (1338624943,), (1338624945,), (1338624948,), (1338625130,), (1338625164,), (1338625167,), (1338625170,), (1338625174,), (1338625178,), (1338625195,), (1338625199,), (1338625209,), (1338625214,), (1338625218,), (1338625249,), (1338625255,), (1338625258,), (1338625261,), (1338625286,), (1338625291,), (1338625304,), (1338625315,), (1338625317,), (1338625354,), (1338625358,), (1338625362,), (1338625363,), (1338625366,), (1338625586,), (1338625589,), (1338625592,), (1338625595,), (1338625598,), (1338625615,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20682075 , 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=20682044 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 (20682075) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20682044) result : ((1338624941,), (1338624943,), (1338624945,), (1338624948,), (1338625130,), (1338625164,), (1338625167,), (1338625170,), (1338625174,), (1338625178,), (1338625195,), (1338625199,), (1338625209,), (1338625214,), (1338625218,), (1338625249,), (1338625255,), (1338625258,), (1338625261,), (1338625286,), (1338625291,), (1338625304,), (1338625315,), (1338625317,), (1338625354,), (1338625358,), (1338625362,), (1338625363,), (1338625366,), (1338625586,), (1338625589,), (1338625592,), (1338625595,), (1338625598,), (1338625615,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20682076 , 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=20682044 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 (20682076) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20682044) result : ((1338624941,), (1338624943,), (1338624945,), (1338624948,), (1338625130,), (1338625164,), (1338625167,), (1338625170,), (1338625174,), (1338625178,), (1338625195,), (1338625199,), (1338625209,), (1338625214,), (1338625218,), (1338625249,), (1338625255,), (1338625258,), (1338625261,), (1338625286,), (1338625291,), (1338625304,), (1338625315,), (1338625317,), (1338625354,), (1338625358,), (1338625362,), (1338625363,), (1338625366,), (1338625586,), (1338625589,), (1338625592,), (1338625595,), (1338625598,), (1338625615,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20682077 , 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=20682044 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 (20682077) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20682044) result : ((1338624941,), (1338624943,), (1338624945,), (1338624948,), (1338625130,), (1338625164,), (1338625167,), (1338625170,), (1338625174,), (1338625178,), (1338625195,), (1338625199,), (1338625209,), (1338625214,), (1338625218,), (1338625249,), (1338625255,), (1338625258,), (1338625261,), (1338625286,), (1338625291,), (1338625304,), (1338625315,), (1338625317,), (1338625354,), (1338625358,), (1338625362,), (1338625363,), (1338625366,), (1338625586,), (1338625589,), (1338625592,), (1338625595,), (1338625598,), (1338625615,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20682078 , 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=20682044 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 (20682078) result : ((1338625697,), (1338625698,), (1338625748,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20682044) result : ((1338624941,), (1338624943,), (1338624945,), (1338624948,), (1338625130,), (1338625164,), (1338625167,), (1338625170,), (1338625174,), (1338625178,), (1338625195,), (1338625199,), (1338625209,), (1338625214,), (1338625218,), (1338625249,), (1338625255,), (1338625258,), (1338625261,), (1338625286,), (1338625291,), (1338625304,), (1338625315,), (1338625317,), (1338625354,), (1338625358,), (1338625362,), (1338625363,), (1338625366,), (1338625586,), (1338625589,), (1338625592,), (1338625595,), (1338625598,), (1338625615,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20682079 , 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=20682044 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 (20682079) result : ((1338625706,), (1338625707,), (1338625721,), (1338625753,), (1338625754,), (1338625755,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20682044) result : ((1338624941,), (1338624943,), (1338624945,), (1338624948,), (1338625130,), (1338625164,), (1338625167,), (1338625170,), (1338625174,), (1338625178,), (1338625195,), (1338625199,), (1338625209,), (1338625214,), (1338625218,), (1338625249,), (1338625255,), (1338625258,), (1338625261,), (1338625286,), (1338625291,), (1338625304,), (1338625315,), (1338625317,), (1338625354,), (1338625358,), (1338625362,), (1338625363,), (1338625366,), (1338625586,), (1338625589,), (1338625592,), (1338625595,), (1338625598,), (1338625615,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20682080 , 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=20682044 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 (20682080) result : ((1338625689,), (1338625718,), (1338625723,), (1338625741,), (1338625742,), (1338625743,), (1338625744,), (1338625745,), (1338625746,), (1338625747,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20682044) result : ((1338624941,), (1338624943,), (1338624945,), (1338624948,), (1338625130,), (1338625164,), (1338625167,), (1338625170,), (1338625174,), (1338625178,), (1338625195,), (1338625199,), (1338625209,), (1338625214,), (1338625218,), (1338625249,), (1338625255,), (1338625258,), (1338625261,), (1338625286,), (1338625291,), (1338625304,), (1338625315,), (1338625317,), (1338625354,), (1338625358,), (1338625362,), (1338625363,), (1338625366,), (1338625586,), (1338625589,), (1338625592,), (1338625595,), (1338625598,), (1338625615,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20682081 , 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=20682044 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 (20682081) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20682044) result : ((1338624941,), (1338624943,), (1338624945,), (1338624948,), (1338625130,), (1338625164,), (1338625167,), (1338625170,), (1338625174,), (1338625178,), (1338625195,), (1338625199,), (1338625209,), (1338625214,), (1338625218,), (1338625249,), (1338625255,), (1338625258,), (1338625261,), (1338625286,), (1338625291,), (1338625304,), (1338625315,), (1338625317,), (1338625354,), (1338625358,), (1338625362,), (1338625363,), (1338625366,), (1338625586,), (1338625589,), (1338625592,), (1338625595,), (1338625598,), (1338625615,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20682082 , 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=20682044 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 (20682082) result : ((1338625756,), (1338625757,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20682044) result : ((1338624941,), (1338624943,), (1338624945,), (1338624948,), (1338625130,), (1338625164,), (1338625167,), (1338625170,), (1338625174,), (1338625178,), (1338625195,), (1338625199,), (1338625209,), (1338625214,), (1338625218,), (1338625249,), (1338625255,), (1338625258,), (1338625261,), (1338625286,), (1338625291,), (1338625304,), (1338625315,), (1338625317,), (1338625354,), (1338625358,), (1338625362,), (1338625363,), (1338625366,), (1338625586,), (1338625589,), (1338625592,), (1338625595,), (1338625598,), (1338625615,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20682083 , 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=20682044 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 (20682083) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20682044) result : ((1338624941,), (1338624943,), (1338624945,), (1338624948,), (1338625130,), (1338625164,), (1338625167,), (1338625170,), (1338625174,), (1338625178,), (1338625195,), (1338625199,), (1338625209,), (1338625214,), (1338625218,), (1338625249,), (1338625255,), (1338625258,), (1338625261,), (1338625286,), (1338625291,), (1338625304,), (1338625315,), (1338625317,), (1338625354,), (1338625358,), (1338625362,), (1338625363,), (1338625366,), (1338625586,), (1338625589,), (1338625592,), (1338625595,), (1338625598,), (1338625615,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20682084 , 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=20682044 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 (20682084) result : ((1338625309,), (1338625310,), (1338625711,), (1338625712,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20682044) result : ((1338624941,), (1338624943,), (1338624945,), (1338624948,), (1338625130,), (1338625164,), (1338625167,), (1338625170,), (1338625174,), (1338625178,), (1338625195,), (1338625199,), (1338625209,), (1338625214,), (1338625218,), (1338625249,), (1338625255,), (1338625258,), (1338625261,), (1338625286,), (1338625291,), (1338625304,), (1338625315,), (1338625317,), (1338625354,), (1338625358,), (1338625362,), (1338625363,), (1338625366,), (1338625586,), (1338625589,), (1338625592,), (1338625595,), (1338625598,), (1338625615,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20682085 , 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=20682044 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 (20682085) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20682044) result : ((1338624941,), (1338624943,), (1338624945,), (1338624948,), (1338625130,), (1338625164,), (1338625167,), (1338625170,), (1338625174,), (1338625178,), (1338625195,), (1338625199,), (1338625209,), (1338625214,), (1338625218,), (1338625249,), (1338625255,), (1338625258,), (1338625261,), (1338625286,), (1338625291,), (1338625304,), (1338625315,), (1338625317,), (1338625354,), (1338625358,), (1338625362,), (1338625363,), (1338625366,), (1338625586,), (1338625589,), (1338625592,), (1338625595,), (1338625598,), (1338625615,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") 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`=20682044 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','flou','metal','plastique','environnement','Carton_gris','mal_croppe','autre_refus','kraft','papier','Carton_brun')) 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`=20682044 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','flou','metal','plastique','environnement','Carton_gris','mal_croppe','autre_refus','kraft','papier','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20682044, 'sub_port_id': 20682086, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332091, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 35)}, 'mal_croppe': {'main_port_id': 20682044, 'sub_port_id': 20682087, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332092, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 35)}, 'kraft': {'main_port_id': 20682044, 'sub_port_id': 20682088, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332093, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 35)}, 'flou': {'main_port_id': 20682044, 'sub_port_id': 20682089, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332094, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 35)}, 'autre_refus': {'main_port_id': 20682044, 'sub_port_id': 20682090, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332095, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 35)}, 'cartonnette': {'main_port_id': 20682044, 'sub_port_id': 20682091, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332096, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 20682044, 'sub_port_id': 20682092, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332097, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 35)}, 'environnement': {'main_port_id': 20682044, 'sub_port_id': 20682093, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332098, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 35)}, 'Carton_brun': {'main_port_id': 20682044, 'sub_port_id': 20682094, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332099, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 35)}, 'metal': {'main_port_id': 20682044, 'sub_port_id': 20682095, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332100, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 35)}, 'plastique': {'main_port_id': 20682044, 'sub_port_id': 20682096, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332101, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 35)}, 'papier': {'main_port_id': 20682044, 'sub_port_id': 20682097, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13332102, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20682086,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20682074 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20682087,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20682075 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20682088,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20682076 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20682089,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20682077 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20682090,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20682078 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20682091,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20682079 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20682092,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20682080 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20682093,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20682081 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20682094,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20682082 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20682095,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20682083 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20682096,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20682084 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20682097,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20682085 lien utilise dans velours : https://www.fotonower.com/velours/20682086,20682087,20682088,20682089,20682090,20682091,20682092,20682093,20682094,20682095,20682096,20682097?tags=Carton_gris,mal_croppe,kraft,flou,autre_refus,cartonnette,Teint_Dans_La_Masse,environnement,Carton_brun,metal,plastique,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20682044]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338625615, 1338625598, 1338625595, 1338625592, 1338625589, 1338625586, 1338625366, 1338625363, 1338625362, 1338625358, 1338625354] map_info['map_portfolio_photo'] : {20682044: [1338625615, 1338625598, 1338625595, 1338625592, 1338625589, 1338625586, 1338625366, 1338625363, 1338625362, 1338625358, 1338625354, 1338625317, 1338625315, 1338625304, 1338625291, 1338625286, 1338625261, 1338625258, 1338625255, 1338625249, 1338625218, 1338625214, 1338625209, 1338625199, 1338625195, 1338625178, 1338625174, 1338625170, 1338625167, 1338625164, 1338625130, 1338624948, 1338624945, 1338624943, 1338624941]} final : False mtd_id 4302 list_pids : [1338625615, 1338625598, 1338625595, 1338625592, 1338625589, 1338625586, 1338625366, 1338625363, 1338625362, 1338625358, 1338625354] Looping around the photos to save general results len do output : 1 /20682044. 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, '2600209') ('4302', '20682044', '1338625615', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625598', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625595', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625592', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625589', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625586', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625366', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625363', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625362', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625358', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625354', None, None, None, None, None, '2600209') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '20682044', "{'Carton_gris': 20682074, 'mal_croppe': 20682075, 'kraft': 20682076, 'flou': 20682077, 'autre_refus': 20682078, 'cartonnette': 20682079, 'Teint_Dans_La_Masse': 20682080, 'environnement': 20682081, 'Carton_brun': 20682082, 'metal': 20682083, 'plastique': 20682084, 'papier': 20682085}", None, None, None, None, '2600209'), ('4302', '20682044', '1338625615', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625598', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625595', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625592', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625589', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625586', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625366', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625363', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625362', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625358', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625354', None, None, None, None, None, '2600209')] time used for this insertion : 0.01359415054321289 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6657047271728516 time spend to save output : 0.01388096809387207 total time spend for step 1 : 1.6795856952667236 step2:final Thu Feb 20 16:38:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20682044) 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 20682044 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338624948,1338624945,1338624943,1338624941,1338625178,1338625174,1338625130,1338625170,1338625167,1338625164,1338625218,1338625214,1338625209,1338625199,1338625195,1338625261,1338625258,1338625255,1338625249,1338625317,1338625315,1338625304,1338625291,1338625286,1338625366,1338625363,1338625362,1338625358,1338625354,1338625615,1338625598,1338625595,1338625592,1338625589,1338625586); 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([20682044]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ('0.06125628713687163',), 1338625366: ('0.06125628713687163',), 1338625363: ('0.06125628713687163',), 1338625362: ('0.06125628713687163',), 1338625358: ('0.06125628713687163',), 1338625354: ('0.06125628713687163',)} new output for save of step final : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ('0.06125628713687163',), 1338625366: ('0.06125628713687163',), 1338625363: ('0.06125628713687163',), 1338625362: ('0.06125628713687163',), 1338625358: ('0.06125628713687163',), 1338625354: ('0.06125628713687163',)} [1338625615, 1338625598, 1338625595, 1338625592, 1338625589, 1338625586, 1338625366, 1338625363, 1338625362, 1338625358, 1338625354] map_info['map_portfolio_photo'] : {20682044: [1338625615, 1338625598, 1338625595, 1338625592, 1338625589, 1338625586, 1338625366, 1338625363, 1338625362, 1338625358, 1338625354, 1338625317, 1338625315, 1338625304, 1338625291, 1338625286, 1338625261, 1338625258, 1338625255, 1338625249, 1338625218, 1338625214, 1338625209, 1338625199, 1338625195, 1338625178, 1338625174, 1338625170, 1338625167, 1338625164, 1338625130, 1338624948, 1338624945, 1338624943, 1338624941]} final : False mtd_id 4302 list_pids : [1338625615, 1338625598, 1338625595, 1338625592, 1338625589, 1338625586, 1338625366, 1338625363, 1338625362, 1338625358, 1338625354] Looping around the photos to save general results len do output : 11 /1338625615.Didn't retrieve data . /1338625598.Didn't retrieve data . /1338625595.Didn't retrieve data . /1338625592.Didn't retrieve data . /1338625589.Didn't retrieve data . /1338625586.Didn't retrieve data . /1338625366.Didn't retrieve data . /1338625363.Didn't retrieve data . /1338625362.Didn't retrieve data . /1338625358.Didn't retrieve data . /1338625354.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, '2600209') ('4302', '20682044', '1338625615', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625598', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625595', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625592', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625589', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625586', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625366', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625363', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625362', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625358', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625354', None, None, None, None, None, '2600209') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '20682044', '1338625615', '0.06125628713687163', None, None, None, None, '2600209'), ('4302', '20682044', '1338625598', '0.06125628713687163', None, None, None, None, '2600209'), ('4302', '20682044', '1338625595', '0.06125628713687163', None, None, None, None, '2600209'), ('4302', '20682044', '1338625592', '0.06125628713687163', None, None, None, None, '2600209'), ('4302', '20682044', '1338625589', '0.06125628713687163', None, None, None, None, '2600209'), ('4302', '20682044', '1338625586', '0.06125628713687163', None, None, None, None, '2600209'), ('4302', '20682044', '1338625366', '0.06125628713687163', None, None, None, None, '2600209'), ('4302', '20682044', '1338625363', '0.06125628713687163', None, None, None, None, '2600209'), ('4302', '20682044', '1338625362', '0.06125628713687163', None, None, None, None, '2600209'), ('4302', '20682044', '1338625358', '0.06125628713687163', None, None, None, None, '2600209'), ('4302', '20682044', '1338625354', '0.06125628713687163', None, None, None, None, '2600209')] time used for this insertion : 0.017684459686279297 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.09378790855407715 time spend to save output : 0.018409252166748047 total time spend for step 2 : 0.1121971607208252 step3:velours_tree Thu Feb 20 16:38:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20682044: [{'Carton_gris': 20682074, 'mal_croppe': 20682075, 'kraft': 20682076, 'flou': 20682077, 'autre_refus': 20682078, 'cartonnette': 20682079, 'Teint_Dans_La_Masse': 20682080, 'environnement': 20682081, 'Carton_brun': 20682082, 'metal': 20682083, 'plastique': 20682084, 'papier': 20682085}]} input_args_next_step : {20682044: ()} output_args : {20682044: [{'Carton_gris': 20682074, 'mal_croppe': 20682075, 'kraft': 20682076, 'flou': 20682077, 'autre_refus': 20682078, 'cartonnette': 20682079, 'Teint_Dans_La_Masse': 20682080, 'environnement': 20682081, 'Carton_brun': 20682082, 'metal': 20682083, 'plastique': 20682084, 'papier': 20682085}]} args : 20682044 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 20682074, 'mal_croppe': 20682075, 'kraft': 20682076, 'flou': 20682077, 'autre_refus': 20682078, 'cartonnette': 20682079, 'Teint_Dans_La_Masse': 20682080, 'environnement': 20682081, 'Carton_brun': 20682082, 'metal': 20682083, 'plastique': 20682084, 'papier': 20682085},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20682044) 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([20682044]) 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.3066103458404541 time spend to save output : 5.364418029785156e-05 total time spend for step 3 : 0.30666399002075195 step4:send_mail_cod Thu Feb 20 16:39:00 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 : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ('0.06125628713687163',), 1338625366: ('0.06125628713687163',), 1338625363: ('0.06125628713687163',), 1338625362: ('0.06125628713687163',), 1338625358: ('0.06125628713687163',), 1338625354: ('0.06125628713687163',)} input_args_next_step : {1338625615: ()} output_args : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ('0.06125628713687163',), 1338625366: ('0.06125628713687163',), 1338625363: ('0.06125628713687163',), 1338625362: ('0.06125628713687163',), 1338625358: ('0.06125628713687163',), 1338625354: ('0.06125628713687163',)} args : 1338625615 depend.output_id : 0 input_args_next_step : {1338625615: ('0.06125628713687163',), 1338625598: ()} output_args : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ('0.06125628713687163',), 1338625366: ('0.06125628713687163',), 1338625363: ('0.06125628713687163',), 1338625362: ('0.06125628713687163',), 1338625358: ('0.06125628713687163',), 1338625354: ('0.06125628713687163',)} args : 1338625598 depend.output_id : 0 input_args_next_step : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ()} output_args : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ('0.06125628713687163',), 1338625366: ('0.06125628713687163',), 1338625363: ('0.06125628713687163',), 1338625362: ('0.06125628713687163',), 1338625358: ('0.06125628713687163',), 1338625354: ('0.06125628713687163',)} args : 1338625595 depend.output_id : 0 input_args_next_step : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ()} output_args : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ('0.06125628713687163',), 1338625366: ('0.06125628713687163',), 1338625363: ('0.06125628713687163',), 1338625362: ('0.06125628713687163',), 1338625358: ('0.06125628713687163',), 1338625354: ('0.06125628713687163',)} args : 1338625592 depend.output_id : 0 input_args_next_step : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ()} output_args : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ('0.06125628713687163',), 1338625366: ('0.06125628713687163',), 1338625363: ('0.06125628713687163',), 1338625362: ('0.06125628713687163',), 1338625358: ('0.06125628713687163',), 1338625354: ('0.06125628713687163',)} args : 1338625589 depend.output_id : 0 input_args_next_step : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ()} output_args : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ('0.06125628713687163',), 1338625366: ('0.06125628713687163',), 1338625363: ('0.06125628713687163',), 1338625362: ('0.06125628713687163',), 1338625358: ('0.06125628713687163',), 1338625354: ('0.06125628713687163',)} args : 1338625586 depend.output_id : 0 input_args_next_step : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ('0.06125628713687163',), 1338625366: ()} output_args : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ('0.06125628713687163',), 1338625366: ('0.06125628713687163',), 1338625363: ('0.06125628713687163',), 1338625362: ('0.06125628713687163',), 1338625358: ('0.06125628713687163',), 1338625354: ('0.06125628713687163',)} args : 1338625366 depend.output_id : 0 input_args_next_step : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ('0.06125628713687163',), 1338625366: ('0.06125628713687163',), 1338625363: ()} output_args : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ('0.06125628713687163',), 1338625366: ('0.06125628713687163',), 1338625363: ('0.06125628713687163',), 1338625362: ('0.06125628713687163',), 1338625358: ('0.06125628713687163',), 1338625354: ('0.06125628713687163',)} args : 1338625363 depend.output_id : 0 input_args_next_step : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ('0.06125628713687163',), 1338625366: ('0.06125628713687163',), 1338625363: ('0.06125628713687163',), 1338625362: ()} output_args : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ('0.06125628713687163',), 1338625366: ('0.06125628713687163',), 1338625363: ('0.06125628713687163',), 1338625362: ('0.06125628713687163',), 1338625358: ('0.06125628713687163',), 1338625354: ('0.06125628713687163',)} args : 1338625362 depend.output_id : 0 input_args_next_step : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ('0.06125628713687163',), 1338625366: ('0.06125628713687163',), 1338625363: ('0.06125628713687163',), 1338625362: ('0.06125628713687163',), 1338625358: ()} output_args : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ('0.06125628713687163',), 1338625366: ('0.06125628713687163',), 1338625363: ('0.06125628713687163',), 1338625362: ('0.06125628713687163',), 1338625358: ('0.06125628713687163',), 1338625354: ('0.06125628713687163',)} args : 1338625358 depend.output_id : 0 input_args_next_step : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ('0.06125628713687163',), 1338625366: ('0.06125628713687163',), 1338625363: ('0.06125628713687163',), 1338625362: ('0.06125628713687163',), 1338625358: ('0.06125628713687163',), 1338625354: ()} output_args : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ('0.06125628713687163',), 1338625366: ('0.06125628713687163',), 1338625363: ('0.06125628713687163',), 1338625362: ('0.06125628713687163',), 1338625358: ('0.06125628713687163',), 1338625354: ('0.06125628713687163',)} args : 1338625354 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 : {20682044: [{'Carton_gris': 20682074, 'mal_croppe': 20682075, 'kraft': 20682076, 'flou': 20682077, 'autre_refus': 20682078, 'cartonnette': 20682079, 'Teint_Dans_La_Masse': 20682080, 'environnement': 20682081, 'Carton_brun': 20682082, 'metal': 20682083, 'plastique': 20682084, 'papier': 20682085}]} input_args_next_step : {1338625615: ('0.06125628713687163',), 1338625598: ('0.06125628713687163',), 1338625595: ('0.06125628713687163',), 1338625592: ('0.06125628713687163',), 1338625589: ('0.06125628713687163',), 1338625586: ('0.06125628713687163',), 1338625366: ('0.06125628713687163',), 1338625363: ('0.06125628713687163',), 1338625362: ('0.06125628713687163',), 1338625358: ('0.06125628713687163',), 1338625354: ('0.06125628713687163',), 20682044: ()} output_args : {20682044: [{'Carton_gris': 20682074, 'mal_croppe': 20682075, 'kraft': 20682076, 'flou': 20682077, 'autre_refus': 20682078, 'cartonnette': 20682079, 'Teint_Dans_La_Masse': 20682080, 'environnement': 20682081, 'Carton_brun': 20682082, 'metal': 20682083, 'plastique': 20682084, 'papier': 20682085}]} args : 20682044 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 :12, first value : ('0.06125628713687163',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20682044) 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 (1338625615,1338625598,1338625595,1338625592,1338625589,1338625586,1338625366,1338625363,1338625362,1338625358,1338625354) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338625354 begin to download photo : 1338625363 begin to download photo : 1338625589 begin to download photo : 1338625598 download finish for photo 1338625354 begin to download photo : 1338625358 download finish for photo 1338625598 begin to download photo : 1338625615 download finish for photo 1338625589 begin to download photo : 1338625592 download finish for photo 1338625363 begin to download photo : 1338625366 download finish for photo 1338625358 begin to download photo : 1338625362 download finish for photo 1338625366 begin to download photo : 1338625586 download finish for photo 1338625615 download finish for photo 1338625592 begin to download photo : 1338625595 download finish for photo 1338625586 download finish for photo 1338625362 download finish for photo 1338625595 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette206820751740065940/ imagette206820761740065940/ imagette206820771740065940/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P20682044_20-02-2025_16_39_00.pdf 20682075 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=20682075 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206820751740065940 20682076 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=20682076 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206820761740065940 20682077 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=20682077 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206820771740065940 20682078 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=20682078 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338625697: '1740065814_2104289_1338625209_477cc983e185cab0f8b07ef9983af281_rle_crop_3680723045_0.png', 1338625698: '1740065814_2104289_1338625195_186c3aa8ede1c80af3486ffef66d3521_rle_crop_3680723147_0.png', 1338625748: '1740065832_2104502_1338625286_d8abf4cb5d466fcce9ffea7971039f6e_rle_crop_3680723349_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/f2197774d3cf65fb60d9b3d3c53517ab_39535452.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/e8ff0ee2ab5c3ecacf467ab7b8ba41c3_84856373.png change filename to text .imagette206820781740065940/ imagette206820781740065940/1740065832_2104502_1338625286_d8abf4cb5d466fcce9ffea7971039f6e_rle_crop_3680723349_0.png.png imagette206820781740065940/1740065814_2104289_1338625209_477cc983e185cab0f8b07ef9983af281_rle_crop_3680723045_0.png.png imagette206820781740065940/1740065814_2104289_1338625195_186c3aa8ede1c80af3486ffef66d3521_rle_crop_3680723147_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/9c3ab3ab32bdf80a813b7bb0bf368b32_3594050.png imagette206820781740065940 20682079 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=20682079 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338625706: '1740065814_2104289_1338625199_6bbc1e7944dde63090098f9962e0dde7_rle_crop_3680723058_0.png', 1338625707: '1740065814_2104289_1338625195_186c3aa8ede1c80af3486ffef66d3521_rle_crop_3680723154_0.png', 1338625721: '1740065852_2104707_1338625317_2523f2b45beaa607effbf2e7f84712f2_rle_crop_3680723206_0.png', 1338625753: '1740065832_2104502_1338625304_86132c2699da0c368a611f8709e67b95_rle_crop_3680723250_0.png', 1338625754: '1740065832_2104502_1338625304_86132c2699da0c368a611f8709e67b95_rle_crop_3680723247_0.png', 1338625755: '1740065832_2104502_1338625286_d8abf4cb5d466fcce9ffea7971039f6e_rle_crop_3680723344_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/3fc32cc2654242d63a3d9eebb4cc4912_61408999.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/812509762aa7a7e83192f531c038561c_18729682.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/526705a1a2b3bbaaff2bf49e02df9642_43252712.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/61023093f57e8b270eec8519098638df_47520116.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/72647a1f3db15ee88c60d559d434f82c_51955503.png change filename to text .imagette206820791740065940/ imagette206820791740065940/1740065814_2104289_1338625195_186c3aa8ede1c80af3486ffef66d3521_rle_crop_3680723154_0.png.png imagette206820791740065940/1740065832_2104502_1338625286_d8abf4cb5d466fcce9ffea7971039f6e_rle_crop_3680723344_0.png.png imagette206820791740065940/1740065814_2104289_1338625199_6bbc1e7944dde63090098f9962e0dde7_rle_crop_3680723058_0.png.png imagette206820791740065940/1740065852_2104707_1338625317_2523f2b45beaa607effbf2e7f84712f2_rle_crop_3680723206_0.png.png imagette206820791740065940/1740065832_2104502_1338625304_86132c2699da0c368a611f8709e67b95_rle_crop_3680723247_0.png.png imagette206820791740065940/1740065832_2104502_1338625304_86132c2699da0c368a611f8709e67b95_rle_crop_3680723250_0.png.png imagette206820831740065940/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/3ddf54fd9fd29eb45a4f9f741d751b4e_36356711.png imagette206820791740065940 20682083 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=20682083 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206820831740065940 20682084 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=20682084 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338625309: '1740065633_2095490_1338624945_77900d5c27407da626ff27589c164284_rle_crop_3680721680_0.png', 1338625310: '1740065633_2095490_1338624943_aaf9fae0ed24e9fc7d9b39bde46964e9_rle_crop_3680721720_0.png', 1338625711: '1740065814_2104289_1338625199_6bbc1e7944dde63090098f9962e0dde7_rle_crop_3680723069_0.png', 1338625712: '1740065814_2104289_1338625195_186c3aa8ede1c80af3486ffef66d3521_rle_crop_3680723149_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/4d50e119d0a061d4e581c82555cd56a0_67820640.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/7e8cdf6e407981c3248df95140af85a3_51234482.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/b41f84d72672aaa5e0fc4803d19d17eb_69104128.png change filename to text .imagette206820841740065940/ imagette206820841740065940/1740065814_2104289_1338625199_6bbc1e7944dde63090098f9962e0dde7_rle_crop_3680723069_0.png.png imagette206820841740065940/1740065814_2104289_1338625195_186c3aa8ede1c80af3486ffef66d3521_rle_crop_3680723149_0.png.png imagette206820841740065940/1740065633_2095490_1338624945_77900d5c27407da626ff27589c164284_rle_crop_3680721680_0.png.png imagette206820841740065940/1740065633_2095490_1338624943_aaf9fae0ed24e9fc7d9b39bde46964e9_rle_crop_3680721720_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/6be3c85bdf2563e7774790612d51bade_63089845.png imagette206820841740065940 20682074 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=20682074 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338625305: '1740065633_2095490_1338624943_aaf9fae0ed24e9fc7d9b39bde46964e9_rle_crop_3680721713_0.png', 1338625306: '1740065633_2095490_1338624941_d9dfd3ea2e184d9ade872944d443fcb4_rle_crop_3680721884_0.png', 1338625307: '1740065633_2095490_1338624941_d9dfd3ea2e184d9ade872944d443fcb4_rle_crop_3680721892_0.png', 1338625308: '1740065633_2095490_1338624941_d9dfd3ea2e184d9ade872944d443fcb4_rle_crop_3680721883_0.png', 1338625699: '1740065814_2104289_1338625199_6bbc1e7944dde63090098f9962e0dde7_rle_crop_3680723061_0.png', 1338625700: '1740065814_2104289_1338625199_6bbc1e7944dde63090098f9962e0dde7_rle_crop_3680723064_0.png', 1338625702: '1740065814_2104289_1338625195_186c3aa8ede1c80af3486ffef66d3521_rle_crop_3680723159_0.png', 1338625703: '1740065814_2104289_1338625195_186c3aa8ede1c80af3486ffef66d3521_rle_crop_3680723156_0.png', 1338625704: '1740065814_2104289_1338625195_186c3aa8ede1c80af3486ffef66d3521_rle_crop_3680723151_0.png', 1338625725: '1740065872_2104943_1338625178_9793304b04c376cb4182c593bc929a95_rle_crop_3680723364_0.png', 1338625750: '1740065832_2104502_1338625315_c8ddc89e9f8622694efb1e330b24a537_rle_crop_3680723223_0.png', 1338625751: '1740065832_2104502_1338625315_c8ddc89e9f8622694efb1e330b24a537_rle_crop_3680723218_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/59689211432e192fd7b0010951073a90_62770631.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/0eacf9be3816c44327324bb196c8cb45_9547873.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/ea13638398aa7bee475ef81a7dbd878f_75207065.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/5c0c92142cb3d58135a27f1d2b30aa04_56115824.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/59189d7a7c082ef67fc7a2c04b27cd8f_36576693.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/1e187ed06ace773611760fcfba277db9_25572966.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/f71e0cba177a9c40778d1b718b543b0c_50836301.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/71b215d8a4c5be13fdbd32723612169f_37787349.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/0dfa76a9237610de2eed669fe9747f1a_70862181.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/5d4977e9c41a4429f2d2c04865ba1202_79353608.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/39e40f3e50869dca5a7943c11016b295_16050699.png change filename to text .imagette206820741740065941/ imagette206820741740065941/1740065814_2104289_1338625199_6bbc1e7944dde63090098f9962e0dde7_rle_crop_3680723064_0.png.png imagette206820741740065941/1740065633_2095490_1338624941_d9dfd3ea2e184d9ade872944d443fcb4_rle_crop_3680721884_0.png.png imagette206820741740065941/1740065633_2095490_1338624941_d9dfd3ea2e184d9ade872944d443fcb4_rle_crop_3680721883_0.png.png imagette206820741740065941/1740065814_2104289_1338625195_186c3aa8ede1c80af3486ffef66d3521_rle_crop_3680723151_0.png.png imagette206820741740065941/1740065814_2104289_1338625199_6bbc1e7944dde63090098f9962e0dde7_rle_crop_3680723061_0.png.png imagette206820741740065941/1740065872_2104943_1338625178_9793304b04c376cb4182c593bc929a95_rle_crop_3680723364_0.png.png imagette206820741740065941/1740065633_2095490_1338624943_aaf9fae0ed24e9fc7d9b39bde46964e9_rle_crop_3680721713_0.png.png imagette206820741740065941/1740065814_2104289_1338625195_186c3aa8ede1c80af3486ffef66d3521_rle_crop_3680723156_0.png.png imagette206820741740065941/1740065633_2095490_1338624941_d9dfd3ea2e184d9ade872944d443fcb4_rle_crop_3680721892_0.png.png imagette206820741740065941/1740065814_2104289_1338625195_186c3aa8ede1c80af3486ffef66d3521_rle_crop_3680723159_0.png.png imagette206820741740065941/1740065832_2104502_1338625315_c8ddc89e9f8622694efb1e330b24a537_rle_crop_3680723223_0.png.png imagette206820741740065941/1740065832_2104502_1338625315_c8ddc89e9f8622694efb1e330b24a537_rle_crop_3680723218_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/6c73e96478d5fea0d0a5bd64c3c49123_85516035.png imagette206820741740065941 20682080 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=20682080 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338625689: '1740065814_2104289_1338625195_186c3aa8ede1c80af3486ffef66d3521_rle_crop_3680723163_0.png', 1338625718: '1740065852_2104707_1338625317_2523f2b45beaa607effbf2e7f84712f2_rle_crop_3680723210_0.png', 1338625723: '1740065872_2104943_1338625178_9793304b04c376cb4182c593bc929a95_rle_crop_3680723370_0.png', 1338625741: '1740065832_2104502_1338625315_c8ddc89e9f8622694efb1e330b24a537_rle_crop_3680723219_0.png', 1338625742: '1740065832_2104502_1338625315_c8ddc89e9f8622694efb1e330b24a537_rle_crop_3680723226_0.png', 1338625743: '1740065832_2104502_1338625315_c8ddc89e9f8622694efb1e330b24a537_rle_crop_3680723221_0.png', 1338625744: '1740065832_2104502_1338625304_86132c2699da0c368a611f8709e67b95_rle_crop_3680723253_0.png', 1338625745: '1740065832_2104502_1338625286_d8abf4cb5d466fcce9ffea7971039f6e_rle_crop_3680723356_0.png', 1338625746: '1740065832_2104502_1338625286_d8abf4cb5d466fcce9ffea7971039f6e_rle_crop_3680723348_0.png', 1338625747: '1740065832_2104502_1338625286_d8abf4cb5d466fcce9ffea7971039f6e_rle_crop_3680723358_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/72d6c35fe6a5cd2c0e6182b3f2f955f7_91486779.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/819200a5e0da287d74cfd6933fcc7315_91880080.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/844c535e30f474c5b745190089b82608_87667860.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/a653616b4b107fc7d85d9c3c990dd13b_58629768.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/73cd9792e419c00827800e18ff8bb15e_57273529.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/8f1e6c9c6e484e9a8c0f4e348d5839a7_97885324.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/b44098ae733f59cb1d9787316938c863_66263399.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/140f3993544d2adc4277529bc68aba3f_37875325.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/3912f2e9a5375b1e6354c61c59f03f9b_76917956.png change filename to text .imagette206820801740065941/ imagette206820801740065941/1740065832_2104502_1338625315_c8ddc89e9f8622694efb1e330b24a537_rle_crop_3680723226_0.png.png imagette206820801740065941/1740065872_2104943_1338625178_9793304b04c376cb4182c593bc929a95_rle_crop_3680723370_0.png.png imagette206820801740065941/1740065832_2104502_1338625286_d8abf4cb5d466fcce9ffea7971039f6e_rle_crop_3680723358_0.png.png imagette206820801740065941/1740065814_2104289_1338625195_186c3aa8ede1c80af3486ffef66d3521_rle_crop_3680723163_0.png.png imagette206820801740065941/1740065832_2104502_1338625315_c8ddc89e9f8622694efb1e330b24a537_rle_crop_3680723219_0.png.png imagette206820801740065941/1740065832_2104502_1338625315_c8ddc89e9f8622694efb1e330b24a537_rle_crop_3680723221_0.png.png imagette206820801740065941/1740065852_2104707_1338625317_2523f2b45beaa607effbf2e7f84712f2_rle_crop_3680723210_0.png.png imagette206820801740065941/1740065832_2104502_1338625286_d8abf4cb5d466fcce9ffea7971039f6e_rle_crop_3680723348_0.png.png imagette206820801740065941/1740065832_2104502_1338625304_86132c2699da0c368a611f8709e67b95_rle_crop_3680723253_0.png.png imagette206820801740065941/1740065832_2104502_1338625286_d8abf4cb5d466fcce9ffea7971039f6e_rle_crop_3680723356_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/b2b80facaa2a21973ed2d2076e49b5bb_63584397.png imagette206820801740065941 20682082 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=20682082 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338625756: '1740065832_2104502_1338625315_c8ddc89e9f8622694efb1e330b24a537_rle_crop_3680723220_0.png', 1338625757: '1740065832_2104502_1338625286_d8abf4cb5d466fcce9ffea7971039f6e_rle_crop_3680723347_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/e40b15003102e9701e3f69d4791a7f0c_97923184.png change filename to text .imagette206820821740065942/ imagette206820821740065942/1740065832_2104502_1338625286_d8abf4cb5d466fcce9ffea7971039f6e_rle_crop_3680723347_0.png.png imagette206820821740065942/1740065832_2104502_1338625315_c8ddc89e9f8622694efb1e330b24a537_rle_crop_3680723220_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/60144ee40fc361f1ea886f8819a69b3b_60522706.png imagette206820821740065942 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20682044 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20682086,20682087,20682088,20682089,20682090,20682091,20682092,20682093,20682094,20682095,20682096,20682097?tags=Carton_gris,mal_croppe,kraft,flou,autre_refus,cartonnette,Teint_Dans_La_Masse,environnement,Carton_brun,metal,plastique,papier your option no_mail is active, we will not send the real mail to your client args[1338625615] : ('0.06125628713687163',) no score found for photo 1338625615 We are sending mail with results at report@fotonower.com args[1338625598] : ('0.06125628713687163',) no score found for photo 1338625598 We are sending mail with results at report@fotonower.com args[1338625595] : ('0.06125628713687163',) no score found for photo 1338625595 We are sending mail with results at report@fotonower.com args[1338625592] : ('0.06125628713687163',) no score found for photo 1338625592 We are sending mail with results at report@fotonower.com args[1338625589] : ('0.06125628713687163',) no score found for photo 1338625589 We are sending mail with results at report@fotonower.com args[1338625586] : ('0.06125628713687163',) no score found for photo 1338625586 We are sending mail with results at report@fotonower.com args[1338625366] : ('0.06125628713687163',) no score found for photo 1338625366 We are sending mail with results at report@fotonower.com args[1338625363] : ('0.06125628713687163',) no score found for photo 1338625363 We are sending mail with results at report@fotonower.com args[1338625362] : ('0.06125628713687163',) no score found for photo 1338625362 We are sending mail with results at report@fotonower.com args[1338625358] : ('0.06125628713687163',) no score found for photo 1338625358 We are sending mail with results at report@fotonower.com args[1338625354] : ('0.06125628713687163',) no score found for photo 1338625354 We are sending mail with results at report@fotonower.com refus_total : 0.06125628713687163 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=20682044 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_P20682044_20-02-2025_16_39_00.pdf results_Auto_P20682044_20-02-2025_16_39_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20682044_20-02-2025_16_39_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20682044','results_Auto_P20682044_20-02-2025_16_39_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20682044_20-02-2025_16_39_00.pdf','pdf','','0.22','0.06125628713687163') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20682044]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338625615, 1338625598, 1338625595, 1338625592, 1338625589, 1338625586, 1338625366, 1338625363, 1338625362, 1338625358, 1338625354] map_info['map_portfolio_photo'] : {20682044: [1338625615, 1338625598, 1338625595, 1338625592, 1338625589, 1338625586, 1338625366, 1338625363, 1338625362, 1338625358, 1338625354, 1338625317, 1338625315, 1338625304, 1338625291, 1338625286, 1338625261, 1338625258, 1338625255, 1338625249, 1338625218, 1338625214, 1338625209, 1338625199, 1338625195, 1338625178, 1338625174, 1338625170, 1338625167, 1338625164, 1338625130, 1338624948, 1338624945, 1338624943, 1338624941]} final : False mtd_id 4302 list_pids : [1338625615, 1338625598, 1338625595, 1338625592, 1338625589, 1338625586, 1338625366, 1338625363, 1338625362, 1338625358, 1338625354] 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, '2600209') ('4302', '20682044', '1338625615', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625598', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625595', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625592', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625589', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625586', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625366', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625363', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625362', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625358', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625354', None, None, None, None, None, '2600209') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '20682044', '1338625615', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625598', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625595', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625592', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625589', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625586', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625366', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625363', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625362', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625358', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625354', None, None, None, None, None, '2600209')] time used for this insertion : 0.014711618423461914 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.4872801303863525 time spend to save output : 0.015000104904174805 total time spend for step 4 : 3.5022802352905273 step5:split_time_score Thu Feb 20 16:39:03 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 : ['20682044'] 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 : [('20682044',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20682044) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338625598: {'path': 'temp/1740065940_2490008_1338625598_e6766a0340c93b959d0d8031d3371ea4.jpg', 'extension': 'jpg'}, 1338625615: {'path': 'temp/1740065940_2490008_1338625615_01e6dd51240d9284133210e1b7919d85.jpg', 'extension': 'jpg'}, 1338625363: {'path': 'temp/1740065940_2490008_1338625363_751993cb7a95cc4b168666b9ea442296.jpg', 'extension': 'jpg'}, 1338625366: {'path': 'temp/1740065940_2490008_1338625366_da9692e52e25a1e49d13ad519b471417.jpg', 'extension': 'jpg'}, 1338625586: {'path': 'temp/1740065940_2490008_1338625586_3dfe583b5cd29dffdf8dfe62ccac8fc1.jpg', 'extension': 'jpg'}, 1338625354: {'path': 'temp/1740065940_2490008_1338625354_19680e9ec946fa8e28f0111f61112b21.jpg', 'extension': 'jpg'}, 1338625358: {'path': 'temp/1740065940_2490008_1338625358_458b4fdb263d693d70e419533009abdd.jpg', 'extension': 'jpg'}, 1338625362: {'path': 'temp/1740065940_2490008_1338625362_404a39dd13515c53f6135e0a19e71ec9.jpg', 'extension': 'jpg'}, 1338625589: {'path': 'temp/1740065940_2490008_1338625589_e17960abac152af02f8fffab7944cbad.jpg', 'extension': 'jpg'}, 1338625592: {'path': 'temp/1740065940_2490008_1338625592_3e19a64bfecbb01358a50b6020edfce3.jpg', 'extension': 'jpg'}, 1338625595: {'path': 'temp/1740065940_2490008_1338625595_5a997301821d163cbe593b84417d71e1.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 = 20682044; (('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 = 20682044 group by h (('16', 35),) 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=20682044 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 (20682044) 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 (20682044) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 20022025 20682044 Nombre de photos uploadées : 35 / 23040 (0%) 20022025 20682044 Nombre de photos taguées (types de déchets): 0 / 35 (0%) 20022025 20682044 Nombre de photos taguées (volume) : 0 / 35 (0%) [{'photo_id': 1338624948, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/16670919328dfbd2a5dc45c6f7094a33.jpg', 'username': None, 'uploaded_at': 1740065482, 'text': 'image_20022025_16_30_14_10133.jpg'}, {'photo_id': 1338624945, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/77900d5c27407da626ff27589c164284.jpg', 'username': None, 'uploaded_at': 1740065482, 'text': 'image_20022025_16_30_24_9123.jpg'}, {'photo_id': 1338624943, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/aaf9fae0ed24e9fc7d9b39bde46964e9.jpg', 'username': None, 'uploaded_at': 1740065482, 'text': 'image_20022025_16_30_34_10133.jpg'}, {'photo_id': 1338624941, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/d9dfd3ea2e184d9ade872944d443fcb4.jpg', 'username': None, 'uploaded_at': 1740065482, 'text': 'image_20022025_16_30_44_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 6.67572021484375e-06 ??????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0014371871948242188 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20682044, '2025-02-20' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1613763,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024973392486572266 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1613763 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1613763, 'dashboard_run_id': 1621518, 'mtr_portfolio_id': 20679803, 'dashboard_result_id': 8977732, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679803_20-02-2025_16_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679845, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1621518, 'mtr_portfolio_id': 20680429, 'dashboard_result_id': 8977733, '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_P20680429_20-02-2025_16_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20680435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20680436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20680437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20680438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20680439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20680440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20680441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20680442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20680443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20680444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20680445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20680446, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1621518, 'mtr_portfolio_id': 20681180, 'dashboard_result_id': 8977734, '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_P20681180_20-02-2025_16_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20681191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20681192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20681193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20681194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20681195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20681196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20681197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20681198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20681199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20681200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20681201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20681202, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1621518, 'mtr_portfolio_id': 20682044, 'dashboard_result_id': 8977735, '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_P20682044_20-02-2025_16_36_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20682074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20682075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20682076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20682077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20682078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20682079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20682080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20682081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20682082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20682083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20682084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20682085, '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 = 20679803 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2599950, 'mtr_portfolio_id': 20679803, 'created_at': datetime.datetime(2025, 2, 20, 16, 2, 59), 'result': '0.03881486633818575', 'result_long': None, 'result_double': None}] Qualite : 0.03881486633818575 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20679803 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679803_20-02-2025_16_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20679803 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679803_20-02-2025_16_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679845, 'pht': 3726}}" where mtr_portfolio_id = 20679803 and dashboard_run_id = 1621518 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20679803 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8977732, 0.03881486633818575, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679803_20-02-2025_16_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679845, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20680429 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': 2600034, 'mtr_portfolio_id': 20680429, 'created_at': datetime.datetime(2025, 2, 20, 16, 19), 'result': '0.0723532848141455', 'result_long': None, 'result_double': None}] Qualite : 0.0723532848141455 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20680429 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20680429_20-02-2025_16_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20680429 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_P20680429_20-02-2025_16_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20680435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20680436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20680437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20680438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20680439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20680440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20680441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20680442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20680443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20680444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20680445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20680446, 'pht': 3726}}" where mtr_portfolio_id = 20680429 and dashboard_run_id = 1621518 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`=20680429 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8977733, 0.0723532848141455, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20680429_20-02-2025_16_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20680435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20680436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20680437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20680438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20680439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20680440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20680441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20680442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20680443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20680444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20680445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20680446, '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 = 20681180 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': 2600112, 'mtr_portfolio_id': 20681180, 'created_at': datetime.datetime(2025, 2, 20, 16, 32, 57), 'result': '0.05477350786532818', 'result_long': None, 'result_double': None}] Qualite : 0.05477350786532818 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20681180 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20681180_20-02-2025_16_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20681180 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_P20681180_20-02-2025_16_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20681191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20681192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20681193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20681194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20681195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20681196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20681197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20681198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20681199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20681200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20681201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20681202, 'pht': 3726}}" where mtr_portfolio_id = 20681180 and dashboard_run_id = 1621518 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`=20681180 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8977734, 0.05477350786532818, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20681180_20-02-2025_16_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20681191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20681192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20681193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20681194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20681195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20681196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20681197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20681198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20681199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20681200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20681201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20681202, '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 = 20682044 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': 2600209, 'mtr_portfolio_id': 20682044, 'created_at': datetime.datetime(2025, 2, 20, 16, 38, 59), 'result': '0.06125628713687163', 'result_long': None, 'result_double': None}] Qualite : 0.06125628713687163 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20682044 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20682044_20-02-2025_16_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20682044 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_P20682044_20-02-2025_16_39_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20682074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20682075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20682076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20682077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20682078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20682079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20682080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20682081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20682082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20682083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20682084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20682085, 'pht': 3726}}" where mtr_portfolio_id = 20682044 and dashboard_run_id = 1621518 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`=20682044 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8977735, 0.06125628713687163, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20682044_20-02-2025_16_39_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20682074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20682075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20682076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20682077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20682078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20682079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20682080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20682081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20682082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20682083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20682084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20682085, '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 (20679803,20680429,20681180,20682044) result : ((1338613659,), (1338613663,), (1338613702,), (1338613713,), (1338613715,), (1338613717,), (1338613721,), (1338613724,), (1338613743,), (1338613745,), (1338613747,), (1338613757,), (1338613766,), (1338613769,), (1338613802,), (1338613813,), (1338613815,), (1338613817,), (1338613851,), (1338613853,), (1338613855,), (1338613858,), (1338613861,), (1338613863,), (1338613881,), (1338613884,), (1338613894,), (1338613900,), (1338613907,), (1338613912,), (1338613930,), (1338613935,), (1338613939,), (1338613942,), (1338613964,), (1338613966,), (1338613968,), (1338613969,), (1338613971,), (1338613973,), (1338614058,), (1338614328,), (1338614585,), (1338614960,), (1338614992,), (1338614999,), (1338615003,), (1338615005,), (1338615014,), (1338615127,), (1338615202,), (1338615362,), (1338615508,), (1338615563,), (1338615584,), (1338615754,), (1338615758,), (1338615762,), (1338615766,), (1338616355,), (1338616403,), (1338616460,), (1338616522,), (1338616653,), (1338616736,), (1338617009,), (1338617014,), (1338617020,), (1338617023,), (1338617024,), (1338617063,), (1338617036,), (1338617040,), (1338617049,), (1338617058,), (1338617710,), (1338617733,), (1338617736,), (1338618544,), (1338618582,), (1338618604,), (1338618769,), (1338618773,), (1338618780,), (1338619063,), (1338619114,), (1338619116,), (1338619136,), (1338619498,), (1338619501,), (1338619503,), (1338619505,), (1338619512,), (1338619548,), (1338619550,), (1338619554,), (1338619559,), (1338619568,), (1338619574,), (1338619689,), (1338619720,), (1338619754,), (1338619813,), (1338620405,), (1338620408,), (1338620410,), (1338620420,), (1338620433,), (1338620435,), (1338620678,), (1338620717,), (1338620738,), (1338620743,), (1338620747,), (1338620817,), (1338620820,), (1338620873,), (1338620942,), (1338621032,), (1338621330,), (1338621333,), (1338621337,), (1338621341,), (1338621345,), (1338621607,), (1338621757,), (1338621823,), (1338621867,), (1338621870,), (1338621874,), (1338622111,), (1338622114,), (1338622116,), (1338622157,), (1338622189,), (1338622194,), (1338622198,), (1338622202,), (1338622206,), (1338622208,), (1338622258,), (1338622262,), (1338622266,), (1338622269,), (1338622323,), (1338622293,), (1338622296,), (1338622299,), (1338622303,), (1338622320,), (1338622377,), (1338622380,), (1338622382,), (1338622389,), (1338622395,), (1338622398,), (1338622488,), (1338622491,), (1338622494,), (1338622498,), (1338622518,), (1338622519,), (1338622521,), (1338622523,), (1338622528,), (1338622539,), (1338622568,), (1338622573,), (1338622584,), (1338622586,), (1338622593,), (1338622613,), (1338622614,), (1338622617,), (1338622620,), (1338622623,), (1338622635,), (1338622914,), (1338623101,), (1338623288,), (1338623480,), (1338623888,), (1338623900,), (1338623902,), (1338623904,), (1338623959,), (1338624116,), (1338624194,), (1338624196,), (1338624225,), (1338624276,), (1338624363,), (1338624369,), (1338624371,), (1338624373,), (1338624375,), (1338624409,), (1338624414,), (1338624473,), (1338624515,), (1338624615,), (1338624619,), (1338624623,), (1338624627,), (1338624630,), (1338624680,), (1338624682,), (1338624684,), (1338624687,), (1338624689,), (1338624745,), (1338624757,), (1338624776,), (1338624782,), (1338624785,), (1338624789,), (1338624856,), (1338624858,), (1338624861,), (1338624864,), (1338624866,), (1338624871,), (1338624950,), (1338624941,), (1338624943,), (1338624945,), (1338624948,), (1338625130,), (1338625164,), (1338625167,), (1338625170,), (1338625174,), (1338625178,), (1338625195,), (1338625199,), (1338625209,), (1338625214,), (1338625218,), (1338625249,), (1338625255,), (1338625258,), (1338625261,), (1338625286,), (1338625291,), (1338625304,), (1338625315,), (1338625317,), (1338625354,), (1338625358,), (1338625362,), (1338625363,), (1338625366,), (1338625586,), (1338625589,), (1338625592,), (1338625595,), (1338625598,), (1338625615,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'20022025': {'nb_upload': 35, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20682044]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338625615, 1338625598, 1338625595, 1338625592, 1338625589, 1338625586, 1338625366, 1338625363, 1338625362, 1338625358, 1338625354] map_info['map_portfolio_photo'] : {20682044: [1338625615, 1338625598, 1338625595, 1338625592, 1338625589, 1338625586, 1338625366, 1338625363, 1338625362, 1338625358, 1338625354, 1338625317, 1338625315, 1338625304, 1338625291, 1338625286, 1338625261, 1338625258, 1338625255, 1338625249, 1338625218, 1338625214, 1338625209, 1338625199, 1338625195, 1338625178, 1338625174, 1338625170, 1338625167, 1338625164, 1338625130, 1338624948, 1338624945, 1338624943, 1338624941]} final : True mtd_id 4302 list_pids : [1338625615, 1338625598, 1338625595, 1338625592, 1338625589, 1338625586, 1338625366, 1338625363, 1338625362, 1338625358, 1338625354] Looping around the photos to save general results len do output : 1 /20682044Didn'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, '2600209') ('4302', '20682044', '1338625615', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625598', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625595', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625592', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625589', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625586', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625366', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625363', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625362', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625358', None, None, None, None, None, '2600209') ('4302', None, None, None, None, None, None, None, '2600209') ('4302', '20682044', '1338625354', None, None, None, None, None, '2600209') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '20682044', 'None', None, None, None, None, '2600209'), ('4302', '20682044', '1338625615', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625598', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625595', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625592', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625589', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625586', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625366', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625363', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625362', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625358', None, None, None, None, None, '2600209'), ('4302', '20682044', '1338625354', None, None, None, None, None, '2600209')] time used for this insertion : 0.01318216323852539 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3648817539215088 time spend to save output : 0.01341867446899414 total time spend for step 5 : 0.37830042839050293 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 (2600209) 2.20user 2.11system 0:08.15elapsed 52%CPU (0avgtext+0avgdata 159724maxresident)k 352inputs+11936outputs (19major+85582minor)pagefaults 0swaps