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 : 234722 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 (3741781) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3741781) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27004790 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3741781'] with mtr_portfolio_ids : ['27004790'] and first list_photo_ids : [] new path : /proc/234722/ Name: python3 Umask: 0002 State: R (running) Tgid: 234722 Ngid: 0 Pid: 234722 PPid: 234721 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 234722 NSpid: 234722 NSpgid: 233587 NSsid: 233587 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99452 kB VmRSS: 99452 kB RssAnon: 60172 kB RssFile: 39280 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 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: 93 nonvoluntary_ctxt_switches: 126 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '234722', 'Ngid': '0', 'Pid': '234722', 'PPid': '234721', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '234722', 'NSpid': '234722', 'NSpgid': '233587', 'NSsid': '233587', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99452 kB', 'VmRSS': '99452 kB', 'RssAnon': '60172 kB', 'RssFile': '39280 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 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': '93', 'nonvoluntary_ctxt_switches': '126'} ('datou_batch_current', '234722', '1107252', '0', '1107252', '866004', '99452', b'', 'marlene', '3741781') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (27004790) 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 (3741781 ) ) 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 (27004790) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1384917183, 'portfolio_id': 27004790}, {'photo_id': 1384917177, 'portfolio_id': 27004790}, {'photo_id': 1384917176, 'portfolio_id': 27004790}, {'photo_id': 1384917175, 'portfolio_id': 27004790}, {'photo_id': 1384917110, 'portfolio_id': 27004790}, {'photo_id': 1384917109, 'portfolio_id': 27004790}, {'photo_id': 1384917107, 'portfolio_id': 27004790}, {'photo_id': 1384917105, 'portfolio_id': 27004790}, {'photo_id': 1384917103, 'portfolio_id': 27004790}, {'photo_id': 1384917101, 'portfolio_id': 27004790}, {'photo_id': 1384916992, 'portfolio_id': 27004790}, {'photo_id': 1384916963, 'portfolio_id': 27004790}, {'photo_id': 1384916934, 'portfolio_id': 27004790}, {'photo_id': 1384916909, 'portfolio_id': 27004790}, {'photo_id': 1384916886, 'portfolio_id': 27004790}, {'photo_id': 1384916880, 'portfolio_id': 27004790}, {'photo_id': 1384916867, 'portfolio_id': 27004790}, {'photo_id': 1384916865, 'portfolio_id': 27004790}, {'photo_id': 1384916864, 'portfolio_id': 27004790}, {'photo_id': 1384916863, 'portfolio_id': 27004790}, {'photo_id': 1384916804, 'portfolio_id': 27004790}, {'photo_id': 1384916802, 'portfolio_id': 27004790}, {'photo_id': 1384916800, 'portfolio_id': 27004790}, {'photo_id': 1384916795, 'portfolio_id': 27004790}, {'photo_id': 1384916766, 'portfolio_id': 27004790}, {'photo_id': 1384916750, 'portfolio_id': 27004790}, {'photo_id': 1384916576, 'portfolio_id': 27004790}, {'photo_id': 1384916547, 'portfolio_id': 27004790}, {'photo_id': 1384916535, 'portfolio_id': 27004790}, {'photo_id': 1384916532, 'portfolio_id': 27004790}, {'photo_id': 1384916320, 'portfolio_id': 27004790}, {'photo_id': 1384916312, 'portfolio_id': 27004790}, {'photo_id': 1384916296, 'portfolio_id': 27004790}, {'photo_id': 1384916267, 'portfolio_id': 27004790}, {'photo_id': 1384915948, 'portfolio_id': 27004790}, {'photo_id': 1384915939, 'portfolio_id': 27004790}, {'photo_id': 1384915937, 'portfolio_id': 27004790}, {'photo_id': 1384915925, 'portfolio_id': 27004790}, {'photo_id': 1384915900, 'portfolio_id': 27004790}, {'photo_id': 1384915874, 'portfolio_id': 27004790}, {'photo_id': 1384915504, 'portfolio_id': 27004790}, {'photo_id': 1384915454, 'portfolio_id': 27004790}, {'photo_id': 1384915399, 'portfolio_id': 27004790}, {'photo_id': 1384915351, 'portfolio_id': 27004790}, {'photo_id': 1384914580, 'portfolio_id': 27004790}, {'photo_id': 1384913292, 'portfolio_id': 27004790}, {'photo_id': 1384913031, 'portfolio_id': 27004790}, {'photo_id': 1384913005, 'portfolio_id': 27004790}, {'photo_id': 1384912981, 'portfolio_id': 27004790}, {'photo_id': 1384912963, 'portfolio_id': 27004790}, {'photo_id': 1384912962, 'portfolio_id': 27004790}, {'photo_id': 1384912961, 'portfolio_id': 27004790}, {'photo_id': 1384912876, 'portfolio_id': 27004790}, {'photo_id': 1384912860, 'portfolio_id': 27004790}, {'photo_id': 1384912859, 'portfolio_id': 27004790}, {'photo_id': 1384912852, 'portfolio_id': 27004790}, {'photo_id': 1384912849, 'portfolio_id': 27004790}, {'photo_id': 1384912806, 'portfolio_id': 27004790}, {'photo_id': 1384912783, 'portfolio_id': 27004790}, {'photo_id': 1384912778, 'portfolio_id': 27004790}, {'photo_id': 1384912777, 'portfolio_id': 27004790}, {'photo_id': 1384912772, 'portfolio_id': 27004790}] map_portfolio_id_photo_id: {27004790: [1384917183, 1384917177, 1384917176, 1384917175, 1384917110, 1384917109, 1384917107, 1384917105, 1384917103, 1384917101, 1384916992, 1384916963, 1384916934, 1384916909, 1384916886, 1384916880, 1384916867, 1384916865, 1384916864, 1384916863, 1384916804, 1384916802, 1384916800, 1384916795, 1384916766, 1384916750, 1384916576, 1384916547, 1384916535, 1384916532, 1384916320, 1384916312, 1384916296, 1384916267, 1384915948, 1384915939, 1384915937, 1384915925, 1384915900, 1384915874, 1384915504, 1384915454, 1384915399, 1384915351, 1384914580, 1384913292, 1384913031, 1384913005, 1384912981, 1384912963, 1384912962, 1384912961, 1384912876, 1384912860, 1384912859, 1384912852, 1384912849, 1384912806, 1384912783, 1384912778, 1384912777, 1384912772]} ##### 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.016348838806152344 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Sep 18 19:16:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27004790) 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 : 27004790 get user id for portfolio 27004790 get sub ptf for main ptf 27004790, type 3726 and hashtags ['cartonnette', 'kraft', 'environnement', 'flou', 'metal', 'papier', 'Carton_brun', 'mal_croppe', 'Carton_gris', 'plastique', 'Teint_Dans_La_Masse', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27004790 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','environnement','flou','metal','papier','Carton_brun','mal_croppe','Carton_gris','plastique','Teint_Dans_La_Masse','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27004790 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','environnement','flou','metal','papier','Carton_brun','mal_croppe','Carton_gris','plastique','Teint_Dans_La_Masse','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 27004790, 'sub_port_id': 27004833, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220510, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 28)}, 'flou': {'main_port_id': 27004790, 'sub_port_id': 27004834, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220511, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 28)}, 'cartonnette': {'main_port_id': 27004790, 'sub_port_id': 27004835, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220512, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 28)}, 'plastique': {'main_port_id': 27004790, 'sub_port_id': 27004836, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220513, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 28)}, 'papier': {'main_port_id': 27004790, 'sub_port_id': 27004837, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220514, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 28)}, 'Carton_brun': {'main_port_id': 27004790, 'sub_port_id': 27004838, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220515, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 27004790, 'sub_port_id': 27004839, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220516, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 28)}, 'Carton_gris': {'main_port_id': 27004790, 'sub_port_id': 27004840, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220517, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 28)}, 'mal_croppe': {'main_port_id': 27004790, 'sub_port_id': 27004841, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220518, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 28)}, 'autre_refus': {'main_port_id': 27004790, 'sub_port_id': 27004842, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220519, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 28)}, 'kraft': {'main_port_id': 27004790, 'sub_port_id': 27004843, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220520, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 28)}, 'environnement': {'main_port_id': 27004790, 'sub_port_id': 27004844, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220521, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27004833 , 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=27004790 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 (27004833) result : ((1384916739,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27004790) result : ((1384912772,), (1384912777,), (1384912778,), (1384912783,), (1384912806,), (1384912849,), (1384912852,), (1384912859,), (1384912860,), (1384912876,), (1384912961,), (1384912962,), (1384912963,), (1384912981,), (1384913005,), (1384913031,), (1384913292,), (1384914580,), (1384915351,), (1384915399,), (1384915454,), (1384915504,), (1384915874,), (1384915900,), (1384915925,), (1384915937,), (1384915939,), (1384915948,), (1384916267,), (1384916296,), (1384916312,), (1384916320,), (1384916532,), (1384916535,), (1384916547,), (1384916576,), (1384916750,), (1384916766,), (1384916795,), (1384916800,), (1384916802,), (1384916804,), (1384916863,), (1384916864,), (1384916865,), (1384916867,), (1384916880,), (1384916886,), (1384916909,), (1384916934,), (1384916963,), (1384916992,), (1384917101,), (1384917103,), (1384917105,), (1384917107,), (1384917109,), (1384917110,), (1384917175,), (1384917176,), (1384917177,), (1384917183,)) 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 (1384915900,1384916800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27004834 , 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=27004790 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 (27004834) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27004790) result : ((1384912772,), (1384912777,), (1384912778,), (1384912783,), (1384912806,), (1384912849,), (1384912852,), (1384912859,), (1384912860,), (1384912876,), (1384912961,), (1384912962,), (1384912963,), (1384912981,), (1384913005,), (1384913031,), (1384913292,), (1384914580,), (1384915351,), (1384915399,), (1384915454,), (1384915504,), (1384915874,), (1384915900,), (1384915925,), (1384915937,), (1384915939,), (1384915948,), (1384916267,), (1384916296,), (1384916312,), (1384916320,), (1384916532,), (1384916535,), (1384916547,), (1384916576,), (1384916750,), (1384916766,), (1384916795,), (1384916800,), (1384916802,), (1384916804,), (1384916863,), (1384916864,), (1384916865,), (1384916867,), (1384916880,), (1384916886,), (1384916909,), (1384916934,), (1384916963,), (1384916992,), (1384917101,), (1384917103,), (1384917105,), (1384917107,), (1384917109,), (1384917110,), (1384917175,), (1384917176,), (1384917177,), (1384917183,)) 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 (1384915900,1384916800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27004835 , 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=27004790 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 (27004835) result : ((1384915331,), (1384915333,), (1384916042,), (1384916045,), (1384916877,), (1384917181,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27004790) result : ((1384912772,), (1384912777,), (1384912778,), (1384912783,), (1384912806,), (1384912849,), (1384912852,), (1384912859,), (1384912860,), (1384912876,), (1384912961,), (1384912962,), (1384912963,), (1384912981,), (1384913005,), (1384913031,), (1384913292,), (1384914580,), (1384915351,), (1384915399,), (1384915454,), (1384915504,), (1384915874,), (1384915900,), (1384915925,), (1384915937,), (1384915939,), (1384915948,), (1384916267,), (1384916296,), (1384916312,), (1384916320,), (1384916532,), (1384916535,), (1384916547,), (1384916576,), (1384916750,), (1384916766,), (1384916795,), (1384916800,), (1384916802,), (1384916804,), (1384916863,), (1384916864,), (1384916865,), (1384916867,), (1384916880,), (1384916886,), (1384916909,), (1384916934,), (1384916963,), (1384916992,), (1384917101,), (1384917103,), (1384917105,), (1384917107,), (1384917109,), (1384917110,), (1384917175,), (1384917176,), (1384917177,), (1384917183,)) 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 (1384915900,1384916800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27004836 , 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=27004790 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 (27004836) result : ((1384916735,), (1384916737,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27004790) result : ((1384912772,), (1384912777,), (1384912778,), (1384912783,), (1384912806,), (1384912849,), (1384912852,), (1384912859,), (1384912860,), (1384912876,), (1384912961,), (1384912962,), (1384912963,), (1384912981,), (1384913005,), (1384913031,), (1384913292,), (1384914580,), (1384915351,), (1384915399,), (1384915454,), (1384915504,), (1384915874,), (1384915900,), (1384915925,), (1384915937,), (1384915939,), (1384915948,), (1384916267,), (1384916296,), (1384916312,), (1384916320,), (1384916532,), (1384916535,), (1384916547,), (1384916576,), (1384916750,), (1384916766,), (1384916795,), (1384916800,), (1384916802,), (1384916804,), (1384916863,), (1384916864,), (1384916865,), (1384916867,), (1384916880,), (1384916886,), (1384916909,), (1384916934,), (1384916963,), (1384916992,), (1384917101,), (1384917103,), (1384917105,), (1384917107,), (1384917109,), (1384917110,), (1384917175,), (1384917176,), (1384917177,), (1384917183,)) 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 (1384915900,1384916800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27004837 , 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=27004790 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 (27004837) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27004790) result : ((1384912772,), (1384912777,), (1384912778,), (1384912783,), (1384912806,), (1384912849,), (1384912852,), (1384912859,), (1384912860,), (1384912876,), (1384912961,), (1384912962,), (1384912963,), (1384912981,), (1384913005,), (1384913031,), (1384913292,), (1384914580,), (1384915351,), (1384915399,), (1384915454,), (1384915504,), (1384915874,), (1384915900,), (1384915925,), (1384915937,), (1384915939,), (1384915948,), (1384916267,), (1384916296,), (1384916312,), (1384916320,), (1384916532,), (1384916535,), (1384916547,), (1384916576,), (1384916750,), (1384916766,), (1384916795,), (1384916800,), (1384916802,), (1384916804,), (1384916863,), (1384916864,), (1384916865,), (1384916867,), (1384916880,), (1384916886,), (1384916909,), (1384916934,), (1384916963,), (1384916992,), (1384917101,), (1384917103,), (1384917105,), (1384917107,), (1384917109,), (1384917110,), (1384917175,), (1384917176,), (1384917177,), (1384917183,)) 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 (1384915900,1384916800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27004838 , 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=27004790 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 (27004838) result : ((1384915340,), (1384916058,), (1384917133,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27004790) result : ((1384912772,), (1384912777,), (1384912778,), (1384912783,), (1384912806,), (1384912849,), (1384912852,), (1384912859,), (1384912860,), (1384912876,), (1384912961,), (1384912962,), (1384912963,), (1384912981,), (1384913005,), (1384913031,), (1384913292,), (1384914580,), (1384915351,), (1384915399,), (1384915454,), (1384915504,), (1384915874,), (1384915900,), (1384915925,), (1384915937,), (1384915939,), (1384915948,), (1384916267,), (1384916296,), (1384916312,), (1384916320,), (1384916532,), (1384916535,), (1384916547,), (1384916576,), (1384916750,), (1384916766,), (1384916795,), (1384916800,), (1384916802,), (1384916804,), (1384916863,), (1384916864,), (1384916865,), (1384916867,), (1384916880,), (1384916886,), (1384916909,), (1384916934,), (1384916963,), (1384916992,), (1384917101,), (1384917103,), (1384917105,), (1384917107,), (1384917109,), (1384917110,), (1384917175,), (1384917176,), (1384917177,), (1384917183,)) 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 (1384915900,1384916800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27004839 , 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=27004790 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 (27004839) result : ((1384915292,), (1384915295,), (1384915297,), (1384915299,), (1384915301,), (1384916006,), (1384916008,), (1384916010,), (1384916012,), (1384916014,), (1384917118,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27004790) result : ((1384912772,), (1384912777,), (1384912778,), (1384912783,), (1384912806,), (1384912849,), (1384912852,), (1384912859,), (1384912860,), (1384912876,), (1384912961,), (1384912962,), (1384912963,), (1384912981,), (1384913005,), (1384913031,), (1384913292,), (1384914580,), (1384915351,), (1384915399,), (1384915454,), (1384915504,), (1384915874,), (1384915900,), (1384915925,), (1384915937,), (1384915939,), (1384915948,), (1384916267,), (1384916296,), (1384916312,), (1384916320,), (1384916532,), (1384916535,), (1384916547,), (1384916576,), (1384916750,), (1384916766,), (1384916795,), (1384916800,), (1384916802,), (1384916804,), (1384916863,), (1384916864,), (1384916865,), (1384916867,), (1384916880,), (1384916886,), (1384916909,), (1384916934,), (1384916963,), (1384916992,), (1384917101,), (1384917103,), (1384917105,), (1384917107,), (1384917109,), (1384917110,), (1384917175,), (1384917176,), (1384917177,), (1384917183,)) 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 (1384915900,1384916800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27004840 , 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=27004790 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 (27004840) result : ((1384915317,), (1384915319,), (1384916031,), (1384916033,), (1384916671,), (1384916874,), (1384916875,), (1384916876,), (1384917126,), (1384917178,), (1384917179,), (1384917180,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27004790) result : ((1384912772,), (1384912777,), (1384912778,), (1384912783,), (1384912806,), (1384912849,), (1384912852,), (1384912859,), (1384912860,), (1384912876,), (1384912961,), (1384912962,), (1384912963,), (1384912981,), (1384913005,), (1384913031,), (1384913292,), (1384914580,), (1384915351,), (1384915399,), (1384915454,), (1384915504,), (1384915874,), (1384915900,), (1384915925,), (1384915937,), (1384915939,), (1384915948,), (1384916267,), (1384916296,), (1384916312,), (1384916320,), (1384916532,), (1384916535,), (1384916547,), (1384916576,), (1384916750,), (1384916766,), (1384916795,), (1384916800,), (1384916802,), (1384916804,), (1384916863,), (1384916864,), (1384916865,), (1384916867,), (1384916880,), (1384916886,), (1384916909,), (1384916934,), (1384916963,), (1384916992,), (1384917101,), (1384917103,), (1384917105,), (1384917107,), (1384917109,), (1384917110,), (1384917175,), (1384917176,), (1384917177,), (1384917183,)) 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 (1384915900,1384916800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27004841 , 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=27004790 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 (27004841) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27004790) result : ((1384912772,), (1384912777,), (1384912778,), (1384912783,), (1384912806,), (1384912849,), (1384912852,), (1384912859,), (1384912860,), (1384912876,), (1384912961,), (1384912962,), (1384912963,), (1384912981,), (1384913005,), (1384913031,), (1384913292,), (1384914580,), (1384915351,), (1384915399,), (1384915454,), (1384915504,), (1384915874,), (1384915900,), (1384915925,), (1384915937,), (1384915939,), (1384915948,), (1384916267,), (1384916296,), (1384916312,), (1384916320,), (1384916532,), (1384916535,), (1384916547,), (1384916576,), (1384916750,), (1384916766,), (1384916795,), (1384916800,), (1384916802,), (1384916804,), (1384916863,), (1384916864,), (1384916865,), (1384916867,), (1384916880,), (1384916886,), (1384916909,), (1384916934,), (1384916963,), (1384916992,), (1384917101,), (1384917103,), (1384917105,), (1384917107,), (1384917109,), (1384917110,), (1384917175,), (1384917176,), (1384917177,), (1384917183,)) 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 (1384915900,1384916800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27004842 , 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=27004790 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 (27004842) result : ((1384915308,), (1384916021,), (1384916725,), (1384916727,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27004790) result : ((1384912772,), (1384912777,), (1384912778,), (1384912783,), (1384912806,), (1384912849,), (1384912852,), (1384912859,), (1384912860,), (1384912876,), (1384912961,), (1384912962,), (1384912963,), (1384912981,), (1384913005,), (1384913031,), (1384913292,), (1384914580,), (1384915351,), (1384915399,), (1384915454,), (1384915504,), (1384915874,), (1384915900,), (1384915925,), (1384915937,), (1384915939,), (1384915948,), (1384916267,), (1384916296,), (1384916312,), (1384916320,), (1384916532,), (1384916535,), (1384916547,), (1384916576,), (1384916750,), (1384916766,), (1384916795,), (1384916800,), (1384916802,), (1384916804,), (1384916863,), (1384916864,), (1384916865,), (1384916867,), (1384916880,), (1384916886,), (1384916909,), (1384916934,), (1384916963,), (1384916992,), (1384917101,), (1384917103,), (1384917105,), (1384917107,), (1384917109,), (1384917110,), (1384917175,), (1384917176,), (1384917177,), (1384917183,)) 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 (1384915900,1384916800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27004843 , 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=27004790 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 (27004843) result : ((1384916878,), (1384917182,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27004790) result : ((1384912772,), (1384912777,), (1384912778,), (1384912783,), (1384912806,), (1384912849,), (1384912852,), (1384912859,), (1384912860,), (1384912876,), (1384912961,), (1384912962,), (1384912963,), (1384912981,), (1384913005,), (1384913031,), (1384913292,), (1384914580,), (1384915351,), (1384915399,), (1384915454,), (1384915504,), (1384915874,), (1384915900,), (1384915925,), (1384915937,), (1384915939,), (1384915948,), (1384916267,), (1384916296,), (1384916312,), (1384916320,), (1384916532,), (1384916535,), (1384916547,), (1384916576,), (1384916750,), (1384916766,), (1384916795,), (1384916800,), (1384916802,), (1384916804,), (1384916863,), (1384916864,), (1384916865,), (1384916867,), (1384916880,), (1384916886,), (1384916909,), (1384916934,), (1384916963,), (1384916992,), (1384917101,), (1384917103,), (1384917105,), (1384917107,), (1384917109,), (1384917110,), (1384917175,), (1384917176,), (1384917177,), (1384917183,)) 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 (1384915900,1384916800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27004844 , 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=27004790 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 (27004844) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27004790) result : ((1384912772,), (1384912777,), (1384912778,), (1384912783,), (1384912806,), (1384912849,), (1384912852,), (1384912859,), (1384912860,), (1384912876,), (1384912961,), (1384912962,), (1384912963,), (1384912981,), (1384913005,), (1384913031,), (1384913292,), (1384914580,), (1384915351,), (1384915399,), (1384915454,), (1384915504,), (1384915874,), (1384915900,), (1384915925,), (1384915937,), (1384915939,), (1384915948,), (1384916267,), (1384916296,), (1384916312,), (1384916320,), (1384916532,), (1384916535,), (1384916547,), (1384916576,), (1384916750,), (1384916766,), (1384916795,), (1384916800,), (1384916802,), (1384916804,), (1384916863,), (1384916864,), (1384916865,), (1384916867,), (1384916880,), (1384916886,), (1384916909,), (1384916934,), (1384916963,), (1384916992,), (1384917101,), (1384917103,), (1384917105,), (1384917107,), (1384917109,), (1384917110,), (1384917175,), (1384917176,), (1384917177,), (1384917183,)) 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 (1384915900,1384916800) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27004790 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','environnement','flou','metal','papier','Carton_brun','mal_croppe','Carton_gris','plastique','Teint_Dans_La_Masse','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27004790 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','environnement','flou','metal','papier','Carton_brun','mal_croppe','Carton_gris','plastique','Teint_Dans_La_Masse','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 27004790, 'sub_port_id': 27004846, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220522, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 34)}, 'flou': {'main_port_id': 27004790, 'sub_port_id': 27004847, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220523, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 34)}, 'cartonnette': {'main_port_id': 27004790, 'sub_port_id': 27004848, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220524, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 34)}, 'plastique': {'main_port_id': 27004790, 'sub_port_id': 27004849, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220525, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 34)}, 'papier': {'main_port_id': 27004790, 'sub_port_id': 27004850, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220526, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 34)}, 'Carton_brun': {'main_port_id': 27004790, 'sub_port_id': 27004851, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220527, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 27004790, 'sub_port_id': 27004852, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220528, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 34)}, 'Carton_gris': {'main_port_id': 27004790, 'sub_port_id': 27004853, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220529, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 34)}, 'mal_croppe': {'main_port_id': 27004790, 'sub_port_id': 27004854, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220530, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 34)}, 'autre_refus': {'main_port_id': 27004790, 'sub_port_id': 27004855, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220531, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 34)}, 'kraft': {'main_port_id': 27004790, 'sub_port_id': 27004856, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220532, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 34)}, 'environnement': {'main_port_id': 27004790, 'sub_port_id': 27004857, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18220533, 'last_updated_at': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 18, 19, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 18, 19, 3, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27004846,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27004833 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27004847,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27004834 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27004848,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27004835 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27004849,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27004836 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27004850,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27004837 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27004851,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27004838 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27004852,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27004839 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27004853,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27004840 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27004854,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27004841 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27004855,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27004842 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27004856,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27004843 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27004857,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27004844 lien utilise dans velours : https://marlene.fotonower.com/velours/27004846,27004847,27004848,27004849,27004850,27004851,27004852,27004853,27004854,27004855,27004856,27004857?tags=metal,flou,cartonnette,plastique,papier,Carton_brun,Teint_Dans_La_Masse,Carton_gris,mal_croppe,autre_refus,kraft,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27004790]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1384917183, 1384917177, 1384917176, 1384917175, 1384917110, 1384917109, 1384917107, 1384917105, 1384917103, 1384917101, 1384916992, 1384916963, 1384916934, 1384916909, 1384916886, 1384916880] map_info['map_portfolio_photo'] : {27004790: [1384917183, 1384917177, 1384917176, 1384917175, 1384917110, 1384917109, 1384917107, 1384917105, 1384917103, 1384917101, 1384916992, 1384916963, 1384916934, 1384916909, 1384916886, 1384916880, 1384916867, 1384916865, 1384916864, 1384916863, 1384916804, 1384916802, 1384916800, 1384916795, 1384916766, 1384916750, 1384916576, 1384916547, 1384916535, 1384916532, 1384916320, 1384916312, 1384916296, 1384916267, 1384915948, 1384915939, 1384915937, 1384915925, 1384915900, 1384915874, 1384915504, 1384915454, 1384915399, 1384915351, 1384914580, 1384913292, 1384913031, 1384913005, 1384912981, 1384912963, 1384912962, 1384912961, 1384912876, 1384912860, 1384912859, 1384912852, 1384912849, 1384912806, 1384912783, 1384912778, 1384912777, 1384912772]} final : False mtd_id 4302 list_pids : [1384917183, 1384917177, 1384917176, 1384917175, 1384917110, 1384917109, 1384917107, 1384917105, 1384917103, 1384917101, 1384916992, 1384916963, 1384916934, 1384916909, 1384916886, 1384916880] Looping around the photos to save general results len do output : 1 /27004790. 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, '3741781') ('4302', '27004790', '1384917183', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917177', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917176', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917175', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917110', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917109', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917107', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917105', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917103', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917101', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916992', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916963', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916934', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916909', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916886', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916880', None, None, None, None, None, '3741781') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '27004790', "{'metal': 27004833, 'flou': 27004834, 'cartonnette': 27004835, 'plastique': 27004836, 'papier': 27004837, 'Carton_brun': 27004838, 'Teint_Dans_La_Masse': 27004839, 'Carton_gris': 27004840, 'mal_croppe': 27004841, 'autre_refus': 27004842, 'kraft': 27004843, 'environnement': 27004844}", None, None, None, None, '3741781'), ('4302', '27004790', '1384917183', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917177', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917176', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917175', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917110', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917109', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917107', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917105', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917103', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917101', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384916992', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384916963', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384916934', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384916909', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384916886', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384916880', None, None, None, None, None, '3741781')] time used for this insertion : 0.015463829040527344 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.45808911323547363 time spend to save output : 0.015903711318969727 total time spend for step 1 : 0.47399282455444336 step2:final Thu Sep 18 19:16: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 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 (27004790) 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 27004790 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1384912806,1384912783,1384912778,1384912777,1384912772,1384912876,1384912860,1384912859,1384912852,1384912849,1384913031,1384913005,1384912981,1384912963,1384912962,1384912961,1384913292,1384914580,1384915504,1384915454,1384915399,1384915351,1384915948,1384915939,1384915937,1384915925,1384915900,1384915874,1384916320,1384916312,1384916296,1384916267,1384916576,1384916547,1384916535,1384916532,1384916804,1384916802,1384916800,1384916795,1384916766,1384916750,1384916867,1384916865,1384916864,1384916863,1384917183,1384916992,1384916963,1384917177,1384916934,1384917176,1384916909,1384917175,1384916886,1384917110,1384917109,1384916880,1384917107,1384917105,1384917103,1384917101); 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([27004790]) Inside saveOutput : final : False verbose : True original output for save of step final : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ('0.04102758372096515',)} new output for save of step final : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ('0.04102758372096515',)} [1384917183, 1384917177, 1384917176, 1384917175, 1384917110, 1384917109, 1384917107, 1384917105, 1384917103, 1384917101, 1384916992, 1384916963, 1384916934, 1384916909, 1384916886, 1384916880] map_info['map_portfolio_photo'] : {27004790: [1384917183, 1384917177, 1384917176, 1384917175, 1384917110, 1384917109, 1384917107, 1384917105, 1384917103, 1384917101, 1384916992, 1384916963, 1384916934, 1384916909, 1384916886, 1384916880, 1384916867, 1384916865, 1384916864, 1384916863, 1384916804, 1384916802, 1384916800, 1384916795, 1384916766, 1384916750, 1384916576, 1384916547, 1384916535, 1384916532, 1384916320, 1384916312, 1384916296, 1384916267, 1384915948, 1384915939, 1384915937, 1384915925, 1384915900, 1384915874, 1384915504, 1384915454, 1384915399, 1384915351, 1384914580, 1384913292, 1384913031, 1384913005, 1384912981, 1384912963, 1384912962, 1384912961, 1384912876, 1384912860, 1384912859, 1384912852, 1384912849, 1384912806, 1384912783, 1384912778, 1384912777, 1384912772]} final : False mtd_id 4302 list_pids : [1384917183, 1384917177, 1384917176, 1384917175, 1384917110, 1384917109, 1384917107, 1384917105, 1384917103, 1384917101, 1384916992, 1384916963, 1384916934, 1384916909, 1384916886, 1384916880] Looping around the photos to save general results len do output : 16 /1384917183.Didn't retrieve data . /1384917177.Didn't retrieve data . /1384917176.Didn't retrieve data . /1384917175.Didn't retrieve data . /1384917110.Didn't retrieve data . /1384917109.Didn't retrieve data . /1384917107.Didn't retrieve data . /1384917105.Didn't retrieve data . /1384917103.Didn't retrieve data . /1384917101.Didn't retrieve data . /1384916992.Didn't retrieve data . /1384916963.Didn't retrieve data . /1384916934.Didn't retrieve data . /1384916909.Didn't retrieve data . /1384916886.Didn't retrieve data . /1384916880.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, '3741781') ('4302', '27004790', '1384917183', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917177', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917176', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917175', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917110', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917109', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917107', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917105', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917103', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917101', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916992', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916963', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916934', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916909', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916886', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916880', None, None, None, None, None, '3741781') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '27004790', '1384917183', '0.04102758372096515', None, None, None, None, '3741781'), ('4302', '27004790', '1384917177', '0.04102758372096515', None, None, None, None, '3741781'), ('4302', '27004790', '1384917176', '0.04102758372096515', None, None, None, None, '3741781'), ('4302', '27004790', '1384917175', '0.04102758372096515', None, None, None, None, '3741781'), ('4302', '27004790', '1384917110', '0.04102758372096515', None, None, None, None, '3741781'), ('4302', '27004790', '1384917109', '0.04102758372096515', None, None, None, None, '3741781'), ('4302', '27004790', '1384917107', '0.04102758372096515', None, None, None, None, '3741781'), ('4302', '27004790', '1384917105', '0.04102758372096515', None, None, None, None, '3741781'), ('4302', '27004790', '1384917103', '0.04102758372096515', None, None, None, None, '3741781'), ('4302', '27004790', '1384917101', '0.04102758372096515', None, None, None, None, '3741781'), ('4302', '27004790', '1384916992', '0.04102758372096515', None, None, None, None, '3741781'), ('4302', '27004790', '1384916963', '0.04102758372096515', None, None, None, None, '3741781'), ('4302', '27004790', '1384916934', '0.04102758372096515', None, None, None, None, '3741781'), ('4302', '27004790', '1384916909', '0.04102758372096515', None, None, None, None, '3741781'), ('4302', '27004790', '1384916886', '0.04102758372096515', None, None, None, None, '3741781'), ('4302', '27004790', '1384916880', '0.04102758372096515', None, None, None, None, '3741781')] time used for this insertion : 0.014211177825927734 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06812715530395508 time spend to save output : 0.01491546630859375 total time spend for step 2 : 0.08304262161254883 step3:velours_tree Thu Sep 18 19:16: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 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 : {27004790: [{'metal': 27004833, 'flou': 27004834, 'cartonnette': 27004835, 'plastique': 27004836, 'papier': 27004837, 'Carton_brun': 27004838, 'Teint_Dans_La_Masse': 27004839, 'Carton_gris': 27004840, 'mal_croppe': 27004841, 'autre_refus': 27004842, 'kraft': 27004843, 'environnement': 27004844}]} input_args_next_step : {27004790: ()} output_args : {27004790: [{'metal': 27004833, 'flou': 27004834, 'cartonnette': 27004835, 'plastique': 27004836, 'papier': 27004837, 'Carton_brun': 27004838, 'Teint_Dans_La_Masse': 27004839, 'Carton_gris': 27004840, 'mal_croppe': 27004841, 'autre_refus': 27004842, 'kraft': 27004843, 'environnement': 27004844}]} args : 27004790 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': 27004833, 'flou': 27004834, 'cartonnette': 27004835, 'plastique': 27004836, 'papier': 27004837, 'Carton_brun': 27004838, 'Teint_Dans_La_Masse': 27004839, 'Carton_gris': 27004840, 'mal_croppe': 27004841, 'autre_refus': 27004842, 'kraft': 27004843, 'environnement': 27004844},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27004790) 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([27004790]) 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.3214702606201172 time spend to save output : 5.888938903808594e-05 total time spend for step 3 : 0.3215291500091553 step4:send_mail_cod Thu Sep 18 19:16: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 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 : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ('0.04102758372096515',)} input_args_next_step : {1384917183: ()} output_args : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ('0.04102758372096515',)} args : 1384917183 depend.output_id : 0 input_args_next_step : {1384917183: ('0.04102758372096515',), 1384917177: ()} output_args : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ('0.04102758372096515',)} args : 1384917177 depend.output_id : 0 input_args_next_step : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ()} output_args : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ('0.04102758372096515',)} args : 1384917176 depend.output_id : 0 input_args_next_step : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ()} output_args : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ('0.04102758372096515',)} args : 1384917175 depend.output_id : 0 input_args_next_step : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ()} output_args : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ('0.04102758372096515',)} args : 1384917110 depend.output_id : 0 input_args_next_step : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ()} output_args : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ('0.04102758372096515',)} args : 1384917109 depend.output_id : 0 input_args_next_step : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ()} output_args : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ('0.04102758372096515',)} args : 1384917107 depend.output_id : 0 input_args_next_step : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ()} output_args : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ('0.04102758372096515',)} args : 1384917105 depend.output_id : 0 input_args_next_step : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ()} output_args : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ('0.04102758372096515',)} args : 1384917103 depend.output_id : 0 input_args_next_step : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ()} output_args : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ('0.04102758372096515',)} args : 1384917101 depend.output_id : 0 input_args_next_step : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ()} output_args : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ('0.04102758372096515',)} args : 1384916992 depend.output_id : 0 input_args_next_step : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ()} output_args : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ('0.04102758372096515',)} args : 1384916963 depend.output_id : 0 input_args_next_step : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ()} output_args : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ('0.04102758372096515',)} args : 1384916934 depend.output_id : 0 input_args_next_step : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ()} output_args : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ('0.04102758372096515',)} args : 1384916909 depend.output_id : 0 input_args_next_step : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ()} output_args : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ('0.04102758372096515',)} args : 1384916886 depend.output_id : 0 input_args_next_step : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ()} output_args : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ('0.04102758372096515',)} args : 1384916880 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 : {27004790: [{'metal': 27004833, 'flou': 27004834, 'cartonnette': 27004835, 'plastique': 27004836, 'papier': 27004837, 'Carton_brun': 27004838, 'Teint_Dans_La_Masse': 27004839, 'Carton_gris': 27004840, 'mal_croppe': 27004841, 'autre_refus': 27004842, 'kraft': 27004843, 'environnement': 27004844}]} input_args_next_step : {1384917183: ('0.04102758372096515',), 1384917177: ('0.04102758372096515',), 1384917176: ('0.04102758372096515',), 1384917175: ('0.04102758372096515',), 1384917110: ('0.04102758372096515',), 1384917109: ('0.04102758372096515',), 1384917107: ('0.04102758372096515',), 1384917105: ('0.04102758372096515',), 1384917103: ('0.04102758372096515',), 1384917101: ('0.04102758372096515',), 1384916992: ('0.04102758372096515',), 1384916963: ('0.04102758372096515',), 1384916934: ('0.04102758372096515',), 1384916909: ('0.04102758372096515',), 1384916886: ('0.04102758372096515',), 1384916880: ('0.04102758372096515',), 27004790: ()} output_args : {27004790: [{'metal': 27004833, 'flou': 27004834, 'cartonnette': 27004835, 'plastique': 27004836, 'papier': 27004837, 'Carton_brun': 27004838, 'Teint_Dans_La_Masse': 27004839, 'Carton_gris': 27004840, 'mal_croppe': 27004841, 'autre_refus': 27004842, 'kraft': 27004843, 'environnement': 27004844}]} args : 27004790 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 :17, first value : ('0.04102758372096515',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27004790) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1384917183,1384917177,1384917176,1384917175,1384917110,1384917109,1384917107,1384917105,1384917103,1384917101,1384916992,1384916963,1384916934,1384916909,1384916886,1384916880) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1384916880 begin to download photo : 1384916963 begin to download photo : 1384917105 begin to download photo : 1384917175 download finish for photo 1384916963 begin to download photo : 1384916992 download finish for photo 1384916880 begin to download photo : 1384916886 download finish for photo 1384917175 begin to download photo : 1384917176 download finish for photo 1384917105 begin to download photo : 1384917107 download finish for photo 1384916886 begin to download photo : 1384916909 download finish for photo 1384917107 begin to download photo : 1384917109 download finish for photo 1384917176 begin to download photo : 1384917177 download finish for photo 1384916992 begin to download photo : 1384917101 download finish for photo 1384916909 begin to download photo : 1384916934 download finish for photo 1384917177 begin to download photo : 1384917183 download finish for photo 1384917109 begin to download photo : 1384917110 download finish for photo 1384917101 begin to download photo : 1384917103 download finish for photo 1384916934 download finish for photo 1384917183 download finish for photo 1384917103 download finish for photo 1384917110 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P27004790_18-09-2025_19_16_59.pdf 27004833 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27004833 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384916739: '1758215487_419006_1384912849_8110d147fa59667af24a1664d250d5a0_rle_crop_3966705040_0.png'} change filename to text .imagette270048331758215819/ imagette270048331758215819/1758215487_419006_1384912849_8110d147fa59667af24a1664d250d5a0_rle_crop_3966705040_0.png.png imagette270048341758215819/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/a1abc62184ad78782225781a869077fb_49315778.png imagette270048331758215819 27004834 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27004834 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette270048341758215819 27004835 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27004835 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384915331: '1758215225_408562_1384912981_5f1fdf71cf8a1940c5af872cb2fe3fed_rle_crop_3966702708_0.png', 1384915333: '1758215225_408562_1384912963_a05b52fe707237f583beaadf60ec3922_rle_crop_3966702723_0.png', 1384916042: '1758215346_411811_1384912981_5f1fdf71cf8a1940c5af872cb2fe3fed_rle_crop_3966702708_0.png', 1384916045: '1758215346_411811_1384912963_a05b52fe707237f583beaadf60ec3922_rle_crop_3966702723_0.png', 1384916877: '1758215586_424238_1384916267_17082c65138014c006d3c2d3b3544176_rle_crop_3966706016_0.png', 1384917181: '1758215725_427659_1384916267_17082c65138014c006d3c2d3b3544176_rle_crop_3966706016_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/e70fd1f557fbf8fe96258677a88587e8_74467848.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/d92b2aad8c8cdebfafe0695f3b60a3a4_44982354.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/e70fd1f557fbf8fe96258677a88587e8_97429284.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/d92b2aad8c8cdebfafe0695f3b60a3a4_86705293.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/1839b8754b1dec0b00f68f1a073c8d9c_19161955.png change filename to text .imagette270048351758215819/ imagette270048351758215819/1758215346_411811_1384912963_a05b52fe707237f583beaadf60ec3922_rle_crop_3966702723_0.png.png imagette270048351758215819/1758215225_408562_1384912981_5f1fdf71cf8a1940c5af872cb2fe3fed_rle_crop_3966702708_0.png.png imagette270048351758215819/1758215725_427659_1384916267_17082c65138014c006d3c2d3b3544176_rle_crop_3966706016_0.png.png imagette270048351758215819/1758215586_424238_1384916267_17082c65138014c006d3c2d3b3544176_rle_crop_3966706016_0.png.png imagette270048351758215819/1758215225_408562_1384912963_a05b52fe707237f583beaadf60ec3922_rle_crop_3966702723_0.png.png imagette270048351758215819/1758215346_411811_1384912981_5f1fdf71cf8a1940c5af872cb2fe3fed_rle_crop_3966702708_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/1839b8754b1dec0b00f68f1a073c8d9c_67662769.png imagette270048351758215819 27004836 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27004836 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384916735: '1758215487_419006_1384912859_8bb8049e2d0cd18463d9974d9205831f_rle_crop_3966705012_0.png', 1384916737: '1758215487_419006_1384912849_8110d147fa59667af24a1664d250d5a0_rle_crop_3966705039_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/ece7351c1ae994df2b10fd59e4ef8e7a_12446262.png change filename to text .imagette270048361758215820/ imagette270048361758215820/1758215487_419006_1384912859_8bb8049e2d0cd18463d9974d9205831f_rle_crop_3966705012_0.png.png imagette270048361758215820/1758215487_419006_1384912849_8110d147fa59667af24a1664d250d5a0_rle_crop_3966705039_0.png.png imagette270048411758215820/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/cf0013f81e527681b2e213f652b8c0b7_53774295.png imagette270048361758215820 27004841 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27004841 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette270048411758215820 27004842 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27004842 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384915308: '1758215225_408562_1384913292_df14d2594f9ea098a3c46d9a01589265_rle_crop_3966702684_0.png', 1384916021: '1758215346_411811_1384913292_df14d2594f9ea098a3c46d9a01589265_rle_crop_3966702684_0.png', 1384916725: '1758215487_419006_1384912859_8bb8049e2d0cd18463d9974d9205831f_rle_crop_3966705005_0.png', 1384916727: '1758215487_419006_1384912852_a10db115f2acd235843e5c7a4b8c686f_rle_crop_3966705023_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/603f44af3f0e5bdac4bf46e190d3826e_65440860.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/603f44af3f0e5bdac4bf46e190d3826e_1704030.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/e07e1e502107b67e059538ab5aab935d_78904485.png change filename to text .imagette270048421758215820/ imagette270048421758215820/1758215225_408562_1384913292_df14d2594f9ea098a3c46d9a01589265_rle_crop_3966702684_0.png.png imagette270048421758215820/1758215346_411811_1384913292_df14d2594f9ea098a3c46d9a01589265_rle_crop_3966702684_0.png.png imagette270048421758215820/1758215487_419006_1384912859_8bb8049e2d0cd18463d9974d9205831f_rle_crop_3966705005_0.png.png imagette270048421758215820/1758215487_419006_1384912852_a10db115f2acd235843e5c7a4b8c686f_rle_crop_3966705023_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/fc38f9c72ead14da19a94f4fb4b090bd_43201076.png imagette270048421758215820 27004843 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27004843 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384916878: '1758215586_424238_1384916267_17082c65138014c006d3c2d3b3544176_rle_crop_3966706009_0.png', 1384917182: '1758215725_427659_1384916267_17082c65138014c006d3c2d3b3544176_rle_crop_3966706009_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/09293206bc47cf8b9eb267264e233eec_81890942.png change filename to text .imagette270048431758215820/ imagette270048431758215820/1758215586_424238_1384916267_17082c65138014c006d3c2d3b3544176_rle_crop_3966706009_0.png.png imagette270048431758215820/1758215725_427659_1384916267_17082c65138014c006d3c2d3b3544176_rle_crop_3966706009_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/09293206bc47cf8b9eb267264e233eec_56474922.png imagette270048431758215820 27004838 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27004838 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384915340: '1758215225_408562_1384912981_5f1fdf71cf8a1940c5af872cb2fe3fed_rle_crop_3966702711_0.png', 1384916058: '1758215346_411811_1384912981_5f1fdf71cf8a1940c5af872cb2fe3fed_rle_crop_3966702711_0.png', 1384917133: '1758215707_427280_1384916535_4a1608f7da602e3bb0ba3b93e3f16097_rle_crop_3966706813_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/9dea7f62a6cfde0197f0b1e96049fbe2_9749609.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/9dea7f62a6cfde0197f0b1e96049fbe2_34978445.png change filename to text .imagette270048381758215820/ imagette270048381758215820/1758215346_411811_1384912981_5f1fdf71cf8a1940c5af872cb2fe3fed_rle_crop_3966702711_0.png.png imagette270048381758215820/1758215707_427280_1384916535_4a1608f7da602e3bb0ba3b93e3f16097_rle_crop_3966706813_0.png.png imagette270048381758215820/1758215225_408562_1384912981_5f1fdf71cf8a1940c5af872cb2fe3fed_rle_crop_3966702711_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/32fadfae876afc813d3fe717d8b90c62_94089514.png imagette270048381758215820 27004839 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27004839 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384915292: '1758215225_408562_1384913005_9b499f07cc49f0de309a0e41e19196fd_rle_crop_3966702699_0.png', 1384915295: '1758215225_408562_1384912981_5f1fdf71cf8a1940c5af872cb2fe3fed_rle_crop_3966702715_0.png', 1384915297: '1758215225_408562_1384912981_5f1fdf71cf8a1940c5af872cb2fe3fed_rle_crop_3966702713_0.png', 1384915299: '1758215225_408562_1384912981_5f1fdf71cf8a1940c5af872cb2fe3fed_rle_crop_3966702710_0.png', 1384915301: '1758215225_408562_1384912963_a05b52fe707237f583beaadf60ec3922_rle_crop_3966702726_0.png', 1384916006: '1758215346_411811_1384913005_9b499f07cc49f0de309a0e41e19196fd_rle_crop_3966702699_0.png', 1384916008: '1758215346_411811_1384912981_5f1fdf71cf8a1940c5af872cb2fe3fed_rle_crop_3966702715_0.png', 1384916010: '1758215346_411811_1384912981_5f1fdf71cf8a1940c5af872cb2fe3fed_rle_crop_3966702713_0.png', 1384916012: '1758215346_411811_1384912981_5f1fdf71cf8a1940c5af872cb2fe3fed_rle_crop_3966702710_0.png', 1384916014: '1758215346_411811_1384912963_a05b52fe707237f583beaadf60ec3922_rle_crop_3966702726_0.png', 1384917118: '1758215707_427280_1384916532_7c9356d4123a60d473f10be5d56690d0_rle_crop_3966706823_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/75bfb66b9a96d89ff465bd84b5d46679_80166152.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/39551bae1d3e72ac60879e4bc8ddbc9a_40287267.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/89415d674737918a5c11fc112adc1771_3650779.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/e07f2e95e02130ec5b6b4131b034bccd_25302612.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/2774b3f9471799c6a7dc22b31c86d178_87922092.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/75bfb66b9a96d89ff465bd84b5d46679_42105326.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/39551bae1d3e72ac60879e4bc8ddbc9a_8076967.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/89415d674737918a5c11fc112adc1771_5730239.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/e07f2e95e02130ec5b6b4131b034bccd_58582598.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/2774b3f9471799c6a7dc22b31c86d178_46187445.png change filename to text .imagette270048391758215820/ imagette270048391758215820/1758215225_408562_1384912981_5f1fdf71cf8a1940c5af872cb2fe3fed_rle_crop_3966702710_0.png.png imagette270048391758215820/1758215225_408562_1384913005_9b499f07cc49f0de309a0e41e19196fd_rle_crop_3966702699_0.png.png imagette270048391758215820/1758215346_411811_1384912981_5f1fdf71cf8a1940c5af872cb2fe3fed_rle_crop_3966702715_0.png.png imagette270048391758215820/1758215225_408562_1384912981_5f1fdf71cf8a1940c5af872cb2fe3fed_rle_crop_3966702713_0.png.png imagette270048391758215820/1758215707_427280_1384916532_7c9356d4123a60d473f10be5d56690d0_rle_crop_3966706823_0.png.png imagette270048391758215820/1758215225_408562_1384912963_a05b52fe707237f583beaadf60ec3922_rle_crop_3966702726_0.png.png imagette270048391758215820/1758215225_408562_1384912981_5f1fdf71cf8a1940c5af872cb2fe3fed_rle_crop_3966702715_0.png.png imagette270048391758215820/1758215346_411811_1384913005_9b499f07cc49f0de309a0e41e19196fd_rle_crop_3966702699_0.png.png imagette270048391758215820/1758215346_411811_1384912981_5f1fdf71cf8a1940c5af872cb2fe3fed_rle_crop_3966702713_0.png.png imagette270048391758215820/1758215346_411811_1384912963_a05b52fe707237f583beaadf60ec3922_rle_crop_3966702726_0.png.png imagette270048391758215820/1758215346_411811_1384912981_5f1fdf71cf8a1940c5af872cb2fe3fed_rle_crop_3966702710_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/6fd12449572867908dcb621f3ef057f4_26602290.png imagette270048391758215820 27004840 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27004840 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384915317: '1758215225_408562_1384912962_26c306cd99902e1dc3bb57c473ba4609_rle_crop_3966702736_0.png', 1384915319: '1758215225_408562_1384912961_95ab9909a3bd27ac149745f1dfdb4f36_rle_crop_3966702739_0.png', 1384916031: '1758215346_411811_1384912962_26c306cd99902e1dc3bb57c473ba4609_rle_crop_3966702736_0.png', 1384916033: '1758215346_411811_1384912961_95ab9909a3bd27ac149745f1dfdb4f36_rle_crop_3966702739_0.png', 1384916671: '1758215467_417685_1384915351_9b895b7fe02808ab4c4e89d459a9fa2d_rle_crop_3966704864_0.png', 1384916874: '1758215586_424238_1384916312_f0c150ee345901ff90cc1b5b97f4811c_rle_crop_3966705191_0.png', 1384916875: '1758215586_424238_1384916296_6a5ce3e377e5aa018e3bdb465efd6cf8_rle_crop_3966706001_0.png', 1384916876: '1758215586_424238_1384916296_6a5ce3e377e5aa018e3bdb465efd6cf8_rle_crop_3966706002_0.png', 1384917126: '1758215707_427280_1384916535_4a1608f7da602e3bb0ba3b93e3f16097_rle_crop_3966706811_0.png', 1384917178: '1758215725_427659_1384916312_f0c150ee345901ff90cc1b5b97f4811c_rle_crop_3966705191_0.png', 1384917179: '1758215725_427659_1384916296_6a5ce3e377e5aa018e3bdb465efd6cf8_rle_crop_3966706001_0.png', 1384917180: '1758215725_427659_1384916296_6a5ce3e377e5aa018e3bdb465efd6cf8_rle_crop_3966706002_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/0ff247ec093944fbb2216573262f5628_80527646.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/8c9ef277207087af44236dde0b8370a8_41961074.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/0ff247ec093944fbb2216573262f5628_65581705.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/8c9ef277207087af44236dde0b8370a8_86498703.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/1cf1f8fae14da8501f7c3b77502f714b_76148280.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/f2de317df791bec9224d3c6be699172a_5894365.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/dd00fe0135d809ff5c12ed639f5032fc_97539349.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/c2e9603c9ed974dcb5e70c508cb3aff8_90345200.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/2e86b94e6d3ee61b8b1df8b030e26150_93042257.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/f2de317df791bec9224d3c6be699172a_8105159.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/dd00fe0135d809ff5c12ed639f5032fc_64926196.png change filename to text .imagette270048401758215821/ imagette270048401758215821/1758215725_427659_1384916296_6a5ce3e377e5aa018e3bdb465efd6cf8_rle_crop_3966706002_0.png.png imagette270048401758215821/1758215586_424238_1384916296_6a5ce3e377e5aa018e3bdb465efd6cf8_rle_crop_3966706001_0.png.png imagette270048401758215821/1758215707_427280_1384916535_4a1608f7da602e3bb0ba3b93e3f16097_rle_crop_3966706811_0.png.png imagette270048401758215821/1758215467_417685_1384915351_9b895b7fe02808ab4c4e89d459a9fa2d_rle_crop_3966704864_0.png.png imagette270048401758215821/1758215586_424238_1384916296_6a5ce3e377e5aa018e3bdb465efd6cf8_rle_crop_3966706002_0.png.png imagette270048401758215821/1758215586_424238_1384916312_f0c150ee345901ff90cc1b5b97f4811c_rle_crop_3966705191_0.png.png imagette270048401758215821/1758215346_411811_1384912961_95ab9909a3bd27ac149745f1dfdb4f36_rle_crop_3966702739_0.png.png imagette270048401758215821/1758215225_408562_1384912961_95ab9909a3bd27ac149745f1dfdb4f36_rle_crop_3966702739_0.png.png imagette270048401758215821/1758215725_427659_1384916296_6a5ce3e377e5aa018e3bdb465efd6cf8_rle_crop_3966706001_0.png.png imagette270048401758215821/1758215225_408562_1384912962_26c306cd99902e1dc3bb57c473ba4609_rle_crop_3966702736_0.png.png imagette270048401758215821/1758215725_427659_1384916312_f0c150ee345901ff90cc1b5b97f4811c_rle_crop_3966705191_0.png.png imagette270048401758215821/1758215346_411811_1384912962_26c306cd99902e1dc3bb57c473ba4609_rle_crop_3966702736_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/c2e9603c9ed974dcb5e70c508cb3aff8_13202710.png imagette270048401758215821 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27004790 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27004846,27004847,27004848,27004849,27004850,27004851,27004852,27004853,27004854,27004855,27004856,27004857?tags=metal,flou,cartonnette,plastique,papier,Carton_brun,Teint_Dans_La_Masse,Carton_gris,mal_croppe,autre_refus,kraft,environnement your option no_mail is active, we will not send the real mail to your client args[1384917183] : ('0.04102758372096515',) no score found for photo 1384917183 We are sending mail with results at report@fotonower.com args[1384917177] : ('0.04102758372096515',) no score found for photo 1384917177 We are sending mail with results at report@fotonower.com args[1384917176] : ('0.04102758372096515',) no score found for photo 1384917176 We are sending mail with results at report@fotonower.com args[1384917175] : ('0.04102758372096515',) no score found for photo 1384917175 We are sending mail with results at report@fotonower.com args[1384917110] : ('0.04102758372096515',) no score found for photo 1384917110 We are sending mail with results at report@fotonower.com args[1384917109] : ('0.04102758372096515',) no score found for photo 1384917109 We are sending mail with results at report@fotonower.com args[1384917107] : ('0.04102758372096515',) no score found for photo 1384917107 We are sending mail with results at report@fotonower.com args[1384917105] : ('0.04102758372096515',) no score found for photo 1384917105 We are sending mail with results at report@fotonower.com args[1384917103] : ('0.04102758372096515',) no score found for photo 1384917103 We are sending mail with results at report@fotonower.com args[1384917101] : ('0.04102758372096515',) no score found for photo 1384917101 We are sending mail with results at report@fotonower.com args[1384916992] : ('0.04102758372096515',) no score found for photo 1384916992 We are sending mail with results at report@fotonower.com args[1384916963] : ('0.04102758372096515',) no score found for photo 1384916963 We are sending mail with results at report@fotonower.com args[1384916934] : ('0.04102758372096515',) no score found for photo 1384916934 We are sending mail with results at report@fotonower.com args[1384916909] : ('0.04102758372096515',) no score found for photo 1384916909 We are sending mail with results at report@fotonower.com args[1384916886] : ('0.04102758372096515',) no score found for photo 1384916886 We are sending mail with results at report@fotonower.com args[1384916880] : ('0.04102758372096515',) no score found for photo 1384916880 We are sending mail with results at report@fotonower.com refus_total : 0.04102758372096515 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27004790 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_P27004790_18-09-2025_19_16_59.pdf results_Auto_P27004790_18-09-2025_19_16_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27004790_18-09-2025_19_16_59.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','27004790','results_Auto_P27004790_18-09-2025_19_16_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27004790_18-09-2025_19_16_59.pdf','pdf','','0.19','0.04102758372096515') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27004790]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1384917183, 1384917177, 1384917176, 1384917175, 1384917110, 1384917109, 1384917107, 1384917105, 1384917103, 1384917101, 1384916992, 1384916963, 1384916934, 1384916909, 1384916886, 1384916880] map_info['map_portfolio_photo'] : {27004790: [1384917183, 1384917177, 1384917176, 1384917175, 1384917110, 1384917109, 1384917107, 1384917105, 1384917103, 1384917101, 1384916992, 1384916963, 1384916934, 1384916909, 1384916886, 1384916880, 1384916867, 1384916865, 1384916864, 1384916863, 1384916804, 1384916802, 1384916800, 1384916795, 1384916766, 1384916750, 1384916576, 1384916547, 1384916535, 1384916532, 1384916320, 1384916312, 1384916296, 1384916267, 1384915948, 1384915939, 1384915937, 1384915925, 1384915900, 1384915874, 1384915504, 1384915454, 1384915399, 1384915351, 1384914580, 1384913292, 1384913031, 1384913005, 1384912981, 1384912963, 1384912962, 1384912961, 1384912876, 1384912860, 1384912859, 1384912852, 1384912849, 1384912806, 1384912783, 1384912778, 1384912777, 1384912772]} final : False mtd_id 4302 list_pids : [1384917183, 1384917177, 1384917176, 1384917175, 1384917110, 1384917109, 1384917107, 1384917105, 1384917103, 1384917101, 1384916992, 1384916963, 1384916934, 1384916909, 1384916886, 1384916880] 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, '3741781') ('4302', '27004790', '1384917183', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917177', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917176', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917175', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917110', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917109', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917107', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917105', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917103', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917101', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916992', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916963', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916934', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916909', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916886', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916880', None, None, None, None, None, '3741781') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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', '27004790', '1384917183', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917177', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917176', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917175', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917110', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917109', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917107', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917105', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917103', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917101', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384916992', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384916963', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384916934', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384916909', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384916886', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384916880', None, None, None, None, None, '3741781')] time used for this insertion : 0.013810873031616211 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.597367286682129 time spend to save output : 0.014139413833618164 total time spend for step 4 : 5.611506700515747 step5:split_time_score Thu Sep 18 19:17:04 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 : ['27004790'] 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 : [('27004790',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27004790) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1384916880: {'path': 'temp/1758215818_234722_1384916880_fb9dc32885e292d36d274b66b917f2ac.jpg', 'extension': 'jpg'}, 1384916886: {'path': 'temp/1758215818_234722_1384916886_64bc5f61b6d597658c05b0093a0b6d14.jpg', 'extension': 'jpg'}, 1384916909: {'path': 'temp/1758215818_234722_1384916909_55c372e10a6ffd2d399104b614f4fe0a.jpg', 'extension': 'jpg'}, 1384916934: {'path': 'temp/1758215818_234722_1384916934_2d47615a401c9c10e380fe9e0685adad.jpg', 'extension': 'jpg'}, 1384917175: {'path': 'temp/1758215818_234722_1384917175_0a108bef8577b876bb95c77f6c081603.jpg', 'extension': 'jpg'}, 1384917176: {'path': 'temp/1758215818_234722_1384917176_ba054dad09cec158f3a43990b289a7ba.jpg', 'extension': 'jpg'}, 1384917177: {'path': 'temp/1758215818_234722_1384917177_82ec9844cc991cbe2750e0f6f9c78d35.jpg', 'extension': 'jpg'}, 1384917183: {'path': 'temp/1758215818_234722_1384917183_998ec335fcc51c5d1b37967096d7e40c.jpg', 'extension': 'jpg'}, 1384916963: {'path': 'temp/1758215818_234722_1384916963_c44dee23f0639da032d0439e81f08206.jpg', 'extension': 'jpg'}, 1384916992: {'path': 'temp/1758215818_234722_1384916992_90bcd70d1eef57485d96b668917cd2ce.jpg', 'extension': 'jpg'}, 1384917101: {'path': 'temp/1758215818_234722_1384917101_991619959a206f38ca5b580edd9f5e24.jpg', 'extension': 'jpg'}, 1384917103: {'path': 'temp/1758215818_234722_1384917103_02b19464441239913ed97dfad0860f0b.jpg', 'extension': 'jpg'}, 1384917105: {'path': 'temp/1758215818_234722_1384917105_03fef0793981c5dfc2fcde3b95129631.jpg', 'extension': 'jpg'}, 1384917107: {'path': 'temp/1758215818_234722_1384917107_af114db47dc4e70e422bed5b31d8e753.jpg', 'extension': 'jpg'}, 1384917109: {'path': 'temp/1758215818_234722_1384917109_4537f392db9e1f7052699db10dcd9846.jpg', 'extension': 'jpg'}, 1384917110: {'path': 'temp/1758215818_234722_1384917110_dd281507eb24330df64ae7d1c127d906.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 = 27004790; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27004790 group by h (('19', 62),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27004790 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 (27004790) 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 (27004790) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18092025 27004790 Nombre de photos uploadées : 62 / 23040 (0%) 18092025 27004790 Nombre de photos taguées (types de déchets): 0 / 62 (0%) 18092025 27004790 Nombre de photos taguées (volume) : 0 / 62 (0%) [{'photo_id': 1384912806, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/9d3c1257c5618655420681295b3ad499.jpg', 'username': None, 'uploaded_at': 1758214877, 'text': 'image_18092025_19_00_04_10139.jpg'}, {'photo_id': 1384912783, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/96173b4d34bdb5caef2a0c89970bd867.jpg', 'username': None, 'uploaded_at': 1758214877, 'text': 'image_18092025_19_00_14_10135.jpg'}, {'photo_id': 1384912778, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/93c619b7b6fb11c28206058484815a4b.jpg', 'username': None, 'uploaded_at': 1758214877, 'text': 'image_18092025_19_00_24_10136.jpg'}, {'photo_id': 1384912777, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/18/3ab304f8763ac394db5c36fbfa5484b3.jpg', 'username': None, 'uploaded_at': 1758214877, 'text': 'image_18092025_19_00_33_9127.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 1.2159347534179688e-05 ?????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0029790401458740234 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27004790, '2025-09-18' ) 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-09-18' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2308713,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2101132869720459 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= 2308713 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2308713, 'dashboard_run_id': 2321921, 'mtr_portfolio_id': 26978193, 'dashboard_result_id': 15373879, '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_P26978193_18-09-2025_00_20_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26978202, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26978203, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26978204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26978205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26978206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26978207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26978208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26978209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26978210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26978211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26978212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26978213, 'pht': 3726}}"}, {'dashboat_entry_day': 2308713, 'dashboard_run_id': 2321921, 'mtr_portfolio_id': 26978870, 'dashboard_result_id': 15373880, '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_P26978870_18-09-2025_00_34_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26978871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26978872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26978873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26978874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26978875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26978876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26978877, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26978878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26978879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26978880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26978881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26978882, 'pht': 3726}}"}, {'dashboat_entry_day': 2308713, 'dashboard_run_id': 2321921, 'mtr_portfolio_id': 26979560, 'dashboard_result_id': 15373881, '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_P26979560_18-09-2025_03_00_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26979602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26979603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26979604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26979605, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26979606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26979607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26979608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26979609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26979610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26979611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26979612, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26979613, 'pht': 3726}}"}, {'dashboat_entry_day': 2308713, 'dashboard_run_id': 2321921, 'mtr_portfolio_id': 26982588, 'dashboard_result_id': 15373882, '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_P26982588_18-09-2025_04_03_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26982625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26982626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26982627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26982628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26982629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26982630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26982631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26982632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26982633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26982634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26982635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26982636, 'pht': 3726}}"}, {'dashboat_entry_day': 2308713, 'dashboard_run_id': 2321921, 'mtr_portfolio_id': 26982995, 'dashboard_result_id': 15373883, '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_P26982995_18-09-2025_02_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26982996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26982997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26982998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26982999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26983000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26983001, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26983002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26983003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26983004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26983005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26983006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26983007, 'pht': 3726}}"}, {'dashboat_entry_day': 2308713, 'dashboard_run_id': 2321921, 'mtr_portfolio_id': 26983682, 'dashboard_result_id': 15373884, '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_P26983682_18-09-2025_03_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26983689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26983690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26983691, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26983692, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26983693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26983694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26983695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26983696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26983697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26983698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26983699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26983700, 'pht': 3726}}"}, {'dashboat_entry_day': 2308713, 'dashboard_run_id': 2321921, 'mtr_portfolio_id': 26984191, 'dashboard_result_id': 15373885, '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_P26984191_18-09-2025_03_20_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26984244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26984246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26984247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26984248, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26984249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26984250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26984251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26984252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26984253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26984254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26984255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26984256, 'pht': 3726}}"}, {'dashboat_entry_day': 2308713, 'dashboard_run_id': 2321921, 'mtr_portfolio_id': 26985006, 'dashboard_result_id': 15373886, '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_P26985006_18-09-2025_03_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26985035, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26985036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26985037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26985038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26985039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26985040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26985041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26985042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26985043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26985044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26985045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26985046, 'pht': 3726}}"}, {'dashboat_entry_day': 2308713, 'dashboard_run_id': 2321921, 'mtr_portfolio_id': 26985588, 'dashboard_result_id': 15373887, '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_P26985588_18-09-2025_03_51_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26985614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26985615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26985616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26985617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26985618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26985619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26985620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26985621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26985622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26985623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26985624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26985625, 'pht': 3726}}"}, {'dashboat_entry_day': 2308713, 'dashboard_run_id': 2321921, 'mtr_portfolio_id': 26986375, 'dashboard_result_id': 15373888, '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_P26986375_18-09-2025_04_08_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26986390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26986391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26986392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26986393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26986394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26986395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26986396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26986397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26986398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26986399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26986400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26986401, 'pht': 3726}}"}, {'dashboat_entry_day': 2308713, 'dashboard_run_id': 2321921, 'mtr_portfolio_id': 27003318, 'dashboard_result_id': 15373889, '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_P27003318_18-09-2025_18_27_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27003319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27003320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27003321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27003322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27003323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27003324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27003325, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27003326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27003327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27003328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27003329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27003330, 'pht': 3726}}"}, {'dashboat_entry_day': 2308713, 'dashboard_run_id': 2321921, 'mtr_portfolio_id': 27003520, 'dashboard_result_id': 15373890, '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_P27003520_18-09-2025_18_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27003531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27003533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27003534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27003535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27003537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27003538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27003539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27003540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27003542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27003543, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27003544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27003546, 'pht': 3726}}"}, {'dashboat_entry_day': 2308713, 'dashboard_run_id': 2321921, 'mtr_portfolio_id': 27003648, 'dashboard_result_id': 15373891, '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_P27003648_18-09-2025_18_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27003652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27003653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27003654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27003655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27003656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27003657, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27003658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27003659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27003660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27003661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27003662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27003663, 'pht': 3726}}"}, {'dashboat_entry_day': 2308713, 'dashboard_run_id': 2321921, 'mtr_portfolio_id': 27004172, 'dashboard_result_id': 15373892, '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_P27004172_18-09-2025_19_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27004198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27004199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27004200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27004201, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27004202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27004203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27004204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27004205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27004206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27004207, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27004208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27004209, 'pht': 3726}}"}, {'dashboat_entry_day': 2308713, 'dashboard_run_id': 2321921, 'mtr_portfolio_id': 27004790, 'dashboard_result_id': 15373893, '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_P27004790_18-09-2025_19_12_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27004833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27004834, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27004835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27004836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27004837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27004838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27004839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27004840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27004841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27004842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27004843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27004844, '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 = 26978193 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': 3738852, 'mtr_portfolio_id': 26978193, 'created_at': datetime.datetime(2025, 9, 18, 0, 19, 59), 'result': '0.06274850455583744', 'result_long': None, 'result_double': None}] Qualite : 0.06274850455583744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26978193 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26978193_18-09-2025_00_20_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26978193 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_P26978193_18-09-2025_00_20_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26978202, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26978203, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26978204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26978205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26978206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26978207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26978208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26978209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26978210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26978211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26978212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26978213, 'pht': 3726}}" where mtr_portfolio_id = 26978193 and dashboard_run_id = 2321921 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`=26978193 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15373879, 0.06274850455583744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26978193_18-09-2025_00_20_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26978202, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26978203, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26978204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26978205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26978206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26978207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26978208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26978209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26978210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26978211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26978212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26978213, '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 = 26978870 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': 3738906, 'mtr_portfolio_id': 26978870, 'created_at': datetime.datetime(2025, 9, 18, 0, 34, 59), 'result': '0.03733234561982435', 'result_long': None, 'result_double': None}] Qualite : 0.03733234561982435 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26978870 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26978870_18-09-2025_00_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26978870 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_P26978870_18-09-2025_00_34_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26978871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26978872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26978873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26978874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26978875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26978876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26978877, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26978878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26978879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26978880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26978881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26978882, 'pht': 3726}}" where mtr_portfolio_id = 26978870 and dashboard_run_id = 2321921 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`=26978870 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15373880, 0.03733234561982435, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26978870_18-09-2025_00_34_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26978871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26978872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26978873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26978874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26978875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26978876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26978877, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26978878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26978879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26978880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26978881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26978882, '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 = 26979560 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': 3738957, 'mtr_portfolio_id': 26979560, 'created_at': datetime.datetime(2025, 9, 18, 3, 0, 31), 'result': '0.062170186358450875', 'result_long': None, 'result_double': None}] Qualite : 0.062170186358450875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26979560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26979560_18-09-2025_03_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26979560 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_P26979560_18-09-2025_03_00_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26979602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26979603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26979604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26979605, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26979606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26979607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26979608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26979609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26979610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26979611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26979612, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26979613, 'pht': 3726}}" where mtr_portfolio_id = 26979560 and dashboard_run_id = 2321921 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`=26979560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15373881, 0.062170186358450875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26979560_18-09-2025_03_00_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26979602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26979603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26979604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26979605, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26979606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26979607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26979608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26979609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26979610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26979611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26979612, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26979613, '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 = 26982588 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': 3739201, 'mtr_portfolio_id': 26982588, 'created_at': datetime.datetime(2025, 9, 18, 4, 3, 33), 'result': '0.04679996111685977', 'result_long': None, 'result_double': None}] Qualite : 0.04679996111685977 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26982588 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26982588_18-09-2025_04_03_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26982588 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_P26982588_18-09-2025_04_03_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26982625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26982626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26982627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26982628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26982629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26982630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26982631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26982632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26982633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26982634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26982635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26982636, 'pht': 3726}}" where mtr_portfolio_id = 26982588 and dashboard_run_id = 2321921 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`=26982588 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15373882, 0.04679996111685977, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26982588_18-09-2025_04_03_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26982625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26982626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26982627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26982628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26982629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26982630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26982631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26982632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26982633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26982634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26982635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26982636, '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 = 26982995 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': 3739233, 'mtr_portfolio_id': 26982995, 'created_at': datetime.datetime(2025, 9, 18, 2, 48, 58), 'result': '0.05185336987197447', 'result_long': None, 'result_double': None}] Qualite : 0.05185336987197447 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26982995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26982995_18-09-2025_02_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26982995 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_P26982995_18-09-2025_02_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26982996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26982997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26982998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26982999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26983000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26983001, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26983002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26983003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26983004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26983005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26983006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26983007, 'pht': 3726}}" where mtr_portfolio_id = 26982995 and dashboard_run_id = 2321921 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`=26982995 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15373883, 0.05185336987197447, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26982995_18-09-2025_02_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26982996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26982997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26982998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26982999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26983000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26983001, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26983002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26983003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26983004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26983005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26983006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26983007, '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 = 26983682 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': 3739282, 'mtr_portfolio_id': 26983682, 'created_at': datetime.datetime(2025, 9, 18, 3, 3, 1), 'result': '0.03896101694352735', 'result_long': None, 'result_double': None}] Qualite : 0.03896101694352735 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26983682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26983682_18-09-2025_03_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26983682 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_P26983682_18-09-2025_03_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26983689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26983690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26983691, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26983692, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26983693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26983694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26983695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26983696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26983697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26983698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26983699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26983700, 'pht': 3726}}" where mtr_portfolio_id = 26983682 and dashboard_run_id = 2321921 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`=26983682 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15373884, 0.03896101694352735, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26983682_18-09-2025_03_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26983689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26983690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26983691, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26983692, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26983693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26983694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26983695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26983696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26983697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26983698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26983699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26983700, '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 = 26984191 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': 3739348, 'mtr_portfolio_id': 26984191, 'created_at': datetime.datetime(2025, 9, 18, 3, 20, 30), 'result': '0.06120106006489961', 'result_long': None, 'result_double': None}] Qualite : 0.06120106006489961 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26984191 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26984191_18-09-2025_03_20_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26984191 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_P26984191_18-09-2025_03_20_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26984244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26984246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26984247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26984248, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26984249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26984250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26984251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26984252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26984253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26984254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26984255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26984256, 'pht': 3726}}" where mtr_portfolio_id = 26984191 and dashboard_run_id = 2321921 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`=26984191 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15373885, 0.06120106006489961, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26984191_18-09-2025_03_20_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26984244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26984246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26984247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26984248, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26984249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26984250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26984251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26984252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26984253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26984254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26984255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26984256, '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 = 26985006 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': 3739433, 'mtr_portfolio_id': 26985006, 'created_at': datetime.datetime(2025, 9, 18, 3, 32, 58), 'result': '0.06767457526290616', 'result_long': None, 'result_double': None}] Qualite : 0.06767457526290616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26985006 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26985006_18-09-2025_03_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26985006 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_P26985006_18-09-2025_03_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26985035, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26985036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26985037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26985038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26985039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26985040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26985041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26985042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26985043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26985044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26985045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26985046, 'pht': 3726}}" where mtr_portfolio_id = 26985006 and dashboard_run_id = 2321921 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`=26985006 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15373886, 0.06767457526290616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26985006_18-09-2025_03_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26985035, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26985036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26985037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26985038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26985039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26985040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26985041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26985042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26985043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26985044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26985045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26985046, '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 = 26985588 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': 3739520, 'mtr_portfolio_id': 26985588, 'created_at': datetime.datetime(2025, 9, 18, 3, 51), 'result': '0.05015479714987203', 'result_long': None, 'result_double': None}] Qualite : 0.05015479714987203 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26985588 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26985588_18-09-2025_03_51_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26985588 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_P26985588_18-09-2025_03_51_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26985614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26985615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26985616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26985617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26985618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26985619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26985620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26985621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26985622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26985623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26985624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26985625, 'pht': 3726}}" where mtr_portfolio_id = 26985588 and dashboard_run_id = 2321921 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`=26985588 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15373887, 0.05015479714987203, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26985588_18-09-2025_03_51_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26985614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26985615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26985616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26985617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26985618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26985619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26985620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26985621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26985622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26985623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26985624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26985625, '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 = 26986375 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': 3739583, 'mtr_portfolio_id': 26986375, 'created_at': datetime.datetime(2025, 9, 18, 4, 8, 59), 'result': '0.039607130497364695', 'result_long': None, 'result_double': None}] Qualite : 0.039607130497364695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26986375 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26986375_18-09-2025_04_08_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26986375 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_P26986375_18-09-2025_04_08_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26986390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26986391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26986392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26986393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26986394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26986395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26986396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26986397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26986398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26986399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26986400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26986401, 'pht': 3726}}" where mtr_portfolio_id = 26986375 and dashboard_run_id = 2321921 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`=26986375 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15373888, 0.039607130497364695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26986375_18-09-2025_04_08_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26986390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26986391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26986392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26986393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26986394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26986395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26986396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26986397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26986398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26986399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26986400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26986401, '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 = 27003318 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': 3741566, 'mtr_portfolio_id': 27003318, 'created_at': datetime.datetime(2025, 9, 18, 18, 27, 31), 'result': '0.045449704121076975', 'result_long': None, 'result_double': None}] Qualite : 0.045449704121076975 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27003318 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27003318_18-09-2025_18_27_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27003318 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_P27003318_18-09-2025_18_27_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27003319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27003320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27003321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27003322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27003323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27003324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27003325, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27003326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27003327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27003328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27003329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27003330, 'pht': 3726}}" where mtr_portfolio_id = 27003318 and dashboard_run_id = 2321921 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`=27003318 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15373889, 0.045449704121076975, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27003318_18-09-2025_18_27_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27003319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27003320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27003321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27003322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27003323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27003324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27003325, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27003326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27003327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27003328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27003329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27003330, '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 = 27003520 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27003520 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27003520 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27003520 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27003520 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27003520 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27003520_18-09-2025_18_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27003520 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_P27003520_18-09-2025_18_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27003531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27003533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27003534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27003535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27003537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27003538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27003539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27003540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27003542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27003543, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27003544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27003546, 'pht': 3726}}" where mtr_portfolio_id = 27003520 and dashboard_run_id = 2321925 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 = 27003648 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': 3741614, 'mtr_portfolio_id': 27003648, 'created_at': datetime.datetime(2025, 9, 18, 18, 49), 'result': '0.06355615524815351', 'result_long': None, 'result_double': None}] Qualite : 0.06355615524815351 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27003648 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27003648_18-09-2025_18_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27003648 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_P27003648_18-09-2025_18_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27003652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27003653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27003654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27003655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27003656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27003657, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27003658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27003659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27003660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27003661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27003662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27003663, 'pht': 3726}}" where mtr_portfolio_id = 27003648 and dashboard_run_id = 2321925 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`=27003648 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15373891, 0.06355615524815351, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27003648_18-09-2025_18_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27003652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27003653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27003654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27003655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27003656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27003657, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27003658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27003659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27003660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27003661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27003662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27003663, '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 = 27004172 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': 3741682, 'mtr_portfolio_id': 27004172, 'created_at': datetime.datetime(2025, 9, 18, 19, 2, 57), 'result': '0.03288423224177933', 'result_long': None, 'result_double': None}] Qualite : 0.03288423224177933 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27004172 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27004172_18-09-2025_19_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27004172 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_P27004172_18-09-2025_19_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27004198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27004199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27004200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27004201, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27004202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27004203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27004204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27004205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27004206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27004207, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27004208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27004209, 'pht': 3726}}" where mtr_portfolio_id = 27004172 and dashboard_run_id = 2321925 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`=27004172 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15373892, 0.03288423224177933, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27004172_18-09-2025_19_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27004198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27004199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27004200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27004201, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27004202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27004203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27004204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27004205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27004206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27004207, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27004208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27004209, '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 = 27004790 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': 3741781, 'mtr_portfolio_id': 27004790, 'created_at': datetime.datetime(2025, 9, 18, 19, 16, 58), 'result': '0.04102758372096515', 'result_long': None, 'result_double': None}] Qualite : 0.04102758372096515 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27004790 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27004790_18-09-2025_19_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27004790 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_P27004790_18-09-2025_19_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27004833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27004834, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27004835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27004836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27004837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27004838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27004839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27004840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27004841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27004842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27004843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27004844, 'pht': 3726}}" where mtr_portfolio_id = 27004790 and dashboard_run_id = 2321925 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`=27004790 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15373893, 0.04102758372096515, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27004790_18-09-2025_19_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27004833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27004834, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27004835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27004836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27004837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27004838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27004839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27004840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27004841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27004842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27004843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27004844, '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 (26978193,26978870,26979560,26982588,26982995,26983682,26984191,26985006,26985588,26986375,27003318,27003520,27003648,27004172,27004790) result : ((1384532804,), (1384532860,), (1384532981,), (1384533078,), (1384533485,), (1384533555,), (1384533644,), (1384533699,), (1384534235,), (1384534641,), (1384534700,), (1384534747,), (1384534806,), (1384534909,), (1384535182,), (1384535237,), (1384535252,), (1384535296,), (1384535323,), (1384535456,), (1384535497,), (1384535537,), (1384535568,), (1384535597,), (1384536085,), (1384536282,), (1384536394,), (1384537022,), (1384537055,), (1384537082,), (1384537098,), (1384537355,), (1384537395,), (1384537445,), (1384537691,), (1384537722,), (1384537729,), (1384537761,), (1384538029,), (1384538057,), (1384538086,), (1384538121,), (1384538156,), (1384538205,), (1384538742,), (1384538788,), (1384538834,), (1384538889,), (1384538940,), (1384539393,), (1384539416,), (1384539437,), (1384539661,), (1384540805,), (1384540838,), (1384540863,), (1384540902,), (1384540921,), (1384540924,), (1384541081,), (1384540977,), (1384540978,), (1384540979,), (1384540998,), (1384541015,), (1384541367,), (1384541368,), (1384541376,), (1384541687,), (1384541714,), (1384541739,), (1384541762,), (1384541791,), (1384542079,), (1384542167,), (1384542225,), (1384542299,), (1384542368,), (1384542967,), (1384543028,), (1384543096,), (1384543155,), (1384543728,), (1384543797,), (1384543867,), (1384543914,), (1384544441,), (1384544512,), (1384544574,), (1384544638,), (1384544699,), (1384545056,), (1384545178,), (1384545224,), (1384545305,), (1384546405,), (1384546495,), (1384546565,), (1384546672,), (1384546759,), (1384547350,), (1384547415,), (1384548210,), (1384548285,), (1384548356,), (1384548422,), (1384548479,), (1384548716,), (1384548743,), (1384548771,), (1384549007,), (1384549034,), (1384549058,), (1384549082,), (1384549107,), (1384549273,), (1384549461,), (1384549492,), (1384549531,), (1384549628,), (1384550483,), (1384550507,), (1384550531,), (1384550616,), (1384550642,), (1384551315,), (1384551458,), (1384551535,), (1384550404,), (1384550430,), (1384550456,), (1384551238,), (1384551242,), (1384551244,), (1384551255,), (1384551284,), (1384551369,), (1384551370,), (1384551379,), (1384551380,), (1384551409,), (1384551432,), (1384551449,), (1384551491,), (1384551637,), (1384551663,), (1384551690,), (1384551722,), (1384551751,), (1384551978,), (1384552024,), (1384552058,), (1384552082,), (1384552367,), (1384552390,), (1384552413,), (1384553118,), (1384553209,), (1384554394,), (1384554428,), (1384554468,), (1384554499,), (1384554913,), (1384554914,), (1384554916,), (1384554919,), (1384554922,), (1384554936,), (1384555036,), (1384555060,), (1384555097,), (1384555107,), (1384555129,), (1384555163,), (1384614089,), (1384614057,), (1384616005,), (1384616455,), (1384616481,), (1384616666,), (1384616672,), (1384616699,), (1384616736,), (1384616930,), (1384616954,), (1384616983,), (1384617009,), (1384617034,), (1384617280,), (1384617305,), (1384617329,), (1384617353,), (1384617370,), (1384617372,), (1384617379,), (1384617902,), (1384617955,), (1384617991,), (1384618021,), (1384618352,), (1384618377,), (1384618404,), (1384618430,), (1384618485,), (1384618517,), (1384618765,), (1384618794,), (1384618819,), (1384618844,), (1384618875,), (1384618903,), (1384619255,), (1384619142,), (1384619199,), (1384619224,), (1384619714,), (1384619769,), (1384619849,), (1384619901,), (1384619956,), (1384620337,), (1384620406,), (1384620475,), (1384620542,), (1384620618,), (1384620666,), (1384620865,), (1384620866,), (1384620882,), (1384620981,), (1384621085,), (1384621265,), (1384621773,), (1384621885,), (1384621999,), (1384622120,), (1384622465,), (1384622581,), (1384622665,), (1384623014,), (1384623038,), (1384623061,), (1384623065,), (1384623069,), (1384623071,), (1384623249,), (1384623507,), (1384623701,), (1384623892,), (1384624009,), (1384624109,), (1384624769,), (1384624819,), (1384624846,), (1384625335,), (1384625384,), (1384625414,), (1384625436,), (1384625437,), (1384625438,), (1384625440,), (1384625443,), (1384625454,), (1384625457,), (1384625461,), (1384625466,), (1384625495,), (1384625497,), (1384625498,), (1384625514,), (1384625809,), (1384625838,), (1384625866,), (1384626203,), (1384626237,), (1384626266,), (1384627118,), (1384627204,), (1384627325,), (1384627338,), (1384627341,), (1384627491,), (1384627361,), (1384627362,), (1384627363,), (1384627364,), (1384627395,), (1384627930,), (1384627957,), (1384627983,), (1384628340,), (1384628412,), (1384628650,), (1384628839,), (1384628908,), (1384629091,), (1384629115,), (1384629160,), (1384629187,), (1384629716,), (1384629741,), (1384629764,), (1384629787,), (1384629812,), (1384630174,), (1384630176,), (1384630273,), (1384630299,), (1384630325,), (1384630350,), (1384630402,), (1384630438,), (1384630650,), (1384630680,), (1384630702,), (1384630705,), (1384630711,), (1384630853,), (1384630966,), (1384631027,), (1384631102,), (1384631346,), (1384631347,), (1384631366,), (1384631435,), (1384631436,), (1384631437,), (1384631439,), (1384631442,), (1384631445,), (1384631453,), (1384631454,), (1384631455,), (1384631457,), (1384631477,), (1384631478,), (1384631493,), (1384631983,), (1384631989,), (1384631993,), (1384631996,), (1384632045,), (1384632073,), (1384632102,), (1384632233,), (1384632211,), (1384632231,), (1384632256,), (1384632258,), (1384632260,), (1384632277,), (1384632303,), (1384632499,), (1384632525,), (1384632570,), (1384632608,), (1384632635,), (1384632664,), (1384632869,), (1384632895,), (1384632927,), (1384632951,), (1384633285,), (1384633341,), (1384633396,), (1384633428,), (1384633457,), (1384633485,), (1384633874,), (1384633918,), (1384633973,), (1384634026,), (1384634167,), (1384634299,), (1384635659,), (1384635767,), (1384635892,), (1384636898,), (1384637019,), (1384637137,), (1384637261,), (1384637349,), (1384637628,), (1384637682,), (1384637850,), (1384638059,), (1384639347,), (1384639350,), (1384639360,), (1384639379,), (1384639814,), (1384639815,), (1384639816,), (1384639834,), (1384639849,), (1384639853,), (1384639868,), (1384639871,), (1384639874,), (1384639899,), (1384639903,), (1384639905,), (1384639928,), (1384639932,), (1384639934,), (1384639938,), (1384639941,), (1384640121,), (1384639980,), (1384640008,), (1384640057,), (1384640088,), (1384640320,), (1384640346,), (1384640372,), (1384640644,), (1384640699,), (1384640733,), (1384640769,), (1384640799,), (1384640969,), (1384640995,), (1384641018,), (1384641019,), (1384641023,), (1384641026,), (1384641046,), (1384641047,), (1384641052,), (1384641055,), (1384641071,), (1384641294,), (1384641318,), (1384641342,), (1384641348,), (1384641352,), (1384641440,), (1384641441,), (1384641442,), (1384641443,), (1384641445,), (1384641589,), (1384641653,), (1384641681,), (1384641709,), (1384641739,), (1384641773,), (1384641960,), (1384641987,), (1384642010,), (1384642120,), (1384642221,), (1384642416,), (1384642499,), (1384642571,), (1384642662,), (1384643167,), (1384643235,), (1384643309,), (1384643377,), (1384643451,), (1384643520,), (1384643752,), (1384643826,), (1384643900,), (1384643973,), (1384644050,), (1384644151,), (1384644495,), (1384644572,), (1384644666,), (1384644675,), (1384644676,), (1384644682,), (1384644686,), (1384644706,), (1384645390,), (1384645442,), (1384645514,), (1384645661,), (1384645729,), (1384646005,), (1384646039,), (1384646066,), (1384646071,), (1384646075,), (1384646228,), (1384646090,), (1384646102,), (1384646128,), (1384646179,), (1384646633,), (1384646674,), (1384646892,), (1384646915,), (1384646937,), (1384646945,), (1384646949,), (1384646966,), (1384646971,), (1384648311,), (1384648401,), (1384648500,), (1384649184,), (1384649244,), (1384649652,), (1384649693,), (1384649722,), (1384649872,), (1384649921,), (1384649974,), (1384650024,), (1384650442,), (1384650476,), (1384650539,), (1384650580,), (1384650841,), (1384650887,), (1384650918,), (1384650955,), (1384651079,), (1384651080,), (1384651082,), (1384651084,), (1384651197,), (1384651357,), (1384651448,), (1384652319,), (1384652340,), (1384652343,), (1384652345,), (1384652348,), (1384652372,), (1384652363,), (1384652364,), (1384652365,), (1384652367,), (1384652382,), (1384652383,), (1384652388,), (1384652453,), (1384653068,), (1384653177,), (1384653323,), (1384654367,), (1384654394,), (1384654403,), (1384654405,), (1384654409,), (1384654695,), (1384654763,), (1384655736,), (1384656232,), (1384656286,), (1384656396,), (1384656515,), (1384664488,), (1384907825,), (1384907852,), (1384907891,), (1384907918,), (1384908204,), (1384908232,), (1384908258,), (1384908348,), (1384908350,), (1384909050,), (1384909023,), (1384909060,), (1384909083,), (1384909094,), (1384909103,), (1384909130,), (1384909126,), (1384909147,), (1384909150,), (1384909153,), (1384909157,), (1384909160,), (1384909170,), (1384909173,), (1384909175,), (1384909176,), (1384909205,), (1384909215,), (1384909236,), (1384909239,), (1384909241,), (1384909243,), (1384909257,), (1384909258,), (1384909259,), (1384909261,), (1384909264,), (1384909288,), (1384909532,), (1384909567,), (1384909591,), (1384909622,), (1384909648,), (1384909906,), (1384909930,), (1384909955,), (1384910003,), (1384910005,), (1384910006,), (1384910009,), (1384910012,), (1384910013,), (1384910044,), (1384910045,), (1384910046,), (1384910048,), (1384910052,), (1384910054,), (1384910147,), (1384910255,), (1384910286,), (1384910313,), (1384910570,), (1384910640,), (1384910666,), (1384910670,), (1384910801,), (1384910803,), (1384910804,), (1384910808,), (1384910811,), (1384910813,), (1384910972,), (1384910997,), (1384911024,), (1384911050,), (1384911080,), (1384911082,), (1384911085,), (1384911088,), (1384911280,), (1384911175,), (1384911203,), (1384911228,), (1384911253,), (1384911487,), (1384911493,), (1384911495,), (1384911498,), (1384911499,), (1384911500,), (1384911603,), (1384911608,), (1384911617,), (1384911667,), (1384911669,), (1384911670,), (1384911671,), (1384911675,), (1384911690,), (1384911692,), (1384911694,), (1384911697,), (1384911701,), (1384911707,), (1384911709,), (1384911711,), (1384911712,), (1384911714,), (1384911744,), (1384911745,), (1384911747,), (1384911853,), (1384911871,), (1384911873,), (1384911876,), (1384911880,), (1384911883,), (1384911894,), (1384911896,), (1384911897,), (1384911898,), (1384911901,), (1384911904,), (1384911919,), (1384911920,), (1384911922,), (1384911925,), (1384911928,), (1384911931,), (1384911935,), (1384911936,), (1384911937,), (1384911940,), (1384911942,), (1384911947,), (1384911949,), (1384911953,), (1384911955,), (1384911957,), (1384911972,), (1384911976,), (1384911977,), (1384911979,), (1384911982,), (1384911985,), (1384912006,), (1384912009,), (1384912012,), (1384912015,), (1384912017,), (1384912387,), (1384912441,), (1384912491,), (1384912548,), (1384912592,), (1384912621,), (1384912622,), (1384912626,), (1384912627,), (1384912636,), (1384912639,), (1384912643,), (1384912644,), (1384912646,), (1384912648,), (1384912826,), (1384912772,), (1384912777,), (1384912778,), (1384912783,), (1384912806,), (1384912849,), (1384912852,), (1384912859,), (1384912860,), (1384912876,), (1384912961,), (1384912962,), (1384912963,), (1384912981,), (1384913005,), (1384913031,), (1384913292,), (1384914580,), (1384915351,), (1384915399,), (1384915454,), (1384915504,), (1384915874,), (1384915900,), (1384915925,), (1384915937,), (1384915939,), (1384915948,), (1384916267,), (1384916296,), (1384916312,), (1384916320,), (1384916532,), (1384916535,), (1384916547,), (1384916576,), (1384916750,), (1384916766,), (1384916795,), (1384916800,), (1384916802,), (1384916804,), (1384916863,), (1384916864,), (1384916865,), (1384916867,), (1384916880,), (1384916886,), (1384916909,), (1384916934,), (1384916963,), (1384916992,), (1384917101,), (1384917103,), (1384917105,), (1384917107,), (1384917109,), (1384917110,), (1384917175,), (1384917176,), (1384917177,), (1384917183,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18092025': {'nb_upload': 62, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27004790]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1384917183, 1384917177, 1384917176, 1384917175, 1384917110, 1384917109, 1384917107, 1384917105, 1384917103, 1384917101, 1384916992, 1384916963, 1384916934, 1384916909, 1384916886, 1384916880] map_info['map_portfolio_photo'] : {27004790: [1384917183, 1384917177, 1384917176, 1384917175, 1384917110, 1384917109, 1384917107, 1384917105, 1384917103, 1384917101, 1384916992, 1384916963, 1384916934, 1384916909, 1384916886, 1384916880, 1384916867, 1384916865, 1384916864, 1384916863, 1384916804, 1384916802, 1384916800, 1384916795, 1384916766, 1384916750, 1384916576, 1384916547, 1384916535, 1384916532, 1384916320, 1384916312, 1384916296, 1384916267, 1384915948, 1384915939, 1384915937, 1384915925, 1384915900, 1384915874, 1384915504, 1384915454, 1384915399, 1384915351, 1384914580, 1384913292, 1384913031, 1384913005, 1384912981, 1384912963, 1384912962, 1384912961, 1384912876, 1384912860, 1384912859, 1384912852, 1384912849, 1384912806, 1384912783, 1384912778, 1384912777, 1384912772]} final : True mtd_id 4302 list_pids : [1384917183, 1384917177, 1384917176, 1384917175, 1384917110, 1384917109, 1384917107, 1384917105, 1384917103, 1384917101, 1384916992, 1384916963, 1384916934, 1384916909, 1384916886, 1384916880] Looping around the photos to save general results len do output : 1 /27004790Didn'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, '3741781') ('4302', '27004790', '1384917183', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917177', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917176', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917175', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917110', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917109', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917107', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917105', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917103', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384917101', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916992', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916963', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916934', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916909', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916886', None, None, None, None, None, '3741781') ('4302', None, None, None, None, None, None, None, '3741781') ('4302', '27004790', '1384916880', None, None, None, None, None, '3741781') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '27004790', 'None', None, None, None, None, '3741781'), ('4302', '27004790', '1384917183', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917177', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917176', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917175', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917110', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917109', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917107', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917105', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917103', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384917101', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384916992', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384916963', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384916934', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384916909', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384916886', None, None, None, None, None, '3741781'), ('4302', '27004790', '1384916880', None, None, None, None, None, '3741781')] time used for this insertion : 0.01401519775390625 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1677846908569336 time spend to save output : 0.014229774475097656 total time spend for step 5 : 1.1820144653320312 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 (3741781) 2.46user 2.47system 0:10.02elapsed 49%CPU (0avgtext+0avgdata 161696maxresident)k 1872inputs+14152outputs (19major+75700minor)pagefaults 0swaps