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 : 2543099 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 (3232160) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3232160) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24553425 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3232160'] with mtr_portfolio_ids : ['24553425'] and first list_photo_ids : [] new path : /proc/2543099/ Name: python3 Umask: 0002 State: R (running) Tgid: 2543099 Ngid: 0 Pid: 2543099 PPid: 2543098 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2543099 NSpid: 2543099 NSpgid: 2541307 NSsid: 2541307 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98740 kB VmRSS: 98740 kB RssAnon: 59800 kB RssFile: 38940 kB RssShmem: 0 kB VmData: 865620 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: 9/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: 46 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2543099', 'Ngid': '0', 'Pid': '2543099', 'PPid': '2543098', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2543099', 'NSpid': '2543099', 'NSpgid': '2541307', 'NSsid': '2541307', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98740 kB', 'VmRSS': '98740 kB', 'RssAnon': '59800 kB', 'RssFile': '38940 kB', 'RssShmem': '0 kB', 'VmData': '865620 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': '9/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': '46', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '2543099', '1106868', '0', '1106868', '865620', '98740', b'', 'marlene', '3232160') 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 (24553425) 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 (3232160 ) ) 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 (24553425) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1370293434, 'portfolio_id': 24553425}, {'photo_id': 1370293401, 'portfolio_id': 24553425}, {'photo_id': 1370293367, 'portfolio_id': 24553425}, {'photo_id': 1370293320, 'portfolio_id': 24553425}, {'photo_id': 1370293256, 'portfolio_id': 24553425}, {'photo_id': 1370293207, 'portfolio_id': 24553425}, {'photo_id': 1370293064, 'portfolio_id': 24553425}, {'photo_id': 1370293050, 'portfolio_id': 24553425}, {'photo_id': 1370293034, 'portfolio_id': 24553425}, {'photo_id': 1370293011, 'portfolio_id': 24553425}, {'photo_id': 1370292943, 'portfolio_id': 24553425}, {'photo_id': 1370292941, 'portfolio_id': 24553425}, {'photo_id': 1370292893, 'portfolio_id': 24553425}, {'photo_id': 1370292842, 'portfolio_id': 24553425}, {'photo_id': 1370292780, 'portfolio_id': 24553425}, {'photo_id': 1370292745, 'portfolio_id': 24553425}, {'photo_id': 1370292711, 'portfolio_id': 24553425}, {'photo_id': 1370292689, 'portfolio_id': 24553425}, {'photo_id': 1370292638, 'portfolio_id': 24553425}, {'photo_id': 1370292613, 'portfolio_id': 24553425}, {'photo_id': 1370292583, 'portfolio_id': 24553425}, {'photo_id': 1370292582, 'portfolio_id': 24553425}, {'photo_id': 1370292579, 'portfolio_id': 24553425}, {'photo_id': 1370292575, 'portfolio_id': 24553425}] map_portfolio_id_photo_id: {24553425: [1370293434, 1370293401, 1370293367, 1370293320, 1370293256, 1370293207, 1370293064, 1370293050, 1370293034, 1370293011, 1370292943, 1370292941, 1370292893, 1370292842, 1370292780, 1370292745, 1370292711, 1370292689, 1370292638, 1370292613, 1370292583, 1370292582, 1370292579, 1370292575]} ##### 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.018813371658325195 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Jul 3 05:21:10 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 (24553425) 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 : 24553425 get user id for portfolio 24553425 get sub ptf for main ptf 24553425, type 3726 and hashtags ['mal_croppe', 'environnement', 'papier', 'plastique', 'flou', 'autre_refus', 'cartonnette', 'kraft', 'Carton_brun', 'Teint_Dans_La_Masse', 'metal', 'Carton_gris'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24553425 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','papier','plastique','flou','autre_refus','cartonnette','kraft','Carton_brun','Teint_Dans_La_Masse','metal','Carton_gris')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24553425 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','papier','plastique','flou','autre_refus','cartonnette','kraft','Carton_brun','Teint_Dans_La_Masse','metal','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 24553425, 'sub_port_id': 24553441, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486492, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 24553425, 'sub_port_id': 24553442, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486493, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 57)}, 'Carton_brun': {'main_port_id': 24553425, 'sub_port_id': 24553443, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486494, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 57)}, 'mal_croppe': {'main_port_id': 24553425, 'sub_port_id': 24553444, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486495, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 57)}, 'environnement': {'main_port_id': 24553425, 'sub_port_id': 24553445, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486496, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 57)}, 'metal': {'main_port_id': 24553425, 'sub_port_id': 24553446, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486497, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 57)}, 'flou': {'main_port_id': 24553425, 'sub_port_id': 24553447, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486498, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 57)}, 'kraft': {'main_port_id': 24553425, 'sub_port_id': 24553448, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486499, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 57)}, 'papier': {'main_port_id': 24553425, 'sub_port_id': 24553449, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486500, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 57)}, 'plastique': {'main_port_id': 24553425, 'sub_port_id': 24553450, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486501, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 57)}, 'autre_refus': {'main_port_id': 24553425, 'sub_port_id': 24553451, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486502, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 57)}, 'Carton_gris': {'main_port_id': 24553425, 'sub_port_id': 24553452, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486503, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24553441 , 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=24553425 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 (24553441) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24553425) result : ((1370292575,), (1370292579,), (1370292582,), (1370292583,), (1370292613,), (1370292638,), (1370292689,), (1370292711,), (1370292745,), (1370292780,), (1370292842,), (1370292893,), (1370292941,), (1370292943,), (1370293011,), (1370293034,), (1370293050,), (1370293064,), (1370293207,), (1370293256,), (1370293320,), (1370293367,), (1370293401,), (1370293434,)) 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 24553442 , 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=24553425 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 (24553442) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24553425) result : ((1370292575,), (1370292579,), (1370292582,), (1370292583,), (1370292613,), (1370292638,), (1370292689,), (1370292711,), (1370292745,), (1370292780,), (1370292842,), (1370292893,), (1370292941,), (1370292943,), (1370293011,), (1370293034,), (1370293050,), (1370293064,), (1370293207,), (1370293256,), (1370293320,), (1370293367,), (1370293401,), (1370293434,)) 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 24553443 , 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=24553425 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 (24553443) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24553425) result : ((1370292575,), (1370292579,), (1370292582,), (1370292583,), (1370292613,), (1370292638,), (1370292689,), (1370292711,), (1370292745,), (1370292780,), (1370292842,), (1370292893,), (1370292941,), (1370292943,), (1370293011,), (1370293034,), (1370293050,), (1370293064,), (1370293207,), (1370293256,), (1370293320,), (1370293367,), (1370293401,), (1370293434,)) 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 24553444 , 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=24553425 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 (24553444) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24553425) result : ((1370292575,), (1370292579,), (1370292582,), (1370292583,), (1370292613,), (1370292638,), (1370292689,), (1370292711,), (1370292745,), (1370292780,), (1370292842,), (1370292893,), (1370292941,), (1370292943,), (1370293011,), (1370293034,), (1370293050,), (1370293064,), (1370293207,), (1370293256,), (1370293320,), (1370293367,), (1370293401,), (1370293434,)) 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 24553445 , 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=24553425 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 (24553445) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24553425) result : ((1370292575,), (1370292579,), (1370292582,), (1370292583,), (1370292613,), (1370292638,), (1370292689,), (1370292711,), (1370292745,), (1370292780,), (1370292842,), (1370292893,), (1370292941,), (1370292943,), (1370293011,), (1370293034,), (1370293050,), (1370293064,), (1370293207,), (1370293256,), (1370293320,), (1370293367,), (1370293401,), (1370293434,)) 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 24553446 , 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=24553425 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 (24553446) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24553425) result : ((1370292575,), (1370292579,), (1370292582,), (1370292583,), (1370292613,), (1370292638,), (1370292689,), (1370292711,), (1370292745,), (1370292780,), (1370292842,), (1370292893,), (1370292941,), (1370292943,), (1370293011,), (1370293034,), (1370293050,), (1370293064,), (1370293207,), (1370293256,), (1370293320,), (1370293367,), (1370293401,), (1370293434,)) 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 24553447 , 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=24553425 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 (24553447) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24553425) result : ((1370292575,), (1370292579,), (1370292582,), (1370292583,), (1370292613,), (1370292638,), (1370292689,), (1370292711,), (1370292745,), (1370292780,), (1370292842,), (1370292893,), (1370292941,), (1370292943,), (1370293011,), (1370293034,), (1370293050,), (1370293064,), (1370293207,), (1370293256,), (1370293320,), (1370293367,), (1370293401,), (1370293434,)) 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 24553448 , 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=24553425 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 (24553448) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24553425) result : ((1370292575,), (1370292579,), (1370292582,), (1370292583,), (1370292613,), (1370292638,), (1370292689,), (1370292711,), (1370292745,), (1370292780,), (1370292842,), (1370292893,), (1370292941,), (1370292943,), (1370293011,), (1370293034,), (1370293050,), (1370293064,), (1370293207,), (1370293256,), (1370293320,), (1370293367,), (1370293401,), (1370293434,)) 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 24553449 , 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=24553425 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 (24553449) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24553425) result : ((1370292575,), (1370292579,), (1370292582,), (1370292583,), (1370292613,), (1370292638,), (1370292689,), (1370292711,), (1370292745,), (1370292780,), (1370292842,), (1370292893,), (1370292941,), (1370292943,), (1370293011,), (1370293034,), (1370293050,), (1370293064,), (1370293207,), (1370293256,), (1370293320,), (1370293367,), (1370293401,), (1370293434,)) 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 24553450 , 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=24553425 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 (24553450) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24553425) result : ((1370292575,), (1370292579,), (1370292582,), (1370292583,), (1370292613,), (1370292638,), (1370292689,), (1370292711,), (1370292745,), (1370292780,), (1370292842,), (1370292893,), (1370292941,), (1370292943,), (1370293011,), (1370293034,), (1370293050,), (1370293064,), (1370293207,), (1370293256,), (1370293320,), (1370293367,), (1370293401,), (1370293434,)) 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 24553451 , 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=24553425 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 (24553451) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24553425) result : ((1370292575,), (1370292579,), (1370292582,), (1370292583,), (1370292613,), (1370292638,), (1370292689,), (1370292711,), (1370292745,), (1370292780,), (1370292842,), (1370292893,), (1370292941,), (1370292943,), (1370293011,), (1370293034,), (1370293050,), (1370293064,), (1370293207,), (1370293256,), (1370293320,), (1370293367,), (1370293401,), (1370293434,)) 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 24553452 , 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=24553425 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 (24553452) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24553425) result : ((1370292575,), (1370292579,), (1370292582,), (1370292583,), (1370292613,), (1370292638,), (1370292689,), (1370292711,), (1370292745,), (1370292780,), (1370292842,), (1370292893,), (1370292941,), (1370292943,), (1370293011,), (1370293034,), (1370293050,), (1370293064,), (1370293207,), (1370293256,), (1370293320,), (1370293367,), (1370293401,), (1370293434,)) 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`=24553425 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','papier','plastique','flou','autre_refus','cartonnette','kraft','Carton_brun','Teint_Dans_La_Masse','metal','Carton_gris')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24553425 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','papier','plastique','flou','autre_refus','cartonnette','kraft','Carton_brun','Teint_Dans_La_Masse','metal','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 24553425, 'sub_port_id': 24553453, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486504, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 24553425, 'sub_port_id': 24553454, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486505, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 59)}, 'Carton_brun': {'main_port_id': 24553425, 'sub_port_id': 24553455, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486506, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 59)}, 'mal_croppe': {'main_port_id': 24553425, 'sub_port_id': 24553456, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486507, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 59)}, 'environnement': {'main_port_id': 24553425, 'sub_port_id': 24553457, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486508, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 59)}, 'metal': {'main_port_id': 24553425, 'sub_port_id': 24553458, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486509, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 59)}, 'flou': {'main_port_id': 24553425, 'sub_port_id': 24553459, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486510, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 59)}, 'kraft': {'main_port_id': 24553425, 'sub_port_id': 24553460, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486511, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 59)}, 'papier': {'main_port_id': 24553425, 'sub_port_id': 24553461, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486512, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 59)}, 'plastique': {'main_port_id': 24553425, 'sub_port_id': 24553462, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486513, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 59)}, 'autre_refus': {'main_port_id': 24553425, 'sub_port_id': 24553463, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486514, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 59)}, 'Carton_gris': {'main_port_id': 24553425, 'sub_port_id': 24553464, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16486515, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 18, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24553453,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24553441 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24553454,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24553442 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24553455,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24553443 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24553456,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24553444 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24553457,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24553445 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24553458,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24553446 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24553459,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24553447 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24553460,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24553448 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24553461,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24553449 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24553462,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24553450 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24553463,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24553451 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24553464,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24553452 lien utilise dans velours : https://www.fotonower.com/velours/24553453,24553454,24553455,24553456,24553457,24553458,24553459,24553460,24553461,24553462,24553463,24553464?tags=cartonnette,Teint_Dans_La_Masse,Carton_brun,mal_croppe,environnement,metal,flou,kraft,papier,plastique,autre_refus,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24553425]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1370293434, 1370293401, 1370293367, 1370293320, 1370293256, 1370293207, 1370293064, 1370293050, 1370293034, 1370293011, 1370292943, 1370292941] map_info['map_portfolio_photo'] : {24553425: [1370293434, 1370293401, 1370293367, 1370293320, 1370293256, 1370293207, 1370293064, 1370293050, 1370293034, 1370293011, 1370292943, 1370292941, 1370292893, 1370292842, 1370292780, 1370292745, 1370292711, 1370292689, 1370292638, 1370292613, 1370292583, 1370292582, 1370292579, 1370292575]} final : False mtd_id 4302 list_pids : [1370293434, 1370293401, 1370293367, 1370293320, 1370293256, 1370293207, 1370293064, 1370293050, 1370293034, 1370293011, 1370292943, 1370292941] Looping around the photos to save general results len do output : 1 /24553425. 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, '3232160') ('4302', '24553425', '1370293434', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293401', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293367', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293320', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293256', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293207', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293064', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293050', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293034', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293011', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370292943', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370292941', None, None, None, None, None, '3232160') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24553425', "{'cartonnette': 24553441, 'Teint_Dans_La_Masse': 24553442, 'Carton_brun': 24553443, 'mal_croppe': 24553444, 'environnement': 24553445, 'metal': 24553446, 'flou': 24553447, 'kraft': 24553448, 'papier': 24553449, 'plastique': 24553450, 'autre_refus': 24553451, 'Carton_gris': 24553452}", None, None, None, None, '3232160'), ('4302', '24553425', '1370293434', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293401', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293367', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293320', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293256', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293207', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293064', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293050', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293034', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293011', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370292943', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370292941', None, None, None, None, None, '3232160')] time used for this insertion : 0.11195635795593262 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4663841724395752 time spend to save output : 0.11234164237976074 total time spend for step 1 : 1.578725814819336 step2:final Thu Jul 3 05:21:12 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 (24553425) 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 24553425 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1370292638,1370292613,1370292583,1370292582,1370292579,1370292575,1370292893,1370292842,1370292780,1370292745,1370292711,1370292689,1370293064,1370293050,1370293034,1370293011,1370292943,1370292941,1370293434,1370293401,1370293367,1370293320,1370293256,1370293207); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24553425]) Inside saveOutput : final : False verbose : True original output for save of step final : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ('0.0',), 1370293034: ('0.0',), 1370293011: ('0.0',), 1370292943: ('0.0',), 1370292941: ('0.0',)} new output for save of step final : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ('0.0',), 1370293034: ('0.0',), 1370293011: ('0.0',), 1370292943: ('0.0',), 1370292941: ('0.0',)} [1370293434, 1370293401, 1370293367, 1370293320, 1370293256, 1370293207, 1370293064, 1370293050, 1370293034, 1370293011, 1370292943, 1370292941] map_info['map_portfolio_photo'] : {24553425: [1370293434, 1370293401, 1370293367, 1370293320, 1370293256, 1370293207, 1370293064, 1370293050, 1370293034, 1370293011, 1370292943, 1370292941, 1370292893, 1370292842, 1370292780, 1370292745, 1370292711, 1370292689, 1370292638, 1370292613, 1370292583, 1370292582, 1370292579, 1370292575]} final : False mtd_id 4302 list_pids : [1370293434, 1370293401, 1370293367, 1370293320, 1370293256, 1370293207, 1370293064, 1370293050, 1370293034, 1370293011, 1370292943, 1370292941] Looping around the photos to save general results len do output : 12 /1370293434.Didn't retrieve data . /1370293401.Didn't retrieve data . /1370293367.Didn't retrieve data . /1370293320.Didn't retrieve data . /1370293256.Didn't retrieve data . /1370293207.Didn't retrieve data . /1370293064.Didn't retrieve data . /1370293050.Didn't retrieve data . /1370293034.Didn't retrieve data . /1370293011.Didn't retrieve data . /1370292943.Didn't retrieve data . /1370292941.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, '3232160') ('4302', '24553425', '1370293434', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293401', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293367', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293320', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293256', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293207', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293064', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293050', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293034', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293011', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370292943', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370292941', None, None, None, None, None, '3232160') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '24553425', '1370293434', '0.0', None, None, None, None, '3232160'), ('4302', '24553425', '1370293401', '0.0', None, None, None, None, '3232160'), ('4302', '24553425', '1370293367', '0.0', None, None, None, None, '3232160'), ('4302', '24553425', '1370293320', '0.0', None, None, None, None, '3232160'), ('4302', '24553425', '1370293256', '0.0', None, None, None, None, '3232160'), ('4302', '24553425', '1370293207', '0.0', None, None, None, None, '3232160'), ('4302', '24553425', '1370293064', '0.0', None, None, None, None, '3232160'), ('4302', '24553425', '1370293050', '0.0', None, None, None, None, '3232160'), ('4302', '24553425', '1370293034', '0.0', None, None, None, None, '3232160'), ('4302', '24553425', '1370293011', '0.0', None, None, None, None, '3232160'), ('4302', '24553425', '1370292943', '0.0', None, None, None, None, '3232160'), ('4302', '24553425', '1370292941', '0.0', None, None, None, None, '3232160')] time used for this insertion : 0.13538742065429688 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.12761878967285156 time spend to save output : 0.13604283332824707 total time spend for step 2 : 0.26366162300109863 step3:velours_tree Thu Jul 3 05:21:12 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 : {24553425: [{'cartonnette': 24553441, 'Teint_Dans_La_Masse': 24553442, 'Carton_brun': 24553443, 'mal_croppe': 24553444, 'environnement': 24553445, 'metal': 24553446, 'flou': 24553447, 'kraft': 24553448, 'papier': 24553449, 'plastique': 24553450, 'autre_refus': 24553451, 'Carton_gris': 24553452}]} input_args_next_step : {24553425: ()} output_args : {24553425: [{'cartonnette': 24553441, 'Teint_Dans_La_Masse': 24553442, 'Carton_brun': 24553443, 'mal_croppe': 24553444, 'environnement': 24553445, 'metal': 24553446, 'flou': 24553447, 'kraft': 24553448, 'papier': 24553449, 'plastique': 24553450, 'autre_refus': 24553451, 'Carton_gris': 24553452}]} args : 24553425 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 : ({'cartonnette': 24553441, 'Teint_Dans_La_Masse': 24553442, 'Carton_brun': 24553443, 'mal_croppe': 24553444, 'environnement': 24553445, 'metal': 24553446, 'flou': 24553447, 'kraft': 24553448, 'papier': 24553449, 'plastique': 24553450, 'autre_refus': 24553451, 'Carton_gris': 24553452},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24553425) 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([24553425]) 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.3433668613433838 time spend to save output : 7.677078247070312e-05 total time spend for step 3 : 0.3434436321258545 step4:send_mail_cod Thu Jul 3 05:21:13 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 : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ('0.0',), 1370293034: ('0.0',), 1370293011: ('0.0',), 1370292943: ('0.0',), 1370292941: ('0.0',)} input_args_next_step : {1370293434: ()} output_args : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ('0.0',), 1370293034: ('0.0',), 1370293011: ('0.0',), 1370292943: ('0.0',), 1370292941: ('0.0',)} args : 1370293434 depend.output_id : 0 input_args_next_step : {1370293434: ('0.0',), 1370293401: ()} output_args : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ('0.0',), 1370293034: ('0.0',), 1370293011: ('0.0',), 1370292943: ('0.0',), 1370292941: ('0.0',)} args : 1370293401 depend.output_id : 0 input_args_next_step : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ()} output_args : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ('0.0',), 1370293034: ('0.0',), 1370293011: ('0.0',), 1370292943: ('0.0',), 1370292941: ('0.0',)} args : 1370293367 depend.output_id : 0 input_args_next_step : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ()} output_args : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ('0.0',), 1370293034: ('0.0',), 1370293011: ('0.0',), 1370292943: ('0.0',), 1370292941: ('0.0',)} args : 1370293320 depend.output_id : 0 input_args_next_step : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ()} output_args : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ('0.0',), 1370293034: ('0.0',), 1370293011: ('0.0',), 1370292943: ('0.0',), 1370292941: ('0.0',)} args : 1370293256 depend.output_id : 0 input_args_next_step : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ()} output_args : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ('0.0',), 1370293034: ('0.0',), 1370293011: ('0.0',), 1370292943: ('0.0',), 1370292941: ('0.0',)} args : 1370293207 depend.output_id : 0 input_args_next_step : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ()} output_args : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ('0.0',), 1370293034: ('0.0',), 1370293011: ('0.0',), 1370292943: ('0.0',), 1370292941: ('0.0',)} args : 1370293064 depend.output_id : 0 input_args_next_step : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ()} output_args : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ('0.0',), 1370293034: ('0.0',), 1370293011: ('0.0',), 1370292943: ('0.0',), 1370292941: ('0.0',)} args : 1370293050 depend.output_id : 0 input_args_next_step : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ('0.0',), 1370293034: ()} output_args : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ('0.0',), 1370293034: ('0.0',), 1370293011: ('0.0',), 1370292943: ('0.0',), 1370292941: ('0.0',)} args : 1370293034 depend.output_id : 0 input_args_next_step : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ('0.0',), 1370293034: ('0.0',), 1370293011: ()} output_args : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ('0.0',), 1370293034: ('0.0',), 1370293011: ('0.0',), 1370292943: ('0.0',), 1370292941: ('0.0',)} args : 1370293011 depend.output_id : 0 input_args_next_step : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ('0.0',), 1370293034: ('0.0',), 1370293011: ('0.0',), 1370292943: ()} output_args : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ('0.0',), 1370293034: ('0.0',), 1370293011: ('0.0',), 1370292943: ('0.0',), 1370292941: ('0.0',)} args : 1370292943 depend.output_id : 0 input_args_next_step : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ('0.0',), 1370293034: ('0.0',), 1370293011: ('0.0',), 1370292943: ('0.0',), 1370292941: ()} output_args : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ('0.0',), 1370293034: ('0.0',), 1370293011: ('0.0',), 1370292943: ('0.0',), 1370292941: ('0.0',)} args : 1370292941 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 : {24553425: [{'cartonnette': 24553441, 'Teint_Dans_La_Masse': 24553442, 'Carton_brun': 24553443, 'mal_croppe': 24553444, 'environnement': 24553445, 'metal': 24553446, 'flou': 24553447, 'kraft': 24553448, 'papier': 24553449, 'plastique': 24553450, 'autre_refus': 24553451, 'Carton_gris': 24553452}]} input_args_next_step : {1370293434: ('0.0',), 1370293401: ('0.0',), 1370293367: ('0.0',), 1370293320: ('0.0',), 1370293256: ('0.0',), 1370293207: ('0.0',), 1370293064: ('0.0',), 1370293050: ('0.0',), 1370293034: ('0.0',), 1370293011: ('0.0',), 1370292943: ('0.0',), 1370292941: ('0.0',), 24553425: ()} output_args : {24553425: [{'cartonnette': 24553441, 'Teint_Dans_La_Masse': 24553442, 'Carton_brun': 24553443, 'mal_croppe': 24553444, 'environnement': 24553445, 'metal': 24553446, 'flou': 24553447, 'kraft': 24553448, 'papier': 24553449, 'plastique': 24553450, 'autre_refus': 24553451, 'Carton_gris': 24553452}]} args : 24553425 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :13, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24553425) 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 (1370293434,1370293401,1370293367,1370293320,1370293256,1370293207,1370293064,1370293050,1370293034,1370293011,1370292943,1370292941) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1370292941 begin to download photo : 1370293034 begin to download photo : 1370293207 begin to download photo : 1370293367 download finish for photo 1370293207 begin to download photo : 1370293256 download finish for photo 1370292941 begin to download photo : 1370292943 download finish for photo 1370293367 begin to download photo : 1370293401 download finish for photo 1370293034 begin to download photo : 1370293050 download finish for photo 1370293256 begin to download photo : 1370293320 download finish for photo 1370292943 begin to download photo : 1370293011 download finish for photo 1370293401 begin to download photo : 1370293434 download finish for photo 1370293050 begin to download photo : 1370293064 download finish for photo 1370293011 download finish for photo 1370293320 download finish for photo 1370293434 download finish for photo 1370293064 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette245534411751512873/ imagette245534441751512873/ imagette245534461751512873/ imagette245534471751512873/ imagette245534481751512873/ imagette245534501751512873/ imagette245534511751512873/ imagette245534421751512873/ imagette245534431751512873/ imagette245534521751512873/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24553425_03-07-2025_05_21_13.pdf 24553441 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=24553441 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245534411751512873 24553444 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=24553444 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245534441751512873 24553446 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=24553446 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245534461751512873 24553447 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=24553447 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245534471751512873 24553448 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=24553448 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245534481751512873 24553450 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=24553450 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245534501751512873 24553451 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=24553451 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245534511751512873 24553442 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=24553442 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245534421751512873 24553443 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=24553443 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245534431751512873 24553452 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=24553452 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245534521751512873 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24553425 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24553453,24553454,24553455,24553456,24553457,24553458,24553459,24553460,24553461,24553462,24553463,24553464?tags=cartonnette,Teint_Dans_La_Masse,Carton_brun,mal_croppe,environnement,metal,flou,kraft,papier,plastique,autre_refus,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1370293434] : ('0.0',) no score found for photo 1370293434 We are sending mail with results at report@fotonower.com args[1370293401] : ('0.0',) no score found for photo 1370293401 We are sending mail with results at report@fotonower.com args[1370293367] : ('0.0',) no score found for photo 1370293367 We are sending mail with results at report@fotonower.com args[1370293320] : ('0.0',) no score found for photo 1370293320 We are sending mail with results at report@fotonower.com args[1370293256] : ('0.0',) no score found for photo 1370293256 We are sending mail with results at report@fotonower.com args[1370293207] : ('0.0',) no score found for photo 1370293207 We are sending mail with results at report@fotonower.com args[1370293064] : ('0.0',) no score found for photo 1370293064 We are sending mail with results at report@fotonower.com args[1370293050] : ('0.0',) no score found for photo 1370293050 We are sending mail with results at report@fotonower.com args[1370293034] : ('0.0',) no score found for photo 1370293034 We are sending mail with results at report@fotonower.com args[1370293011] : ('0.0',) no score found for photo 1370293011 We are sending mail with results at report@fotonower.com args[1370292943] : ('0.0',) no score found for photo 1370292943 We are sending mail with results at report@fotonower.com args[1370292941] : ('0.0',) no score found for photo 1370292941 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=24553425 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_P24553425_03-07-2025_05_21_13.pdf results_Auto_P24553425_03-07-2025_05_21_13.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24553425_03-07-2025_05_21_13.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','24553425','results_Auto_P24553425_03-07-2025_05_21_13.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24553425_03-07-2025_05_21_13.pdf','pdf','','0.1','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24553425]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1370293434, 1370293401, 1370293367, 1370293320, 1370293256, 1370293207, 1370293064, 1370293050, 1370293034, 1370293011, 1370292943, 1370292941] map_info['map_portfolio_photo'] : {24553425: [1370293434, 1370293401, 1370293367, 1370293320, 1370293256, 1370293207, 1370293064, 1370293050, 1370293034, 1370293011, 1370292943, 1370292941, 1370292893, 1370292842, 1370292780, 1370292745, 1370292711, 1370292689, 1370292638, 1370292613, 1370292583, 1370292582, 1370292579, 1370292575]} final : False mtd_id 4302 list_pids : [1370293434, 1370293401, 1370293367, 1370293320, 1370293256, 1370293207, 1370293064, 1370293050, 1370293034, 1370293011, 1370292943, 1370292941] 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, '3232160') ('4302', '24553425', '1370293434', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293401', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293367', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293320', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293256', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293207', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293064', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293050', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293034', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293011', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370292943', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370292941', None, None, None, None, None, '3232160') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '24553425', '1370293434', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293401', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293367', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293320', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293256', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293207', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293064', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293050', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293034', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293011', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370292943', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370292941', None, None, None, None, None, '3232160')] time used for this insertion : 0.4226832389831543 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4684972763061523 time spend to save output : 0.4230029582977295 total time spend for step 4 : 1.8915002346038818 step5:split_time_score Thu Jul 3 05:21:15 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 : ['24553425'] 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 : [('24553425',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24553425) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1370292941: {'path': 'temp/1751512873_2543099_1370292941_95c3c5b2beb368647e693fbae14862ca.jpg', 'extension': 'jpg'}, 1370292943: {'path': 'temp/1751512873_2543099_1370292943_3bb1823e7a1cc6a811173ea4db4c8014.jpg', 'extension': 'jpg'}, 1370293011: {'path': 'temp/1751512873_2543099_1370293011_42a25e5e58956be06a5dcad0c58d32b3.jpg', 'extension': 'jpg'}, 1370293207: {'path': 'temp/1751512873_2543099_1370293207_ab94efc6d67aa2df363574670411d44e.jpg', 'extension': 'jpg'}, 1370293256: {'path': 'temp/1751512873_2543099_1370293256_968211e271cdd1252cce84855d129146.jpg', 'extension': 'jpg'}, 1370293320: {'path': 'temp/1751512873_2543099_1370293320_f9634a1496f8d83cbc6a9ba5b3eb689e.jpg', 'extension': 'jpg'}, 1370293367: {'path': 'temp/1751512873_2543099_1370293367_c42ed08b0300b667dbe60e88bc48055a.jpg', 'extension': 'jpg'}, 1370293401: {'path': 'temp/1751512873_2543099_1370293401_0bf22f7321e9077983243d9584763b9f.jpg', 'extension': 'jpg'}, 1370293434: {'path': 'temp/1751512873_2543099_1370293434_9ad46e9dfe00738867714703a7146e2c.jpg', 'extension': 'jpg'}, 1370293034: {'path': 'temp/1751512873_2543099_1370293034_9a83deeca1f700c4c28038612e047056.jpg', 'extension': 'jpg'}, 1370293050: {'path': 'temp/1751512873_2543099_1370293050_bb421961b16166755ad28d5b06b7781a.jpg', 'extension': 'jpg'}, 1370293064: {'path': 'temp/1751512873_2543099_1370293064_fe27fba061703f5b4c2215c08867dbbf.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 = 24553425; (('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 = 24553425 group by h (('05', 24),) 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=24553425 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 (24553425) 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 (24553425) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03072025 24553425 Nombre de photos uploadées : 24 / 23040 (0%) 03072025 24553425 Nombre de photos taguées (types de déchets): 0 / 24 (0%) 03072025 24553425 Nombre de photos taguées (volume) : 0 / 24 (0%) [{'photo_id': 1370292638, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/d397a82ff564bd5a69fa3b5c44377281.jpg', 'username': None, 'uploaded_at': 1751512598, 'text': 'image_03072025_05_15_04_10147.jpg'}, {'photo_id': 1370292613, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/7ffa90a4725fc818074019c8c8a2595c.jpg', 'username': None, 'uploaded_at': 1751512598, 'text': 'image_03072025_05_15_15_10137.jpg'}, {'photo_id': 1370292583, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/a62d4cec206bec6b3226f21381172ce1.jpg', 'username': None, 'uploaded_at': 1751512598, 'text': 'image_03072025_05_15_24_9125.jpg'}, {'photo_id': 1370292582, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/4b6d8d603a78d99f78484aefe26aee8b.jpg', 'username': None, 'uploaded_at': 1751512598, 'text': 'image_03072025_05_15_34_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 9.059906005859375e-06 ???????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0013477802276611328 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24553425, '2025-07-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1948253,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03563094139099121 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= 1948253 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956343, 'mtr_portfolio_id': 24536200, 'dashboard_result_id': 12095459, '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_P24536200_03-07-2025_00_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24536266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24536267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24536268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24536269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24536270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24536271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24536272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24536273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24536274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24536275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24536276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24536277, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956343, 'mtr_portfolio_id': 24536995, 'dashboard_result_id': 12095460, '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_P24536995_03-07-2025_00_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24537011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24537012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24537013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24537014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24537015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24537016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24537017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24537018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24537019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24537020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24537021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24537022, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956343, 'mtr_portfolio_id': 24537684, 'dashboard_result_id': 12095461, '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_P24537684_03-07-2025_00_46_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24537741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24537743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24537745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24537748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24537750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24537752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24537754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24537756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24537759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24537761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24537763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24537765, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956343, 'mtr_portfolio_id': 24538618, 'dashboard_result_id': 12095462, '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_P24538618_03-07-2025_01_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24538634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24538635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24538636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24538637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24538638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24538639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24538640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24538641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24538642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24538643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24538644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24538645, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956343, 'mtr_portfolio_id': 24539400, 'dashboard_result_id': 12095463, '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_P24539400_03-07-2025_01_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24539493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24539494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24539495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24539496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24539497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24539498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24539499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24539500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24539501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24539502, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24539503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24539504, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956343, 'mtr_portfolio_id': 24540440, 'dashboard_result_id': 12095464, '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_P24540440_03-07-2025_01_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24540520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24540521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24540522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24540524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24540525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24540526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24540527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24540529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24540530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24540531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24540532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24540533, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956343, 'mtr_portfolio_id': 24541210, 'dashboard_result_id': 12095465, '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_P24541210_03-07-2025_01_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24541297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24541298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24541299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24541300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24541301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24541302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24541303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24541304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24541305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24541306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24541307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24541308, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956343, 'mtr_portfolio_id': 24542140, 'dashboard_result_id': 12095466, '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_P24542140_03-07-2025_02_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24542143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24542144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24542145, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24542146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24542147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24542148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24542149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24542150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24542151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24542152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24542153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24542154, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956343, 'mtr_portfolio_id': 24542941, 'dashboard_result_id': 12095467, '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_P24542941_03-07-2025_02_17_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24543008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24543009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24543010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24543011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24543012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24543013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24543014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24543015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24543016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24543017, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24543018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24543019, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956343, 'mtr_portfolio_id': 24543938, 'dashboard_result_id': 12095468, '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_P24543938_03-07-2025_02_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24543970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24543971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24543972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24543973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24543974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24543975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24543976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24543977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24543978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24543979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24543980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24543981, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956343, 'mtr_portfolio_id': 24544741, 'dashboard_result_id': 12095469, '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_P24544741_03-07-2025_02_40_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24544791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24544792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24544793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24544794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24544795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24544796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24544797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24544798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24544799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24544800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24544801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24544802, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956343, 'mtr_portfolio_id': 24550895, 'dashboard_result_id': 12095470, '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_P24550895_03-07-2025_04_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24550901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24550902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24550903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24550904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24550905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24550906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24550907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24550908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24550909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24550910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24550911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24550912, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956343, 'mtr_portfolio_id': 24551663, 'dashboard_result_id': 12095471, '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_P24551663_03-07-2025_05_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24551726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24551727, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24551728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24551729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24551730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24551731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24551732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24551733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24551734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24551735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24551736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24551737, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956343, 'mtr_portfolio_id': 24552414, 'dashboard_result_id': 12095472, '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_P24552414_03-07-2025_05_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24552502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24552503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24552504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24552505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24552506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24552507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24552508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24552509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24552510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24552511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24552512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24552514, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956343, 'mtr_portfolio_id': 24553425, 'dashboard_result_id': 12095474, '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_P24553425_03-07-2025_05_19_00.pdf'}"}] 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 = 24536200 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': 3231084, 'mtr_portfolio_id': 24536200, 'created_at': datetime.datetime(2025, 7, 3, 0, 16, 57), 'result': '0.06841203960177072', 'result_long': None, 'result_double': None}] Qualite : 0.06841203960177072 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24536200 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24536200_03-07-2025_00_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24536200 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_P24536200_03-07-2025_00_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24536266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24536267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24536268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24536269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24536270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24536271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24536272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24536273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24536274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24536275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24536276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24536277, 'pht': 3726}}" where mtr_portfolio_id = 24536200 and dashboard_run_id = 1956343 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`=24536200 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12095459, 0.06841203960177072, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24536200_03-07-2025_00_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24536266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24536267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24536268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24536269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24536270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24536271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24536272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24536273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24536274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24536275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24536276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24536277, '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 = 24536995 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': 3231129, 'mtr_portfolio_id': 24536995, 'created_at': datetime.datetime(2025, 7, 3, 0, 32, 59), 'result': '0.05586406851115436', 'result_long': None, 'result_double': None}] Qualite : 0.05586406851115436 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24536995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24536995_03-07-2025_00_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24536995 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_P24536995_03-07-2025_00_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24537011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24537012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24537013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24537014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24537015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24537016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24537017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24537018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24537019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24537020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24537021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24537022, 'pht': 3726}}" where mtr_portfolio_id = 24536995 and dashboard_run_id = 1956343 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`=24536995 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12095460, 0.05586406851115436, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24536995_03-07-2025_00_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24537011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24537012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24537013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24537014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24537015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24537016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24537017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24537018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24537019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24537020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24537021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24537022, '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 = 24537684 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': 3231169, 'mtr_portfolio_id': 24537684, 'created_at': datetime.datetime(2025, 7, 3, 0, 46, 30), 'result': '0.09176858600063752', 'result_long': None, 'result_double': None}] Qualite : 0.09176858600063752 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24537684 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24537684_03-07-2025_00_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24537684 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_P24537684_03-07-2025_00_46_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24537741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24537743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24537745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24537748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24537750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24537752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24537754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24537756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24537759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24537761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24537763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24537765, 'pht': 3726}}" where mtr_portfolio_id = 24537684 and dashboard_run_id = 1956343 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`=24537684 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12095461, 0.09176858600063752, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24537684_03-07-2025_00_46_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24537741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24537743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24537745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24537748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24537750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24537752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24537754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24537756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24537759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24537761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24537763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24537765, '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 = 24538618 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': 3231218, 'mtr_portfolio_id': 24538618, 'created_at': datetime.datetime(2025, 7, 3, 1, 2, 59), 'result': '0.07305641418656655', 'result_long': None, 'result_double': None}] Qualite : 0.07305641418656655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24538618 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24538618_03-07-2025_01_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24538618 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_P24538618_03-07-2025_01_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24538634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24538635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24538636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24538637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24538638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24538639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24538640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24538641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24538642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24538643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24538644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24538645, 'pht': 3726}}" where mtr_portfolio_id = 24538618 and dashboard_run_id = 1956343 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`=24538618 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12095462, 0.07305641418656655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24538618_03-07-2025_01_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24538634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24538635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24538636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24538637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24538638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24538639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24538640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24538641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24538642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24538643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24538644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24538645, '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 = 24539400 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 = 24539400 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 = 24539400 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24539400 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 = 24539400 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3231271, 'mtr_portfolio_id': 24539400, 'created_at': datetime.datetime(2025, 7, 3, 1, 16, 57), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24539400 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24539400_03-07-2025_01_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24539400 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_P24539400_03-07-2025_01_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24539493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24539494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24539495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24539496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24539497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24539498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24539499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24539500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24539501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24539502, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24539503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24539504, 'pht': 3726}}" where mtr_portfolio_id = 24539400 and dashboard_run_id = 1956343 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`=24539400 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12095463, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24539400_03-07-2025_01_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24539493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24539494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24539495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24539496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24539497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24539498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24539499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24539500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24539501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24539502, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24539503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24539504, '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 = 24540440 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 = 24540440 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 = 24540440 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24540440 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 = 24540440 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3231355, 'mtr_portfolio_id': 24540440, 'created_at': datetime.datetime(2025, 7, 3, 1, 32, 59), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24540440 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24540440_03-07-2025_01_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24540440 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_P24540440_03-07-2025_01_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24540520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24540521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24540522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24540524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24540525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24540526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24540527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24540529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24540530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24540531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24540532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24540533, 'pht': 3726}}" where mtr_portfolio_id = 24540440 and dashboard_run_id = 1956343 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`=24540440 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12095464, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24540440_03-07-2025_01_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24540520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24540521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24540522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24540524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24540525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24540526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24540527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24540529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24540530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24540531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24540532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24540533, '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 = 24541210 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': 3231392, 'mtr_portfolio_id': 24541210, 'created_at': datetime.datetime(2025, 7, 3, 1, 46, 58), 'result': '0.08091416775506845', 'result_long': None, 'result_double': None}] Qualite : 0.08091416775506845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24541210 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24541210_03-07-2025_01_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24541210 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_P24541210_03-07-2025_01_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24541297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24541298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24541299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24541300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24541301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24541302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24541303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24541304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24541305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24541306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24541307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24541308, 'pht': 3726}}" where mtr_portfolio_id = 24541210 and dashboard_run_id = 1956343 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`=24541210 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12095465, 0.08091416775506845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24541210_03-07-2025_01_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24541297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24541298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24541299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24541300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24541301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24541302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24541303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24541304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24541305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24541306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24541307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24541308, '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 = 24542140 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': 3231436, 'mtr_portfolio_id': 24542140, 'created_at': datetime.datetime(2025, 7, 3, 2, 2, 59), 'result': '0.07466849654012321', 'result_long': None, 'result_double': None}] Qualite : 0.07466849654012321 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24542140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24542140_03-07-2025_02_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24542140 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_P24542140_03-07-2025_02_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24542143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24542144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24542145, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24542146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24542147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24542148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24542149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24542150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24542151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24542152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24542153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24542154, 'pht': 3726}}" where mtr_portfolio_id = 24542140 and dashboard_run_id = 1956343 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`=24542140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12095466, 0.07466849654012321, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24542140_03-07-2025_02_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24542143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24542144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24542145, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24542146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24542147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24542148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24542149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24542150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24542151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24542152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24542153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24542154, '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 = 24542941 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': 3231487, 'mtr_portfolio_id': 24542941, 'created_at': datetime.datetime(2025, 7, 3, 2, 17, 2), 'result': '0.06907460210665119', 'result_long': None, 'result_double': None}] Qualite : 0.06907460210665119 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24542941 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24542941_03-07-2025_02_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24542941 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_P24542941_03-07-2025_02_17_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24543008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24543009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24543010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24543011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24543012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24543013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24543014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24543015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24543016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24543017, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24543018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24543019, 'pht': 3726}}" where mtr_portfolio_id = 24542941 and dashboard_run_id = 1956343 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`=24542941 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12095467, 0.06907460210665119, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24542941_03-07-2025_02_17_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24543008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24543009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24543010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24543011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24543012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24543013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24543014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24543015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24543016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24543017, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24543018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24543019, '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 = 24543938 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': 3231542, 'mtr_portfolio_id': 24543938, 'created_at': datetime.datetime(2025, 7, 3, 2, 32, 59), 'result': '0.05690284967498808', 'result_long': None, 'result_double': None}] Qualite : 0.05690284967498808 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24543938 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24543938_03-07-2025_02_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24543938 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_P24543938_03-07-2025_02_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24543970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24543971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24543972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24543973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24543974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24543975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24543976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24543977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24543978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24543979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24543980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24543981, 'pht': 3726}}" where mtr_portfolio_id = 24543938 and dashboard_run_id = 1956343 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`=24543938 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12095468, 0.05690284967498808, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24543938_03-07-2025_02_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24543970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24543971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24543972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24543973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24543974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24543975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24543976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24543977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24543978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24543979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24543980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24543981, '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 = 24544741 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': 3231584, 'mtr_portfolio_id': 24544741, 'created_at': datetime.datetime(2025, 7, 3, 2, 46, 30), 'result': '0.010711717720567076', 'result_long': None, 'result_double': None}] Qualite : 0.010711717720567076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24544741 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24544741_03-07-2025_02_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24544741 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_P24544741_03-07-2025_02_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24544791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24544792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24544793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24544794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24544795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24544796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24544797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24544798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24544799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24544800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24544801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24544802, 'pht': 3726}}" where mtr_portfolio_id = 24544741 and dashboard_run_id = 1956343 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`=24544741 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12095469, 0.010711717720567076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24544741_03-07-2025_02_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24544791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24544792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24544793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24544794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24544795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24544796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24544797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24544798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24544799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24544800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24544801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24544802, '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 = 24550895 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': 3231998, 'mtr_portfolio_id': 24550895, 'created_at': datetime.datetime(2025, 7, 3, 4, 48, 59), 'result': '0.3017238902078139', 'result_long': None, 'result_double': None}] Qualite : 0.3017238902078139 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24550895 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24550895_03-07-2025_04_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24550895 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_P24550895_03-07-2025_04_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24550901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24550902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24550903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24550904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24550905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24550906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24550907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24550908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24550909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24550910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24550911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24550912, 'pht': 3726}}" where mtr_portfolio_id = 24550895 and dashboard_run_id = 1956342 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`=24550895 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12095470, 0.3017238902078139, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24550895_03-07-2025_04_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24550901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24550902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24550903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24550904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24550905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24550906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24550907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24550908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24550909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24550910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24550911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24550912, '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 = 24551663 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': 3232049, 'mtr_portfolio_id': 24551663, 'created_at': datetime.datetime(2025, 7, 3, 5, 3), 'result': '0.24451164933901565', 'result_long': None, 'result_double': None}] Qualite : 0.24451164933901565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24551663 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24551663_03-07-2025_05_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24551663 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_P24551663_03-07-2025_05_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24551726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24551727, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24551728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24551729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24551730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24551731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24551732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24551733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24551734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24551735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24551736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24551737, 'pht': 3726}}" where mtr_portfolio_id = 24551663 and dashboard_run_id = 1956342 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`=24551663 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12095471, 0.24451164933901565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24551663_03-07-2025_05_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24551726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24551727, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24551728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24551729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24551730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24551731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24551732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24551733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24551734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24551735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24551736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24551737, '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 = 24552414 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': 3232108, 'mtr_portfolio_id': 24552414, 'created_at': datetime.datetime(2025, 7, 3, 5, 16, 58), 'result': '0.08003824216675721', 'result_long': None, 'result_double': None}] Qualite : 0.08003824216675721 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24552414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24552414_03-07-2025_05_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24552414 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_P24552414_03-07-2025_05_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24552502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24552503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24552504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24552505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24552506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24552507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24552508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24552509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24552510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24552511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24552512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24552514, 'pht': 3726}}" where mtr_portfolio_id = 24552414 and dashboard_run_id = 1956342 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`=24552414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12095472, 0.08003824216675721, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24552414_03-07-2025_05_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24552502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24552503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24552504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24552505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24552506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24552507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24552508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24552509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24552510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24552511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24552512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24552514, '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 = 24553425 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 = 24553425 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 = 24553425 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24553425 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 = 24553425 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3232160, 'mtr_portfolio_id': 24553425, 'created_at': datetime.datetime(2025, 7, 3, 5, 21, 12), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24553425 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24553425_03-07-2025_05_21_13.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24553425 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_P24553425_03-07-2025_05_21_13.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24553441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24553442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24553443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24553444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24553445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24553446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24553447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24553448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24553449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24553450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24553451, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24553452, 'pht': 3726}}" where mtr_portfolio_id = 24553425 and dashboard_run_id = 1956342 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`=24553425 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12095474, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24553425_03-07-2025_05_21_13.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24553441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24553442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24553443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24553444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24553445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24553446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24553447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24553448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24553449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24553450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24553451, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24553452, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24536200,24536995,24537684,24538618,24539400,24540440,24541210,24542140,24542941,24543938,24544741,24550895,24551663,24552414,24553425) result : ((1370175276,), (1370175280,), (1370175284,), (1370175303,), (1370175306,), (1370175466,), (1370175535,), (1370175666,), (1370175747,), (1370175818,), (1370175890,), (1370176180,), (1370176268,), (1370176300,), (1370176306,), (1370176316,), (1370176329,), (1370176770,), (1370176806,), (1370176843,), (1370176878,), (1370176924,), (1370176930,), (1370176958,), (1370176960,), (1370176992,), (1370176995,), (1370176998,), (1370176999,), (1370177001,), (1370177002,), (1370177011,), (1370177013,), (1370177035,), (1370177041,), (1370177103,), (1370177106,), (1370177107,), (1370177127,), (1370177165,), (1370177186,), (1370177208,), (1370177211,), (1370177222,), (1370177262,), (1370177296,), (1370177331,), (1370177453,), (1370177454,), (1370177462,), (1370177466,), (1370177539,), (1370177544,), (1370177593,), (1370177597,), (1370177656,), (1370177662,), (1370177699,), (1370177708,), (1370177836,), (1370177874,), (1370177928,), (1370177949,), (1370177957,), (1370177964,), (1370178170,), (1370178212,), (1370178292,), (1370178373,), (1370178448,), (1370178497,), (1370178730,), (1370178734,), (1370178752,), (1370178813,), (1370178877,), (1370178945,), (1370178993,), (1370178995,), (1370179000,), (1370179003,), (1370179004,), (1370179006,), (1370179011,), (1370179034,), (1370179065,), (1370179097,), (1370179161,), (1370179215,), (1370179997,), (1370180030,), (1370180063,), (1370180096,), (1370180104,), (1370180111,), (1370180188,), (1370180192,), (1370180194,), (1370180235,), (1370180267,), (1370180331,), (1370180476,), (1370180531,), (1370180582,), (1370180624,), (1370180649,), (1370180672,), (1370180801,), (1370180806,), (1370180834,), (1370180866,), (1370180880,), (1370180915,), (1370181017,), (1370181029,), (1370181038,), (1370181059,), (1370181073,), (1370181081,), (1370181095,), (1370181096,), (1370181098,), (1370181117,), (1370181160,), (1370181213,), (1370181257,), (1370181298,), (1370181306,), (1370181308,), (1370181311,), (1370181345,), (1370181570,), (1370181576,), (1370181588,), (1370181591,), (1370181600,), (1370181604,), (1370181628,), (1370181629,), (1370181631,), (1370181633,), (1370181636,), (1370181659,), (1370181848,), (1370181890,), (1370181946,), (1370181976,), (1370181982,), (1370181984,), (1370182706,), (1370182782,), (1370182866,), (1370182950,), (1370183032,), (1370183120,), (1370183360,), (1370183369,), (1370183371,), (1370183373,), (1370183376,), (1370183378,), (1370183391,), (1370183396,), (1370183397,), (1370183398,), (1370183399,), (1370183401,), (1370183514,), (1370183516,), (1370183526,), (1370183529,), (1370183532,), (1370183536,), (1370183629,), (1370183654,), (1370183655,), (1370183684,), (1370183702,), (1370183738,), (1370183794,), (1370183795,), (1370183828,), (1370183864,), (1370183899,), (1370183930,), (1370184169,), (1370184185,), (1370184211,), (1370184237,), (1370184266,), (1370184284,), (1370184372,), (1370184373,), (1370184385,), (1370184386,), (1370184392,), (1370184398,), (1370184433,), (1370184438,), (1370184479,), (1370184482,), (1370184483,), (1370184485,), (1370184507,), (1370184545,), (1370184557,), (1370184568,), (1370184571,), (1370184601,), (1370184671,), (1370184688,), (1370184698,), (1370184701,), (1370184717,), (1370184718,), (1370184964,), (1370184966,), (1370184996,), (1370184999,), (1370185038,), (1370185042,), (1370185078,), (1370185084,), (1370185135,), (1370185146,), (1370185201,), (1370185213,), (1370185353,), (1370185410,), (1370185474,), (1370185544,), (1370185597,), (1370185633,), (1370185667,), (1370185669,), (1370185698,), (1370185745,), (1370185785,), (1370185815,), (1370186321,), (1370186353,), (1370186389,), (1370186421,), (1370186488,), (1370186551,), (1370186758,), (1370186803,), (1370186834,), (1370186859,), (1370186884,), (1370186929,), (1370187259,), (1370187322,), (1370187384,), (1370187419,), (1370187465,), (1370187519,), (1370187721,), (1370187761,), (1370187797,), (1370187860,), (1370187955,), (1370187996,), (1370188087,), (1370188125,), (1370188148,), (1370188179,), (1370188210,), (1370188245,), (1370188440,), (1370188464,), (1370188466,), (1370188473,), (1370188522,), (1370188577,), (1370189007,), (1370189072,), (1370189141,), (1370189208,), (1370189309,), (1370189407,), (1370189567,), (1370189609,), (1370189626,), (1370189680,), (1370189712,), (1370189725,), (1370190468,), (1370190560,), (1370190618,), (1370190649,), (1370190685,), (1370190734,), (1370190866,), (1370190894,), (1370190895,), (1370190896,), (1370190902,), (1370190913,), (1370190964,), (1370190974,), (1370191014,), (1370191045,), (1370191093,), (1370191129,), (1370191337,), (1370191354,), (1370191399,), (1370191464,), (1370191530,), (1370191564,), (1370191656,), (1370191695,), (1370191765,), (1370191829,), (1370191924,), (1370192022,), (1370192339,), (1370192416,), (1370192486,), (1370192549,), (1370192586,), (1370192618,), (1370192868,), (1370192873,), (1370192885,), (1370192892,), (1370192912,), (1370192922,), (1370192961,), (1370192975,), (1370192986,), (1370192988,), (1370192989,), (1370192990,), (1370193002,), (1370193017,), (1370193018,), (1370193019,), (1370193020,), (1370193021,), (1370193119,), (1370193120,), (1370193132,), (1370193133,), (1370193152,), (1370193153,), (1370193155,), (1370193156,), (1370193179,), (1370193182,), (1370193196,), (1370193197,), (1370193224,), (1370193230,), (1370193237,), (1370193239,), (1370193241,), (1370193243,), (1370193256,), (1370193267,), (1370193297,), (1370193338,), (1370193375,), (1370193426,), (1370194061,), (1370194107,), (1370194135,), (1370194145,), (1370194152,), (1370194155,), (1370194230,), (1370194278,), (1370194342,), (1370194415,), (1370194504,), (1370194616,), (1370195882,), (1370195912,), (1370195987,), (1370196062,), (1370196125,), (1370196173,), (1370196535,), (1370196537,), (1370196560,), (1370196561,), (1370196573,), (1370196574,), (1370196593,), (1370196595,), (1370196612,), (1370196617,), (1370196674,), (1370196723,), (1370196775,), (1370196828,), (1370196859,), (1370196871,), (1370197028,), (1370197080,), (1370197112,), (1370197157,), (1370197203,), (1370197240,), (1370198193,), (1370198281,), (1370198352,), (1370198458,), (1370198574,), (1370198666,), (1370198942,), (1370198976,), (1370199010,), (1370199057,), (1370199093,), (1370199154,), (1370199232,), (1370199253,), (1370199262,), (1370199287,), (1370199316,), (1370199321,), (1370200070,), (1370200128,), (1370200137,), (1370200140,), (1370200170,), (1370200200,), (1370200219,), (1370200245,), (1370200283,), (1370200341,), (1370200385,), (1370200421,), (1370200568,), (1370200604,), (1370200667,), (1370200738,), (1370200808,), (1370200842,), (1370200860,), (1370200894,), (1370200901,), (1370200918,), (1370200931,), (1370200945,), (1370201332,), (1370201344,), (1370201351,), (1370201352,), (1370201361,), (1370201372,), (1370201419,), (1370201456,), (1370201500,), (1370201533,), (1370201556,), (1370201591,), (1370201684,), (1370201718,), (1370201755,), (1370201788,), (1370201835,), (1370201906,), (1370202482,), (1370202513,), (1370202546,), (1370202553,), (1370202555,), (1370202558,), (1370202673,), (1370202676,), (1370202681,), (1370202700,), (1370202746,), (1370202799,), (1370202848,), (1370202856,), (1370202880,), (1370202943,), (1370203006,), (1370203066,), (1370204012,), (1370204093,), (1370204164,), (1370204248,), (1370204274,), (1370204303,), (1370204424,), (1370204440,), (1370204459,), (1370204480,), (1370204518,), (1370204568,), (1370204629,), (1370204650,), (1370204653,), (1370204655,), (1370204668,), (1370204698,), (1370204958,), (1370205028,), (1370205056,), (1370205089,), (1370205111,), (1370205125,), (1370205197,), (1370205229,), (1370205237,), (1370205243,), (1370205258,), (1370205267,), (1370205351,), (1370205398,), (1370205436,), (1370205462,), (1370205479,), (1370205480,), (1370205608,), (1370205654,), (1370205707,), (1370205789,), (1370205839,), (1370205878,), (1370206131,), (1370206174,), (1370206177,), (1370206179,), (1370206190,), (1370206208,), (1370206310,), (1370206362,), (1370206395,), (1370206429,), (1370206468,), (1370206539,), (1370206618,), (1370206620,), (1370206633,), (1370206636,), (1370206638,), (1370206653,), (1370206957,), (1370206972,), (1370206982,), (1370207017,), (1370207032,), (1370207050,), (1370207265,), (1370207319,), (1370207387,), (1370207450,), (1370207517,), (1370207566,), (1370207691,), (1370207693,), (1370207695,), (1370207697,), (1370207724,), (1370207756,), (1370208212,), (1370208245,), (1370208275,), (1370208285,), (1370208291,), (1370208312,), (1370208359,), (1370208387,), (1370208396,), (1370208402,), (1370208409,), (1370208411,), (1370208413,), (1370208414,), (1370208457,), (1370208492,), (1370208523,), (1370208532,), (1370209619,), (1370209717,), (1370209835,), (1370209899,), (1370209967,), (1370210009,), (1370210119,), (1370210121,), (1370210124,), (1370210125,), (1370210152,), (1370210153,), (1370210168,), (1370210170,), (1370210185,), (1370210191,), (1370210205,), (1370210206,), (1370210274,), (1370210275,), (1370210283,), (1370210300,), (1370210302,), (1370210311,), (1370210513,), (1370210655,), (1370210761,), (1370210857,), (1370210954,), (1370211070,), (1370211940,), (1370211955,), (1370212025,), (1370212039,), (1370212095,), (1370212120,), (1370212198,), (1370212223,), (1370212282,), (1370212299,), (1370212324,), (1370212395,), (1370212585,), (1370212601,), (1370212606,), (1370212608,), (1370212622,), (1370212633,), (1370212677,), (1370212681,), (1370212726,), (1370212731,), (1370212742,), (1370212751,), (1370213023,), (1370213075,), (1370213121,), (1370213183,), (1370213227,), (1370213289,), (1370213554,), (1370213618,), (1370213655,), (1370213713,), (1370213751,), (1370213785,), (1370213861,), (1370213896,), (1370213933,), (1370213964,), (1370213967,), (1370213969,), (1370214040,), (1370214052,), (1370214056,), (1370214061,), (1370214064,), (1370214080,), (1370214105,), (1370214125,), (1370214126,), (1370214155,), (1370214198,), (1370214285,), (1370214590,), (1370214630,), (1370214649,), (1370214652,), (1370214661,), (1370214694,), (1370214856,), (1370214955,), (1370215056,), (1370215102,), (1370215144,), (1370215183,), (1370215662,), (1370215664,), (1370215688,), (1370215689,), (1370215692,), (1370215693,), (1370215694,), (1370215695,), (1370215696,), (1370215697,), (1370215707,), (1370215710,), (1370215864,), (1370215866,), (1370215869,), (1370215870,), (1370215891,), (1370215892,), (1370215934,), (1370215965,), (1370215996,), (1370216046,), (1370216085,), (1370216126,), (1370216571,), (1370216576,), (1370216609,), (1370216616,), (1370216643,), (1370216652,), (1370216671,), (1370216678,), (1370216680,), (1370216682,), (1370216686,), (1370216705,), (1370216832,), (1370216865,), (1370216895,), (1370216904,), (1370216938,), (1370216971,), (1370217004,), (1370217080,), (1370217128,), (1370217177,), (1370217217,), (1370217236,), (1370217836,), (1370217878,), (1370217912,), (1370217945,), (1370217972,), (1370218007,), (1370218023,), (1370218042,), (1370218045,), (1370218047,), (1370218050,), (1370218051,), (1370218200,), (1370218262,), (1370218339,), (1370218394,), (1370218431,), (1370218500,), (1370218884,), (1370218923,), (1370218947,), (1370218969,), (1370218986,), (1370219028,), (1370219143,), (1370219208,), (1370219262,), (1370219291,), (1370219336,), (1370219364,), (1370219386,), (1370219388,), (1370219393,), (1370219395,), (1370219406,), (1370219416,), (1370220272,), (1370220376,), (1370220417,), (1370220451,), (1370220485,), (1370220538,), (1370221096,), (1370221153,), (1370221225,), (1370221290,), (1370221399,), (1370221933,), (1370222027,), (1370222098,), (1370222197,), (1370222325,), (1370222415,), (1370222709,), (1370222787,), (1370222851,), (1370222912,), (1370223005,), (1370223128,), (1370223538,), (1370223542,), (1370223572,), (1370223584,), (1370223607,), (1370223619,), (1370223641,), (1370223654,), (1370223675,), (1370223684,), (1370223686,), (1370223687,), (1370223691,), (1370223693,), (1370223725,), (1370223766,), (1370223834,), (1370223899,), (1370224119,), (1370224211,), (1370224310,), (1370224478,), (1370224535,), (1370224573,), (1370225073,), (1370225111,), (1370225151,), (1370225185,), (1370225217,), (1370225252,), (1370225360,), (1370225392,), (1370225422,), (1370225455,), (1370225487,), (1370225520,), (1370225670,), (1370225673,), (1370225676,), (1370225679,), (1370225702,), (1370225704,), (1370225720,), (1370225745,), (1370225756,), (1370225766,), (1370225768,), (1370225770,), (1370226411,), (1370226421,), (1370226423,), (1370226439,), (1370226473,), (1370226480,), (1370226519,), (1370226550,), (1370226569,), (1370226583,), (1370226584,), (1370226585,), (1370226615,), (1370226628,), (1370226640,), (1370226645,), (1370226647,), (1370226648,), (1370226729,), (1370226740,), (1370226747,), (1370226756,), (1370226759,), (1370226770,), (1370226935,), (1370227035,), (1370227111,), (1370227162,), (1370227165,), (1370227168,), (1370227700,), (1370227719,), (1370227745,), (1370227768,), (1370227810,), (1370227899,), (1370228022,), (1370228024,), (1370228043,), (1370228105,), (1370228159,), (1370228198,), (1370228397,), (1370228457,), (1370228504,), (1370228547,), (1370228601,), (1370228602,), (1370229099,), (1370229195,), (1370229309,), (1370229409,), (1370229502,), (1370229644,), (1370229936,), (1370230047,), (1370230125,), (1370230169,), (1370230189,), (1370230191,), (1370230317,), (1370230345,), (1370230347,), (1370230349,), (1370230372,), (1370230395,), (1370230433,), (1370230475,), (1370230484,), (1370230510,), (1370230521,), (1370230527,), (1370231090,), (1370231140,), (1370231178,), (1370231205,), (1370231236,), (1370231275,), (1370231302,), (1370231349,), (1370231420,), (1370231479,), (1370231530,), (1370231554,), (1370231719,), (1370231796,), (1370231855,), (1370231916,), (1370231948,), (1370231982,), (1370232450,), (1370232525,), (1370232594,), (1370232634,), (1370232668,), (1370232720,), (1370232895,), (1370232959,), (1370233029,), (1370233070,), (1370233103,), (1370233141,), (1370233243,), (1370233278,), (1370233304,), (1370233328,), (1370233367,), (1370233410,), (1370233732,), (1370233750,), (1370233781,), (1370233804,), (1370233807,), (1370233824,), (1370233889,), (1370233891,), (1370233903,), (1370233909,), (1370233912,), (1370233915,), (1370233926,), (1370233984,), (1370234018,), (1370234048,), (1370234103,), (1370234139,), (1370234206,), (1370234251,), (1370234255,), (1370234261,), (1370234294,), (1370234331,), (1370235287,), (1370235321,), (1370235357,), (1370235373,), (1370235406,), (1370235446,), (1370235629,), (1370235697,), (1370235789,), (1370235852,), (1370235913,), (1370235937,), (1370235997,), (1370236046,), (1370236057,), (1370236064,), (1370236066,), (1370236068,), (1370236074,), (1370236082,), (1370236104,), (1370236112,), (1370236114,), (1370236122,), (1370236592,), (1370236627,), (1370236768,), (1370236922,), (1370236987,), (1370237049,), (1370237293,), (1370237363,), (1370237432,), (1370237478,), (1370237532,), (1370237609,), (1370237700,), (1370237730,), (1370237758,), (1370237771,), (1370237799,), (1370237866,), (1370237931,), (1370237975,), (1370238010,), (1370238050,), (1370238073,), (1370238078,), (1370238337,), (1370238339,), (1370238359,), (1370238391,), (1370238424,), (1370238450,), (1370238473,), (1370238510,), (1370238569,), (1370238599,), (1370238636,), (1370238676,), (1370238827,), (1370238889,), (1370238932,), (1370238965,), (1370238999,), (1370239031,), (1370239256,), (1370239281,), (1370239297,), (1370239306,), (1370239311,), (1370239332,), (1370239351,), (1370239368,), (1370239414,), (1370239468,), (1370239507,), (1370239549,), (1370276505,), (1370276508,), (1370276521,), (1370276525,), (1370276537,), (1370276543,), (1370276604,), (1370276626,), (1370276628,), (1370276631,), (1370276633,), (1370276635,), (1370276755,), (1370276790,), (1370276823,), (1370276858,), (1370276873,), (1370276876,), (1370277125,), (1370277156,), (1370277190,), (1370277222,), (1370277283,), (1370277335,), (1370277555,), (1370277587,), (1370277607,), (1370277609,), (1370277610,), (1370277611,), (1370277616,), (1370277619,), (1370277625,), (1370277642,), (1370277645,), (1370277672,), (1370278020,), (1370278073,), (1370278092,), (1370278108,), (1370278125,), (1370278168,), (1370278340,), (1370278345,), (1370278354,), (1370278373,), (1370278448,), (1370278454,), (1370278511,), (1370278578,), (1370278592,), (1370278594,), (1370278596,), (1370278606,), (1370278839,), (1370278843,), (1370278880,), (1370278884,), (1370278927,), (1370278933,), (1370278946,), (1370278950,), (1370278964,), (1370278965,), (1370278968,), (1370278969,), (1370278997,), (1370279030,), (1370279065,), (1370279094,), (1370279101,), (1370279109,), (1370279118,), (1370279120,), (1370279122,), (1370279124,), (1370279127,), (1370279130,), (1370279520,), (1370279570,), (1370279630,), (1370279684,), (1370279693,), (1370279778,), (1370279881,), (1370279919,), (1370279978,), (1370280003,), (1370280009,), (1370280014,), (1370280115,), (1370280148,), (1370280191,), (1370280242,), (1370280253,), (1370280255,), (1370280794,), (1370280799,), (1370280830,), (1370280893,), (1370280955,), (1370281017,), (1370280308,), (1370280311,), (1370280342,), (1370280382,), (1370280434,), (1370280457,), (1370280485,), (1370280516,), (1370280593,), (1370280645,), (1370280695,), (1370280722,), (1370281357,), (1370281412,), (1370281479,), (1370281515,), (1370281569,), (1370281618,), (1370281835,), (1370281894,), (1370281953,), (1370281987,), (1370282019,), (1370282059,), (1370282174,), (1370282181,), (1370282188,), (1370282190,), (1370282192,), (1370282193,), (1370282686,), (1370282739,), (1370282763,), (1370282769,), (1370282774,), (1370282779,), (1370282848,), (1370282862,), (1370282866,), (1370282869,), (1370282878,), (1370282880,), (1370282962,), (1370282965,), (1370282968,), (1370282971,), (1370282987,), (1370283027,), (1370283485,), (1370283527,), (1370283561,), (1370283596,), (1370283634,), (1370283664,), (1370283755,), (1370283785,), (1370283818,), (1370283848,), (1370283878,), (1370283903,), (1370283938,), (1370283954,), (1370283956,), (1370283963,), (1370284006,), (1370284024,), (1370284605,), (1370284650,), (1370284684,), (1370284729,), (1370284827,), (1370284895,), (1370285050,), (1370285128,), (1370285233,), (1370285330,), (1370285376,), (1370285415,), (1370286086,), (1370286119,), (1370286178,), (1370286268,), (1370286339,), (1370286381,), (1370286768,), (1370286867,), (1370286969,), (1370287097,), (1370287171,), (1370287597,), (1370287671,), (1370287750,), (1370287843,), (1370287941,), (1370288053,), (1370288309,), (1370288373,), (1370288438,), (1370288473,), (1370288509,), (1370288552,), (1370288903,), (1370288966,), (1370289037,), (1370289110,), (1370289185,), (1370289260,), (1370289516,), (1370289522,), (1370289580,), (1370289586,), (1370289592,), (1370289593,), (1370289599,), (1370289600,), (1370289622,), (1370289629,), (1370289669,), (1370289671,), (1370289800,), (1370289803,), (1370289805,), (1370289806,), (1370289811,), (1370289874,), (1370290124,), (1370290157,), (1370290171,), (1370290198,), (1370290224,), (1370290241,), (1370290456,), (1370290459,), (1370290462,), (1370290465,), (1370290467,), (1370290485,), (1370290610,), (1370290653,), (1370290690,), (1370290726,), (1370290739,), (1370290740,), (1370290879,), (1370290929,), (1370290973,), (1370291010,), (1370291014,), (1370291053,), (1370291509,), (1370291511,), (1370291522,), (1370291523,), (1370291542,), (1370291545,), (1370291606,), (1370291616,), (1370291624,), (1370291625,), (1370291644,), (1370291651,), (1370291701,), (1370291703,), (1370291705,), (1370291708,), (1370291710,), (1370291718,), (1370291827,), (1370291859,), (1370291868,), (1370291871,), (1370291874,), (1370291877,), (1370292229,), (1370292231,), (1370292237,), (1370292255,), (1370292294,), (1370292334,), (1370292353,), (1370292361,), (1370292363,), (1370292366,), (1370292382,), (1370292384,), (1370292396,), (1370292399,), (1370292409,), (1370292415,), (1370292419,), (1370292424,), (1370292575,), (1370292579,), (1370292582,), (1370292583,), (1370292613,), (1370292638,), (1370292689,), (1370292711,), (1370292745,), (1370292780,), (1370292842,), (1370292893,), (1370292941,), (1370292943,), (1370293011,), (1370293034,), (1370293050,), (1370293064,), (1370293207,), (1370293256,), (1370293320,), (1370293367,), (1370293401,), (1370293434,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03072025': {'nb_upload': 24, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24553425]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1370293434, 1370293401, 1370293367, 1370293320, 1370293256, 1370293207, 1370293064, 1370293050, 1370293034, 1370293011, 1370292943, 1370292941] map_info['map_portfolio_photo'] : {24553425: [1370293434, 1370293401, 1370293367, 1370293320, 1370293256, 1370293207, 1370293064, 1370293050, 1370293034, 1370293011, 1370292943, 1370292941, 1370292893, 1370292842, 1370292780, 1370292745, 1370292711, 1370292689, 1370292638, 1370292613, 1370292583, 1370292582, 1370292579, 1370292575]} final : True mtd_id 4302 list_pids : [1370293434, 1370293401, 1370293367, 1370293320, 1370293256, 1370293207, 1370293064, 1370293050, 1370293034, 1370293011, 1370292943, 1370292941] Looping around the photos to save general results len do output : 1 /24553425Didn'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, '3232160') ('4302', '24553425', '1370293434', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293401', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293367', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293320', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293256', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293207', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293064', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293050', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293034', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370293011', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370292943', None, None, None, None, None, '3232160') ('4302', None, None, None, None, None, None, None, '3232160') ('4302', '24553425', '1370292941', None, None, None, None, None, '3232160') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24553425', 'None', None, None, None, None, '3232160'), ('4302', '24553425', '1370293434', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293401', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293367', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293320', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293256', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293207', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293064', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293050', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293034', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370293011', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370292943', None, None, None, None, None, '3232160'), ('4302', '24553425', '1370292941', None, None, None, None, None, '3232160')] time used for this insertion : 0.0913395881652832 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.2140729427337646 time spend to save output : 0.09162545204162598 total time spend for step 5 : 1.3056983947753906 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 (3232160) 2.12user 2.17system 0:15.35elapsed 28%CPU (0avgtext+0avgdata 158796maxresident)k 6504inputs+6008outputs (61major+64011minor)pagefaults 0swaps