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 : 186342 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 (3970874) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3970874) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27999240 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3970874'] with mtr_portfolio_ids : ['27999240'] and first list_photo_ids : [] new path : /proc/186342/ Name: python3 Umask: 0002 State: R (running) Tgid: 186342 Ngid: 0 Pid: 186342 PPid: 186341 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 186342 NSpid: 186342 NSpgid: 184794 NSsid: 184794 VmPeak: 1106908 kB VmSize: 1106888 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97492 kB VmRSS: 97492 kB RssAnon: 59904 kB RssFile: 37588 kB RssShmem: 0 kB VmData: 865640 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 46 nonvoluntary_ctxt_switches: 109 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '186342', 'Ngid': '0', 'Pid': '186342', 'PPid': '186341', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '186342', 'NSpid': '186342', 'NSpgid': '184794', 'NSsid': '184794', 'VmPeak': '1106908 kB', 'VmSize': '1106888 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97492 kB', 'VmRSS': '97492 kB', 'RssAnon': '59904 kB', 'RssFile': '37588 kB', 'RssShmem': '0 kB', 'VmData': '865640 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '46', 'nonvoluntary_ctxt_switches': '109'} ('datou_batch_current', '186342', '1106908', '0', '1106888', '865640', '97492', b'', 'marlene', '3970874') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (27999240) 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 (3970874 ) ) 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 (27999240) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1390950620, 'portfolio_id': 27999240}, {'photo_id': 1390950584, 'portfolio_id': 27999240}, {'photo_id': 1390950538, 'portfolio_id': 27999240}, {'photo_id': 1390950500, 'portfolio_id': 27999240}, {'photo_id': 1390950374, 'portfolio_id': 27999240}, {'photo_id': 1390950366, 'portfolio_id': 27999240}, {'photo_id': 1390950334, 'portfolio_id': 27999240}, {'photo_id': 1390950329, 'portfolio_id': 27999240}, {'photo_id': 1390950294, 'portfolio_id': 27999240}, {'photo_id': 1390950292, 'portfolio_id': 27999240}, {'photo_id': 1390950256, 'portfolio_id': 27999240}, {'photo_id': 1390950252, 'portfolio_id': 27999240}, {'photo_id': 1390950215, 'portfolio_id': 27999240}, {'photo_id': 1390950214, 'portfolio_id': 27999240}, {'photo_id': 1390950180, 'portfolio_id': 27999240}, {'photo_id': 1390950179, 'portfolio_id': 27999240}, {'photo_id': 1390949746, 'portfolio_id': 27999240}, {'photo_id': 1390949703, 'portfolio_id': 27999240}, {'photo_id': 1390949652, 'portfolio_id': 27999240}, {'photo_id': 1390949573, 'portfolio_id': 27999240}, {'photo_id': 1390949486, 'portfolio_id': 27999240}, {'photo_id': 1390949405, 'portfolio_id': 27999240}, {'photo_id': 1390949089, 'portfolio_id': 27999240}, {'photo_id': 1390949045, 'portfolio_id': 27999240}, {'photo_id': 1390948866, 'portfolio_id': 27999240}, {'photo_id': 1390948707, 'portfolio_id': 27999240}, {'photo_id': 1390948667, 'portfolio_id': 27999240}, {'photo_id': 1390948623, 'portfolio_id': 27999240}, {'photo_id': 1390948564, 'portfolio_id': 27999240}, {'photo_id': 1390948526, 'portfolio_id': 27999240}, {'photo_id': 1390948482, 'portfolio_id': 27999240}, {'photo_id': 1390948311, 'portfolio_id': 27999240}, {'photo_id': 1390948304, 'portfolio_id': 27999240}, {'photo_id': 1390948274, 'portfolio_id': 27999240}, {'photo_id': 1390948263, 'portfolio_id': 27999240}, {'photo_id': 1390948231, 'portfolio_id': 27999240}, {'photo_id': 1390948220, 'portfolio_id': 27999240}, {'photo_id': 1390948176, 'portfolio_id': 27999240}, {'photo_id': 1390948175, 'portfolio_id': 27999240}, {'photo_id': 1390948133, 'portfolio_id': 27999240}, {'photo_id': 1390948132, 'portfolio_id': 27999240}, {'photo_id': 1390948092, 'portfolio_id': 27999240}, {'photo_id': 1390948090, 'portfolio_id': 27999240}, {'photo_id': 1390947911, 'portfolio_id': 27999240}, {'photo_id': 1390947870, 'portfolio_id': 27999240}, {'photo_id': 1390947815, 'portfolio_id': 27999240}, {'photo_id': 1390947748, 'portfolio_id': 27999240}, {'photo_id': 1390947684, 'portfolio_id': 27999240}, {'photo_id': 1390947593, 'portfolio_id': 27999240}, {'photo_id': 1390946717, 'portfolio_id': 27999240}, {'photo_id': 1390946637, 'portfolio_id': 27999240}, {'photo_id': 1390946542, 'portfolio_id': 27999240}, {'photo_id': 1390946468, 'portfolio_id': 27999240}] map_portfolio_id_photo_id: {27999240: [1390950620, 1390950584, 1390950538, 1390950500, 1390950374, 1390950366, 1390950334, 1390950329, 1390950294, 1390950292, 1390950256, 1390950252, 1390950215, 1390950214, 1390950180, 1390950179, 1390949746, 1390949703, 1390949652, 1390949573, 1390949486, 1390949405, 1390949089, 1390949045, 1390948866, 1390948707, 1390948667, 1390948623, 1390948564, 1390948526, 1390948482, 1390948311, 1390948304, 1390948274, 1390948263, 1390948231, 1390948220, 1390948176, 1390948175, 1390948133, 1390948132, 1390948092, 1390948090, 1390947911, 1390947870, 1390947815, 1390947748, 1390947684, 1390947593, 1390946717, 1390946637, 1390946542, 1390946468]} ##### 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.017317533493041992 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Oct 31 06:08:55 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 (27999240) 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 : 27999240 get user id for portfolio 27999240 get sub ptf for main ptf 27999240, type 3726 and hashtags ['Carton_gris', 'papier', 'cartonnette', 'flou', 'kraft', 'Carton_brun', 'autre_refus', 'environnement', 'plastique', 'mal_croppe', 'Teint_Dans_La_Masse', 'metal'] 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`=27999240 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','cartonnette','flou','kraft','Carton_brun','autre_refus','environnement','plastique','mal_croppe','Teint_Dans_La_Masse','metal')) 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`=27999240 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','cartonnette','flou','kraft','Carton_brun','autre_refus','environnement','plastique','mal_croppe','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 27999240, 'sub_port_id': 27999303, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916413, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 6)}, 'cartonnette': {'main_port_id': 27999240, 'sub_port_id': 27999304, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916414, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 6)}, 'flou': {'main_port_id': 27999240, 'sub_port_id': 27999305, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916415, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 6)}, 'plastique': {'main_port_id': 27999240, 'sub_port_id': 27999306, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916416, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 6)}, 'Carton_brun': {'main_port_id': 27999240, 'sub_port_id': 27999307, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916417, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 6)}, 'Carton_gris': {'main_port_id': 27999240, 'sub_port_id': 27999308, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916418, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 6)}, 'autre_refus': {'main_port_id': 27999240, 'sub_port_id': 27999309, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916419, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 6)}, 'kraft': {'main_port_id': 27999240, 'sub_port_id': 27999310, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916420, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 6)}, 'papier': {'main_port_id': 27999240, 'sub_port_id': 27999311, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916421, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 6)}, 'mal_croppe': {'main_port_id': 27999240, 'sub_port_id': 27999312, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916422, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 6)}, 'environnement': {'main_port_id': 27999240, 'sub_port_id': 27999313, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916423, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 6)}, 'Teint_Dans_La_Masse': {'main_port_id': 27999240, 'sub_port_id': 27999314, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916424, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 6)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27999303 , 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=27999240 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 (27999303) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27999240) result : ((1390946468,), (1390946542,), (1390946637,), (1390946717,), (1390947593,), (1390947684,), (1390947748,), (1390947815,), (1390947870,), (1390947911,), (1390948090,), (1390948092,), (1390948132,), (1390948133,), (1390948175,), (1390948176,), (1390948220,), (1390948231,), (1390948263,), (1390948274,), (1390948304,), (1390948311,), (1390948482,), (1390948526,), (1390948564,), (1390948623,), (1390948667,), (1390948707,), (1390948866,), (1390949045,), (1390949089,), (1390949405,), (1390949486,), (1390949573,), (1390949652,), (1390949703,), (1390949746,), (1390950179,), (1390950180,), (1390950214,), (1390950215,), (1390950252,), (1390950256,), (1390950292,), (1390950294,), (1390950329,), (1390950334,), (1390950366,), (1390950374,), (1390950500,), (1390950538,), (1390950584,), (1390950620,)) 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 (1390950500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27999304 , 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=27999240 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 (27999304) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27999240) result : ((1390946468,), (1390946542,), (1390946637,), (1390946717,), (1390947593,), (1390947684,), (1390947748,), (1390947815,), (1390947870,), (1390947911,), (1390948090,), (1390948092,), (1390948132,), (1390948133,), (1390948175,), (1390948176,), (1390948220,), (1390948231,), (1390948263,), (1390948274,), (1390948304,), (1390948311,), (1390948482,), (1390948526,), (1390948564,), (1390948623,), (1390948667,), (1390948707,), (1390948866,), (1390949045,), (1390949089,), (1390949405,), (1390949486,), (1390949573,), (1390949652,), (1390949703,), (1390949746,), (1390950179,), (1390950180,), (1390950214,), (1390950215,), (1390950252,), (1390950256,), (1390950292,), (1390950294,), (1390950329,), (1390950334,), (1390950366,), (1390950374,), (1390950500,), (1390950538,), (1390950584,), (1390950620,)) 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 (1390950500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27999305 , 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=27999240 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 (27999305) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27999240) result : ((1390946468,), (1390946542,), (1390946637,), (1390946717,), (1390947593,), (1390947684,), (1390947748,), (1390947815,), (1390947870,), (1390947911,), (1390948090,), (1390948092,), (1390948132,), (1390948133,), (1390948175,), (1390948176,), (1390948220,), (1390948231,), (1390948263,), (1390948274,), (1390948304,), (1390948311,), (1390948482,), (1390948526,), (1390948564,), (1390948623,), (1390948667,), (1390948707,), (1390948866,), (1390949045,), (1390949089,), (1390949405,), (1390949486,), (1390949573,), (1390949652,), (1390949703,), (1390949746,), (1390950179,), (1390950180,), (1390950214,), (1390950215,), (1390950252,), (1390950256,), (1390950292,), (1390950294,), (1390950329,), (1390950334,), (1390950366,), (1390950374,), (1390950500,), (1390950538,), (1390950584,), (1390950620,)) 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 (1390950500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27999306 , 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=27999240 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 (27999306) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27999240) result : ((1390946468,), (1390946542,), (1390946637,), (1390946717,), (1390947593,), (1390947684,), (1390947748,), (1390947815,), (1390947870,), (1390947911,), (1390948090,), (1390948092,), (1390948132,), (1390948133,), (1390948175,), (1390948176,), (1390948220,), (1390948231,), (1390948263,), (1390948274,), (1390948304,), (1390948311,), (1390948482,), (1390948526,), (1390948564,), (1390948623,), (1390948667,), (1390948707,), (1390948866,), (1390949045,), (1390949089,), (1390949405,), (1390949486,), (1390949573,), (1390949652,), (1390949703,), (1390949746,), (1390950179,), (1390950180,), (1390950214,), (1390950215,), (1390950252,), (1390950256,), (1390950292,), (1390950294,), (1390950329,), (1390950334,), (1390950366,), (1390950374,), (1390950500,), (1390950538,), (1390950584,), (1390950620,)) 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 (1390950500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27999307 , 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=27999240 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 (27999307) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27999240) result : ((1390946468,), (1390946542,), (1390946637,), (1390946717,), (1390947593,), (1390947684,), (1390947748,), (1390947815,), (1390947870,), (1390947911,), (1390948090,), (1390948092,), (1390948132,), (1390948133,), (1390948175,), (1390948176,), (1390948220,), (1390948231,), (1390948263,), (1390948274,), (1390948304,), (1390948311,), (1390948482,), (1390948526,), (1390948564,), (1390948623,), (1390948667,), (1390948707,), (1390948866,), (1390949045,), (1390949089,), (1390949405,), (1390949486,), (1390949573,), (1390949652,), (1390949703,), (1390949746,), (1390950179,), (1390950180,), (1390950214,), (1390950215,), (1390950252,), (1390950256,), (1390950292,), (1390950294,), (1390950329,), (1390950334,), (1390950366,), (1390950374,), (1390950500,), (1390950538,), (1390950584,), (1390950620,)) 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 (1390950500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27999308 , 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=27999240 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 (27999308) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27999240) result : ((1390946468,), (1390946542,), (1390946637,), (1390946717,), (1390947593,), (1390947684,), (1390947748,), (1390947815,), (1390947870,), (1390947911,), (1390948090,), (1390948092,), (1390948132,), (1390948133,), (1390948175,), (1390948176,), (1390948220,), (1390948231,), (1390948263,), (1390948274,), (1390948304,), (1390948311,), (1390948482,), (1390948526,), (1390948564,), (1390948623,), (1390948667,), (1390948707,), (1390948866,), (1390949045,), (1390949089,), (1390949405,), (1390949486,), (1390949573,), (1390949652,), (1390949703,), (1390949746,), (1390950179,), (1390950180,), (1390950214,), (1390950215,), (1390950252,), (1390950256,), (1390950292,), (1390950294,), (1390950329,), (1390950334,), (1390950366,), (1390950374,), (1390950500,), (1390950538,), (1390950584,), (1390950620,)) 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 (1390950500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27999309 , 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=27999240 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 (27999309) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27999240) result : ((1390946468,), (1390946542,), (1390946637,), (1390946717,), (1390947593,), (1390947684,), (1390947748,), (1390947815,), (1390947870,), (1390947911,), (1390948090,), (1390948092,), (1390948132,), (1390948133,), (1390948175,), (1390948176,), (1390948220,), (1390948231,), (1390948263,), (1390948274,), (1390948304,), (1390948311,), (1390948482,), (1390948526,), (1390948564,), (1390948623,), (1390948667,), (1390948707,), (1390948866,), (1390949045,), (1390949089,), (1390949405,), (1390949486,), (1390949573,), (1390949652,), (1390949703,), (1390949746,), (1390950179,), (1390950180,), (1390950214,), (1390950215,), (1390950252,), (1390950256,), (1390950292,), (1390950294,), (1390950329,), (1390950334,), (1390950366,), (1390950374,), (1390950500,), (1390950538,), (1390950584,), (1390950620,)) 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 (1390950500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27999310 , 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=27999240 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 (27999310) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27999240) result : ((1390946468,), (1390946542,), (1390946637,), (1390946717,), (1390947593,), (1390947684,), (1390947748,), (1390947815,), (1390947870,), (1390947911,), (1390948090,), (1390948092,), (1390948132,), (1390948133,), (1390948175,), (1390948176,), (1390948220,), (1390948231,), (1390948263,), (1390948274,), (1390948304,), (1390948311,), (1390948482,), (1390948526,), (1390948564,), (1390948623,), (1390948667,), (1390948707,), (1390948866,), (1390949045,), (1390949089,), (1390949405,), (1390949486,), (1390949573,), (1390949652,), (1390949703,), (1390949746,), (1390950179,), (1390950180,), (1390950214,), (1390950215,), (1390950252,), (1390950256,), (1390950292,), (1390950294,), (1390950329,), (1390950334,), (1390950366,), (1390950374,), (1390950500,), (1390950538,), (1390950584,), (1390950620,)) 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 (1390950500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27999311 , 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=27999240 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 (27999311) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27999240) result : ((1390946468,), (1390946542,), (1390946637,), (1390946717,), (1390947593,), (1390947684,), (1390947748,), (1390947815,), (1390947870,), (1390947911,), (1390948090,), (1390948092,), (1390948132,), (1390948133,), (1390948175,), (1390948176,), (1390948220,), (1390948231,), (1390948263,), (1390948274,), (1390948304,), (1390948311,), (1390948482,), (1390948526,), (1390948564,), (1390948623,), (1390948667,), (1390948707,), (1390948866,), (1390949045,), (1390949089,), (1390949405,), (1390949486,), (1390949573,), (1390949652,), (1390949703,), (1390949746,), (1390950179,), (1390950180,), (1390950214,), (1390950215,), (1390950252,), (1390950256,), (1390950292,), (1390950294,), (1390950329,), (1390950334,), (1390950366,), (1390950374,), (1390950500,), (1390950538,), (1390950584,), (1390950620,)) 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 (1390950500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27999312 , 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=27999240 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 (27999312) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27999240) result : ((1390946468,), (1390946542,), (1390946637,), (1390946717,), (1390947593,), (1390947684,), (1390947748,), (1390947815,), (1390947870,), (1390947911,), (1390948090,), (1390948092,), (1390948132,), (1390948133,), (1390948175,), (1390948176,), (1390948220,), (1390948231,), (1390948263,), (1390948274,), (1390948304,), (1390948311,), (1390948482,), (1390948526,), (1390948564,), (1390948623,), (1390948667,), (1390948707,), (1390948866,), (1390949045,), (1390949089,), (1390949405,), (1390949486,), (1390949573,), (1390949652,), (1390949703,), (1390949746,), (1390950179,), (1390950180,), (1390950214,), (1390950215,), (1390950252,), (1390950256,), (1390950292,), (1390950294,), (1390950329,), (1390950334,), (1390950366,), (1390950374,), (1390950500,), (1390950538,), (1390950584,), (1390950620,)) 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 (1390950500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27999313 , 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=27999240 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 (27999313) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27999240) result : ((1390946468,), (1390946542,), (1390946637,), (1390946717,), (1390947593,), (1390947684,), (1390947748,), (1390947815,), (1390947870,), (1390947911,), (1390948090,), (1390948092,), (1390948132,), (1390948133,), (1390948175,), (1390948176,), (1390948220,), (1390948231,), (1390948263,), (1390948274,), (1390948304,), (1390948311,), (1390948482,), (1390948526,), (1390948564,), (1390948623,), (1390948667,), (1390948707,), (1390948866,), (1390949045,), (1390949089,), (1390949405,), (1390949486,), (1390949573,), (1390949652,), (1390949703,), (1390949746,), (1390950179,), (1390950180,), (1390950214,), (1390950215,), (1390950252,), (1390950256,), (1390950292,), (1390950294,), (1390950329,), (1390950334,), (1390950366,), (1390950374,), (1390950500,), (1390950538,), (1390950584,), (1390950620,)) 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 (1390950500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27999314 , 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=27999240 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 (27999314) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27999240) result : ((1390946468,), (1390946542,), (1390946637,), (1390946717,), (1390947593,), (1390947684,), (1390947748,), (1390947815,), (1390947870,), (1390947911,), (1390948090,), (1390948092,), (1390948132,), (1390948133,), (1390948175,), (1390948176,), (1390948220,), (1390948231,), (1390948263,), (1390948274,), (1390948304,), (1390948311,), (1390948482,), (1390948526,), (1390948564,), (1390948623,), (1390948667,), (1390948707,), (1390948866,), (1390949045,), (1390949089,), (1390949405,), (1390949486,), (1390949573,), (1390949652,), (1390949703,), (1390949746,), (1390950179,), (1390950180,), (1390950214,), (1390950215,), (1390950252,), (1390950256,), (1390950292,), (1390950294,), (1390950329,), (1390950334,), (1390950366,), (1390950374,), (1390950500,), (1390950538,), (1390950584,), (1390950620,)) 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 (1390950500) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27999240 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','cartonnette','flou','kraft','Carton_brun','autre_refus','environnement','plastique','mal_croppe','Teint_Dans_La_Masse','metal')) 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`=27999240 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','cartonnette','flou','kraft','Carton_brun','autre_refus','environnement','plastique','mal_croppe','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 27999240, 'sub_port_id': 27999315, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916425, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 12)}, 'cartonnette': {'main_port_id': 27999240, 'sub_port_id': 27999316, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916426, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 12)}, 'flou': {'main_port_id': 27999240, 'sub_port_id': 27999317, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916427, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 12)}, 'plastique': {'main_port_id': 27999240, 'sub_port_id': 27999318, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916428, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 12)}, 'Carton_brun': {'main_port_id': 27999240, 'sub_port_id': 27999319, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916429, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 12)}, 'Carton_gris': {'main_port_id': 27999240, 'sub_port_id': 27999320, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916430, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 12)}, 'autre_refus': {'main_port_id': 27999240, 'sub_port_id': 27999321, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916431, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 12)}, 'kraft': {'main_port_id': 27999240, 'sub_port_id': 27999322, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916432, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 12)}, 'papier': {'main_port_id': 27999240, 'sub_port_id': 27999323, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916433, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 12)}, 'mal_croppe': {'main_port_id': 27999240, 'sub_port_id': 27999324, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916434, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 12)}, 'environnement': {'main_port_id': 27999240, 'sub_port_id': 27999325, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916435, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 12), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 12)}, 'Teint_Dans_La_Masse': {'main_port_id': 27999240, 'sub_port_id': 27999326, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18916436, 'last_updated_at': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 6, 6, 12)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27999315,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27999303 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27999316,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27999304 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27999317,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27999305 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27999318,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27999306 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27999319,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27999307 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27999320,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27999308 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27999321,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27999309 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27999322,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27999310 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27999323,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27999311 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27999324,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27999312 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27999325,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27999313 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27999326,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27999314 lien utilise dans velours : https://marlene.fotonower.com/velours/27999315,27999316,27999317,27999318,27999319,27999320,27999321,27999322,27999323,27999324,27999325,27999326?tags=metal,cartonnette,flou,plastique,Carton_brun,Carton_gris,autre_refus,kraft,papier,mal_croppe,environnement,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27999240]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1390950620, 1390950584, 1390950538, 1390950500, 1390950374, 1390950366, 1390950334, 1390950329, 1390950294, 1390950292, 1390950256, 1390950252, 1390950215, 1390950214, 1390950180, 1390950179, 1390949746, 1390949703, 1390949652, 1390949573, 1390949486, 1390949405] map_info['map_portfolio_photo'] : {27999240: [1390950620, 1390950584, 1390950538, 1390950500, 1390950374, 1390950366, 1390950334, 1390950329, 1390950294, 1390950292, 1390950256, 1390950252, 1390950215, 1390950214, 1390950180, 1390950179, 1390949746, 1390949703, 1390949652, 1390949573, 1390949486, 1390949405, 1390949089, 1390949045, 1390948866, 1390948707, 1390948667, 1390948623, 1390948564, 1390948526, 1390948482, 1390948311, 1390948304, 1390948274, 1390948263, 1390948231, 1390948220, 1390948176, 1390948175, 1390948133, 1390948132, 1390948092, 1390948090, 1390947911, 1390947870, 1390947815, 1390947748, 1390947684, 1390947593, 1390946717, 1390946637, 1390946542, 1390946468]} final : False mtd_id 4302 list_pids : [1390950620, 1390950584, 1390950538, 1390950500, 1390950374, 1390950366, 1390950334, 1390950329, 1390950294, 1390950292, 1390950256, 1390950252, 1390950215, 1390950214, 1390950180, 1390950179, 1390949746, 1390949703, 1390949652, 1390949573, 1390949486, 1390949405] Looping around the photos to save general results len do output : 1 /27999240. 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, '3970874') ('4302', '27999240', '1390950620', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950584', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950538', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950500', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950374', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950366', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950334', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950329', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950294', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950292', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950256', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950252', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950215', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950214', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950180', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950179', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949746', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949703', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949652', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949573', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949486', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949405', None, None, None, None, None, '3970874') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 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, '27999240', "{'metal': 27999303, 'cartonnette': 27999304, 'flou': 27999305, 'plastique': 27999306, 'Carton_brun': 27999307, 'Carton_gris': 27999308, 'autre_refus': 27999309, 'kraft': 27999310, 'papier': 27999311, 'mal_croppe': 27999312, 'environnement': 27999313, 'Teint_Dans_La_Masse': 27999314}", None, None, None, None, '3970874'), ('4302', '27999240', '1390950620', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950584', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950538', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950500', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950374', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950366', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950334', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950329', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950294', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950292', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950256', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950252', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950215', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950214', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950180', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950179', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390949746', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390949703', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390949652', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390949573', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390949486', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390949405', None, None, None, None, None, '3970874')] time used for this insertion : 0.06970787048339844 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4002091884613037 time spend to save output : 0.07008862495422363 total time spend for step 1 : 0.47029781341552734 step2:final Fri Oct 31 06:08:56 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 (27999240) 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 27999240 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1390946717,1390948866,1390946637,1390948311,1390948304,1390946542,1390948274,1390948263,1390946468,1390947911,1390947870,1390947815,1390947748,1390947684,1390947593,1390948220,1390948231,1390948175,1390948176,1390948132,1390948133,1390948090,1390948092,1390948707,1390948667,1390948623,1390948564,1390948526,1390948482,1390949089,1390949045,1390949746,1390949703,1390949652,1390949573,1390949486,1390949405,1390950374,1390950366,1390950334,1390950329,1390950292,1390950294,1390950252,1390950256,1390950214,1390950215,1390950180,1390950179,1390950620,1390950584,1390950538,1390950500); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27999240]) Inside saveOutput : final : False verbose : True original output for save of step final : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} new output for save of step final : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} [1390950620, 1390950584, 1390950538, 1390950500, 1390950374, 1390950366, 1390950334, 1390950329, 1390950294, 1390950292, 1390950256, 1390950252, 1390950215, 1390950214, 1390950180, 1390950179, 1390949746, 1390949703, 1390949652, 1390949573, 1390949486, 1390949405] map_info['map_portfolio_photo'] : {27999240: [1390950620, 1390950584, 1390950538, 1390950500, 1390950374, 1390950366, 1390950334, 1390950329, 1390950294, 1390950292, 1390950256, 1390950252, 1390950215, 1390950214, 1390950180, 1390950179, 1390949746, 1390949703, 1390949652, 1390949573, 1390949486, 1390949405, 1390949089, 1390949045, 1390948866, 1390948707, 1390948667, 1390948623, 1390948564, 1390948526, 1390948482, 1390948311, 1390948304, 1390948274, 1390948263, 1390948231, 1390948220, 1390948176, 1390948175, 1390948133, 1390948132, 1390948092, 1390948090, 1390947911, 1390947870, 1390947815, 1390947748, 1390947684, 1390947593, 1390946717, 1390946637, 1390946542, 1390946468]} final : False mtd_id 4302 list_pids : [1390950620, 1390950584, 1390950538, 1390950500, 1390950374, 1390950366, 1390950334, 1390950329, 1390950294, 1390950292, 1390950256, 1390950252, 1390950215, 1390950214, 1390950180, 1390950179, 1390949746, 1390949703, 1390949652, 1390949573, 1390949486, 1390949405] Looping around the photos to save general results len do output : 22 /1390950620.Didn't retrieve data . /1390950584.Didn't retrieve data . /1390950538.Didn't retrieve data . /1390950500.Didn't retrieve data . /1390950374.Didn't retrieve data . /1390950366.Didn't retrieve data . /1390950334.Didn't retrieve data . /1390950329.Didn't retrieve data . /1390950294.Didn't retrieve data . /1390950292.Didn't retrieve data . /1390950256.Didn't retrieve data . /1390950252.Didn't retrieve data . /1390950215.Didn't retrieve data . /1390950214.Didn't retrieve data . /1390950180.Didn't retrieve data . /1390950179.Didn't retrieve data . /1390949746.Didn't retrieve data . /1390949703.Didn't retrieve data . /1390949652.Didn't retrieve data . /1390949573.Didn't retrieve data . /1390949486.Didn't retrieve data . /1390949405.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, '3970874') ('4302', '27999240', '1390950620', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950584', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950538', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950500', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950374', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950366', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950334', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950329', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950294', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950292', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950256', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950252', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950215', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950214', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950180', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950179', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949746', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949703', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949652', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949573', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949486', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949405', None, None, None, None, None, '3970874') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 66 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', '27999240', '1390950620', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390950584', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390950538', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390950500', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390950374', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390950366', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390950334', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390950329', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390950294', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390950292', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390950256', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390950252', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390950215', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390950214', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390950180', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390950179', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390949746', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390949703', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390949652', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390949573', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390949486', '0.0', None, None, None, None, '3970874'), ('4302', '27999240', '1390949405', '0.0', None, None, None, None, '3970874')] time used for this insertion : 0.013721704483032227 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.05118393898010254 time spend to save output : 0.01476430892944336 total time spend for step 2 : 0.0659482479095459 step3:velours_tree Fri Oct 31 06:08:56 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 : {27999240: [{'metal': 27999303, 'cartonnette': 27999304, 'flou': 27999305, 'plastique': 27999306, 'Carton_brun': 27999307, 'Carton_gris': 27999308, 'autre_refus': 27999309, 'kraft': 27999310, 'papier': 27999311, 'mal_croppe': 27999312, 'environnement': 27999313, 'Teint_Dans_La_Masse': 27999314}]} input_args_next_step : {27999240: ()} output_args : {27999240: [{'metal': 27999303, 'cartonnette': 27999304, 'flou': 27999305, 'plastique': 27999306, 'Carton_brun': 27999307, 'Carton_gris': 27999308, 'autre_refus': 27999309, 'kraft': 27999310, 'papier': 27999311, 'mal_croppe': 27999312, 'environnement': 27999313, 'Teint_Dans_La_Masse': 27999314}]} args : 27999240 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 : ({'metal': 27999303, 'cartonnette': 27999304, 'flou': 27999305, 'plastique': 27999306, 'Carton_brun': 27999307, 'Carton_gris': 27999308, 'autre_refus': 27999309, 'kraft': 27999310, 'papier': 27999311, 'mal_croppe': 27999312, 'environnement': 27999313, 'Teint_Dans_La_Masse': 27999314},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27999240) 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([27999240]) 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.270672082901001 time spend to save output : 5.221366882324219e-05 total time spend for step 3 : 0.2707242965698242 step4:send_mail_cod Fri Oct 31 06:08:56 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 : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} input_args_next_step : {1390950620: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390950620 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390950584 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390950538 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390950500 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390950374 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390950366 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390950334 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390950329 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390950294 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390950292 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390950256 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390950252 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390950215 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390950214 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390950180 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390950179 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390949746 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390949703 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390949652 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390949573 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390949486 depend.output_id : 0 input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ()} output_args : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',)} args : 1390949405 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 : {27999240: [{'metal': 27999303, 'cartonnette': 27999304, 'flou': 27999305, 'plastique': 27999306, 'Carton_brun': 27999307, 'Carton_gris': 27999308, 'autre_refus': 27999309, 'kraft': 27999310, 'papier': 27999311, 'mal_croppe': 27999312, 'environnement': 27999313, 'Teint_Dans_La_Masse': 27999314}]} input_args_next_step : {1390950620: ('0.0',), 1390950584: ('0.0',), 1390950538: ('0.0',), 1390950500: ('0.0',), 1390950374: ('0.0',), 1390950366: ('0.0',), 1390950334: ('0.0',), 1390950329: ('0.0',), 1390950294: ('0.0',), 1390950292: ('0.0',), 1390950256: ('0.0',), 1390950252: ('0.0',), 1390950215: ('0.0',), 1390950214: ('0.0',), 1390950180: ('0.0',), 1390950179: ('0.0',), 1390949746: ('0.0',), 1390949703: ('0.0',), 1390949652: ('0.0',), 1390949573: ('0.0',), 1390949486: ('0.0',), 1390949405: ('0.0',), 27999240: ()} output_args : {27999240: [{'metal': 27999303, 'cartonnette': 27999304, 'flou': 27999305, 'plastique': 27999306, 'Carton_brun': 27999307, 'Carton_gris': 27999308, 'autre_refus': 27999309, 'kraft': 27999310, 'papier': 27999311, 'mal_croppe': 27999312, 'environnement': 27999313, 'Teint_Dans_La_Masse': 27999314}]} args : 27999240 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 :23, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27999240) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1390950620,1390950584,1390950538,1390950500,1390950374,1390950366,1390950334,1390950329,1390950294,1390950292,1390950256,1390950252,1390950215,1390950214,1390950180,1390950179,1390949746,1390949703,1390949652,1390949573,1390949486,1390949405) Found this number of photos: 22 ##### Call download_photos : nb_thread : 5 begin to download photo : 1390949405 begin to download photo : 1390949746 begin to download photo : 1390950252 begin to download photo : 1390950334 begin to download photo : 1390950584 download finish for photo 1390950252 begin to download photo : 1390950256 download finish for photo 1390950584 begin to download photo : 1390950620 download finish for photo 1390949405 download finish for photo 1390949746 begin to download photo : 1390949486 begin to download photo : 1390950179 download finish for photo 1390950334 begin to download photo : 1390950366 download finish for photo 1390950620 download finish for photo 1390950366 begin to download photo : 1390950374 download finish for photo 1390950256 begin to download photo : 1390950292 download finish for photo 1390949486 begin to download photo : 1390949573 download finish for photo 1390950179 begin to download photo : 1390950180 download finish for photo 1390950374 begin to download photo : 1390950500 download finish for photo 1390950292 begin to download photo : 1390950294 download finish for photo 1390949573 begin to download photo : 1390949652 download finish for photo 1390950180 begin to download photo : 1390950214 download finish for photo 1390950500 begin to download photo : 1390950538 download finish for photo 1390950294 begin to download photo : 1390950329 download finish for photo 1390949652 begin to download photo : 1390949703 download finish for photo 1390950214 begin to download photo : 1390950215 download finish for photo 1390950538 download finish for photo 1390950329 download finish for photo 1390950215 download finish for photo 1390949703 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette279993031761887337/ imagette279993041761887337/ imagette279993051761887337/ imagette279993061761887337/ imagette279993091761887337/ imagette279993101761887337/ imagette279993121761887337/ imagette279993071761887337/ imagette279993081761887337/ imagette279993141761887337/ length of list_filenames : 22 ; length of list_pids : 22 ; length of list_args : 22 results_Auto_P27999240_31-10-2025_06_08_57.pdf 27999303 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27999303 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279993031761887337 27999304 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27999304 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279993041761887337 27999305 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27999305 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279993051761887337 27999306 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27999306 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279993061761887337 27999309 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27999309 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279993091761887337 27999310 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27999310 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279993101761887337 27999312 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27999312 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279993121761887337 27999307 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27999307 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279993071761887337 27999308 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27999308 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279993081761887337 27999314 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27999314 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279993141761887337 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27999240 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27999315,27999316,27999317,27999318,27999319,27999320,27999321,27999322,27999323,27999324,27999325,27999326?tags=metal,cartonnette,flou,plastique,Carton_brun,Carton_gris,autre_refus,kraft,papier,mal_croppe,environnement,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1390950620] : ('0.0',) no score found for photo 1390950620 We are sending mail with results at report@fotonower.com args[1390950584] : ('0.0',) no score found for photo 1390950584 We are sending mail with results at report@fotonower.com args[1390950538] : ('0.0',) no score found for photo 1390950538 We are sending mail with results at report@fotonower.com args[1390950500] : ('0.0',) no score found for photo 1390950500 We are sending mail with results at report@fotonower.com args[1390950374] : ('0.0',) no score found for photo 1390950374 We are sending mail with results at report@fotonower.com args[1390950366] : ('0.0',) no score found for photo 1390950366 We are sending mail with results at report@fotonower.com args[1390950334] : ('0.0',) no score found for photo 1390950334 We are sending mail with results at report@fotonower.com args[1390950329] : ('0.0',) no score found for photo 1390950329 We are sending mail with results at report@fotonower.com args[1390950294] : ('0.0',) no score found for photo 1390950294 We are sending mail with results at report@fotonower.com args[1390950292] : ('0.0',) no score found for photo 1390950292 We are sending mail with results at report@fotonower.com args[1390950256] : ('0.0',) no score found for photo 1390950256 We are sending mail with results at report@fotonower.com args[1390950252] : ('0.0',) no score found for photo 1390950252 We are sending mail with results at report@fotonower.com args[1390950215] : ('0.0',) no score found for photo 1390950215 We are sending mail with results at report@fotonower.com args[1390950214] : ('0.0',) no score found for photo 1390950214 We are sending mail with results at report@fotonower.com args[1390950180] : ('0.0',) no score found for photo 1390950180 We are sending mail with results at report@fotonower.com args[1390950179] : ('0.0',) no score found for photo 1390950179 We are sending mail with results at report@fotonower.com args[1390949746] : ('0.0',) no score found for photo 1390949746 We are sending mail with results at report@fotonower.com args[1390949703] : ('0.0',) no score found for photo 1390949703 We are sending mail with results at report@fotonower.com args[1390949652] : ('0.0',) no score found for photo 1390949652 We are sending mail with results at report@fotonower.com args[1390949573] : ('0.0',) no score found for photo 1390949573 We are sending mail with results at report@fotonower.com args[1390949486] : ('0.0',) no score found for photo 1390949486 We are sending mail with results at report@fotonower.com args[1390949405] : ('0.0',) no score found for photo 1390949405 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_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27999240 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_P27999240_31-10-2025_06_08_57.pdf results_Auto_P27999240_31-10-2025_06_08_57.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27999240_31-10-2025_06_08_57.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','27999240','results_Auto_P27999240_31-10-2025_06_08_57.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27999240_31-10-2025_06_08_57.pdf','pdf','','0.18','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27999240]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1390950620, 1390950584, 1390950538, 1390950500, 1390950374, 1390950366, 1390950334, 1390950329, 1390950294, 1390950292, 1390950256, 1390950252, 1390950215, 1390950214, 1390950180, 1390950179, 1390949746, 1390949703, 1390949652, 1390949573, 1390949486, 1390949405] map_info['map_portfolio_photo'] : {27999240: [1390950620, 1390950584, 1390950538, 1390950500, 1390950374, 1390950366, 1390950334, 1390950329, 1390950294, 1390950292, 1390950256, 1390950252, 1390950215, 1390950214, 1390950180, 1390950179, 1390949746, 1390949703, 1390949652, 1390949573, 1390949486, 1390949405, 1390949089, 1390949045, 1390948866, 1390948707, 1390948667, 1390948623, 1390948564, 1390948526, 1390948482, 1390948311, 1390948304, 1390948274, 1390948263, 1390948231, 1390948220, 1390948176, 1390948175, 1390948133, 1390948132, 1390948092, 1390948090, 1390947911, 1390947870, 1390947815, 1390947748, 1390947684, 1390947593, 1390946717, 1390946637, 1390946542, 1390946468]} final : False mtd_id 4302 list_pids : [1390950620, 1390950584, 1390950538, 1390950500, 1390950374, 1390950366, 1390950334, 1390950329, 1390950294, 1390950292, 1390950256, 1390950252, 1390950215, 1390950214, 1390950180, 1390950179, 1390949746, 1390949703, 1390949652, 1390949573, 1390949486, 1390949405] 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, '3970874') ('4302', '27999240', '1390950620', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950584', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950538', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950500', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950374', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950366', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950334', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950329', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950294', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950292', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950256', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950252', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950215', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950214', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950180', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950179', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949746', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949703', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949652', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949573', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949486', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949405', None, None, None, None, None, '3970874') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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', '27999240', '1390950620', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950584', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950538', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950500', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950374', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950366', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950334', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950329', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950294', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950292', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950256', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950252', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950215', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950214', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950180', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950179', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390949746', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390949703', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390949652', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390949573', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390949486', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390949405', None, None, None, None, None, '3970874')] time used for this insertion : 0.012807369232177734 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4666571617126465 time spend to save output : 0.013104438781738281 total time spend for step 4 : 2.4797616004943848 step5:split_time_score Fri Oct 31 06:08:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['27999240'] 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 : [('27999240',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27999240) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1390950584: {'path': 'temp/1761887336_186342_1390950584_10cd0a13318ce4dfab5dd0af0a51b9fb.jpg', 'extension': 'jpg'}, 1390950620: {'path': 'temp/1761887336_186342_1390950620_ac79ae4803f69afe8abe45221e3bd8c4.jpg', 'extension': 'jpg'}, 1390950334: {'path': 'temp/1761887336_186342_1390950334_a22c7b8c118c236a41c63ac1b369c724.jpg', 'extension': 'jpg'}, 1390950366: {'path': 'temp/1761887336_186342_1390950366_546e0fee22da4a304645b50455fb284c.jpg', 'extension': 'jpg'}, 1390950374: {'path': 'temp/1761887336_186342_1390950374_93cb4584dd6718ef75bd4c97f7c12e52.jpg', 'extension': 'jpg'}, 1390950500: {'path': 'temp/1761887336_186342_1390950500_f1b1abc38365eae18134cac2305e77d8.jpg', 'extension': 'jpg'}, 1390950538: {'path': 'temp/1761887336_186342_1390950538_be4f6ea03f31ac07f4aef9a1a6c634cf.jpg', 'extension': 'jpg'}, 1390950252: {'path': 'temp/1761887336_186342_1390950252_7bce2ccda2a44a435b3b0e325730dbd5.jpg', 'extension': 'jpg'}, 1390950256: {'path': 'temp/1761887336_186342_1390950256_3b5c6dfd6fd40f400a96cf73fcdedc17.jpg', 'extension': 'jpg'}, 1390950292: {'path': 'temp/1761887336_186342_1390950292_448689f47cdba48ac6c6f0101bf41fa5.jpg', 'extension': 'jpg'}, 1390950294: {'path': 'temp/1761887336_186342_1390950294_319eb2a18d5632bda3b37416d22966f4.jpg', 'extension': 'jpg'}, 1390950329: {'path': 'temp/1761887336_186342_1390950329_97392891ec311c80b8a18a72c1b80b8e.jpg', 'extension': 'jpg'}, 1390949746: {'path': 'temp/1761887336_186342_1390949746_2aaaa62d962fac6df3a68380a2aa4646.jpg', 'extension': 'jpg'}, 1390950179: {'path': 'temp/1761887336_186342_1390950179_2d1d8ed45cd0ea4312c195beed068547.jpg', 'extension': 'jpg'}, 1390950180: {'path': 'temp/1761887336_186342_1390950180_2088227c3337773de673861c3470d164.jpg', 'extension': 'jpg'}, 1390950214: {'path': 'temp/1761887336_186342_1390950214_603989dc4a59789bf6e4ec5c5c28d237.jpg', 'extension': 'jpg'}, 1390950215: {'path': 'temp/1761887336_186342_1390950215_8d541acaa9964e5a1dc6dbeaa76f0a7b.jpg', 'extension': 'jpg'}, 1390949405: {'path': 'temp/1761887336_186342_1390949405_9322d31458154d5b9d78556170f0a2b5.jpg', 'extension': 'jpg'}, 1390949486: {'path': 'temp/1761887336_186342_1390949486_3d6c66d3be01b7133cfc23bbd340c882.jpg', 'extension': 'jpg'}, 1390949573: {'path': 'temp/1761887336_186342_1390949573_ae7161a924122f4986a2588e66dc7767.jpg', 'extension': 'jpg'}, 1390949652: {'path': 'temp/1761887336_186342_1390949652_45bb0fac4b71a1e0f4b35354d52bf23d.jpg', 'extension': 'jpg'}, 1390949703: {'path': 'temp/1761887336_186342_1390949703_4eae0cd32b48125b453167312be44ef3.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 = 27999240; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27999240 group by h (('06', 53),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27999240 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 (27999240) 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 (27999240) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 31102025 27999240 Nombre de photos uploadées : 53 / 23040 (0%) 31102025 27999240 Nombre de photos taguées (types de déchets): 0 / 53 (0%) 31102025 27999240 Nombre de photos taguées (volume) : 0 / 53 (0%) [{'photo_id': 1390946717, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/fc4120995cbd0266e13781bae04bdee6.jpg', 'username': None, 'uploaded_at': 1761886907, 'text': 'image_31102025_06_00_14_10235.jpg'}, {'photo_id': 1390948866, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/867d97108683ea957815e488d2b27fe2.jpg', 'username': None, 'uploaded_at': 1761887093, 'text': 'image_31102025_06_00_14_10235.jpg'}, {'photo_id': 1390946637, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/66db481cf91bbff6db2ecbe9e1e3c130.jpg', 'username': None, 'uploaded_at': 1761886907, 'text': 'image_31102025_06_00_25_10141.jpg'}, {'photo_id': 1390948311, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/d6409b60c2f2ff0b2f49a97385638614.jpg', 'username': None, 'uploaded_at': 1761887013, 'text': 'image_31102025_06_00_25_10141.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 1.0967254638671875e-05 ????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0034515857696533203 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27999240, '2025-10-31' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-10-31' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2480930,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21454715728759766 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= 2480930 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2480930, 'dashboard_run_id': 2489843, 'mtr_portfolio_id': 27984246, 'dashboard_result_id': 16609322, '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_P27984246_31-10-2025_00_21_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27984250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27984251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27984252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27984253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27984254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27984255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27984256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27984257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27984258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27984259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27984260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27984261, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2489843, 'mtr_portfolio_id': 27984915, 'dashboard_result_id': 16609323, '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_P27984915_31-10-2025_00_33_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27984998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27984999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27985000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27985001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27985002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27985003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27985004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27985005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27985006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27985007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27985008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27985009, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2489843, 'mtr_portfolio_id': 27985516, 'dashboard_result_id': 16609324, '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_P27985516_31-10-2025_00_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27985517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27985518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27985519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27985520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27985521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27985522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27985523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27985524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27985525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27985526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27985527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27985528, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2489843, 'mtr_portfolio_id': 27986113, 'dashboard_result_id': 16609325, '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_P27986113_31-10-2025_01_35_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27986138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27986139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27986140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27986141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27986142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27986143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27986144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27986145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27986146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27986147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27986148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27986149, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2489843, 'mtr_portfolio_id': 27987917, 'dashboard_result_id': 16609326, '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_P27987917_31-10-2025_01_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27987918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27987919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27987920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27987921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27987922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27987923, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27987924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27987925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27987926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27987927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27987928, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27987929, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2489843, 'mtr_portfolio_id': 27988609, 'dashboard_result_id': 16609327, '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_P27988609_31-10-2025_02_04_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27988613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27988614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27988615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27988616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27988617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27988618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27988619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27988620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27988621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27988622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27988623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27988624, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2489843, 'mtr_portfolio_id': 27989289, 'dashboard_result_id': 16609328, '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_P27989289_31-10-2025_02_19_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27989290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27989291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27989292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27989293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27989294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27989295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27989296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27989297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27989298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27989299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27989300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27989301, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2489843, 'mtr_portfolio_id': 27989961, 'dashboard_result_id': 16609329, '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_P27989961_31-10-2025_02_33_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27989988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27989989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27989990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27989991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27989992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27989993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27989994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27989995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27989996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27989997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27989998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27989999, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2489843, 'mtr_portfolio_id': 27990560, 'dashboard_result_id': 16609330, '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_P27990560_31-10-2025_02_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27990562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27990563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27990564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27990565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27990566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27990567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27990568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27990569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27990570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27990571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27990572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27990573, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2489843, 'mtr_portfolio_id': 27991257, 'dashboard_result_id': 16609331, '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_P27991257_31-10-2025_03_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27991318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27991320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27991321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27991322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27991323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27991327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27991334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27991340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27991345, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27991346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27991347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27991348, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2489843, 'mtr_portfolio_id': 27991963, 'dashboard_result_id': 16609332, '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_P27991963_31-10-2025_03_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27991988, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27991989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27991990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27991991, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27991992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27991993, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27991994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27991995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27991996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27991997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27991998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27991999, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2489843, 'mtr_portfolio_id': 27992767, 'dashboard_result_id': 16609333, '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_P27992767_31-10-2025_03_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27992829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27992830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27992831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27992832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27992833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27992834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27992835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27992836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27992837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27992838, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27992839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27992840, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2489843, 'mtr_portfolio_id': 27993411, 'dashboard_result_id': 16609334, '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_P27993411_31-10-2025_03_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27993434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27993435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27993436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27993437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27993438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27993439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27993440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27993441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27993442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27993443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27993444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27993445, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2489843, 'mtr_portfolio_id': 27994229, 'dashboard_result_id': 16609335, '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_P27994229_31-10-2025_04_04_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27994236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27994237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27994238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27994239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27994240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27994241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27994242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27994243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27994244, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27994245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27994246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27994247, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2489843, 'mtr_portfolio_id': 27994804, 'dashboard_result_id': 16609336, '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_P27994804_31-10-2025_04_13_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27994830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27994831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27994832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27994833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27994834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27994835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27994836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27994837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27994838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27994839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27994840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27994841, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2489843, 'mtr_portfolio_id': 27996763, 'dashboard_result_id': 16609337, '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_P27996763_31-10-2025_05_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27996764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27996765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27996766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27996767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27996768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27996769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27996770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27996771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27996772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27996773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27996774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27996775, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2489843, 'mtr_portfolio_id': 27997305, 'dashboard_result_id': 16609338, '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_P27997305_31-10-2025_05_35_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27997308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27997309, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27997310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27997311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27997312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27997313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27997314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27997315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27997316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27997317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27997318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27997319, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2489843, 'mtr_portfolio_id': 27998032, 'dashboard_result_id': 16609339, '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_P27998032_31-10-2025_05_42_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27998069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27998070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27998071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27998072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27998073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27998074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27998075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27998076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27998077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27998078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27998079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27998080, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2489843, 'mtr_portfolio_id': 27998683, 'dashboard_result_id': 16609340, '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_P27998683_31-10-2025_06_06_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27998688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27998689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27998690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27998691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27998692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27998693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27998694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27998695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27998696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27998697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27998698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27998699, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2489843, 'mtr_portfolio_id': 27999240, 'dashboard_result_id': 16609341, '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_P27999240_31-10-2025_06_07_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27999303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27999304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27999305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27999306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27999307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27999308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27999309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27999310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27999311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27999312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27999313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27999314, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27984246 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': 3969509, 'mtr_portfolio_id': 27984246, 'created_at': datetime.datetime(2025, 10, 31, 0, 21, 7), 'result': '0.0485640521063409', 'result_long': None, 'result_double': None}] Qualite : 0.0485640521063409 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27984246 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27984246_31-10-2025_00_21_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27984246 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_P27984246_31-10-2025_00_21_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27984250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27984251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27984252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27984253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27984254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27984255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27984256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27984257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27984258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27984259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27984260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27984261, 'pht': 3726}}" where mtr_portfolio_id = 27984246 and dashboard_run_id = 2489843 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`=27984246 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16609322, 0.0485640521063409, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27984246_31-10-2025_00_21_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27984250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27984251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27984252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27984253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27984254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27984255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27984256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27984257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27984258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27984259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27984260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27984261, '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 = 27984915 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': 3969553, 'mtr_portfolio_id': 27984915, 'created_at': datetime.datetime(2025, 10, 31, 0, 33, 30), 'result': '0.06613849093810649', 'result_long': None, 'result_double': None}] Qualite : 0.06613849093810649 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27984915 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27984915_31-10-2025_00_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27984915 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_P27984915_31-10-2025_00_33_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27984998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27984999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27985000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27985001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27985002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27985003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27985004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27985005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27985006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27985007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27985008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27985009, 'pht': 3726}}" where mtr_portfolio_id = 27984915 and dashboard_run_id = 2489843 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`=27984915 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16609323, 0.06613849093810649, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27984915_31-10-2025_00_33_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27984998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27984999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27985000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27985001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27985002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27985003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27985004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27985005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27985006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27985007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27985008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27985009, '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 = 27985516 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': 3969618, 'mtr_portfolio_id': 27985516, 'created_at': datetime.datetime(2025, 10, 31, 0, 48, 59), 'result': '0.04081272999715808', 'result_long': None, 'result_double': None}] Qualite : 0.04081272999715808 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27985516 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27985516_31-10-2025_00_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27985516 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_P27985516_31-10-2025_00_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27985517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27985518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27985519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27985520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27985521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27985522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27985523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27985524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27985525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27985526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27985527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27985528, 'pht': 3726}}" where mtr_portfolio_id = 27985516 and dashboard_run_id = 2489843 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`=27985516 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16609324, 0.04081272999715808, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27985516_31-10-2025_00_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27985517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27985518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27985519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27985520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27985521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27985522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27985523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27985524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27985525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27985526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27985527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27985528, '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 = 27986113 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': 3969708, 'mtr_portfolio_id': 27986113, 'created_at': datetime.datetime(2025, 10, 31, 1, 35, 1), 'result': '0.043844437442149733', 'result_long': None, 'result_double': None}] Qualite : 0.043844437442149733 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27986113 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27986113_31-10-2025_01_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27986113 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_P27986113_31-10-2025_01_35_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27986138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27986139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27986140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27986141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27986142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27986143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27986144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27986145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27986146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27986147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27986148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27986149, 'pht': 3726}}" where mtr_portfolio_id = 27986113 and dashboard_run_id = 2489843 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`=27986113 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16609325, 0.043844437442149733, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27986113_31-10-2025_01_35_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27986138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27986139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27986140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27986141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27986142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27986143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27986144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27986145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27986146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27986147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27986148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27986149, '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 = 27987917 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': 3969845, 'mtr_portfolio_id': 27987917, 'created_at': datetime.datetime(2025, 10, 31, 1, 48, 57), 'result': '0.046096920408609306', 'result_long': None, 'result_double': None}] Qualite : 0.046096920408609306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27987917 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27987917_31-10-2025_01_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27987917 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_P27987917_31-10-2025_01_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27987918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27987919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27987920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27987921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27987922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27987923, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27987924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27987925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27987926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27987927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27987928, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27987929, 'pht': 3726}}" where mtr_portfolio_id = 27987917 and dashboard_run_id = 2489843 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`=27987917 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16609326, 0.046096920408609306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27987917_31-10-2025_01_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27987918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27987919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27987920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27987921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27987922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27987923, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27987924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27987925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27987926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27987927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27987928, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27987929, '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 = 27988609 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': 3969880, 'mtr_portfolio_id': 27988609, 'created_at': datetime.datetime(2025, 10, 31, 2, 3, 59), 'result': '0.05145342664783269', 'result_long': None, 'result_double': None}] Qualite : 0.05145342664783269 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27988609 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27988609_31-10-2025_02_04_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27988609 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_P27988609_31-10-2025_02_04_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27988613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27988614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27988615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27988616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27988617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27988618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27988619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27988620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27988621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27988622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27988623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27988624, 'pht': 3726}}" where mtr_portfolio_id = 27988609 and dashboard_run_id = 2489843 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`=27988609 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16609327, 0.05145342664783269, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27988609_31-10-2025_02_04_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27988613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27988614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27988615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27988616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27988617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27988618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27988619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27988620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27988621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27988622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27988623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27988624, '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 = 27989289 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': 3969945, 'mtr_portfolio_id': 27989289, 'created_at': datetime.datetime(2025, 10, 31, 2, 19, 32), 'result': '0.06619168477635745', 'result_long': None, 'result_double': None}] Qualite : 0.06619168477635745 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27989289 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27989289_31-10-2025_02_19_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27989289 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_P27989289_31-10-2025_02_19_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27989290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27989291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27989292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27989293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27989294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27989295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27989296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27989297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27989298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27989299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27989300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27989301, 'pht': 3726}}" where mtr_portfolio_id = 27989289 and dashboard_run_id = 2489843 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`=27989289 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16609328, 0.06619168477635745, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27989289_31-10-2025_02_19_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27989290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27989291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27989292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27989293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27989294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27989295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27989296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27989297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27989298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27989299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27989300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27989301, '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 = 27989961 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': 3969990, 'mtr_portfolio_id': 27989961, 'created_at': datetime.datetime(2025, 10, 31, 2, 33, 29), 'result': '0.060098423084526995', 'result_long': None, 'result_double': None}] Qualite : 0.060098423084526995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27989961 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27989961_31-10-2025_02_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27989961 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_P27989961_31-10-2025_02_33_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27989988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27989989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27989990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27989991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27989992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27989993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27989994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27989995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27989996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27989997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27989998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27989999, 'pht': 3726}}" where mtr_portfolio_id = 27989961 and dashboard_run_id = 2489843 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`=27989961 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16609329, 0.060098423084526995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27989961_31-10-2025_02_33_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27989988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27989989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27989990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27989991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27989992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27989993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27989994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27989995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27989996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27989997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27989998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27989999, '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 = 27990560 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': 3970053, 'mtr_portfolio_id': 27990560, 'created_at': datetime.datetime(2025, 10, 31, 2, 48, 58), 'result': '0.06988985110979506', 'result_long': None, 'result_double': None}] Qualite : 0.06988985110979506 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27990560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27990560_31-10-2025_02_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27990560 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_P27990560_31-10-2025_02_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27990562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27990563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27990564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27990565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27990566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27990567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27990568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27990569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27990570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27990571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27990572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27990573, 'pht': 3726}}" where mtr_portfolio_id = 27990560 and dashboard_run_id = 2489843 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`=27990560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16609330, 0.06988985110979506, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27990560_31-10-2025_02_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27990562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27990563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27990564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27990565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27990566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27990567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27990568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27990569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27990570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27990571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27990572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27990573, '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 = 27991257 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': 3970124, 'mtr_portfolio_id': 27991257, 'created_at': datetime.datetime(2025, 10, 31, 3, 2, 59), 'result': '0.07856622896842394', 'result_long': None, 'result_double': None}] Qualite : 0.07856622896842394 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27991257 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27991257_31-10-2025_03_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27991257 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_P27991257_31-10-2025_03_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27991318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27991320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27991321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27991322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27991323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27991327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27991334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27991340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27991345, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27991346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27991347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27991348, 'pht': 3726}}" where mtr_portfolio_id = 27991257 and dashboard_run_id = 2489843 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`=27991257 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16609331, 0.07856622896842394, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27991257_31-10-2025_03_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27991318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27991320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27991321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27991322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27991323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27991327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27991334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27991340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27991345, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27991346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27991347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27991348, '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 = 27991963 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': 3970199, 'mtr_portfolio_id': 27991963, 'created_at': datetime.datetime(2025, 10, 31, 3, 18, 57), 'result': '0.08736304648451905', 'result_long': None, 'result_double': None}] Qualite : 0.08736304648451905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27991963 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27991963_31-10-2025_03_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27991963 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_P27991963_31-10-2025_03_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27991988, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27991989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27991990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27991991, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27991992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27991993, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27991994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27991995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27991996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27991997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27991998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27991999, 'pht': 3726}}" where mtr_portfolio_id = 27991963 and dashboard_run_id = 2489843 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`=27991963 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16609332, 0.08736304648451905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27991963_31-10-2025_03_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27991988, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27991989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27991990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27991991, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27991992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27991993, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27991994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27991995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27991996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27991997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27991998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27991999, '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 = 27992767 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': 3970271, 'mtr_portfolio_id': 27992767, 'created_at': datetime.datetime(2025, 10, 31, 3, 33, 31), 'result': '0.07537174969423834', 'result_long': None, 'result_double': None}] Qualite : 0.07537174969423834 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27992767 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27992767_31-10-2025_03_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27992767 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_P27992767_31-10-2025_03_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27992829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27992830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27992831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27992832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27992833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27992834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27992835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27992836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27992837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27992838, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27992839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27992840, 'pht': 3726}}" where mtr_portfolio_id = 27992767 and dashboard_run_id = 2489843 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`=27992767 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16609333, 0.07537174969423834, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27992767_31-10-2025_03_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27992829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27992830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27992831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27992832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27992833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27992834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27992835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27992836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27992837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27992838, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27992839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27992840, '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 = 27993411 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': 3970325, 'mtr_portfolio_id': 27993411, 'created_at': datetime.datetime(2025, 10, 31, 3, 49), 'result': '0.052485657942202134', 'result_long': None, 'result_double': None}] Qualite : 0.052485657942202134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27993411 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27993411_31-10-2025_03_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27993411 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_P27993411_31-10-2025_03_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27993434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27993435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27993436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27993437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27993438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27993439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27993440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27993441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27993442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27993443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27993444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27993445, 'pht': 3726}}" where mtr_portfolio_id = 27993411 and dashboard_run_id = 2489843 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`=27993411 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16609334, 0.052485657942202134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27993411_31-10-2025_03_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27993434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27993435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27993436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27993437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27993438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27993439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27993440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27993441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27993442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27993443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27993444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27993445, '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 = 27994229 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': 3970395, 'mtr_portfolio_id': 27994229, 'created_at': datetime.datetime(2025, 10, 31, 4, 4, 28), 'result': '0.04910664059168891', 'result_long': None, 'result_double': None}] Qualite : 0.04910664059168891 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27994229 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27994229_31-10-2025_04_04_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27994229 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_P27994229_31-10-2025_04_04_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27994236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27994237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27994238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27994239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27994240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27994241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27994242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27994243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27994244, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27994245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27994246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27994247, 'pht': 3726}}" where mtr_portfolio_id = 27994229 and dashboard_run_id = 2489843 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`=27994229 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16609335, 0.04910664059168891, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27994229_31-10-2025_04_04_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27994236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27994237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27994238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27994239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27994240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27994241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27994242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27994243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27994244, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27994245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27994246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27994247, '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 = 27994804 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': 3970482, 'mtr_portfolio_id': 27994804, 'created_at': datetime.datetime(2025, 10, 31, 4, 12, 59), 'result': '0.07966496622254018', 'result_long': None, 'result_double': None}] Qualite : 0.07966496622254018 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27994804 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27994804_31-10-2025_04_13_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27994804 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_P27994804_31-10-2025_04_13_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27994830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27994831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27994832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27994833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27994834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27994835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27994836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27994837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27994838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27994839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27994840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27994841, 'pht': 3726}}" where mtr_portfolio_id = 27994804 and dashboard_run_id = 2489843 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`=27994804 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16609336, 0.07966496622254018, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27994804_31-10-2025_04_13_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27994830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27994831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27994832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27994833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27994834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27994835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27994836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27994837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27994838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27994839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27994840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27994841, '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 = 27996763 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': 3970661, 'mtr_portfolio_id': 27996763, 'created_at': datetime.datetime(2025, 10, 31, 5, 18, 58), 'result': '0.08202499107421811', 'result_long': None, 'result_double': None}] Qualite : 0.08202499107421811 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27996763 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27996763_31-10-2025_05_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27996763 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_P27996763_31-10-2025_05_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27996764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27996765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27996766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27996767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27996768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27996769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27996770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27996771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27996772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27996773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27996774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27996775, 'pht': 3726}}" where mtr_portfolio_id = 27996763 and dashboard_run_id = 2489843 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`=27996763 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16609337, 0.08202499107421811, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27996763_31-10-2025_05_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27996764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27996765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27996766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27996767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27996768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27996769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27996770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27996771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27996772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27996773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27996774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27996775, '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 = 27997305 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': 3970685, 'mtr_portfolio_id': 27997305, 'created_at': datetime.datetime(2025, 10, 31, 5, 35, 29), 'result': '0.06720215019866518', 'result_long': None, 'result_double': None}] Qualite : 0.06720215019866518 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27997305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27997305_31-10-2025_05_35_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27997305 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_P27997305_31-10-2025_05_35_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27997308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27997309, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27997310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27997311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27997312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27997313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27997314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27997315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27997316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27997317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27997318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27997319, 'pht': 3726}}" where mtr_portfolio_id = 27997305 and dashboard_run_id = 2489845 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`=27997305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16609338, 0.06720215019866518, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27997305_31-10-2025_05_35_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27997308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27997309, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27997310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27997311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27997312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27997313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27997314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27997315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27997316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27997317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27997318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27997319, '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 = 27998032 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': 3970732, 'mtr_portfolio_id': 27998032, 'created_at': datetime.datetime(2025, 10, 31, 5, 42, 27), 'result': '0.07097382625690879', 'result_long': None, 'result_double': None}] Qualite : 0.07097382625690879 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27998032 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27998032_31-10-2025_05_42_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27998032 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_P27998032_31-10-2025_05_42_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27998069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27998070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27998071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27998072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27998073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27998074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27998075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27998076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27998077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27998078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27998079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27998080, 'pht': 3726}}" where mtr_portfolio_id = 27998032 and dashboard_run_id = 2489845 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`=27998032 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16609339, 0.07097382625690879, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27998032_31-10-2025_05_42_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27998069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27998070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27998071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27998072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27998073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27998074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27998075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27998076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27998077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27998078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27998079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27998080, '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 = 27998683 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': 3970804, 'mtr_portfolio_id': 27998683, 'created_at': datetime.datetime(2025, 10, 31, 6, 6, 30), 'result': '0.0587582502123863', 'result_long': None, 'result_double': None}] Qualite : 0.0587582502123863 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27998683 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27998683_31-10-2025_06_06_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27998683 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_P27998683_31-10-2025_06_06_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27998688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27998689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27998690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27998691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27998692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27998693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27998694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27998695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27998696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27998697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27998698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27998699, 'pht': 3726}}" where mtr_portfolio_id = 27998683 and dashboard_run_id = 2489845 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`=27998683 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16609340, 0.0587582502123863, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27998683_31-10-2025_06_06_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27998688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27998689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27998690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27998691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27998692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27998693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27998694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27998695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27998696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27998697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27998698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27998699, '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 = 27999240 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 = 27999240 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 = 27999240 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27999240 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 = 27999240 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27999240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27999240_31-10-2025_06_08_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27999240 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_P27999240_31-10-2025_06_08_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27999303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27999304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27999305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27999306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27999307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27999308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27999309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27999310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27999311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27999312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27999313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27999314, 'pht': 3726}}" where mtr_portfolio_id = 27999240 and dashboard_run_id = 2489845 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27984246,27984915,27985516,27986113,27987917,27988609,27989289,27989961,27990560,27991257,27991963,27992767,27993411,27994229,27994804,27996763,27997305,27998032,27998683,27999240) result : ((1390745358,), (1390745465,), (1390745887,), (1390746141,), (1390746479,), (1390748560,), (1390748630,), (1390748710,), (1390749763,), (1390749800,), (1390749842,), (1390750134,), (1390750171,), (1390750248,), (1390750302,), (1390751546,), (1390751617,), (1390751718,), (1390752340,), (1390752353,), (1390752356,), (1390752359,), (1390752362,), (1390752674,), (1390752675,), (1390752676,), (1390752677,), (1390752699,), (1390752702,), (1390752721,), (1390752723,), (1390752730,), (1390752731,), (1390752866,), (1390752904,), (1390752942,), (1390752980,), (1390753018,), (1390753063,), (1390753586,), (1390753620,), (1390753653,), (1390753688,), (1390753720,), (1390753760,), (1390753934,), (1390754002,), (1390754129,), (1390755664,), (1390755842,), (1390755902,), (1390755946,), (1390755987,), (1390756020,), (1390756023,), (1390756026,), (1390756030,), (1390756596,), (1390756685,), (1390756721,), (1390756727,), (1390756788,), (1390756808,), (1390757196,), (1390757239,), (1390757279,), (1390757347,), (1390758646,), (1390758002,), (1390758183,), (1390758386,), (1390758552,), (1390758611,), (1390759138,), (1390759176,), (1390759223,), (1390759955,), (1390759958,), (1390760028,), (1390760031,), (1390760103,), (1390760108,), (1390760598,), (1390760607,), (1390760642,), (1390761317,), (1390761383,), (1390761477,), (1390761570,), (1390761646,), (1390761950,), (1390762020,), (1390762062,), (1390762098,), (1390762133,), (1390762189,), (1390762190,), (1390762192,), (1390763228,), (1390763334,), (1390763401,), (1390763468,), (1390763517,), (1390764383,), (1390764384,), (1390764417,), (1390764421,), (1390764491,), (1390764496,), (1390764530,), (1390764532,), (1390764573,), (1390764574,), (1390764592,), (1390764593,), (1390764611,), (1390764620,), (1390764634,), (1390764638,), (1390765144,), (1390765259,), (1390765342,), (1390765380,), (1390765966,), (1390765998,), (1390766036,), (1390766064,), (1390766067,), (1390766069,), (1390766456,), (1390766525,), (1390766559,), (1390766630,), (1390766792,), (1390766960,), (1390767734,), (1390767736,), (1390767779,), (1390767793,), (1390767803,), (1390767814,), (1390767852,), (1390767890,), (1390767928,), (1390767962,), (1390768003,), (1390768288,), (1390768297,), (1390768298,), (1390768389,), (1390768423,), (1390768454,), (1390768488,), (1390768237,), (1390768239,), (1390768269,), (1390768634,), (1390768675,), (1390768726,), (1390768770,), (1390768806,), (1390769142,), (1390769144,), (1390769222,), (1390769223,), (1390769224,), (1390769225,), (1390769331,), (1390769337,), (1390769341,), (1390769346,), (1390769597,), (1390769599,), (1390772338,), (1390772339,), (1390772341,), (1390772342,), (1390772352,), (1390772353,), (1390772357,), (1390772358,), (1390772410,), (1390772462,), (1390772499,), (1390772643,), (1390772683,), (1390772723,), (1390772761,), (1390773181,), (1390773183,), (1390773219,), (1390773266,), (1390773305,), (1390773342,), (1390773630,), (1390773682,), (1390773732,), (1390773837,), (1390773852,), (1390773889,), (1390774123,), (1390774127,), (1390774131,), (1390774133,), (1390774136,), (1390774140,), (1390774174,), (1390774177,), (1390774285,), (1390774419,), (1390775130,), (1390775125,), (1390775127,), (1390775648,), (1390775685,), (1390775719,), (1390775796,), (1390775830,), (1390775864,), (1390776388,), (1390776389,), (1390776392,), (1390776394,), (1390776396,), (1390776398,), (1390776465,), (1390776603,), (1390776752,), (1390776903,), (1390777470,), (1390777538,), (1390777558,), (1390777610,), (1390777646,), (1390778232,), (1390778270,), (1390778307,), (1390778346,), (1390779080,), (1390779118,), (1390779154,), (1390779204,), (1390779284,), (1390779637,), (1390779708,), (1390779749,), (1390780201,), (1390780241,), (1390780250,), (1390780464,), (1390780599,), (1390780733,), (1390780894,), (1390781061,), (1390781323,), (1390781382,), (1390781888,), (1390781949,), (1390781996,), (1390782036,), (1390782078,), (1390782377,), (1390782380,), (1390782383,), (1390782385,), (1390782388,), (1390782391,), (1390782787,), (1390782794,), (1390782797,), (1390782822,), (1390782863,), (1390802666,), (1390802659,), (1390802661,), (1390802663,), (1390802672,), (1390802675,), (1390802678,), (1390802684,), (1390802689,), (1390802985,), (1390803900,), (1390804057,), (1390804205,), (1390804407,), (1390804604,), (1390804857,), (1390804879,), (1390804936,), (1390804984,), (1390805893,), (1390805929,), (1390805970,), (1390806058,), (1390806100,), (1390806106,), (1390806342,), (1390806344,), (1390806354,), (1390806560,), (1390806561,), (1390806597,), (1390806602,), (1390806635,), (1390806640,), (1390806676,), (1390806678,), (1390806722,), (1390806730,), (1390806798,), (1390806802,), (1390807423,), (1390807600,), (1390807765,), (1390807948,), (1390808113,), (1390808755,), (1390808762,), (1390808796,), (1390808854,), (1390808855,), (1390809260,), (1390809296,), (1390809335,), (1390809376,), (1390809606,), (1390809607,), (1390809624,), (1390809625,), (1390809646,), (1390809647,), (1390809652,), (1390809653,), (1390809660,), (1390809661,), (1390809677,), (1390809682,), (1390809686,), (1390809690,), (1390810046,), (1390809835,), (1390809884,), (1390809921,), (1390809963,), (1390810004,), (1390810385,), (1390810389,), (1390810392,), (1390810666,), (1390810685,), (1390810692,), (1390810695,), (1390810698,), (1390811369,), (1390811374,), (1390811378,), (1390811380,), (1390811943,), (1390811986,), (1390812022,), (1390812058,), (1390812094,), (1390812780,), (1390812820,), (1390812861,), (1390812906,), (1390812928,), (1390812929,), (1390813431,), (1390813452,), (1390813466,), (1390813471,), (1390813473,), (1390813481,), (1390813491,), (1390813498,), (1390813507,), (1390813512,), (1390813514,), (1390813517,), (1390813520,), (1390813553,), (1390813556,), (1390813558,), (1390813560,), (1390813568,), (1390813602,), (1390813603,), (1390813606,), (1390813608,), (1390813624,), (1390813625,), (1390813935,), (1390813968,), (1390814001,), (1390814041,), (1390814081,), (1390815858,), (1390816040,), (1390816196,), (1390816232,), (1390816264,), (1390816301,), (1390817292,), (1390817380,), (1390817472,), (1390817557,), (1390817776,), (1390817777,), (1390818229,), (1390818116,), (1390818123,), (1390818162,), (1390818420,), (1390818462,), (1390818501,), (1390818540,), (1390818575,), (1390818616,), (1390819165,), (1390819217,), (1390819296,), (1390819362,), (1390819430,), (1390819502,), (1390819772,), (1390819835,), (1390820297,), (1390820332,), (1390820370,), (1390820410,), (1390821972,), (1390822011,), (1390822050,), (1390822090,), (1390822685,), (1390822814,), (1390822999,), (1390823108,), (1390823192,), (1390823228,), (1390823642,), (1390823655,), (1390823670,), (1390823681,), (1390823684,), (1390823687,), (1390823692,), (1390823696,), (1390823736,), (1390823737,), (1390823741,), (1390823809,), (1390823810,), (1390823814,), (1390823817,), (1390823819,), (1390824555,), (1390824556,), (1390824626,), (1390824632,), (1390824686,), (1390824694,), (1390825639,), (1390825659,), (1390826130,), (1390825994,), (1390826028,), (1390826060,), (1390826097,), (1390826474,), (1390826475,), (1390826492,), (1390826493,), (1390826495,), (1390826496,), (1390826499,), (1390826500,), (1390826516,), (1390826521,), (1390826558,), (1390826560,), (1390826610,), (1390826612,), (1390826615,), (1390826768,), (1390826804,), (1390826842,), (1390826879,), (1390826916,), (1390826952,), (1390827139,), (1390827180,), (1390827199,), (1390827209,), (1390827217,), (1390827241,), (1390827305,), (1390827365,), (1390827391,), (1390827536,), (1390827538,), (1390827540,), (1390827542,), (1390827557,), (1390827560,), (1390827562,), (1390827566,), (1390827570,), (1390827575,), (1390828679,), (1390828720,), (1390828756,), (1390828792,), (1390828827,), (1390830201,), (1390830311,), (1390830390,), (1390831120,), (1390831154,), (1390831226,), (1390831282,), (1390831348,), (1390831370,), (1390831421,), (1390831422,), (1390831425,), (1390831426,), (1390831443,), (1390831451,), (1390831483,), (1390831486,), (1390831491,), (1390831499,), (1390831518,), (1390831522,), (1390831526,), (1390831531,), (1390831573,), (1390831577,), (1390831583,), (1390831587,), (1390831591,), (1390831595,), (1390832007,), (1390832040,), (1390832075,), (1390832421,), (1390832423,), (1390832427,), (1390832431,), (1390832435,), (1390832438,), (1390832929,), (1390832522,), (1390832557,), (1390832595,), (1390832658,), (1390832735,), (1390834208,), (1390834209,), (1390834244,), (1390834249,), (1390834359,), (1390834369,), (1390834758,), (1390834775,), (1390834777,), (1390834781,), (1390834788,), (1390834861,), (1390834876,), (1390834881,), (1390834885,), (1390834891,), (1390834896,), (1390835171,), (1390835206,), (1390835246,), (1390835284,), (1390835320,), (1390835759,), (1390835763,), (1390835765,), (1390836942,), (1390837918,), (1390838996,), (1390839032,), (1390839071,), (1390839078,), (1390839136,), (1390839140,), (1390839146,), (1390839153,), (1390839157,), (1390839160,), (1390839168,), (1390839172,), (1390839175,), (1390839177,), (1390839598,), (1390839639,), (1390839679,), (1390839719,), (1390839755,), (1390839793,), (1390839919,), (1390839955,), (1390839993,), (1390840034,), (1390840746,), (1390840785,), (1390840823,), (1390840861,), (1390840900,), (1390841876,), (1390842091,), (1390842233,), (1390842241,), (1390842242,), (1390842909,), (1390842762,), (1390842801,), (1390842838,), (1390842872,), (1390843295,), (1390843296,), (1390843298,), (1390843299,), (1390843300,), (1390843301,), (1390843303,), (1390843304,), (1390843306,), (1390843307,), (1390843341,), (1390843377,), (1390843412,), (1390843451,), (1390843489,), (1390843530,), (1390843678,), (1390843683,), (1390843684,), (1390843688,), (1390843808,), (1390843846,), (1390843881,), (1390844357,), (1390844394,), (1390844432,), (1390844467,), (1390844508,), (1390844703,), (1390844739,), (1390844799,), (1390846678,), (1390847146,), (1390847169,), (1390847171,), (1390847172,), (1390847179,), (1390847208,), (1390847258,), (1390847262,), (1390847267,), (1390847640,), (1390847644,), (1390847647,), (1390847648,), (1390847650,), (1390848365,), (1390848369,), (1390848373,), (1390848378,), (1390848399,), (1390848400,), (1390848436,), (1390848437,), (1390848473,), (1390848475,), (1390849389,), (1390849177,), (1390849246,), (1390849318,), (1390849555,), (1390849557,), (1390851927,), (1390851930,), (1390852260,), (1390852298,), (1390852382,), (1390852461,), (1390852535,), (1390853206,), (1390853214,), (1390853266,), (1390853315,), (1390853364,), (1390853825,), (1390853826,), (1390853828,), (1390853829,), (1390853831,), (1390853832,), (1390853834,), (1390853836,), (1390853843,), (1390853847,), (1390853859,), (1390853862,), (1390853865,), (1390853926,), (1390853937,), (1390853972,), (1390854012,), (1390854050,), (1390854564,), (1390854570,), (1390854576,), (1390854579,), (1390854581,), (1390854805,), (1390854834,), (1390854856,), (1390854865,), (1390854872,), (1390855017,), (1390855127,), (1390855295,), (1390856261,), (1390856300,), (1390856306,), (1390856308,), (1390856932,), (1390857062,), (1390857097,), (1390856748,), (1390856786,), (1390856820,), (1390856858,), (1390856897,), (1390857199,), (1390857203,), (1390857208,), (1390857748,), (1390857814,), (1390857834,), (1390857852,), (1390857892,), (1390857894,), (1390857896,), (1390857898,), (1390858033,), (1390858075,), (1390858111,), (1390858151,), (1390858190,), (1390858678,), (1390858723,), (1390858764,), (1390858812,), (1390858850,), (1390858899,), (1390858901,), (1390858903,), (1390859118,), (1390859152,), (1390859186,), (1390859197,), (1390859202,), (1390860142,), (1390860184,), (1390860226,), (1390860298,), (1390860351,), (1390860386,), (1390861104,), (1390861117,), (1390861271,), (1390861306,), (1390861345,), (1390861383,), (1390861423,), (1390861461,), (1390862194,), (1390862254,), (1390862272,), (1390862280,), (1390862841,), (1390862916,), (1390862985,), (1390863050,), (1390863687,), (1390863688,), (1390863905,), (1390863923,), (1390863935,), (1390863937,), (1390864003,), (1390864004,), (1390863975,), (1390863976,), (1390863979,), (1390863982,), (1390863992,), (1390863993,), (1390863997,), (1390863998,), (1390864012,), (1390864014,), (1390864053,), (1390864120,), (1390864197,), (1390864272,), (1390865265,), (1390865302,), (1390865421,), (1390865463,), (1390865777,), (1390865814,), (1390865851,), (1390866025,), (1390866027,), (1390866030,), (1390866033,), (1390866036,), (1390866039,), (1390866064,), (1390866065,), (1390866066,), (1390866067,), (1390866068,), (1390866069,), (1390866071,), (1390866072,), (1390866074,), (1390866075,), (1390866077,), (1390866079,), (1390866088,), (1390866091,), (1390866093,), (1390866116,), (1390866153,), (1390866192,), (1390866323,), (1390867590,), (1390867618,), (1390867648,), (1390867689,), (1390867725,), (1390868601,), (1390868639,), (1390868677,), (1390868715,), (1390869361,), (1390869435,), (1390869505,), (1390870350,), (1390870391,), (1390870426,), (1390871059,), (1390871060,), (1390871062,), (1390871063,), (1390871066,), (1390871071,), (1390871104,), (1390871108,), (1390871018,), (1390871020,), (1390871053,), (1390871054,), (1390871151,), (1390871153,), (1390871155,), (1390871157,), (1390871504,), (1390871508,), (1390871572,), (1390871588,), (1390871592,), (1390871667,), (1390871669,), (1390871673,), (1390871675,), (1390871706,), (1390871710,), (1390871712,), (1390871714,), (1390871716,), (1390871744,), (1390871747,), (1390871750,), (1390871773,), (1390872274,), (1390872277,), (1390872337,), (1390872340,), (1390872401,), (1390872407,), (1390873320,), (1390873394,), (1390873491,), (1390873735,), (1390874456,), (1390874522,), (1390874597,), (1390874692,), (1390875026,), (1390875071,), (1390875113,), (1390875151,), (1390875533,), (1390875535,), (1390875540,), (1390875545,), (1390875549,), (1390875577,), (1390875580,), (1390875582,), (1390875585,), (1390875587,), (1390875590,), (1390875659,), (1390875660,), (1390875700,), (1390875701,), (1390875739,), (1390875741,), (1390875773,), (1390875777,), (1390875812,), (1390875815,), (1390875847,), (1390875854,), (1390877215,), (1390877298,), (1390877366,), (1390877410,), (1390877448,), (1390877508,), (1390877714,), (1390877752,), (1390877794,), (1390877830,), (1390877882,), (1390877895,), (1390877913,), (1390877917,), (1390877919,), (1390877922,), (1390878273,), (1390878308,), (1390877685,), (1390877688,), (1390877950,), (1390877993,), (1390878029,), (1390878066,), (1390878106,), (1390878141,), (1390878462,), (1390878502,), (1390878541,), (1390879344,), (1390879419,), (1390879498,), (1390879577,), (1390879655,), (1390879731,), (1390880710,), (1390880711,), (1390880771,), (1390880781,), (1390880841,), (1390880852,), (1390880908,), (1390880951,), (1390880987,), (1390881032,), (1390881051,), (1390881060,), (1390881095,), (1390881132,), (1390881142,), (1390881146,), (1390881164,), (1390881168,), (1390881172,), (1390881174,), (1390881206,), (1390881239,), (1390881365,), (1390881408,), (1390881444,), (1390881483,), (1390881641,), (1390881651,), (1390881660,), (1390881819,), (1390882872,), (1390882910,), (1390883549,), (1390883589,), (1390914235,), (1390914971,), (1390916602,), (1390919521,), (1390920076,), (1390920116,), (1390921880,), (1390921885,), (1390921960,), (1390921965,), (1390922513,), (1390922548,), (1390922575,), (1390922682,), (1390922738,), (1390922891,), (1390923234,), (1390923056,), (1390923095,), (1390923132,), (1390923166,), (1390923198,), (1390923688,), (1390923722,), (1390925324,), (1390926993,), (1390926996,), (1390927069,), (1390927122,), (1390927167,), (1390927215,), (1390927240,), (1390927291,), (1390927467,), (1390927506,), (1390927542,), (1390927580,), (1390927620,), (1390927660,), (1390928083,), (1390928085,), (1390928135,), (1390928173,), (1390928891,), (1390928929,), (1390928986,), (1390929043,), (1390929076,), (1390929091,), (1390929138,), (1390929142,), (1390929146,), (1390929151,), (1390929289,), (1390929290,), (1390929311,), (1390929313,), (1390929319,), (1390929320,), (1390929343,), (1390929344,), (1390929595,), (1390929717,), (1390929970,), (1390930151,), (1390930302,), (1390930337,), (1390930509,), (1390930546,), (1390930583,), (1390930621,), (1390930628,), (1390931169,), (1390931174,), (1390931226,), (1390931227,), (1390931326,), (1390931339,), (1390931399,), (1390931408,), (1390931812,), (1390931826,), (1390931864,), (1390931900,), (1390931940,), (1390931942,), (1390932004,), (1390932011,), (1390932050,), (1390932139,), (1390932277,), (1390932426,), (1390932572,), (1390932609,), (1390933285,), (1390933286,), (1390933426,), (1390933443,), (1390933456,), (1390933481,), (1390933484,), (1390933176,), (1390933244,), (1390933274,), (1390933283,), (1390933492,), (1390933495,), (1390933509,), (1390933525,), (1390933527,), (1390933531,), (1390933546,), (1390933552,), (1390933555,), (1390933559,), (1390933600,), (1390934033,), (1390934035,), (1390934037,), (1390934040,), (1390934042,), (1390934184,), (1390934191,), (1390934290,), (1390934291,), (1390934294,), (1390934297,), (1390934298,), (1390935003,), (1390935042,), (1390935080,), (1390935132,), (1390935172,), (1390935916,), (1390935941,), (1390935969,), (1390935985,), (1390935992,), (1390936015,), (1390936053,), (1390936091,), (1390936129,), (1390936168,), (1390936689,), (1390936690,), (1390936691,), (1390936693,), (1390936702,), (1390936706,), (1390936745,), (1390936784,), (1390936822,), (1390936948,), (1390936950,), (1390936952,), (1390937394,), (1390937419,), (1390937421,), (1390937424,), (1390937427,), (1390937435,), (1390937667,), (1390937668,), (1390937671,), (1390937672,), (1390937674,), (1390937675,), (1390937710,), (1390937716,), (1390937718,), (1390937720,), (1390937728,), (1390937730,), (1390938770,), (1390937899,), (1390938068,), (1390938257,), (1390938434,), (1390938601,), (1390939566,), (1390939698,), (1390940000,), (1390940040,), (1390940065,), (1390940069,), (1390940099,), (1390940160,), (1390940162,), (1390940165,), (1390940167,), (1390940169,), (1390940170,), (1390940173,), (1390940174,), (1390940177,), (1390940178,), (1390940181,), (1390940182,), (1390940341,), (1390940376,), (1390940410,), (1390940445,), (1390940495,), (1390940982,), (1390941043,), (1390941093,), (1390941133,), (1390941171,), (1390941215,), (1390941747,), (1390941784,), (1390941821,), (1390941828,), (1390941879,), (1390941895,), (1390941951,), (1390941953,), (1390942031,), (1390942846,), (1390942849,), (1390942874,), (1390943025,), (1390943035,), (1390943061,), (1390943382,), (1390943417,), (1390943454,), (1390943489,), (1390943524,), (1390943564,), (1390943747,), (1390943748,), (1390943760,), (1390943796,), (1390944063,), (1390944142,), (1390944218,), (1390944262,), (1390944274,), (1390944287,), (1390944495,), (1390944498,), (1390944500,), (1390944501,), (1390944503,), (1390944558,), (1390944560,), (1390944563,), (1390944566,), (1390944583,), (1390944620,), (1390946854,), (1390948909,), (1390946468,), (1390946542,), (1390946637,), (1390946717,), (1390947593,), (1390947684,), (1390947748,), (1390947815,), (1390947870,), (1390947911,), (1390948090,), (1390948092,), (1390948132,), (1390948133,), (1390948175,), (1390948176,), (1390948220,), (1390948231,), (1390948263,), (1390948274,), (1390948304,), (1390948311,), (1390948482,), (1390948526,), (1390948564,), (1390948623,), (1390948667,), (1390948707,), (1390948866,), (1390949045,), (1390949089,), (1390949405,), (1390949486,), (1390949573,), (1390949652,), (1390949703,), (1390949746,), (1390950179,), (1390950180,), (1390950214,), (1390950215,), (1390950252,), (1390950256,), (1390950292,), (1390950294,), (1390950329,), (1390950334,), (1390950366,), (1390950374,), (1390950500,), (1390950538,), (1390950584,), (1390950620,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'31102025': {'nb_upload': 53, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27999240]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1390950620, 1390950584, 1390950538, 1390950500, 1390950374, 1390950366, 1390950334, 1390950329, 1390950294, 1390950292, 1390950256, 1390950252, 1390950215, 1390950214, 1390950180, 1390950179, 1390949746, 1390949703, 1390949652, 1390949573, 1390949486, 1390949405] map_info['map_portfolio_photo'] : {27999240: [1390950620, 1390950584, 1390950538, 1390950500, 1390950374, 1390950366, 1390950334, 1390950329, 1390950294, 1390950292, 1390950256, 1390950252, 1390950215, 1390950214, 1390950180, 1390950179, 1390949746, 1390949703, 1390949652, 1390949573, 1390949486, 1390949405, 1390949089, 1390949045, 1390948866, 1390948707, 1390948667, 1390948623, 1390948564, 1390948526, 1390948482, 1390948311, 1390948304, 1390948274, 1390948263, 1390948231, 1390948220, 1390948176, 1390948175, 1390948133, 1390948132, 1390948092, 1390948090, 1390947911, 1390947870, 1390947815, 1390947748, 1390947684, 1390947593, 1390946717, 1390946637, 1390946542, 1390946468]} final : True mtd_id 4302 list_pids : [1390950620, 1390950584, 1390950538, 1390950500, 1390950374, 1390950366, 1390950334, 1390950329, 1390950294, 1390950292, 1390950256, 1390950252, 1390950215, 1390950214, 1390950180, 1390950179, 1390949746, 1390949703, 1390949652, 1390949573, 1390949486, 1390949405] Looping around the photos to save general results len do output : 1 /27999240Didn'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, '3970874') ('4302', '27999240', '1390950620', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950584', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950538', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950500', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950374', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950366', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950334', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950329', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950294', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950292', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950256', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950252', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950215', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950214', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950180', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390950179', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949746', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949703', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949652', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949573', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949486', None, None, None, None, None, '3970874') ('4302', None, None, None, None, None, None, None, '3970874') ('4302', '27999240', '1390949405', None, None, None, None, None, '3970874') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 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, '27999240', 'None', None, None, None, None, '3970874'), ('4302', '27999240', '1390950620', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950584', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950538', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950500', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950374', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950366', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950334', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950329', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950294', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950292', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950256', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950252', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950215', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950214', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950180', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390950179', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390949746', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390949703', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390949652', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390949573', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390949486', None, None, None, None, None, '3970874'), ('4302', '27999240', '1390949405', None, None, None, None, None, '3970874')] time used for this insertion : 0.013464927673339844 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8505313396453857 time spend to save output : 0.013761758804321289 total time spend for step 5 : 1.864293098449707 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 (3970874) 2.40user 2.42system 0:06.58elapsed 73%CPU (0avgtext+0avgdata 160472maxresident)k 336inputs+12080outputs (0major+75165minor)pagefaults 0swaps