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 : 1134114 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 (4217869) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4217869) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29397957 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4217869'] with mtr_portfolio_ids : ['29397957'] and first list_photo_ids : [] new path : /proc/1134114/ Name: python3 Umask: 0002 State: R (running) Tgid: 1134114 Ngid: 0 Pid: 1134114 PPid: 1134113 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1134114 NSpid: 1134114 NSpgid: 1133189 NSsid: 1133189 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105272 kB VmRSS: 105272 kB RssAnon: 66292 kB RssFile: 38980 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 620 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 43 nonvoluntary_ctxt_switches: 96 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1134114', 'Ngid': '0', 'Pid': '1134114', 'PPid': '1134113', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1134114', 'NSpid': '1134114', 'NSpgid': '1133189', 'NSsid': '1133189', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105272 kB', 'VmRSS': '105272 kB', 'RssAnon': '66292 kB', 'RssFile': '38980 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '620 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '43', 'nonvoluntary_ctxt_switches': '96'} ('datou_batch_current', '1134114', '1113364', '0', '1113364', '872092', '105272', b'', 'marlene', '4217869') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29397957) 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 (4217869 ) ) 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 (29397957) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399169493, 'portfolio_id': 29397957}, {'photo_id': 1399169462, 'portfolio_id': 29397957}, {'photo_id': 1399169461, 'portfolio_id': 29397957}, {'photo_id': 1399169459, 'portfolio_id': 29397957}, {'photo_id': 1399169445, 'portfolio_id': 29397957}, {'photo_id': 1399169443, 'portfolio_id': 29397957}, {'photo_id': 1399169442, 'portfolio_id': 29397957}, {'photo_id': 1399169439, 'portfolio_id': 29397957}, {'photo_id': 1399169423, 'portfolio_id': 29397957}, {'photo_id': 1399169420, 'portfolio_id': 29397957}, {'photo_id': 1399169418, 'portfolio_id': 29397957}, {'photo_id': 1399169417, 'portfolio_id': 29397957}, {'photo_id': 1399169416, 'portfolio_id': 29397957}, {'photo_id': 1399169415, 'portfolio_id': 29397957}, {'photo_id': 1399169400, 'portfolio_id': 29397957}, {'photo_id': 1399169396, 'portfolio_id': 29397957}, {'photo_id': 1399169392, 'portfolio_id': 29397957}, {'photo_id': 1399169390, 'portfolio_id': 29397957}, {'photo_id': 1399169388, 'portfolio_id': 29397957}, {'photo_id': 1399169376, 'portfolio_id': 29397957}, {'photo_id': 1399169374, 'portfolio_id': 29397957}, {'photo_id': 1399169372, 'portfolio_id': 29397957}, {'photo_id': 1399169366, 'portfolio_id': 29397957}, {'photo_id': 1399169331, 'portfolio_id': 29397957}, {'photo_id': 1399169296, 'portfolio_id': 29397957}, {'photo_id': 1399169294, 'portfolio_id': 29397957}, {'photo_id': 1399169293, 'portfolio_id': 29397957}, {'photo_id': 1399169292, 'portfolio_id': 29397957}, {'photo_id': 1399169291, 'portfolio_id': 29397957}, {'photo_id': 1399169281, 'portfolio_id': 29397957}, {'photo_id': 1399169280, 'portfolio_id': 29397957}, {'photo_id': 1399169279, 'portfolio_id': 29397957}, {'photo_id': 1399169278, 'portfolio_id': 29397957}, {'photo_id': 1399169252, 'portfolio_id': 29397957}, {'photo_id': 1399169248, 'portfolio_id': 29397957}, {'photo_id': 1399169244, 'portfolio_id': 29397957}, {'photo_id': 1399169242, 'portfolio_id': 29397957}, {'photo_id': 1399169240, 'portfolio_id': 29397957}, {'photo_id': 1399169230, 'portfolio_id': 29397957}, {'photo_id': 1399169229, 'portfolio_id': 29397957}, {'photo_id': 1399169228, 'portfolio_id': 29397957}, {'photo_id': 1399169203, 'portfolio_id': 29397957}, {'photo_id': 1399169202, 'portfolio_id': 29397957}, {'photo_id': 1399169194, 'portfolio_id': 29397957}, {'photo_id': 1399169192, 'portfolio_id': 29397957}, {'photo_id': 1399169191, 'portfolio_id': 29397957}, {'photo_id': 1399169190, 'portfolio_id': 29397957}, {'photo_id': 1399169189, 'portfolio_id': 29397957}, {'photo_id': 1399169168, 'portfolio_id': 29397957}, {'photo_id': 1399169166, 'portfolio_id': 29397957}, {'photo_id': 1399169164, 'portfolio_id': 29397957}, {'photo_id': 1399169162, 'portfolio_id': 29397957}] map_portfolio_id_photo_id: {29397957: [1399169493, 1399169462, 1399169461, 1399169459, 1399169445, 1399169443, 1399169442, 1399169439, 1399169423, 1399169420, 1399169418, 1399169417, 1399169416, 1399169415, 1399169400, 1399169396, 1399169392, 1399169390, 1399169388, 1399169376, 1399169374, 1399169372, 1399169366, 1399169331, 1399169296, 1399169294, 1399169293, 1399169292, 1399169291, 1399169281, 1399169280, 1399169279, 1399169278, 1399169252, 1399169248, 1399169244, 1399169242, 1399169240, 1399169230, 1399169229, 1399169228, 1399169203, 1399169202, 1399169194, 1399169192, 1399169191, 1399169190, 1399169189, 1399169168, 1399169166, 1399169164, 1399169162]} ##### 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.01867508888244629 #### 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 Sat Dec 13 02:18: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 (29397957) 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 : 29397957 get user id for portfolio 29397957 get sub ptf for main ptf 29397957, type 3726 and hashtags ['plastique', 'autre_refus', 'Carton_brun', 'mal_croppe', 'environnement', 'cartonnette', 'kraft', 'metal', 'flou', 'Teint_Dans_La_Masse', 'papier', 'Carton_gris'] 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`=29397957 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','Carton_brun','mal_croppe','environnement','cartonnette','kraft','metal','flou','Teint_Dans_La_Masse','papier','Carton_gris')) 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`=29397957 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','Carton_brun','mal_croppe','environnement','cartonnette','kraft','metal','flou','Teint_Dans_La_Masse','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29397957, 'sub_port_id': 29397972, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028460, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 26)}, 'Carton_gris': {'main_port_id': 29397957, 'sub_port_id': 29397973, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028461, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 26)}, 'papier': {'main_port_id': 29397957, 'sub_port_id': 29397974, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028462, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 26)}, 'plastique': {'main_port_id': 29397957, 'sub_port_id': 29397975, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028463, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 29397957, 'sub_port_id': 29397976, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028464, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 26)}, 'mal_croppe': {'main_port_id': 29397957, 'sub_port_id': 29397977, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028465, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 26)}, 'kraft': {'main_port_id': 29397957, 'sub_port_id': 29397978, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028466, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 26)}, 'autre_refus': {'main_port_id': 29397957, 'sub_port_id': 29397980, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028467, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 26)}, 'cartonnette': {'main_port_id': 29397957, 'sub_port_id': 29397981, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028468, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 26)}, 'metal': {'main_port_id': 29397957, 'sub_port_id': 29397982, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028469, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 26)}, 'environnement': {'main_port_id': 29397957, 'sub_port_id': 29397983, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028470, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 26)}, 'Carton_brun': {'main_port_id': 29397957, 'sub_port_id': 29397984, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028471, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 16, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29397972 , 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=29397957 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 (29397972) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29397957) result : ((1399169162,), (1399169164,), (1399169166,), (1399169168,), (1399169189,), (1399169190,), (1399169191,), (1399169192,), (1399169194,), (1399169202,), (1399169203,), (1399169228,), (1399169229,), (1399169230,), (1399169240,), (1399169242,), (1399169244,), (1399169248,), (1399169252,), (1399169278,), (1399169279,), (1399169280,), (1399169281,), (1399169291,), (1399169292,), (1399169293,), (1399169294,), (1399169296,), (1399169331,), (1399169366,), (1399169372,), (1399169374,), (1399169376,), (1399169388,), (1399169390,), (1399169392,), (1399169396,), (1399169400,), (1399169415,), (1399169416,), (1399169417,), (1399169418,), (1399169420,), (1399169423,), (1399169439,), (1399169442,), (1399169443,), (1399169445,), (1399169459,), (1399169461,), (1399169462,), (1399169493,)) 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 (1399169400) 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 29397973 , 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=29397957 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 (29397973) result : ((1399169263,), (1399169316,), (1399169346,), (1399169436,), (1399169437,), (1399169512,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29397957) result : ((1399169162,), (1399169164,), (1399169166,), (1399169168,), (1399169189,), (1399169190,), (1399169191,), (1399169192,), (1399169194,), (1399169202,), (1399169203,), (1399169228,), (1399169229,), (1399169230,), (1399169240,), (1399169242,), (1399169244,), (1399169248,), (1399169252,), (1399169278,), (1399169279,), (1399169280,), (1399169281,), (1399169291,), (1399169292,), (1399169293,), (1399169294,), (1399169296,), (1399169331,), (1399169366,), (1399169372,), (1399169374,), (1399169376,), (1399169388,), (1399169390,), (1399169392,), (1399169396,), (1399169400,), (1399169415,), (1399169416,), (1399169417,), (1399169418,), (1399169420,), (1399169423,), (1399169439,), (1399169442,), (1399169443,), (1399169445,), (1399169459,), (1399169461,), (1399169462,), (1399169493,)) 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 (1399169400) 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 29397974 , 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=29397957 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 (29397974) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29397957) result : ((1399169162,), (1399169164,), (1399169166,), (1399169168,), (1399169189,), (1399169190,), (1399169191,), (1399169192,), (1399169194,), (1399169202,), (1399169203,), (1399169228,), (1399169229,), (1399169230,), (1399169240,), (1399169242,), (1399169244,), (1399169248,), (1399169252,), (1399169278,), (1399169279,), (1399169280,), (1399169281,), (1399169291,), (1399169292,), (1399169293,), (1399169294,), (1399169296,), (1399169331,), (1399169366,), (1399169372,), (1399169374,), (1399169376,), (1399169388,), (1399169390,), (1399169392,), (1399169396,), (1399169400,), (1399169415,), (1399169416,), (1399169417,), (1399169418,), (1399169420,), (1399169423,), (1399169439,), (1399169442,), (1399169443,), (1399169445,), (1399169459,), (1399169461,), (1399169462,), (1399169493,)) 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 (1399169400) 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 29397975 , 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=29397957 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 (29397975) result : ((1399169387,), (1399169428,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29397957) result : ((1399169162,), (1399169164,), (1399169166,), (1399169168,), (1399169189,), (1399169190,), (1399169191,), (1399169192,), (1399169194,), (1399169202,), (1399169203,), (1399169228,), (1399169229,), (1399169230,), (1399169240,), (1399169242,), (1399169244,), (1399169248,), (1399169252,), (1399169278,), (1399169279,), (1399169280,), (1399169281,), (1399169291,), (1399169292,), (1399169293,), (1399169294,), (1399169296,), (1399169331,), (1399169366,), (1399169372,), (1399169374,), (1399169376,), (1399169388,), (1399169390,), (1399169392,), (1399169396,), (1399169400,), (1399169415,), (1399169416,), (1399169417,), (1399169418,), (1399169420,), (1399169423,), (1399169439,), (1399169442,), (1399169443,), (1399169445,), (1399169459,), (1399169461,), (1399169462,), (1399169493,)) 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 (1399169400) 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 29397976 , 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=29397957 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 (29397976) result : ((1399169256,), (1399169258,), (1399169259,), (1399169260,), (1399169261,), (1399169262,), (1399169298,), (1399169310,), (1399169311,), (1399169312,), (1399169313,), (1399169340,), (1399169341,), (1399169342,), (1399169343,), (1399169344,), (1399169345,), (1399169433,), (1399169434,), (1399169467,), (1399169468,), (1399169469,), (1399169470,), (1399169509,), (1399169510,), (1399169518,), (1399169519,), (1399169520,), (1399169521,), (1399169522,), (1399169523,), (1399169524,), (1399169525,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29397957) result : ((1399169162,), (1399169164,), (1399169166,), (1399169168,), (1399169189,), (1399169190,), (1399169191,), (1399169192,), (1399169194,), (1399169202,), (1399169203,), (1399169228,), (1399169229,), (1399169230,), (1399169240,), (1399169242,), (1399169244,), (1399169248,), (1399169252,), (1399169278,), (1399169279,), (1399169280,), (1399169281,), (1399169291,), (1399169292,), (1399169293,), (1399169294,), (1399169296,), (1399169331,), (1399169366,), (1399169372,), (1399169374,), (1399169376,), (1399169388,), (1399169390,), (1399169392,), (1399169396,), (1399169400,), (1399169415,), (1399169416,), (1399169417,), (1399169418,), (1399169420,), (1399169423,), (1399169439,), (1399169442,), (1399169443,), (1399169445,), (1399169459,), (1399169461,), (1399169462,), (1399169493,)) 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 (1399169400) 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 29397977 , 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=29397957 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 (29397977) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29397957) result : ((1399169162,), (1399169164,), (1399169166,), (1399169168,), (1399169189,), (1399169190,), (1399169191,), (1399169192,), (1399169194,), (1399169202,), (1399169203,), (1399169228,), (1399169229,), (1399169230,), (1399169240,), (1399169242,), (1399169244,), (1399169248,), (1399169252,), (1399169278,), (1399169279,), (1399169280,), (1399169281,), (1399169291,), (1399169292,), (1399169293,), (1399169294,), (1399169296,), (1399169331,), (1399169366,), (1399169372,), (1399169374,), (1399169376,), (1399169388,), (1399169390,), (1399169392,), (1399169396,), (1399169400,), (1399169415,), (1399169416,), (1399169417,), (1399169418,), (1399169420,), (1399169423,), (1399169439,), (1399169442,), (1399169443,), (1399169445,), (1399169459,), (1399169461,), (1399169462,), (1399169493,)) 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 (1399169400) 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 29397978 , 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=29397957 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 (29397978) result : ((1399169321,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29397957) result : ((1399169162,), (1399169164,), (1399169166,), (1399169168,), (1399169189,), (1399169190,), (1399169191,), (1399169192,), (1399169194,), (1399169202,), (1399169203,), (1399169228,), (1399169229,), (1399169230,), (1399169240,), (1399169242,), (1399169244,), (1399169248,), (1399169252,), (1399169278,), (1399169279,), (1399169280,), (1399169281,), (1399169291,), (1399169292,), (1399169293,), (1399169294,), (1399169296,), (1399169331,), (1399169366,), (1399169372,), (1399169374,), (1399169376,), (1399169388,), (1399169390,), (1399169392,), (1399169396,), (1399169400,), (1399169415,), (1399169416,), (1399169417,), (1399169418,), (1399169420,), (1399169423,), (1399169439,), (1399169442,), (1399169443,), (1399169445,), (1399169459,), (1399169461,), (1399169462,), (1399169493,)) 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 (1399169400) 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 29397980 , 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=29397957 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 (29397980) result : ((1399169314,), (1399169315,), (1399169435,), (1399169511,), (1399169527,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29397957) result : ((1399169162,), (1399169164,), (1399169166,), (1399169168,), (1399169189,), (1399169190,), (1399169191,), (1399169192,), (1399169194,), (1399169202,), (1399169203,), (1399169228,), (1399169229,), (1399169230,), (1399169240,), (1399169242,), (1399169244,), (1399169248,), (1399169252,), (1399169278,), (1399169279,), (1399169280,), (1399169281,), (1399169291,), (1399169292,), (1399169293,), (1399169294,), (1399169296,), (1399169331,), (1399169366,), (1399169372,), (1399169374,), (1399169376,), (1399169388,), (1399169390,), (1399169392,), (1399169396,), (1399169400,), (1399169415,), (1399169416,), (1399169417,), (1399169418,), (1399169420,), (1399169423,), (1399169439,), (1399169442,), (1399169443,), (1399169445,), (1399169459,), (1399169461,), (1399169462,), (1399169493,)) 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 (1399169400) 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 29397981 , 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=29397957 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 (29397981) result : ((1399169264,), (1399169265,), (1399169319,), (1399169320,), (1399169347,), (1399169348,), (1399169349,), (1399169385,), (1399169386,), (1399169426,), (1399169427,), (1399169514,), (1399169528,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29397957) result : ((1399169162,), (1399169164,), (1399169166,), (1399169168,), (1399169189,), (1399169190,), (1399169191,), (1399169192,), (1399169194,), (1399169202,), (1399169203,), (1399169228,), (1399169229,), (1399169230,), (1399169240,), (1399169242,), (1399169244,), (1399169248,), (1399169252,), (1399169278,), (1399169279,), (1399169280,), (1399169281,), (1399169291,), (1399169292,), (1399169293,), (1399169294,), (1399169296,), (1399169331,), (1399169366,), (1399169372,), (1399169374,), (1399169376,), (1399169388,), (1399169390,), (1399169392,), (1399169396,), (1399169400,), (1399169415,), (1399169416,), (1399169417,), (1399169418,), (1399169420,), (1399169423,), (1399169439,), (1399169442,), (1399169443,), (1399169445,), (1399169459,), (1399169461,), (1399169462,), (1399169493,)) 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 (1399169400) 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 29397982 , 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=29397957 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 (29397982) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29397957) result : ((1399169162,), (1399169164,), (1399169166,), (1399169168,), (1399169189,), (1399169190,), (1399169191,), (1399169192,), (1399169194,), (1399169202,), (1399169203,), (1399169228,), (1399169229,), (1399169230,), (1399169240,), (1399169242,), (1399169244,), (1399169248,), (1399169252,), (1399169278,), (1399169279,), (1399169280,), (1399169281,), (1399169291,), (1399169292,), (1399169293,), (1399169294,), (1399169296,), (1399169331,), (1399169366,), (1399169372,), (1399169374,), (1399169376,), (1399169388,), (1399169390,), (1399169392,), (1399169396,), (1399169400,), (1399169415,), (1399169416,), (1399169417,), (1399169418,), (1399169420,), (1399169423,), (1399169439,), (1399169442,), (1399169443,), (1399169445,), (1399169459,), (1399169461,), (1399169462,), (1399169493,)) 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 (1399169400) 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 29397983 , 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=29397957 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 (29397983) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29397957) result : ((1399169162,), (1399169164,), (1399169166,), (1399169168,), (1399169189,), (1399169190,), (1399169191,), (1399169192,), (1399169194,), (1399169202,), (1399169203,), (1399169228,), (1399169229,), (1399169230,), (1399169240,), (1399169242,), (1399169244,), (1399169248,), (1399169252,), (1399169278,), (1399169279,), (1399169280,), (1399169281,), (1399169291,), (1399169292,), (1399169293,), (1399169294,), (1399169296,), (1399169331,), (1399169366,), (1399169372,), (1399169374,), (1399169376,), (1399169388,), (1399169390,), (1399169392,), (1399169396,), (1399169400,), (1399169415,), (1399169416,), (1399169417,), (1399169418,), (1399169420,), (1399169423,), (1399169439,), (1399169442,), (1399169443,), (1399169445,), (1399169459,), (1399169461,), (1399169462,), (1399169493,)) 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 (1399169400) 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 29397984 , 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=29397957 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 (29397984) result : ((1399169545,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29397957) result : ((1399169162,), (1399169164,), (1399169166,), (1399169168,), (1399169189,), (1399169190,), (1399169191,), (1399169192,), (1399169194,), (1399169202,), (1399169203,), (1399169228,), (1399169229,), (1399169230,), (1399169240,), (1399169242,), (1399169244,), (1399169248,), (1399169252,), (1399169278,), (1399169279,), (1399169280,), (1399169281,), (1399169291,), (1399169292,), (1399169293,), (1399169294,), (1399169296,), (1399169331,), (1399169366,), (1399169372,), (1399169374,), (1399169376,), (1399169388,), (1399169390,), (1399169392,), (1399169396,), (1399169400,), (1399169415,), (1399169416,), (1399169417,), (1399169418,), (1399169420,), (1399169423,), (1399169439,), (1399169442,), (1399169443,), (1399169445,), (1399169459,), (1399169461,), (1399169462,), (1399169493,)) 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 (1399169400) 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`=29397957 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','Carton_brun','mal_croppe','environnement','cartonnette','kraft','metal','flou','Teint_Dans_La_Masse','papier','Carton_gris')) 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`=29397957 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','Carton_brun','mal_croppe','environnement','cartonnette','kraft','metal','flou','Teint_Dans_La_Masse','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29397957, 'sub_port_id': 29397986, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028472, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 33)}, 'Carton_gris': {'main_port_id': 29397957, 'sub_port_id': 29397987, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028473, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 33)}, 'papier': {'main_port_id': 29397957, 'sub_port_id': 29397989, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028474, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 33)}, 'plastique': {'main_port_id': 29397957, 'sub_port_id': 29397990, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028475, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 29397957, 'sub_port_id': 29397991, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028476, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 33)}, 'mal_croppe': {'main_port_id': 29397957, 'sub_port_id': 29397992, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028477, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 33)}, 'kraft': {'main_port_id': 29397957, 'sub_port_id': 29397993, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028478, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 33)}, 'autre_refus': {'main_port_id': 29397957, 'sub_port_id': 29397994, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028479, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 33)}, 'cartonnette': {'main_port_id': 29397957, 'sub_port_id': 29397995, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028480, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 33)}, 'metal': {'main_port_id': 29397957, 'sub_port_id': 29397996, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028481, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 33)}, 'environnement': {'main_port_id': 29397957, 'sub_port_id': 29397997, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028482, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 33)}, 'Carton_brun': {'main_port_id': 29397957, 'sub_port_id': 29397998, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028483, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 16, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 16, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 3, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29397986,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29397972 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29397987,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29397973 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29397989,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29397974 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29397990,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29397975 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29397991,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29397976 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29397992,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29397977 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29397993,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29397978 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29397994,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29397980 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29397995,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29397981 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29397996,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29397982 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29397997,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29397983 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29397998,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29397984 lien utilise dans velours : https://marlene.fotonower.com/velours/29397986,29397987,29397989,29397990,29397991,29397992,29397993,29397994,29397995,29397996,29397997,29397998?tags=flou,Carton_gris,papier,plastique,Teint_Dans_La_Masse,mal_croppe,kraft,autre_refus,cartonnette,metal,environnement,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29397957]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399169493] map_info['map_portfolio_photo'] : {29397957: [1399169493, 1399169462, 1399169461, 1399169459, 1399169445, 1399169443, 1399169442, 1399169439, 1399169423, 1399169420, 1399169418, 1399169417, 1399169416, 1399169415, 1399169400, 1399169396, 1399169392, 1399169390, 1399169388, 1399169376, 1399169374, 1399169372, 1399169366, 1399169331, 1399169296, 1399169294, 1399169293, 1399169292, 1399169291, 1399169281, 1399169280, 1399169279, 1399169278, 1399169252, 1399169248, 1399169244, 1399169242, 1399169240, 1399169230, 1399169229, 1399169228, 1399169203, 1399169202, 1399169194, 1399169192, 1399169191, 1399169190, 1399169189, 1399169168, 1399169166, 1399169164, 1399169162]} final : False mtd_id 4302 list_pids : [1399169493] Looping around the photos to save general results len do output : 1 /29397957. 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, '4217869') ('4302', '29397957', '1399169493', None, None, None, None, None, '4217869') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '29397957', "{'flou': 29397972, 'Carton_gris': 29397973, 'papier': 29397974, 'plastique': 29397975, 'Teint_Dans_La_Masse': 29397976, 'mal_croppe': 29397977, 'kraft': 29397978, 'autre_refus': 29397980, 'cartonnette': 29397981, 'metal': 29397982, 'environnement': 29397983, 'Carton_brun': 29397984}", None, None, None, None, '4217869'), ('4302', '29397957', '1399169493', None, None, None, None, None, '4217869')] time used for this insertion : 0.014703750610351562 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5842938423156738 time spend to save output : 0.014946937561035156 total time spend for step 1 : 0.599240779876709 step2:final Sat Dec 13 02:18: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 (29397957) 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 29397957 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399169168,1399169166,1399169164,1399169162,1399169194,1399169192,1399169191,1399169190,1399169189,1399169203,1399169202,1399169230,1399169229,1399169228,1399169252,1399169248,1399169244,1399169242,1399169240,1399169281,1399169280,1399169279,1399169278,1399169296,1399169294,1399169293,1399169292,1399169291,1399169331,1399169366,1399169376,1399169374,1399169372,1399169400,1399169396,1399169392,1399169390,1399169388,1399169423,1399169420,1399169418,1399169417,1399169416,1399169415,1399169445,1399169443,1399169442,1399169439,1399169462,1399169461,1399169459,1399169493); 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([29397957]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399169493: ('0.05096435921704283',)} new output for save of step final : {1399169493: ('0.05096435921704283',)} [1399169493] map_info['map_portfolio_photo'] : {29397957: [1399169493, 1399169462, 1399169461, 1399169459, 1399169445, 1399169443, 1399169442, 1399169439, 1399169423, 1399169420, 1399169418, 1399169417, 1399169416, 1399169415, 1399169400, 1399169396, 1399169392, 1399169390, 1399169388, 1399169376, 1399169374, 1399169372, 1399169366, 1399169331, 1399169296, 1399169294, 1399169293, 1399169292, 1399169291, 1399169281, 1399169280, 1399169279, 1399169278, 1399169252, 1399169248, 1399169244, 1399169242, 1399169240, 1399169230, 1399169229, 1399169228, 1399169203, 1399169202, 1399169194, 1399169192, 1399169191, 1399169190, 1399169189, 1399169168, 1399169166, 1399169164, 1399169162]} final : False mtd_id 4302 list_pids : [1399169493] Looping around the photos to save general results len do output : 1 /1399169493.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, '4217869') ('4302', '29397957', '1399169493', None, None, None, None, None, '4217869') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '29397957', '1399169493', '0.05096435921704283', None, None, None, None, '4217869')] time used for this insertion : 0.013677835464477539 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08194851875305176 time spend to save output : 0.013841629028320312 total time spend for step 2 : 0.09579014778137207 step3:velours_tree Sat Dec 13 02:18: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 : {29397957: [{'flou': 29397972, 'Carton_gris': 29397973, 'papier': 29397974, 'plastique': 29397975, 'Teint_Dans_La_Masse': 29397976, 'mal_croppe': 29397977, 'kraft': 29397978, 'autre_refus': 29397980, 'cartonnette': 29397981, 'metal': 29397982, 'environnement': 29397983, 'Carton_brun': 29397984}]} input_args_next_step : {29397957: ()} output_args : {29397957: [{'flou': 29397972, 'Carton_gris': 29397973, 'papier': 29397974, 'plastique': 29397975, 'Teint_Dans_La_Masse': 29397976, 'mal_croppe': 29397977, 'kraft': 29397978, 'autre_refus': 29397980, 'cartonnette': 29397981, 'metal': 29397982, 'environnement': 29397983, 'Carton_brun': 29397984}]} args : 29397957 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 : ({'flou': 29397972, 'Carton_gris': 29397973, 'papier': 29397974, 'plastique': 29397975, 'Teint_Dans_La_Masse': 29397976, 'mal_croppe': 29397977, 'kraft': 29397978, 'autre_refus': 29397980, 'cartonnette': 29397981, 'metal': 29397982, 'environnement': 29397983, 'Carton_brun': 29397984},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29397957) 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([29397957]) 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.26122021675109863 time spend to save output : 4.9114227294921875e-05 total time spend for step 3 : 0.26126933097839355 step4:send_mail_cod Sat Dec 13 02:18: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 : {1399169493: ('0.05096435921704283',)} input_args_next_step : {1399169493: ()} output_args : {1399169493: ('0.05096435921704283',)} args : 1399169493 depend.output_id : 0 complete output_args for input 3 : {29397957: [{'flou': 29397972, 'Carton_gris': 29397973, 'papier': 29397974, 'plastique': 29397975, 'Teint_Dans_La_Masse': 29397976, 'mal_croppe': 29397977, 'kraft': 29397978, 'autre_refus': 29397980, 'cartonnette': 29397981, 'metal': 29397982, 'environnement': 29397983, 'Carton_brun': 29397984}]} input_args_next_step : {1399169493: ('0.05096435921704283',), 29397957: ()} output_args : {29397957: [{'flou': 29397972, 'Carton_gris': 29397973, 'papier': 29397974, 'plastique': 29397975, 'Teint_Dans_La_Masse': 29397976, 'mal_croppe': 29397977, 'kraft': 29397978, 'autre_refus': 29397980, 'cartonnette': 29397981, 'metal': 29397982, 'environnement': 29397983, 'Carton_brun': 29397984}]} args : 29397957 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 :2, first value : ('0.05096435921704283',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29397957) 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_view ph WHERE photo_id IN (1399169493) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399169493 download finish for photo 1399169493 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette293979721765588738/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P29397957_13-12-2025_02_18_58.pdf 29397972 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29397972 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293979721765588738 29397975 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29397975 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399169387: '1765588288_346664_1399169278_cf0ecd87009330aee91dea135259c8ad_rle_crop_4068613487_0.png', 1399169428: '1765588385_349814_1399169278_cf0ecd87009330aee91dea135259c8ad_rle_crop_4068613487_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/0d1dabeb10d10584581e38a04878181f_99449544.png change filename to text .imagette293979751765588738/ imagette293979751765588738/1765588385_349814_1399169278_cf0ecd87009330aee91dea135259c8ad_rle_crop_4068613487_0.png.png imagette293979751765588738/1765588288_346664_1399169278_cf0ecd87009330aee91dea135259c8ad_rle_crop_4068613487_0.png.png imagette293979771765588738/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/0d1dabeb10d10584581e38a04878181f_90503855.png imagette293979751765588738 29397977 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29397977 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293979771765588738 29397978 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29397978 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399169321: '1765588046_335738_1399169189_4706bad48fd632987a86e1eba224009b_rle_crop_4068612902_0.png'} change filename to text .imagette293979781765588738/ imagette293979781765588738/1765588046_335738_1399169189_4706bad48fd632987a86e1eba224009b_rle_crop_4068612902_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/da66d39ca0f1de0c770ad3c7be3f363c_36478412.png imagette293979781765588738 29397980 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29397980 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399169314: '1765588046_335738_1399169192_483180372a0b55a7cf6278106c6cc595_rle_crop_4068612867_0.png', 1399169315: '1765588046_335738_1399169191_b26715569aa98e4c80c46521d806c48d_rle_crop_4068612879_0.png', 1399169435: '1765588404_350249_1399169248_66baca06364a217e1cab7c95055c2c64_rle_crop_4068613750_0.png', 1399169511: '1765588625_361552_1399169416_b77df412e9cd62b562697c97618df0eb_rle_crop_4068614150_0.png', 1399169527: '1765588646_361913_1399169400_f0bca4c1e9999e0d85134d217aecb2cf_rle_crop_4068614246_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/6c8ac394e2ec9318ac071c74a4e3bd8b_98551523.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/f1f8245a9c0a0ad91ba3cca0dd423060_22343055.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/4e976902fe649a23d8b22ee12a0ab23a_21259701.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/88e62af8468364477af78a81d559adc6_53815541.png change filename to text .imagette293979801765588739/ imagette293979801765588739/1765588404_350249_1399169248_66baca06364a217e1cab7c95055c2c64_rle_crop_4068613750_0.png.png imagette293979801765588739/1765588046_335738_1399169192_483180372a0b55a7cf6278106c6cc595_rle_crop_4068612867_0.png.png imagette293979801765588739/1765588646_361913_1399169400_f0bca4c1e9999e0d85134d217aecb2cf_rle_crop_4068614246_0.png.png imagette293979801765588739/1765588046_335738_1399169191_b26715569aa98e4c80c46521d806c48d_rle_crop_4068612879_0.png.png imagette293979801765588739/1765588625_361552_1399169416_b77df412e9cd62b562697c97618df0eb_rle_crop_4068614150_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/d7c98e5a945348a2dd36aeebdc35b529_60793918.png imagette293979801765588739 29397981 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29397981 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399169264: '1765587907_327278_1399169166_1d67fdcf2ffcf6cc3995ec708bd682ea_rle_crop_4068612505_0.png', 1399169265: '1765587907_327278_1399169162_56b09521c33b4dc927ce760e1251b380_rle_crop_4068612526_0.png', 1399169319: '1765588046_335738_1399169192_483180372a0b55a7cf6278106c6cc595_rle_crop_4068612870_0.png', 1399169320: '1765588046_335738_1399169190_5f61f317321ed2369a679519ea407fa9_rle_crop_4068612887_0.png', 1399169347: '1765588145_340598_1399169194_785fc41e92d850c6de9993ac416d86ee_rle_crop_4068613036_0.png', 1399169348: '1765588145_340598_1399169166_1d67fdcf2ffcf6cc3995ec708bd682ea_rle_crop_4068612505_0.png', 1399169349: '1765588145_340598_1399169162_56b09521c33b4dc927ce760e1251b380_rle_crop_4068612526_0.png', 1399169385: '1765588288_346664_1399169279_ed04a4036770e15710fda2616697bcfa_rle_crop_4068613475_0.png', 1399169386: '1765588288_346664_1399169278_cf0ecd87009330aee91dea135259c8ad_rle_crop_4068613485_0.png', 1399169426: '1765588385_349814_1399169279_ed04a4036770e15710fda2616697bcfa_rle_crop_4068613475_0.png', 1399169427: '1765588385_349814_1399169278_cf0ecd87009330aee91dea135259c8ad_rle_crop_4068613485_0.png', 1399169514: '1765588625_361552_1399169420_61a204f23a9b1c37b28b436e6807d447_rle_crop_4068614115_0.png', 1399169528: '1765588646_361913_1399169400_f0bca4c1e9999e0d85134d217aecb2cf_rle_crop_4068614243_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/eaea7f25daa245ca5150a7379cf9dbeb_66407148.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/fd1614c6337f70a727c164e742231d5d_9272138.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/3b1648090e809ee8120fce4057c87225_67762610.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/b0f4eb1bbb2e82db449ebd56cc1fc7fa_91708082.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/2a9a9b792620f720e9aa415de2f86762_71597014.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/eaea7f25daa245ca5150a7379cf9dbeb_62434680.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/fd1614c6337f70a727c164e742231d5d_26191444.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/f8f65e1f98234e09bbed474c706e6301_87337004.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/d87b97f692ece8a9bb81a537336e67ed_10955308.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/f8f65e1f98234e09bbed474c706e6301_97248243.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/d87b97f692ece8a9bb81a537336e67ed_73917170.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/b65303ade7018fe6fd76f66035a97b1f_86145354.png change filename to text .imagette293979811765588739/ imagette293979811765588739/1765587907_327278_1399169166_1d67fdcf2ffcf6cc3995ec708bd682ea_rle_crop_4068612505_0.png.png imagette293979811765588739/1765588145_340598_1399169162_56b09521c33b4dc927ce760e1251b380_rle_crop_4068612526_0.png.png imagette293979811765588739/1765587907_327278_1399169162_56b09521c33b4dc927ce760e1251b380_rle_crop_4068612526_0.png.png imagette293979811765588739/1765588145_340598_1399169166_1d67fdcf2ffcf6cc3995ec708bd682ea_rle_crop_4068612505_0.png.png imagette293979811765588739/1765588625_361552_1399169420_61a204f23a9b1c37b28b436e6807d447_rle_crop_4068614115_0.png.png imagette293979811765588739/1765588145_340598_1399169194_785fc41e92d850c6de9993ac416d86ee_rle_crop_4068613036_0.png.png imagette293979811765588739/1765588046_335738_1399169192_483180372a0b55a7cf6278106c6cc595_rle_crop_4068612870_0.png.png imagette293979811765588739/1765588646_361913_1399169400_f0bca4c1e9999e0d85134d217aecb2cf_rle_crop_4068614243_0.png.png imagette293979811765588739/1765588385_349814_1399169278_cf0ecd87009330aee91dea135259c8ad_rle_crop_4068613485_0.png.png imagette293979811765588739/1765588385_349814_1399169279_ed04a4036770e15710fda2616697bcfa_rle_crop_4068613475_0.png.png imagette293979811765588739/1765588288_346664_1399169278_cf0ecd87009330aee91dea135259c8ad_rle_crop_4068613485_0.png.png imagette293979811765588739/1765588288_346664_1399169279_ed04a4036770e15710fda2616697bcfa_rle_crop_4068613475_0.png.png imagette293979811765588739/1765588046_335738_1399169190_5f61f317321ed2369a679519ea407fa9_rle_crop_4068612887_0.png.png imagette293979821765588740/ wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/c6f060daad357b4a5e50adc9b2f27423_57578730.png imagette293979811765588739 29397982 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29397982 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293979821765588740 29397973 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29397973 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399169263: '1765587907_327278_1399169168_9ea73bc454af77c2ca30b07077db9335_rle_crop_4068612493_0.png', 1399169316: '1765588046_335738_1399169192_483180372a0b55a7cf6278106c6cc595_rle_crop_4068612874_0.png', 1399169346: '1765588145_340598_1399169168_9ea73bc454af77c2ca30b07077db9335_rle_crop_4068612493_0.png', 1399169436: '1765588404_350249_1399169248_66baca06364a217e1cab7c95055c2c64_rle_crop_4068613754_0.png', 1399169437: '1765588404_350249_1399169244_0686d12d73e53547c5020c03e1276252_rle_crop_4068613761_0.png', 1399169512: '1765588625_361552_1399169418_b23b2858ee7d529347154e0515fec290_rle_crop_4068614130_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/34ad647f95b86fd598285cda502eae1b_24745172.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/b33b186f573a1545ed57f41e4b2815fe_62249270.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/34ad647f95b86fd598285cda502eae1b_46232253.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/6fdfa4a5d6ada0615743330d24cc5a9a_27224044.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/ce43b1badcc09a7f8427d240e35c1db8_84157583.png change filename to text .imagette293979731765588740/ imagette293979731765588740/1765588404_350249_1399169248_66baca06364a217e1cab7c95055c2c64_rle_crop_4068613754_0.png.png imagette293979731765588740/1765588404_350249_1399169244_0686d12d73e53547c5020c03e1276252_rle_crop_4068613761_0.png.png imagette293979731765588740/1765588625_361552_1399169418_b23b2858ee7d529347154e0515fec290_rle_crop_4068614130_0.png.png imagette293979731765588740/1765588046_335738_1399169192_483180372a0b55a7cf6278106c6cc595_rle_crop_4068612874_0.png.png imagette293979731765588740/1765587907_327278_1399169168_9ea73bc454af77c2ca30b07077db9335_rle_crop_4068612493_0.png.png imagette293979731765588740/1765588145_340598_1399169168_9ea73bc454af77c2ca30b07077db9335_rle_crop_4068612493_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/86649f9a3d1afe8504339df7970d34ea_94240022.png imagette293979731765588740 29397976 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29397976 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399169518: '1765588646_361913_1399169400_f0bca4c1e9999e0d85134d217aecb2cf_rle_crop_4068614254_0.png', 1399169433: '1765588404_350249_1399169242_0413ab4d86093cea038b1741006e578b_rle_crop_4068613774_0.png', 1399169434: '1765588404_350249_1399169240_4847cca69b37202c0f35e4eabe6b65e6_rle_crop_4068613781_0.png', 1399169467: '1765588507_355074_1399169374_424ef8baf644462ec87e09b6ad480c7c_rle_crop_4068613840_0.png', 1399169468: '1765588507_355074_1399169374_424ef8baf644462ec87e09b6ad480c7c_rle_crop_4068613838_0.png', 1399169469: '1765588507_355074_1399169372_94efbfb2e1b22636fab925b302ed4fae_rle_crop_4068613853_0.png', 1399169470: '1765588507_355074_1399169372_94efbfb2e1b22636fab925b302ed4fae_rle_crop_4068613852_0.png', 1399169509: '1765588625_361552_1399169420_61a204f23a9b1c37b28b436e6807d447_rle_crop_4068614118_0.png', 1399169510: '1765588625_361552_1399169418_b23b2858ee7d529347154e0515fec290_rle_crop_4068614134_0.png', 1399169345: '1765588145_340598_1399169164_8f48476cb4ca9081c34475126e50b926_rle_crop_4068612521_0.png', 1399169519: '1765588646_361913_1399169400_f0bca4c1e9999e0d85134d217aecb2cf_rle_crop_4068614247_0.png', 1399169520: '1765588646_361913_1399169400_f0bca4c1e9999e0d85134d217aecb2cf_rle_crop_4068614245_0.png', 1399169521: '1765588646_361913_1399169400_f0bca4c1e9999e0d85134d217aecb2cf_rle_crop_4068614255_0.png', 1399169522: '1765588646_361913_1399169374_424ef8baf644462ec87e09b6ad480c7c_rle_crop_4068613840_0.png', 1399169523: '1765588646_361913_1399169374_424ef8baf644462ec87e09b6ad480c7c_rle_crop_4068613838_0.png', 1399169524: '1765588646_361913_1399169372_94efbfb2e1b22636fab925b302ed4fae_rle_crop_4068613853_0.png', 1399169525: '1765588646_361913_1399169372_94efbfb2e1b22636fab925b302ed4fae_rle_crop_4068613852_0.png', 1399169256: '1765587907_327278_1399169168_9ea73bc454af77c2ca30b07077db9335_rle_crop_4068612499_0.png', 1399169344: '1765588145_340598_1399169166_1d67fdcf2ffcf6cc3995ec708bd682ea_rle_crop_4068612509_0.png', 1399169343: '1765588145_340598_1399169166_1d67fdcf2ffcf6cc3995ec708bd682ea_rle_crop_4068612510_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/5b135577d35eb6521f9b80f5c009581f_17968068.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/83722c99ce96c9ab7663b11e389dbeb4_99717749.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/0bf22681d66bccde3c9c64ec8cdd0ca3_83804346.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/d1aa71f8c62d992fb77c08352c013417_98392239.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/84af833053dd1d9c99367e43eb7edf8a_16933516.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/fa30c14796a1c755bdf79a90aa0bd216_86506991.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/7ac5dc684f3a154bf7a9279170e8da97_68007000.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/9926e1fc3a0d9780adc124102194cd24_87551451.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/4cff6cf2bb979d950cd0dc49fe4f701e_52499929.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/9603c2bf0d02a5053921bd1936ec3e5d_34546071.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/db5c7da854a9692571100454840f5339_88472503.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/69a1d41ec48d86f59018b830fb8ee23d_50847360.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/716b3aa2c501c844de821f48ff6d77a7_81364085.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/d1aa71f8c62d992fb77c08352c013417_72188336.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/84af833053dd1d9c99367e43eb7edf8a_29518712.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/fa30c14796a1c755bdf79a90aa0bd216_50485043.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/7ac5dc684f3a154bf7a9279170e8da97_19234624.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/842979d4cb3dd195e1fffd24736308bf_22169356.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/ca14bb5676447c5062d3b009df8f3494_66145910.png change filename to text .imagette293979761765588740/ imagette293979761765588740/1765588646_361913_1399169374_424ef8baf644462ec87e09b6ad480c7c_rle_crop_4068613840_0.png.png imagette293979761765588740/1765588646_361913_1399169400_f0bca4c1e9999e0d85134d217aecb2cf_rle_crop_4068614245_0.png.png imagette293979761765588740/1765588507_355074_1399169372_94efbfb2e1b22636fab925b302ed4fae_rle_crop_4068613853_0.png.png imagette293979761765588740/1765588625_361552_1399169418_b23b2858ee7d529347154e0515fec290_rle_crop_4068614134_0.png.png imagette293979761765588740/1765588507_355074_1399169372_94efbfb2e1b22636fab925b302ed4fae_rle_crop_4068613852_0.png.png imagette293979761765588740/1765588145_340598_1399169166_1d67fdcf2ffcf6cc3995ec708bd682ea_rle_crop_4068612509_0.png.png imagette293979761765588740/1765588507_355074_1399169374_424ef8baf644462ec87e09b6ad480c7c_rle_crop_4068613838_0.png.png imagette293979761765588740/1765588646_361913_1399169372_94efbfb2e1b22636fab925b302ed4fae_rle_crop_4068613853_0.png.png imagette293979761765588740/1765588404_350249_1399169240_4847cca69b37202c0f35e4eabe6b65e6_rle_crop_4068613781_0.png.png imagette293979761765588740/1765588646_361913_1399169374_424ef8baf644462ec87e09b6ad480c7c_rle_crop_4068613838_0.png.png imagette293979761765588740/1765588507_355074_1399169374_424ef8baf644462ec87e09b6ad480c7c_rle_crop_4068613840_0.png.png imagette293979761765588740/1765588646_361913_1399169400_f0bca4c1e9999e0d85134d217aecb2cf_rle_crop_4068614254_0.png.png imagette293979761765588740/1765588646_361913_1399169400_f0bca4c1e9999e0d85134d217aecb2cf_rle_crop_4068614255_0.png.png imagette293979761765588740/1765588145_340598_1399169164_8f48476cb4ca9081c34475126e50b926_rle_crop_4068612521_0.png.png imagette293979761765588740/1765588625_361552_1399169420_61a204f23a9b1c37b28b436e6807d447_rle_crop_4068614118_0.png.png imagette293979761765588740/1765588646_361913_1399169400_f0bca4c1e9999e0d85134d217aecb2cf_rle_crop_4068614247_0.png.png imagette293979761765588740/1765587907_327278_1399169168_9ea73bc454af77c2ca30b07077db9335_rle_crop_4068612499_0.png.png imagette293979761765588740/1765588145_340598_1399169166_1d67fdcf2ffcf6cc3995ec708bd682ea_rle_crop_4068612510_0.png.png imagette293979761765588740/1765588404_350249_1399169242_0413ab4d86093cea038b1741006e578b_rle_crop_4068613774_0.png.png imagette293979761765588740/1765588646_361913_1399169372_94efbfb2e1b22636fab925b302ed4fae_rle_crop_4068613852_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/0d8574ebe4f09124370e9a049aa64f34_56926437.png imagette293979761765588740 29397984 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29397984 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399169545: '1765588706_367351_1399169461_3edf168bbcc62db29d5fadbbec997d8b_rle_crop_4068614319_0.png'} change filename to text .imagette293979841765588742/ imagette293979841765588742/1765588706_367351_1399169461_3edf168bbcc62db29d5fadbbec997d8b_rle_crop_4068614319_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/c3c72134a6e776df0056bc134ebb31b9_55282072.png imagette293979841765588742 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29397957 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29397986,29397987,29397989,29397990,29397991,29397992,29397993,29397994,29397995,29397996,29397997,29397998?tags=flou,Carton_gris,papier,plastique,Teint_Dans_La_Masse,mal_croppe,kraft,autre_refus,cartonnette,metal,environnement,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1399169493] : ('0.05096435921704283',) no score found for photo 1399169493 We are sending mail with results at report@fotonower.com refus_total : 0.05096435921704283 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29397957 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_P29397957_13-12-2025_02_18_58.pdf results_Auto_P29397957_13-12-2025_02_18_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29397957_13-12-2025_02_18_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','29397957','results_Auto_P29397957_13-12-2025_02_18_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29397957_13-12-2025_02_18_58.pdf','pdf','','0.15','0.05096435921704283') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29397957]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399169493] map_info['map_portfolio_photo'] : {29397957: [1399169493, 1399169462, 1399169461, 1399169459, 1399169445, 1399169443, 1399169442, 1399169439, 1399169423, 1399169420, 1399169418, 1399169417, 1399169416, 1399169415, 1399169400, 1399169396, 1399169392, 1399169390, 1399169388, 1399169376, 1399169374, 1399169372, 1399169366, 1399169331, 1399169296, 1399169294, 1399169293, 1399169292, 1399169291, 1399169281, 1399169280, 1399169279, 1399169278, 1399169252, 1399169248, 1399169244, 1399169242, 1399169240, 1399169230, 1399169229, 1399169228, 1399169203, 1399169202, 1399169194, 1399169192, 1399169191, 1399169190, 1399169189, 1399169168, 1399169166, 1399169164, 1399169162]} final : False mtd_id 4302 list_pids : [1399169493] 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, '4217869') ('4302', '29397957', '1399169493', None, None, None, None, None, '4217869') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '29397957', '1399169493', None, None, None, None, None, '4217869')] time used for this insertion : 0.014920711517333984 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.71096658706665 time spend to save output : 0.015124082565307617 total time spend for step 4 : 4.726090669631958 step5:split_time_score Sat Dec 13 02:19: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 : ['29397957'] 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 : [('29397957',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29397957) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399169493: {'path': 'temp/1765588738_1134114_1399169493_ff540f135f86c5f5883f5eec917b2967.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 = 29397957; (('arc_en_ciel_jrm_live',), ('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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29397957 group by h (('02', 52),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29397957 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 (29397957) 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 (29397957) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 13122025 29397957 Nombre de photos uploadées : 52 / 23040 (0%) 13122025 29397957 Nombre de photos taguées (types de déchets): 0 / 52 (0%) 13122025 29397957 Nombre de photos taguées (volume) : 0 / 52 (0%) [{'photo_id': 1399169168, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/9ea73bc454af77c2ca30b07077db9335.jpg', 'username': None, 'uploaded_at': 1765587668, 'text': 'image_13122025_02_00_14_010139m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399169166, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/1d67fdcf2ffcf6cc3995ec708bd682ea.jpg', 'username': None, 'uploaded_at': 1765587668, 'text': 'image_13122025_02_00_24_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399169164, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/8f48476cb4ca9081c34475126e50b926.jpg', 'username': None, 'uploaded_at': 1765587668, 'text': 'image_13122025_02_00_34_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399169162, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/56b09521c33b4dc927ce760e1251b380.jpg', 'username': None, 'uploaded_at': 1765587668, 'text': 'image_13122025_02_00_44_010136m0.jpg 4e-05 for time 1, id_amount 2 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 8.106231689453125e-06 ???????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0022361278533935547 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29397957, '2025-12-13' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-13' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2732453,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24956846237182617 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= 2732453 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2732453, 'dashboard_run_id': 2739522, 'mtr_portfolio_id': 29395767, 'dashboard_result_id': 18342182, '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_P29395767_13-12-2025_00_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29395770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29395771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29395772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29395773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29395774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29395775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29395776, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29395777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29395778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29395779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29395780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29395781, 'pht': 3726}}"}, {'dashboat_entry_day': 2732453, 'dashboard_run_id': 2739522, 'mtr_portfolio_id': 29396142, 'dashboard_result_id': 18342183, '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_P29396142_13-12-2025_00_46_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29396145, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29396146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29396147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29396148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29396149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29396150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29396151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29396152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29396153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29396154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29396155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29396156, 'pht': 3726}}"}, {'dashboat_entry_day': 2732453, 'dashboard_run_id': 2739522, 'mtr_portfolio_id': 29396508, 'dashboard_result_id': 18342184, '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_P29396508_13-12-2025_01_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29396514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29396515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29396516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29396517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29396518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29396519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29396520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29396521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29396522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29396523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29396524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29396525, 'pht': 3726}}"}, {'dashboat_entry_day': 2732453, 'dashboard_run_id': 2739522, 'mtr_portfolio_id': 29397250, 'dashboard_result_id': 18342185, '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_P29397250_13-12-2025_01_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29397252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29397253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29397254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29397255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29397256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29397257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29397258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29397259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29397260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29397261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29397262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29397263, 'pht': 3726}}"}, {'dashboat_entry_day': 2732453, 'dashboard_run_id': 2739522, 'mtr_portfolio_id': 29397563, 'dashboard_result_id': 18342186, '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_P29397563_13-12-2025_02_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29397569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29397570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29397571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29397572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29397573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29397574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29397575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29397576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29397577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29397578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29397579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29397580, 'pht': 3726}}"}, {'dashboat_entry_day': 2732453, 'dashboard_run_id': 2739522, 'mtr_portfolio_id': 29397957, 'dashboard_result_id': 18342187, '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_P29397957_13-12-2025_02_16_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29397972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29397973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29397974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29397975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29397976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29397977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29397978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29397980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29397981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29397982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29397983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29397984, '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 = 29395767 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': 4217545, 'mtr_portfolio_id': 29395767, 'created_at': datetime.datetime(2025, 12, 13, 0, 32, 59), 'result': '0.05909860523021329', 'result_long': None, 'result_double': None}] Qualite : 0.05909860523021329 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29395767 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29395767_13-12-2025_00_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29395767 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_P29395767_13-12-2025_00_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29395770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29395771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29395772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29395773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29395774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29395775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29395776, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29395777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29395778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29395779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29395780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29395781, 'pht': 3726}}" where mtr_portfolio_id = 29395767 and dashboard_run_id = 2739522 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`=29395767 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18342182, 0.05909860523021329, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29395767_13-12-2025_00_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29395770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29395771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29395772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29395773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29395774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29395775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29395776, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29395777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29395778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29395779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29395780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29395781, '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 = 29396142 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': 4217582, 'mtr_portfolio_id': 29396142, 'created_at': datetime.datetime(2025, 12, 13, 0, 46, 57), 'result': '0.05462950009267587', 'result_long': None, 'result_double': None}] Qualite : 0.05462950009267587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29396142 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29396142_13-12-2025_00_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29396142 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_P29396142_13-12-2025_00_46_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29396145, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29396146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29396147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29396148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29396149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29396150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29396151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29396152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29396153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29396154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29396155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29396156, 'pht': 3726}}" where mtr_portfolio_id = 29396142 and dashboard_run_id = 2739522 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`=29396142 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18342183, 0.05462950009267587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29396142_13-12-2025_00_46_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29396145, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29396146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29396147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29396148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29396149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29396150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29396151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29396152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29396153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29396154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29396155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29396156, '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 = 29396508 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': 4217626, 'mtr_portfolio_id': 29396508, 'created_at': datetime.datetime(2025, 12, 13, 1, 32, 59), 'result': '0.057125660119203954', 'result_long': None, 'result_double': None}] Qualite : 0.057125660119203954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29396508 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29396508_13-12-2025_01_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29396508 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_P29396508_13-12-2025_01_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29396514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29396515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29396516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29396517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29396518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29396519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29396520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29396521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29396522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29396523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29396524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29396525, 'pht': 3726}}" where mtr_portfolio_id = 29396508 and dashboard_run_id = 2739522 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`=29396508 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18342184, 0.057125660119203954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29396508_13-12-2025_01_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29396514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29396515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29396516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29396517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29396518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29396519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29396520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29396521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29396522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29396523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29396524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29396525, '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 = 29397250 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': 4217754, 'mtr_portfolio_id': 29397250, 'created_at': datetime.datetime(2025, 12, 13, 1, 46, 59), 'result': '0.05056901313580099', 'result_long': None, 'result_double': None}] Qualite : 0.05056901313580099 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29397250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29397250_13-12-2025_01_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29397250 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_P29397250_13-12-2025_01_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29397252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29397253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29397254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29397255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29397256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29397257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29397258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29397259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29397260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29397261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29397262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29397263, 'pht': 3726}}" where mtr_portfolio_id = 29397250 and dashboard_run_id = 2739520 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`=29397250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18342185, 0.05056901313580099, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29397250_13-12-2025_01_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29397252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29397253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29397254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29397255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29397256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29397257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29397258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29397259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29397260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29397261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29397262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29397263, '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 = 29397563 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': 4217793, 'mtr_portfolio_id': 29397563, 'created_at': datetime.datetime(2025, 12, 13, 2, 2, 58), 'result': '0.048218870895430255', 'result_long': None, 'result_double': None}] Qualite : 0.048218870895430255 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29397563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29397563_13-12-2025_02_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29397563 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_P29397563_13-12-2025_02_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29397569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29397570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29397571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29397572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29397573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29397574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29397575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29397576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29397577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29397578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29397579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29397580, 'pht': 3726}}" where mtr_portfolio_id = 29397563 and dashboard_run_id = 2739520 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`=29397563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18342186, 0.048218870895430255, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29397563_13-12-2025_02_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29397569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29397570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29397571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29397572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29397573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29397574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29397575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29397576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29397577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29397578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29397579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29397580, '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 = 29397957 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': 4217869, 'mtr_portfolio_id': 29397957, 'created_at': datetime.datetime(2025, 12, 13, 2, 18, 58), 'result': '0.05096435921704283', 'result_long': None, 'result_double': None}] Qualite : 0.05096435921704283 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29397957 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29397957_13-12-2025_02_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29397957 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_P29397957_13-12-2025_02_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29397972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29397973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29397974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29397975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29397976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29397977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29397978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29397980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29397981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29397982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29397983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29397984, 'pht': 3726}}" where mtr_portfolio_id = 29397957 and dashboard_run_id = 2739520 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`=29397957 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18342187, 0.05096435921704283, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29397957_13-12-2025_02_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29397972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29397973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29397974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29397975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29397976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29397977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29397978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29397980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29397981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29397982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29397983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29397984, '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 (29395767,29396142,29396508,29397250,29397563,29397957) result : ((1399164481,), (1399164513,), (1399164914,), (1399164915,), (1399165057,), (1399165093,), (1399165125,), (1399165157,), (1399165298,), (1399165299,), (1399165300,), (1399165301,), (1399165304,), (1399165306,), (1399165330,), (1399165331,), (1399165332,), (1399165333,), (1399165347,), (1399165348,), (1399165349,), (1399165350,), (1399165352,), (1399165354,), (1399165385,), (1399165393,), (1399165394,), (1399165395,), (1399165398,), (1399165411,), (1399165412,), (1399165413,), (1399165414,), (1399165438,), (1399165439,), (1399165440,), (1399165441,), (1399165444,), (1399165446,), (1399165458,), (1399165459,), (1399165460,), (1399165461,), (1399165463,), (1399165466,), (1399165490,), (1399165491,), (1399165492,), (1399165493,), (1399165507,), (1399165508,), (1399165509,), (1399165510,), (1399165513,), (1399165514,), (1399165538,), (1399165542,), (1399165543,), (1399165544,), (1399165547,), (1399165558,), (1399165559,), (1399165560,), (1399165561,), (1399165589,), (1399165597,), (1399165598,), (1399165599,), (1399165603,), (1399165608,), (1399165626,), (1399165629,), (1399165632,), (1399165646,), (1399165648,), (1399165650,), (1399165651,), (1399165621,), (1399165622,), (1399165623,), (1399165654,), (1399165655,), (1399165657,), (1399165659,), (1399165661,), (1399165663,), (1399165672,), (1399165674,), (1399165677,), (1399165683,), (1399165689,), (1399165692,), (1399165695,), (1399165696,), (1399165697,), (1399165698,), (1399165699,), (1399165700,), (1399165735,), (1399165736,), (1399165737,), (1399165738,), (1399165740,), (1399165741,), (1399165744,), (1399165745,), (1399165746,), (1399165747,), (1399165749,), (1399165752,), (1399165775,), (1399165776,), (1399165777,), (1399165784,), (1399165790,), (1399165807,), (1399165830,), (1399165831,), (1399165832,), (1399165833,), (1399165856,), (1399165857,), (1399165858,), (1399165859,), (1399165862,), (1399165864,), (1399165875,), (1399165877,), (1399165879,), (1399165883,), (1399165901,), (1399165903,), (1399165905,), (1399165909,), (1399165913,), (1399165916,), (1399165926,), (1399165927,), (1399165928,), (1399165929,), (1399165959,), (1399165960,), (1399165961,), (1399165962,), (1399165965,), (1399165968,), (1399165978,), (1399165979,), (1399165980,), (1399165981,), (1399166001,), (1399166002,), (1399166003,), (1399166004,), (1399166006,), (1399166009,), (1399166015,), (1399166016,), (1399166018,), (1399166019,), (1399166021,), (1399166065,), (1399166063,), (1399166064,), (1399166069,), (1399166070,), (1399166071,), (1399166072,), (1399166075,), (1399166077,), (1399166093,), (1399166094,), (1399166095,), (1399166096,), (1399166109,), (1399166110,), (1399166111,), (1399166112,), (1399166114,), (1399166139,), (1399166140,), (1399166141,), (1399166142,), (1399166153,), (1399166155,), (1399166157,), (1399166183,), (1399166189,), (1399166190,), (1399166191,), (1399166194,), (1399166206,), (1399166208,), (1399166210,), (1399166214,), (1399166218,), (1399166222,), (1399166243,), (1399166252,), (1399166254,), (1399166258,), (1399166267,), (1399166268,), (1399166269,), (1399166270,), (1399166272,), (1399166275,), (1399166301,), (1399166302,), (1399166303,), (1399166304,), (1399166321,), (1399166322,), (1399166323,), (1399166324,), (1399166327,), (1399166330,), (1399166367,), (1399166368,), (1399166369,), (1399166372,), (1399166375,), (1399166377,), (1399166383,), (1399166384,), (1399166386,), (1399166392,), (1399166395,), (1399166396,), (1399166400,), (1399166403,), (1399166404,), (1399166417,), (1399166419,), (1399166421,), (1399166423,), (1399166425,), (1399166431,), (1399168468,), (1399168482,), (1399168483,), (1399168484,), (1399168485,), (1399168493,), (1399168494,), (1399168495,), (1399168496,), (1399168521,), (1399168522,), (1399168535,), (1399168537,), (1399168538,), (1399168539,), (1399168541,), (1399168575,), (1399168577,), (1399168597,), (1399168598,), (1399168599,), (1399168600,), (1399168623,), (1399168624,), (1399168625,), (1399168626,), (1399168629,), (1399168632,), (1399168638,), (1399168639,), (1399168656,), (1399168657,), (1399168658,), (1399168659,), (1399168668,), (1399168669,), (1399168670,), (1399168683,), (1399168684,), (1399168685,), (1399168686,), (1399168709,), (1399168710,), (1399168711,), (1399168712,), (1399168713,), (1399168714,), (1399168737,), (1399168739,), (1399168740,), (1399168741,), (1399168748,), (1399168750,), (1399168752,), (1399168754,), (1399168756,), (1399168758,), (1399168780,), (1399168777,), (1399168778,), (1399168779,), (1399168793,), (1399168794,), (1399168818,), (1399168819,), (1399168820,), (1399168821,), (1399168824,), (1399168836,), (1399168838,), (1399168839,), (1399168840,), (1399168860,), (1399168861,), (1399168862,), (1399168863,), (1399168866,), (1399168875,), (1399168876,), (1399168877,), (1399168880,), (1399168883,), (1399168886,), (1399168906,), (1399168907,), (1399168908,), (1399168909,), (1399168917,), (1399168918,), (1399168921,), (1399168924,), (1399168929,), (1399168930,), (1399168931,), (1399168932,), (1399168934,), (1399168937,), (1399168974,), (1399168975,), (1399168976,), (1399168977,), (1399169000,), (1399169003,), (1399169006,), (1399169024,), (1399169026,), (1399169028,), (1399169039,), (1399169050,), (1399169062,), (1399169063,), (1399169064,), (1399169065,), (1399169068,), (1399169070,), (1399169099,), (1399169103,), (1399169104,), (1399169105,), (1399169108,), (1399169123,), (1399169129,), (1399169132,), (1399169133,), (1399169144,), (1399169146,), (1399169148,), (1399169171,), (1399169162,), (1399169164,), (1399169166,), (1399169168,), (1399169189,), (1399169190,), (1399169191,), (1399169192,), (1399169194,), (1399169202,), (1399169203,), (1399169228,), (1399169229,), (1399169230,), (1399169240,), (1399169242,), (1399169244,), (1399169248,), (1399169252,), (1399169278,), (1399169279,), (1399169280,), (1399169281,), (1399169291,), (1399169292,), (1399169293,), (1399169294,), (1399169296,), (1399169331,), (1399169366,), (1399169372,), (1399169374,), (1399169376,), (1399169388,), (1399169390,), (1399169392,), (1399169396,), (1399169400,), (1399169415,), (1399169416,), (1399169417,), (1399169418,), (1399169420,), (1399169423,), (1399169439,), (1399169442,), (1399169443,), (1399169445,), (1399169459,), (1399169461,), (1399169462,), (1399169493,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'13122025': {'nb_upload': 52, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29397957]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399169493] map_info['map_portfolio_photo'] : {29397957: [1399169493, 1399169462, 1399169461, 1399169459, 1399169445, 1399169443, 1399169442, 1399169439, 1399169423, 1399169420, 1399169418, 1399169417, 1399169416, 1399169415, 1399169400, 1399169396, 1399169392, 1399169390, 1399169388, 1399169376, 1399169374, 1399169372, 1399169366, 1399169331, 1399169296, 1399169294, 1399169293, 1399169292, 1399169291, 1399169281, 1399169280, 1399169279, 1399169278, 1399169252, 1399169248, 1399169244, 1399169242, 1399169240, 1399169230, 1399169229, 1399169228, 1399169203, 1399169202, 1399169194, 1399169192, 1399169191, 1399169190, 1399169189, 1399169168, 1399169166, 1399169164, 1399169162]} final : True mtd_id 4302 list_pids : [1399169493] Looping around the photos to save general results len do output : 1 /29397957Didn'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, '4217869') ('4302', '29397957', '1399169493', None, None, None, None, None, '4217869') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '29397957', 'None', None, None, None, None, '4217869'), ('4302', '29397957', '1399169493', None, None, None, None, None, '4217869')] time used for this insertion : 0.01572585105895996 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7627217769622803 time spend to save output : 0.015879392623901367 total time spend for step 5 : 0.7786011695861816 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 (4217869) 1.85user 2.42system 0:08.23elapsed 51%CPU (0avgtext+0avgdata 161724maxresident)k 624inputs+7616outputs (1major+65175minor)pagefaults 0swaps