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 : 2249372 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 (4243184) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4243184) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29521390 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4243184'] with mtr_portfolio_ids : ['29521390'] and first list_photo_ids : [] new path : /proc/2249372/ Name: python3 Umask: 0002 State: R (running) Tgid: 2249372 Ngid: 0 Pid: 2249372 PPid: 2249371 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2249372 NSpid: 2249372 NSpgid: 2248165 NSsid: 2248165 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 103336 kB VmRSS: 103336 kB RssAnon: 66292 kB RssFile: 37044 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 612 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: 50 nonvoluntary_ctxt_switches: 101 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2249372', 'Ngid': '0', 'Pid': '2249372', 'PPid': '2249371', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2249372', 'NSpid': '2249372', 'NSpgid': '2248165', 'NSsid': '2248165', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '103336 kB', 'VmRSS': '103336 kB', 'RssAnon': '66292 kB', 'RssFile': '37044 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '612 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': '50', 'nonvoluntary_ctxt_switches': '101'} ('datou_batch_current', '2249372', '1113364', '0', '1113364', '872092', '103336', b'', 'marlene', '4243184') 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 (29521390) 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 (4243184 ) ) 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 (29521390) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399880786, 'portfolio_id': 29521390}, {'photo_id': 1399880689, 'portfolio_id': 29521390}, {'photo_id': 1399880683, 'portfolio_id': 29521390}, {'photo_id': 1399880474, 'portfolio_id': 29521390}, {'photo_id': 1399880450, 'portfolio_id': 29521390}, {'photo_id': 1399880404, 'portfolio_id': 29521390}, {'photo_id': 1399880176, 'portfolio_id': 29521390}, {'photo_id': 1399880098, 'portfolio_id': 29521390}, {'photo_id': 1399880036, 'portfolio_id': 29521390}, {'photo_id': 1399879997, 'portfolio_id': 29521390}, {'photo_id': 1399879958, 'portfolio_id': 29521390}, {'photo_id': 1399879911, 'portfolio_id': 29521390}, {'photo_id': 1399879776, 'portfolio_id': 29521390}, {'photo_id': 1399879774, 'portfolio_id': 29521390}, {'photo_id': 1399879772, 'portfolio_id': 29521390}, {'photo_id': 1399879771, 'portfolio_id': 29521390}, {'photo_id': 1399879769, 'portfolio_id': 29521390}, {'photo_id': 1399879668, 'portfolio_id': 29521390}, {'photo_id': 1399879630, 'portfolio_id': 29521390}, {'photo_id': 1399879590, 'portfolio_id': 29521390}, {'photo_id': 1399879550, 'portfolio_id': 29521390}, {'photo_id': 1399879515, 'portfolio_id': 29521390}, {'photo_id': 1399879460, 'portfolio_id': 29521390}, {'photo_id': 1399879276, 'portfolio_id': 29521390}, {'photo_id': 1399879206, 'portfolio_id': 29521390}, {'photo_id': 1399879119, 'portfolio_id': 29521390}, {'photo_id': 1399879037, 'portfolio_id': 29521390}, {'photo_id': 1399878958, 'portfolio_id': 29521390}, {'photo_id': 1399878813, 'portfolio_id': 29521390}, {'photo_id': 1399878626, 'portfolio_id': 29521390}, {'photo_id': 1399878532, 'portfolio_id': 29521390}, {'photo_id': 1399878482, 'portfolio_id': 29521390}, {'photo_id': 1399878366, 'portfolio_id': 29521390}, {'photo_id': 1399878329, 'portfolio_id': 29521390}, {'photo_id': 1399878280, 'portfolio_id': 29521390}, {'photo_id': 1399878172, 'portfolio_id': 29521390}, {'photo_id': 1399878169, 'portfolio_id': 29521390}, {'photo_id': 1399878166, 'portfolio_id': 29521390}, {'photo_id': 1399878165, 'portfolio_id': 29521390}, {'photo_id': 1399878161, 'portfolio_id': 29521390}, {'photo_id': 1399878159, 'portfolio_id': 29521390}, {'photo_id': 1399878158, 'portfolio_id': 29521390}, {'photo_id': 1399878139, 'portfolio_id': 29521390}, {'photo_id': 1399877423, 'portfolio_id': 29521390}, {'photo_id': 1399877416, 'portfolio_id': 29521390}, {'photo_id': 1399877413, 'portfolio_id': 29521390}, {'photo_id': 1399877412, 'portfolio_id': 29521390}, {'photo_id': 1399877411, 'portfolio_id': 29521390}, {'photo_id': 1399877410, 'portfolio_id': 29521390}] map_portfolio_id_photo_id: {29521390: [1399880786, 1399880689, 1399880683, 1399880474, 1399880450, 1399880404, 1399880176, 1399880098, 1399880036, 1399879997, 1399879958, 1399879911, 1399879776, 1399879774, 1399879772, 1399879771, 1399879769, 1399879668, 1399879630, 1399879590, 1399879550, 1399879515, 1399879460, 1399879276, 1399879206, 1399879119, 1399879037, 1399878958, 1399878813, 1399878626, 1399878532, 1399878482, 1399878366, 1399878329, 1399878280, 1399878172, 1399878169, 1399878166, 1399878165, 1399878161, 1399878159, 1399878158, 1399878139, 1399877423, 1399877416, 1399877413, 1399877412, 1399877411, 1399877410]} ##### 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.01875901222229004 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Dec 18 02:14:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29521390) 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 : 29521390 get user id for portfolio 29521390 get sub ptf for main ptf 29521390, type 3726 and hashtags ['cartonnette', 'plastique', 'Carton_brun', 'metal', 'flou', 'Carton_gris', 'mal_croppe', 'Teint_Dans_La_Masse', 'kraft', 'papier', 'autre_refus', 'environnement'] 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`=29521390 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','Carton_brun','metal','flou','Carton_gris','mal_croppe','Teint_Dans_La_Masse','kraft','papier','autre_refus','environnement')) 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`=29521390 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','Carton_brun','metal','flou','Carton_gris','mal_croppe','Teint_Dans_La_Masse','kraft','papier','autre_refus','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29521390, 'sub_port_id': 29521402, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135139, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 29521390, 'sub_port_id': 29521403, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135140, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 27)}, 'Carton_gris': {'main_port_id': 29521390, 'sub_port_id': 29521404, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135141, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 27)}, 'papier': {'main_port_id': 29521390, 'sub_port_id': 29521405, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135142, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 27)}, 'cartonnette': {'main_port_id': 29521390, 'sub_port_id': 29521406, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135143, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 27)}, 'mal_croppe': {'main_port_id': 29521390, 'sub_port_id': 29521407, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135144, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 27)}, 'kraft': {'main_port_id': 29521390, 'sub_port_id': 29521408, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135145, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 27)}, 'Carton_brun': {'main_port_id': 29521390, 'sub_port_id': 29521409, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135146, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 27)}, 'plastique': {'main_port_id': 29521390, 'sub_port_id': 29521410, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135147, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 27)}, 'environnement': {'main_port_id': 29521390, 'sub_port_id': 29521411, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135148, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 27)}, 'autre_refus': {'main_port_id': 29521390, 'sub_port_id': 29521412, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135149, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 27)}, 'metal': {'main_port_id': 29521390, 'sub_port_id': 29521413, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135150, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29521402 , 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=29521390 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 (29521402) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29521390) result : ((1399877410,), (1399877411,), (1399877412,), (1399877413,), (1399877416,), (1399877423,), (1399878139,), (1399878158,), (1399878159,), (1399878161,), (1399878165,), (1399878166,), (1399878169,), (1399878172,), (1399878280,), (1399878329,), (1399878366,), (1399878482,), (1399878532,), (1399878626,), (1399878813,), (1399878958,), (1399879037,), (1399879119,), (1399879206,), (1399879276,), (1399879460,), (1399879515,), (1399879550,), (1399879590,), (1399879630,), (1399879668,), (1399879769,), (1399879771,), (1399879772,), (1399879774,), (1399879776,), (1399879911,), (1399879958,), (1399879997,), (1399880036,), (1399880098,), (1399880176,), (1399880404,), (1399880450,), (1399880474,), (1399880683,), (1399880689,), (1399880786,)) 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 29521403 , 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=29521390 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 (29521403) result : ((1399878125,), (1399880247,), (1399880250,), (1399880254,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29521390) result : ((1399877410,), (1399877411,), (1399877412,), (1399877413,), (1399877416,), (1399877423,), (1399878139,), (1399878158,), (1399878159,), (1399878161,), (1399878165,), (1399878166,), (1399878169,), (1399878172,), (1399878280,), (1399878329,), (1399878366,), (1399878482,), (1399878532,), (1399878626,), (1399878813,), (1399878958,), (1399879037,), (1399879119,), (1399879206,), (1399879276,), (1399879460,), (1399879515,), (1399879550,), (1399879590,), (1399879630,), (1399879668,), (1399879769,), (1399879771,), (1399879772,), (1399879774,), (1399879776,), (1399879911,), (1399879958,), (1399879997,), (1399880036,), (1399880098,), (1399880176,), (1399880404,), (1399880450,), (1399880474,), (1399880683,), (1399880689,), (1399880786,)) 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 29521404 , 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=29521390 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 (29521404) result : ((1399880291,), (1399880293,), (1399880295,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29521390) result : ((1399877410,), (1399877411,), (1399877412,), (1399877413,), (1399877416,), (1399877423,), (1399878139,), (1399878158,), (1399878159,), (1399878161,), (1399878165,), (1399878166,), (1399878169,), (1399878172,), (1399878280,), (1399878329,), (1399878366,), (1399878482,), (1399878532,), (1399878626,), (1399878813,), (1399878958,), (1399879037,), (1399879119,), (1399879206,), (1399879276,), (1399879460,), (1399879515,), (1399879550,), (1399879590,), (1399879630,), (1399879668,), (1399879769,), (1399879771,), (1399879772,), (1399879774,), (1399879776,), (1399879911,), (1399879958,), (1399879997,), (1399880036,), (1399880098,), (1399880176,), (1399880404,), (1399880450,), (1399880474,), (1399880683,), (1399880689,), (1399880786,)) 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 29521405 , 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=29521390 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 (29521405) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29521390) result : ((1399877410,), (1399877411,), (1399877412,), (1399877413,), (1399877416,), (1399877423,), (1399878139,), (1399878158,), (1399878159,), (1399878161,), (1399878165,), (1399878166,), (1399878169,), (1399878172,), (1399878280,), (1399878329,), (1399878366,), (1399878482,), (1399878532,), (1399878626,), (1399878813,), (1399878958,), (1399879037,), (1399879119,), (1399879206,), (1399879276,), (1399879460,), (1399879515,), (1399879550,), (1399879590,), (1399879630,), (1399879668,), (1399879769,), (1399879771,), (1399879772,), (1399879774,), (1399879776,), (1399879911,), (1399879958,), (1399879997,), (1399880036,), (1399880098,), (1399880176,), (1399880404,), (1399880450,), (1399880474,), (1399880683,), (1399880689,), (1399880786,)) 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 29521406 , 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=29521390 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 (29521406) result : ((1399878126,), (1399880304,), (1399880667,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29521390) result : ((1399877410,), (1399877411,), (1399877412,), (1399877413,), (1399877416,), (1399877423,), (1399878139,), (1399878158,), (1399878159,), (1399878161,), (1399878165,), (1399878166,), (1399878169,), (1399878172,), (1399878280,), (1399878329,), (1399878366,), (1399878482,), (1399878532,), (1399878626,), (1399878813,), (1399878958,), (1399879037,), (1399879119,), (1399879206,), (1399879276,), (1399879460,), (1399879515,), (1399879550,), (1399879590,), (1399879630,), (1399879668,), (1399879769,), (1399879771,), (1399879772,), (1399879774,), (1399879776,), (1399879911,), (1399879958,), (1399879997,), (1399880036,), (1399880098,), (1399880176,), (1399880404,), (1399880450,), (1399880474,), (1399880683,), (1399880689,), (1399880786,)) 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 29521407 , 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=29521390 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 (29521407) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29521390) result : ((1399877410,), (1399877411,), (1399877412,), (1399877413,), (1399877416,), (1399877423,), (1399878139,), (1399878158,), (1399878159,), (1399878161,), (1399878165,), (1399878166,), (1399878169,), (1399878172,), (1399878280,), (1399878329,), (1399878366,), (1399878482,), (1399878532,), (1399878626,), (1399878813,), (1399878958,), (1399879037,), (1399879119,), (1399879206,), (1399879276,), (1399879460,), (1399879515,), (1399879550,), (1399879590,), (1399879630,), (1399879668,), (1399879769,), (1399879771,), (1399879772,), (1399879774,), (1399879776,), (1399879911,), (1399879958,), (1399879997,), (1399880036,), (1399880098,), (1399880176,), (1399880404,), (1399880450,), (1399880474,), (1399880683,), (1399880689,), (1399880786,)) 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 29521408 , 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=29521390 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 (29521408) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29521390) result : ((1399877410,), (1399877411,), (1399877412,), (1399877413,), (1399877416,), (1399877423,), (1399878139,), (1399878158,), (1399878159,), (1399878161,), (1399878165,), (1399878166,), (1399878169,), (1399878172,), (1399878280,), (1399878329,), (1399878366,), (1399878482,), (1399878532,), (1399878626,), (1399878813,), (1399878958,), (1399879037,), (1399879119,), (1399879206,), (1399879276,), (1399879460,), (1399879515,), (1399879550,), (1399879590,), (1399879630,), (1399879668,), (1399879769,), (1399879771,), (1399879772,), (1399879774,), (1399879776,), (1399879911,), (1399879958,), (1399879997,), (1399880036,), (1399880098,), (1399880176,), (1399880404,), (1399880450,), (1399880474,), (1399880683,), (1399880689,), (1399880786,)) 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 29521409 , 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=29521390 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 (29521409) result : ((1399880624,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29521390) result : ((1399877410,), (1399877411,), (1399877412,), (1399877413,), (1399877416,), (1399877423,), (1399878139,), (1399878158,), (1399878159,), (1399878161,), (1399878165,), (1399878166,), (1399878169,), (1399878172,), (1399878280,), (1399878329,), (1399878366,), (1399878482,), (1399878532,), (1399878626,), (1399878813,), (1399878958,), (1399879037,), (1399879119,), (1399879206,), (1399879276,), (1399879460,), (1399879515,), (1399879550,), (1399879590,), (1399879630,), (1399879668,), (1399879769,), (1399879771,), (1399879772,), (1399879774,), (1399879776,), (1399879911,), (1399879958,), (1399879997,), (1399880036,), (1399880098,), (1399880176,), (1399880404,), (1399880450,), (1399880474,), (1399880683,), (1399880689,), (1399880786,)) 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 29521410 , 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=29521390 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 (29521410) result : ((1399878127,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29521390) result : ((1399877410,), (1399877411,), (1399877412,), (1399877413,), (1399877416,), (1399877423,), (1399878139,), (1399878158,), (1399878159,), (1399878161,), (1399878165,), (1399878166,), (1399878169,), (1399878172,), (1399878280,), (1399878329,), (1399878366,), (1399878482,), (1399878532,), (1399878626,), (1399878813,), (1399878958,), (1399879037,), (1399879119,), (1399879206,), (1399879276,), (1399879460,), (1399879515,), (1399879550,), (1399879590,), (1399879630,), (1399879668,), (1399879769,), (1399879771,), (1399879772,), (1399879774,), (1399879776,), (1399879911,), (1399879958,), (1399879997,), (1399880036,), (1399880098,), (1399880176,), (1399880404,), (1399880450,), (1399880474,), (1399880683,), (1399880689,), (1399880786,)) 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 29521411 , 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=29521390 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 (29521411) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29521390) result : ((1399877410,), (1399877411,), (1399877412,), (1399877413,), (1399877416,), (1399877423,), (1399878139,), (1399878158,), (1399878159,), (1399878161,), (1399878165,), (1399878166,), (1399878169,), (1399878172,), (1399878280,), (1399878329,), (1399878366,), (1399878482,), (1399878532,), (1399878626,), (1399878813,), (1399878958,), (1399879037,), (1399879119,), (1399879206,), (1399879276,), (1399879460,), (1399879515,), (1399879550,), (1399879590,), (1399879630,), (1399879668,), (1399879769,), (1399879771,), (1399879772,), (1399879774,), (1399879776,), (1399879911,), (1399879958,), (1399879997,), (1399880036,), (1399880098,), (1399880176,), (1399880404,), (1399880450,), (1399880474,), (1399880683,), (1399880689,), (1399880786,)) 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 29521412 , 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=29521390 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 (29521412) result : ((1399880657,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29521390) result : ((1399877410,), (1399877411,), (1399877412,), (1399877413,), (1399877416,), (1399877423,), (1399878139,), (1399878158,), (1399878159,), (1399878161,), (1399878165,), (1399878166,), (1399878169,), (1399878172,), (1399878280,), (1399878329,), (1399878366,), (1399878482,), (1399878532,), (1399878626,), (1399878813,), (1399878958,), (1399879037,), (1399879119,), (1399879206,), (1399879276,), (1399879460,), (1399879515,), (1399879550,), (1399879590,), (1399879630,), (1399879668,), (1399879769,), (1399879771,), (1399879772,), (1399879774,), (1399879776,), (1399879911,), (1399879958,), (1399879997,), (1399880036,), (1399880098,), (1399880176,), (1399880404,), (1399880450,), (1399880474,), (1399880683,), (1399880689,), (1399880786,)) 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 29521413 , 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=29521390 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 (29521413) result : ((1399880670,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29521390) result : ((1399877410,), (1399877411,), (1399877412,), (1399877413,), (1399877416,), (1399877423,), (1399878139,), (1399878158,), (1399878159,), (1399878161,), (1399878165,), (1399878166,), (1399878169,), (1399878172,), (1399878280,), (1399878329,), (1399878366,), (1399878482,), (1399878532,), (1399878626,), (1399878813,), (1399878958,), (1399879037,), (1399879119,), (1399879206,), (1399879276,), (1399879460,), (1399879515,), (1399879550,), (1399879590,), (1399879630,), (1399879668,), (1399879769,), (1399879771,), (1399879772,), (1399879774,), (1399879776,), (1399879911,), (1399879958,), (1399879997,), (1399880036,), (1399880098,), (1399880176,), (1399880404,), (1399880450,), (1399880474,), (1399880683,), (1399880689,), (1399880786,)) 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`=29521390 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','Carton_brun','metal','flou','Carton_gris','mal_croppe','Teint_Dans_La_Masse','kraft','papier','autre_refus','environnement')) 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`=29521390 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','Carton_brun','metal','flou','Carton_gris','mal_croppe','Teint_Dans_La_Masse','kraft','papier','autre_refus','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29521390, 'sub_port_id': 29521415, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135151, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 29521390, 'sub_port_id': 29521416, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135152, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 29)}, 'Carton_gris': {'main_port_id': 29521390, 'sub_port_id': 29521417, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135153, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 29)}, 'papier': {'main_port_id': 29521390, 'sub_port_id': 29521418, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135154, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 29)}, 'cartonnette': {'main_port_id': 29521390, 'sub_port_id': 29521419, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135155, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 29)}, 'mal_croppe': {'main_port_id': 29521390, 'sub_port_id': 29521420, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135156, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 29)}, 'kraft': {'main_port_id': 29521390, 'sub_port_id': 29521421, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135157, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 29)}, 'Carton_brun': {'main_port_id': 29521390, 'sub_port_id': 29521422, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135158, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 29)}, 'plastique': {'main_port_id': 29521390, 'sub_port_id': 29521423, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135159, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 29)}, 'environnement': {'main_port_id': 29521390, 'sub_port_id': 29521424, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135160, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 29)}, 'autre_refus': {'main_port_id': 29521390, 'sub_port_id': 29521425, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135161, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 29)}, 'metal': {'main_port_id': 29521390, 'sub_port_id': 29521426, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20135162, 'last_updated_at': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 2, 12, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 2, 3, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29521415,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29521402 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29521416,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29521403 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29521417,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29521404 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29521418,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29521405 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29521419,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29521406 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29521420,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29521407 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29521421,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29521408 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29521422,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29521409 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29521423,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29521410 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29521424,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29521411 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29521425,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29521412 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29521426,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29521413 lien utilise dans velours : https://marlene.fotonower.com/velours/29521415,29521416,29521417,29521418,29521419,29521420,29521421,29521422,29521423,29521424,29521425,29521426?tags=flou,Teint_Dans_La_Masse,Carton_gris,papier,cartonnette,mal_croppe,kraft,Carton_brun,plastique,environnement,autre_refus,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29521390]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399880786, 1399880689, 1399880683, 1399880474, 1399880450, 1399880404, 1399880176, 1399880098, 1399880036, 1399879997, 1399879958, 1399879911] map_info['map_portfolio_photo'] : {29521390: [1399880786, 1399880689, 1399880683, 1399880474, 1399880450, 1399880404, 1399880176, 1399880098, 1399880036, 1399879997, 1399879958, 1399879911, 1399879776, 1399879774, 1399879772, 1399879771, 1399879769, 1399879668, 1399879630, 1399879590, 1399879550, 1399879515, 1399879460, 1399879276, 1399879206, 1399879119, 1399879037, 1399878958, 1399878813, 1399878626, 1399878532, 1399878482, 1399878366, 1399878329, 1399878280, 1399878172, 1399878169, 1399878166, 1399878165, 1399878161, 1399878159, 1399878158, 1399878139, 1399877423, 1399877416, 1399877413, 1399877412, 1399877411, 1399877410]} final : False mtd_id 4302 list_pids : [1399880786, 1399880689, 1399880683, 1399880474, 1399880450, 1399880404, 1399880176, 1399880098, 1399880036, 1399879997, 1399879958, 1399879911] Looping around the photos to save general results len do output : 1 /29521390. 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, '4243184') ('4302', '29521390', '1399880786', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880689', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880683', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880474', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880450', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880404', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880176', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880098', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880036', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399879997', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399879958', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399879911', None, None, None, None, None, '4243184') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '29521390', "{'flou': 29521402, 'Teint_Dans_La_Masse': 29521403, 'Carton_gris': 29521404, 'papier': 29521405, 'cartonnette': 29521406, 'mal_croppe': 29521407, 'kraft': 29521408, 'Carton_brun': 29521409, 'plastique': 29521410, 'environnement': 29521411, 'autre_refus': 29521412, 'metal': 29521413}", None, None, None, None, '4243184'), ('4302', '29521390', '1399880786', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880689', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880683', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880474', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880450', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880404', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880176', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880098', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880036', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399879997', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399879958', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399879911', None, None, None, None, None, '4243184')] time used for this insertion : 0.014833450317382812 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8007190227508545 time spend to save output : 0.015091657638549805 total time spend for step 1 : 1.8158106803894043 step2:final Thu Dec 18 02:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29521390) 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 29521390 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399877416,1399877413,1399877412,1399877411,1399877410,1399877423,1399878139,1399878166,1399878165,1399878161,1399878159,1399878158,1399878172,1399879776,1399879774,1399878169,1399878626,1399879772,1399878532,1399879771,1399878482,1399879769,1399878366,1399879276,1399879206,1399878329,1399879119,1399878280,1399879037,1399878958,1399878813,1399879668,1399879630,1399879590,1399879550,1399879515,1399879460,1399880176,1399880098,1399880036,1399879997,1399879958,1399879911,1399880474,1399880450,1399880404,1399880786,1399880689,1399880683); 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([29521390]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ('0.019434550337468572',), 1399880036: ('0.019434550337468572',), 1399879997: ('0.019434550337468572',), 1399879958: ('0.019434550337468572',), 1399879911: ('0.019434550337468572',)} new output for save of step final : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ('0.019434550337468572',), 1399880036: ('0.019434550337468572',), 1399879997: ('0.019434550337468572',), 1399879958: ('0.019434550337468572',), 1399879911: ('0.019434550337468572',)} [1399880786, 1399880689, 1399880683, 1399880474, 1399880450, 1399880404, 1399880176, 1399880098, 1399880036, 1399879997, 1399879958, 1399879911] map_info['map_portfolio_photo'] : {29521390: [1399880786, 1399880689, 1399880683, 1399880474, 1399880450, 1399880404, 1399880176, 1399880098, 1399880036, 1399879997, 1399879958, 1399879911, 1399879776, 1399879774, 1399879772, 1399879771, 1399879769, 1399879668, 1399879630, 1399879590, 1399879550, 1399879515, 1399879460, 1399879276, 1399879206, 1399879119, 1399879037, 1399878958, 1399878813, 1399878626, 1399878532, 1399878482, 1399878366, 1399878329, 1399878280, 1399878172, 1399878169, 1399878166, 1399878165, 1399878161, 1399878159, 1399878158, 1399878139, 1399877423, 1399877416, 1399877413, 1399877412, 1399877411, 1399877410]} final : False mtd_id 4302 list_pids : [1399880786, 1399880689, 1399880683, 1399880474, 1399880450, 1399880404, 1399880176, 1399880098, 1399880036, 1399879997, 1399879958, 1399879911] Looping around the photos to save general results len do output : 12 /1399880786.Didn't retrieve data . /1399880689.Didn't retrieve data . /1399880683.Didn't retrieve data . /1399880474.Didn't retrieve data . /1399880450.Didn't retrieve data . /1399880404.Didn't retrieve data . /1399880176.Didn't retrieve data . /1399880098.Didn't retrieve data . /1399880036.Didn't retrieve data . /1399879997.Didn't retrieve data . /1399879958.Didn't retrieve data . /1399879911.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, '4243184') ('4302', '29521390', '1399880786', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880689', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880683', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880474', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880450', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880404', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880176', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880098', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880036', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399879997', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399879958', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399879911', None, None, None, None, None, '4243184') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '29521390', '1399880786', '0.019434550337468572', None, None, None, None, '4243184'), ('4302', '29521390', '1399880689', '0.019434550337468572', None, None, None, None, '4243184'), ('4302', '29521390', '1399880683', '0.019434550337468572', None, None, None, None, '4243184'), ('4302', '29521390', '1399880474', '0.019434550337468572', None, None, None, None, '4243184'), ('4302', '29521390', '1399880450', '0.019434550337468572', None, None, None, None, '4243184'), ('4302', '29521390', '1399880404', '0.019434550337468572', None, None, None, None, '4243184'), ('4302', '29521390', '1399880176', '0.019434550337468572', None, None, None, None, '4243184'), ('4302', '29521390', '1399880098', '0.019434550337468572', None, None, None, None, '4243184'), ('4302', '29521390', '1399880036', '0.019434550337468572', None, None, None, None, '4243184'), ('4302', '29521390', '1399879997', '0.019434550337468572', None, None, None, None, '4243184'), ('4302', '29521390', '1399879958', '0.019434550337468572', None, None, None, None, '4243184'), ('4302', '29521390', '1399879911', '0.019434550337468572', None, None, None, None, '4243184')] time used for this insertion : 0.016802310943603516 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07816028594970703 time spend to save output : 0.017271757125854492 total time spend for step 2 : 0.09543204307556152 step3:velours_tree Thu Dec 18 02:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29521390: [{'flou': 29521402, 'Teint_Dans_La_Masse': 29521403, 'Carton_gris': 29521404, 'papier': 29521405, 'cartonnette': 29521406, 'mal_croppe': 29521407, 'kraft': 29521408, 'Carton_brun': 29521409, 'plastique': 29521410, 'environnement': 29521411, 'autre_refus': 29521412, 'metal': 29521413}]} input_args_next_step : {29521390: ()} output_args : {29521390: [{'flou': 29521402, 'Teint_Dans_La_Masse': 29521403, 'Carton_gris': 29521404, 'papier': 29521405, 'cartonnette': 29521406, 'mal_croppe': 29521407, 'kraft': 29521408, 'Carton_brun': 29521409, 'plastique': 29521410, 'environnement': 29521411, 'autre_refus': 29521412, 'metal': 29521413}]} args : 29521390 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': 29521402, 'Teint_Dans_La_Masse': 29521403, 'Carton_gris': 29521404, 'papier': 29521405, 'cartonnette': 29521406, 'mal_croppe': 29521407, 'kraft': 29521408, 'Carton_brun': 29521409, 'plastique': 29521410, 'environnement': 29521411, 'autre_refus': 29521412, 'metal': 29521413},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29521390) 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([29521390]) 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.2436213493347168 time spend to save output : 4.076957702636719e-05 total time spend for step 3 : 0.24366211891174316 step4:send_mail_cod Thu Dec 18 02:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ('0.019434550337468572',), 1399880036: ('0.019434550337468572',), 1399879997: ('0.019434550337468572',), 1399879958: ('0.019434550337468572',), 1399879911: ('0.019434550337468572',)} input_args_next_step : {1399880786: ()} output_args : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ('0.019434550337468572',), 1399880036: ('0.019434550337468572',), 1399879997: ('0.019434550337468572',), 1399879958: ('0.019434550337468572',), 1399879911: ('0.019434550337468572',)} args : 1399880786 depend.output_id : 0 input_args_next_step : {1399880786: ('0.019434550337468572',), 1399880689: ()} output_args : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ('0.019434550337468572',), 1399880036: ('0.019434550337468572',), 1399879997: ('0.019434550337468572',), 1399879958: ('0.019434550337468572',), 1399879911: ('0.019434550337468572',)} args : 1399880689 depend.output_id : 0 input_args_next_step : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ()} output_args : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ('0.019434550337468572',), 1399880036: ('0.019434550337468572',), 1399879997: ('0.019434550337468572',), 1399879958: ('0.019434550337468572',), 1399879911: ('0.019434550337468572',)} args : 1399880683 depend.output_id : 0 input_args_next_step : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ()} output_args : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ('0.019434550337468572',), 1399880036: ('0.019434550337468572',), 1399879997: ('0.019434550337468572',), 1399879958: ('0.019434550337468572',), 1399879911: ('0.019434550337468572',)} args : 1399880474 depend.output_id : 0 input_args_next_step : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ()} output_args : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ('0.019434550337468572',), 1399880036: ('0.019434550337468572',), 1399879997: ('0.019434550337468572',), 1399879958: ('0.019434550337468572',), 1399879911: ('0.019434550337468572',)} args : 1399880450 depend.output_id : 0 input_args_next_step : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ()} output_args : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ('0.019434550337468572',), 1399880036: ('0.019434550337468572',), 1399879997: ('0.019434550337468572',), 1399879958: ('0.019434550337468572',), 1399879911: ('0.019434550337468572',)} args : 1399880404 depend.output_id : 0 input_args_next_step : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ()} output_args : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ('0.019434550337468572',), 1399880036: ('0.019434550337468572',), 1399879997: ('0.019434550337468572',), 1399879958: ('0.019434550337468572',), 1399879911: ('0.019434550337468572',)} args : 1399880176 depend.output_id : 0 input_args_next_step : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ()} output_args : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ('0.019434550337468572',), 1399880036: ('0.019434550337468572',), 1399879997: ('0.019434550337468572',), 1399879958: ('0.019434550337468572',), 1399879911: ('0.019434550337468572',)} args : 1399880098 depend.output_id : 0 input_args_next_step : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ('0.019434550337468572',), 1399880036: ()} output_args : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ('0.019434550337468572',), 1399880036: ('0.019434550337468572',), 1399879997: ('0.019434550337468572',), 1399879958: ('0.019434550337468572',), 1399879911: ('0.019434550337468572',)} args : 1399880036 depend.output_id : 0 input_args_next_step : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ('0.019434550337468572',), 1399880036: ('0.019434550337468572',), 1399879997: ()} output_args : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ('0.019434550337468572',), 1399880036: ('0.019434550337468572',), 1399879997: ('0.019434550337468572',), 1399879958: ('0.019434550337468572',), 1399879911: ('0.019434550337468572',)} args : 1399879997 depend.output_id : 0 input_args_next_step : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ('0.019434550337468572',), 1399880036: ('0.019434550337468572',), 1399879997: ('0.019434550337468572',), 1399879958: ()} output_args : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ('0.019434550337468572',), 1399880036: ('0.019434550337468572',), 1399879997: ('0.019434550337468572',), 1399879958: ('0.019434550337468572',), 1399879911: ('0.019434550337468572',)} args : 1399879958 depend.output_id : 0 input_args_next_step : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ('0.019434550337468572',), 1399880036: ('0.019434550337468572',), 1399879997: ('0.019434550337468572',), 1399879958: ('0.019434550337468572',), 1399879911: ()} output_args : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ('0.019434550337468572',), 1399880036: ('0.019434550337468572',), 1399879997: ('0.019434550337468572',), 1399879958: ('0.019434550337468572',), 1399879911: ('0.019434550337468572',)} args : 1399879911 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 : {29521390: [{'flou': 29521402, 'Teint_Dans_La_Masse': 29521403, 'Carton_gris': 29521404, 'papier': 29521405, 'cartonnette': 29521406, 'mal_croppe': 29521407, 'kraft': 29521408, 'Carton_brun': 29521409, 'plastique': 29521410, 'environnement': 29521411, 'autre_refus': 29521412, 'metal': 29521413}]} input_args_next_step : {1399880786: ('0.019434550337468572',), 1399880689: ('0.019434550337468572',), 1399880683: ('0.019434550337468572',), 1399880474: ('0.019434550337468572',), 1399880450: ('0.019434550337468572',), 1399880404: ('0.019434550337468572',), 1399880176: ('0.019434550337468572',), 1399880098: ('0.019434550337468572',), 1399880036: ('0.019434550337468572',), 1399879997: ('0.019434550337468572',), 1399879958: ('0.019434550337468572',), 1399879911: ('0.019434550337468572',), 29521390: ()} output_args : {29521390: [{'flou': 29521402, 'Teint_Dans_La_Masse': 29521403, 'Carton_gris': 29521404, 'papier': 29521405, 'cartonnette': 29521406, 'mal_croppe': 29521407, 'kraft': 29521408, 'Carton_brun': 29521409, 'plastique': 29521410, 'environnement': 29521411, 'autre_refus': 29521412, 'metal': 29521413}]} args : 29521390 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 :13, first value : ('0.019434550337468572',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29521390) 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 (1399880786,1399880689,1399880683,1399880474,1399880450,1399880404,1399880176,1399880098,1399880036,1399879997,1399879958,1399879911) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399879911 begin to download photo : 1399880036 begin to download photo : 1399880404 begin to download photo : 1399880683 download finish for photo 1399880404 begin to download photo : 1399880450 download finish for photo 1399879911 begin to download photo : 1399879958 download finish for photo 1399880683 begin to download photo : 1399880689 download finish for photo 1399880036 begin to download photo : 1399880098 download finish for photo 1399880450 begin to download photo : 1399880474 download finish for photo 1399879958 begin to download photo : 1399879997 download finish for photo 1399880098 begin to download photo : 1399880176 download finish for photo 1399880689 begin to download photo : 1399880786 download finish for photo 1399879997 download finish for photo 1399880786 download finish for photo 1399880176 download finish for photo 1399880474 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette295214021766020500/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P29521390_18-12-2025_02_15_00.pdf 29521402 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=29521402 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295214021766020500 29521406 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=29521406 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399878126: '1766019905_2454901_1399877410_ed5c0cba3eb9d36938dd26e105ec6b68_rle_crop_4073600043_0.png', 1399880304: '1766020346_2467918_1399878813_bec191d1cd9d499715eb5325b441da33_rle_crop_4073620596_0.png', 1399880667: '1766020407_2469891_1399878169_b204e5c59efce319d3109cf6f44f5ff2_rle_crop_4073620924_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/8d4645bef483f208334777f14908e3b4_65320970.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/701d82b81a3286ba266ea12d3118a0b1_89105944.png change filename to text .imagette295214061766020500/ imagette295214061766020500/1766019905_2454901_1399877410_ed5c0cba3eb9d36938dd26e105ec6b68_rle_crop_4073600043_0.png.png imagette295214061766020500/1766020346_2467918_1399878813_bec191d1cd9d499715eb5325b441da33_rle_crop_4073620596_0.png.png imagette295214061766020500/1766020407_2469891_1399878169_b204e5c59efce319d3109cf6f44f5ff2_rle_crop_4073620924_0.png.png imagette295214071766020500/ imagette295214081766020500/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/1308b40c103a06666ec4538e179bbee9_22189793.png imagette295214061766020500 29521407 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=29521407 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295214071766020500 29521408 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=29521408 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295214081766020500 29521410 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=29521410 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399878127: '1766019905_2454901_1399877416_02f1f0013300731619171e272f508e00_rle_crop_4073600005_0.png'} change filename to text .imagette295214101766020500/ imagette295214101766020500/1766019905_2454901_1399877416_02f1f0013300731619171e272f508e00_rle_crop_4073600005_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/b9a38b9a2bb3c76b37bea66fef7c456a_50933693.png imagette295214101766020500 29521412 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=29521412 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399880657: '1766020407_2469891_1399878626_87a8fa6912b5f400ea83e7ed7eb2e59a_rle_crop_4073620914_0.png'} change filename to text .imagette295214121766020500/ imagette295214121766020500/1766020407_2469891_1399878626_87a8fa6912b5f400ea83e7ed7eb2e59a_rle_crop_4073620914_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/260c1f4c6731cf15b9cd2d51c9d54a72_1079434.png imagette295214121766020500 29521413 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=29521413 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399880670: '1766020407_2469891_1399878169_b204e5c59efce319d3109cf6f44f5ff2_rle_crop_4073620922_0.png'} change filename to text .imagette295214131766020500/ imagette295214131766020500/1766020407_2469891_1399878169_b204e5c59efce319d3109cf6f44f5ff2_rle_crop_4073620922_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/b461cf5fa367d47a260f3170a0e8c0d0_87618049.png imagette295214131766020500 29521403 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=29521403 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399878125: '1766019905_2454901_1399877410_ed5c0cba3eb9d36938dd26e105ec6b68_rle_crop_4073600047_0.png', 1399880247: '1766020346_2467918_1399878958_910625418c52ebdfa02a68f5c7e40436_rle_crop_4073620590_0.png', 1399880250: '1766020346_2467918_1399878813_bec191d1cd9d499715eb5325b441da33_rle_crop_4073620599_0.png', 1399880254: '1766020346_2467918_1399878813_bec191d1cd9d499715eb5325b441da33_rle_crop_4073620601_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/814270a10bbd09f893dda1dd9e529142_33823036.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/42b541742a062c7f6c75eb3f9a8740cf_46572936.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/7dc4468ce953ccf92066e1b614fc6dac_60655260.png change filename to text .imagette295214031766020500/ imagette295214031766020500/1766020346_2467918_1399878813_bec191d1cd9d499715eb5325b441da33_rle_crop_4073620601_0.png.png imagette295214031766020500/1766020346_2467918_1399878958_910625418c52ebdfa02a68f5c7e40436_rle_crop_4073620590_0.png.png imagette295214031766020500/1766019905_2454901_1399877410_ed5c0cba3eb9d36938dd26e105ec6b68_rle_crop_4073600047_0.png.png imagette295214031766020500/1766020346_2467918_1399878813_bec191d1cd9d499715eb5325b441da33_rle_crop_4073620599_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/d44344e486c65ee5b521d655f036ad83_80704940.png imagette295214031766020500 29521404 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=29521404 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399880291: '1766020346_2467918_1399878958_910625418c52ebdfa02a68f5c7e40436_rle_crop_4073620583_0.png', 1399880293: '1766020346_2467918_1399878958_910625418c52ebdfa02a68f5c7e40436_rle_crop_4073620587_0.png', 1399880295: '1766020346_2467918_1399878958_910625418c52ebdfa02a68f5c7e40436_rle_crop_4073620586_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/4e4d4986cb1ccb87482f7672752ca534_38121284.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/06005a17f1b6dcb7c3236119421e1ef7_36287295.png change filename to text .imagette295214041766020501/ imagette295214041766020501/1766020346_2467918_1399878958_910625418c52ebdfa02a68f5c7e40436_rle_crop_4073620587_0.png.png imagette295214041766020501/1766020346_2467918_1399878958_910625418c52ebdfa02a68f5c7e40436_rle_crop_4073620583_0.png.png imagette295214041766020501/1766020346_2467918_1399878958_910625418c52ebdfa02a68f5c7e40436_rle_crop_4073620586_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/4af78b58b4c7c7cb14e33eabe6a6fa29_72456799.png imagette295214041766020501 29521409 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=29521409 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399880624: '1766020385_2468791_1399878532_4d05743bb87f81de4fe8d11f4a42d9fb_rle_crop_4073620809_0.png'} change filename to text .imagette295214091766020501/ imagette295214091766020501/1766020385_2468791_1399878532_4d05743bb87f81de4fe8d11f4a42d9fb_rle_crop_4073620809_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/dae144b44b024862df12e0a18f71c2a5_50242216.png imagette295214091766020501 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29521390 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29521415,29521416,29521417,29521418,29521419,29521420,29521421,29521422,29521423,29521424,29521425,29521426?tags=flou,Teint_Dans_La_Masse,Carton_gris,papier,cartonnette,mal_croppe,kraft,Carton_brun,plastique,environnement,autre_refus,metal your option no_mail is active, we will not send the real mail to your client args[1399880786] : ('0.019434550337468572',) no score found for photo 1399880786 We are sending mail with results at report@fotonower.com args[1399880689] : ('0.019434550337468572',) no score found for photo 1399880689 We are sending mail with results at report@fotonower.com args[1399880683] : ('0.019434550337468572',) no score found for photo 1399880683 We are sending mail with results at report@fotonower.com args[1399880474] : ('0.019434550337468572',) no score found for photo 1399880474 We are sending mail with results at report@fotonower.com args[1399880450] : ('0.019434550337468572',) no score found for photo 1399880450 We are sending mail with results at report@fotonower.com args[1399880404] : ('0.019434550337468572',) no score found for photo 1399880404 We are sending mail with results at report@fotonower.com args[1399880176] : ('0.019434550337468572',) no score found for photo 1399880176 We are sending mail with results at report@fotonower.com args[1399880098] : ('0.019434550337468572',) no score found for photo 1399880098 We are sending mail with results at report@fotonower.com args[1399880036] : ('0.019434550337468572',) no score found for photo 1399880036 We are sending mail with results at report@fotonower.com args[1399879997] : ('0.019434550337468572',) no score found for photo 1399879997 We are sending mail with results at report@fotonower.com args[1399879958] : ('0.019434550337468572',) no score found for photo 1399879958 We are sending mail with results at report@fotonower.com args[1399879911] : ('0.019434550337468572',) no score found for photo 1399879911 We are sending mail with results at report@fotonower.com refus_total : 0.019434550337468572 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=29521390 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_P29521390_18-12-2025_02_15_00.pdf results_Auto_P29521390_18-12-2025_02_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521390_18-12-2025_02_15_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29521390','results_Auto_P29521390_18-12-2025_02_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521390_18-12-2025_02_15_00.pdf','pdf','','0.16','0.019434550337468572') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29521390]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399880786, 1399880689, 1399880683, 1399880474, 1399880450, 1399880404, 1399880176, 1399880098, 1399880036, 1399879997, 1399879958, 1399879911] map_info['map_portfolio_photo'] : {29521390: [1399880786, 1399880689, 1399880683, 1399880474, 1399880450, 1399880404, 1399880176, 1399880098, 1399880036, 1399879997, 1399879958, 1399879911, 1399879776, 1399879774, 1399879772, 1399879771, 1399879769, 1399879668, 1399879630, 1399879590, 1399879550, 1399879515, 1399879460, 1399879276, 1399879206, 1399879119, 1399879037, 1399878958, 1399878813, 1399878626, 1399878532, 1399878482, 1399878366, 1399878329, 1399878280, 1399878172, 1399878169, 1399878166, 1399878165, 1399878161, 1399878159, 1399878158, 1399878139, 1399877423, 1399877416, 1399877413, 1399877412, 1399877411, 1399877410]} final : False mtd_id 4302 list_pids : [1399880786, 1399880689, 1399880683, 1399880474, 1399880450, 1399880404, 1399880176, 1399880098, 1399880036, 1399879997, 1399879958, 1399879911] 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, '4243184') ('4302', '29521390', '1399880786', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880689', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880683', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880474', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880450', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880404', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880176', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880098', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880036', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399879997', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399879958', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399879911', None, None, None, None, None, '4243184') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29521390', '1399880786', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880689', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880683', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880474', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880450', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880404', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880176', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880098', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880036', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399879997', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399879958', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399879911', None, None, None, None, None, '4243184')] time used for this insertion : 0.013887882232666016 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.9496583938598633 time spend to save output : 0.014113664627075195 total time spend for step 4 : 2.9637720584869385 step5:split_time_score Thu Dec 18 02:15:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29521390'] 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 : [('29521390',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29521390) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399879911: {'path': 'temp/1766020499_2249372_1399879911_fc47aaaeb9c67fefeb596eb28a930efc.jpg', 'extension': 'jpg'}, 1399879958: {'path': 'temp/1766020499_2249372_1399879958_fdd94fa8d1f5b472d8648df6be2ed8fa.jpg', 'extension': 'jpg'}, 1399879997: {'path': 'temp/1766020499_2249372_1399879997_e60ec775718a805743022ca9c7615e8e.jpg', 'extension': 'jpg'}, 1399880683: {'path': 'temp/1766020499_2249372_1399880683_d06a8a76f0cd054347366c15a0b4427f.jpg', 'extension': 'jpg'}, 1399880689: {'path': 'temp/1766020499_2249372_1399880689_c68581fd2b66629ba7ee3bcaa39f9fb8.jpg', 'extension': 'jpg'}, 1399880786: {'path': 'temp/1766020499_2249372_1399880786_2ae741157869b05ca66ad0a2254bbfc8.jpg', 'extension': 'jpg'}, 1399880036: {'path': 'temp/1766020499_2249372_1399880036_62b3532da2b71a55916b380cc1e848c0.jpg', 'extension': 'jpg'}, 1399880098: {'path': 'temp/1766020499_2249372_1399880098_c661e5563370f9ab1eef35d863833e3a.jpg', 'extension': 'jpg'}, 1399880176: {'path': 'temp/1766020499_2249372_1399880176_b1603a992108264f116b46602a555845.jpg', 'extension': 'jpg'}, 1399880404: {'path': 'temp/1766020499_2249372_1399880404_c915924abe10170025cb94c52335942f.jpg', 'extension': 'jpg'}, 1399880450: {'path': 'temp/1766020499_2249372_1399880450_b05ea9289b9ce33dfa8f51ab9153a30e.jpg', 'extension': 'jpg'}, 1399880474: {'path': 'temp/1766020499_2249372_1399880474_cdaf9e164ff57b77b9b7bf98a099297f.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 = 29521390; (('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 = 29521390 group by h (('02', 49),) 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=29521390 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 (29521390) 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 (29521390) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18122025 29521390 Nombre de photos uploadées : 49 / 23040 (0%) 18122025 29521390 Nombre de photos taguées (types de déchets): 0 / 49 (0%) 18122025 29521390 Nombre de photos taguées (volume) : 0 / 49 (0%) [{'photo_id': 1399877416, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/02f1f0013300731619171e272f508e00.jpg', 'username': None, 'uploaded_at': 1766019707, 'text': 'image_18122025_02_00_04_010138m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399877413, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/deaa2553153f2a3d816be910e8cdc439.jpg', 'username': None, 'uploaded_at': 1766019707, 'text': 'image_18122025_02_00_14_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399877412, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/202988bc0a5b32a0771f89b573a80811.jpg', 'username': None, 'uploaded_at': 1766019707, 'text': 'image_18122025_02_00_24_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399877411, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/8b9e1a14fde694ba6c9a70142bd1f156.jpg', 'username': None, 'uploaded_at': 1766019707, 'text': 'image_18122025_02_00_33_009126m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 1.430511474609375e-05 ????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012285709381103516 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29521390, '2025-12-18' ) 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 (2754916,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.27706122398376465 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= 2754916 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2754916, 'dashboard_run_id': 2761946, 'mtr_portfolio_id': 29518047, 'dashboard_result_id': 18496583, '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_P29518047_18-12-2025_00_20_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2761946, 'mtr_portfolio_id': 29518739, 'dashboard_result_id': 18496584, '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_P29518739_18-12-2025_00_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2761946, 'mtr_portfolio_id': 29519140, 'dashboard_result_id': 18496585, '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_P29519140_18-12-2025_00_54_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29519146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519156, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2761946, 'mtr_portfolio_id': 29519795, 'dashboard_result_id': 18496586, '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_P29519795_18-12-2025_01_39_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29519800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519811, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2761946, 'mtr_portfolio_id': 29520754, 'dashboard_result_id': 18496587, '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_P29520754_18-12-2025_01_29_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29520755, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29520756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29520757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29520758, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29520759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29520760, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29520761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29520762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29520763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29520764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29520765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29520766, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2761946, 'mtr_portfolio_id': 29520859, 'dashboard_result_id': 18496589, '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_P29520859_18-12-2025_01_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29520862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29520863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29520864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29520865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29520866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29520867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29520868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29520869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29520870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29520871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29520872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29520873, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2761946, 'mtr_portfolio_id': 29521041, 'dashboard_result_id': 18496590, '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_P29521041_18-12-2025_02_01_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521057, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2761946, 'mtr_portfolio_id': 29521390, 'dashboard_result_id': 18496591, '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_P29521390_18-12-2025_02_12_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29521402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521413, '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 = 29518047 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': 4242815, 'mtr_portfolio_id': 29518047, 'created_at': datetime.datetime(2025, 12, 18, 0, 20, 57), 'result': '0.03220967171818393', 'result_long': None, 'result_double': None}] Qualite : 0.03220967171818393 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29518047 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518047_18-12-2025_00_20_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29518047 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_P29518047_18-12-2025_00_20_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, 'pht': 3726}}" where mtr_portfolio_id = 29518047 and dashboard_run_id = 2761946 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`=29518047 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18496583, 0.03220967171818393, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518047_18-12-2025_00_20_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, '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 = 29518739 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': 4242854, 'mtr_portfolio_id': 29518739, 'created_at': datetime.datetime(2025, 12, 18, 0, 35), 'result': '0.06837597770395426', 'result_long': None, 'result_double': None}] Qualite : 0.06837597770395426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29518739 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518739_18-12-2025_00_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29518739 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_P29518739_18-12-2025_00_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, 'pht': 3726}}" where mtr_portfolio_id = 29518739 and dashboard_run_id = 2761946 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`=29518739 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18496584, 0.06837597770395426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518739_18-12-2025_00_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, '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 = 29519140 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': 4242890, 'mtr_portfolio_id': 29519140, 'created_at': datetime.datetime(2025, 12, 18, 0, 54, 58), 'result': '0.05371616740416841', 'result_long': None, 'result_double': None}] Qualite : 0.05371616740416841 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29519140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519140_18-12-2025_00_54_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29519140 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_P29519140_18-12-2025_00_54_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29519146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519156, 'pht': 3726}}" where mtr_portfolio_id = 29519140 and dashboard_run_id = 2761946 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`=29519140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18496585, 0.05371616740416841, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519140_18-12-2025_00_54_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29519146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519156, '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 = 29519795 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': 4242948, 'mtr_portfolio_id': 29519795, 'created_at': datetime.datetime(2025, 12, 18, 1, 39), 'result': '0.05511319673471893', 'result_long': None, 'result_double': None}] Qualite : 0.05511319673471893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29519795 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519795_18-12-2025_01_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29519795 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_P29519795_18-12-2025_01_39_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29519800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519811, 'pht': 3726}}" where mtr_portfolio_id = 29519795 and dashboard_run_id = 2761946 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`=29519795 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18496586, 0.05511319673471893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519795_18-12-2025_01_39_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29519800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519811, '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 = 29520754 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 = 29520754 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 = 29520754 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29520754 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 = 29520754 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 = 29520754 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29520754_18-12-2025_01_29_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29520754 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_P29520754_18-12-2025_01_29_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29520755, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29520756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29520757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29520758, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29520759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29520760, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29520761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29520762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29520763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29520764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29520765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29520766, 'pht': 3726}}" where mtr_portfolio_id = 29520754 and dashboard_run_id = 2761946 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 = 29520859 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': 4243104, 'mtr_portfolio_id': 29520859, 'created_at': datetime.datetime(2025, 12, 18, 1, 49), 'result': '0.04460530157821973', 'result_long': None, 'result_double': None}] Qualite : 0.04460530157821973 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29520859 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29520859_18-12-2025_01_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29520859 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_P29520859_18-12-2025_01_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29520862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29520863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29520864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29520865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29520866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29520867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29520868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29520869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29520870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29520871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29520872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29520873, 'pht': 3726}}" where mtr_portfolio_id = 29520859 and dashboard_run_id = 2761946 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`=29520859 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18496589, 0.04460530157821973, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29520859_18-12-2025_01_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29520862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29520863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29520864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29520865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29520866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29520867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29520868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29520869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29520870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29520871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29520872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29520873, '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 = 29521041 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': 4243124, 'mtr_portfolio_id': 29521041, 'created_at': datetime.datetime(2025, 12, 18, 2, 2, 59), 'result': '0.06963766706411442', 'result_long': None, 'result_double': None}] Qualite : 0.06963766706411442 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29521041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521041_18-12-2025_02_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29521041 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_P29521041_18-12-2025_02_01_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521057, 'pht': 3726}}" where mtr_portfolio_id = 29521041 and dashboard_run_id = 2761946 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`=29521041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18496590, 0.06963766706411442, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521041_18-12-2025_02_01_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521057, '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 = 29521390 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': 4243184, 'mtr_portfolio_id': 29521390, 'created_at': datetime.datetime(2025, 12, 18, 2, 14, 59), 'result': '0.019434550337468572', 'result_long': None, 'result_double': None}] Qualite : 0.019434550337468572 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29521390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521390_18-12-2025_02_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29521390 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_P29521390_18-12-2025_02_15_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29521402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521413, 'pht': 3726}}" where mtr_portfolio_id = 29521390 and dashboard_run_id = 2761946 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`=29521390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18496591, 0.019434550337468572, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521390_18-12-2025_02_15_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29521402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521413, '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 (29518047,29518739,29519140,29519795,29520754,29520859,29521041,29521390) result : ((1399862066,), (1399862100,), (1399862137,), (1399862172,), (1399862203,), (1399862461,), (1399862509,), (1399862581,), (1399862647,), (1399862712,), (1399862777,), (1399863346,), (1399863401,), (1399864109,), (1399864190,), (1399864229,), (1399864263,), (1399864298,), (1399864481,), (1399864513,), (1399864546,), (1399864578,), (1399864601,), (1399864602,), (1399864716,), (1399865151,), (1399865152,), (1399865985,), (1399866386,), (1399866332,), (1399866335,), (1399866356,), (1399866621,), (1399866661,), (1399866695,), (1399866729,), (1399866764,), (1399867132,), (1399867134,), (1399867136,), (1399867140,), (1399867144,), (1399867171,), (1399867203,), (1399867238,), (1399867275,), (1399867312,), (1399867506,), (1399867537,), (1399867555,), (1399867571,), (1399867575,), (1399867577,), (1399867600,), (1399867603,), (1399867606,), (1399867609,), (1399867617,), (1399867619,), (1399867622,), (1399867624,), (1399867626,), (1399867633,), (1399867639,), (1399867648,), (1399867655,), (1399867658,), (1399867661,), (1399867664,), (1399867666,), (1399867671,), (1399867673,), (1399867700,), (1399867702,), (1399867710,), (1399867712,), (1399867715,), (1399867718,), (1399867723,), (1399867724,), (1399867726,), (1399867729,), (1399867732,), (1399867735,), (1399867802,), (1399867815,), (1399867816,), (1399867817,), (1399867818,), (1399867820,), (1399868158,), (1399868194,), (1399868226,), (1399868256,), (1399868289,), (1399868321,), (1399868616,), (1399868919,), (1399869017,), (1399869018,), (1399868446,), (1399868482,), (1399868516,), (1399868548,), (1399868583,), (1399868743,), (1399868778,), (1399868811,), (1399868848,), (1399868884,), (1399869019,), (1399869020,), (1399869021,), (1399869022,), (1399869025,), (1399869289,), (1399869297,), (1399869301,), (1399869302,), (1399869305,), (1399869339,), (1399869426,), (1399869430,), (1399869432,), (1399869436,), (1399869444,), (1399869449,), (1399869455,), (1399869459,), (1399869460,), (1399869461,), (1399869463,), (1399869466,), (1399869469,), (1399869472,), (1399869476,), (1399869483,), (1399869484,), (1399869485,), (1399869486,), (1399869499,), (1399869536,), (1399869858,), (1399869895,), (1399869931,), (1399869967,), (1399870008,), (1399870248,), (1399870272,), (1399870305,), (1399870343,), (1399870357,), (1399870360,), (1399870405,), (1399870432,), (1399870443,), (1399870444,), (1399870445,), (1399870446,), (1399870449,), (1399870462,), (1399870464,), (1399870466,), (1399870470,), (1399870483,), (1399870484,), (1399870485,), (1399870486,), (1399870489,), (1399870492,), (1399870495,), (1399870498,), (1399870500,), (1399870501,), (1399870502,), (1399870505,), (1399870507,), (1399870509,), (1399870534,), (1399870542,), (1399870544,), (1399870545,), (1399870548,), (1399870551,), (1399870559,), (1399870561,), (1399870562,), (1399870605,), (1399870767,), (1399870584,), (1399870586,), (1399870589,), (1399870591,), (1399870594,), (1399870595,), (1399870598,), (1399870600,), (1399870602,), (1399870603,), (1399870619,), (1399870625,), (1399870629,), (1399870632,), (1399870635,), (1399870636,), (1399870640,), (1399870643,), (1399870646,), (1399870649,), (1399870651,), (1399870652,), (1399870665,), (1399870668,), (1399870672,), (1399870675,), (1399870677,), (1399870680,), (1399870684,), (1399870687,), (1399870690,), (1399870692,), (1399870694,), (1399870697,), (1399870702,), (1399870704,), (1399870705,), (1399870707,), (1399870709,), (1399870711,), (1399870722,), (1399870726,), (1399870727,), (1399870728,), (1399870729,), (1399870730,), (1399870756,), (1399870758,), (1399870760,), (1399870762,), (1399870765,), (1399870773,), (1399870774,), (1399870777,), (1399870780,), (1399870783,), (1399870788,), (1399870909,), (1399870943,), (1399870976,), (1399871010,), (1399871042,), (1399871379,), (1399871415,), (1399871445,), (1399871477,), (1399871509,), (1399871543,), (1399871858,), (1399871872,), (1399871873,), (1399871874,), (1399871876,), (1399871878,), (1399871987,), (1399872024,), (1399872056,), (1399872114,), (1399872322,), (1399872323,), (1399872326,), (1399872329,), (1399872332,), (1399872353,), (1399872355,), (1399872358,), (1399872362,), (1399872363,), (1399872365,), (1399872370,), (1399872371,), (1399872374,), (1399872377,), (1399872380,), (1399872383,), (1399872400,), (1399872407,), (1399872412,), (1399872413,), (1399872414,), (1399872415,), (1399872461,), (1399872464,), (1399876930,), (1399876059,), (1399876779,), (1399876926,), (1399876928,), (1399876948,), (1399876950,), (1399876952,), (1399876954,), (1399876957,), (1399876970,), (1399876971,), (1399876972,), (1399876976,), (1399876980,), (1399876982,), (1399876989,), (1399876991,), (1399877005,), (1399877033,), (1399877034,), (1399877049,), (1399877051,), (1399877070,), (1399877071,), (1399877072,), (1399877073,), (1399877076,), (1399877085,), (1399877088,), (1399877090,), (1399877094,), (1399877101,), (1399877117,), (1399877112,), (1399877113,), (1399877114,), (1399877146,), (1399877147,), (1399877148,), (1399877161,), (1399877162,), (1399877163,), (1399877164,), (1399877167,), (1399877170,), (1399877181,), (1399877182,), (1399877183,), (1399877184,), (1399877193,), (1399877195,), (1399877197,), (1399877217,), (1399877219,), (1399877221,), (1399877225,), (1399877229,), (1399877236,), (1399877237,), (1399877238,), (1399877239,), (1399877241,), (1399877242,), (1399877271,), (1399877272,), (1399877273,), (1399877274,), (1399877277,), (1399877287,), (1399877288,), (1399877289,), (1399877290,), (1399877316,), (1399877317,), (1399877318,), (1399877319,), (1399877325,), (1399877327,), (1399877329,), (1399877333,), (1399877337,), (1399877348,), (1399877349,), (1399877350,), (1399877376,), (1399877378,), (1399877382,), (1399877385,), (1399877387,), (1399877389,), (1399877393,), (1399877396,), (1399877400,), (1399877403,), (1399877405,), (1399877418,), (1399877410,), (1399877411,), (1399877412,), (1399877413,), (1399877416,), (1399877423,), (1399878139,), (1399878158,), (1399878159,), (1399878161,), (1399878165,), (1399878166,), (1399878169,), (1399878172,), (1399878280,), (1399878329,), (1399878366,), (1399878482,), (1399878532,), (1399878626,), (1399878813,), (1399878958,), (1399879037,), (1399879119,), (1399879206,), (1399879276,), (1399879460,), (1399879515,), (1399879550,), (1399879590,), (1399879630,), (1399879668,), (1399879769,), (1399879771,), (1399879772,), (1399879774,), (1399879776,), (1399879911,), (1399879958,), (1399879997,), (1399880036,), (1399880098,), (1399880176,), (1399880404,), (1399880450,), (1399880474,), (1399880683,), (1399880689,), (1399880786,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18122025': {'nb_upload': 49, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29521390]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399880786, 1399880689, 1399880683, 1399880474, 1399880450, 1399880404, 1399880176, 1399880098, 1399880036, 1399879997, 1399879958, 1399879911] map_info['map_portfolio_photo'] : {29521390: [1399880786, 1399880689, 1399880683, 1399880474, 1399880450, 1399880404, 1399880176, 1399880098, 1399880036, 1399879997, 1399879958, 1399879911, 1399879776, 1399879774, 1399879772, 1399879771, 1399879769, 1399879668, 1399879630, 1399879590, 1399879550, 1399879515, 1399879460, 1399879276, 1399879206, 1399879119, 1399879037, 1399878958, 1399878813, 1399878626, 1399878532, 1399878482, 1399878366, 1399878329, 1399878280, 1399878172, 1399878169, 1399878166, 1399878165, 1399878161, 1399878159, 1399878158, 1399878139, 1399877423, 1399877416, 1399877413, 1399877412, 1399877411, 1399877410]} final : True mtd_id 4302 list_pids : [1399880786, 1399880689, 1399880683, 1399880474, 1399880450, 1399880404, 1399880176, 1399880098, 1399880036, 1399879997, 1399879958, 1399879911] Looping around the photos to save general results len do output : 1 /29521390Didn'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, '4243184') ('4302', '29521390', '1399880786', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880689', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880683', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880474', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880450', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880404', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880176', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880098', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399880036', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399879997', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399879958', None, None, None, None, None, '4243184') ('4302', None, None, None, None, None, None, None, '4243184') ('4302', '29521390', '1399879911', None, None, None, None, None, '4243184') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '29521390', 'None', None, None, None, None, '4243184'), ('4302', '29521390', '1399880786', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880689', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880683', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880474', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880450', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880404', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880176', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880098', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399880036', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399879997', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399879958', None, None, None, None, None, '4243184'), ('4302', '29521390', '1399879911', None, None, None, None, None, '4243184')] time used for this insertion : 0.015015363693237305 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.867830753326416 time spend to save output : 0.015219926834106445 total time spend for step 5 : 0.8830506801605225 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 (4243184) 2.12user 2.55system 0:08.76elapsed 53%CPU (0avgtext+0avgdata 165576maxresident)k 320inputs+8992outputs (2major+75493minor)pagefaults 0swaps