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 : 1914688 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 (4043592) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4043592) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28507316 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4043592'] with mtr_portfolio_ids : ['28507316'] and first list_photo_ids : [] new path : /proc/1914688/ Name: python3 Umask: 0002 State: R (running) Tgid: 1914688 Ngid: 0 Pid: 1914688 PPid: 1914687 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1914688 NSpid: 1914688 NSpgid: 1913275 NSsid: 1913275 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98928 kB VmRSS: 98928 kB RssAnon: 59904 kB RssFile: 39024 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/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: 51 nonvoluntary_ctxt_switches: 84 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1914688', 'Ngid': '0', 'Pid': '1914688', 'PPid': '1914687', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1914688', 'NSpid': '1914688', 'NSpgid': '1913275', 'NSsid': '1913275', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98928 kB', 'VmRSS': '98928 kB', 'RssAnon': '59904 kB', 'RssFile': '39024 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/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': '51', 'nonvoluntary_ctxt_switches': '84'} ('datou_batch_current', '1914688', '1106908', '0', '1106884', '865636', '98928', b'', 'marlene', '4043592') 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 (28507316) 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 (4043592 ) ) 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 (28507316) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1394320790, 'portfolio_id': 28507316}, {'photo_id': 1394320760, 'portfolio_id': 28507316}, {'photo_id': 1394320755, 'portfolio_id': 28507316}, {'photo_id': 1394320752, 'portfolio_id': 28507316}, {'photo_id': 1394320748, 'portfolio_id': 28507316}, {'photo_id': 1394320729, 'portfolio_id': 28507316}, {'photo_id': 1394320698, 'portfolio_id': 28507316}, {'photo_id': 1394320693, 'portfolio_id': 28507316}, {'photo_id': 1394320689, 'portfolio_id': 28507316}, {'photo_id': 1394320685, 'portfolio_id': 28507316}, {'photo_id': 1394320674, 'portfolio_id': 28507316}, {'photo_id': 1394320663, 'portfolio_id': 28507316}, {'photo_id': 1394320660, 'portfolio_id': 28507316}, {'photo_id': 1394320657, 'portfolio_id': 28507316}, {'photo_id': 1394320654, 'portfolio_id': 28507316}, {'photo_id': 1394320650, 'portfolio_id': 28507316}, {'photo_id': 1394320627, 'portfolio_id': 28507316}, {'photo_id': 1394320625, 'portfolio_id': 28507316}, {'photo_id': 1394320616, 'portfolio_id': 28507316}, {'photo_id': 1394320612, 'portfolio_id': 28507316}, {'photo_id': 1394320607, 'portfolio_id': 28507316}, {'photo_id': 1394320604, 'portfolio_id': 28507316}, {'photo_id': 1394320601, 'portfolio_id': 28507316}, {'photo_id': 1394320598, 'portfolio_id': 28507316}, {'photo_id': 1394320575, 'portfolio_id': 28507316}, {'photo_id': 1394320554, 'portfolio_id': 28507316}, {'photo_id': 1394320509, 'portfolio_id': 28507316}, {'photo_id': 1394320461, 'portfolio_id': 28507316}, {'photo_id': 1394320424, 'portfolio_id': 28507316}] map_portfolio_id_photo_id: {28507316: [1394320790, 1394320760, 1394320755, 1394320752, 1394320748, 1394320729, 1394320698, 1394320693, 1394320689, 1394320685, 1394320674, 1394320663, 1394320660, 1394320657, 1394320654, 1394320650, 1394320627, 1394320625, 1394320616, 1394320612, 1394320607, 1394320604, 1394320601, 1394320598, 1394320575, 1394320554, 1394320509, 1394320461, 1394320424]} ##### 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.041615962982177734 #### 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 Fri Nov 14 01:46:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28507316) 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 : 28507316 get user id for portfolio 28507316 get sub ptf for main ptf 28507316, type 3726 and hashtags ['cartonnette', 'metal', 'papier', 'autre_refus', 'Carton_brun', 'plastique', 'mal_croppe', 'kraft', 'Carton_gris', 'Teint_Dans_La_Masse', 'environnement', 'flou'] 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`=28507316 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','metal','papier','autre_refus','Carton_brun','plastique','mal_croppe','kraft','Carton_gris','Teint_Dans_La_Masse','environnement','flou')) 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`=28507316 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','metal','papier','autre_refus','Carton_brun','plastique','mal_croppe','kraft','Carton_gris','Teint_Dans_La_Masse','environnement','flou')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 28507316, 'sub_port_id': 28507317, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317554, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37)}, 'metal': {'main_port_id': 28507316, 'sub_port_id': 28507318, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317555, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37)}, 'plastique': {'main_port_id': 28507316, 'sub_port_id': 28507319, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317556, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37)}, 'environnement': {'main_port_id': 28507316, 'sub_port_id': 28507320, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317557, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37)}, 'papier': {'main_port_id': 28507316, 'sub_port_id': 28507321, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317558, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37)}, 'Carton_brun': {'main_port_id': 28507316, 'sub_port_id': 28507322, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317559, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37)}, 'kraft': {'main_port_id': 28507316, 'sub_port_id': 28507323, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317560, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37)}, 'cartonnette': {'main_port_id': 28507316, 'sub_port_id': 28507324, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317561, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37)}, 'Carton_gris': {'main_port_id': 28507316, 'sub_port_id': 28507325, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317562, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37)}, 'Teint_Dans_La_Masse': {'main_port_id': 28507316, 'sub_port_id': 28507326, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317563, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37)}, 'autre_refus': {'main_port_id': 28507316, 'sub_port_id': 28507327, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317564, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37)}, 'mal_croppe': {'main_port_id': 28507316, 'sub_port_id': 28507328, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317565, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28507317 , 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=28507316 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 (28507317) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28507316) result : ((1394320424,), (1394320461,), (1394320509,), (1394320554,), (1394320575,), (1394320598,), (1394320601,), (1394320604,), (1394320607,), (1394320612,), (1394320616,), (1394320625,), (1394320627,), (1394320650,), (1394320654,), (1394320657,), (1394320660,), (1394320663,), (1394320674,), (1394320685,), (1394320689,), (1394320693,), (1394320698,), (1394320729,), (1394320748,), (1394320752,), (1394320755,), (1394320760,), (1394320790,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28507318 , 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=28507316 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 (28507318) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28507316) result : ((1394320424,), (1394320461,), (1394320509,), (1394320554,), (1394320575,), (1394320598,), (1394320601,), (1394320604,), (1394320607,), (1394320612,), (1394320616,), (1394320625,), (1394320627,), (1394320650,), (1394320654,), (1394320657,), (1394320660,), (1394320663,), (1394320674,), (1394320685,), (1394320689,), (1394320693,), (1394320698,), (1394320729,), (1394320748,), (1394320752,), (1394320755,), (1394320760,), (1394320790,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28507319 , 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=28507316 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 (28507319) result : ((1394320711,), (1394320712,), (1394320713,), (1394320714,), (1394320715,), (1394320792,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28507316) result : ((1394320424,), (1394320461,), (1394320509,), (1394320554,), (1394320575,), (1394320598,), (1394320601,), (1394320604,), (1394320607,), (1394320612,), (1394320616,), (1394320625,), (1394320627,), (1394320650,), (1394320654,), (1394320657,), (1394320660,), (1394320663,), (1394320674,), (1394320685,), (1394320689,), (1394320693,), (1394320698,), (1394320729,), (1394320748,), (1394320752,), (1394320755,), (1394320760,), (1394320790,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28507320 , 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=28507316 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 (28507320) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28507316) result : ((1394320424,), (1394320461,), (1394320509,), (1394320554,), (1394320575,), (1394320598,), (1394320601,), (1394320604,), (1394320607,), (1394320612,), (1394320616,), (1394320625,), (1394320627,), (1394320650,), (1394320654,), (1394320657,), (1394320660,), (1394320663,), (1394320674,), (1394320685,), (1394320689,), (1394320693,), (1394320698,), (1394320729,), (1394320748,), (1394320752,), (1394320755,), (1394320760,), (1394320790,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28507321 , 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=28507316 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 (28507321) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28507316) result : ((1394320424,), (1394320461,), (1394320509,), (1394320554,), (1394320575,), (1394320598,), (1394320601,), (1394320604,), (1394320607,), (1394320612,), (1394320616,), (1394320625,), (1394320627,), (1394320650,), (1394320654,), (1394320657,), (1394320660,), (1394320663,), (1394320674,), (1394320685,), (1394320689,), (1394320693,), (1394320698,), (1394320729,), (1394320748,), (1394320752,), (1394320755,), (1394320760,), (1394320790,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28507322 , 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=28507316 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 (28507322) result : ((1394320791,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28507316) result : ((1394320424,), (1394320461,), (1394320509,), (1394320554,), (1394320575,), (1394320598,), (1394320601,), (1394320604,), (1394320607,), (1394320612,), (1394320616,), (1394320625,), (1394320627,), (1394320650,), (1394320654,), (1394320657,), (1394320660,), (1394320663,), (1394320674,), (1394320685,), (1394320689,), (1394320693,), (1394320698,), (1394320729,), (1394320748,), (1394320752,), (1394320755,), (1394320760,), (1394320790,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28507323 , 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=28507316 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 (28507323) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28507316) result : ((1394320424,), (1394320461,), (1394320509,), (1394320554,), (1394320575,), (1394320598,), (1394320601,), (1394320604,), (1394320607,), (1394320612,), (1394320616,), (1394320625,), (1394320627,), (1394320650,), (1394320654,), (1394320657,), (1394320660,), (1394320663,), (1394320674,), (1394320685,), (1394320689,), (1394320693,), (1394320698,), (1394320729,), (1394320748,), (1394320752,), (1394320755,), (1394320760,), (1394320790,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28507324 , 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=28507316 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 (28507324) result : ((1394320706,), (1394320709,), (1394320710,), (1394320789,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28507316) result : ((1394320424,), (1394320461,), (1394320509,), (1394320554,), (1394320575,), (1394320598,), (1394320601,), (1394320604,), (1394320607,), (1394320612,), (1394320616,), (1394320625,), (1394320627,), (1394320650,), (1394320654,), (1394320657,), (1394320660,), (1394320663,), (1394320674,), (1394320685,), (1394320689,), (1394320693,), (1394320698,), (1394320729,), (1394320748,), (1394320752,), (1394320755,), (1394320760,), (1394320790,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28507325 , 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=28507316 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 (28507325) result : ((1394320787,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28507316) result : ((1394320424,), (1394320461,), (1394320509,), (1394320554,), (1394320575,), (1394320598,), (1394320601,), (1394320604,), (1394320607,), (1394320612,), (1394320616,), (1394320625,), (1394320627,), (1394320650,), (1394320654,), (1394320657,), (1394320660,), (1394320663,), (1394320674,), (1394320685,), (1394320689,), (1394320693,), (1394320698,), (1394320729,), (1394320748,), (1394320752,), (1394320755,), (1394320760,), (1394320790,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28507326 , 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=28507316 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 (28507326) result : ((1394320702,), (1394320703,), (1394320704,), (1394320705,), (1394320774,), (1394320775,), (1394320783,), (1394320784,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28507316) result : ((1394320424,), (1394320461,), (1394320509,), (1394320554,), (1394320575,), (1394320598,), (1394320601,), (1394320604,), (1394320607,), (1394320612,), (1394320616,), (1394320625,), (1394320627,), (1394320650,), (1394320654,), (1394320657,), (1394320660,), (1394320663,), (1394320674,), (1394320685,), (1394320689,), (1394320693,), (1394320698,), (1394320729,), (1394320748,), (1394320752,), (1394320755,), (1394320760,), (1394320790,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28507327 , 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=28507316 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 (28507327) result : ((1394320786,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28507316) result : ((1394320424,), (1394320461,), (1394320509,), (1394320554,), (1394320575,), (1394320598,), (1394320601,), (1394320604,), (1394320607,), (1394320612,), (1394320616,), (1394320625,), (1394320627,), (1394320650,), (1394320654,), (1394320657,), (1394320660,), (1394320663,), (1394320674,), (1394320685,), (1394320689,), (1394320693,), (1394320698,), (1394320729,), (1394320748,), (1394320752,), (1394320755,), (1394320760,), (1394320790,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28507328 , 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=28507316 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 (28507328) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28507316) result : ((1394320424,), (1394320461,), (1394320509,), (1394320554,), (1394320575,), (1394320598,), (1394320601,), (1394320604,), (1394320607,), (1394320612,), (1394320616,), (1394320625,), (1394320627,), (1394320650,), (1394320654,), (1394320657,), (1394320660,), (1394320663,), (1394320674,), (1394320685,), (1394320689,), (1394320693,), (1394320698,), (1394320729,), (1394320748,), (1394320752,), (1394320755,), (1394320760,), (1394320790,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28507316 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','metal','papier','autre_refus','Carton_brun','plastique','mal_croppe','kraft','Carton_gris','Teint_Dans_La_Masse','environnement','flou')) 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`=28507316 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','metal','papier','autre_refus','Carton_brun','plastique','mal_croppe','kraft','Carton_gris','Teint_Dans_La_Masse','environnement','flou')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 28507316, 'sub_port_id': 28507329, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317566, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37, 4)}, 'metal': {'main_port_id': 28507316, 'sub_port_id': 28507330, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317567, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37, 4)}, 'plastique': {'main_port_id': 28507316, 'sub_port_id': 28507331, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317568, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37, 4)}, 'environnement': {'main_port_id': 28507316, 'sub_port_id': 28507332, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317569, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37, 4)}, 'papier': {'main_port_id': 28507316, 'sub_port_id': 28507333, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317570, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37, 4)}, 'Carton_brun': {'main_port_id': 28507316, 'sub_port_id': 28507334, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317571, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37, 4)}, 'kraft': {'main_port_id': 28507316, 'sub_port_id': 28507335, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317572, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37, 4)}, 'cartonnette': {'main_port_id': 28507316, 'sub_port_id': 28507336, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317573, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37, 4)}, 'Carton_gris': {'main_port_id': 28507316, 'sub_port_id': 28507337, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317574, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37, 4)}, 'Teint_Dans_La_Masse': {'main_port_id': 28507316, 'sub_port_id': 28507338, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317575, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37, 4)}, 'autre_refus': {'main_port_id': 28507316, 'sub_port_id': 28507339, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317576, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 37, 4), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37, 4)}, 'mal_croppe': {'main_port_id': 28507316, 'sub_port_id': 28507340, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19317577, 'last_updated_at': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 1, 45, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 1, 37, 4)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28507329,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28507317 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28507330,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28507318 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28507331,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28507319 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28507332,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28507320 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28507333,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28507321 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28507334,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28507322 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28507335,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28507323 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28507336,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28507324 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28507337,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28507325 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28507338,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28507326 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28507339,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28507327 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28507340,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28507328 lien utilise dans velours : https://marlene.fotonower.com/velours/28507329,28507330,28507331,28507332,28507333,28507334,28507335,28507336,28507337,28507338,28507339,28507340?tags=flou,metal,plastique,environnement,papier,Carton_brun,kraft,cartonnette,Carton_gris,Teint_Dans_La_Masse,autre_refus,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28507316]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1394320790, 1394320760, 1394320755, 1394320752, 1394320748] map_info['map_portfolio_photo'] : {28507316: [1394320790, 1394320760, 1394320755, 1394320752, 1394320748, 1394320729, 1394320698, 1394320693, 1394320689, 1394320685, 1394320674, 1394320663, 1394320660, 1394320657, 1394320654, 1394320650, 1394320627, 1394320625, 1394320616, 1394320612, 1394320607, 1394320604, 1394320601, 1394320598, 1394320575, 1394320554, 1394320509, 1394320461, 1394320424]} final : False mtd_id 4302 list_pids : [1394320790, 1394320760, 1394320755, 1394320752, 1394320748] Looping around the photos to save general results len do output : 1 /28507316. 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, '4043592') ('4302', '28507316', '1394320790', None, None, None, None, None, '4043592') ('4302', None, None, None, None, None, None, None, '4043592') ('4302', '28507316', '1394320760', None, None, None, None, None, '4043592') ('4302', None, None, None, None, None, None, None, '4043592') ('4302', '28507316', '1394320755', None, None, None, None, None, '4043592') ('4302', None, None, None, None, None, None, None, '4043592') ('4302', '28507316', '1394320752', None, None, None, None, None, '4043592') ('4302', None, None, None, None, None, None, None, '4043592') ('4302', '28507316', '1394320748', None, None, None, None, None, '4043592') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '28507316', "{'flou': 28507317, 'metal': 28507318, 'plastique': 28507319, 'environnement': 28507320, 'papier': 28507321, 'Carton_brun': 28507322, 'kraft': 28507323, 'cartonnette': 28507324, 'Carton_gris': 28507325, 'Teint_Dans_La_Masse': 28507326, 'autre_refus': 28507327, 'mal_croppe': 28507328}", None, None, None, None, '4043592'), ('4302', '28507316', '1394320790', None, None, None, None, None, '4043592'), ('4302', '28507316', '1394320760', None, None, None, None, None, '4043592'), ('4302', '28507316', '1394320755', None, None, None, None, None, '4043592'), ('4302', '28507316', '1394320752', None, None, None, None, None, '4043592'), ('4302', '28507316', '1394320748', None, None, None, None, None, '4043592')] time used for this insertion : 0.03548002243041992 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.538197994232178 time spend to save output : 0.03573894500732422 total time spend for step 1 : 4.573936939239502 step2:final Fri Nov 14 01:47: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 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 (28507316) 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 28507316 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1394320424,1394320461,1394320554,1394320509,1394320575,1394320616,1394320612,1394320607,1394320604,1394320601,1394320598,1394320627,1394320625,1394320663,1394320660,1394320657,1394320654,1394320650,1394320698,1394320693,1394320689,1394320685,1394320674,1394320729,1394320760,1394320755,1394320752,1394320748,1394320790); 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([28507316]) Inside saveOutput : final : False verbose : True original output for save of step final : {1394320790: ('0.04322543651946114',), 1394320760: ('0.04322543651946114',), 1394320755: ('0.04322543651946114',), 1394320752: ('0.04322543651946114',), 1394320748: ('0.04322543651946114',)} new output for save of step final : {1394320790: ('0.04322543651946114',), 1394320760: ('0.04322543651946114',), 1394320755: ('0.04322543651946114',), 1394320752: ('0.04322543651946114',), 1394320748: ('0.04322543651946114',)} [1394320790, 1394320760, 1394320755, 1394320752, 1394320748] map_info['map_portfolio_photo'] : {28507316: [1394320790, 1394320760, 1394320755, 1394320752, 1394320748, 1394320729, 1394320698, 1394320693, 1394320689, 1394320685, 1394320674, 1394320663, 1394320660, 1394320657, 1394320654, 1394320650, 1394320627, 1394320625, 1394320616, 1394320612, 1394320607, 1394320604, 1394320601, 1394320598, 1394320575, 1394320554, 1394320509, 1394320461, 1394320424]} final : False mtd_id 4302 list_pids : [1394320790, 1394320760, 1394320755, 1394320752, 1394320748] Looping around the photos to save general results len do output : 5 /1394320790.Didn't retrieve data . /1394320760.Didn't retrieve data . /1394320755.Didn't retrieve data . /1394320752.Didn't retrieve data . /1394320748.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, '4043592') ('4302', '28507316', '1394320790', None, None, None, None, None, '4043592') ('4302', None, None, None, None, None, None, None, '4043592') ('4302', '28507316', '1394320760', None, None, None, None, None, '4043592') ('4302', None, None, None, None, None, None, None, '4043592') ('4302', '28507316', '1394320755', None, None, None, None, None, '4043592') ('4302', None, None, None, None, None, None, None, '4043592') ('4302', '28507316', '1394320752', None, None, None, None, None, '4043592') ('4302', None, None, None, None, None, None, None, '4043592') ('4302', '28507316', '1394320748', None, None, None, None, None, '4043592') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '28507316', '1394320790', '0.04322543651946114', None, None, None, None, '4043592'), ('4302', '28507316', '1394320760', '0.04322543651946114', None, None, None, None, '4043592'), ('4302', '28507316', '1394320755', '0.04322543651946114', None, None, None, None, '4043592'), ('4302', '28507316', '1394320752', '0.04322543651946114', None, None, None, None, '4043592'), ('4302', '28507316', '1394320748', '0.04322543651946114', None, None, None, None, '4043592')] time used for this insertion : 0.03476285934448242 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.22989606857299805 time spend to save output : 0.035103559494018555 total time spend for step 2 : 0.2649996280670166 step3:velours_tree Fri Nov 14 01:47:04 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 : {28507316: [{'flou': 28507317, 'metal': 28507318, 'plastique': 28507319, 'environnement': 28507320, 'papier': 28507321, 'Carton_brun': 28507322, 'kraft': 28507323, 'cartonnette': 28507324, 'Carton_gris': 28507325, 'Teint_Dans_La_Masse': 28507326, 'autre_refus': 28507327, 'mal_croppe': 28507328}]} input_args_next_step : {28507316: ()} output_args : {28507316: [{'flou': 28507317, 'metal': 28507318, 'plastique': 28507319, 'environnement': 28507320, 'papier': 28507321, 'Carton_brun': 28507322, 'kraft': 28507323, 'cartonnette': 28507324, 'Carton_gris': 28507325, 'Teint_Dans_La_Masse': 28507326, 'autre_refus': 28507327, 'mal_croppe': 28507328}]} args : 28507316 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': 28507317, 'metal': 28507318, 'plastique': 28507319, 'environnement': 28507320, 'papier': 28507321, 'Carton_brun': 28507322, 'kraft': 28507323, 'cartonnette': 28507324, 'Carton_gris': 28507325, 'Teint_Dans_La_Masse': 28507326, 'autre_refus': 28507327, 'mal_croppe': 28507328},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28507316) 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([28507316]) 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.3084452152252197 time spend to save output : 3.886222839355469e-05 total time spend for step 3 : 0.3084840774536133 step4:send_mail_cod Fri Nov 14 01:47:04 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 : {1394320790: ('0.04322543651946114',), 1394320760: ('0.04322543651946114',), 1394320755: ('0.04322543651946114',), 1394320752: ('0.04322543651946114',), 1394320748: ('0.04322543651946114',)} input_args_next_step : {1394320790: ()} output_args : {1394320790: ('0.04322543651946114',), 1394320760: ('0.04322543651946114',), 1394320755: ('0.04322543651946114',), 1394320752: ('0.04322543651946114',), 1394320748: ('0.04322543651946114',)} args : 1394320790 depend.output_id : 0 input_args_next_step : {1394320790: ('0.04322543651946114',), 1394320760: ()} output_args : {1394320790: ('0.04322543651946114',), 1394320760: ('0.04322543651946114',), 1394320755: ('0.04322543651946114',), 1394320752: ('0.04322543651946114',), 1394320748: ('0.04322543651946114',)} args : 1394320760 depend.output_id : 0 input_args_next_step : {1394320790: ('0.04322543651946114',), 1394320760: ('0.04322543651946114',), 1394320755: ()} output_args : {1394320790: ('0.04322543651946114',), 1394320760: ('0.04322543651946114',), 1394320755: ('0.04322543651946114',), 1394320752: ('0.04322543651946114',), 1394320748: ('0.04322543651946114',)} args : 1394320755 depend.output_id : 0 input_args_next_step : {1394320790: ('0.04322543651946114',), 1394320760: ('0.04322543651946114',), 1394320755: ('0.04322543651946114',), 1394320752: ()} output_args : {1394320790: ('0.04322543651946114',), 1394320760: ('0.04322543651946114',), 1394320755: ('0.04322543651946114',), 1394320752: ('0.04322543651946114',), 1394320748: ('0.04322543651946114',)} args : 1394320752 depend.output_id : 0 input_args_next_step : {1394320790: ('0.04322543651946114',), 1394320760: ('0.04322543651946114',), 1394320755: ('0.04322543651946114',), 1394320752: ('0.04322543651946114',), 1394320748: ()} output_args : {1394320790: ('0.04322543651946114',), 1394320760: ('0.04322543651946114',), 1394320755: ('0.04322543651946114',), 1394320752: ('0.04322543651946114',), 1394320748: ('0.04322543651946114',)} args : 1394320748 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {28507316: [{'flou': 28507317, 'metal': 28507318, 'plastique': 28507319, 'environnement': 28507320, 'papier': 28507321, 'Carton_brun': 28507322, 'kraft': 28507323, 'cartonnette': 28507324, 'Carton_gris': 28507325, 'Teint_Dans_La_Masse': 28507326, 'autre_refus': 28507327, 'mal_croppe': 28507328}]} input_args_next_step : {1394320790: ('0.04322543651946114',), 1394320760: ('0.04322543651946114',), 1394320755: ('0.04322543651946114',), 1394320752: ('0.04322543651946114',), 1394320748: ('0.04322543651946114',), 28507316: ()} output_args : {28507316: [{'flou': 28507317, 'metal': 28507318, 'plastique': 28507319, 'environnement': 28507320, 'papier': 28507321, 'Carton_brun': 28507322, 'kraft': 28507323, 'cartonnette': 28507324, 'Carton_gris': 28507325, 'Teint_Dans_La_Masse': 28507326, 'autre_refus': 28507327, 'mal_croppe': 28507328}]} args : 28507316 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 :6, first value : ('0.04322543651946114',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28507316) 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 (1394320790,1394320760,1394320755,1394320752,1394320748) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1394320748 begin to download photo : 1394320755 begin to download photo : 1394320790 download finish for photo 1394320755 begin to download photo : 1394320760 download finish for photo 1394320790 download finish for photo 1394320748 begin to download photo : 1394320752 download finish for photo 1394320760 download finish for photo 1394320752 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette285073171763081224/ imagette285073181763081224/ length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P28507316_14-11-2025_01_47_04.pdf 28507317 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=28507317 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette285073171763081224 28507318 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=28507318 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette285073181763081224 28507319 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=28507319 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394320711: '1763080986_482691_1394320627_966f8d63b3a44b62688275c81d56797f_rle_crop_4032990277_0.png', 1394320712: '1763080986_482691_1394320627_966f8d63b3a44b62688275c81d56797f_rle_crop_4032990278_0.png', 1394320713: '1763080986_482691_1394320604_76e49774bb37cc083a421af754dd5358_rle_crop_4032990297_0.png', 1394320714: '1763080986_482691_1394320601_162df36b69d3bf5af913d14ef83e0b69_rle_crop_4032990316_0.png', 1394320715: '1763080986_482691_1394320598_35d6bba948bbf9771c3a5e43970ea19f_rle_crop_4032990328_0.png', 1394320792: '1763081126_485967_1394320660_9b25ba06730ed23d102cd6509a336070_rle_crop_4032990584_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/0ae4dd994b9285840f4dda048b5f1af4_30866329.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/b06cde6119d0ab736109c93e04268f99_72935857.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/1353b6d1f9c9e335c7fa7fa765e8f32a_91507290.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/8709ba557775b37b11716a6178385e50_89236714.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/804f08360255a6c05da5385670cc8844_28943282.png change filename to text .imagette285073191763081224/ imagette285073191763081224/1763080986_482691_1394320601_162df36b69d3bf5af913d14ef83e0b69_rle_crop_4032990316_0.png.png imagette285073191763081224/1763080986_482691_1394320627_966f8d63b3a44b62688275c81d56797f_rle_crop_4032990278_0.png.png imagette285073191763081224/1763080986_482691_1394320604_76e49774bb37cc083a421af754dd5358_rle_crop_4032990297_0.png.png imagette285073191763081224/1763080986_482691_1394320598_35d6bba948bbf9771c3a5e43970ea19f_rle_crop_4032990328_0.png.png imagette285073191763081224/1763081126_485967_1394320660_9b25ba06730ed23d102cd6509a336070_rle_crop_4032990584_0.png.png imagette285073191763081224/1763080986_482691_1394320627_966f8d63b3a44b62688275c81d56797f_rle_crop_4032990277_0.png.png imagette285073231763081225/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/ea50c17db68ecab938970fac85e98996_16820600.png imagette285073191763081224 28507323 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=28507323 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette285073231763081225 28507324 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=28507324 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394320706: '1763080986_482691_1394320627_966f8d63b3a44b62688275c81d56797f_rle_crop_4032990276_0.png', 1394320709: '1763080986_482691_1394320601_162df36b69d3bf5af913d14ef83e0b69_rle_crop_4032990313_0.png', 1394320710: '1763080986_482691_1394320598_35d6bba948bbf9771c3a5e43970ea19f_rle_crop_4032990323_0.png', 1394320789: '1763081126_485967_1394320650_80d81b41bf6e41cc62bd936f880f8ea8_rle_crop_4032990631_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/a05932110da92387245eeb1e7b6b4aab_70399968.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/71faced2ce056a0bdb3471c152823b93_91635123.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/32255df72c2f54f9f4b0d5935d042a91_39966869.png change filename to text .imagette285073241763081225/ imagette285073241763081225/1763081126_485967_1394320650_80d81b41bf6e41cc62bd936f880f8ea8_rle_crop_4032990631_0.png.png imagette285073241763081225/1763080986_482691_1394320598_35d6bba948bbf9771c3a5e43970ea19f_rle_crop_4032990323_0.png.png imagette285073241763081225/1763080986_482691_1394320627_966f8d63b3a44b62688275c81d56797f_rle_crop_4032990276_0.png.png imagette285073241763081225/1763080986_482691_1394320601_162df36b69d3bf5af913d14ef83e0b69_rle_crop_4032990313_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/95273895b42a3f40c4ee8b2059320664_55728969.png imagette285073241763081225 28507327 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=28507327 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394320786: '1763081126_485967_1394320657_96e270300d705aad9090c24d1e0a7308_rle_crop_4032990599_0.png'} change filename to text .imagette285073271763081225/ imagette285073271763081225/1763081126_485967_1394320657_96e270300d705aad9090c24d1e0a7308_rle_crop_4032990599_0.png.png imagette285073281763081225/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/b10c4f7f3ab2665534a8a55923757bc4_76805212.png imagette285073271763081225 28507328 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=28507328 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette285073281763081225 28507322 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=28507322 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394320791: '1763081126_485967_1394320698_9662ec6ee34010abdfc1b531eef8c7a9_rle_crop_4032990571_0.png'} change filename to text .imagette285073221763081225/ imagette285073221763081225/1763081126_485967_1394320698_9662ec6ee34010abdfc1b531eef8c7a9_rle_crop_4032990571_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/cace1986ce4210d6ce2afe25fee58d9a_70457457.png imagette285073221763081225 28507325 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=28507325 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394320787: '1763081126_485967_1394320657_96e270300d705aad9090c24d1e0a7308_rle_crop_4032990598_0.png'} change filename to text .imagette285073251763081225/ imagette285073251763081225/1763081126_485967_1394320657_96e270300d705aad9090c24d1e0a7308_rle_crop_4032990598_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/fa0ff1783d29cb1c9ee49b68929b6933_19397605.png imagette285073251763081225 28507326 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=28507326 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394320702: '1763080986_482691_1394320607_35452fd302c18a995b687eef86c5efa4_rle_crop_4032990293_0.png', 1394320703: '1763080986_482691_1394320604_76e49774bb37cc083a421af754dd5358_rle_crop_4032990302_0.png', 1394320704: '1763080986_482691_1394320601_162df36b69d3bf5af913d14ef83e0b69_rle_crop_4032990314_0.png', 1394320705: '1763080986_482691_1394320601_162df36b69d3bf5af913d14ef83e0b69_rle_crop_4032990317_0.png', 1394320774: '1763081107_485598_1394320663_d7152e47b6d3310b6bbaaaa2176a1a8d_rle_crop_4032990384_0.png', 1394320775: '1763081107_485598_1394320625_a9c33112f9a417df715a4b172c1778e6_rle_crop_4032990398_0.png', 1394320783: '1763081126_485967_1394320698_9662ec6ee34010abdfc1b531eef8c7a9_rle_crop_4032990570_0.png', 1394320784: '1763081126_485967_1394320654_f2e57dc4134485f108a4ce08c612b33d_rle_crop_4032990625_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/fcc54efcf8f0c2aab8d0b934bf095950_46788177.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/4e8df1e563bae42fdec1b8ac34ebce32_94750046.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/ac5e51494b27672ac2eb5f7125b77f2e_61164521.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/d9e67932d5c3083a4469289ebef1b65b_79640428.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/5280f9c801ca32ad8be32bcffeee92c6_54997801.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/207111aa46886feb75837c023f057a6c_93262555.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/6b20fedf8422da53d96254bcdfb1b6f4_19774934.png change filename to text .imagette285073261763081225/ imagette285073261763081225/1763080986_482691_1394320601_162df36b69d3bf5af913d14ef83e0b69_rle_crop_4032990317_0.png.png imagette285073261763081225/1763080986_482691_1394320601_162df36b69d3bf5af913d14ef83e0b69_rle_crop_4032990314_0.png.png imagette285073261763081225/1763081126_485967_1394320654_f2e57dc4134485f108a4ce08c612b33d_rle_crop_4032990625_0.png.png imagette285073261763081225/1763080986_482691_1394320607_35452fd302c18a995b687eef86c5efa4_rle_crop_4032990293_0.png.png imagette285073261763081225/1763080986_482691_1394320604_76e49774bb37cc083a421af754dd5358_rle_crop_4032990302_0.png.png imagette285073261763081225/1763081126_485967_1394320698_9662ec6ee34010abdfc1b531eef8c7a9_rle_crop_4032990570_0.png.png imagette285073261763081225/1763081107_485598_1394320663_d7152e47b6d3310b6bbaaaa2176a1a8d_rle_crop_4032990384_0.png.png imagette285073261763081225/1763081107_485598_1394320625_a9c33112f9a417df715a4b172c1778e6_rle_crop_4032990398_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/feb1c53b33432a3a93c2506b9952f479_70538691.png imagette285073261763081225 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28507316 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28507329,28507330,28507331,28507332,28507333,28507334,28507335,28507336,28507337,28507338,28507339,28507340?tags=flou,metal,plastique,environnement,papier,Carton_brun,kraft,cartonnette,Carton_gris,Teint_Dans_La_Masse,autre_refus,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1394320790] : ('0.04322543651946114',) no score found for photo 1394320790 We are sending mail with results at report@fotonower.com args[1394320760] : ('0.04322543651946114',) no score found for photo 1394320760 We are sending mail with results at report@fotonower.com args[1394320755] : ('0.04322543651946114',) no score found for photo 1394320755 We are sending mail with results at report@fotonower.com args[1394320752] : ('0.04322543651946114',) no score found for photo 1394320752 We are sending mail with results at report@fotonower.com args[1394320748] : ('0.04322543651946114',) no score found for photo 1394320748 We are sending mail with results at report@fotonower.com refus_total : 0.04322543651946114 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=28507316 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_P28507316_14-11-2025_01_47_04.pdf results_Auto_P28507316_14-11-2025_01_47_04.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28507316_14-11-2025_01_47_04.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','28507316','results_Auto_P28507316_14-11-2025_01_47_04.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28507316_14-11-2025_01_47_04.pdf','pdf','','0.13','0.04322543651946114') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28507316]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1394320790, 1394320760, 1394320755, 1394320752, 1394320748] map_info['map_portfolio_photo'] : {28507316: [1394320790, 1394320760, 1394320755, 1394320752, 1394320748, 1394320729, 1394320698, 1394320693, 1394320689, 1394320685, 1394320674, 1394320663, 1394320660, 1394320657, 1394320654, 1394320650, 1394320627, 1394320625, 1394320616, 1394320612, 1394320607, 1394320604, 1394320601, 1394320598, 1394320575, 1394320554, 1394320509, 1394320461, 1394320424]} final : False mtd_id 4302 list_pids : [1394320790, 1394320760, 1394320755, 1394320752, 1394320748] 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, '4043592') ('4302', '28507316', '1394320790', None, None, None, None, None, '4043592') ('4302', None, None, None, None, None, None, None, '4043592') ('4302', '28507316', '1394320760', None, None, None, None, None, '4043592') ('4302', None, None, None, None, None, None, None, '4043592') ('4302', '28507316', '1394320755', None, None, None, None, None, '4043592') ('4302', None, None, None, None, None, None, None, '4043592') ('4302', '28507316', '1394320752', None, None, None, None, None, '4043592') ('4302', None, None, None, None, None, None, None, '4043592') ('4302', '28507316', '1394320748', None, None, None, None, None, '4043592') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28507316', '1394320790', None, None, None, None, None, '4043592'), ('4302', '28507316', '1394320760', None, None, None, None, None, '4043592'), ('4302', '28507316', '1394320755', None, None, None, None, None, '4043592'), ('4302', '28507316', '1394320752', None, None, None, None, None, '4043592'), ('4302', '28507316', '1394320748', None, None, None, None, None, '4043592')] time used for this insertion : 0.03552985191345215 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.1151082515716553 time spend to save output : 0.0357053279876709 total time spend for step 4 : 3.150813579559326 step5:split_time_score Fri Nov 14 01:47:07 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 : ['28507316'] 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 : [('28507316',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28507316) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1394320790: {'path': 'temp/1763081224_1914688_1394320790_9716b9356c11005ffd07f22e513f1f4a.jpg', 'extension': 'jpg'}, 1394320755: {'path': 'temp/1763081224_1914688_1394320755_4c10fc4a34336358156ab44e5d4ec288.jpg', 'extension': 'jpg'}, 1394320760: {'path': 'temp/1763081224_1914688_1394320760_571e5cd5049653871efc524f380c8d91.jpg', 'extension': 'jpg'}, 1394320748: {'path': 'temp/1763081224_1914688_1394320748_983ae0b19977bfbfe654519c2f7d4354.jpg', 'extension': 'jpg'}, 1394320752: {'path': 'temp/1763081224_1914688_1394320752_cf7563af16eccef1babd811045a6a7b1.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 = 28507316; (('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 = 28507316 group by h (('01', 29),) 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=28507316 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 (28507316) 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 (28507316) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14112025 28507316 Nombre de photos uploadées : 29 / 23040 (0%) 14112025 28507316 Nombre de photos taguées (types de déchets): 0 / 29 (0%) 14112025 28507316 Nombre de photos taguées (volume) : 0 / 29 (0%) [{'photo_id': 1394320424, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/28c0dc4816e8c4f6e7da7c2513c3f365.jpg', 'username': None, 'uploaded_at': 1763080387, 'text': 'image_14112025_01_32_24_010137m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1394320461, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/81b6384cc33c3e2bc8fc9b5fae949926.jpg', 'username': None, 'uploaded_at': 1763080447, 'text': 'image_14112025_01_32_34_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1394320554, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/cc22f69fcfcd18204807ca0b7216d4e8.jpg', 'username': None, 'uploaded_at': 1763080688, 'text': 'image_14112025_01_33_55_10137.jpg'}, {'photo_id': 1394320509, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/e807e5ffb04e71229ed38b0fc0d76a0a.jpg', 'username': None, 'uploaded_at': 1763080563, 'text': 'image_14112025_01_35_54_10133.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0035660266876220703 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28507316, '2025-11-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2577932,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.6013233661651611 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= 2577932 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2577932, 'dashboard_run_id': 2585330, 'mtr_portfolio_id': 28504025, 'dashboard_result_id': 17223393, '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_P28504025_14-11-2025_00_19_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28504047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28504048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28504050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28504051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28504052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28504053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28504054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28504055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28504056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28504057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28504058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28504059, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2585330, 'mtr_portfolio_id': 28504648, 'dashboard_result_id': 17223394, '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_P28504648_14-11-2025_00_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28504652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28504653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28504654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28504655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28504656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28504657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28504658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28504659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28504660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28504661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28504662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28504663, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2585330, 'mtr_portfolio_id': 28505140, 'dashboard_result_id': 17223395, '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_P28505140_14-11-2025_00_49_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28505162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28505163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28505164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28505165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28505166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28505167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28505168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28505169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28505170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28505171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28505173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28505175, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2585330, 'mtr_portfolio_id': 28505764, 'dashboard_result_id': 17223396, '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_P28505764_14-11-2025_01_03_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28505805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28505806, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28505807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28505808, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28505809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28505810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28505811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28505812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28505813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28505814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28505815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28505816, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2585330, 'mtr_portfolio_id': 28507265, 'dashboard_result_id': 17223397, '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_P28507265_14-11-2025_01_35_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28507267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28507268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28507269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28507270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28507271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28507272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28507273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28507274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28507275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28507276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28507277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28507278, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2585330, 'mtr_portfolio_id': 28507237, 'dashboard_result_id': 17223398, '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_P28507237_14-11-2025_01_29_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28507238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28507239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28507240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28507241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28507242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28507243, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28507244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28507245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28507246, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28507247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28507248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28507249, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2585330, 'mtr_portfolio_id': 28507316, 'dashboard_result_id': 17223399, '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_P28507316_14-11-2025_01_45_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28507317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28507318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28507319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28507320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28507321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28507322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28507323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28507324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28507325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28507326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28507327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28507328, '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 = 28504025 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': 4043322, 'mtr_portfolio_id': 28504025, 'created_at': datetime.datetime(2025, 11, 14, 0, 19, 33), 'result': '0.050179598565920226', 'result_long': None, 'result_double': None}] Qualite : 0.050179598565920226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28504025 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28504025_14-11-2025_00_19_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28504025 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_P28504025_14-11-2025_00_19_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28504047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28504048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28504050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28504051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28504052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28504053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28504054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28504055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28504056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28504057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28504058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28504059, 'pht': 3726}}" where mtr_portfolio_id = 28504025 and dashboard_run_id = 2585330 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`=28504025 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17223393, 0.050179598565920226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28504025_14-11-2025_00_19_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28504047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28504048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28504050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28504051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28504052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28504053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28504054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28504055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28504056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28504057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28504058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28504059, '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 = 28504648 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': 4043382, 'mtr_portfolio_id': 28504648, 'created_at': datetime.datetime(2025, 11, 14, 0, 33, 1), 'result': '0.05553103364842464', 'result_long': None, 'result_double': None}] Qualite : 0.05553103364842464 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28504648 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28504648_14-11-2025_00_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28504648 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_P28504648_14-11-2025_00_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28504652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28504653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28504654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28504655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28504656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28504657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28504658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28504659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28504660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28504661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28504662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28504663, 'pht': 3726}}" where mtr_portfolio_id = 28504648 and dashboard_run_id = 2585330 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`=28504648 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17223394, 0.05553103364842464, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28504648_14-11-2025_00_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28504652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28504653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28504654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28504655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28504656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28504657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28504658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28504659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28504660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28504661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28504662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28504663, '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 = 28505140 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': 4043410, 'mtr_portfolio_id': 28505140, 'created_at': datetime.datetime(2025, 11, 14, 0, 49, 4), 'result': '0.030113285884549097', 'result_long': None, 'result_double': None}] Qualite : 0.030113285884549097 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28505140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28505140_14-11-2025_00_49_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28505140 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_P28505140_14-11-2025_00_49_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28505162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28505163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28505164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28505165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28505166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28505167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28505168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28505169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28505170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28505171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28505173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28505175, 'pht': 3726}}" where mtr_portfolio_id = 28505140 and dashboard_run_id = 2585330 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`=28505140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17223395, 0.030113285884549097, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28505140_14-11-2025_00_49_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28505162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28505163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28505164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28505165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28505166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28505167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28505168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28505169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28505170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28505171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28505173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28505175, '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 = 28505764 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': 4043455, 'mtr_portfolio_id': 28505764, 'created_at': datetime.datetime(2025, 11, 14, 1, 3, 2), 'result': '0.07231303291651762', 'result_long': None, 'result_double': None}] Qualite : 0.07231303291651762 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28505764 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28505764_14-11-2025_01_03_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28505764 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_P28505764_14-11-2025_01_03_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28505805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28505806, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28505807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28505808, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28505809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28505810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28505811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28505812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28505813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28505814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28505815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28505816, 'pht': 3726}}" where mtr_portfolio_id = 28505764 and dashboard_run_id = 2585330 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`=28505764 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17223396, 0.07231303291651762, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28505764_14-11-2025_01_03_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28505805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28505806, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28505807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28505808, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28505809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28505810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28505811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28505812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28505813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28505814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28505815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28505816, '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 = 28507265 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 28507265 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28507265 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28507265 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28507265 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28507265 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28507265_14-11-2025_01_35_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28507265 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_P28507265_14-11-2025_01_35_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28507267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28507268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28507269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28507270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28507271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28507272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28507273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28507274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28507275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28507276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28507277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28507278, 'pht': 3726}}" where mtr_portfolio_id = 28507265 and dashboard_run_id = 2585332 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 = 28507237 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 28507237 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28507237 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28507237 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28507237 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28507237 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28507237_14-11-2025_01_29_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28507237 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_P28507237_14-11-2025_01_29_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28507238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28507239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28507240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28507241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28507242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28507243, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28507244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28507245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28507246, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28507247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28507248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28507249, 'pht': 3726}}" where mtr_portfolio_id = 28507237 and dashboard_run_id = 2585332 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 = 28507316 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': 4043592, 'mtr_portfolio_id': 28507316, 'created_at': datetime.datetime(2025, 11, 14, 1, 47, 4), 'result': '0.04322543651946114', 'result_long': None, 'result_double': None}] Qualite : 0.04322543651946114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28507316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28507316_14-11-2025_01_47_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28507316 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_P28507316_14-11-2025_01_47_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28507317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28507318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28507319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28507320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28507321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28507322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28507323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28507324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28507325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28507326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28507327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28507328, 'pht': 3726}}" where mtr_portfolio_id = 28507316 and dashboard_run_id = 2585332 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`=28507316 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17223399, 0.04322543651946114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28507316_14-11-2025_01_47_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28507317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28507318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28507319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28507320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28507321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28507322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28507323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28507324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28507325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28507326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28507327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28507328, '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 (28504025,28504648,28505140,28505764,28507265,28507237,28507316) result : ((1394299320,), (1394299411,), (1394299499,), (1394299914,), (1394299966,), (1394300004,), (1394300038,), (1394300262,), (1394300265,), (1394300513,), (1394300516,), (1394300526,), (1394300558,), (1394300594,), (1394300885,), (1394300909,), (1394300933,), (1394301226,), (1394301251,), (1394301275,), (1394301303,), (1394301305,), (1394301463,), (1394301483,), (1394301492,), (1394301499,), (1394301523,), (1394301528,), (1394301538,), (1394301541,), (1394301589,), (1394301632,), (1394301662,), (1394301685,), (1394301867,), (1394301891,), (1394301917,), (1394302218,), (1394302244,), (1394302267,), (1394302296,), (1394302324,), (1394302356,), (1394302572,), (1394302597,), (1394302623,), (1394302647,), (1394303143,), (1394303171,), (1394303228,), (1394303282,), (1394303810,), (1394303840,), (1394303874,), (1394304021,), (1394304045,), (1394304069,), (1394304097,), (1394304279,), (1394304283,), (1394304288,), (1394304290,), (1394304292,), (1394304295,), (1394304404,), (1394304428,), (1394304456,), (1394304463,), (1394304660,), (1394304576,), (1394304612,), (1394304637,), (1394304951,), (1394306708,), (1394307675,), (1394308198,), (1394308223,), (1394308245,), (1394308281,), (1394308759,), (1394308781,), (1394308810,), (1394308849,), (1394309023,), (1394309024,), (1394309026,), (1394309049,), (1394309097,), (1394309125,), (1394309480,), (1394309482,), (1394309485,), (1394309502,), (1394309505,), (1394309509,), (1394309511,), (1394309426,), (1394309452,), (1394309474,), (1394309609,), (1394309640,), (1394309669,), (1394309879,), (1394309905,), (1394309927,), (1394310204,), (1394310229,), (1394310253,), (1394310278,), (1394310371,), (1394310373,), (1394310377,), (1394310388,), (1394310573,), (1394310733,), (1394310799,), (1394310852,), (1394310973,), (1394311672,), (1394311701,), (1394311752,), (1394311981,), (1394312006,), (1394312153,), (1394312171,), (1394312194,), (1394312220,), (1394312250,), (1394312478,), (1394312503,), (1394312529,), (1394312551,), (1394312579,), (1394312608,), (1394313480,), (1394313474,), (1394313542,), (1394313566,), (1394313571,), (1394313600,), (1394313602,), (1394313604,), (1394313606,), (1394313621,), (1394313628,), (1394313630,), (1394313633,), (1394313635,), (1394313637,), (1394313646,), (1394313648,), (1394313650,), (1394313653,), (1394313657,), (1394313838,), (1394313863,), (1394313888,), (1394313915,), (1394313939,), (1394314188,), (1394314203,), (1394314205,), (1394314208,), (1394314361,), (1394314376,), (1394314399,), (1394314403,), (1394314414,), (1394314567,), (1394314593,), (1394314619,), (1394314647,), (1394314929,), (1394314954,), (1394314982,), (1394314993,), (1394314994,), (1394314995,), (1394315049,), (1394315122,), (1394315125,), (1394315136,), (1394315160,), (1394315248,), (1394315256,), (1394315260,), (1394315264,), (1394315279,), (1394315283,), (1394315288,), (1394315294,), (1394315299,), (1394315322,), (1394319013,), (1394320080,), (1394318001,), (1394320426,), (1394320424,), (1394320461,), (1394320509,), (1394320554,), (1394320575,), (1394320598,), (1394320601,), (1394320604,), (1394320607,), (1394320612,), (1394320616,), (1394320625,), (1394320627,), (1394320650,), (1394320654,), (1394320657,), (1394320660,), (1394320663,), (1394320674,), (1394320685,), (1394320689,), (1394320693,), (1394320698,), (1394320729,), (1394320748,), (1394320752,), (1394320755,), (1394320760,), (1394320790,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14112025': {'nb_upload': 29, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28507316]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1394320790, 1394320760, 1394320755, 1394320752, 1394320748] map_info['map_portfolio_photo'] : {28507316: [1394320790, 1394320760, 1394320755, 1394320752, 1394320748, 1394320729, 1394320698, 1394320693, 1394320689, 1394320685, 1394320674, 1394320663, 1394320660, 1394320657, 1394320654, 1394320650, 1394320627, 1394320625, 1394320616, 1394320612, 1394320607, 1394320604, 1394320601, 1394320598, 1394320575, 1394320554, 1394320509, 1394320461, 1394320424]} final : True mtd_id 4302 list_pids : [1394320790, 1394320760, 1394320755, 1394320752, 1394320748] Looping around the photos to save general results len do output : 1 /28507316Didn'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, '4043592') ('4302', '28507316', '1394320790', None, None, None, None, None, '4043592') ('4302', None, None, None, None, None, None, None, '4043592') ('4302', '28507316', '1394320760', None, None, None, None, None, '4043592') ('4302', None, None, None, None, None, None, None, '4043592') ('4302', '28507316', '1394320755', None, None, None, None, None, '4043592') ('4302', None, None, None, None, None, None, None, '4043592') ('4302', '28507316', '1394320752', None, None, None, None, None, '4043592') ('4302', None, None, None, None, None, None, None, '4043592') ('4302', '28507316', '1394320748', None, None, None, None, None, '4043592') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '28507316', 'None', None, None, None, None, '4043592'), ('4302', '28507316', '1394320790', None, None, None, None, None, '4043592'), ('4302', '28507316', '1394320760', None, None, None, None, None, '4043592'), ('4302', '28507316', '1394320755', None, None, None, None, None, '4043592'), ('4302', '28507316', '1394320752', None, None, None, None, None, '4043592'), ('4302', '28507316', '1394320748', None, None, None, None, None, '4043592')] time used for this insertion : 0.03623628616333008 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.073976755142212 time spend to save output : 0.036432504653930664 total time spend for step 5 : 2.1104092597961426 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 (4043592) 1.78user 2.47system 0:13.59elapsed 31%CPU (0avgtext+0avgdata 159192maxresident)k 616inputs+6736outputs (0major+63803minor)pagefaults 0swaps