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 : 3197788 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 (2740225) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2740225) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22230703 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2740225'] with mtr_portfolio_ids : ['22230703'] and first list_photo_ids : [] new path : /proc/3197788/ Name: python3 Umask: 0002 State: R (running) Tgid: 3197788 Ngid: 0 Pid: 3197788 PPid: 3197787 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3197788 NSpid: 3197788 NSpgid: 3194892 NSsid: 3194892 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98872 kB VmRSS: 98872 kB RssAnon: 59764 kB RssFile: 39108 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 62 nonvoluntary_ctxt_switches: 139 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3197788', 'Ngid': '0', 'Pid': '3197788', 'PPid': '3197787', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3197788', 'NSpid': '3197788', 'NSpgid': '3194892', 'NSsid': '3194892', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98872 kB', 'VmRSS': '98872 kB', 'RssAnon': '59764 kB', 'RssFile': '39108 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '62', 'nonvoluntary_ctxt_switches': '139'} ('datou_batch_current', '3197788', '1106928', '0', '1106928', '865676', '98872', b'', 'marlene', '2740225') 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 (22230703) 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 (2740225 ) ) 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 (22230703) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1351192734, 'portfolio_id': 22230703}, {'photo_id': 1351192726, 'portfolio_id': 22230703}, {'photo_id': 1351192713, 'portfolio_id': 22230703}, {'photo_id': 1351192664, 'portfolio_id': 22230703}, {'photo_id': 1351192208, 'portfolio_id': 22230703}, {'photo_id': 1351192134, 'portfolio_id': 22230703}, {'photo_id': 1351190444, 'portfolio_id': 22230703}, {'photo_id': 1351190400, 'portfolio_id': 22230703}, {'photo_id': 1351189932, 'portfolio_id': 22230703}, {'photo_id': 1351189913, 'portfolio_id': 22230703}, {'photo_id': 1351189848, 'portfolio_id': 22230703}, {'photo_id': 1351189755, 'portfolio_id': 22230703}, {'photo_id': 1351189655, 'portfolio_id': 22230703}, {'photo_id': 1351189566, 'portfolio_id': 22230703}, {'photo_id': 1351189289, 'portfolio_id': 22230703}, {'photo_id': 1351189250, 'portfolio_id': 22230703}, {'photo_id': 1351189211, 'portfolio_id': 22230703}, {'photo_id': 1351189188, 'portfolio_id': 22230703}, {'photo_id': 1351189157, 'portfolio_id': 22230703}, {'photo_id': 1351189130, 'portfolio_id': 22230703}, {'photo_id': 1351188635, 'portfolio_id': 22230703}, {'photo_id': 1351188577, 'portfolio_id': 22230703}, {'photo_id': 1351188321, 'portfolio_id': 22230703}, {'photo_id': 1351188251, 'portfolio_id': 22230703}, {'photo_id': 1351188195, 'portfolio_id': 22230703}, {'photo_id': 1351187965, 'portfolio_id': 22230703}, {'photo_id': 1351187924, 'portfolio_id': 22230703}, {'photo_id': 1351187683, 'portfolio_id': 22230703}, {'photo_id': 1351187660, 'portfolio_id': 22230703}, {'photo_id': 1351187622, 'portfolio_id': 22230703}, {'photo_id': 1351187597, 'portfolio_id': 22230703}, {'photo_id': 1351187575, 'portfolio_id': 22230703}, {'photo_id': 1351187555, 'portfolio_id': 22230703}, {'photo_id': 1351187243, 'portfolio_id': 22230703}, {'photo_id': 1351187218, 'portfolio_id': 22230703}, {'photo_id': 1351187164, 'portfolio_id': 22230703}, {'photo_id': 1351186961, 'portfolio_id': 22230703}, {'photo_id': 1351186940, 'portfolio_id': 22230703}, {'photo_id': 1351186904, 'portfolio_id': 22230703}, {'photo_id': 1351186878, 'portfolio_id': 22230703}, {'photo_id': 1351186859, 'portfolio_id': 22230703}, {'photo_id': 1351186659, 'portfolio_id': 22230703}, {'photo_id': 1351186634, 'portfolio_id': 22230703}, {'photo_id': 1351186624, 'portfolio_id': 22230703}, {'photo_id': 1351186617, 'portfolio_id': 22230703}, {'photo_id': 1351186612, 'portfolio_id': 22230703}, {'photo_id': 1351186467, 'portfolio_id': 22230703}, {'photo_id': 1351186441, 'portfolio_id': 22230703}, {'photo_id': 1351186436, 'portfolio_id': 22230703}, {'photo_id': 1351186420, 'portfolio_id': 22230703}] map_portfolio_id_photo_id: {22230703: [1351192734, 1351192726, 1351192713, 1351192664, 1351192208, 1351192134, 1351190444, 1351190400, 1351189932, 1351189913, 1351189848, 1351189755, 1351189655, 1351189566, 1351189289, 1351189250, 1351189211, 1351189188, 1351189157, 1351189130, 1351188635, 1351188577, 1351188321, 1351188251, 1351188195, 1351187965, 1351187924, 1351187683, 1351187660, 1351187622, 1351187597, 1351187575, 1351187555, 1351187243, 1351187218, 1351187164, 1351186961, 1351186940, 1351186904, 1351186878, 1351186859, 1351186659, 1351186634, 1351186624, 1351186617, 1351186612, 1351186467, 1351186441, 1351186436, 1351186420]} ##### 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.018531084060668945 #### 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 Apr 10 16:14: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 (22230703) 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 : 22230703 get user id for portfolio 22230703 get sub ptf for main ptf 22230703, type 3726 and hashtags ['Carton_gris', 'environnement', 'Teint_Dans_La_Masse', 'kraft', 'mal_croppe', 'flou', 'plastique', 'autre_refus', 'cartonnette', 'metal', 'Carton_brun', 'papier'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22230703 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','Teint_Dans_La_Masse','kraft','mal_croppe','flou','plastique','autre_refus','cartonnette','metal','Carton_brun','papier')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22230703 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','Teint_Dans_La_Masse','kraft','mal_croppe','flou','plastique','autre_refus','cartonnette','metal','Carton_brun','papier')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22230703, 'sub_port_id': 22230757, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701590, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 57)}, 'mal_croppe': {'main_port_id': 22230703, 'sub_port_id': 22230758, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701591, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 22230703, 'sub_port_id': 22230759, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701592, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 57)}, 'kraft': {'main_port_id': 22230703, 'sub_port_id': 22230760, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701593, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 57)}, 'flou': {'main_port_id': 22230703, 'sub_port_id': 22230761, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701594, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 57)}, 'environnement': {'main_port_id': 22230703, 'sub_port_id': 22230762, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701595, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 57)}, 'metal': {'main_port_id': 22230703, 'sub_port_id': 22230763, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701596, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 57)}, 'Carton_brun': {'main_port_id': 22230703, 'sub_port_id': 22230764, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701597, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 57)}, 'plastique': {'main_port_id': 22230703, 'sub_port_id': 22230765, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701598, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 57)}, 'cartonnette': {'main_port_id': 22230703, 'sub_port_id': 22230766, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701599, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 57)}, 'Carton_gris': {'main_port_id': 22230703, 'sub_port_id': 22230767, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701600, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 57)}, 'papier': {'main_port_id': 22230703, 'sub_port_id': 22230768, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701601, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22230757 , 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=22230703 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 (22230757) result : ((1351188175,), (1351188176,), (1351188939,), (1351189588,), (1351190959,), (1351192521,), (1351192525,), (1351192536,), (1351192605,), (1351192607,), (1351192609,), (1351192611,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22230703) result : ((1351186420,), (1351186436,), (1351186441,), (1351186467,), (1351186612,), (1351186617,), (1351186624,), (1351186634,), (1351186659,), (1351186859,), (1351186878,), (1351186904,), (1351186940,), (1351186961,), (1351187164,), (1351187218,), (1351187243,), (1351187555,), (1351187575,), (1351187597,), (1351187622,), (1351187660,), (1351187683,), (1351187924,), (1351187965,), (1351188195,), (1351188251,), (1351188321,), (1351188577,), (1351188635,), (1351189130,), (1351189157,), (1351189188,), (1351189211,), (1351189250,), (1351189289,), (1351189566,), (1351189655,), (1351189755,), (1351189848,), (1351189913,), (1351189932,), (1351190400,), (1351190444,), (1351192134,), (1351192208,), (1351192664,), (1351192713,), (1351192726,), (1351192734,)) 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 (1351190400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22230758 , 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=22230703 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 (22230758) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22230703) result : ((1351186420,), (1351186436,), (1351186441,), (1351186467,), (1351186612,), (1351186617,), (1351186624,), (1351186634,), (1351186659,), (1351186859,), (1351186878,), (1351186904,), (1351186940,), (1351186961,), (1351187164,), (1351187218,), (1351187243,), (1351187555,), (1351187575,), (1351187597,), (1351187622,), (1351187660,), (1351187683,), (1351187924,), (1351187965,), (1351188195,), (1351188251,), (1351188321,), (1351188577,), (1351188635,), (1351189130,), (1351189157,), (1351189188,), (1351189211,), (1351189250,), (1351189289,), (1351189566,), (1351189655,), (1351189755,), (1351189848,), (1351189913,), (1351189932,), (1351190400,), (1351190444,), (1351192134,), (1351192208,), (1351192664,), (1351192713,), (1351192726,), (1351192734,)) 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 (1351190400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22230759 , 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=22230703 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 (22230759) result : ((1351187732,), (1351188134,), (1351188135,), (1351188936,), (1351189393,), (1351189561,), (1351192589,), (1351193190,), (1351193200,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22230703) result : ((1351186420,), (1351186436,), (1351186441,), (1351186467,), (1351186612,), (1351186617,), (1351186624,), (1351186634,), (1351186659,), (1351186859,), (1351186878,), (1351186904,), (1351186940,), (1351186961,), (1351187164,), (1351187218,), (1351187243,), (1351187555,), (1351187575,), (1351187597,), (1351187622,), (1351187660,), (1351187683,), (1351187924,), (1351187965,), (1351188195,), (1351188251,), (1351188321,), (1351188577,), (1351188635,), (1351189130,), (1351189157,), (1351189188,), (1351189211,), (1351189250,), (1351189289,), (1351189566,), (1351189655,), (1351189755,), (1351189848,), (1351189913,), (1351189932,), (1351190400,), (1351190444,), (1351192134,), (1351192208,), (1351192664,), (1351192713,), (1351192726,), (1351192734,)) 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 (1351190400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22230760 , 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=22230703 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 (22230760) result : ((1351191073,), (1351191074,), (1351192672,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22230703) result : ((1351186420,), (1351186436,), (1351186441,), (1351186467,), (1351186612,), (1351186617,), (1351186624,), (1351186634,), (1351186659,), (1351186859,), (1351186878,), (1351186904,), (1351186940,), (1351186961,), (1351187164,), (1351187218,), (1351187243,), (1351187555,), (1351187575,), (1351187597,), (1351187622,), (1351187660,), (1351187683,), (1351187924,), (1351187965,), (1351188195,), (1351188251,), (1351188321,), (1351188577,), (1351188635,), (1351189130,), (1351189157,), (1351189188,), (1351189211,), (1351189250,), (1351189289,), (1351189566,), (1351189655,), (1351189755,), (1351189848,), (1351189913,), (1351189932,), (1351190400,), (1351190444,), (1351192134,), (1351192208,), (1351192664,), (1351192713,), (1351192726,), (1351192734,)) 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 (1351190400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22230761 , 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=22230703 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 (22230761) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22230703) result : ((1351186420,), (1351186436,), (1351186441,), (1351186467,), (1351186612,), (1351186617,), (1351186624,), (1351186634,), (1351186659,), (1351186859,), (1351186878,), (1351186904,), (1351186940,), (1351186961,), (1351187164,), (1351187218,), (1351187243,), (1351187555,), (1351187575,), (1351187597,), (1351187622,), (1351187660,), (1351187683,), (1351187924,), (1351187965,), (1351188195,), (1351188251,), (1351188321,), (1351188577,), (1351188635,), (1351189130,), (1351189157,), (1351189188,), (1351189211,), (1351189250,), (1351189289,), (1351189566,), (1351189655,), (1351189755,), (1351189848,), (1351189913,), (1351189932,), (1351190400,), (1351190444,), (1351192134,), (1351192208,), (1351192664,), (1351192713,), (1351192726,), (1351192734,)) 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 (1351190400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22230762 , 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=22230703 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 (22230762) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22230703) result : ((1351186420,), (1351186436,), (1351186441,), (1351186467,), (1351186612,), (1351186617,), (1351186624,), (1351186634,), (1351186659,), (1351186859,), (1351186878,), (1351186904,), (1351186940,), (1351186961,), (1351187164,), (1351187218,), (1351187243,), (1351187555,), (1351187575,), (1351187597,), (1351187622,), (1351187660,), (1351187683,), (1351187924,), (1351187965,), (1351188195,), (1351188251,), (1351188321,), (1351188577,), (1351188635,), (1351189130,), (1351189157,), (1351189188,), (1351189211,), (1351189250,), (1351189289,), (1351189566,), (1351189655,), (1351189755,), (1351189848,), (1351189913,), (1351189932,), (1351190400,), (1351190444,), (1351192134,), (1351192208,), (1351192664,), (1351192713,), (1351192726,), (1351192734,)) 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 (1351190400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22230763 , 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=22230703 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 (22230763) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22230703) result : ((1351186420,), (1351186436,), (1351186441,), (1351186467,), (1351186612,), (1351186617,), (1351186624,), (1351186634,), (1351186659,), (1351186859,), (1351186878,), (1351186904,), (1351186940,), (1351186961,), (1351187164,), (1351187218,), (1351187243,), (1351187555,), (1351187575,), (1351187597,), (1351187622,), (1351187660,), (1351187683,), (1351187924,), (1351187965,), (1351188195,), (1351188251,), (1351188321,), (1351188577,), (1351188635,), (1351189130,), (1351189157,), (1351189188,), (1351189211,), (1351189250,), (1351189289,), (1351189566,), (1351189655,), (1351189755,), (1351189848,), (1351189913,), (1351189932,), (1351190400,), (1351190444,), (1351192134,), (1351192208,), (1351192664,), (1351192713,), (1351192726,), (1351192734,)) 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 (1351190400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22230764 , 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=22230703 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 (22230764) result : ((1351187746,), (1351188972,), (1351189018,), (1351189421,), (1351189673,), (1351191015,), (1351192638,), (1351192641,), (1351193311,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22230703) result : ((1351186420,), (1351186436,), (1351186441,), (1351186467,), (1351186612,), (1351186617,), (1351186624,), (1351186634,), (1351186659,), (1351186859,), (1351186878,), (1351186904,), (1351186940,), (1351186961,), (1351187164,), (1351187218,), (1351187243,), (1351187555,), (1351187575,), (1351187597,), (1351187622,), (1351187660,), (1351187683,), (1351187924,), (1351187965,), (1351188195,), (1351188251,), (1351188321,), (1351188577,), (1351188635,), (1351189130,), (1351189157,), (1351189188,), (1351189211,), (1351189250,), (1351189289,), (1351189566,), (1351189655,), (1351189755,), (1351189848,), (1351189913,), (1351189932,), (1351190400,), (1351190444,), (1351192134,), (1351192208,), (1351192664,), (1351192713,), (1351192726,), (1351192734,)) 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 (1351190400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22230765 , 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=22230703 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 (22230765) result : ((1351187752,), (1351189432,), (1351191037,), (1351191039,), (1351192669,), (1351192670,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22230703) result : ((1351186420,), (1351186436,), (1351186441,), (1351186467,), (1351186612,), (1351186617,), (1351186624,), (1351186634,), (1351186659,), (1351186859,), (1351186878,), (1351186904,), (1351186940,), (1351186961,), (1351187164,), (1351187218,), (1351187243,), (1351187555,), (1351187575,), (1351187597,), (1351187622,), (1351187660,), (1351187683,), (1351187924,), (1351187965,), (1351188195,), (1351188251,), (1351188321,), (1351188577,), (1351188635,), (1351189130,), (1351189157,), (1351189188,), (1351189211,), (1351189250,), (1351189289,), (1351189566,), (1351189655,), (1351189755,), (1351189848,), (1351189913,), (1351189932,), (1351190400,), (1351190444,), (1351192134,), (1351192208,), (1351192664,), (1351192713,), (1351192726,), (1351192734,)) 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 (1351190400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22230766 , 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=22230703 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 (22230766) result : ((1351188966,), (1351188967,), (1351188995,), (1351189642,), (1351189646,), (1351192608,), (1351192633,), (1351193253,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22230703) result : ((1351186420,), (1351186436,), (1351186441,), (1351186467,), (1351186612,), (1351186617,), (1351186624,), (1351186634,), (1351186659,), (1351186859,), (1351186878,), (1351186904,), (1351186940,), (1351186961,), (1351187164,), (1351187218,), (1351187243,), (1351187555,), (1351187575,), (1351187597,), (1351187622,), (1351187660,), (1351187683,), (1351187924,), (1351187965,), (1351188195,), (1351188251,), (1351188321,), (1351188577,), (1351188635,), (1351189130,), (1351189157,), (1351189188,), (1351189211,), (1351189250,), (1351189289,), (1351189566,), (1351189655,), (1351189755,), (1351189848,), (1351189913,), (1351189932,), (1351190400,), (1351190444,), (1351192134,), (1351192208,), (1351192664,), (1351192713,), (1351192726,), (1351192734,)) 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 (1351190400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22230767 , 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=22230703 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 (22230767) result : ((1351187739,), (1351188958,), (1351189403,), (1351189609,), (1351190984,), (1351192576,), (1351192579,), (1351192583,), (1351192597,), (1351192630,), (1351192631,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22230703) result : ((1351186420,), (1351186436,), (1351186441,), (1351186467,), (1351186612,), (1351186617,), (1351186624,), (1351186634,), (1351186659,), (1351186859,), (1351186878,), (1351186904,), (1351186940,), (1351186961,), (1351187164,), (1351187218,), (1351187243,), (1351187555,), (1351187575,), (1351187597,), (1351187622,), (1351187660,), (1351187683,), (1351187924,), (1351187965,), (1351188195,), (1351188251,), (1351188321,), (1351188577,), (1351188635,), (1351189130,), (1351189157,), (1351189188,), (1351189211,), (1351189250,), (1351189289,), (1351189566,), (1351189655,), (1351189755,), (1351189848,), (1351189913,), (1351189932,), (1351190400,), (1351190444,), (1351192134,), (1351192208,), (1351192664,), (1351192713,), (1351192726,), (1351192734,)) 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 (1351190400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22230768 , 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=22230703 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 (22230768) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22230703) result : ((1351186420,), (1351186436,), (1351186441,), (1351186467,), (1351186612,), (1351186617,), (1351186624,), (1351186634,), (1351186659,), (1351186859,), (1351186878,), (1351186904,), (1351186940,), (1351186961,), (1351187164,), (1351187218,), (1351187243,), (1351187555,), (1351187575,), (1351187597,), (1351187622,), (1351187660,), (1351187683,), (1351187924,), (1351187965,), (1351188195,), (1351188251,), (1351188321,), (1351188577,), (1351188635,), (1351189130,), (1351189157,), (1351189188,), (1351189211,), (1351189250,), (1351189289,), (1351189566,), (1351189655,), (1351189755,), (1351189848,), (1351189913,), (1351189932,), (1351190400,), (1351190444,), (1351192134,), (1351192208,), (1351192664,), (1351192713,), (1351192726,), (1351192734,)) 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 (1351190400) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22230703 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','Teint_Dans_La_Masse','kraft','mal_croppe','flou','plastique','autre_refus','cartonnette','metal','Carton_brun','papier')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22230703 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','Teint_Dans_La_Masse','kraft','mal_croppe','flou','plastique','autre_refus','cartonnette','metal','Carton_brun','papier')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22230703, 'sub_port_id': 22230769, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701602, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 59)}, 'mal_croppe': {'main_port_id': 22230703, 'sub_port_id': 22230770, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701603, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22230703, 'sub_port_id': 22230771, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701604, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 59)}, 'kraft': {'main_port_id': 22230703, 'sub_port_id': 22230772, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701605, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 59)}, 'flou': {'main_port_id': 22230703, 'sub_port_id': 22230773, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701606, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 59)}, 'environnement': {'main_port_id': 22230703, 'sub_port_id': 22230774, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701607, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 59)}, 'metal': {'main_port_id': 22230703, 'sub_port_id': 22230776, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701608, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 59)}, 'Carton_brun': {'main_port_id': 22230703, 'sub_port_id': 22230777, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701609, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 59)}, 'plastique': {'main_port_id': 22230703, 'sub_port_id': 22230778, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701610, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 59)}, 'cartonnette': {'main_port_id': 22230703, 'sub_port_id': 22230779, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701611, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 59)}, 'Carton_gris': {'main_port_id': 22230703, 'sub_port_id': 22230780, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701612, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 59)}, 'papier': {'main_port_id': 22230703, 'sub_port_id': 22230781, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14701613, 'last_updated_at': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 16, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22230769,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22230757 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22230770,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22230758 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22230771,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22230759 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22230772,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22230760 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22230773,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22230761 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22230774,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22230762 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22230776,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22230763 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22230777,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22230764 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22230778,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22230765 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22230779,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22230766 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22230780,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22230767 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22230781,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22230768 lien utilise dans velours : https://www.fotonower.com/velours/22230769,22230770,22230771,22230772,22230773,22230774,22230776,22230777,22230778,22230779,22230780,22230781?tags=autre_refus,mal_croppe,Teint_Dans_La_Masse,kraft,flou,environnement,metal,Carton_brun,plastique,cartonnette,Carton_gris,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22230703]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351192734, 1351192726, 1351192713, 1351192664] map_info['map_portfolio_photo'] : {22230703: [1351192734, 1351192726, 1351192713, 1351192664, 1351192208, 1351192134, 1351190444, 1351190400, 1351189932, 1351189913, 1351189848, 1351189755, 1351189655, 1351189566, 1351189289, 1351189250, 1351189211, 1351189188, 1351189157, 1351189130, 1351188635, 1351188577, 1351188321, 1351188251, 1351188195, 1351187965, 1351187924, 1351187683, 1351187660, 1351187622, 1351187597, 1351187575, 1351187555, 1351187243, 1351187218, 1351187164, 1351186961, 1351186940, 1351186904, 1351186878, 1351186859, 1351186659, 1351186634, 1351186624, 1351186617, 1351186612, 1351186467, 1351186441, 1351186436, 1351186420]} final : False mtd_id 4302 list_pids : [1351192734, 1351192726, 1351192713, 1351192664] Looping around the photos to save general results len do output : 1 /22230703. 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, '2740225') ('4302', '22230703', '1351192734', None, None, None, None, None, '2740225') ('4302', None, None, None, None, None, None, None, '2740225') ('4302', '22230703', '1351192726', None, None, None, None, None, '2740225') ('4302', None, None, None, None, None, None, None, '2740225') ('4302', '22230703', '1351192713', None, None, None, None, None, '2740225') ('4302', None, None, None, None, None, None, None, '2740225') ('4302', '22230703', '1351192664', None, None, None, None, None, '2740225') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '22230703', "{'autre_refus': 22230757, 'mal_croppe': 22230758, 'Teint_Dans_La_Masse': 22230759, 'kraft': 22230760, 'flou': 22230761, 'environnement': 22230762, 'metal': 22230763, 'Carton_brun': 22230764, 'plastique': 22230765, 'cartonnette': 22230766, 'Carton_gris': 22230767, 'papier': 22230768}", None, None, None, None, '2740225'), ('4302', '22230703', '1351192734', None, None, None, None, None, '2740225'), ('4302', '22230703', '1351192726', None, None, None, None, None, '2740225'), ('4302', '22230703', '1351192713', None, None, None, None, None, '2740225'), ('4302', '22230703', '1351192664', None, None, None, None, None, '2740225')] time used for this insertion : 0.017802715301513672 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3503642082214355 time spend to save output : 0.01805281639099121 total time spend for step 1 : 1.3684170246124268 step2:final Thu Apr 10 16:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22230703) 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 22230703 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351186467,1351186441,1351186436,1351186420,1351186659,1351186634,1351186624,1351186617,1351186612,1351186961,1351186940,1351186904,1351186878,1351186859,1351187243,1351187218,1351187164,1351187683,1351187660,1351187622,1351187597,1351187575,1351187555,1351188321,1351188251,1351188195,1351187965,1351187924,1351188635,1351188577,1351189289,1351189250,1351189211,1351189188,1351189157,1351189130,1351189932,1351189913,1351189848,1351189755,1351189655,1351189566,1351190444,1351190400,1351192208,1351192134,1351192734,1351192726,1351192713,1351192664); 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([22230703]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351192734: ('0.03056895329507104',), 1351192726: ('0.03056895329507104',), 1351192713: ('0.03056895329507104',), 1351192664: ('0.03056895329507104',)} new output for save of step final : {1351192734: ('0.03056895329507104',), 1351192726: ('0.03056895329507104',), 1351192713: ('0.03056895329507104',), 1351192664: ('0.03056895329507104',)} [1351192734, 1351192726, 1351192713, 1351192664] map_info['map_portfolio_photo'] : {22230703: [1351192734, 1351192726, 1351192713, 1351192664, 1351192208, 1351192134, 1351190444, 1351190400, 1351189932, 1351189913, 1351189848, 1351189755, 1351189655, 1351189566, 1351189289, 1351189250, 1351189211, 1351189188, 1351189157, 1351189130, 1351188635, 1351188577, 1351188321, 1351188251, 1351188195, 1351187965, 1351187924, 1351187683, 1351187660, 1351187622, 1351187597, 1351187575, 1351187555, 1351187243, 1351187218, 1351187164, 1351186961, 1351186940, 1351186904, 1351186878, 1351186859, 1351186659, 1351186634, 1351186624, 1351186617, 1351186612, 1351186467, 1351186441, 1351186436, 1351186420]} final : False mtd_id 4302 list_pids : [1351192734, 1351192726, 1351192713, 1351192664] Looping around the photos to save general results len do output : 4 /1351192734.Didn't retrieve data . /1351192726.Didn't retrieve data . /1351192713.Didn't retrieve data . /1351192664.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, '2740225') ('4302', '22230703', '1351192734', None, None, None, None, None, '2740225') ('4302', None, None, None, None, None, None, None, '2740225') ('4302', '22230703', '1351192726', None, None, None, None, None, '2740225') ('4302', None, None, None, None, None, None, None, '2740225') ('4302', '22230703', '1351192713', None, None, None, None, None, '2740225') ('4302', None, None, None, None, None, None, None, '2740225') ('4302', '22230703', '1351192664', None, None, None, None, None, '2740225') 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', '22230703', '1351192734', '0.03056895329507104', None, None, None, None, '2740225'), ('4302', '22230703', '1351192726', '0.03056895329507104', None, None, None, None, '2740225'), ('4302', '22230703', '1351192713', '0.03056895329507104', None, None, None, None, '2740225'), ('4302', '22230703', '1351192664', '0.03056895329507104', None, None, None, None, '2740225')] time used for this insertion : 0.012644767761230469 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07097554206848145 time spend to save output : 0.013058185577392578 total time spend for step 2 : 0.08403372764587402 step3:velours_tree Thu Apr 10 16:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22230703: [{'autre_refus': 22230757, 'mal_croppe': 22230758, 'Teint_Dans_La_Masse': 22230759, 'kraft': 22230760, 'flou': 22230761, 'environnement': 22230762, 'metal': 22230763, 'Carton_brun': 22230764, 'plastique': 22230765, 'cartonnette': 22230766, 'Carton_gris': 22230767, 'papier': 22230768}]} input_args_next_step : {22230703: ()} output_args : {22230703: [{'autre_refus': 22230757, 'mal_croppe': 22230758, 'Teint_Dans_La_Masse': 22230759, 'kraft': 22230760, 'flou': 22230761, 'environnement': 22230762, 'metal': 22230763, 'Carton_brun': 22230764, 'plastique': 22230765, 'cartonnette': 22230766, 'Carton_gris': 22230767, 'papier': 22230768}]} args : 22230703 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 : ({'autre_refus': 22230757, 'mal_croppe': 22230758, 'Teint_Dans_La_Masse': 22230759, 'kraft': 22230760, 'flou': 22230761, 'environnement': 22230762, 'metal': 22230763, 'Carton_brun': 22230764, 'plastique': 22230765, 'cartonnette': 22230766, 'Carton_gris': 22230767, 'papier': 22230768},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22230703) 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([22230703]) 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.34128308296203613 time spend to save output : 6.198883056640625e-05 total time spend for step 3 : 0.34134507179260254 step4:send_mail_cod Thu Apr 10 16:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1351192734: ('0.03056895329507104',), 1351192726: ('0.03056895329507104',), 1351192713: ('0.03056895329507104',), 1351192664: ('0.03056895329507104',)} input_args_next_step : {1351192734: ()} output_args : {1351192734: ('0.03056895329507104',), 1351192726: ('0.03056895329507104',), 1351192713: ('0.03056895329507104',), 1351192664: ('0.03056895329507104',)} args : 1351192734 depend.output_id : 0 input_args_next_step : {1351192734: ('0.03056895329507104',), 1351192726: ()} output_args : {1351192734: ('0.03056895329507104',), 1351192726: ('0.03056895329507104',), 1351192713: ('0.03056895329507104',), 1351192664: ('0.03056895329507104',)} args : 1351192726 depend.output_id : 0 input_args_next_step : {1351192734: ('0.03056895329507104',), 1351192726: ('0.03056895329507104',), 1351192713: ()} output_args : {1351192734: ('0.03056895329507104',), 1351192726: ('0.03056895329507104',), 1351192713: ('0.03056895329507104',), 1351192664: ('0.03056895329507104',)} args : 1351192713 depend.output_id : 0 input_args_next_step : {1351192734: ('0.03056895329507104',), 1351192726: ('0.03056895329507104',), 1351192713: ('0.03056895329507104',), 1351192664: ()} output_args : {1351192734: ('0.03056895329507104',), 1351192726: ('0.03056895329507104',), 1351192713: ('0.03056895329507104',), 1351192664: ('0.03056895329507104',)} args : 1351192664 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 : {22230703: [{'autre_refus': 22230757, 'mal_croppe': 22230758, 'Teint_Dans_La_Masse': 22230759, 'kraft': 22230760, 'flou': 22230761, 'environnement': 22230762, 'metal': 22230763, 'Carton_brun': 22230764, 'plastique': 22230765, 'cartonnette': 22230766, 'Carton_gris': 22230767, 'papier': 22230768}]} input_args_next_step : {1351192734: ('0.03056895329507104',), 1351192726: ('0.03056895329507104',), 1351192713: ('0.03056895329507104',), 1351192664: ('0.03056895329507104',), 22230703: ()} output_args : {22230703: [{'autre_refus': 22230757, 'mal_croppe': 22230758, 'Teint_Dans_La_Masse': 22230759, 'kraft': 22230760, 'flou': 22230761, 'environnement': 22230762, 'metal': 22230763, 'Carton_brun': 22230764, 'plastique': 22230765, 'cartonnette': 22230766, 'Carton_gris': 22230767, 'papier': 22230768}]} args : 22230703 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 :5, first value : ('0.03056895329507104',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22230703) 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 (1351192734,1351192726,1351192713,1351192664) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351192664 begin to download photo : 1351192713 begin to download photo : 1351192726 begin to download photo : 1351192734 download finish for photo 1351192734 download finish for photo 1351192664 download finish for photo 1351192713 download finish for photo 1351192726 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P22230703_10-04-2025_16_14_58.pdf 22230757 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=22230757 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351188175: '1744293932_304874_1351187218_cb73166dc8b6ae8b698b44f9a806c6d1_rle_crop_3754203930_0.png', 1351188176: '1744293932_304874_1351187218_cb73166dc8b6ae8b698b44f9a806c6d1_rle_crop_3754203933_0.png', 1351188939: '1744293952_305324_1351187243_b9298710f886130b0b54ee9402d8fdc4_rle_crop_3754206574_0.png', 1351189588: '1744294046_307191_1351187243_b9298710f886130b0b54ee9402d8fdc4_rle_crop_3754206574_0.png', 1351190959: '1744294156_310559_1351188251_0049aed77fd48bcdead9cfa02c5422ce_rle_crop_3754210951_0.png', 1351192521: '1744294285_311217_1351189932_c2019c815eb14f582fc24781974fcfec_rle_crop_3754219861_0.png', 1351192525: '1744294285_311217_1351189188_ab9ca778fe375efb27f30233d16f797a_rle_crop_3754220451_0.png', 1351192536: '1744294285_311217_1351189130_765b61c8c76357b2c8a98b0ead619507_rle_crop_3754220937_0.png', 1351192605: '1744294279_313011_1351190444_10bb030df408afc446b88beef5dfd4a9_rle_crop_3754220441_0.png', 1351192607: '1744294279_313011_1351189848_0c3f0a5568492e0ccd458707f19125dc_rle_crop_3754221053_0.png', 1351192609: '1744294279_313011_1351189848_0c3f0a5568492e0ccd458707f19125dc_rle_crop_3754221054_0.png', 1351192611: '1744294279_313011_1351189655_8be3538ed63b71e197575bfdec38b29b_rle_crop_3754221261_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/cc245472a6f4306b722f6f0e3a6eb716_52977372.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/2f24daa460842aa8aa4f7567e22fbaad_68102820.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/3388a0afd625189ada0a8150354d851b_20446417.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/3388a0afd625189ada0a8150354d851b_22567510.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/feb33a7e2e3713d97ad3d9de44191c36_29000986.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/5bc679cc6b3a9d86ee7f8425a77d5219_55478533.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/8c9e46607d6729997d9d32dc82981626_88721025.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/de9559dd9546ed63029433f1d1a4674a_18656574.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/e0d9fc7ebe650a0a1a7af5e43be7790c_16717014.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/2a92c019aade9855ea866addb9530118_37396667.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/a33b09cda719fabd39b51ac3d9b4eaa1_35226067.png change filename to text .imagette222307571744294498/ imagette222307571744294498/1744294285_311217_1351189932_c2019c815eb14f582fc24781974fcfec_rle_crop_3754219861_0.png.png imagette222307571744294498/1744294285_311217_1351189130_765b61c8c76357b2c8a98b0ead619507_rle_crop_3754220937_0.png.png imagette222307571744294498/1744294279_313011_1351189848_0c3f0a5568492e0ccd458707f19125dc_rle_crop_3754221054_0.png.png imagette222307571744294498/1744294279_313011_1351189848_0c3f0a5568492e0ccd458707f19125dc_rle_crop_3754221053_0.png.png imagette222307571744294498/1744294285_311217_1351189188_ab9ca778fe375efb27f30233d16f797a_rle_crop_3754220451_0.png.png imagette222307571744294498/1744294156_310559_1351188251_0049aed77fd48bcdead9cfa02c5422ce_rle_crop_3754210951_0.png.png imagette222307571744294498/1744293932_304874_1351187218_cb73166dc8b6ae8b698b44f9a806c6d1_rle_crop_3754203930_0.png.png imagette222307571744294498/1744294046_307191_1351187243_b9298710f886130b0b54ee9402d8fdc4_rle_crop_3754206574_0.png.png imagette222307571744294498/1744294279_313011_1351190444_10bb030df408afc446b88beef5dfd4a9_rle_crop_3754220441_0.png.png imagette222307571744294498/1744293952_305324_1351187243_b9298710f886130b0b54ee9402d8fdc4_rle_crop_3754206574_0.png.png imagette222307571744294498/1744294279_313011_1351189655_8be3538ed63b71e197575bfdec38b29b_rle_crop_3754221261_0.png.png imagette222307571744294498/1744293932_304874_1351187218_cb73166dc8b6ae8b698b44f9a806c6d1_rle_crop_3754203933_0.png.png imagette222307581744294499/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/c2397e20287ba1d796929a3500d44423_1670289.png imagette222307571744294498 22230758 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=22230758 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222307581744294499 22230760 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=22230760 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351191073: '1744294156_310559_1351188251_0049aed77fd48bcdead9cfa02c5422ce_rle_crop_3754210949_0.png', 1351191074: '1744294156_310559_1351188195_8c673c280f4c81c05f787fb9e56c980b_rle_crop_3754210993_0.png', 1351192672: '1744294279_313011_1351190444_10bb030df408afc446b88beef5dfd4a9_rle_crop_3754220438_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/c94de99f7852d6bbfdd73eec9120d972_60484610.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/dcc117c0492385d2416e8c7087c37709_75919638.png change filename to text .imagette222307601744294499/ imagette222307601744294499/1744294279_313011_1351190444_10bb030df408afc446b88beef5dfd4a9_rle_crop_3754220438_0.png.png imagette222307601744294499/1744294156_310559_1351188195_8c673c280f4c81c05f787fb9e56c980b_rle_crop_3754210993_0.png.png imagette222307601744294499/1744294156_310559_1351188251_0049aed77fd48bcdead9cfa02c5422ce_rle_crop_3754210949_0.png.png imagette222307611744294499/ imagette222307631744294499/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/13992ac1ecf5cf013f41f46a03a202f8_35568952.png imagette222307601744294499 22230761 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=22230761 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222307611744294499 22230763 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=22230763 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222307631744294499 22230765 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=22230765 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351187752: '1744293833_302620_1351186420_5f393a17310593240d549f2c99119f04_rle_crop_3754202445_0.png', 1351189432: '1744293992_306392_1351186420_5f393a17310593240d549f2c99119f04_rle_crop_3754202445_0.png', 1351191037: '1744294156_310559_1351188251_0049aed77fd48bcdead9cfa02c5422ce_rle_crop_3754210948_0.png', 1351191039: '1744294156_310559_1351188195_8c673c280f4c81c05f787fb9e56c980b_rle_crop_3754210990_0.png', 1351192669: '1744294279_313011_1351189848_0c3f0a5568492e0ccd458707f19125dc_rle_crop_3754221060_0.png', 1351192670: '1744294279_313011_1351189755_efaa495e3e3253e1111297a276938772_rle_crop_3754221081_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/4c0a8649364b136566ccbe2fc8c3e581_60017729.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/4c0a8649364b136566ccbe2fc8c3e581_85282179.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/4b68fb01b1e4559dd6b715e93afcc1c7_4919456.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/585a98a343ee3da89de3207a3c5b159f_94023632.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/d31976acea1bbcd8fcb8355a29027dc5_37507714.png change filename to text .imagette222307651744294499/ imagette222307651744294499/1744293833_302620_1351186420_5f393a17310593240d549f2c99119f04_rle_crop_3754202445_0.png.png imagette222307651744294499/1744294279_313011_1351189848_0c3f0a5568492e0ccd458707f19125dc_rle_crop_3754221060_0.png.png imagette222307651744294499/1744294156_310559_1351188251_0049aed77fd48bcdead9cfa02c5422ce_rle_crop_3754210948_0.png.png imagette222307651744294499/1744294279_313011_1351189755_efaa495e3e3253e1111297a276938772_rle_crop_3754221081_0.png.png imagette222307651744294499/1744294156_310559_1351188195_8c673c280f4c81c05f787fb9e56c980b_rle_crop_3754210990_0.png.png imagette222307651744294499/1744293992_306392_1351186420_5f393a17310593240d549f2c99119f04_rle_crop_3754202445_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/0dec20cb1357734ec358ad4f73f2a433_20987170.png imagette222307651744294499 22230766 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=22230766 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351188966: '1744293952_305324_1351186940_635052a641fedec756c64e5f612de37f_rle_crop_3754206587_0.png', 1351188967: '1744293952_305324_1351186859_11980108bee54b22afee942b1047fff1_rle_crop_3754207580_0.png', 1351188995: '1744293974_305889_1351186617_6363ae20e418ae77d7e6324cf91c8621_rle_crop_3754207486_0.png', 1351189642: '1744294046_307191_1351186940_635052a641fedec756c64e5f612de37f_rle_crop_3754206587_0.png', 1351189646: '1744294046_307191_1351186859_11980108bee54b22afee942b1047fff1_rle_crop_3754207580_0.png', 1351192608: '1744294285_311217_1351189130_765b61c8c76357b2c8a98b0ead619507_rle_crop_3754220938_0.png', 1351192633: '1744294279_313011_1351189848_0c3f0a5568492e0ccd458707f19125dc_rle_crop_3754221059_0.png', 1351193253: '1744294407_312414_1351192208_51262272215d8687d66ac2901e97ab88_rle_crop_3754227050_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/60b028cd43d96f173eab3f54e7ca6833_34859857.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/8a685de80b8dd726937ce53d57f27d39_59525054.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/301ad628f43f379bde8f2da1d82d6123_71874606.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/60b028cd43d96f173eab3f54e7ca6833_99273009.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/8a685de80b8dd726937ce53d57f27d39_97548887.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/f7527413756b6c39341d3c089b353709_64511109.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/d6b4decc9b073920dc479c5e94de2a37_53882107.png change filename to text .imagette222307661744294500/ imagette222307661744294500/1744294285_311217_1351189130_765b61c8c76357b2c8a98b0ead619507_rle_crop_3754220938_0.png.png imagette222307661744294500/1744293974_305889_1351186617_6363ae20e418ae77d7e6324cf91c8621_rle_crop_3754207486_0.png.png imagette222307661744294500/1744294407_312414_1351192208_51262272215d8687d66ac2901e97ab88_rle_crop_3754227050_0.png.png imagette222307661744294500/1744294279_313011_1351189848_0c3f0a5568492e0ccd458707f19125dc_rle_crop_3754221059_0.png.png imagette222307661744294500/1744294046_307191_1351186859_11980108bee54b22afee942b1047fff1_rle_crop_3754207580_0.png.png imagette222307661744294500/1744293952_305324_1351186859_11980108bee54b22afee942b1047fff1_rle_crop_3754207580_0.png.png imagette222307661744294500/1744293952_305324_1351186940_635052a641fedec756c64e5f612de37f_rle_crop_3754206587_0.png.png imagette222307661744294500/1744294046_307191_1351186940_635052a641fedec756c64e5f612de37f_rle_crop_3754206587_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/55c2791948fc797acf2031ee971b9399_93391785.png imagette222307661744294500 22230759 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=22230759 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351187732: '1744293833_302620_1351186436_985bde3851cec7dff9427e7235a62e7e_rle_crop_3754202129_0.png', 1351188134: '1744293932_304874_1351187218_cb73166dc8b6ae8b698b44f9a806c6d1_rle_crop_3754203934_0.png', 1351188135: '1744293932_304874_1351187164_4d812b3c9f2d9df2340a4a345e07121f_rle_crop_3754204339_0.png', 1351188936: '1744293952_305324_1351187243_b9298710f886130b0b54ee9402d8fdc4_rle_crop_3754206572_0.png', 1351189393: '1744293992_306392_1351186436_985bde3851cec7dff9427e7235a62e7e_rle_crop_3754202129_0.png', 1351189561: '1744294046_307191_1351187243_b9298710f886130b0b54ee9402d8fdc4_rle_crop_3754206572_0.png', 1351192589: '1744294279_313011_1351189755_efaa495e3e3253e1111297a276938772_rle_crop_3754221087_0.png', 1351193190: '1744294407_312414_1351192208_51262272215d8687d66ac2901e97ab88_rle_crop_3754227051_0.png', 1351193200: '1744294407_312414_1351190400_a8919426e9785f7bfe4359fcc860a435_rle_crop_3754227274_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/e8c8495e779a029df8d555bec30b8275_30385537.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/87990bc6df721f07e3d9b352348cffca_91312548.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/bbba8cfde98f7f0f80b50e4dbfe6de43_18086625.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/bce1410dc8f3bcbf568d79e33336b8a6_31089364.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/e8c8495e779a029df8d555bec30b8275_51096837.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/bce1410dc8f3bcbf568d79e33336b8a6_78561196.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/0e2ffd94f10c30f66dc3f644da347aa8_75731467.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/03b905ed3d3aeb682a2f02c7c0e14034_65519062.png change filename to text .imagette222307591744294500/ imagette222307591744294500/1744293952_305324_1351187243_b9298710f886130b0b54ee9402d8fdc4_rle_crop_3754206572_0.png.png imagette222307591744294500/1744293833_302620_1351186436_985bde3851cec7dff9427e7235a62e7e_rle_crop_3754202129_0.png.png imagette222307591744294500/1744294046_307191_1351187243_b9298710f886130b0b54ee9402d8fdc4_rle_crop_3754206572_0.png.png imagette222307591744294500/1744294279_313011_1351189755_efaa495e3e3253e1111297a276938772_rle_crop_3754221087_0.png.png imagette222307591744294500/1744293932_304874_1351187218_cb73166dc8b6ae8b698b44f9a806c6d1_rle_crop_3754203934_0.png.png imagette222307591744294500/1744294407_312414_1351192208_51262272215d8687d66ac2901e97ab88_rle_crop_3754227051_0.png.png imagette222307591744294500/1744293932_304874_1351187164_4d812b3c9f2d9df2340a4a345e07121f_rle_crop_3754204339_0.png.png imagette222307591744294500/1744294407_312414_1351190400_a8919426e9785f7bfe4359fcc860a435_rle_crop_3754227274_0.png.png imagette222307591744294500/1744293992_306392_1351186436_985bde3851cec7dff9427e7235a62e7e_rle_crop_3754202129_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/469f4e96ad8cec1f43cbd89973139331_70220399.png imagette222307591744294500 22230764 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=22230764 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351187746: '1744293833_302620_1351186467_1a9c396acb528122f33ad787cfee1bd2_rle_crop_3754200470_0.png', 1351188972: '1744293952_305324_1351186904_1209c7a151c1e1f7fde43806f8976830_rle_crop_3754206757_0.png', 1351189018: '1744293974_305889_1351186634_f618f22aafcdc1afe8606c8caff0a38c_rle_crop_3754206768_0.png', 1351189421: '1744293992_306392_1351186467_1a9c396acb528122f33ad787cfee1bd2_rle_crop_3754200470_0.png', 1351189673: '1744294046_307191_1351186904_1209c7a151c1e1f7fde43806f8976830_rle_crop_3754206757_0.png', 1351191015: '1744294156_310559_1351188195_8c673c280f4c81c05f787fb9e56c980b_rle_crop_3754210992_0.png', 1351192638: '1744294279_313011_1351190444_10bb030df408afc446b88beef5dfd4a9_rle_crop_3754220440_0.png', 1351192641: '1744294279_313011_1351189913_a0eec63ebac0cb39cc4666465e4c0acb_rle_crop_3754220686_0.png', 1351193311: '1744294407_312414_1351192208_51262272215d8687d66ac2901e97ab88_rle_crop_3754227054_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/45d5216ef08f2b662db1663ba9d9e427_45125295.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b35aa890600da438c81f9c55a6035dc3_83930412.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/969da08a8d12c7340489dbb60957cf9b_65652698.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/45d5216ef08f2b662db1663ba9d9e427_16773134.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b35aa890600da438c81f9c55a6035dc3_58388901.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/9893534342cd796e577cac68bc5f0287_57824980.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/3a1a64c57eca721ba3e70020120fef38_14861375.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/35b25b8fc935a3fc8754de56ca8adbbe_31118599.png change filename to text .imagette222307641744294501/ imagette222307641744294501/1744294279_313011_1351190444_10bb030df408afc446b88beef5dfd4a9_rle_crop_3754220440_0.png.png imagette222307641744294501/1744293992_306392_1351186467_1a9c396acb528122f33ad787cfee1bd2_rle_crop_3754200470_0.png.png imagette222307641744294501/1744294279_313011_1351189913_a0eec63ebac0cb39cc4666465e4c0acb_rle_crop_3754220686_0.png.png imagette222307641744294501/1744294407_312414_1351192208_51262272215d8687d66ac2901e97ab88_rle_crop_3754227054_0.png.png imagette222307641744294501/1744293952_305324_1351186904_1209c7a151c1e1f7fde43806f8976830_rle_crop_3754206757_0.png.png imagette222307641744294501/1744294156_310559_1351188195_8c673c280f4c81c05f787fb9e56c980b_rle_crop_3754210992_0.png.png imagette222307641744294501/1744294046_307191_1351186904_1209c7a151c1e1f7fde43806f8976830_rle_crop_3754206757_0.png.png imagette222307641744294501/1744293833_302620_1351186467_1a9c396acb528122f33ad787cfee1bd2_rle_crop_3754200470_0.png.png imagette222307641744294501/1744293974_305889_1351186634_f618f22aafcdc1afe8606c8caff0a38c_rle_crop_3754206768_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/790cc80b6a4d055866ddeccda7197741_65461406.png imagette222307641744294501 22230767 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=22230767 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351187739: '1744293833_302620_1351186436_985bde3851cec7dff9427e7235a62e7e_rle_crop_3754202132_0.png', 1351188958: '1744293952_305324_1351186904_1209c7a151c1e1f7fde43806f8976830_rle_crop_3754206758_0.png', 1351189403: '1744293992_306392_1351186436_985bde3851cec7dff9427e7235a62e7e_rle_crop_3754202132_0.png', 1351189609: '1744294046_307191_1351186904_1209c7a151c1e1f7fde43806f8976830_rle_crop_3754206758_0.png', 1351190984: '1744294156_310559_1351187965_f598f8b60bcf73039e84ba41a0516e8d_rle_crop_3754211062_0.png', 1351192576: '1744294285_311217_1351189932_c2019c815eb14f582fc24781974fcfec_rle_crop_3754219862_0.png', 1351192579: '1744294285_311217_1351189157_8a43b77bc7f8c68f2a3c01feb679ad13_rle_crop_3754220659_0.png', 1351192583: '1744294285_311217_1351189157_8a43b77bc7f8c68f2a3c01feb679ad13_rle_crop_3754220651_0.png', 1351192597: '1744294285_311217_1351189130_765b61c8c76357b2c8a98b0ead619507_rle_crop_3754220947_0.png', 1351192630: '1744294279_313011_1351189913_a0eec63ebac0cb39cc4666465e4c0acb_rle_crop_3754220685_0.png', 1351192631: '1744294279_313011_1351189913_a0eec63ebac0cb39cc4666465e4c0acb_rle_crop_3754220692_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b1564d888a0c48be87ccf3d0c6ef8ff9_6376106.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/007f4ca2f7e1fa71d479b4c0068ea5db_93002382.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b1564d888a0c48be87ccf3d0c6ef8ff9_1823832.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/007f4ca2f7e1fa71d479b4c0068ea5db_66137148.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/79774bb7485950bf47feb632cda2a67e_60075626.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/6e207428f7137674167b6f8b4920a75d_75444216.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/f2adc28dfb22281e73162b7a9e74fc61_97265817.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/28f8fc9f5af4d6358505d35bada49be6_19001899.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/390fc3002e98818af7f3cd4ee58a6ba5_55025184.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/f143d8bfb35c4841e6f1637b47a62e3f_71382392.png change filename to text .imagette222307671744294501/ imagette222307671744294501/1744293952_305324_1351186904_1209c7a151c1e1f7fde43806f8976830_rle_crop_3754206758_0.png.png imagette222307671744294501/1744294285_311217_1351189932_c2019c815eb14f582fc24781974fcfec_rle_crop_3754219862_0.png.png imagette222307671744294501/1744294279_313011_1351189913_a0eec63ebac0cb39cc4666465e4c0acb_rle_crop_3754220692_0.png.png imagette222307671744294501/1744294046_307191_1351186904_1209c7a151c1e1f7fde43806f8976830_rle_crop_3754206758_0.png.png imagette222307671744294501/1744294285_311217_1351189157_8a43b77bc7f8c68f2a3c01feb679ad13_rle_crop_3754220659_0.png.png imagette222307671744294501/1744294279_313011_1351189913_a0eec63ebac0cb39cc4666465e4c0acb_rle_crop_3754220685_0.png.png imagette222307671744294501/1744294285_311217_1351189157_8a43b77bc7f8c68f2a3c01feb679ad13_rle_crop_3754220651_0.png.png imagette222307671744294501/1744293833_302620_1351186436_985bde3851cec7dff9427e7235a62e7e_rle_crop_3754202132_0.png.png imagette222307671744294501/1744294156_310559_1351187965_f598f8b60bcf73039e84ba41a0516e8d_rle_crop_3754211062_0.png.png imagette222307671744294501/1744294285_311217_1351189130_765b61c8c76357b2c8a98b0ead619507_rle_crop_3754220947_0.png.png imagette222307671744294501/1744293992_306392_1351186436_985bde3851cec7dff9427e7235a62e7e_rle_crop_3754202132_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/273d9228cdf0de08f569205b42922b7f_8144152.png imagette222307671744294501 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22230703 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22230769,22230770,22230771,22230772,22230773,22230774,22230776,22230777,22230778,22230779,22230780,22230781?tags=autre_refus,mal_croppe,Teint_Dans_La_Masse,kraft,flou,environnement,metal,Carton_brun,plastique,cartonnette,Carton_gris,papier your option no_mail is active, we will not send the real mail to your client args[1351192734] : ('0.03056895329507104',) no score found for photo 1351192734 We are sending mail with results at report@fotonower.com args[1351192726] : ('0.03056895329507104',) no score found for photo 1351192726 We are sending mail with results at report@fotonower.com args[1351192713] : ('0.03056895329507104',) no score found for photo 1351192713 We are sending mail with results at report@fotonower.com args[1351192664] : ('0.03056895329507104',) no score found for photo 1351192664 We are sending mail with results at report@fotonower.com refus_total : 0.03056895329507104 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=22230703 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_P22230703_10-04-2025_16_14_58.pdf results_Auto_P22230703_10-04-2025_16_14_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22230703_10-04-2025_16_14_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22230703','results_Auto_P22230703_10-04-2025_16_14_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22230703_10-04-2025_16_14_58.pdf','pdf','','0.19','0.03056895329507104') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22230703]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351192734, 1351192726, 1351192713, 1351192664] map_info['map_portfolio_photo'] : {22230703: [1351192734, 1351192726, 1351192713, 1351192664, 1351192208, 1351192134, 1351190444, 1351190400, 1351189932, 1351189913, 1351189848, 1351189755, 1351189655, 1351189566, 1351189289, 1351189250, 1351189211, 1351189188, 1351189157, 1351189130, 1351188635, 1351188577, 1351188321, 1351188251, 1351188195, 1351187965, 1351187924, 1351187683, 1351187660, 1351187622, 1351187597, 1351187575, 1351187555, 1351187243, 1351187218, 1351187164, 1351186961, 1351186940, 1351186904, 1351186878, 1351186859, 1351186659, 1351186634, 1351186624, 1351186617, 1351186612, 1351186467, 1351186441, 1351186436, 1351186420]} final : False mtd_id 4302 list_pids : [1351192734, 1351192726, 1351192713, 1351192664] 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, '2740225') ('4302', '22230703', '1351192734', None, None, None, None, None, '2740225') ('4302', None, None, None, None, None, None, None, '2740225') ('4302', '22230703', '1351192726', None, None, None, None, None, '2740225') ('4302', None, None, None, None, None, None, None, '2740225') ('4302', '22230703', '1351192713', None, None, None, None, None, '2740225') ('4302', None, None, None, None, None, None, None, '2740225') ('4302', '22230703', '1351192664', None, None, None, None, None, '2740225') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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', '22230703', '1351192734', None, None, None, None, None, '2740225'), ('4302', '22230703', '1351192726', None, None, None, None, None, '2740225'), ('4302', '22230703', '1351192713', None, None, None, None, None, '2740225'), ('4302', '22230703', '1351192664', None, None, None, None, None, '2740225')] time used for this insertion : 0.01393747329711914 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.759239912033081 time spend to save output : 0.014144420623779297 total time spend for step 4 : 4.77338433265686 step5:split_time_score Thu Apr 10 16:15: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 : ['22230703'] 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 : [('22230703',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22230703) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351192734: {'path': 'temp/1744294498_3197788_1351192734_280e171a4c9b65f9df73aa8ebd22d8ef.jpg', 'extension': 'jpg'}, 1351192664: {'path': 'temp/1744294498_3197788_1351192664_b6a1cc7222e13497f3c28a381a9b5106.jpg', 'extension': 'jpg'}, 1351192713: {'path': 'temp/1744294498_3197788_1351192713_68b09c90d31c4da30bde576fc96aed22.jpg', 'extension': 'jpg'}, 1351192726: {'path': 'temp/1744294498_3197788_1351192726_ef35f3cbc68cd71f0b9314505e023b44.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 = 22230703; (('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 = 22230703 group by h (('16', 50),) 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=22230703 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 (22230703) 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 (22230703) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10042025 22230703 Nombre de photos uploadées : 50 / 23040 (0%) 10042025 22230703 Nombre de photos taguées (types de déchets): 0 / 50 (0%) 10042025 22230703 Nombre de photos taguées (volume) : 0 / 50 (0%) [{'photo_id': 1351186467, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/1a9c396acb528122f33ad787cfee1bd2.jpg', 'username': None, 'uploaded_at': 1744293667, 'text': 'image_10042025_16_00_04_010146m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1351186441, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/1965b7674b882fccd85a6f1169839da7.jpg', 'username': None, 'uploaded_at': 1744293667, 'text': 'image_10042025_16_00_14_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351186436, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/985bde3851cec7dff9427e7235a62e7e.jpg', 'username': None, 'uploaded_at': 1744293667, 'text': 'image_10042025_16_00_24_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1351186420, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/5f393a17310593240d549f2c99119f04.jpg', 'username': None, 'uploaded_at': 1744293667, 'text': 'image_10042025_16_00_33_009128m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 9.298324584960938e-06 ?????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017924308776855469 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22230703, '2025-04-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1728450,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.027178287506103516 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= 1728450 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1728450, 'dashboard_run_id': 1739209, 'mtr_portfolio_id': 22228023, 'dashboard_result_id': 9993961, '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_P22228023_10-04-2025_15_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22228064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22228065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22228066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22228067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22228068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22228069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22228070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22228071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22228072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22228073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22228074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22228075, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1739209, 'mtr_portfolio_id': 22229046, 'dashboard_result_id': 9993962, '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_P22229046_10-04-2025_15_47_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22229067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22229068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22229069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22229070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22229071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22229072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22229073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22229074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22229075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22229076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22229077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22229078, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1739209, 'mtr_portfolio_id': 22229823, 'dashboard_result_id': 9993963, '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_P22229823_10-04-2025_16_03_07.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22229860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22229861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22229862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22229863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22229864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22229865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22229866, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22229867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22229868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22229869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22229870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22229871, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1739209, 'mtr_portfolio_id': 22230703, 'dashboard_result_id': 9993964, '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_P22230703_10-04-2025_16_13_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22230757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22230758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22230759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22230760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22230761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22230762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22230763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22230764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22230765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22230766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22230767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22230768, '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 = 22228023 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': 2739996, 'mtr_portfolio_id': 22228023, 'created_at': datetime.datetime(2025, 4, 10, 15, 32, 58), 'result': '0.07142844623352347', 'result_long': None, 'result_double': None}] Qualite : 0.07142844623352347 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22228023 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22228023_10-04-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22228023 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_P22228023_10-04-2025_15_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22228064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22228065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22228066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22228067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22228068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22228069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22228070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22228071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22228072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22228073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22228074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22228075, 'pht': 3726}}" where mtr_portfolio_id = 22228023 and dashboard_run_id = 1739209 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`=22228023 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9993961, 0.07142844623352347, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22228023_10-04-2025_15_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22228064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22228065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22228066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22228067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22228068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22228069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22228070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22228071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22228072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22228073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22228074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22228075, '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 = 22229046 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': 2740064, 'mtr_portfolio_id': 22229046, 'created_at': datetime.datetime(2025, 4, 10, 15, 47, 1), 'result': '0.04676093453316465', 'result_long': None, 'result_double': None}] Qualite : 0.04676093453316465 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22229046 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22229046_10-04-2025_15_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22229046 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_P22229046_10-04-2025_15_47_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22229067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22229068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22229069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22229070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22229071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22229072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22229073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22229074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22229075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22229076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22229077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22229078, 'pht': 3726}}" where mtr_portfolio_id = 22229046 and dashboard_run_id = 1739209 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`=22229046 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9993962, 0.04676093453316465, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22229046_10-04-2025_15_47_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22229067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22229068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22229069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22229070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22229071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22229072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22229073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22229074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22229075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22229076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22229077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22229078, '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 = 22229823 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': 2740110, 'mtr_portfolio_id': 22229823, 'created_at': datetime.datetime(2025, 4, 10, 16, 3, 6), 'result': '0.052103380941422514', 'result_long': None, 'result_double': None}] Qualite : 0.052103380941422514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22229823 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22229823_10-04-2025_16_03_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22229823 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_P22229823_10-04-2025_16_03_07.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22229860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22229861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22229862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22229863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22229864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22229865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22229866, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22229867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22229868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22229869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22229870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22229871, 'pht': 3726}}" where mtr_portfolio_id = 22229823 and dashboard_run_id = 1739209 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`=22229823 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9993963, 0.052103380941422514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22229823_10-04-2025_16_03_07.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22229860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22229861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22229862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22229863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22229864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22229865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22229866, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22229867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22229868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22229869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22229870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22229871, '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 = 22230703 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': 2740225, 'mtr_portfolio_id': 22230703, 'created_at': datetime.datetime(2025, 4, 10, 16, 14, 58), 'result': '0.03056895329507104', 'result_long': None, 'result_double': None}] Qualite : 0.03056895329507104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22230703 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22230703_10-04-2025_16_14_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22230703 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_P22230703_10-04-2025_16_14_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22230757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22230758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22230759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22230760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22230761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22230762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22230763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22230764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22230765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22230766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22230767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22230768, 'pht': 3726}}" where mtr_portfolio_id = 22230703 and dashboard_run_id = 1739209 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`=22230703 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9993964, 0.03056895329507104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22230703_10-04-2025_16_14_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22230757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22230758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22230759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22230760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22230761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22230762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22230763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22230764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22230765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22230766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22230767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22230768, '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 (22228023,22229046,22229823,22230703) result : ((1351176003,), (1351176015,), (1351176147,), (1351176181,), (1351176183,), (1351176185,), (1351176188,), (1351176190,), (1351176232,), (1351176234,), (1351176241,), (1351176245,), (1351176251,), (1351176260,), (1351176302,), (1351176311,), (1351176315,), (1351176335,), (1351176346,), (1351176384,), (1351176388,), (1351176398,), (1351176412,), (1351176698,), (1351176749,), (1351176816,), (1351176965,), (1351176970,), (1351176975,), (1351176981,), (1351176993,), (1351177061,), (1351177105,), (1351177114,), (1351177128,), (1351177159,), (1351177300,), (1351177324,), (1351177350,), (1351177411,), (1351177463,), (1351178048,), (1351178062,), (1351178085,), (1351178102,), (1351178115,), (1351178267,), (1351178284,), (1351178292,), (1351178397,), (1351178403,), (1351178408,), (1351178430,), (1351178563,), (1351178570,), (1351178573,), (1351179100,), (1351179090,), (1351179096,), (1351179173,), (1351179196,), (1351179208,), (1351179221,), (1351179247,), (1351179441,), (1351179463,), (1351179476,), (1351179500,), (1351179633,), (1351179644,), (1351179658,), (1351179689,), (1351179877,), (1351179952,), (1351179979,), (1351180032,), (1351180093,), (1351180131,), (1351180197,), (1351180211,), (1351180223,), (1351180234,), (1351180380,), (1351180388,), (1351180402,), (1351180404,), (1351180409,), (1351180431,), (1351180595,), (1351180706,), (1351180828,), (1351180843,), (1351180863,), (1351180934,), (1351180941,), (1351180977,), (1351181741,), (1351181776,), (1351181836,), (1351181866,), (1351182297,), (1351182307,), (1351182331,), (1351182353,), (1351182409,), (1351182572,), (1351182584,), (1351182589,), (1351182595,), (1351182644,), (1351182650,), (1351182661,), (1351182665,), (1351182668,), (1351182675,), (1351182765,), (1351182783,), (1351182803,), (1351182815,), (1351182818,), (1351182822,), (1351182865,), (1351182882,), (1351183076,), (1351183070,), (1351183073,), (1351183130,), (1351183133,), (1351183138,), (1351183161,), (1351183172,), (1351183192,), (1351183355,), (1351183380,), (1351183403,), (1351183426,), (1351183444,), (1351183721,), (1351183921,), (1351183958,), (1351184014,), (1351184032,), (1351184232,), (1351184243,), (1351184254,), (1351184260,), (1351184313,), (1351184366,), (1351184660,), (1351184671,), (1351184675,), (1351184679,), (1351184683,), (1351184730,), (1351184734,), (1351184741,), (1351184744,), (1351184753,), (1351184758,), (1351184891,), (1351184897,), (1351184912,), (1351184915,), (1351185054,), (1351185066,), (1351185077,), (1351185095,), (1351185106,), (1351185268,), (1351185290,), (1351185294,), (1351185311,), (1351185404,), (1351185410,), (1351185415,), (1351185421,), (1351185431,), (1351185442,), (1351185467,), (1351185471,), (1351185475,), (1351185479,), (1351185546,), (1351185550,), (1351185554,), (1351185559,), (1351185615,), (1351185629,), (1351185994,), (1351186075,), (1351186099,), (1351186127,), (1351186178,), (1351186179,), (1351186213,), (1351186214,), (1351186229,), (1351186233,), (1351186235,), (1351186237,), (1351186286,), (1351186287,), (1351186487,), (1351186420,), (1351186436,), (1351186441,), (1351186467,), (1351186612,), (1351186617,), (1351186624,), (1351186634,), (1351186659,), (1351186859,), (1351186878,), (1351186904,), (1351186940,), (1351186961,), (1351187164,), (1351187218,), (1351187243,), (1351187555,), (1351187575,), (1351187597,), (1351187622,), (1351187660,), (1351187683,), (1351187924,), (1351187965,), (1351188195,), (1351188251,), (1351188321,), (1351188577,), (1351188635,), (1351189130,), (1351189157,), (1351189188,), (1351189211,), (1351189250,), (1351189289,), (1351189566,), (1351189655,), (1351189755,), (1351189848,), (1351189913,), (1351189932,), (1351190400,), (1351190444,), (1351192134,), (1351192208,), (1351192664,), (1351192713,), (1351192726,), (1351192734,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10042025': {'nb_upload': 50, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22230703]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351192734, 1351192726, 1351192713, 1351192664] map_info['map_portfolio_photo'] : {22230703: [1351192734, 1351192726, 1351192713, 1351192664, 1351192208, 1351192134, 1351190444, 1351190400, 1351189932, 1351189913, 1351189848, 1351189755, 1351189655, 1351189566, 1351189289, 1351189250, 1351189211, 1351189188, 1351189157, 1351189130, 1351188635, 1351188577, 1351188321, 1351188251, 1351188195, 1351187965, 1351187924, 1351187683, 1351187660, 1351187622, 1351187597, 1351187575, 1351187555, 1351187243, 1351187218, 1351187164, 1351186961, 1351186940, 1351186904, 1351186878, 1351186859, 1351186659, 1351186634, 1351186624, 1351186617, 1351186612, 1351186467, 1351186441, 1351186436, 1351186420]} final : True mtd_id 4302 list_pids : [1351192734, 1351192726, 1351192713, 1351192664] Looping around the photos to save general results len do output : 1 /22230703Didn'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, '2740225') ('4302', '22230703', '1351192734', None, None, None, None, None, '2740225') ('4302', None, None, None, None, None, None, None, '2740225') ('4302', '22230703', '1351192726', None, None, None, None, None, '2740225') ('4302', None, None, None, None, None, None, None, '2740225') ('4302', '22230703', '1351192713', None, None, None, None, None, '2740225') ('4302', None, None, None, None, None, None, None, '2740225') ('4302', '22230703', '1351192664', None, None, None, None, None, '2740225') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '22230703', 'None', None, None, None, None, '2740225'), ('4302', '22230703', '1351192734', None, None, None, None, None, '2740225'), ('4302', '22230703', '1351192726', None, None, None, None, None, '2740225'), ('4302', '22230703', '1351192713', None, None, None, None, None, '2740225'), ('4302', '22230703', '1351192664', None, None, None, None, None, '2740225')] time used for this insertion : 0.01580977439880371 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.560563564300537 time spend to save output : 0.01615762710571289 total time spend for step 5 : 5.57672119140625 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 (2740225) 2.13user 2.34system 0:14.32elapsed 31%CPU (0avgtext+0avgdata 158620maxresident)k 9344inputs+9680outputs (115major+63649minor)pagefaults 0swaps