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 : 915755 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 (3586040) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3586040) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26193504 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3586040'] with mtr_portfolio_ids : ['26193504'] and first list_photo_ids : [] new path : /proc/915755/ Name: python3 Umask: 0002 State: R (running) Tgid: 915755 Ngid: 0 Pid: 915755 PPid: 915754 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 915755 NSpid: 915755 NSpgid: 913679 NSsid: 913679 VmPeak: 1107248 kB VmSize: 1107248 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99020 kB VmRSS: 99020 kB RssAnon: 60164 kB RssFile: 38856 kB RssShmem: 0 kB VmData: 866000 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 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: 55 nonvoluntary_ctxt_switches: 90 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '915755', 'Ngid': '0', 'Pid': '915755', 'PPid': '915754', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '915755', 'NSpid': '915755', 'NSpgid': '913679', 'NSsid': '913679', 'VmPeak': '1107248 kB', 'VmSize': '1107248 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99020 kB', 'VmRSS': '99020 kB', 'RssAnon': '60164 kB', 'RssFile': '38856 kB', 'RssShmem': '0 kB', 'VmData': '866000 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 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': '55', 'nonvoluntary_ctxt_switches': '90'} ('datou_batch_current', '915755', '1107248', '0', '1107248', '866000', '99020', b'', 'marlene', '3586040') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26193504) 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 (3586040 ) ) 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 (26193504) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1379156158, 'portfolio_id': 26193504}, {'photo_id': 1379156156, 'portfolio_id': 26193504}, {'photo_id': 1379156154, 'portfolio_id': 26193504}, {'photo_id': 1379156152, 'portfolio_id': 26193504}, {'photo_id': 1379155826, 'portfolio_id': 26193504}, {'photo_id': 1379155557, 'portfolio_id': 26193504}, {'photo_id': 1379155552, 'portfolio_id': 26193504}, {'photo_id': 1379155547, 'portfolio_id': 26193504}, {'photo_id': 1379155359, 'portfolio_id': 26193504}, {'photo_id': 1379155358, 'portfolio_id': 26193504}, {'photo_id': 1379155272, 'portfolio_id': 26193504}, {'photo_id': 1379155271, 'portfolio_id': 26193504}, {'photo_id': 1379154965, 'portfolio_id': 26193504}, {'photo_id': 1379154964, 'portfolio_id': 26193504}, {'photo_id': 1379154963, 'portfolio_id': 26193504}, {'photo_id': 1379154744, 'portfolio_id': 26193504}, {'photo_id': 1379154355, 'portfolio_id': 26193504}, {'photo_id': 1379154353, 'portfolio_id': 26193504}, {'photo_id': 1379154351, 'portfolio_id': 26193504}, {'photo_id': 1379153962, 'portfolio_id': 26193504}, {'photo_id': 1379153896, 'portfolio_id': 26193504}, {'photo_id': 1379153895, 'portfolio_id': 26193504}, {'photo_id': 1379153859, 'portfolio_id': 26193504}, {'photo_id': 1379153858, 'portfolio_id': 26193504}, {'photo_id': 1379153857, 'portfolio_id': 26193504}, {'photo_id': 1379153856, 'portfolio_id': 26193504}, {'photo_id': 1379153855, 'portfolio_id': 26193504}, {'photo_id': 1379153585, 'portfolio_id': 26193504}, {'photo_id': 1379153584, 'portfolio_id': 26193504}, {'photo_id': 1379153583, 'portfolio_id': 26193504}, {'photo_id': 1379153582, 'portfolio_id': 26193504}, {'photo_id': 1379153162, 'portfolio_id': 26193504}, {'photo_id': 1379153159, 'portfolio_id': 26193504}, {'photo_id': 1379153156, 'portfolio_id': 26193504}, {'photo_id': 1379153153, 'portfolio_id': 26193504}, {'photo_id': 1379152411, 'portfolio_id': 26193504}, {'photo_id': 1379152408, 'portfolio_id': 26193504}] map_portfolio_id_photo_id: {26193504: [1379156158, 1379156156, 1379156154, 1379156152, 1379155826, 1379155557, 1379155552, 1379155547, 1379155359, 1379155358, 1379155272, 1379155271, 1379154965, 1379154964, 1379154963, 1379154744, 1379154355, 1379154353, 1379154351, 1379153962, 1379153896, 1379153895, 1379153859, 1379153858, 1379153857, 1379153856, 1379153855, 1379153585, 1379153584, 1379153583, 1379153582, 1379153162, 1379153159, 1379153156, 1379153153, 1379152411, 1379152408]} ##### 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.014279603958129883 #### 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 Mon Aug 25 08:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26193504) 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 : 26193504 get user id for portfolio 26193504 get sub ptf for main ptf 26193504, type 3726 and hashtags ['Teint_Dans_La_Masse', 'plastique', 'cartonnette', 'flou', 'kraft', 'metal', 'papier', 'Carton_gris', 'Carton_brun', 'mal_croppe', 'environnement', 'autre_refus'] 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`=26193504 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','plastique','cartonnette','flou','kraft','metal','papier','Carton_gris','Carton_brun','mal_croppe','environnement','autre_refus')) 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`=26193504 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','plastique','cartonnette','flou','kraft','metal','papier','Carton_gris','Carton_brun','mal_croppe','environnement','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 26193504, 'sub_port_id': 26193527, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640431, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 28)}, 'flou': {'main_port_id': 26193504, 'sub_port_id': 26193528, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640432, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 28)}, 'cartonnette': {'main_port_id': 26193504, 'sub_port_id': 26193529, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640433, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 26193504, 'sub_port_id': 26193530, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640434, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 28)}, 'papier': {'main_port_id': 26193504, 'sub_port_id': 26193531, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640435, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 28)}, 'plastique': {'main_port_id': 26193504, 'sub_port_id': 26193532, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640436, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 28)}, 'mal_croppe': {'main_port_id': 26193504, 'sub_port_id': 26193533, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640437, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 28)}, 'autre_refus': {'main_port_id': 26193504, 'sub_port_id': 26193534, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640438, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 28)}, 'metal': {'main_port_id': 26193504, 'sub_port_id': 26193535, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640439, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 28)}, 'Carton_gris': {'main_port_id': 26193504, 'sub_port_id': 26193536, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640440, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 28)}, 'kraft': {'main_port_id': 26193504, 'sub_port_id': 26193537, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640441, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 28)}, 'environnement': {'main_port_id': 26193504, 'sub_port_id': 26193538, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640442, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26193527 , 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=26193504 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 (26193527) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26193504) result : ((1379152408,), (1379152411,), (1379153153,), (1379153156,), (1379153159,), (1379153162,), (1379153582,), (1379153583,), (1379153584,), (1379153585,), (1379153855,), (1379153856,), (1379153857,), (1379153858,), (1379153859,), (1379153895,), (1379153896,), (1379153962,), (1379154351,), (1379154353,), (1379154355,), (1379154744,), (1379154963,), (1379154964,), (1379154965,), (1379155271,), (1379155272,), (1379155358,), (1379155359,), (1379155547,), (1379155552,), (1379155557,), (1379155826,), (1379156152,), (1379156154,), (1379156156,), (1379156158,)) 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 26193528 , 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=26193504 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 (26193528) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26193504) result : ((1379152408,), (1379152411,), (1379153153,), (1379153156,), (1379153159,), (1379153162,), (1379153582,), (1379153583,), (1379153584,), (1379153585,), (1379153855,), (1379153856,), (1379153857,), (1379153858,), (1379153859,), (1379153895,), (1379153896,), (1379153962,), (1379154351,), (1379154353,), (1379154355,), (1379154744,), (1379154963,), (1379154964,), (1379154965,), (1379155271,), (1379155272,), (1379155358,), (1379155359,), (1379155547,), (1379155552,), (1379155557,), (1379155826,), (1379156152,), (1379156154,), (1379156156,), (1379156158,)) 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 26193529 , 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=26193504 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 (26193529) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26193504) result : ((1379152408,), (1379152411,), (1379153153,), (1379153156,), (1379153159,), (1379153162,), (1379153582,), (1379153583,), (1379153584,), (1379153585,), (1379153855,), (1379153856,), (1379153857,), (1379153858,), (1379153859,), (1379153895,), (1379153896,), (1379153962,), (1379154351,), (1379154353,), (1379154355,), (1379154744,), (1379154963,), (1379154964,), (1379154965,), (1379155271,), (1379155272,), (1379155358,), (1379155359,), (1379155547,), (1379155552,), (1379155557,), (1379155826,), (1379156152,), (1379156154,), (1379156156,), (1379156158,)) 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 26193530 , 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=26193504 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 (26193530) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26193504) result : ((1379152408,), (1379152411,), (1379153153,), (1379153156,), (1379153159,), (1379153162,), (1379153582,), (1379153583,), (1379153584,), (1379153585,), (1379153855,), (1379153856,), (1379153857,), (1379153858,), (1379153859,), (1379153895,), (1379153896,), (1379153962,), (1379154351,), (1379154353,), (1379154355,), (1379154744,), (1379154963,), (1379154964,), (1379154965,), (1379155271,), (1379155272,), (1379155358,), (1379155359,), (1379155547,), (1379155552,), (1379155557,), (1379155826,), (1379156152,), (1379156154,), (1379156156,), (1379156158,)) 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 26193531 , 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=26193504 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 (26193531) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26193504) result : ((1379152408,), (1379152411,), (1379153153,), (1379153156,), (1379153159,), (1379153162,), (1379153582,), (1379153583,), (1379153584,), (1379153585,), (1379153855,), (1379153856,), (1379153857,), (1379153858,), (1379153859,), (1379153895,), (1379153896,), (1379153962,), (1379154351,), (1379154353,), (1379154355,), (1379154744,), (1379154963,), (1379154964,), (1379154965,), (1379155271,), (1379155272,), (1379155358,), (1379155359,), (1379155547,), (1379155552,), (1379155557,), (1379155826,), (1379156152,), (1379156154,), (1379156156,), (1379156158,)) 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 26193532 , 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=26193504 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 (26193532) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26193504) result : ((1379152408,), (1379152411,), (1379153153,), (1379153156,), (1379153159,), (1379153162,), (1379153582,), (1379153583,), (1379153584,), (1379153585,), (1379153855,), (1379153856,), (1379153857,), (1379153858,), (1379153859,), (1379153895,), (1379153896,), (1379153962,), (1379154351,), (1379154353,), (1379154355,), (1379154744,), (1379154963,), (1379154964,), (1379154965,), (1379155271,), (1379155272,), (1379155358,), (1379155359,), (1379155547,), (1379155552,), (1379155557,), (1379155826,), (1379156152,), (1379156154,), (1379156156,), (1379156158,)) 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 26193533 , 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=26193504 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 (26193533) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26193504) result : ((1379152408,), (1379152411,), (1379153153,), (1379153156,), (1379153159,), (1379153162,), (1379153582,), (1379153583,), (1379153584,), (1379153585,), (1379153855,), (1379153856,), (1379153857,), (1379153858,), (1379153859,), (1379153895,), (1379153896,), (1379153962,), (1379154351,), (1379154353,), (1379154355,), (1379154744,), (1379154963,), (1379154964,), (1379154965,), (1379155271,), (1379155272,), (1379155358,), (1379155359,), (1379155547,), (1379155552,), (1379155557,), (1379155826,), (1379156152,), (1379156154,), (1379156156,), (1379156158,)) 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 26193534 , 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=26193504 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 (26193534) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26193504) result : ((1379152408,), (1379152411,), (1379153153,), (1379153156,), (1379153159,), (1379153162,), (1379153582,), (1379153583,), (1379153584,), (1379153585,), (1379153855,), (1379153856,), (1379153857,), (1379153858,), (1379153859,), (1379153895,), (1379153896,), (1379153962,), (1379154351,), (1379154353,), (1379154355,), (1379154744,), (1379154963,), (1379154964,), (1379154965,), (1379155271,), (1379155272,), (1379155358,), (1379155359,), (1379155547,), (1379155552,), (1379155557,), (1379155826,), (1379156152,), (1379156154,), (1379156156,), (1379156158,)) 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 26193535 , 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=26193504 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 (26193535) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26193504) result : ((1379152408,), (1379152411,), (1379153153,), (1379153156,), (1379153159,), (1379153162,), (1379153582,), (1379153583,), (1379153584,), (1379153585,), (1379153855,), (1379153856,), (1379153857,), (1379153858,), (1379153859,), (1379153895,), (1379153896,), (1379153962,), (1379154351,), (1379154353,), (1379154355,), (1379154744,), (1379154963,), (1379154964,), (1379154965,), (1379155271,), (1379155272,), (1379155358,), (1379155359,), (1379155547,), (1379155552,), (1379155557,), (1379155826,), (1379156152,), (1379156154,), (1379156156,), (1379156158,)) 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 26193536 , 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=26193504 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 (26193536) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26193504) result : ((1379152408,), (1379152411,), (1379153153,), (1379153156,), (1379153159,), (1379153162,), (1379153582,), (1379153583,), (1379153584,), (1379153585,), (1379153855,), (1379153856,), (1379153857,), (1379153858,), (1379153859,), (1379153895,), (1379153896,), (1379153962,), (1379154351,), (1379154353,), (1379154355,), (1379154744,), (1379154963,), (1379154964,), (1379154965,), (1379155271,), (1379155272,), (1379155358,), (1379155359,), (1379155547,), (1379155552,), (1379155557,), (1379155826,), (1379156152,), (1379156154,), (1379156156,), (1379156158,)) 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 26193537 , 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=26193504 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 (26193537) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26193504) result : ((1379152408,), (1379152411,), (1379153153,), (1379153156,), (1379153159,), (1379153162,), (1379153582,), (1379153583,), (1379153584,), (1379153585,), (1379153855,), (1379153856,), (1379153857,), (1379153858,), (1379153859,), (1379153895,), (1379153896,), (1379153962,), (1379154351,), (1379154353,), (1379154355,), (1379154744,), (1379154963,), (1379154964,), (1379154965,), (1379155271,), (1379155272,), (1379155358,), (1379155359,), (1379155547,), (1379155552,), (1379155557,), (1379155826,), (1379156152,), (1379156154,), (1379156156,), (1379156158,)) 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 26193538 , 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=26193504 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 (26193538) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26193504) result : ((1379152408,), (1379152411,), (1379153153,), (1379153156,), (1379153159,), (1379153162,), (1379153582,), (1379153583,), (1379153584,), (1379153585,), (1379153855,), (1379153856,), (1379153857,), (1379153858,), (1379153859,), (1379153895,), (1379153896,), (1379153962,), (1379154351,), (1379154353,), (1379154355,), (1379154744,), (1379154963,), (1379154964,), (1379154965,), (1379155271,), (1379155272,), (1379155358,), (1379155359,), (1379155547,), (1379155552,), (1379155557,), (1379155826,), (1379156152,), (1379156154,), (1379156156,), (1379156158,)) 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`=26193504 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','plastique','cartonnette','flou','kraft','metal','papier','Carton_gris','Carton_brun','mal_croppe','environnement','autre_refus')) 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`=26193504 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','plastique','cartonnette','flou','kraft','metal','papier','Carton_gris','Carton_brun','mal_croppe','environnement','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 26193504, 'sub_port_id': 26193540, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640443, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 30)}, 'flou': {'main_port_id': 26193504, 'sub_port_id': 26193541, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640444, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 30)}, 'cartonnette': {'main_port_id': 26193504, 'sub_port_id': 26193542, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640445, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 26193504, 'sub_port_id': 26193543, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640446, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 30)}, 'papier': {'main_port_id': 26193504, 'sub_port_id': 26193544, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640447, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 30)}, 'plastique': {'main_port_id': 26193504, 'sub_port_id': 26193545, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640448, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 30)}, 'mal_croppe': {'main_port_id': 26193504, 'sub_port_id': 26193546, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640449, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 30)}, 'autre_refus': {'main_port_id': 26193504, 'sub_port_id': 26193547, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640450, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 30)}, 'metal': {'main_port_id': 26193504, 'sub_port_id': 26193548, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640451, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 30)}, 'Carton_gris': {'main_port_id': 26193504, 'sub_port_id': 26193549, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640452, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 30)}, 'kraft': {'main_port_id': 26193504, 'sub_port_id': 26193550, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640453, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 30)}, 'environnement': {'main_port_id': 26193504, 'sub_port_id': 26193551, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17640454, 'last_updated_at': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 8, 10, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 8, 3, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26193540,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26193527 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26193541,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26193528 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26193542,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26193529 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26193543,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26193530 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26193544,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26193531 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26193545,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26193532 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26193546,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26193533 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26193547,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26193534 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26193548,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26193535 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26193549,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26193536 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26193550,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26193537 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26193551,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26193538 lien utilise dans velours : https://www.fotonower.com/velours/26193540,26193541,26193542,26193543,26193544,26193545,26193546,26193547,26193548,26193549,26193550,26193551?tags=Carton_brun,flou,cartonnette,Teint_Dans_La_Masse,papier,plastique,mal_croppe,autre_refus,metal,Carton_gris,kraft,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26193504]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1379156158, 1379156156, 1379156154, 1379156152, 1379155826, 1379155557, 1379155552, 1379155547, 1379155359, 1379155358] map_info['map_portfolio_photo'] : {26193504: [1379156158, 1379156156, 1379156154, 1379156152, 1379155826, 1379155557, 1379155552, 1379155547, 1379155359, 1379155358, 1379155272, 1379155271, 1379154965, 1379154964, 1379154963, 1379154744, 1379154355, 1379154353, 1379154351, 1379153962, 1379153896, 1379153895, 1379153859, 1379153858, 1379153857, 1379153856, 1379153855, 1379153585, 1379153584, 1379153583, 1379153582, 1379153162, 1379153159, 1379153156, 1379153153, 1379152411, 1379152408]} final : False mtd_id 4302 list_pids : [1379156158, 1379156156, 1379156154, 1379156152, 1379155826, 1379155557, 1379155552, 1379155547, 1379155359, 1379155358] Looping around the photos to save general results len do output : 1 /26193504. 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, '3586040') ('4302', '26193504', '1379156158', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379156156', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379156154', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379156152', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155826', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155557', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155552', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155547', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155359', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155358', None, None, None, None, None, '3586040') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26193504', "{'Carton_brun': 26193527, 'flou': 26193528, 'cartonnette': 26193529, 'Teint_Dans_La_Masse': 26193530, 'papier': 26193531, 'plastique': 26193532, 'mal_croppe': 26193533, 'autre_refus': 26193534, 'metal': 26193535, 'Carton_gris': 26193536, 'kraft': 26193537, 'environnement': 26193538}", None, None, None, None, '3586040'), ('4302', '26193504', '1379156158', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379156156', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379156154', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379156152', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379155826', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379155557', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379155552', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379155547', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379155359', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379155358', None, None, None, None, None, '3586040')] time used for this insertion : 0.12747693061828613 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4836807250976562 time spend to save output : 0.1278221607208252 total time spend for step 1 : 1.6115028858184814 step2:final Mon Aug 25 08: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 (26193504) 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 26193504 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1379152411,1379152408,1379153162,1379153159,1379153156,1379153153,1379153585,1379153584,1379153583,1379153582,1379153859,1379153858,1379153857,1379153856,1379153855,1379153896,1379153895,1379153962,1379154355,1379154353,1379154351,1379154744,1379154965,1379154964,1379154963,1379155272,1379155271,1379155359,1379155358,1379155557,1379155552,1379155547,1379155826,1379156158,1379156156,1379156154,1379156152); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26193504]) Inside saveOutput : final : False verbose : True original output for save of step final : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ('0.0',), 1379155826: ('0.0',), 1379155557: ('0.0',), 1379155552: ('0.0',), 1379155547: ('0.0',), 1379155359: ('0.0',), 1379155358: ('0.0',)} new output for save of step final : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ('0.0',), 1379155826: ('0.0',), 1379155557: ('0.0',), 1379155552: ('0.0',), 1379155547: ('0.0',), 1379155359: ('0.0',), 1379155358: ('0.0',)} [1379156158, 1379156156, 1379156154, 1379156152, 1379155826, 1379155557, 1379155552, 1379155547, 1379155359, 1379155358] map_info['map_portfolio_photo'] : {26193504: [1379156158, 1379156156, 1379156154, 1379156152, 1379155826, 1379155557, 1379155552, 1379155547, 1379155359, 1379155358, 1379155272, 1379155271, 1379154965, 1379154964, 1379154963, 1379154744, 1379154355, 1379154353, 1379154351, 1379153962, 1379153896, 1379153895, 1379153859, 1379153858, 1379153857, 1379153856, 1379153855, 1379153585, 1379153584, 1379153583, 1379153582, 1379153162, 1379153159, 1379153156, 1379153153, 1379152411, 1379152408]} final : False mtd_id 4302 list_pids : [1379156158, 1379156156, 1379156154, 1379156152, 1379155826, 1379155557, 1379155552, 1379155547, 1379155359, 1379155358] Looping around the photos to save general results len do output : 10 /1379156158.Didn't retrieve data . /1379156156.Didn't retrieve data . /1379156154.Didn't retrieve data . /1379156152.Didn't retrieve data . /1379155826.Didn't retrieve data . /1379155557.Didn't retrieve data . /1379155552.Didn't retrieve data . /1379155547.Didn't retrieve data . /1379155359.Didn't retrieve data . /1379155358.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, '3586040') ('4302', '26193504', '1379156158', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379156156', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379156154', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379156152', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155826', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155557', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155552', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155547', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155359', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155358', None, None, None, None, None, '3586040') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '26193504', '1379156158', '0.0', None, None, None, None, '3586040'), ('4302', '26193504', '1379156156', '0.0', None, None, None, None, '3586040'), ('4302', '26193504', '1379156154', '0.0', None, None, None, None, '3586040'), ('4302', '26193504', '1379156152', '0.0', None, None, None, None, '3586040'), ('4302', '26193504', '1379155826', '0.0', None, None, None, None, '3586040'), ('4302', '26193504', '1379155557', '0.0', None, None, None, None, '3586040'), ('4302', '26193504', '1379155552', '0.0', None, None, None, None, '3586040'), ('4302', '26193504', '1379155547', '0.0', None, None, None, None, '3586040'), ('4302', '26193504', '1379155359', '0.0', None, None, None, None, '3586040'), ('4302', '26193504', '1379155358', '0.0', None, None, None, None, '3586040')] time used for this insertion : 0.017435312271118164 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.05411839485168457 time spend to save output : 0.018007278442382812 total time spend for step 2 : 0.07212567329406738 step3:velours_tree Mon Aug 25 08: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 : {26193504: [{'Carton_brun': 26193527, 'flou': 26193528, 'cartonnette': 26193529, 'Teint_Dans_La_Masse': 26193530, 'papier': 26193531, 'plastique': 26193532, 'mal_croppe': 26193533, 'autre_refus': 26193534, 'metal': 26193535, 'Carton_gris': 26193536, 'kraft': 26193537, 'environnement': 26193538}]} input_args_next_step : {26193504: ()} output_args : {26193504: [{'Carton_brun': 26193527, 'flou': 26193528, 'cartonnette': 26193529, 'Teint_Dans_La_Masse': 26193530, 'papier': 26193531, 'plastique': 26193532, 'mal_croppe': 26193533, 'autre_refus': 26193534, 'metal': 26193535, 'Carton_gris': 26193536, 'kraft': 26193537, 'environnement': 26193538}]} args : 26193504 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 26193527, 'flou': 26193528, 'cartonnette': 26193529, 'Teint_Dans_La_Masse': 26193530, 'papier': 26193531, 'plastique': 26193532, 'mal_croppe': 26193533, 'autre_refus': 26193534, 'metal': 26193535, 'Carton_gris': 26193536, 'kraft': 26193537, 'environnement': 26193538},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26193504) 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([26193504]) 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.40973663330078125 time spend to save output : 7.581710815429688e-05 total time spend for step 3 : 0.40981245040893555 step4:send_mail_cod Mon Aug 25 08:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ('0.0',), 1379155826: ('0.0',), 1379155557: ('0.0',), 1379155552: ('0.0',), 1379155547: ('0.0',), 1379155359: ('0.0',), 1379155358: ('0.0',)} input_args_next_step : {1379156158: ()} output_args : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ('0.0',), 1379155826: ('0.0',), 1379155557: ('0.0',), 1379155552: ('0.0',), 1379155547: ('0.0',), 1379155359: ('0.0',), 1379155358: ('0.0',)} args : 1379156158 depend.output_id : 0 input_args_next_step : {1379156158: ('0.0',), 1379156156: ()} output_args : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ('0.0',), 1379155826: ('0.0',), 1379155557: ('0.0',), 1379155552: ('0.0',), 1379155547: ('0.0',), 1379155359: ('0.0',), 1379155358: ('0.0',)} args : 1379156156 depend.output_id : 0 input_args_next_step : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ()} output_args : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ('0.0',), 1379155826: ('0.0',), 1379155557: ('0.0',), 1379155552: ('0.0',), 1379155547: ('0.0',), 1379155359: ('0.0',), 1379155358: ('0.0',)} args : 1379156154 depend.output_id : 0 input_args_next_step : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ()} output_args : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ('0.0',), 1379155826: ('0.0',), 1379155557: ('0.0',), 1379155552: ('0.0',), 1379155547: ('0.0',), 1379155359: ('0.0',), 1379155358: ('0.0',)} args : 1379156152 depend.output_id : 0 input_args_next_step : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ('0.0',), 1379155826: ()} output_args : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ('0.0',), 1379155826: ('0.0',), 1379155557: ('0.0',), 1379155552: ('0.0',), 1379155547: ('0.0',), 1379155359: ('0.0',), 1379155358: ('0.0',)} args : 1379155826 depend.output_id : 0 input_args_next_step : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ('0.0',), 1379155826: ('0.0',), 1379155557: ()} output_args : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ('0.0',), 1379155826: ('0.0',), 1379155557: ('0.0',), 1379155552: ('0.0',), 1379155547: ('0.0',), 1379155359: ('0.0',), 1379155358: ('0.0',)} args : 1379155557 depend.output_id : 0 input_args_next_step : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ('0.0',), 1379155826: ('0.0',), 1379155557: ('0.0',), 1379155552: ()} output_args : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ('0.0',), 1379155826: ('0.0',), 1379155557: ('0.0',), 1379155552: ('0.0',), 1379155547: ('0.0',), 1379155359: ('0.0',), 1379155358: ('0.0',)} args : 1379155552 depend.output_id : 0 input_args_next_step : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ('0.0',), 1379155826: ('0.0',), 1379155557: ('0.0',), 1379155552: ('0.0',), 1379155547: ()} output_args : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ('0.0',), 1379155826: ('0.0',), 1379155557: ('0.0',), 1379155552: ('0.0',), 1379155547: ('0.0',), 1379155359: ('0.0',), 1379155358: ('0.0',)} args : 1379155547 depend.output_id : 0 input_args_next_step : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ('0.0',), 1379155826: ('0.0',), 1379155557: ('0.0',), 1379155552: ('0.0',), 1379155547: ('0.0',), 1379155359: ()} output_args : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ('0.0',), 1379155826: ('0.0',), 1379155557: ('0.0',), 1379155552: ('0.0',), 1379155547: ('0.0',), 1379155359: ('0.0',), 1379155358: ('0.0',)} args : 1379155359 depend.output_id : 0 input_args_next_step : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ('0.0',), 1379155826: ('0.0',), 1379155557: ('0.0',), 1379155552: ('0.0',), 1379155547: ('0.0',), 1379155359: ('0.0',), 1379155358: ()} output_args : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ('0.0',), 1379155826: ('0.0',), 1379155557: ('0.0',), 1379155552: ('0.0',), 1379155547: ('0.0',), 1379155359: ('0.0',), 1379155358: ('0.0',)} args : 1379155358 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 : {26193504: [{'Carton_brun': 26193527, 'flou': 26193528, 'cartonnette': 26193529, 'Teint_Dans_La_Masse': 26193530, 'papier': 26193531, 'plastique': 26193532, 'mal_croppe': 26193533, 'autre_refus': 26193534, 'metal': 26193535, 'Carton_gris': 26193536, 'kraft': 26193537, 'environnement': 26193538}]} input_args_next_step : {1379156158: ('0.0',), 1379156156: ('0.0',), 1379156154: ('0.0',), 1379156152: ('0.0',), 1379155826: ('0.0',), 1379155557: ('0.0',), 1379155552: ('0.0',), 1379155547: ('0.0',), 1379155359: ('0.0',), 1379155358: ('0.0',), 26193504: ()} output_args : {26193504: [{'Carton_brun': 26193527, 'flou': 26193528, 'cartonnette': 26193529, 'Teint_Dans_La_Masse': 26193530, 'papier': 26193531, 'plastique': 26193532, 'mal_croppe': 26193533, 'autre_refus': 26193534, 'metal': 26193535, 'Carton_gris': 26193536, 'kraft': 26193537, 'environnement': 26193538}]} args : 26193504 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 :11, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26193504) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1379156158,1379156156,1379156154,1379156152,1379155826,1379155557,1379155552,1379155547,1379155359,1379155358) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1379155358 begin to download photo : 1379155552 begin to download photo : 1379156152 begin to download photo : 1379156158 download finish for photo 1379155552 begin to download photo : 1379155557 download finish for photo 1379155358 begin to download photo : 1379155359 download finish for photo 1379156158 download finish for photo 1379156152 begin to download photo : 1379156154 download finish for photo 1379155359 begin to download photo : 1379155547 download finish for photo 1379155557 begin to download photo : 1379155826 download finish for photo 1379156154 begin to download photo : 1379156156 download finish for photo 1379155826 download finish for photo 1379155547 download finish for photo 1379156156 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette261935281756102500/ imagette261935291756102500/ imagette261935321756102500/ imagette261935331756102500/ imagette261935341756102500/ imagette261935351756102500/ imagette261935371756102500/ imagette261935271756102500/ imagette261935301756102500/ imagette261935361756102500/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P26193504_25-08-2025_08_15_00.pdf 26193528 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26193528 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261935281756102500 26193529 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26193529 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261935291756102500 26193532 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26193532 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261935321756102500 26193533 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26193533 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261935331756102500 26193534 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26193534 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261935341756102500 26193535 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26193535 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261935351756102500 26193537 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26193537 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261935371756102500 26193527 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26193527 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261935271756102500 26193530 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26193530 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261935301756102500 26193536 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26193536 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261935361756102500 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26193504 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/26193540,26193541,26193542,26193543,26193544,26193545,26193546,26193547,26193548,26193549,26193550,26193551?tags=Carton_brun,flou,cartonnette,Teint_Dans_La_Masse,papier,plastique,mal_croppe,autre_refus,metal,Carton_gris,kraft,environnement your option no_mail is active, we will not send the real mail to your client args[1379156158] : ('0.0',) no score found for photo 1379156158 We are sending mail with results at report@fotonower.com args[1379156156] : ('0.0',) no score found for photo 1379156156 We are sending mail with results at report@fotonower.com args[1379156154] : ('0.0',) no score found for photo 1379156154 We are sending mail with results at report@fotonower.com args[1379156152] : ('0.0',) no score found for photo 1379156152 We are sending mail with results at report@fotonower.com args[1379155826] : ('0.0',) no score found for photo 1379155826 We are sending mail with results at report@fotonower.com args[1379155557] : ('0.0',) no score found for photo 1379155557 We are sending mail with results at report@fotonower.com args[1379155552] : ('0.0',) no score found for photo 1379155552 We are sending mail with results at report@fotonower.com args[1379155547] : ('0.0',) no score found for photo 1379155547 We are sending mail with results at report@fotonower.com args[1379155359] : ('0.0',) no score found for photo 1379155359 We are sending mail with results at report@fotonower.com args[1379155358] : ('0.0',) no score found for photo 1379155358 We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26193504 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_P26193504_25-08-2025_08_15_00.pdf results_Auto_P26193504_25-08-2025_08_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26193504_25-08-2025_08_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','26193504','results_Auto_P26193504_25-08-2025_08_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26193504_25-08-2025_08_15_00.pdf','pdf','','0.1','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26193504]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1379156158, 1379156156, 1379156154, 1379156152, 1379155826, 1379155557, 1379155552, 1379155547, 1379155359, 1379155358] map_info['map_portfolio_photo'] : {26193504: [1379156158, 1379156156, 1379156154, 1379156152, 1379155826, 1379155557, 1379155552, 1379155547, 1379155359, 1379155358, 1379155272, 1379155271, 1379154965, 1379154964, 1379154963, 1379154744, 1379154355, 1379154353, 1379154351, 1379153962, 1379153896, 1379153895, 1379153859, 1379153858, 1379153857, 1379153856, 1379153855, 1379153585, 1379153584, 1379153583, 1379153582, 1379153162, 1379153159, 1379153156, 1379153153, 1379152411, 1379152408]} final : False mtd_id 4302 list_pids : [1379156158, 1379156156, 1379156154, 1379156152, 1379155826, 1379155557, 1379155552, 1379155547, 1379155359, 1379155358] 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, '3586040') ('4302', '26193504', '1379156158', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379156156', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379156154', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379156152', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155826', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155557', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155552', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155547', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155359', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155358', None, None, None, None, None, '3586040') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '26193504', '1379156158', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379156156', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379156154', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379156152', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379155826', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379155557', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379155552', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379155547', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379155359', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379155358', None, None, None, None, None, '3586040')] time used for this insertion : 0.08673620223999023 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4916958808898926 time spend to save output : 0.0869743824005127 total time spend for step 4 : 1.5786702632904053 step5:split_time_score Mon Aug 25 08:15:01 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 : ['26193504'] 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 : [('26193504',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26193504) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1379156158: {'path': 'temp/1756102500_915755_1379156158_cbb54942476ae8e29b3435534191c042_71464513.jpg', 'extension': 'jpg'}, 1379155552: {'path': 'temp/1756102500_915755_1379155552_6851e5a64d9c763060a0cd2248f69fb8_41528851.jpg', 'extension': 'jpg'}, 1379155557: {'path': 'temp/1756102500_915755_1379155557_354bec3f8c81c497afcd223f8baf04e8_64605419.jpg', 'extension': 'jpg'}, 1379155826: {'path': 'temp/1756102500_915755_1379155826_1829da2cbcb9cc492dedfc1d7aa8c3c2_65866465.jpg', 'extension': 'jpg'}, 1379155358: {'path': 'temp/1756102500_915755_1379155358_d02c4e88a39d692412be42b2e4f8e29e_11433439.jpg', 'extension': 'jpg'}, 1379155359: {'path': 'temp/1756102500_915755_1379155359_8b271934822c108b6d64ac955c78f51e_41081753.jpg', 'extension': 'jpg'}, 1379155547: {'path': 'temp/1756102500_915755_1379155547_fa9a8a71230cd960c04b4d91370917cb_30846314.jpg', 'extension': 'jpg'}, 1379156152: {'path': 'temp/1756102500_915755_1379156152_c164279cce9ce3a03e880cd24226acb2_97761775.jpg', 'extension': 'jpg'}, 1379156154: {'path': 'temp/1756102500_915755_1379156154_620bc21d0d8c472940d3ef6a5844e125_20025409.jpg', 'extension': 'jpg'}, 1379156156: {'path': 'temp/1756102500_915755_1379156156_6559143747f8080dbadf263e7e5a4def_49230143.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 = 26193504; (('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 ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26193504 group by h (('08', 37),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26193504 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 (26193504) 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 (26193504) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25082025 26193504 Nombre de photos uploadées : 37 / 23040 (0%) 25082025 26193504 Nombre de photos taguées (types de déchets): 0 / 37 (0%) 25082025 26193504 Nombre de photos taguées (volume) : 0 / 37 (0%) [{'photo_id': 1379152411, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/25/6ffa734e89463803db377d942000800b_65284801.jpg', 'username': None, 'uploaded_at': 1756101672, 'text': 'image_25082025_08_00_14_10203.jpg'}, {'photo_id': 1379152408, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/25/42021c8395fe9e07683ae30dbb7ff359_63104873.jpg', 'username': None, 'uploaded_at': 1756101672, 'text': 'image_25082025_08_00_24_10136.jpg'}, {'photo_id': 1379153162, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/25/45f3ab7769b2b953d0623b50ae18f0f1_45202652.jpg', 'username': None, 'uploaded_at': 1756101733, 'text': 'image_25082025_08_00_34_10146.jpg'}, {'photo_id': 1379153159, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/25/44c7603157c945c24afabbdbcdb952ac_40128711.jpg', 'username': None, 'uploaded_at': 1756101733, 'text': 'image_25082025_08_01_13_9126.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017004013061523438 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26193504, '2025-08-25' ) 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 (2167673,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.23140645027160645 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= 2167673 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2167673, 'dashboard_run_id': 2175701, 'mtr_portfolio_id': 26190693, 'dashboard_result_id': 14246938, '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_P26190693_25-08-2025_05_23_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26190694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26190695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26190696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26190697, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26190698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26190699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26190700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26190701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26190702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26190703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26190704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26190705, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2175701, 'mtr_portfolio_id': 26190838, 'dashboard_result_id': 14246939, '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_P26190838_25-08-2025_05_34_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26190840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26190841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26190842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26190843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26190844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26190845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26190846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26190847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26190848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26190849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26190850, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26190851, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2175701, 'mtr_portfolio_id': 26191029, 'dashboard_result_id': 14246940, '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_P26191029_25-08-2025_06_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191048, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2175701, 'mtr_portfolio_id': 26191180, 'dashboard_result_id': 14246941, '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_P26191180_25-08-2025_06_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191183, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191186, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191192, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2175701, 'mtr_portfolio_id': 26191444, 'dashboard_result_id': 14246942, '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_P26191444_25-08-2025_06_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191455, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191461, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2175701, 'mtr_portfolio_id': 26191624, 'dashboard_result_id': 14246943, '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_P26191624_25-08-2025_06_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26191637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191646, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191648, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2175701, 'mtr_portfolio_id': 26191825, 'dashboard_result_id': 14246944, '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_P26191825_25-08-2025_07_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191831, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191838, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2175701, 'mtr_portfolio_id': 26192047, 'dashboard_result_id': 14246945, '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_P26192047_25-08-2025_07_10_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26192060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26192061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26192062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26192063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26192064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26192065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26192066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26192067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26192068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26192069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26192070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26192071, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2175701, 'mtr_portfolio_id': 26192571, 'dashboard_result_id': 14246946, '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_P26192571_25-08-2025_07_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26192583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26192584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26192585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26192586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26192587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26192588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26192589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26192590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26192591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26192592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26192593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26192594, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2175701, 'mtr_portfolio_id': 26192848, 'dashboard_result_id': 14246947, '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_P26192848_25-08-2025_07_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26192873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26192874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26192875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26192876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26192877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26192878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26192879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26192880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26192881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26192882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26192883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26192884, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2175701, 'mtr_portfolio_id': 26193178, 'dashboard_result_id': 14246948, '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_P26193178_25-08-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26193184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26193185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26193186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26193187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26193188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26193189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26193190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26193191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26193192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26193193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26193194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26193195, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2175701, 'mtr_portfolio_id': 26193504, 'dashboard_result_id': 14246949, '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_P26193504_25-08-2025_08_10_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26193527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26193528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26193529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26193530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26193531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26193532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26193533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26193534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26193535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26193536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26193537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26193538, '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 = 26190693 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': 3584565, 'mtr_portfolio_id': 26190693, 'created_at': datetime.datetime(2025, 8, 25, 5, 23, 30), 'result': '0.05132301580300638', 'result_long': None, 'result_double': None}] Qualite : 0.05132301580300638 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26190693 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26190693_25-08-2025_05_23_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26190693 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_P26190693_25-08-2025_05_23_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26190694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26190695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26190696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26190697, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26190698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26190699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26190700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26190701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26190702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26190703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26190704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26190705, 'pht': 3726}}" where mtr_portfolio_id = 26190693 and dashboard_run_id = 2175701 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`=26190693 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14246938, 0.05132301580300638, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26190693_25-08-2025_05_23_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26190694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26190695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26190696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26190697, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26190698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26190699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26190700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26190701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26190702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26190703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26190704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26190705, '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 = 26190838 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': 3584602, 'mtr_portfolio_id': 26190838, 'created_at': datetime.datetime(2025, 8, 25, 5, 34, 57), 'result': '0.003340568246483041', 'result_long': None, 'result_double': None}] Qualite : 0.003340568246483041 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26190838 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26190838_25-08-2025_05_34_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26190838 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_P26190838_25-08-2025_05_34_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26190840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26190841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26190842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26190843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26190844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26190845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26190846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26190847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26190848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26190849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26190850, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26190851, 'pht': 3726}}" where mtr_portfolio_id = 26190838 and dashboard_run_id = 2175701 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`=26190838 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14246939, 0.003340568246483041, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26190838_25-08-2025_05_34_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26190840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26190841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26190842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26190843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26190844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26190845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26190846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26190847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26190848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26190849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26190850, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26190851, '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 = 26191029 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 = 26191029 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 = 26191029 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191029 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 = 26191029 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 = 26191029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26191029_25-08-2025_06_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26191029 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_P26191029_25-08-2025_06_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191048, 'pht': 3726}}" where mtr_portfolio_id = 26191029 and dashboard_run_id = 2175701 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 = 26191180 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 = 26191180 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 = 26191180 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191180 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 = 26191180 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 = 26191180 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26191180_25-08-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26191180 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_P26191180_25-08-2025_06_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191183, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191186, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191192, 'pht': 3726}}" where mtr_portfolio_id = 26191180 and dashboard_run_id = 2175701 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 = 26191444 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 = 26191444 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 = 26191444 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191444 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 = 26191444 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 = 26191444 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26191444_25-08-2025_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26191444 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_P26191444_25-08-2025_06_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191455, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191461, 'pht': 3726}}" where mtr_portfolio_id = 26191444 and dashboard_run_id = 2175701 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 = 26191624 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 = 26191624 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 = 26191624 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191624 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 = 26191624 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 = 26191624 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26191624_25-08-2025_06_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26191624 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_P26191624_25-08-2025_06_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26191637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191646, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191648, 'pht': 3726}}" where mtr_portfolio_id = 26191624 and dashboard_run_id = 2175701 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 = 26191825 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 = 26191825 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 = 26191825 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191825 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 = 26191825 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 = 26191825 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26191825_25-08-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26191825 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_P26191825_25-08-2025_07_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191831, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191838, 'pht': 3726}}" where mtr_portfolio_id = 26191825 and dashboard_run_id = 2175701 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 = 26192047 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 = 26192047 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 = 26192047 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26192047 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 = 26192047 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 = 26192047 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26192047_25-08-2025_07_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26192047 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_P26192047_25-08-2025_07_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26192060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26192061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26192062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26192063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26192064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26192065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26192066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26192067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26192068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26192069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26192070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26192071, 'pht': 3726}}" where mtr_portfolio_id = 26192047 and dashboard_run_id = 2175701 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 = 26192571 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 = 26192571 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 = 26192571 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26192571 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 = 26192571 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 = 26192571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26192571_25-08-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26192571 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_P26192571_25-08-2025_07_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26192583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26192584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26192585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26192586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26192587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26192588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26192589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26192590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26192591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26192592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26192593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26192594, 'pht': 3726}}" where mtr_portfolio_id = 26192571 and dashboard_run_id = 2175703 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 = 26192848 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 = 26192848 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 = 26192848 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26192848 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 = 26192848 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 = 26192848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26192848_25-08-2025_07_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26192848 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_P26192848_25-08-2025_07_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26192873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26192874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26192875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26192876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26192877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26192878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26192879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26192880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26192881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26192882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26192883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26192884, 'pht': 3726}}" where mtr_portfolio_id = 26192848 and dashboard_run_id = 2175703 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 = 26193178 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 = 26193178 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 = 26193178 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26193178 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 = 26193178 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 = 26193178 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26193178_25-08-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26193178 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_P26193178_25-08-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26193184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26193185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26193186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26193187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26193188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26193189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26193190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26193191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26193192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26193193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26193194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26193195, 'pht': 3726}}" where mtr_portfolio_id = 26193178 and dashboard_run_id = 2175703 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 = 26193504 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 = 26193504 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 = 26193504 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26193504 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 = 26193504 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 = 26193504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26193504_25-08-2025_08_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26193504 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_P26193504_25-08-2025_08_15_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26193527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26193528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26193529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26193530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26193531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26193532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26193533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26193534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26193535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26193536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26193537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26193538, 'pht': 3726}}" where mtr_portfolio_id = 26193504 and dashboard_run_id = 2175703 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26190693,26190838,26191029,26191180,26191444,26191624,26191825,26192047,26192571,26192848,26193178,26193504) result : ((1379139978,), (1379140082,), (1379140083,), (1379140095,), (1379140096,), (1379140097,), (1379140101,), (1379140110,), (1379140121,), (1379140129,), (1379140135,), (1379140176,), (1379140233,), (1379140184,), (1379140231,), (1379140232,), (1379140250,), (1379140251,), (1379140305,), (1379140307,), (1379140328,), (1379140329,), (1379140330,), (1379140331,), (1379140332,), (1379140363,), (1379140364,), (1379140365,), (1379140366,), (1379140372,), (1379140373,), (1379140374,), (1379140386,), (1379140387,), (1379140388,), (1379140398,), (1379140399,), (1379140400,), (1379140401,), (1379140402,), (1379140438,), (1379140562,), (1379140563,), (1379140566,), (1379140576,), (1379140577,), (1379140578,), (1379140579,), (1379140587,), (1379140588,), (1379140589,), (1379140590,), (1379140604,), (1379140605,), (1379140606,), (1379140608,), (1379140609,), (1379140610,), (1379140620,), (1379140621,), (1379140622,), (1379140623,), (1379140631,), (1379140632,), (1379140633,), (1379140634,), (1379140643,), (1379140644,), (1379140645,), (1379140646,), (1379140654,), (1379140655,), (1379140656,), (1379140657,), (1379140658,), (1379140670,), (1379140671,), (1379140672,), (1379140673,), (1379140674,), (1379140675,), (1379140685,), (1379140686,), (1379140687,), (1379140688,), (1379140689,), (1379140692,), (1379140693,), (1379140694,), (1379140698,), (1379141304,), (1379141307,), (1379141310,), (1379141397,), (1379141391,), (1379141393,), (1379141395,), (1379141784,), (1379141786,), (1379141788,), (1379142124,), (1379142126,), (1379142369,), (1379142370,), (1379142371,), (1379142372,), (1379142373,), (1379143158,), (1379143159,), (1379143160,), (1379143161,), (1379143162,), (1379143376,), (1379143377,), (1379143378,), (1379143379,), (1379143394,), (1379143395,), (1379143396,), (1379143413,), (1379143414,), (1379143415,), (1379143416,), (1379143417,), (1379143431,), (1379143432,), (1379143433,), (1379143434,), (1379143435,), (1379143443,), (1379143444,), (1379143538,), (1379143561,), (1379143562,), (1379143575,), (1379143576,), (1379143577,), (1379143585,), (1379143586,), (1379143620,), (1379143632,), (1379143633,), (1379143638,), (1379143639,), (1379143640,), (1379143641,), (1379143652,), (1379143653,), (1379143654,), (1379143669,), (1379143670,), (1379143671,), (1379143672,), (1379143686,), (1379143687,), (1379143688,), (1379143689,), (1379143702,), (1379143703,), (1379143704,), (1379143718,), (1379143719,), (1379143720,), (1379143726,), (1379143727,), (1379143728,), (1379143743,), (1379143744,), (1379143762,), (1379143760,), (1379143761,), (1379143786,), (1379143787,), (1379143788,), (1379143809,), (1379143810,), (1379143811,), (1379143813,), (1379143835,), (1379143836,), (1379143837,), (1379143856,), (1379143857,), (1379143858,), (1379143859,), (1379143879,), (1379143880,), (1379143881,), (1379143896,), (1379143897,), (1379143913,), (1379143914,), (1379143915,), (1379143932,), (1379143933,), (1379143934,), (1379143935,), (1379143936,), (1379143958,), (1379143959,), (1379143960,), (1379144007,), (1379144008,), (1379144009,), (1379144010,), (1379144030,), (1379144031,), (1379144032,), (1379144049,), (1379144051,), (1379144052,), (1379144068,), (1379144069,), (1379144070,), (1379144086,), (1379144087,), (1379144088,), (1379144109,), (1379144104,), (1379144105,), (1379144106,), (1379144107,), (1379144108,), (1379144133,), (1379144134,), (1379144135,), (1379144156,), (1379144157,), (1379144158,), (1379144159,), (1379144178,), (1379144179,), (1379144180,), (1379144181,), (1379144182,), (1379144183,), (1379144197,), (1379144198,), (1379144199,), (1379144220,), (1379144221,), (1379144222,), (1379144223,), (1379144224,), (1379144255,), (1379144256,), (1379144257,), (1379144258,), (1379144281,), (1379144282,), (1379144283,), (1379144284,), (1379144285,), (1379144305,), (1379144306,), (1379144307,), (1379144308,), (1379144309,), (1379144329,), (1379144330,), (1379144331,), (1379144332,), (1379144351,), (1379144352,), (1379144353,), (1379144378,), (1379144379,), (1379144380,), (1379144381,), (1379144382,), (1379144413,), (1379144438,), (1379144440,), (1379144443,), (1379145063,), (1379145065,), (1379145066,), (1379145067,), (1379145077,), (1379145079,), (1379145080,), (1379145081,), (1379145260,), (1379145257,), (1379145258,), (1379145259,), (1379145558,), (1379145561,), (1379145563,), (1379145565,), (1379145909,), (1379145911,), (1379145913,), (1379146003,), (1379146004,), (1379146005,), (1379146270,), (1379146271,), (1379146272,), (1379146273,), (1379147042,), (1379147046,), (1379147050,), (1379147054,), (1379147058,), (1379147339,), (1379147340,), (1379147341,), (1379147342,), (1379147368,), (1379147369,), (1379147370,), (1379147371,), (1379147372,), (1379147415,), (1379147416,), (1379147437,), (1379147438,), (1379147439,), (1379147440,), (1379147488,), (1379147489,), (1379147490,), (1379147491,), (1379147492,), (1379147612,), (1379147613,), (1379147614,), (1379147684,), (1379147685,), (1379147686,), (1379147687,), (1379147735,), (1379147736,), (1379147737,), (1379147786,), (1379147787,), (1379148051,), (1379147834,), (1379148050,), (1379148310,), (1379148311,), (1379148312,), (1379148313,), (1379148347,), (1379148348,), (1379148349,), (1379148350,), (1379148351,), (1379148352,), (1379148387,), (1379148388,), (1379148389,), (1379148433,), (1379148434,), (1379148435,), (1379148436,), (1379148468,), (1379148469,), (1379148470,), (1379148471,), (1379148507,), (1379148508,), (1379148509,), (1379148510,), (1379148701,), (1379148704,), (1379149045,), (1379149183,), (1379149218,), (1379149219,), (1379149256,), (1379149257,), (1379149311,), (1379149313,), (1379149315,), (1379149317,), (1379149463,), (1379149461,), (1379149462,), (1379149497,), (1379149498,), (1379149534,), (1379149535,), (1379149572,), (1379149573,), (1379149610,), (1379149611,), (1379149612,), (1379149785,), (1379149787,), (1379149916,), (1379149918,), (1379150055,), (1379150286,), (1379150287,), (1379150369,), (1379150370,), (1379150491,), (1379150493,), (1379150496,), (1379150498,), (1379150611,), (1379150612,), (1379150613,), (1379150641,), (1379150642,), (1379150711,), (1379150712,), (1379150771,), (1379150769,), (1379150770,), (1379150882,), (1379150908,), (1379150909,), (1379150910,), (1379150911,), (1379150945,), (1379150946,), (1379150980,), (1379150981,), (1379150982,), (1379151024,), (1379151025,), (1379151026,), (1379151027,), (1379151028,), (1379151117,), (1379151118,), (1379151119,), (1379151120,), (1379151154,), (1379151155,), (1379151156,), (1379151157,), (1379151189,), (1379151190,), (1379151191,), (1379151192,), (1379151233,), (1379151234,), (1379151235,), (1379151236,), (1379151237,), (1379151238,), (1379151293,), (1379151294,), (1379151295,), (1379151296,), (1379151297,), (1379151329,), (1379151330,), (1379151359,), (1379151360,), (1379151361,), (1379151362,), (1379152188,), (1379152190,), (1379152193,), (1379152195,), (1379152414,), (1379152408,), (1379152411,), (1379153153,), (1379153156,), (1379153159,), (1379153162,), (1379153582,), (1379153583,), (1379153584,), (1379153585,), (1379153855,), (1379153856,), (1379153857,), (1379153858,), (1379153859,), (1379153895,), (1379153896,), (1379153962,), (1379154351,), (1379154353,), (1379154355,), (1379154744,), (1379154963,), (1379154964,), (1379154965,), (1379155271,), (1379155272,), (1379155358,), (1379155359,), (1379155547,), (1379155552,), (1379155557,), (1379155826,), (1379156152,), (1379156154,), (1379156156,), (1379156158,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25082025': {'nb_upload': 37, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26193504]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1379156158, 1379156156, 1379156154, 1379156152, 1379155826, 1379155557, 1379155552, 1379155547, 1379155359, 1379155358] map_info['map_portfolio_photo'] : {26193504: [1379156158, 1379156156, 1379156154, 1379156152, 1379155826, 1379155557, 1379155552, 1379155547, 1379155359, 1379155358, 1379155272, 1379155271, 1379154965, 1379154964, 1379154963, 1379154744, 1379154355, 1379154353, 1379154351, 1379153962, 1379153896, 1379153895, 1379153859, 1379153858, 1379153857, 1379153856, 1379153855, 1379153585, 1379153584, 1379153583, 1379153582, 1379153162, 1379153159, 1379153156, 1379153153, 1379152411, 1379152408]} final : True mtd_id 4302 list_pids : [1379156158, 1379156156, 1379156154, 1379156152, 1379155826, 1379155557, 1379155552, 1379155547, 1379155359, 1379155358] Looping around the photos to save general results len do output : 1 /26193504Didn'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, '3586040') ('4302', '26193504', '1379156158', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379156156', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379156154', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379156152', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155826', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155557', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155552', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155547', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155359', None, None, None, None, None, '3586040') ('4302', None, None, None, None, None, None, None, '3586040') ('4302', '26193504', '1379155358', None, None, None, None, None, '3586040') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26193504', 'None', None, None, None, None, '3586040'), ('4302', '26193504', '1379156158', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379156156', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379156154', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379156152', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379155826', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379155557', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379155552', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379155547', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379155359', None, None, None, None, None, '3586040'), ('4302', '26193504', '1379155358', None, None, None, None, None, '3586040')] time used for this insertion : 0.018643617630004883 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.0111539363861084 time spend to save output : 0.01886606216430664 total time spend for step 5 : 1.030019998550415 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 (3586040) 2.12user 2.77system 0:08.27elapsed 59%CPU (0avgtext+0avgdata 160832maxresident)k 21096inputs+6144outputs (99major+64225minor)pagefaults 0swaps