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 : 1867855 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 (4257160) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4257160) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29612129 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4257160'] with mtr_portfolio_ids : ['29612129'] and first list_photo_ids : [] new path : /proc/1867855/ Name: python3 Umask: 0002 State: R (running) Tgid: 1867855 Ngid: 0 Pid: 1867855 PPid: 1867854 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1867855 NSpid: 1867855 NSpgid: 1866671 NSsid: 1866671 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 106152 kB VmRSS: 106152 kB RssAnon: 66292 kB RssFile: 39860 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 608 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: 45 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1867855', 'Ngid': '0', 'Pid': '1867855', 'PPid': '1867854', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1867855', 'NSpid': '1867855', 'NSpgid': '1866671', 'NSsid': '1866671', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '106152 kB', 'VmRSS': '106152 kB', 'RssAnon': '66292 kB', 'RssFile': '39860 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '608 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': '45', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '1867855', '1113364', '0', '1113364', '872092', '106152', b'', 'marlene', '4257160') 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 (29612129) 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 (4257160 ) ) 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 (29612129) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1400513078, 'portfolio_id': 29612129}, {'photo_id': 1400513075, 'portfolio_id': 29612129}, {'photo_id': 1400513074, 'portfolio_id': 29612129}, {'photo_id': 1400513073, 'portfolio_id': 29612129}, {'photo_id': 1400513072, 'portfolio_id': 29612129}, {'photo_id': 1400513068, 'portfolio_id': 29612129}, {'photo_id': 1400513064, 'portfolio_id': 29612129}, {'photo_id': 1400513061, 'portfolio_id': 29612129}, {'photo_id': 1400513055, 'portfolio_id': 29612129}, {'photo_id': 1400513054, 'portfolio_id': 29612129}, {'photo_id': 1400513049, 'portfolio_id': 29612129}, {'photo_id': 1400513048, 'portfolio_id': 29612129}, {'photo_id': 1400513047, 'portfolio_id': 29612129}, {'photo_id': 1400513046, 'portfolio_id': 29612129}, {'photo_id': 1400513041, 'portfolio_id': 29612129}, {'photo_id': 1400513039, 'portfolio_id': 29612129}, {'photo_id': 1400513034, 'portfolio_id': 29612129}, {'photo_id': 1400513031, 'portfolio_id': 29612129}, {'photo_id': 1400513028, 'portfolio_id': 29612129}, {'photo_id': 1400513025, 'portfolio_id': 29612129}, {'photo_id': 1400513022, 'portfolio_id': 29612129}, {'photo_id': 1400513021, 'portfolio_id': 29612129}, {'photo_id': 1400512995, 'portfolio_id': 29612129}, {'photo_id': 1400512992, 'portfolio_id': 29612129}, {'photo_id': 1400512989, 'portfolio_id': 29612129}, {'photo_id': 1400512986, 'portfolio_id': 29612129}, {'photo_id': 1400512985, 'portfolio_id': 29612129}, {'photo_id': 1400512984, 'portfolio_id': 29612129}, {'photo_id': 1400512962, 'portfolio_id': 29612129}, {'photo_id': 1400512959, 'portfolio_id': 29612129}, {'photo_id': 1400512958, 'portfolio_id': 29612129}, {'photo_id': 1400512957, 'portfolio_id': 29612129}, {'photo_id': 1400512956, 'portfolio_id': 29612129}, {'photo_id': 1400512920, 'portfolio_id': 29612129}, {'photo_id': 1400512919, 'portfolio_id': 29612129}, {'photo_id': 1400512918, 'portfolio_id': 29612129}, {'photo_id': 1400512909, 'portfolio_id': 29612129}, {'photo_id': 1400512908, 'portfolio_id': 29612129}, {'photo_id': 1400512907, 'portfolio_id': 29612129}, {'photo_id': 1400512906, 'portfolio_id': 29612129}, {'photo_id': 1400512884, 'portfolio_id': 29612129}, {'photo_id': 1400512881, 'portfolio_id': 29612129}, {'photo_id': 1400512878, 'portfolio_id': 29612129}, {'photo_id': 1400512876, 'portfolio_id': 29612129}, {'photo_id': 1400512875, 'portfolio_id': 29612129}, {'photo_id': 1400512874, 'portfolio_id': 29612129}, {'photo_id': 1400512857, 'portfolio_id': 29612129}, {'photo_id': 1400512856, 'portfolio_id': 29612129}, {'photo_id': 1400512855, 'portfolio_id': 29612129}, {'photo_id': 1400512840, 'portfolio_id': 29612129}, {'photo_id': 1400512837, 'portfolio_id': 29612129}, {'photo_id': 1400512836, 'portfolio_id': 29612129}, {'photo_id': 1400512835, 'portfolio_id': 29612129}, {'photo_id': 1400512834, 'portfolio_id': 29612129}, {'photo_id': 1400512823, 'portfolio_id': 29612129}, {'photo_id': 1400512820, 'portfolio_id': 29612129}, {'photo_id': 1400512819, 'portfolio_id': 29612129}, {'photo_id': 1400512818, 'portfolio_id': 29612129}, {'photo_id': 1400512817, 'portfolio_id': 29612129}] map_portfolio_id_photo_id: {29612129: [1400513078, 1400513075, 1400513074, 1400513073, 1400513072, 1400513068, 1400513064, 1400513061, 1400513055, 1400513054, 1400513049, 1400513048, 1400513047, 1400513046, 1400513041, 1400513039, 1400513034, 1400513031, 1400513028, 1400513025, 1400513022, 1400513021, 1400512995, 1400512992, 1400512989, 1400512986, 1400512985, 1400512984, 1400512962, 1400512959, 1400512958, 1400512957, 1400512956, 1400512920, 1400512919, 1400512918, 1400512909, 1400512908, 1400512907, 1400512906, 1400512884, 1400512881, 1400512878, 1400512876, 1400512875, 1400512874, 1400512857, 1400512856, 1400512855, 1400512840, 1400512837, 1400512836, 1400512835, 1400512834, 1400512823, 1400512820, 1400512819, 1400512818, 1400512817]} ##### 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.01916217803955078 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Dec 22 10:56:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29612129) 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 : 29612129 get user id for portfolio 29612129 get sub ptf for main ptf 29612129, type 3726 and hashtags ['plastique', 'mal_croppe', 'autre_refus', 'Carton_brun', 'Carton_gris', 'papier', 'flou', 'cartonnette', 'metal', 'Teint_Dans_La_Masse', 'kraft', 'environnement'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29612129 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','mal_croppe','autre_refus','Carton_brun','Carton_gris','papier','flou','cartonnette','metal','Teint_Dans_La_Masse','kraft','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29612129 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','mal_croppe','autre_refus','Carton_brun','Carton_gris','papier','flou','cartonnette','metal','Teint_Dans_La_Masse','kraft','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 29612129, 'sub_port_id': 29612154, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214068, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 26)}, 'Carton_brun': {'main_port_id': 29612129, 'sub_port_id': 29612155, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214069, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 26)}, 'papier': {'main_port_id': 29612129, 'sub_port_id': 29612156, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214070, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 26)}, 'mal_croppe': {'main_port_id': 29612129, 'sub_port_id': 29612157, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214071, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 29612129, 'sub_port_id': 29612158, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214072, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 26)}, 'environnement': {'main_port_id': 29612129, 'sub_port_id': 29612159, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214073, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 26)}, 'Carton_gris': {'main_port_id': 29612129, 'sub_port_id': 29612160, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214074, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 26)}, 'kraft': {'main_port_id': 29612129, 'sub_port_id': 29612161, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214075, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 26)}, 'autre_refus': {'main_port_id': 29612129, 'sub_port_id': 29612162, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214076, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 26)}, 'plastique': {'main_port_id': 29612129, 'sub_port_id': 29612163, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214077, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 26)}, 'cartonnette': {'main_port_id': 29612129, 'sub_port_id': 29612164, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214078, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 26)}, 'flou': {'main_port_id': 29612129, 'sub_port_id': 29612165, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214079, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29612154 , 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=29612129 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 (29612154) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29612129) result : ((1400512817,), (1400512818,), (1400512819,), (1400512820,), (1400512823,), (1400512834,), (1400512835,), (1400512836,), (1400512837,), (1400512840,), (1400512855,), (1400512856,), (1400512857,), (1400512874,), (1400512875,), (1400512876,), (1400512878,), (1400512881,), (1400512884,), (1400512906,), (1400512907,), (1400512908,), (1400512909,), (1400512918,), (1400512919,), (1400512920,), (1400512956,), (1400512957,), (1400512958,), (1400512959,), (1400512962,), (1400512984,), (1400512985,), (1400512986,), (1400512989,), (1400512992,), (1400512995,), (1400513021,), (1400513022,), (1400513025,), (1400513028,), (1400513031,), (1400513034,), (1400513039,), (1400513041,), (1400513046,), (1400513047,), (1400513048,), (1400513049,), (1400513054,), (1400513055,), (1400513061,), (1400513064,), (1400513068,), (1400513072,), (1400513073,), (1400513074,), (1400513075,), (1400513078,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29612155 , 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=29612129 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 (29612155) result : ((1400513010,), (1400513011,), (1400513012,), (1400513013,), (1400513014,), (1400513015,), (1400513016,), (1400513045,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29612129) result : ((1400512817,), (1400512818,), (1400512819,), (1400512820,), (1400512823,), (1400512834,), (1400512835,), (1400512836,), (1400512837,), (1400512840,), (1400512855,), (1400512856,), (1400512857,), (1400512874,), (1400512875,), (1400512876,), (1400512878,), (1400512881,), (1400512884,), (1400512906,), (1400512907,), (1400512908,), (1400512909,), (1400512918,), (1400512919,), (1400512920,), (1400512956,), (1400512957,), (1400512958,), (1400512959,), (1400512962,), (1400512984,), (1400512985,), (1400512986,), (1400512989,), (1400512992,), (1400512995,), (1400513021,), (1400513022,), (1400513025,), (1400513028,), (1400513031,), (1400513034,), (1400513039,), (1400513041,), (1400513046,), (1400513047,), (1400513048,), (1400513049,), (1400513054,), (1400513055,), (1400513061,), (1400513064,), (1400513068,), (1400513072,), (1400513073,), (1400513074,), (1400513075,), (1400513078,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29612156 , 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=29612129 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 (29612156) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29612129) result : ((1400512817,), (1400512818,), (1400512819,), (1400512820,), (1400512823,), (1400512834,), (1400512835,), (1400512836,), (1400512837,), (1400512840,), (1400512855,), (1400512856,), (1400512857,), (1400512874,), (1400512875,), (1400512876,), (1400512878,), (1400512881,), (1400512884,), (1400512906,), (1400512907,), (1400512908,), (1400512909,), (1400512918,), (1400512919,), (1400512920,), (1400512956,), (1400512957,), (1400512958,), (1400512959,), (1400512962,), (1400512984,), (1400512985,), (1400512986,), (1400512989,), (1400512992,), (1400512995,), (1400513021,), (1400513022,), (1400513025,), (1400513028,), (1400513031,), (1400513034,), (1400513039,), (1400513041,), (1400513046,), (1400513047,), (1400513048,), (1400513049,), (1400513054,), (1400513055,), (1400513061,), (1400513064,), (1400513068,), (1400513072,), (1400513073,), (1400513074,), (1400513075,), (1400513078,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29612157 , 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=29612129 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 (29612157) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29612129) result : ((1400512817,), (1400512818,), (1400512819,), (1400512820,), (1400512823,), (1400512834,), (1400512835,), (1400512836,), (1400512837,), (1400512840,), (1400512855,), (1400512856,), (1400512857,), (1400512874,), (1400512875,), (1400512876,), (1400512878,), (1400512881,), (1400512884,), (1400512906,), (1400512907,), (1400512908,), (1400512909,), (1400512918,), (1400512919,), (1400512920,), (1400512956,), (1400512957,), (1400512958,), (1400512959,), (1400512962,), (1400512984,), (1400512985,), (1400512986,), (1400512989,), (1400512992,), (1400512995,), (1400513021,), (1400513022,), (1400513025,), (1400513028,), (1400513031,), (1400513034,), (1400513039,), (1400513041,), (1400513046,), (1400513047,), (1400513048,), (1400513049,), (1400513054,), (1400513055,), (1400513061,), (1400513064,), (1400513068,), (1400513072,), (1400513073,), (1400513074,), (1400513075,), (1400513078,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29612158 , 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=29612129 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 (29612158) result : ((1400513007,), (1400513040,), (1400513058,), (1400513059,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29612129) result : ((1400512817,), (1400512818,), (1400512819,), (1400512820,), (1400512823,), (1400512834,), (1400512835,), (1400512836,), (1400512837,), (1400512840,), (1400512855,), (1400512856,), (1400512857,), (1400512874,), (1400512875,), (1400512876,), (1400512878,), (1400512881,), (1400512884,), (1400512906,), (1400512907,), (1400512908,), (1400512909,), (1400512918,), (1400512919,), (1400512920,), (1400512956,), (1400512957,), (1400512958,), (1400512959,), (1400512962,), (1400512984,), (1400512985,), (1400512986,), (1400512989,), (1400512992,), (1400512995,), (1400513021,), (1400513022,), (1400513025,), (1400513028,), (1400513031,), (1400513034,), (1400513039,), (1400513041,), (1400513046,), (1400513047,), (1400513048,), (1400513049,), (1400513054,), (1400513055,), (1400513061,), (1400513064,), (1400513068,), (1400513072,), (1400513073,), (1400513074,), (1400513075,), (1400513078,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29612159 , 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=29612129 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 (29612159) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29612129) result : ((1400512817,), (1400512818,), (1400512819,), (1400512820,), (1400512823,), (1400512834,), (1400512835,), (1400512836,), (1400512837,), (1400512840,), (1400512855,), (1400512856,), (1400512857,), (1400512874,), (1400512875,), (1400512876,), (1400512878,), (1400512881,), (1400512884,), (1400512906,), (1400512907,), (1400512908,), (1400512909,), (1400512918,), (1400512919,), (1400512920,), (1400512956,), (1400512957,), (1400512958,), (1400512959,), (1400512962,), (1400512984,), (1400512985,), (1400512986,), (1400512989,), (1400512992,), (1400512995,), (1400513021,), (1400513022,), (1400513025,), (1400513028,), (1400513031,), (1400513034,), (1400513039,), (1400513041,), (1400513046,), (1400513047,), (1400513048,), (1400513049,), (1400513054,), (1400513055,), (1400513061,), (1400513064,), (1400513068,), (1400513072,), (1400513073,), (1400513074,), (1400513075,), (1400513078,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29612160 , 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=29612129 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 (29612160) result : ((1400512997,), (1400512998,), (1400513008,), (1400513044,), (1400513060,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29612129) result : ((1400512817,), (1400512818,), (1400512819,), (1400512820,), (1400512823,), (1400512834,), (1400512835,), (1400512836,), (1400512837,), (1400512840,), (1400512855,), (1400512856,), (1400512857,), (1400512874,), (1400512875,), (1400512876,), (1400512878,), (1400512881,), (1400512884,), (1400512906,), (1400512907,), (1400512908,), (1400512909,), (1400512918,), (1400512919,), (1400512920,), (1400512956,), (1400512957,), (1400512958,), (1400512959,), (1400512962,), (1400512984,), (1400512985,), (1400512986,), (1400512989,), (1400512992,), (1400512995,), (1400513021,), (1400513022,), (1400513025,), (1400513028,), (1400513031,), (1400513034,), (1400513039,), (1400513041,), (1400513046,), (1400513047,), (1400513048,), (1400513049,), (1400513054,), (1400513055,), (1400513061,), (1400513064,), (1400513068,), (1400513072,), (1400513073,), (1400513074,), (1400513075,), (1400513078,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29612161 , 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=29612129 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 (29612161) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29612129) result : ((1400512817,), (1400512818,), (1400512819,), (1400512820,), (1400512823,), (1400512834,), (1400512835,), (1400512836,), (1400512837,), (1400512840,), (1400512855,), (1400512856,), (1400512857,), (1400512874,), (1400512875,), (1400512876,), (1400512878,), (1400512881,), (1400512884,), (1400512906,), (1400512907,), (1400512908,), (1400512909,), (1400512918,), (1400512919,), (1400512920,), (1400512956,), (1400512957,), (1400512958,), (1400512959,), (1400512962,), (1400512984,), (1400512985,), (1400512986,), (1400512989,), (1400512992,), (1400512995,), (1400513021,), (1400513022,), (1400513025,), (1400513028,), (1400513031,), (1400513034,), (1400513039,), (1400513041,), (1400513046,), (1400513047,), (1400513048,), (1400513049,), (1400513054,), (1400513055,), (1400513061,), (1400513064,), (1400513068,), (1400513072,), (1400513073,), (1400513074,), (1400513075,), (1400513078,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29612162 , 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=29612129 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 (29612162) result : ((1400512994,), (1400513042,), (1400513043,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29612129) result : ((1400512817,), (1400512818,), (1400512819,), (1400512820,), (1400512823,), (1400512834,), (1400512835,), (1400512836,), (1400512837,), (1400512840,), (1400512855,), (1400512856,), (1400512857,), (1400512874,), (1400512875,), (1400512876,), (1400512878,), (1400512881,), (1400512884,), (1400512906,), (1400512907,), (1400512908,), (1400512909,), (1400512918,), (1400512919,), (1400512920,), (1400512956,), (1400512957,), (1400512958,), (1400512959,), (1400512962,), (1400512984,), (1400512985,), (1400512986,), (1400512989,), (1400512992,), (1400512995,), (1400513021,), (1400513022,), (1400513025,), (1400513028,), (1400513031,), (1400513034,), (1400513039,), (1400513041,), (1400513046,), (1400513047,), (1400513048,), (1400513049,), (1400513054,), (1400513055,), (1400513061,), (1400513064,), (1400513068,), (1400513072,), (1400513073,), (1400513074,), (1400513075,), (1400513078,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29612163 , 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=29612129 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 (29612163) result : ((1400513017,), (1400513018,), (1400513019,), (1400513020,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29612129) result : ((1400512817,), (1400512818,), (1400512819,), (1400512820,), (1400512823,), (1400512834,), (1400512835,), (1400512836,), (1400512837,), (1400512840,), (1400512855,), (1400512856,), (1400512857,), (1400512874,), (1400512875,), (1400512876,), (1400512878,), (1400512881,), (1400512884,), (1400512906,), (1400512907,), (1400512908,), (1400512909,), (1400512918,), (1400512919,), (1400512920,), (1400512956,), (1400512957,), (1400512958,), (1400512959,), (1400512962,), (1400512984,), (1400512985,), (1400512986,), (1400512989,), (1400512992,), (1400512995,), (1400513021,), (1400513022,), (1400513025,), (1400513028,), (1400513031,), (1400513034,), (1400513039,), (1400513041,), (1400513046,), (1400513047,), (1400513048,), (1400513049,), (1400513054,), (1400513055,), (1400513061,), (1400513064,), (1400513068,), (1400513072,), (1400513073,), (1400513074,), (1400513075,), (1400513078,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29612164 , 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=29612129 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 (29612164) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29612129) result : ((1400512817,), (1400512818,), (1400512819,), (1400512820,), (1400512823,), (1400512834,), (1400512835,), (1400512836,), (1400512837,), (1400512840,), (1400512855,), (1400512856,), (1400512857,), (1400512874,), (1400512875,), (1400512876,), (1400512878,), (1400512881,), (1400512884,), (1400512906,), (1400512907,), (1400512908,), (1400512909,), (1400512918,), (1400512919,), (1400512920,), (1400512956,), (1400512957,), (1400512958,), (1400512959,), (1400512962,), (1400512984,), (1400512985,), (1400512986,), (1400512989,), (1400512992,), (1400512995,), (1400513021,), (1400513022,), (1400513025,), (1400513028,), (1400513031,), (1400513034,), (1400513039,), (1400513041,), (1400513046,), (1400513047,), (1400513048,), (1400513049,), (1400513054,), (1400513055,), (1400513061,), (1400513064,), (1400513068,), (1400513072,), (1400513073,), (1400513074,), (1400513075,), (1400513078,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29612165 , 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=29612129 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 (29612165) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29612129) result : ((1400512817,), (1400512818,), (1400512819,), (1400512820,), (1400512823,), (1400512834,), (1400512835,), (1400512836,), (1400512837,), (1400512840,), (1400512855,), (1400512856,), (1400512857,), (1400512874,), (1400512875,), (1400512876,), (1400512878,), (1400512881,), (1400512884,), (1400512906,), (1400512907,), (1400512908,), (1400512909,), (1400512918,), (1400512919,), (1400512920,), (1400512956,), (1400512957,), (1400512958,), (1400512959,), (1400512962,), (1400512984,), (1400512985,), (1400512986,), (1400512989,), (1400512992,), (1400512995,), (1400513021,), (1400513022,), (1400513025,), (1400513028,), (1400513031,), (1400513034,), (1400513039,), (1400513041,), (1400513046,), (1400513047,), (1400513048,), (1400513049,), (1400513054,), (1400513055,), (1400513061,), (1400513064,), (1400513068,), (1400513072,), (1400513073,), (1400513074,), (1400513075,), (1400513078,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29612129 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','mal_croppe','autre_refus','Carton_brun','Carton_gris','papier','flou','cartonnette','metal','Teint_Dans_La_Masse','kraft','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29612129 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','mal_croppe','autre_refus','Carton_brun','Carton_gris','papier','flou','cartonnette','metal','Teint_Dans_La_Masse','kraft','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 29612129, 'sub_port_id': 29612167, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214080, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 32)}, 'Carton_brun': {'main_port_id': 29612129, 'sub_port_id': 29612168, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214081, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 32)}, 'papier': {'main_port_id': 29612129, 'sub_port_id': 29612169, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214082, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 32)}, 'mal_croppe': {'main_port_id': 29612129, 'sub_port_id': 29612170, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214083, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 29612129, 'sub_port_id': 29612171, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214084, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 32)}, 'environnement': {'main_port_id': 29612129, 'sub_port_id': 29612172, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214085, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 32)}, 'Carton_gris': {'main_port_id': 29612129, 'sub_port_id': 29612173, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214086, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 32)}, 'kraft': {'main_port_id': 29612129, 'sub_port_id': 29612174, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214087, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 32)}, 'autre_refus': {'main_port_id': 29612129, 'sub_port_id': 29612175, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214088, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 32)}, 'plastique': {'main_port_id': 29612129, 'sub_port_id': 29612176, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214089, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 32)}, 'cartonnette': {'main_port_id': 29612129, 'sub_port_id': 29612177, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214090, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 32)}, 'flou': {'main_port_id': 29612129, 'sub_port_id': 29612178, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20214091, 'last_updated_at': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 10, 55), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 10, 49, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29612167,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29612154 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29612168,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29612155 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29612169,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29612156 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29612170,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29612157 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29612171,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29612158 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29612172,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29612159 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29612173,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29612160 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29612174,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29612161 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29612175,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29612162 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29612176,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29612163 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29612177,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29612164 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29612178,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29612165 lien utilise dans velours : https://marlene.fotonower.com/velours/29612167,29612168,29612169,29612170,29612171,29612172,29612173,29612174,29612175,29612176,29612177,29612178?tags=metal,Carton_brun,papier,mal_croppe,Teint_Dans_La_Masse,environnement,Carton_gris,kraft,autre_refus,plastique,cartonnette,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29612129]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1400513078, 1400513075, 1400513074, 1400513073, 1400513072, 1400513068, 1400513064, 1400513061, 1400513055, 1400513054, 1400513049, 1400513048, 1400513047, 1400513046, 1400513041, 1400513039, 1400513034, 1400513031, 1400513028, 1400513025, 1400513022, 1400513021] map_info['map_portfolio_photo'] : {29612129: [1400513078, 1400513075, 1400513074, 1400513073, 1400513072, 1400513068, 1400513064, 1400513061, 1400513055, 1400513054, 1400513049, 1400513048, 1400513047, 1400513046, 1400513041, 1400513039, 1400513034, 1400513031, 1400513028, 1400513025, 1400513022, 1400513021, 1400512995, 1400512992, 1400512989, 1400512986, 1400512985, 1400512984, 1400512962, 1400512959, 1400512958, 1400512957, 1400512956, 1400512920, 1400512919, 1400512918, 1400512909, 1400512908, 1400512907, 1400512906, 1400512884, 1400512881, 1400512878, 1400512876, 1400512875, 1400512874, 1400512857, 1400512856, 1400512855, 1400512840, 1400512837, 1400512836, 1400512835, 1400512834, 1400512823, 1400512820, 1400512819, 1400512818, 1400512817]} final : False mtd_id 4302 list_pids : [1400513078, 1400513075, 1400513074, 1400513073, 1400513072, 1400513068, 1400513064, 1400513061, 1400513055, 1400513054, 1400513049, 1400513048, 1400513047, 1400513046, 1400513041, 1400513039, 1400513034, 1400513031, 1400513028, 1400513025, 1400513022, 1400513021] Looping around the photos to save general results len do output : 1 /29612129. 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, '4257160') ('4302', '29612129', '1400513078', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513075', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513074', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513073', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513072', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513068', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513064', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513061', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513055', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513054', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513049', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513048', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513047', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513046', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513041', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513039', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513034', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513031', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513028', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513025', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513022', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513021', None, None, None, None, None, '4257160') 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, '29612129', "{'metal': 29612154, 'Carton_brun': 29612155, 'papier': 29612156, 'mal_croppe': 29612157, 'Teint_Dans_La_Masse': 29612158, 'environnement': 29612159, 'Carton_gris': 29612160, 'kraft': 29612161, 'autre_refus': 29612162, 'plastique': 29612163, 'cartonnette': 29612164, 'flou': 29612165}", None, None, None, None, '4257160'), ('4302', '29612129', '1400513078', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513075', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513074', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513073', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513072', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513068', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513064', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513061', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513055', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513054', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513049', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513048', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513047', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513046', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513041', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513039', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513034', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513031', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513028', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513025', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513022', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513021', None, None, None, None, None, '4257160')] time used for this insertion : 0.01759624481201172 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7660000324249268 time spend to save output : 0.017994403839111328 total time spend for step 1 : 1.783994436264038 step2:final Mon Dec 22 10:57:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (29612129) 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 29612129 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1400512823,1400512820,1400512819,1400512818,1400512817,1400512840,1400512837,1400512836,1400512835,1400512834,1400512857,1400512856,1400512855,1400512884,1400512881,1400512878,1400512876,1400512874,1400512875,1400512909,1400512908,1400512907,1400512906,1400512920,1400512919,1400512918,1400513068,1400512962,1400513049,1400512959,1400512958,1400513048,1400512995,1400512957,1400513047,1400512992,1400512956,1400513046,1400512989,1400513041,1400512986,1400513039,1400512985,1400513034,1400512984,1400513031,1400513028,1400513025,1400513022,1400513021,1400513064,1400513061,1400513055,1400513054,1400513078,1400513075,1400513074,1400513073,1400513072); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29612129]) Inside saveOutput : final : False verbose : True original output for save of step final : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} new output for save of step final : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} [1400513078, 1400513075, 1400513074, 1400513073, 1400513072, 1400513068, 1400513064, 1400513061, 1400513055, 1400513054, 1400513049, 1400513048, 1400513047, 1400513046, 1400513041, 1400513039, 1400513034, 1400513031, 1400513028, 1400513025, 1400513022, 1400513021] map_info['map_portfolio_photo'] : {29612129: [1400513078, 1400513075, 1400513074, 1400513073, 1400513072, 1400513068, 1400513064, 1400513061, 1400513055, 1400513054, 1400513049, 1400513048, 1400513047, 1400513046, 1400513041, 1400513039, 1400513034, 1400513031, 1400513028, 1400513025, 1400513022, 1400513021, 1400512995, 1400512992, 1400512989, 1400512986, 1400512985, 1400512984, 1400512962, 1400512959, 1400512958, 1400512957, 1400512956, 1400512920, 1400512919, 1400512918, 1400512909, 1400512908, 1400512907, 1400512906, 1400512884, 1400512881, 1400512878, 1400512876, 1400512875, 1400512874, 1400512857, 1400512856, 1400512855, 1400512840, 1400512837, 1400512836, 1400512835, 1400512834, 1400512823, 1400512820, 1400512819, 1400512818, 1400512817]} final : False mtd_id 4302 list_pids : [1400513078, 1400513075, 1400513074, 1400513073, 1400513072, 1400513068, 1400513064, 1400513061, 1400513055, 1400513054, 1400513049, 1400513048, 1400513047, 1400513046, 1400513041, 1400513039, 1400513034, 1400513031, 1400513028, 1400513025, 1400513022, 1400513021] Looping around the photos to save general results len do output : 22 /1400513078.Didn't retrieve data . /1400513075.Didn't retrieve data . /1400513074.Didn't retrieve data . /1400513073.Didn't retrieve data . /1400513072.Didn't retrieve data . /1400513068.Didn't retrieve data . /1400513064.Didn't retrieve data . /1400513061.Didn't retrieve data . /1400513055.Didn't retrieve data . /1400513054.Didn't retrieve data . /1400513049.Didn't retrieve data . /1400513048.Didn't retrieve data . /1400513047.Didn't retrieve data . /1400513046.Didn't retrieve data . /1400513041.Didn't retrieve data . /1400513039.Didn't retrieve data . /1400513034.Didn't retrieve data . /1400513031.Didn't retrieve data . /1400513028.Didn't retrieve data . /1400513025.Didn't retrieve data . /1400513022.Didn't retrieve data . /1400513021.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, '4257160') ('4302', '29612129', '1400513078', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513075', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513074', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513073', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513072', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513068', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513064', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513061', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513055', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513054', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513049', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513048', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513047', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513046', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513041', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513039', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513034', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513031', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513028', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513025', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513022', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513021', None, None, None, None, None, '4257160') 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', '29612129', '1400513078', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513075', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513074', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513073', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513072', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513068', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513064', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513061', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513055', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513054', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513049', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513048', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513047', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513046', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513041', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513039', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513034', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513031', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513028', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513025', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513022', '0.09080516403946003', None, None, None, None, '4257160'), ('4302', '29612129', '1400513021', '0.09080516403946003', None, None, None, None, '4257160')] time used for this insertion : 0.0169980525970459 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08175134658813477 time spend to save output : 0.01804637908935547 total time spend for step 2 : 0.09979772567749023 step3:velours_tree Mon Dec 22 10:57:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29612129: [{'metal': 29612154, 'Carton_brun': 29612155, 'papier': 29612156, 'mal_croppe': 29612157, 'Teint_Dans_La_Masse': 29612158, 'environnement': 29612159, 'Carton_gris': 29612160, 'kraft': 29612161, 'autre_refus': 29612162, 'plastique': 29612163, 'cartonnette': 29612164, 'flou': 29612165}]} input_args_next_step : {29612129: ()} output_args : {29612129: [{'metal': 29612154, 'Carton_brun': 29612155, 'papier': 29612156, 'mal_croppe': 29612157, 'Teint_Dans_La_Masse': 29612158, 'environnement': 29612159, 'Carton_gris': 29612160, 'kraft': 29612161, 'autre_refus': 29612162, 'plastique': 29612163, 'cartonnette': 29612164, 'flou': 29612165}]} args : 29612129 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': 29612154, 'Carton_brun': 29612155, 'papier': 29612156, 'mal_croppe': 29612157, 'Teint_Dans_La_Masse': 29612158, 'environnement': 29612159, 'Carton_gris': 29612160, 'kraft': 29612161, 'autre_refus': 29612162, 'plastique': 29612163, 'cartonnette': 29612164, 'flou': 29612165},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29612129) 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([29612129]) 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.262920618057251 time spend to save output : 4.982948303222656e-05 total time spend for step 3 : 0.2629704475402832 step4:send_mail_cod Mon Dec 22 10:57:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} input_args_next_step : {1400513078: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513078 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513075 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513074 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513073 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513072 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513068 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513064 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513061 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513055 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513054 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513049 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513048 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513047 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513046 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513041 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513039 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513034 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513031 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513028 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513025 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513022 depend.output_id : 0 input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ()} output_args : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',)} args : 1400513021 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 : {29612129: [{'metal': 29612154, 'Carton_brun': 29612155, 'papier': 29612156, 'mal_croppe': 29612157, 'Teint_Dans_La_Masse': 29612158, 'environnement': 29612159, 'Carton_gris': 29612160, 'kraft': 29612161, 'autre_refus': 29612162, 'plastique': 29612163, 'cartonnette': 29612164, 'flou': 29612165}]} input_args_next_step : {1400513078: ('0.09080516403946003',), 1400513075: ('0.09080516403946003',), 1400513074: ('0.09080516403946003',), 1400513073: ('0.09080516403946003',), 1400513072: ('0.09080516403946003',), 1400513068: ('0.09080516403946003',), 1400513064: ('0.09080516403946003',), 1400513061: ('0.09080516403946003',), 1400513055: ('0.09080516403946003',), 1400513054: ('0.09080516403946003',), 1400513049: ('0.09080516403946003',), 1400513048: ('0.09080516403946003',), 1400513047: ('0.09080516403946003',), 1400513046: ('0.09080516403946003',), 1400513041: ('0.09080516403946003',), 1400513039: ('0.09080516403946003',), 1400513034: ('0.09080516403946003',), 1400513031: ('0.09080516403946003',), 1400513028: ('0.09080516403946003',), 1400513025: ('0.09080516403946003',), 1400513022: ('0.09080516403946003',), 1400513021: ('0.09080516403946003',), 29612129: ()} output_args : {29612129: [{'metal': 29612154, 'Carton_brun': 29612155, 'papier': 29612156, 'mal_croppe': 29612157, 'Teint_Dans_La_Masse': 29612158, 'environnement': 29612159, 'Carton_gris': 29612160, 'kraft': 29612161, 'autre_refus': 29612162, 'plastique': 29612163, 'cartonnette': 29612164, 'flou': 29612165}]} args : 29612129 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.09080516403946003',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29612129) 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 (1400513078,1400513075,1400513074,1400513073,1400513072,1400513068,1400513064,1400513061,1400513055,1400513054,1400513049,1400513048,1400513047,1400513046,1400513041,1400513039,1400513034,1400513031,1400513028,1400513025,1400513022,1400513021) Found this number of photos: 22 ##### Call download_photos : nb_thread : 5 begin to download photo : 1400513021 begin to download photo : 1400513034 begin to download photo : 1400513048 begin to download photo : 1400513064 begin to download photo : 1400513075 download finish for photo 1400513064 begin to download photo : 1400513068 download finish for photo 1400513021 begin to download photo : 1400513022 download finish for photo 1400513075 begin to download photo : 1400513078 download finish for photo 1400513034 begin to download photo : 1400513039 download finish for photo 1400513048 begin to download photo : 1400513049 download finish for photo 1400513078 download finish for photo 1400513068 begin to download photo : 1400513072 download finish for photo 1400513039 begin to download photo : 1400513041 download finish for photo 1400513022 begin to download photo : 1400513025 download finish for photo 1400513049 begin to download photo : 1400513054 download finish for photo 1400513041 begin to download photo : 1400513046 download finish for photo 1400513025 begin to download photo : 1400513028 download finish for photo 1400513072 begin to download photo : 1400513073 download finish for photo 1400513054 begin to download photo : 1400513055 download finish for photo 1400513046 begin to download photo : 1400513047 download finish for photo 1400513055 begin to download photo : 1400513061 download finish for photo 1400513073 begin to download photo : 1400513074 download finish for photo 1400513028 begin to download photo : 1400513031 download finish for photo 1400513047 download finish for photo 1400513061 download finish for photo 1400513074 download finish for photo 1400513031 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette296121541766397421/ imagette296121571766397421/ imagette296121611766397421/ length of list_filenames : 22 ; length of list_pids : 22 ; length of list_args : 22 results_Auto_P29612129_22-12-2025_10_57_01.pdf 29612154 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=29612154 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296121541766397421 29612157 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=29612157 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296121571766397421 29612161 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=29612161 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296121611766397421 29612162 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=29612162 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400512994: '1766397187_1706814_1400512908_b5f9e3a8dde403973c095fadf5b8b684_rle_crop_4077986403_0.png', 1400513042: '1766397265_1712559_1400512957_faba912de0a5865265cc372e57dee620_rle_crop_4077986831_0.png', 1400513043: '1766397265_1712559_1400512956_b3def29064dfc2cafbaa56143ba5fbad_rle_crop_4077986839_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/49b412f65106a6692ea9d38023b50d26_96963602.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/7c3c4f3ca8bba68035ed5745774e8378_50204525.png change filename to text .imagette296121621766397421/ imagette296121621766397421/1766397265_1712559_1400512956_b3def29064dfc2cafbaa56143ba5fbad_rle_crop_4077986839_0.png.png imagette296121621766397421/1766397265_1712559_1400512957_faba912de0a5865265cc372e57dee620_rle_crop_4077986831_0.png.png imagette296121621766397421/1766397187_1706814_1400512908_b5f9e3a8dde403973c095fadf5b8b684_rle_crop_4077986403_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/f26db379f7f3d6198db91675f8ba8231_21912805.png imagette296121621766397421 29612163 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=29612163 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400513017: '1766397206_1708531_1400512909_bac30e78e7c62533d3032bca0f5fc44f_rle_crop_4077986625_0.png', 1400513018: '1766397206_1708531_1400512878_73c91c6499a8deb5337cac2f68a19adc_rle_crop_4077986658_0.png', 1400513019: '1766397206_1708531_1400512875_e484cb4b44a2a44c737190a3ae624fe9_rle_crop_4077986699_0.png', 1400513020: '1766397206_1708531_1400512874_fac7581ee9208c0f14eda31f1dee988f_rle_crop_4077986715_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/cfde4606797956330209fed766a609c6_49039723.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/54fa851c95a2650631b4e7953da7ba37_90172624.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/80bbfee744fdfbcd192f1244d8e4f768_17968374.png change filename to text .imagette296121631766397421/ imagette296121631766397421/1766397206_1708531_1400512878_73c91c6499a8deb5337cac2f68a19adc_rle_crop_4077986658_0.png.png imagette296121631766397421/1766397206_1708531_1400512874_fac7581ee9208c0f14eda31f1dee988f_rle_crop_4077986715_0.png.png imagette296121631766397421/1766397206_1708531_1400512909_bac30e78e7c62533d3032bca0f5fc44f_rle_crop_4077986625_0.png.png imagette296121631766397421/1766397206_1708531_1400512875_e484cb4b44a2a44c737190a3ae624fe9_rle_crop_4077986699_0.png.png imagette296121641766397421/ imagette296121651766397421/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/8c9242aae81f61974488a917f1de5a37_60227744.png imagette296121631766397421 29612164 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=29612164 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296121641766397421 29612165 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=29612165 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296121651766397421 29612155 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=29612155 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400513010: '1766397206_1708531_1400512909_bac30e78e7c62533d3032bca0f5fc44f_rle_crop_4077986629_0.png', 1400513011: '1766397206_1708531_1400512878_73c91c6499a8deb5337cac2f68a19adc_rle_crop_4077986662_0.png', 1400513012: '1766397206_1708531_1400512876_56afd26ed7bcb96f2fe754b4cc7ce098_rle_crop_4077986682_0.png', 1400513013: '1766397206_1708531_1400512876_56afd26ed7bcb96f2fe754b4cc7ce098_rle_crop_4077986683_0.png', 1400513014: '1766397206_1708531_1400512875_e484cb4b44a2a44c737190a3ae624fe9_rle_crop_4077986697_0.png', 1400513015: '1766397206_1708531_1400512875_e484cb4b44a2a44c737190a3ae624fe9_rle_crop_4077986701_0.png', 1400513016: '1766397206_1708531_1400512874_fac7581ee9208c0f14eda31f1dee988f_rle_crop_4077986717_0.png', 1400513045: '1766397265_1712559_1400512956_b3def29064dfc2cafbaa56143ba5fbad_rle_crop_4077986841_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/9b39d91b8999124175eee195360058a2_4562898.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/88dc9adce50433b4701cb02fa8d315be_67219837.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/a52fd719c1d662897f551874b0c64e04_30389476.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/7a09f4e539f5ee8e2cdc3768a9c3760c_98486598.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/2a9f59233e7282818ffbdf8569805da0_97891529.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/4ad0950c006c83e7f6f00cc49f1f4c7c_18892382.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/e8cabe751529d31b825796110c8da4fc_26029682.png change filename to text .imagette296121551766397421/ imagette296121551766397421/1766397206_1708531_1400512909_bac30e78e7c62533d3032bca0f5fc44f_rle_crop_4077986629_0.png.png imagette296121551766397421/1766397206_1708531_1400512876_56afd26ed7bcb96f2fe754b4cc7ce098_rle_crop_4077986683_0.png.png imagette296121551766397421/1766397206_1708531_1400512878_73c91c6499a8deb5337cac2f68a19adc_rle_crop_4077986662_0.png.png imagette296121551766397421/1766397206_1708531_1400512876_56afd26ed7bcb96f2fe754b4cc7ce098_rle_crop_4077986682_0.png.png imagette296121551766397421/1766397206_1708531_1400512874_fac7581ee9208c0f14eda31f1dee988f_rle_crop_4077986717_0.png.png imagette296121551766397421/1766397206_1708531_1400512875_e484cb4b44a2a44c737190a3ae624fe9_rle_crop_4077986701_0.png.png imagette296121551766397421/1766397265_1712559_1400512956_b3def29064dfc2cafbaa56143ba5fbad_rle_crop_4077986841_0.png.png imagette296121551766397421/1766397206_1708531_1400512875_e484cb4b44a2a44c737190a3ae624fe9_rle_crop_4077986697_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/b540c7e7265d784194f34cf45992153b_1438073.png imagette296121551766397421 29612158 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=29612158 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400513007: '1766397206_1708531_1400512881_845ea0086f9d3bed15fb65a217a14212_rle_crop_4077986643_0.png', 1400513040: '1766397265_1712559_1400512957_faba912de0a5865265cc372e57dee620_rle_crop_4077986830_0.png', 1400513058: '1766397305_1714705_1400512919_30ab0e1c90ad4fde304b68ebdea4766e_rle_crop_4077986931_0.png', 1400513059: '1766397305_1714705_1400512918_4521d0b8f713e82831796c07e1c1605d_rle_crop_4077986949_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/788c644215c6de14e718ad62989258b5_3695953.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/cb005df9c5b73940d415006087fec301_75533579.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/44dee00a781c8b1e52ed3c348c57b70d_89097390.png change filename to text .imagette296121581766397422/ imagette296121581766397422/1766397305_1714705_1400512919_30ab0e1c90ad4fde304b68ebdea4766e_rle_crop_4077986931_0.png.png imagette296121581766397422/1766397305_1714705_1400512918_4521d0b8f713e82831796c07e1c1605d_rle_crop_4077986949_0.png.png imagette296121581766397422/1766397206_1708531_1400512881_845ea0086f9d3bed15fb65a217a14212_rle_crop_4077986643_0.png.png imagette296121581766397422/1766397265_1712559_1400512957_faba912de0a5865265cc372e57dee620_rle_crop_4077986830_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/cdf9563daf54b274f7f856269760e5cf_81428834.png imagette296121581766397422 29612160 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=29612160 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400512997: '1766397187_1706814_1400512908_b5f9e3a8dde403973c095fadf5b8b684_rle_crop_4077986402_0.png', 1400512998: '1766397187_1706814_1400512907_5d0d6c55a52e64cb57589a7a04f71628_rle_crop_4077986416_0.png', 1400513008: '1766397206_1708531_1400512881_845ea0086f9d3bed15fb65a217a14212_rle_crop_4077986645_0.png', 1400513044: '1766397265_1712559_1400512957_faba912de0a5865265cc372e57dee620_rle_crop_4077986828_0.png', 1400513060: '1766397305_1714705_1400512918_4521d0b8f713e82831796c07e1c1605d_rle_crop_4077986944_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/fb6e7a87ed4fb546b4ea46b2be3fb808_24619649.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/3b12d22de69c8934e381b3195756cb73_5568224.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/5aa0000ae1b712bd080af307dd9d863e_40843065.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/099d5face6a27b02a595f2b5128513dd_39642297.png change filename to text .imagette296121601766397422/ imagette296121601766397422/1766397187_1706814_1400512908_b5f9e3a8dde403973c095fadf5b8b684_rle_crop_4077986402_0.png.png imagette296121601766397422/1766397187_1706814_1400512907_5d0d6c55a52e64cb57589a7a04f71628_rle_crop_4077986416_0.png.png imagette296121601766397422/1766397305_1714705_1400512918_4521d0b8f713e82831796c07e1c1605d_rle_crop_4077986944_0.png.png imagette296121601766397422/1766397265_1712559_1400512957_faba912de0a5865265cc372e57dee620_rle_crop_4077986828_0.png.png imagette296121601766397422/1766397206_1708531_1400512881_845ea0086f9d3bed15fb65a217a14212_rle_crop_4077986645_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/798e73d68e8a6a4afee934d3adc47ad7_3101704.png imagette296121601766397422 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29612129 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29612167,29612168,29612169,29612170,29612171,29612172,29612173,29612174,29612175,29612176,29612177,29612178?tags=metal,Carton_brun,papier,mal_croppe,Teint_Dans_La_Masse,environnement,Carton_gris,kraft,autre_refus,plastique,cartonnette,flou your option no_mail is active, we will not send the real mail to your client args[1400513078] : ('0.09080516403946003',) no score found for photo 1400513078 We are sending mail with results at report@fotonower.com args[1400513075] : ('0.09080516403946003',) no score found for photo 1400513075 We are sending mail with results at report@fotonower.com args[1400513074] : ('0.09080516403946003',) no score found for photo 1400513074 We are sending mail with results at report@fotonower.com args[1400513073] : ('0.09080516403946003',) no score found for photo 1400513073 We are sending mail with results at report@fotonower.com args[1400513072] : ('0.09080516403946003',) no score found for photo 1400513072 We are sending mail with results at report@fotonower.com args[1400513068] : ('0.09080516403946003',) no score found for photo 1400513068 We are sending mail with results at report@fotonower.com args[1400513064] : ('0.09080516403946003',) no score found for photo 1400513064 We are sending mail with results at report@fotonower.com args[1400513061] : ('0.09080516403946003',) no score found for photo 1400513061 We are sending mail with results at report@fotonower.com args[1400513055] : ('0.09080516403946003',) no score found for photo 1400513055 We are sending mail with results at report@fotonower.com args[1400513054] : ('0.09080516403946003',) no score found for photo 1400513054 We are sending mail with results at report@fotonower.com args[1400513049] : ('0.09080516403946003',) no score found for photo 1400513049 We are sending mail with results at report@fotonower.com args[1400513048] : ('0.09080516403946003',) no score found for photo 1400513048 We are sending mail with results at report@fotonower.com args[1400513047] : ('0.09080516403946003',) no score found for photo 1400513047 We are sending mail with results at report@fotonower.com args[1400513046] : ('0.09080516403946003',) no score found for photo 1400513046 We are sending mail with results at report@fotonower.com args[1400513041] : ('0.09080516403946003',) no score found for photo 1400513041 We are sending mail with results at report@fotonower.com args[1400513039] : ('0.09080516403946003',) no score found for photo 1400513039 We are sending mail with results at report@fotonower.com args[1400513034] : ('0.09080516403946003',) no score found for photo 1400513034 We are sending mail with results at report@fotonower.com args[1400513031] : ('0.09080516403946003',) no score found for photo 1400513031 We are sending mail with results at report@fotonower.com args[1400513028] : ('0.09080516403946003',) no score found for photo 1400513028 We are sending mail with results at report@fotonower.com args[1400513025] : ('0.09080516403946003',) no score found for photo 1400513025 We are sending mail with results at report@fotonower.com args[1400513022] : ('0.09080516403946003',) no score found for photo 1400513022 We are sending mail with results at report@fotonower.com args[1400513021] : ('0.09080516403946003',) no score found for photo 1400513021 We are sending mail with results at report@fotonower.com refus_total : 0.09080516403946003 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=29612129 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_P29612129_22-12-2025_10_57_01.pdf results_Auto_P29612129_22-12-2025_10_57_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29612129_22-12-2025_10_57_01.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','29612129','results_Auto_P29612129_22-12-2025_10_57_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29612129_22-12-2025_10_57_01.pdf','pdf','','0.25','0.09080516403946003') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29612129]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1400513078, 1400513075, 1400513074, 1400513073, 1400513072, 1400513068, 1400513064, 1400513061, 1400513055, 1400513054, 1400513049, 1400513048, 1400513047, 1400513046, 1400513041, 1400513039, 1400513034, 1400513031, 1400513028, 1400513025, 1400513022, 1400513021] map_info['map_portfolio_photo'] : {29612129: [1400513078, 1400513075, 1400513074, 1400513073, 1400513072, 1400513068, 1400513064, 1400513061, 1400513055, 1400513054, 1400513049, 1400513048, 1400513047, 1400513046, 1400513041, 1400513039, 1400513034, 1400513031, 1400513028, 1400513025, 1400513022, 1400513021, 1400512995, 1400512992, 1400512989, 1400512986, 1400512985, 1400512984, 1400512962, 1400512959, 1400512958, 1400512957, 1400512956, 1400512920, 1400512919, 1400512918, 1400512909, 1400512908, 1400512907, 1400512906, 1400512884, 1400512881, 1400512878, 1400512876, 1400512875, 1400512874, 1400512857, 1400512856, 1400512855, 1400512840, 1400512837, 1400512836, 1400512835, 1400512834, 1400512823, 1400512820, 1400512819, 1400512818, 1400512817]} final : False mtd_id 4302 list_pids : [1400513078, 1400513075, 1400513074, 1400513073, 1400513072, 1400513068, 1400513064, 1400513061, 1400513055, 1400513054, 1400513049, 1400513048, 1400513047, 1400513046, 1400513041, 1400513039, 1400513034, 1400513031, 1400513028, 1400513025, 1400513022, 1400513021] 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, '4257160') ('4302', '29612129', '1400513078', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513075', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513074', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513073', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513072', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513068', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513064', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513061', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513055', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513054', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513049', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513048', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513047', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513046', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513041', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513039', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513034', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513031', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513028', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513025', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513022', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513021', None, None, None, None, None, '4257160') 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', '29612129', '1400513078', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513075', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513074', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513073', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513072', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513068', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513064', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513061', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513055', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513054', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513049', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513048', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513047', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513046', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513041', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513039', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513034', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513031', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513028', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513025', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513022', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513021', None, None, None, None, None, '4257160')] time used for this insertion : 0.019894123077392578 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.892505407333374 time spend to save output : 0.020252227783203125 total time spend for step 4 : 4.912757635116577 step5:split_time_score Mon Dec 22 10:57:05 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 : ['29612129'] 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 : [('29612129',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29612129) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1400513075: {'path': 'temp/1766397420_1867855_1400513075_088d4bcc9b4798f86be3794edfed54bd.jpg', 'extension': 'jpg'}, 1400513078: {'path': 'temp/1766397420_1867855_1400513078_777f733cdfdf5da8d34ae064c6cf4272.jpg', 'extension': 'jpg'}, 1400513034: {'path': 'temp/1766397420_1867855_1400513034_5409c890da29f8e31fb0688453aebeb5.jpg', 'extension': 'jpg'}, 1400513039: {'path': 'temp/1766397420_1867855_1400513039_268e8264fd41ad71d294905246c9f870.jpg', 'extension': 'jpg'}, 1400513041: {'path': 'temp/1766397420_1867855_1400513041_11f513918f57a46724d31eb24ecf5bc1.jpg', 'extension': 'jpg'}, 1400513046: {'path': 'temp/1766397420_1867855_1400513046_3338537021cebc9b54e8d079af4ea803.jpg', 'extension': 'jpg'}, 1400513047: {'path': 'temp/1766397420_1867855_1400513047_d9676d4e0d446264050e292fea43c2f9.jpg', 'extension': 'jpg'}, 1400513048: {'path': 'temp/1766397420_1867855_1400513048_7460c38925676139e4f1d08caf439e3b.jpg', 'extension': 'jpg'}, 1400513049: {'path': 'temp/1766397420_1867855_1400513049_2e7c67002d1f642c0135b316221a814c.jpg', 'extension': 'jpg'}, 1400513054: {'path': 'temp/1766397420_1867855_1400513054_5a67aa3c4d5375867c062cb3f7032661.jpg', 'extension': 'jpg'}, 1400513055: {'path': 'temp/1766397420_1867855_1400513055_6e7515bc9d536b2ba99cd76321ca3b09.jpg', 'extension': 'jpg'}, 1400513061: {'path': 'temp/1766397420_1867855_1400513061_971d5630a0365cced952d31eab4e1a71.jpg', 'extension': 'jpg'}, 1400513064: {'path': 'temp/1766397420_1867855_1400513064_713fb92148259339c1bddc51afad4a02.jpg', 'extension': 'jpg'}, 1400513068: {'path': 'temp/1766397420_1867855_1400513068_adc9164244f87f6839775e7d32626868.jpg', 'extension': 'jpg'}, 1400513072: {'path': 'temp/1766397420_1867855_1400513072_9574bf294c80cafc7b6b8850db0478dc.jpg', 'extension': 'jpg'}, 1400513073: {'path': 'temp/1766397420_1867855_1400513073_455b36325ac7daff40a1071b356dc886.jpg', 'extension': 'jpg'}, 1400513074: {'path': 'temp/1766397420_1867855_1400513074_6392285ab110208c9ca774f46d68f825.jpg', 'extension': 'jpg'}, 1400513021: {'path': 'temp/1766397420_1867855_1400513021_f27e1c5575bfe0b837916965b56b3153.jpg', 'extension': 'jpg'}, 1400513022: {'path': 'temp/1766397420_1867855_1400513022_e790fbecaf94996110c5578b5a58946b.jpg', 'extension': 'jpg'}, 1400513025: {'path': 'temp/1766397420_1867855_1400513025_c8e3f6689344c8ae368b1b4da046934a.jpg', 'extension': 'jpg'}, 1400513028: {'path': 'temp/1766397420_1867855_1400513028_4685010d6fde49616fe91801aa21691d.jpg', 'extension': 'jpg'}, 1400513031: {'path': 'temp/1766397420_1867855_1400513031_4589bfa6a262cf2f29744a0976ad0c4d.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 = 29612129; (('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 = 29612129 group by h (('10', 59),) 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=29612129 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 (29612129) 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 (29612129) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 22122025 29612129 Nombre de photos uploadées : 59 / 23040 (0%) 22122025 29612129 Nombre de photos taguées (types de déchets): 0 / 59 (0%) 22122025 29612129 Nombre de photos taguées (volume) : 0 / 59 (0%) [{'photo_id': 1400512823, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/7433a0057eae5aa66615c869f177b48d.jpg', 'username': None, 'uploaded_at': 1766396768, 'text': 'image_22122025_10_45_04_10147.jpg'}, {'photo_id': 1400512820, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/d6ceef4302ae1b0c12eec57b31e660a4.jpg', 'username': None, 'uploaded_at': 1766396768, 'text': 'image_22122025_10_45_14_10134.jpg'}, {'photo_id': 1400512819, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/20211fa8ece0c339537c6b17e403e5e2.jpg', 'username': None, 'uploaded_at': 1766396768, 'text': 'image_22122025_10_45_24_10135.jpg'}, {'photo_id': 1400512818, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/08fffdc5c5498c479f0adca605bf69d4.jpg', 'username': None, 'uploaded_at': 1766396768, 'text': 'image_22122025_10_45_34_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ??????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002721548080444336 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29612129, '2025-12-22' ) 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-12-22' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2771760,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.23889517784118652 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= 2771760 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29602779, 'dashboard_result_id': 18600811, '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_P29602779_22-12-2025_05_16_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29602780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29602781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29602782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29602783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29602784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29602785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29602786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29602787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29602788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29602789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29602790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29602791, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29603008, 'dashboard_result_id': 18600812, '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_P29603008_22-12-2025_05_38_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603019, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603021, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29603274, 'dashboard_result_id': 18600813, '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_P29603274_22-12-2025_05_47_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603292, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29603683, 'dashboard_result_id': 18600814, '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_P29603683_22-12-2025_06_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603702, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29604042, 'dashboard_result_id': 18600815, '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_P29604042_22-12-2025_06_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29604044, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29604045, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29604046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29604047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29604048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29604049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29604050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29604051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29604052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29604053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29604054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29604055, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29604335, 'dashboard_result_id': 18600816, '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_P29604335_22-12-2025_06_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29604342, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29604343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29604344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29604345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29604346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29604347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29604348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29604349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29604350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29604351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29604352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29604353, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29604724, 'dashboard_result_id': 18600817, '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_P29604724_22-12-2025_06_49_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29604731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29604732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29604733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29604734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29604735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29604736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29604738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29604739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29604740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29604741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29604742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29604743, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29605207, 'dashboard_result_id': 18600818, '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_P29605207_22-12-2025_07_04_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29605232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29605233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29605234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29605235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29605236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29605237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29605238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29605239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29605240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29605241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29605242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29605243, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29605649, 'dashboard_result_id': 18600819, '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_P29605649_22-12-2025_07_30_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29605671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29605672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29605673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29605674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29605675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29605676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29605677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29605678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29605679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29605680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29605681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29605682, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29606145, 'dashboard_result_id': 18600820, '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_P29606145_22-12-2025_07_49_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29606149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29606150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29606151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29606152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29606153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29606154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29606155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29606156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29606157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29606158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29606159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29606160, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29606515, 'dashboard_result_id': 18600821, '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_P29606515_22-12-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29606520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29606521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29606522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29606523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29606524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29606525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29606526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29606527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29606528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29606529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29606530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29606531, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29607020, 'dashboard_result_id': 18600822, '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_P29607020_22-12-2025_08_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29607024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29607025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29607026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29607027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29607028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29607029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29607030, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29607031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29607032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29607033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29607034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29607035, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29607507, 'dashboard_result_id': 18600823, '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_P29607507_22-12-2025_08_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29607514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29607515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29607516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29607517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29607518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29607519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29607520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29607521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29607522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29607523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29607524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29607525, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29607852, 'dashboard_result_id': 18600824, '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_P29607852_22-12-2025_08_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29607863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29607864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29607865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29607866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29607867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29607868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29607869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29607870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29607871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29607872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29607873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29607874, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29608495, 'dashboard_result_id': 18600825, '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_P29608495_22-12-2025_09_35_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29608505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29608506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29608507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29608509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29608510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29608512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29608513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29608514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29608516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29608517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29608518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29608519, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29609473, 'dashboard_result_id': 18600826, '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_P29609473_22-12-2025_09_47_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29609476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29609477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29609478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29609479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29609480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29609481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29609482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29609483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29609484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29609485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29609486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29609487, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29609821, 'dashboard_result_id': 18600827, '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_P29609821_22-12-2025_10_00_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29609827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29609828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29609829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29609830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29609831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29609832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29609833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29609834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29609835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29609836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29609837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29609838, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29610266, 'dashboard_result_id': 18600828, '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_P29610266_22-12-2025_10_17_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29610281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29610282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29610283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29610284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29610285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29610286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29610287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29610288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29610289, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29610290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29610291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29610292, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29610911, 'dashboard_result_id': 18600829, '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_P29610911_22-12-2025_10_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29610915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29610916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29610917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29610918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29610919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29610920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29610921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29610922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29610923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29610924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29610925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29610926, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29611460, 'dashboard_result_id': 18600830, '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_P29611460_22-12-2025_10_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29611492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29611493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29611494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29611495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29611496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29611497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29611498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29611499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29611500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29611501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29611502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29611503, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2779747, 'mtr_portfolio_id': 29612129, 'dashboard_result_id': 18600831, '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_P29612129_22-12-2025_10_55_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29612154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29612155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29612156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29612157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29612158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29612159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29612160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29612161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29612162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29612163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29612164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29612165, '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 = 29602779 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': 4255871, 'mtr_portfolio_id': 29602779, 'created_at': datetime.datetime(2025, 12, 22, 5, 16, 57), 'result': '0.11253841524993877', 'result_long': None, 'result_double': None}] Qualite : 0.11253841524993877 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29602779 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29602779_22-12-2025_05_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29602779 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_P29602779_22-12-2025_05_16_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29602780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29602781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29602782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29602783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29602784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29602785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29602786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29602787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29602788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29602789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29602790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29602791, 'pht': 3726}}" where mtr_portfolio_id = 29602779 and dashboard_run_id = 2779747 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`=29602779 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600811, 0.11253841524993877, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29602779_22-12-2025_05_16_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29602780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29602781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29602782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29602783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29602784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29602785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29602786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29602787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29602788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29602789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29602790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29602791, '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 = 29603008 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': 4255893, 'mtr_portfolio_id': 29603008, 'created_at': datetime.datetime(2025, 12, 22, 5, 38, 59), 'result': '0.041905433935313804', 'result_long': None, 'result_double': None}] Qualite : 0.041905433935313804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29603008 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29603008_22-12-2025_05_38_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29603008 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_P29603008_22-12-2025_05_38_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603019, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603021, 'pht': 3726}}" where mtr_portfolio_id = 29603008 and dashboard_run_id = 2779747 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`=29603008 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600812, 0.041905433935313804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29603008_22-12-2025_05_38_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603019, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603021, '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 = 29603274 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': 4255939, 'mtr_portfolio_id': 29603274, 'created_at': datetime.datetime(2025, 12, 22, 5, 47, 1), 'result': '0.07339128448371916', 'result_long': None, 'result_double': None}] Qualite : 0.07339128448371916 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29603274 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29603274_22-12-2025_05_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29603274 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_P29603274_22-12-2025_05_47_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603292, 'pht': 3726}}" where mtr_portfolio_id = 29603274 and dashboard_run_id = 2779747 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`=29603274 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600813, 0.07339128448371916, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29603274_22-12-2025_05_47_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603292, '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 = 29603683 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': 4256004, 'mtr_portfolio_id': 29603683, 'created_at': datetime.datetime(2025, 12, 22, 6, 5), 'result': '0.06012408249108104', 'result_long': None, 'result_double': None}] Qualite : 0.06012408249108104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29603683 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29603683_22-12-2025_06_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29603683 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_P29603683_22-12-2025_06_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603702, 'pht': 3726}}" where mtr_portfolio_id = 29603683 and dashboard_run_id = 2779747 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`=29603683 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600814, 0.06012408249108104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29603683_22-12-2025_06_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603702, '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 = 29604042 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': 4256075, 'mtr_portfolio_id': 29604042, 'created_at': datetime.datetime(2025, 12, 22, 6, 19), 'result': '0.047582837560398994', 'result_long': None, 'result_double': None}] Qualite : 0.047582837560398994 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29604042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29604042_22-12-2025_06_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29604042 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_P29604042_22-12-2025_06_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29604044, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29604045, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29604046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29604047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29604048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29604049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29604050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29604051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29604052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29604053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29604054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29604055, 'pht': 3726}}" where mtr_portfolio_id = 29604042 and dashboard_run_id = 2779747 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`=29604042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600815, 0.047582837560398994, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29604042_22-12-2025_06_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29604044, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29604045, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29604046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29604047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29604048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29604049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29604050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29604051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29604052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29604053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29604054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29604055, '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 = 29604335 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': 4256116, 'mtr_portfolio_id': 29604335, 'created_at': datetime.datetime(2025, 12, 22, 6, 33), 'result': '0.05231107051025879', 'result_long': None, 'result_double': None}] Qualite : 0.05231107051025879 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29604335 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29604335_22-12-2025_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29604335 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_P29604335_22-12-2025_06_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29604342, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29604343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29604344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29604345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29604346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29604347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29604348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29604349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29604350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29604351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29604352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29604353, 'pht': 3726}}" where mtr_portfolio_id = 29604335 and dashboard_run_id = 2779747 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`=29604335 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600816, 0.05231107051025879, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29604335_22-12-2025_06_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29604342, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29604343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29604344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29604345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29604346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29604347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29604348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29604349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29604350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29604351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29604352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29604353, '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 = 29604724 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': 4256184, 'mtr_portfolio_id': 29604724, 'created_at': datetime.datetime(2025, 12, 22, 6, 49), 'result': '0.06029676330327172', 'result_long': None, 'result_double': None}] Qualite : 0.06029676330327172 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29604724 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29604724_22-12-2025_06_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29604724 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_P29604724_22-12-2025_06_49_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29604731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29604732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29604733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29604734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29604735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29604736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29604738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29604739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29604740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29604741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29604742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29604743, 'pht': 3726}}" where mtr_portfolio_id = 29604724 and dashboard_run_id = 2779747 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`=29604724 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600817, 0.06029676330327172, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29604724_22-12-2025_06_49_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29604731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29604732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29604733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29604734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29604735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29604736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29604738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29604739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29604740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29604741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29604742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29604743, '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 = 29605207 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': 4256248, 'mtr_portfolio_id': 29605207, 'created_at': datetime.datetime(2025, 12, 22, 7, 4, 28), 'result': '0.05537665622026557', 'result_long': None, 'result_double': None}] Qualite : 0.05537665622026557 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29605207 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29605207_22-12-2025_07_04_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29605207 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_P29605207_22-12-2025_07_04_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29605232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29605233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29605234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29605235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29605236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29605237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29605238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29605239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29605240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29605241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29605242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29605243, 'pht': 3726}}" where mtr_portfolio_id = 29605207 and dashboard_run_id = 2779747 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`=29605207 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600818, 0.05537665622026557, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29605207_22-12-2025_07_04_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29605232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29605233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29605234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29605235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29605236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29605237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29605238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29605239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29605240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29605241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29605242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29605243, '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 = 29605649 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': 4256309, 'mtr_portfolio_id': 29605649, 'created_at': datetime.datetime(2025, 12, 22, 7, 30, 57), 'result': '0.026298693504500596', 'result_long': None, 'result_double': None}] Qualite : 0.026298693504500596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29605649 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29605649_22-12-2025_07_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29605649 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_P29605649_22-12-2025_07_30_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29605671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29605672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29605673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29605674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29605675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29605676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29605677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29605678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29605679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29605680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29605681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29605682, 'pht': 3726}}" where mtr_portfolio_id = 29605649 and dashboard_run_id = 2779747 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`=29605649 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600819, 0.026298693504500596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29605649_22-12-2025_07_30_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29605671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29605672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29605673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29605674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29605675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29605676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29605677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29605678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29605679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29605680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29605681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29605682, '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 = 29606145 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': 4256388, 'mtr_portfolio_id': 29606145, 'created_at': datetime.datetime(2025, 12, 22, 7, 49, 2), 'result': '0.04557776134420128', 'result_long': None, 'result_double': None}] Qualite : 0.04557776134420128 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29606145 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29606145_22-12-2025_07_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29606145 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_P29606145_22-12-2025_07_49_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29606149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29606150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29606151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29606152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29606153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29606154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29606155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29606156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29606157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29606158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29606159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29606160, 'pht': 3726}}" where mtr_portfolio_id = 29606145 and dashboard_run_id = 2779747 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`=29606145 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600820, 0.04557776134420128, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29606145_22-12-2025_07_49_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29606149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29606150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29606151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29606152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29606153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29606154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29606155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29606156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29606157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29606158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29606159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29606160, '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 = 29606515 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': 4256437, 'mtr_portfolio_id': 29606515, 'created_at': datetime.datetime(2025, 12, 22, 8, 2, 59), 'result': '0.05128718047566687', 'result_long': None, 'result_double': None}] Qualite : 0.05128718047566687 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29606515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29606515_22-12-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29606515 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_P29606515_22-12-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29606520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29606521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29606522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29606523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29606524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29606525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29606526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29606527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29606528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29606529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29606530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29606531, 'pht': 3726}}" where mtr_portfolio_id = 29606515 and dashboard_run_id = 2779747 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`=29606515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600821, 0.05128718047566687, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29606515_22-12-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29606520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29606521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29606522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29606523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29606524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29606525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29606526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29606527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29606528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29606529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29606530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29606531, '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 = 29607020 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': 4256504, 'mtr_portfolio_id': 29607020, 'created_at': datetime.datetime(2025, 12, 22, 8, 18, 58), 'result': '0.08177457936156925', 'result_long': None, 'result_double': None}] Qualite : 0.08177457936156925 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29607020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29607020_22-12-2025_08_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29607020 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_P29607020_22-12-2025_08_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29607024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29607025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29607026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29607027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29607028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29607029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29607030, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29607031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29607032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29607033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29607034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29607035, 'pht': 3726}}" where mtr_portfolio_id = 29607020 and dashboard_run_id = 2779747 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`=29607020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600822, 0.08177457936156925, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29607020_22-12-2025_08_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29607024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29607025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29607026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29607027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29607028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29607029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29607030, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29607031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29607032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29607033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29607034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29607035, '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 = 29607507 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': 4256563, 'mtr_portfolio_id': 29607507, 'created_at': datetime.datetime(2025, 12, 22, 8, 32, 58), 'result': '0.0480504288223436', 'result_long': None, 'result_double': None}] Qualite : 0.0480504288223436 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29607507 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29607507_22-12-2025_08_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29607507 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_P29607507_22-12-2025_08_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29607514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29607515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29607516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29607517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29607518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29607519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29607520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29607521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29607522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29607523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29607524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29607525, 'pht': 3726}}" where mtr_portfolio_id = 29607507 and dashboard_run_id = 2779747 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`=29607507 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600823, 0.0480504288223436, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29607507_22-12-2025_08_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29607514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29607515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29607516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29607517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29607518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29607519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29607520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29607521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29607522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29607523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29607524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29607525, '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 = 29607852 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': 4256619, 'mtr_portfolio_id': 29607852, 'created_at': datetime.datetime(2025, 12, 22, 8, 46, 59), 'result': '0.042638380058326146', 'result_long': None, 'result_double': None}] Qualite : 0.042638380058326146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29607852 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29607852_22-12-2025_08_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29607852 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_P29607852_22-12-2025_08_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29607863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29607864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29607865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29607866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29607867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29607868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29607869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29607870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29607871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29607872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29607873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29607874, 'pht': 3726}}" where mtr_portfolio_id = 29607852 and dashboard_run_id = 2779747 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`=29607852 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600824, 0.042638380058326146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29607852_22-12-2025_08_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29607863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29607864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29607865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29607866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29607867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29607868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29607869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29607870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29607871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29607872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29607873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29607874, '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 = 29608495 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': 4256699, 'mtr_portfolio_id': 29608495, 'created_at': datetime.datetime(2025, 12, 22, 9, 35), 'result': '0.04719126002995893', 'result_long': None, 'result_double': None}] Qualite : 0.04719126002995893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29608495 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29608495_22-12-2025_09_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29608495 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_P29608495_22-12-2025_09_35_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29608505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29608506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29608507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29608509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29608510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29608512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29608513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29608514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29608516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29608517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29608518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29608519, 'pht': 3726}}" where mtr_portfolio_id = 29608495 and dashboard_run_id = 2779747 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`=29608495 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600825, 0.04719126002995893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29608495_22-12-2025_09_35_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29608505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29608506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29608507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29608509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29608510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29608512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29608513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29608514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29608516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29608517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29608518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29608519, '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 = 29609473 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': 4256833, 'mtr_portfolio_id': 29609473, 'created_at': datetime.datetime(2025, 12, 22, 9, 47, 1), 'result': '0.0468053437724639', 'result_long': None, 'result_double': None}] Qualite : 0.0468053437724639 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29609473 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29609473_22-12-2025_09_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29609473 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_P29609473_22-12-2025_09_47_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29609476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29609477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29609478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29609479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29609480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29609481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29609482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29609483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29609484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29609485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29609486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29609487, 'pht': 3726}}" where mtr_portfolio_id = 29609473 and dashboard_run_id = 2779747 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`=29609473 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600826, 0.0468053437724639, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29609473_22-12-2025_09_47_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29609476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29609477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29609478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29609479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29609480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29609481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29609482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29609483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29609484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29609485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29609486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29609487, '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 = 29609821 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': 4256869, 'mtr_portfolio_id': 29609821, 'created_at': datetime.datetime(2025, 12, 22, 10, 2, 59), 'result': '0.05069455455564963', 'result_long': None, 'result_double': None}] Qualite : 0.05069455455564963 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29609821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29609821_22-12-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29609821 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_P29609821_22-12-2025_10_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29609827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29609828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29609829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29609830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29609831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29609832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29609833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29609834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29609835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29609836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29609837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29609838, 'pht': 3726}}" where mtr_portfolio_id = 29609821 and dashboard_run_id = 2779747 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`=29609821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600827, 0.05069455455564963, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29609821_22-12-2025_10_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29609827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29609828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29609829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29609830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29609831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29609832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29609833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29609834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29609835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29609836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29609837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29609838, '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 = 29610266 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': 4256938, 'mtr_portfolio_id': 29610266, 'created_at': datetime.datetime(2025, 12, 22, 10, 17, 31), 'result': '0.039503848186504896', 'result_long': None, 'result_double': None}] Qualite : 0.039503848186504896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29610266 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29610266_22-12-2025_10_17_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29610266 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_P29610266_22-12-2025_10_17_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29610281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29610282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29610283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29610284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29610285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29610286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29610287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29610288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29610289, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29610290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29610291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29610292, 'pht': 3726}}" where mtr_portfolio_id = 29610266 and dashboard_run_id = 2779750 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`=29610266 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600828, 0.039503848186504896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29610266_22-12-2025_10_17_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29610281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29610282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29610283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29610284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29610285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29610286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29610287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29610288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29610289, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29610290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29610291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29610292, '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 = 29610911 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': 4257013, 'mtr_portfolio_id': 29610911, 'created_at': datetime.datetime(2025, 12, 22, 10, 33, 1), 'result': '0.08396911254016282', 'result_long': None, 'result_double': None}] Qualite : 0.08396911254016282 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29610911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29610911_22-12-2025_10_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29610911 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_P29610911_22-12-2025_10_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29610915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29610916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29610917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29610918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29610919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29610920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29610921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29610922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29610923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29610924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29610925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29610926, 'pht': 3726}}" where mtr_portfolio_id = 29610911 and dashboard_run_id = 2779750 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`=29610911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600829, 0.08396911254016282, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29610911_22-12-2025_10_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29610915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29610916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29610917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29610918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29610919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29610920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29610921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29610922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29610923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29610924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29610925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29610926, '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 = 29611460 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': 4257086, 'mtr_portfolio_id': 29611460, 'created_at': datetime.datetime(2025, 12, 22, 10, 49), 'result': '0.05813306303981132', 'result_long': None, 'result_double': None}] Qualite : 0.05813306303981132 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29611460 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29611460_22-12-2025_10_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29611460 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_P29611460_22-12-2025_10_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29611492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29611493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29611494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29611495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29611496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29611497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29611498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29611499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29611500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29611501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29611502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29611503, 'pht': 3726}}" where mtr_portfolio_id = 29611460 and dashboard_run_id = 2779750 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`=29611460 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600830, 0.05813306303981132, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29611460_22-12-2025_10_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29611492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29611493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29611494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29611495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29611496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29611497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29611498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29611499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29611500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29611501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29611502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29611503, '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 = 29612129 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': 4257160, 'mtr_portfolio_id': 29612129, 'created_at': datetime.datetime(2025, 12, 22, 10, 57), 'result': '0.09080516403946003', 'result_long': None, 'result_double': None}] Qualite : 0.09080516403946003 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29612129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29612129_22-12-2025_10_57_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29612129 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_P29612129_22-12-2025_10_57_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29612154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29612155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29612156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29612157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29612158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29612159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29612160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29612161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29612162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29612163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29612164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29612165, 'pht': 3726}}" where mtr_portfolio_id = 29612129 and dashboard_run_id = 2779750 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`=29612129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18600831, 0.09080516403946003, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29612129_22-12-2025_10_57_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29612154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29612155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29612156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29612157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29612158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29612159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29612160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29612161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29612162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29612163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29612164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29612165, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29602779,29603008,29603274,29603683,29604042,29604335,29604724,29605207,29605649,29606145,29606515,29607020,29607507,29607852,29608495,29609473,29609821,29610266,29610911,29611460,29612129) result : ((1400481079,), (1400485550,), (1400485599,), (1400486088,), (1400486090,), (1400486092,), (1400486094,), (1400486105,), (1400486109,), (1400486112,), (1400486129,), (1400486127,), (1400486137,), (1400486138,), (1400486140,), (1400486142,), (1400486152,), (1400486155,), (1400486156,), (1400486158,), (1400486163,), (1400486165,), (1400486167,), (1400486168,), (1400486170,), (1400486172,), (1400486189,), (1400486191,), (1400486193,), (1400486195,), (1400486196,), (1400486200,), (1400486204,), (1400486206,), (1400486209,), (1400486227,), (1400486229,), (1400486231,), (1400486233,), (1400486235,), (1400486237,), (1400486244,), (1400486247,), (1400486253,), (1400486254,), (1400486256,), (1400486259,), (1400486265,), (1400486267,), (1400486268,), (1400486270,), (1400486271,), (1400486306,), (1400486310,), (1400486314,), (1400486318,), (1400486319,), (1400486320,), (1400486328,), (1400486330,), (1400486332,), (1400486345,), (1400486347,), (1400486349,), (1400486352,), (1400486361,), (1400486373,), (1400486380,), (1400486382,), (1400486384,), (1400486386,), (1400486387,), (1400486388,), (1400486410,), (1400486412,), (1400486414,), (1400486423,), (1400486425,), (1400486427,), (1400486429,), (1400486430,), (1400486437,), (1400486440,), (1400486443,), (1400486464,), (1400486571,), (1400486629,), (1400486453,), (1400486454,), (1400486456,), (1400486462,), (1400486508,), (1400486510,), (1400486511,), (1400486513,), (1400486515,), (1400486516,), (1400486521,), (1400486523,), (1400486525,), (1400486526,), (1400486530,), (1400486531,), (1400486541,), (1400486542,), (1400486543,), (1400486551,), (1400486561,), (1400486563,), (1400486566,), (1400486567,), (1400486568,), (1400486569,), (1400486570,), (1400486576,), (1400486577,), (1400486582,), (1400486583,), (1400486588,), (1400486589,), (1400486592,), (1400486593,), (1400486595,), (1400486596,), (1400486597,), (1400486598,), (1400486608,), (1400486609,), (1400486610,), (1400486611,), (1400486613,), (1400486615,), (1400486628,), (1400486630,), (1400486631,), (1400486632,), (1400486633,), (1400486635,), (1400486637,), (1400486652,), (1400486653,), (1400486654,), (1400486655,), (1400486662,), (1400486664,), (1400486666,), (1400486668,), (1400486670,), (1400486671,), (1400486689,), (1400486691,), (1400486693,), (1400486695,), (1400486697,), (1400486698,), (1400486701,), (1400486704,), (1400486705,), (1400486713,), (1400486715,), (1400486717,), (1400486722,), (1400486737,), (1400486741,), (1400486752,), (1400486755,), (1400486757,), (1400486759,), (1400486761,), (1400486763,), (1400486776,), (1400486777,), (1400486778,), (1400486780,), (1400486794,), (1400486801,), (1400486810,), (1400486811,), (1400486813,), (1400486815,), (1400486817,), (1400486850,), (1400486836,), (1400486844,), (1400486848,), (1400486853,), (1400486855,), (1400486857,), (1400486859,), (1400486860,), (1400486877,), (1400486879,), (1400486881,), (1400486882,), (1400486893,), (1400486896,), (1400486899,), (1400487007,), (1400487128,), (1400487147,), (1400487149,), (1400487164,), (1400487167,), (1400487170,), (1400487174,), (1400487187,), (1400487188,), (1400487190,), (1400487204,), (1400487206,), (1400487208,), (1400487209,), (1400487225,), (1400487227,), (1400487228,), (1400487230,), (1400487233,), (1400487261,), (1400487262,), (1400487263,), (1400487264,), (1400487266,), (1400487268,), (1400487274,), (1400487276,), (1400487305,), (1400487323,), (1400487324,), (1400487326,), (1400487328,), (1400487350,), (1400487352,), (1400487355,), (1400487357,), (1400487360,), (1400487362,), (1400487371,), (1400487373,), (1400487377,), (1400487380,), (1400487382,), (1400487385,), (1400487401,), (1400487404,), (1400487407,), (1400487409,), (1400487412,), (1400487415,), (1400487429,), (1400487422,), (1400487424,), (1400487427,), (1400487432,), (1400487434,), (1400487436,), (1400487463,), (1400487464,), (1400487465,), (1400487466,), (1400487481,), (1400487482,), (1400487483,), (1400487484,), (1400487486,), (1400487488,), (1400487503,), (1400487504,), (1400487505,), (1400487506,), (1400487514,), (1400487516,), (1400487518,), (1400487520,), (1400487523,), (1400487541,), (1400487543,), (1400487545,), (1400487547,), (1400487550,), (1400487553,), (1400487563,), (1400487566,), (1400487570,), (1400487573,), (1400487576,), (1400487579,), (1400487597,), (1400487598,), (1400487599,), (1400487601,), (1400487609,), (1400487612,), (1400487614,), (1400487617,), (1400487622,), (1400487626,), (1400487628,), (1400487630,), (1400487632,), (1400487634,), (1400487637,), (1400487640,), (1400487657,), (1400487659,), (1400487661,), (1400487663,), (1400487675,), (1400487696,), (1400487707,), (1400487719,), (1400487734,), (1400487735,), (1400487737,), (1400487739,), (1400487762,), (1400487765,), (1400487768,), (1400487772,), (1400487793,), (1400487785,), (1400487787,), (1400487789,), (1400487791,), (1400487809,), (1400487812,), (1400487814,), (1400487816,), (1400487818,), (1400487827,), (1400487829,), (1400487831,), (1400487834,), (1400487837,), (1400487839,), (1400487857,), (1400487859,), (1400487862,), (1400487865,), (1400487867,), (1400487869,), (1400487873,), (1400487874,), (1400487877,), (1400487879,), (1400487881,), (1400487883,), (1400487889,), (1400487890,), (1400487892,), (1400487893,), (1400487897,), (1400487898,), (1400487901,), (1400487902,), (1400487904,), (1400487905,), (1400487906,), (1400487907,), (1400487924,), (1400487926,), (1400487933,), (1400487935,), (1400487936,), (1400487937,), (1400487942,), (1400487945,), (1400487948,), (1400487952,), (1400487955,), (1400487964,), (1400487973,), (1400487974,), (1400487975,), (1400487981,), (1400487984,), (1400487987,), (1400487993,), (1400487995,), (1400487997,), (1400488017,), (1400488025,), (1400488033,), (1400488041,), (1400488043,), (1400488046,), (1400488059,), (1400488061,), (1400488063,), (1400488065,), (1400488068,), (1400488084,), (1400488086,), (1400488088,), (1400488090,), (1400488107,), (1400488108,), (1400488110,), (1400488112,), (1400488114,), (1400488115,), (1400488121,), (1400488150,), (1400488154,), (1400488156,), (1400488157,), (1400488177,), (1400488179,), (1400488183,), (1400488186,), (1400488191,), (1400488232,), (1400488217,), (1400488225,), (1400488247,), (1400488249,), (1400488251,), (1400488253,), (1400488255,), (1400488269,), (1400488271,), (1400488291,), (1400488293,), (1400488295,), (1400488297,), (1400488300,), (1400488302,), (1400488327,), (1400488329,), (1400488331,), (1400488333,), (1400488345,), (1400488347,), (1400488349,), (1400488351,), (1400488354,), (1400488375,), (1400488377,), (1400488379,), (1400488381,), (1400488398,), (1400488400,), (1400488401,), (1400488403,), (1400488405,), (1400488406,), (1400488418,), (1400488420,), (1400488426,), (1400488428,), (1400488430,), (1400488432,), (1400488445,), (1400488447,), (1400488449,), (1400488451,), (1400488454,), (1400488468,), (1400488470,), (1400488472,), (1400488488,), (1400488490,), (1400488514,), (1400488516,), (1400488518,), (1400488520,), (1400488537,), (1400488540,), (1400488543,), (1400488547,), (1400488564,), (1400488718,), (1400488750,), (1400488788,), (1400489129,), (1400488963,), (1400488966,), (1400488970,), (1400489009,), (1400489078,), (1400489460,), (1400490978,), (1400491447,), (1400491464,), (1400491465,), (1400491467,), (1400491469,), (1400491482,), (1400491495,), (1400491497,), (1400491499,), (1400491501,), (1400491521,), (1400491531,), (1400491537,), (1400491539,), (1400491541,), (1400491550,), (1400491553,), (1400491555,), (1400491558,), (1400491561,), (1400491571,), (1400491573,), (1400491575,), (1400491584,), (1400491586,), (1400491588,), (1400491608,), (1400491611,), (1400491613,), (1400491615,), (1400491617,), (1400491626,), (1400491627,), (1400491628,), (1400491629,), (1400491632,), (1400491662,), (1400491663,), (1400491674,), (1400491676,), (1400491678,), (1400491682,), (1400491703,), (1400491704,), (1400491705,), (1400491706,), (1400491708,), (1400491711,), (1400491724,), (1400491725,), (1400491726,), (1400491728,), (1400491730,), (1400491732,), (1400491749,), (1400491752,), (1400491756,), (1400491758,), (1400491761,), (1400491762,), (1400491765,), (1400491768,), (1400491771,), (1400491773,), (1400491778,), (1400491780,), (1400491783,), (1400491785,), (1400491787,), (1400491815,), (1400491806,), (1400491813,), (1400491823,), (1400491825,), (1400491827,), (1400491829,), (1400491832,), (1400491835,), (1400491873,), (1400491881,), (1400491882,), (1400491884,), (1400491886,), (1400491887,), (1400491897,), (1400491899,), (1400491901,), (1400491943,), (1400491945,), (1400491947,), (1400491948,), (1400491950,), (1400491951,), (1400491961,), (1400491963,), (1400491966,), (1400491969,), (1400491986,), (1400491988,), (1400491990,), (1400491994,), (1400492004,), (1400492005,), (1400492007,), (1400492009,), (1400492012,), (1400492015,), (1400492031,), (1400492033,), (1400492035,), (1400492055,), (1400492056,), (1400492059,), (1400492062,), (1400492073,), (1400492075,), (1400492077,), (1400492108,), (1400492111,), (1400492113,), (1400492115,), (1400492117,), (1400492119,), (1400492126,), (1400492128,), (1400492130,), (1400492131,), (1400492134,), (1400492151,), (1400492153,), (1400492155,), (1400492181,), (1400492185,), (1400492187,), (1400492189,), (1400492197,), (1400492199,), (1400492203,), (1400492205,), (1400492206,), (1400492214,), (1400492211,), (1400492328,), (1400492342,), (1400492354,), (1400492370,), (1400492372,), (1400492376,), (1400492384,), (1400492386,), (1400492390,), (1400492394,), (1400492399,), (1400492405,), (1400492414,), (1400492415,), (1400492416,), (1400492417,), (1400492418,), (1400492422,), (1400492423,), (1400492425,), (1400492426,), (1400492428,), (1400492429,), (1400492432,), (1400492433,), (1400492436,), (1400492438,), (1400492439,), (1400492440,), (1400492442,), (1400492444,), (1400492482,), (1400492498,), (1400492500,), (1400492501,), (1400492519,), (1400492521,), (1400492523,), (1400492525,), (1400492528,), (1400492589,), (1400492591,), (1400492593,), (1400492594,), (1400492620,), (1400492622,), (1400492624,), (1400492708,), (1400492747,), (1400492780,), (1400492822,), (1400492857,), (1400493235,), (1400493297,), (1400493302,), (1400493306,), (1400493329,), (1400493396,), (1400493397,), (1400493399,), (1400493401,), (1400493415,), (1400493417,), (1400493420,), (1400493423,), (1400493430,), (1400493432,), (1400493442,), (1400493443,), (1400493445,), (1400493447,), (1400493449,), (1400493451,), (1400493461,), (1400493464,), (1400493517,), (1400493506,), (1400493508,), (1400493510,), (1400493512,), (1400493515,), (1400493524,), (1400493526,), (1400493528,), (1400493529,), (1400493532,), (1400493549,), (1400493569,), (1400493571,), (1400493585,), (1400493592,), (1400493594,), (1400493668,), (1400493670,), (1400493693,), (1400493726,), (1400493761,), (1400493800,), (1400493803,), (1400493806,), (1400493809,), (1400493812,), (1400493817,), (1400493841,), (1400493844,), (1400493846,), (1400493848,), (1400493863,), (1400493866,), (1400493870,), (1400493875,), (1400493878,), (1400493881,), (1400493887,), (1400493888,), (1400493908,), (1400493909,), (1400493984,), (1400493986,), (1400493988,), (1400494005,), (1400494006,), (1400494008,), (1400494009,), (1400494012,), (1400494030,), (1400494028,), (1400494029,), (1400494042,), (1400494043,), (1400494046,), (1400494049,), (1400494052,), (1400494058,), (1400494060,), (1400494065,), (1400494069,), (1400494072,), (1400494078,), (1400494079,), (1400494081,), (1400494082,), (1400494087,), (1400494093,), (1400494102,), (1400494107,), (1400494121,), (1400494127,), (1400494128,), (1400494152,), (1400494154,), (1400494156,), (1400494172,), (1400494173,), (1400494175,), (1400494177,), (1400494180,), (1400494208,), (1400494214,), (1400494226,), (1400494275,), (1400494323,), (1400494342,), (1400494344,), (1400494345,), (1400494372,), (1400494373,), (1400494374,), (1400494471,), (1400494487,), (1400494522,), (1400494559,), (1400494600,), (1400494771,), (1400494772,), (1400494773,), (1400494774,), (1400494777,), (1400494778,), (1400495126,), (1400495130,), (1400495131,), (1400495134,), (1400495137,), (1400495140,), (1400495301,), (1400495327,), (1400495331,), (1400495334,), (1400495337,), (1400495339,), (1400495349,), (1400495385,), (1400495420,), (1400495448,), (1400495450,), (1400495489,), (1400495551,), (1400495563,), (1400495590,), (1400495588,), (1400495603,), (1400495605,), (1400495607,), (1400495637,), (1400495665,), (1400495666,), (1400495684,), (1400495706,), (1400495710,), (1400495718,), (1400495741,), (1400495792,), (1400495794,), (1400495796,), (1400495811,), (1400495813,), (1400495817,), (1400495821,), (1400495828,), (1400495834,), (1400495839,), (1400495843,), (1400495844,), (1400495846,), (1400495848,), (1400495867,), (1400495869,), (1400495871,), (1400495873,), (1400495876,), (1400495895,), (1400495896,), (1400495908,), (1400495953,), (1400495955,), (1400495959,), (1400496694,), (1400496699,), (1400496703,), (1400496706,), (1400496709,), (1400496715,), (1400496716,), (1400503438,), (1400503345,), (1400503375,), (1400503407,), (1400503660,), (1400503680,), (1400503812,), (1400503836,), (1400503905,), (1400503959,), (1400503960,), (1400504014,), (1400504016,), (1400504018,), (1400504028,), (1400504072,), (1400504074,), (1400504210,), (1400504212,), (1400504225,), (1400504227,), (1400504229,), (1400504231,), (1400504235,), (1400504255,), (1400504257,), (1400504259,), (1400504298,), (1400504299,), (1400504301,), (1400504304,), (1400504306,), (1400504308,), (1400504375,), (1400504409,), (1400504550,), (1400504601,), (1400504610,), (1400504615,), (1400504635,), (1400504629,), (1400504631,), (1400504633,), (1400504646,), (1400504648,), (1400504650,), (1400504652,), (1400504672,), (1400504674,), (1400504676,), (1400504678,), (1400504766,), (1400504801,), (1400504835,), (1400505036,), (1400505047,), (1400505069,), (1400505084,), (1400505085,), (1400505110,), (1400505111,), (1400505113,), (1400505116,), (1400505119,), (1400505129,), (1400505131,), (1400505133,), (1400505148,), (1400505149,), (1400505151,), (1400505153,), (1400505156,), (1400505159,), (1400505166,), (1400505168,), (1400505170,), (1400505172,), (1400505243,), (1400505272,), (1400505307,), (1400505312,), (1400505316,), (1400505319,), (1400505341,), (1400505335,), (1400505338,), (1400505378,), (1400505380,), (1400505398,), (1400506202,), (1400506243,), (1400506278,), (1400506317,), (1400506579,), (1400506584,), (1400506586,), (1400506769,), (1400506807,), (1400506836,), (1400506838,), (1400506841,), (1400506928,), (1400506931,), (1400506933,), (1400506935,), (1400506938,), (1400506975,), (1400506983,), (1400507558,), (1400507577,), (1400507591,), (1400507593,), (1400507604,), (1400507606,), (1400507608,), (1400507610,), (1400507614,), (1400507615,), (1400507687,), (1400507689,), (1400507691,), (1400507693,), (1400508004,), (1400508046,), (1400508111,), (1400508202,), (1400508563,), (1400508597,), (1400508636,), (1400508648,), (1400508667,), (1400509143,), (1400509145,), (1400509165,), (1400509204,), (1400509246,), (1400509248,), (1400509253,), (1400509255,), (1400509264,), (1400509271,), (1400509274,), (1400509277,), (1400509280,), (1400509286,), (1400509306,), (1400509308,), (1400509320,), (1400509322,), (1400509324,), (1400509580,), (1400509560,), (1400509563,), (1400509578,), (1400509623,), (1400509625,), (1400509627,), (1400509659,), (1400509661,), (1400509806,), (1400509808,), (1400509810,), (1400509836,), (1400509838,), (1400509840,), (1400509854,), (1400509856,), (1400509912,), (1400509914,), (1400509916,), (1400509918,), (1400509921,), (1400509923,), (1400509949,), (1400509951,), (1400509953,), (1400509956,), (1400509959,), (1400509967,), (1400510067,), (1400510070,), (1400510112,), (1400510133,), (1400510136,), (1400510138,), (1400510223,), (1400510225,), (1400510227,), (1400510229,), (1400510244,), (1400510246,), (1400510248,), (1400510259,), (1400510260,), (1400510261,), (1400510320,), (1400510322,), (1400510324,), (1400510347,), (1400510348,), (1400510350,), (1400510387,), (1400510374,), (1400510375,), (1400510378,), (1400510381,), (1400510384,), (1400510541,), (1400510556,), (1400510557,), (1400510558,), (1400510560,), (1400510727,), (1400510759,), (1400510821,), (1400510918,), (1400510945,), (1400510949,), (1400511049,), (1400511083,), (1400511117,), (1400511367,), (1400511403,), (1400511481,), (1400511662,), (1400511666,), (1400511667,), (1400511830,), (1400511865,), (1400511895,), (1400511928,), (1400511961,), (1400512125,), (1400512126,), (1400512146,), (1400512194,), (1400512288,), (1400512378,), (1400512545,), (1400512550,), (1400512551,), (1400512552,), (1400512579,), (1400512580,), (1400512581,), (1400512606,), (1400512607,), (1400512608,), (1400512609,), (1400512621,), (1400512634,), (1400512677,), (1400512678,), (1400512679,), (1400512680,), (1400512681,), (1400512707,), (1400512708,), (1400512709,), (1400512730,), (1400512731,), (1400512732,), (1400512735,), (1400512737,), (1400512741,), (1400512752,), (1400512753,), (1400512756,), (1400512759,), (1400512762,), (1400512764,), (1400512772,), (1400512773,), (1400512774,), (1400512775,), (1400512776,), (1400512778,), (1400512782,), (1400512786,), (1400512789,), (1400512793,), (1400512802,), (1400512807,), (1400512826,), (1400512817,), (1400512818,), (1400512819,), (1400512820,), (1400512823,), (1400512834,), (1400512835,), (1400512836,), (1400512837,), (1400512840,), (1400512855,), (1400512856,), (1400512857,), (1400512874,), (1400512875,), (1400512876,), (1400512878,), (1400512881,), (1400512884,), (1400512906,), (1400512907,), (1400512908,), (1400512909,), (1400512918,), (1400512919,), (1400512920,), (1400512956,), (1400512957,), (1400512958,), (1400512959,), (1400512962,), (1400512984,), (1400512985,), (1400512986,), (1400512989,), (1400512992,), (1400512995,), (1400513021,), (1400513022,), (1400513025,), (1400513028,), (1400513031,), (1400513034,), (1400513039,), (1400513041,), (1400513046,), (1400513047,), (1400513048,), (1400513049,), (1400513054,), (1400513055,), (1400513061,), (1400513064,), (1400513068,), (1400513072,), (1400513073,), (1400513074,), (1400513075,), (1400513078,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'22122025': {'nb_upload': 59, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29612129]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1400513078, 1400513075, 1400513074, 1400513073, 1400513072, 1400513068, 1400513064, 1400513061, 1400513055, 1400513054, 1400513049, 1400513048, 1400513047, 1400513046, 1400513041, 1400513039, 1400513034, 1400513031, 1400513028, 1400513025, 1400513022, 1400513021] map_info['map_portfolio_photo'] : {29612129: [1400513078, 1400513075, 1400513074, 1400513073, 1400513072, 1400513068, 1400513064, 1400513061, 1400513055, 1400513054, 1400513049, 1400513048, 1400513047, 1400513046, 1400513041, 1400513039, 1400513034, 1400513031, 1400513028, 1400513025, 1400513022, 1400513021, 1400512995, 1400512992, 1400512989, 1400512986, 1400512985, 1400512984, 1400512962, 1400512959, 1400512958, 1400512957, 1400512956, 1400512920, 1400512919, 1400512918, 1400512909, 1400512908, 1400512907, 1400512906, 1400512884, 1400512881, 1400512878, 1400512876, 1400512875, 1400512874, 1400512857, 1400512856, 1400512855, 1400512840, 1400512837, 1400512836, 1400512835, 1400512834, 1400512823, 1400512820, 1400512819, 1400512818, 1400512817]} final : True mtd_id 4302 list_pids : [1400513078, 1400513075, 1400513074, 1400513073, 1400513072, 1400513068, 1400513064, 1400513061, 1400513055, 1400513054, 1400513049, 1400513048, 1400513047, 1400513046, 1400513041, 1400513039, 1400513034, 1400513031, 1400513028, 1400513025, 1400513022, 1400513021] Looping around the photos to save general results len do output : 1 /29612129Didn'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, '4257160') ('4302', '29612129', '1400513078', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513075', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513074', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513073', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513072', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513068', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513064', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513061', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513055', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513054', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513049', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513048', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513047', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513046', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513041', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513039', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513034', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513031', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513028', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513025', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513022', None, None, None, None, None, '4257160') ('4302', None, None, None, None, None, None, None, '4257160') ('4302', '29612129', '1400513021', None, None, None, None, None, '4257160') 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, '29612129', 'None', None, None, None, None, '4257160'), ('4302', '29612129', '1400513078', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513075', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513074', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513073', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513072', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513068', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513064', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513061', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513055', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513054', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513049', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513048', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513047', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513046', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513041', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513039', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513034', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513031', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513028', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513025', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513022', None, None, None, None, None, '4257160'), ('4302', '29612129', '1400513021', None, None, None, None, None, '4257160')] time used for this insertion : 0.020158767700195312 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.78670334815979 time spend to save output : 0.02038860321044922 total time spend for step 5 : 1.8070919513702393 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 (4257160) 2.46user 2.41system 0:12.59elapsed 38%CPU (0avgtext+0avgdata 175268maxresident)k 576inputs+16576outputs (2major+80735minor)pagefaults 0swaps