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 : 2179092 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 (2919816) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2919816) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23201666 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2919816'] with mtr_portfolio_ids : ['23201666'] and first list_photo_ids : [] new path : /proc/2179092/ Name: python3 Umask: 0002 State: R (running) Tgid: 2179092 Ngid: 0 Pid: 2179092 PPid: 2179091 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2179092 NSpid: 2179092 NSpgid: 2173442 NSsid: 2173442 VmPeak: 1107324 kB VmSize: 1107324 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97888 kB VmRSS: 97888 kB RssAnon: 60216 kB RssFile: 37672 kB RssShmem: 0 kB VmData: 866072 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 628 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 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: 53 nonvoluntary_ctxt_switches: 162 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2179092', 'Ngid': '0', 'Pid': '2179092', 'PPid': '2179091', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2179092', 'NSpid': '2179092', 'NSpgid': '2173442', 'NSsid': '2173442', 'VmPeak': '1107324 kB', 'VmSize': '1107324 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97888 kB', 'VmRSS': '97888 kB', 'RssAnon': '60216 kB', 'RssFile': '37672 kB', 'RssShmem': '0 kB', 'VmData': '866072 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '628 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', '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': '53', 'nonvoluntary_ctxt_switches': '162'} ('datou_batch_current', '2179092', '1107324', '0', '1107324', '866072', '97888', b'', 'marlene', '2919816') 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 (23201666) 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 (2919816 ) ) 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 (23201666) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1359991970, 'portfolio_id': 23201666}, {'photo_id': 1359991966, 'portfolio_id': 23201666}, {'photo_id': 1359991960, 'portfolio_id': 23201666}, {'photo_id': 1359991926, 'portfolio_id': 23201666}, {'photo_id': 1359991887, 'portfolio_id': 23201666}, {'photo_id': 1359991731, 'portfolio_id': 23201666}, {'photo_id': 1359991705, 'portfolio_id': 23201666}, {'photo_id': 1359991677, 'portfolio_id': 23201666}, {'photo_id': 1359991674, 'portfolio_id': 23201666}, {'photo_id': 1359991582, 'portfolio_id': 23201666}, {'photo_id': 1359991559, 'portfolio_id': 23201666}, {'photo_id': 1359991533, 'portfolio_id': 23201666}, {'photo_id': 1359991514, 'portfolio_id': 23201666}, {'photo_id': 1359991502, 'portfolio_id': 23201666}, {'photo_id': 1359991494, 'portfolio_id': 23201666}, {'photo_id': 1359991316, 'portfolio_id': 23201666}, {'photo_id': 1359991295, 'portfolio_id': 23201666}, {'photo_id': 1359991288, 'portfolio_id': 23201666}, {'photo_id': 1359991274, 'portfolio_id': 23201666}, {'photo_id': 1359991257, 'portfolio_id': 23201666}, {'photo_id': 1359991214, 'portfolio_id': 23201666}, {'photo_id': 1359990986, 'portfolio_id': 23201666}, {'photo_id': 1359990962, 'portfolio_id': 23201666}, {'photo_id': 1359990925, 'portfolio_id': 23201666}, {'photo_id': 1359990322, 'portfolio_id': 23201666}, {'photo_id': 1359990296, 'portfolio_id': 23201666}, {'photo_id': 1359990271, 'portfolio_id': 23201666}, {'photo_id': 1359990244, 'portfolio_id': 23201666}, {'photo_id': 1359990214, 'portfolio_id': 23201666}, {'photo_id': 1359990182, 'portfolio_id': 23201666}, {'photo_id': 1359990088, 'portfolio_id': 23201666}, {'photo_id': 1359990086, 'portfolio_id': 23201666}, {'photo_id': 1359990081, 'portfolio_id': 23201666}, {'photo_id': 1359990076, 'portfolio_id': 23201666}, {'photo_id': 1359990072, 'portfolio_id': 23201666}, {'photo_id': 1359990037, 'portfolio_id': 23201666}, {'photo_id': 1359990032, 'portfolio_id': 23201666}, {'photo_id': 1359990028, 'portfolio_id': 23201666}, {'photo_id': 1359990011, 'portfolio_id': 23201666}, {'photo_id': 1359990006, 'portfolio_id': 23201666}, {'photo_id': 1359990002, 'portfolio_id': 23201666}, {'photo_id': 1359989997, 'portfolio_id': 23201666}, {'photo_id': 1359989994, 'portfolio_id': 23201666}, {'photo_id': 1359989876, 'portfolio_id': 23201666}, {'photo_id': 1359989850, 'portfolio_id': 23201666}, {'photo_id': 1359989819, 'portfolio_id': 23201666}, {'photo_id': 1359989811, 'portfolio_id': 23201666}, {'photo_id': 1359989806, 'portfolio_id': 23201666}, {'photo_id': 1359989457, 'portfolio_id': 23201666}, {'photo_id': 1359989425, 'portfolio_id': 23201666}, {'photo_id': 1359989390, 'portfolio_id': 23201666}, {'photo_id': 1359989336, 'portfolio_id': 23201666}, {'photo_id': 1359989297, 'portfolio_id': 23201666}, {'photo_id': 1359988940, 'portfolio_id': 23201666}, {'photo_id': 1359988915, 'portfolio_id': 23201666}, {'photo_id': 1359988898, 'portfolio_id': 23201666}, {'photo_id': 1359988893, 'portfolio_id': 23201666}, {'photo_id': 1359988888, 'portfolio_id': 23201666}, {'photo_id': 1359988882, 'portfolio_id': 23201666}, {'photo_id': 1359988832, 'portfolio_id': 23201666}, {'photo_id': 1359988827, 'portfolio_id': 23201666}, {'photo_id': 1359988823, 'portfolio_id': 23201666}, {'photo_id': 1359988819, 'portfolio_id': 23201666}, {'photo_id': 1359988816, 'portfolio_id': 23201666}, {'photo_id': 1359988784, 'portfolio_id': 23201666}, {'photo_id': 1359988780, 'portfolio_id': 23201666}, {'photo_id': 1359988776, 'portfolio_id': 23201666}, {'photo_id': 1359988745, 'portfolio_id': 23201666}, {'photo_id': 1359988740, 'portfolio_id': 23201666}] map_portfolio_id_photo_id: {23201666: [1359991970, 1359991966, 1359991960, 1359991926, 1359991887, 1359991731, 1359991705, 1359991677, 1359991674, 1359991582, 1359991559, 1359991533, 1359991514, 1359991502, 1359991494, 1359991316, 1359991295, 1359991288, 1359991274, 1359991257, 1359991214, 1359990986, 1359990962, 1359990925, 1359990322, 1359990296, 1359990271, 1359990244, 1359990214, 1359990182, 1359990088, 1359990086, 1359990081, 1359990076, 1359990072, 1359990037, 1359990032, 1359990028, 1359990011, 1359990006, 1359990002, 1359989997, 1359989994, 1359989876, 1359989850, 1359989819, 1359989811, 1359989806, 1359989457, 1359989425, 1359989390, 1359989336, 1359989297, 1359988940, 1359988915, 1359988898, 1359988893, 1359988888, 1359988882, 1359988832, 1359988827, 1359988823, 1359988819, 1359988816, 1359988784, 1359988780, 1359988776, 1359988745, 1359988740]} ##### 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.017220258712768555 #### 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 Wed May 21 10:30:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23201666) 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 : 23201666 get user id for portfolio 23201666 get sub ptf for main ptf 23201666, type 3726 and hashtags ['environnement', 'mal_croppe', 'kraft', 'Teint_Dans_La_Masse', 'Carton_brun', 'Carton_gris', 'plastique', 'papier', 'cartonnette', 'flou', 'metal', '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`=23201666 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','kraft','Teint_Dans_La_Masse','Carton_brun','Carton_gris','plastique','papier','cartonnette','flou','metal','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`=23201666 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','kraft','Teint_Dans_La_Masse','Carton_brun','Carton_gris','plastique','papier','cartonnette','flou','metal','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 23201666, 'sub_port_id': 23201696, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476481, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 42)}, 'autre_refus': {'main_port_id': 23201666, 'sub_port_id': 23201697, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476482, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 42)}, 'Teint_Dans_La_Masse': {'main_port_id': 23201666, 'sub_port_id': 23201698, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476483, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 42)}, 'metal': {'main_port_id': 23201666, 'sub_port_id': 23201699, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476484, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 42)}, 'environnement': {'main_port_id': 23201666, 'sub_port_id': 23201700, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476485, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 42)}, 'plastique': {'main_port_id': 23201666, 'sub_port_id': 23201701, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476486, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 42)}, 'mal_croppe': {'main_port_id': 23201666, 'sub_port_id': 23201702, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476487, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 42)}, 'cartonnette': {'main_port_id': 23201666, 'sub_port_id': 23201703, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476488, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 42)}, 'Carton_brun': {'main_port_id': 23201666, 'sub_port_id': 23201704, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476489, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 42)}, 'kraft': {'main_port_id': 23201666, 'sub_port_id': 23201705, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476490, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 42)}, 'papier': {'main_port_id': 23201666, 'sub_port_id': 23201706, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476491, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 42)}, 'flou': {'main_port_id': 23201666, 'sub_port_id': 23201707, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476492, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 27, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 42)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23201696 , 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=23201666 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 (23201696) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23201666) result : ((1359988740,), (1359988745,), (1359988776,), (1359988780,), (1359988784,), (1359988816,), (1359988819,), (1359988823,), (1359988827,), (1359988832,), (1359988882,), (1359988888,), (1359988893,), (1359988898,), (1359988915,), (1359988940,), (1359989297,), (1359989336,), (1359989390,), (1359989425,), (1359989457,), (1359989806,), (1359989811,), (1359989819,), (1359989850,), (1359989876,), (1359989994,), (1359989997,), (1359990002,), (1359990006,), (1359990011,), (1359990028,), (1359990032,), (1359990037,), (1359990072,), (1359990076,), (1359990081,), (1359990086,), (1359990088,), (1359990182,), (1359990214,), (1359990244,), (1359990271,), (1359990296,), (1359990322,), (1359990925,), (1359990962,), (1359990986,), (1359991214,), (1359991257,), (1359991274,), (1359991288,), (1359991295,), (1359991316,), (1359991494,), (1359991502,), (1359991514,), (1359991533,), (1359991559,), (1359991582,), (1359991674,), (1359991677,), (1359991705,), (1359991731,), (1359991887,), (1359991926,), (1359991960,), (1359991966,), (1359991970,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23201697 , 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=23201666 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 (23201697) result : ((1359991416,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23201666) result : ((1359988740,), (1359988745,), (1359988776,), (1359988780,), (1359988784,), (1359988816,), (1359988819,), (1359988823,), (1359988827,), (1359988832,), (1359988882,), (1359988888,), (1359988893,), (1359988898,), (1359988915,), (1359988940,), (1359989297,), (1359989336,), (1359989390,), (1359989425,), (1359989457,), (1359989806,), (1359989811,), (1359989819,), (1359989850,), (1359989876,), (1359989994,), (1359989997,), (1359990002,), (1359990006,), (1359990011,), (1359990028,), (1359990032,), (1359990037,), (1359990072,), (1359990076,), (1359990081,), (1359990086,), (1359990088,), (1359990182,), (1359990214,), (1359990244,), (1359990271,), (1359990296,), (1359990322,), (1359990925,), (1359990962,), (1359990986,), (1359991214,), (1359991257,), (1359991274,), (1359991288,), (1359991295,), (1359991316,), (1359991494,), (1359991502,), (1359991514,), (1359991533,), (1359991559,), (1359991582,), (1359991674,), (1359991677,), (1359991705,), (1359991731,), (1359991887,), (1359991926,), (1359991960,), (1359991966,), (1359991970,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23201698 , 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=23201666 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 (23201698) result : ((1359989369,), (1359991414,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23201666) result : ((1359988740,), (1359988745,), (1359988776,), (1359988780,), (1359988784,), (1359988816,), (1359988819,), (1359988823,), (1359988827,), (1359988832,), (1359988882,), (1359988888,), (1359988893,), (1359988898,), (1359988915,), (1359988940,), (1359989297,), (1359989336,), (1359989390,), (1359989425,), (1359989457,), (1359989806,), (1359989811,), (1359989819,), (1359989850,), (1359989876,), (1359989994,), (1359989997,), (1359990002,), (1359990006,), (1359990011,), (1359990028,), (1359990032,), (1359990037,), (1359990072,), (1359990076,), (1359990081,), (1359990086,), (1359990088,), (1359990182,), (1359990214,), (1359990244,), (1359990271,), (1359990296,), (1359990322,), (1359990925,), (1359990962,), (1359990986,), (1359991214,), (1359991257,), (1359991274,), (1359991288,), (1359991295,), (1359991316,), (1359991494,), (1359991502,), (1359991514,), (1359991533,), (1359991559,), (1359991582,), (1359991674,), (1359991677,), (1359991705,), (1359991731,), (1359991887,), (1359991926,), (1359991960,), (1359991966,), (1359991970,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23201699 , 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=23201666 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 (23201699) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23201666) result : ((1359988740,), (1359988745,), (1359988776,), (1359988780,), (1359988784,), (1359988816,), (1359988819,), (1359988823,), (1359988827,), (1359988832,), (1359988882,), (1359988888,), (1359988893,), (1359988898,), (1359988915,), (1359988940,), (1359989297,), (1359989336,), (1359989390,), (1359989425,), (1359989457,), (1359989806,), (1359989811,), (1359989819,), (1359989850,), (1359989876,), (1359989994,), (1359989997,), (1359990002,), (1359990006,), (1359990011,), (1359990028,), (1359990032,), (1359990037,), (1359990072,), (1359990076,), (1359990081,), (1359990086,), (1359990088,), (1359990182,), (1359990214,), (1359990244,), (1359990271,), (1359990296,), (1359990322,), (1359990925,), (1359990962,), (1359990986,), (1359991214,), (1359991257,), (1359991274,), (1359991288,), (1359991295,), (1359991316,), (1359991494,), (1359991502,), (1359991514,), (1359991533,), (1359991559,), (1359991582,), (1359991674,), (1359991677,), (1359991705,), (1359991731,), (1359991887,), (1359991926,), (1359991960,), (1359991966,), (1359991970,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23201700 , 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=23201666 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 (23201700) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23201666) result : ((1359988740,), (1359988745,), (1359988776,), (1359988780,), (1359988784,), (1359988816,), (1359988819,), (1359988823,), (1359988827,), (1359988832,), (1359988882,), (1359988888,), (1359988893,), (1359988898,), (1359988915,), (1359988940,), (1359989297,), (1359989336,), (1359989390,), (1359989425,), (1359989457,), (1359989806,), (1359989811,), (1359989819,), (1359989850,), (1359989876,), (1359989994,), (1359989997,), (1359990002,), (1359990006,), (1359990011,), (1359990028,), (1359990032,), (1359990037,), (1359990072,), (1359990076,), (1359990081,), (1359990086,), (1359990088,), (1359990182,), (1359990214,), (1359990244,), (1359990271,), (1359990296,), (1359990322,), (1359990925,), (1359990962,), (1359990986,), (1359991214,), (1359991257,), (1359991274,), (1359991288,), (1359991295,), (1359991316,), (1359991494,), (1359991502,), (1359991514,), (1359991533,), (1359991559,), (1359991582,), (1359991674,), (1359991677,), (1359991705,), (1359991731,), (1359991887,), (1359991926,), (1359991960,), (1359991966,), (1359991970,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23201701 , 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=23201666 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 (23201701) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23201666) result : ((1359988740,), (1359988745,), (1359988776,), (1359988780,), (1359988784,), (1359988816,), (1359988819,), (1359988823,), (1359988827,), (1359988832,), (1359988882,), (1359988888,), (1359988893,), (1359988898,), (1359988915,), (1359988940,), (1359989297,), (1359989336,), (1359989390,), (1359989425,), (1359989457,), (1359989806,), (1359989811,), (1359989819,), (1359989850,), (1359989876,), (1359989994,), (1359989997,), (1359990002,), (1359990006,), (1359990011,), (1359990028,), (1359990032,), (1359990037,), (1359990072,), (1359990076,), (1359990081,), (1359990086,), (1359990088,), (1359990182,), (1359990214,), (1359990244,), (1359990271,), (1359990296,), (1359990322,), (1359990925,), (1359990962,), (1359990986,), (1359991214,), (1359991257,), (1359991274,), (1359991288,), (1359991295,), (1359991316,), (1359991494,), (1359991502,), (1359991514,), (1359991533,), (1359991559,), (1359991582,), (1359991674,), (1359991677,), (1359991705,), (1359991731,), (1359991887,), (1359991926,), (1359991960,), (1359991966,), (1359991970,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23201702 , 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=23201666 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 (23201702) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23201666) result : ((1359988740,), (1359988745,), (1359988776,), (1359988780,), (1359988784,), (1359988816,), (1359988819,), (1359988823,), (1359988827,), (1359988832,), (1359988882,), (1359988888,), (1359988893,), (1359988898,), (1359988915,), (1359988940,), (1359989297,), (1359989336,), (1359989390,), (1359989425,), (1359989457,), (1359989806,), (1359989811,), (1359989819,), (1359989850,), (1359989876,), (1359989994,), (1359989997,), (1359990002,), (1359990006,), (1359990011,), (1359990028,), (1359990032,), (1359990037,), (1359990072,), (1359990076,), (1359990081,), (1359990086,), (1359990088,), (1359990182,), (1359990214,), (1359990244,), (1359990271,), (1359990296,), (1359990322,), (1359990925,), (1359990962,), (1359990986,), (1359991214,), (1359991257,), (1359991274,), (1359991288,), (1359991295,), (1359991316,), (1359991494,), (1359991502,), (1359991514,), (1359991533,), (1359991559,), (1359991582,), (1359991674,), (1359991677,), (1359991705,), (1359991731,), (1359991887,), (1359991926,), (1359991960,), (1359991966,), (1359991970,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23201703 , 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=23201666 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 (23201703) result : ((1359991417,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23201666) result : ((1359988740,), (1359988745,), (1359988776,), (1359988780,), (1359988784,), (1359988816,), (1359988819,), (1359988823,), (1359988827,), (1359988832,), (1359988882,), (1359988888,), (1359988893,), (1359988898,), (1359988915,), (1359988940,), (1359989297,), (1359989336,), (1359989390,), (1359989425,), (1359989457,), (1359989806,), (1359989811,), (1359989819,), (1359989850,), (1359989876,), (1359989994,), (1359989997,), (1359990002,), (1359990006,), (1359990011,), (1359990028,), (1359990032,), (1359990037,), (1359990072,), (1359990076,), (1359990081,), (1359990086,), (1359990088,), (1359990182,), (1359990214,), (1359990244,), (1359990271,), (1359990296,), (1359990322,), (1359990925,), (1359990962,), (1359990986,), (1359991214,), (1359991257,), (1359991274,), (1359991288,), (1359991295,), (1359991316,), (1359991494,), (1359991502,), (1359991514,), (1359991533,), (1359991559,), (1359991582,), (1359991674,), (1359991677,), (1359991705,), (1359991731,), (1359991887,), (1359991926,), (1359991960,), (1359991966,), (1359991970,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23201704 , 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=23201666 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 (23201704) result : ((1359991419,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23201666) result : ((1359988740,), (1359988745,), (1359988776,), (1359988780,), (1359988784,), (1359988816,), (1359988819,), (1359988823,), (1359988827,), (1359988832,), (1359988882,), (1359988888,), (1359988893,), (1359988898,), (1359988915,), (1359988940,), (1359989297,), (1359989336,), (1359989390,), (1359989425,), (1359989457,), (1359989806,), (1359989811,), (1359989819,), (1359989850,), (1359989876,), (1359989994,), (1359989997,), (1359990002,), (1359990006,), (1359990011,), (1359990028,), (1359990032,), (1359990037,), (1359990072,), (1359990076,), (1359990081,), (1359990086,), (1359990088,), (1359990182,), (1359990214,), (1359990244,), (1359990271,), (1359990296,), (1359990322,), (1359990925,), (1359990962,), (1359990986,), (1359991214,), (1359991257,), (1359991274,), (1359991288,), (1359991295,), (1359991316,), (1359991494,), (1359991502,), (1359991514,), (1359991533,), (1359991559,), (1359991582,), (1359991674,), (1359991677,), (1359991705,), (1359991731,), (1359991887,), (1359991926,), (1359991960,), (1359991966,), (1359991970,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23201705 , 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=23201666 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 (23201705) result : ((1359991420,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23201666) result : ((1359988740,), (1359988745,), (1359988776,), (1359988780,), (1359988784,), (1359988816,), (1359988819,), (1359988823,), (1359988827,), (1359988832,), (1359988882,), (1359988888,), (1359988893,), (1359988898,), (1359988915,), (1359988940,), (1359989297,), (1359989336,), (1359989390,), (1359989425,), (1359989457,), (1359989806,), (1359989811,), (1359989819,), (1359989850,), (1359989876,), (1359989994,), (1359989997,), (1359990002,), (1359990006,), (1359990011,), (1359990028,), (1359990032,), (1359990037,), (1359990072,), (1359990076,), (1359990081,), (1359990086,), (1359990088,), (1359990182,), (1359990214,), (1359990244,), (1359990271,), (1359990296,), (1359990322,), (1359990925,), (1359990962,), (1359990986,), (1359991214,), (1359991257,), (1359991274,), (1359991288,), (1359991295,), (1359991316,), (1359991494,), (1359991502,), (1359991514,), (1359991533,), (1359991559,), (1359991582,), (1359991674,), (1359991677,), (1359991705,), (1359991731,), (1359991887,), (1359991926,), (1359991960,), (1359991966,), (1359991970,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23201706 , 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=23201666 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 (23201706) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23201666) result : ((1359988740,), (1359988745,), (1359988776,), (1359988780,), (1359988784,), (1359988816,), (1359988819,), (1359988823,), (1359988827,), (1359988832,), (1359988882,), (1359988888,), (1359988893,), (1359988898,), (1359988915,), (1359988940,), (1359989297,), (1359989336,), (1359989390,), (1359989425,), (1359989457,), (1359989806,), (1359989811,), (1359989819,), (1359989850,), (1359989876,), (1359989994,), (1359989997,), (1359990002,), (1359990006,), (1359990011,), (1359990028,), (1359990032,), (1359990037,), (1359990072,), (1359990076,), (1359990081,), (1359990086,), (1359990088,), (1359990182,), (1359990214,), (1359990244,), (1359990271,), (1359990296,), (1359990322,), (1359990925,), (1359990962,), (1359990986,), (1359991214,), (1359991257,), (1359991274,), (1359991288,), (1359991295,), (1359991316,), (1359991494,), (1359991502,), (1359991514,), (1359991533,), (1359991559,), (1359991582,), (1359991674,), (1359991677,), (1359991705,), (1359991731,), (1359991887,), (1359991926,), (1359991960,), (1359991966,), (1359991970,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23201707 , 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=23201666 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 (23201707) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23201666) result : ((1359988740,), (1359988745,), (1359988776,), (1359988780,), (1359988784,), (1359988816,), (1359988819,), (1359988823,), (1359988827,), (1359988832,), (1359988882,), (1359988888,), (1359988893,), (1359988898,), (1359988915,), (1359988940,), (1359989297,), (1359989336,), (1359989390,), (1359989425,), (1359989457,), (1359989806,), (1359989811,), (1359989819,), (1359989850,), (1359989876,), (1359989994,), (1359989997,), (1359990002,), (1359990006,), (1359990011,), (1359990028,), (1359990032,), (1359990037,), (1359990072,), (1359990076,), (1359990081,), (1359990086,), (1359990088,), (1359990182,), (1359990214,), (1359990244,), (1359990271,), (1359990296,), (1359990322,), (1359990925,), (1359990962,), (1359990986,), (1359991214,), (1359991257,), (1359991274,), (1359991288,), (1359991295,), (1359991316,), (1359991494,), (1359991502,), (1359991514,), (1359991533,), (1359991559,), (1359991582,), (1359991674,), (1359991677,), (1359991705,), (1359991731,), (1359991887,), (1359991926,), (1359991960,), (1359991966,), (1359991970,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23201666 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','kraft','Teint_Dans_La_Masse','Carton_brun','Carton_gris','plastique','papier','cartonnette','flou','metal','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`=23201666 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','kraft','Teint_Dans_La_Masse','Carton_brun','Carton_gris','plastique','papier','cartonnette','flou','metal','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 23201666, 'sub_port_id': 23201709, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476493, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 48)}, 'autre_refus': {'main_port_id': 23201666, 'sub_port_id': 23201710, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476494, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 48)}, 'Teint_Dans_La_Masse': {'main_port_id': 23201666, 'sub_port_id': 23201711, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476495, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 48)}, 'metal': {'main_port_id': 23201666, 'sub_port_id': 23201712, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476496, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 48)}, 'environnement': {'main_port_id': 23201666, 'sub_port_id': 23201713, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476497, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 48)}, 'plastique': {'main_port_id': 23201666, 'sub_port_id': 23201715, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476498, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 48)}, 'mal_croppe': {'main_port_id': 23201666, 'sub_port_id': 23201716, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476499, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 48)}, 'cartonnette': {'main_port_id': 23201666, 'sub_port_id': 23201717, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476500, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 48)}, 'Carton_brun': {'main_port_id': 23201666, 'sub_port_id': 23201718, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476501, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 48)}, 'kraft': {'main_port_id': 23201666, 'sub_port_id': 23201719, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476502, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 48)}, 'papier': {'main_port_id': 23201666, 'sub_port_id': 23201720, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476503, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 17, 48), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 48)}, 'flou': {'main_port_id': 23201666, 'sub_port_id': 23201721, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15476504, 'last_updated_at': datetime.datetime(2025, 5, 21, 10, 27, 48), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 10, 27, 48), 'last_updated_at_asc': datetime.datetime(2025, 5, 21, 10, 17, 48)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23201709,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23201696 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23201710,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23201697 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23201711,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23201698 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23201712,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23201699 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23201713,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23201700 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23201715,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23201701 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23201716,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23201702 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23201717,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23201703 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23201718,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23201704 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23201719,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23201705 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23201720,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23201706 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23201721,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23201707 lien utilise dans velours : https://www.fotonower.com/velours/23201709,23201710,23201711,23201712,23201713,23201715,23201716,23201717,23201718,23201719,23201720,23201721?tags=Carton_gris,autre_refus,Teint_Dans_La_Masse,metal,environnement,plastique,mal_croppe,cartonnette,Carton_brun,kraft,papier,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23201666]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1359991970, 1359991966, 1359991960, 1359991926, 1359991887, 1359991731, 1359991705, 1359991677, 1359991674, 1359991582, 1359991559, 1359991533, 1359991514, 1359991502, 1359991494, 1359991316, 1359991295, 1359991288, 1359991274, 1359991257, 1359991214] map_info['map_portfolio_photo'] : {23201666: [1359991970, 1359991966, 1359991960, 1359991926, 1359991887, 1359991731, 1359991705, 1359991677, 1359991674, 1359991582, 1359991559, 1359991533, 1359991514, 1359991502, 1359991494, 1359991316, 1359991295, 1359991288, 1359991274, 1359991257, 1359991214, 1359990986, 1359990962, 1359990925, 1359990322, 1359990296, 1359990271, 1359990244, 1359990214, 1359990182, 1359990088, 1359990086, 1359990081, 1359990076, 1359990072, 1359990037, 1359990032, 1359990028, 1359990011, 1359990006, 1359990002, 1359989997, 1359989994, 1359989876, 1359989850, 1359989819, 1359989811, 1359989806, 1359989457, 1359989425, 1359989390, 1359989336, 1359989297, 1359988940, 1359988915, 1359988898, 1359988893, 1359988888, 1359988882, 1359988832, 1359988827, 1359988823, 1359988819, 1359988816, 1359988784, 1359988780, 1359988776, 1359988745, 1359988740]} final : False mtd_id 4302 list_pids : [1359991970, 1359991966, 1359991960, 1359991926, 1359991887, 1359991731, 1359991705, 1359991677, 1359991674, 1359991582, 1359991559, 1359991533, 1359991514, 1359991502, 1359991494, 1359991316, 1359991295, 1359991288, 1359991274, 1359991257, 1359991214] Looping around the photos to save general results len do output : 1 /23201666. 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, '2919816') ('4302', '23201666', '1359991970', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991966', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991960', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991926', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991887', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991731', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991705', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991677', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991674', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991582', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991559', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991533', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991514', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991502', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991494', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991316', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991295', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991288', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991274', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991257', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991214', None, None, None, None, None, '2919816') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '23201666', "{'Carton_gris': 23201696, 'autre_refus': 23201697, 'Teint_Dans_La_Masse': 23201698, 'metal': 23201699, 'environnement': 23201700, 'plastique': 23201701, 'mal_croppe': 23201702, 'cartonnette': 23201703, 'Carton_brun': 23201704, 'kraft': 23201705, 'papier': 23201706, 'flou': 23201707}", None, None, None, None, '2919816'), ('4302', '23201666', '1359991970', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991966', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991960', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991926', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991887', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991731', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991705', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991677', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991674', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991582', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991559', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991533', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991514', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991502', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991494', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991316', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991295', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991288', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991274', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991257', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991214', None, None, None, None, None, '2919816')] time used for this insertion : 0.07768416404724121 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4069349765777588 time spend to save output : 0.07802128791809082 total time spend for step 1 : 1.4849562644958496 step2:final Wed May 21 10:31:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23201666) 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 23201666 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1359988745,1359988740,1359988784,1359988780,1359988776,1359988832,1359988827,1359988823,1359988819,1359988816,1359988940,1359988915,1359988898,1359988893,1359988888,1359988882,1359989457,1359989425,1359989390,1359989336,1359989297,1359989876,1359989850,1359989819,1359989811,1359989806,1359990011,1359990006,1359990002,1359989997,1359989994,1359990037,1359990032,1359990028,1359990088,1359990086,1359990081,1359990076,1359990072,1359990322,1359990296,1359990271,1359990244,1359990214,1359990182,1359990986,1359990962,1359990925,1359991316,1359991295,1359991288,1359991274,1359991257,1359991214,1359991582,1359991559,1359991533,1359991514,1359991502,1359991494,1359991731,1359991705,1359991677,1359991674,1359991970,1359991966,1359991960,1359991926,1359991887); 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([23201666]) Inside saveOutput : final : False verbose : True original output for save of step final : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} new output for save of step final : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} [1359991970, 1359991966, 1359991960, 1359991926, 1359991887, 1359991731, 1359991705, 1359991677, 1359991674, 1359991582, 1359991559, 1359991533, 1359991514, 1359991502, 1359991494, 1359991316, 1359991295, 1359991288, 1359991274, 1359991257, 1359991214] map_info['map_portfolio_photo'] : {23201666: [1359991970, 1359991966, 1359991960, 1359991926, 1359991887, 1359991731, 1359991705, 1359991677, 1359991674, 1359991582, 1359991559, 1359991533, 1359991514, 1359991502, 1359991494, 1359991316, 1359991295, 1359991288, 1359991274, 1359991257, 1359991214, 1359990986, 1359990962, 1359990925, 1359990322, 1359990296, 1359990271, 1359990244, 1359990214, 1359990182, 1359990088, 1359990086, 1359990081, 1359990076, 1359990072, 1359990037, 1359990032, 1359990028, 1359990011, 1359990006, 1359990002, 1359989997, 1359989994, 1359989876, 1359989850, 1359989819, 1359989811, 1359989806, 1359989457, 1359989425, 1359989390, 1359989336, 1359989297, 1359988940, 1359988915, 1359988898, 1359988893, 1359988888, 1359988882, 1359988832, 1359988827, 1359988823, 1359988819, 1359988816, 1359988784, 1359988780, 1359988776, 1359988745, 1359988740]} final : False mtd_id 4302 list_pids : [1359991970, 1359991966, 1359991960, 1359991926, 1359991887, 1359991731, 1359991705, 1359991677, 1359991674, 1359991582, 1359991559, 1359991533, 1359991514, 1359991502, 1359991494, 1359991316, 1359991295, 1359991288, 1359991274, 1359991257, 1359991214] Looping around the photos to save general results len do output : 21 /1359991970.Didn't retrieve data . /1359991966.Didn't retrieve data . /1359991960.Didn't retrieve data . /1359991926.Didn't retrieve data . /1359991887.Didn't retrieve data . /1359991731.Didn't retrieve data . /1359991705.Didn't retrieve data . /1359991677.Didn't retrieve data . /1359991674.Didn't retrieve data . /1359991582.Didn't retrieve data . /1359991559.Didn't retrieve data . /1359991533.Didn't retrieve data . /1359991514.Didn't retrieve data . /1359991502.Didn't retrieve data . /1359991494.Didn't retrieve data . /1359991316.Didn't retrieve data . /1359991295.Didn't retrieve data . /1359991288.Didn't retrieve data . /1359991274.Didn't retrieve data . /1359991257.Didn't retrieve data . /1359991214.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, '2919816') ('4302', '23201666', '1359991970', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991966', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991960', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991926', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991887', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991731', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991705', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991677', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991674', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991582', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991559', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991533', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991514', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991502', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991494', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991316', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991295', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991288', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991274', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991257', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991214', None, None, None, None, None, '2919816') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 63 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', '23201666', '1359991970', '0.03794241794697007', None, None, None, None, '2919816'), ('4302', '23201666', '1359991966', '0.03794241794697007', None, None, None, None, '2919816'), ('4302', '23201666', '1359991960', '0.03794241794697007', None, None, None, None, '2919816'), ('4302', '23201666', '1359991926', '0.03794241794697007', None, None, None, None, '2919816'), ('4302', '23201666', '1359991887', '0.03794241794697007', None, None, None, None, '2919816'), ('4302', '23201666', '1359991731', '0.03794241794697007', None, None, None, None, '2919816'), ('4302', '23201666', '1359991705', '0.03794241794697007', None, None, None, None, '2919816'), ('4302', '23201666', '1359991677', '0.03794241794697007', None, None, None, None, '2919816'), ('4302', '23201666', '1359991674', '0.03794241794697007', None, None, None, None, '2919816'), ('4302', '23201666', '1359991582', '0.03794241794697007', None, None, None, None, '2919816'), ('4302', '23201666', '1359991559', '0.03794241794697007', None, None, None, None, '2919816'), ('4302', '23201666', '1359991533', '0.03794241794697007', None, None, None, None, '2919816'), ('4302', '23201666', '1359991514', '0.03794241794697007', None, None, None, None, '2919816'), ('4302', '23201666', '1359991502', '0.03794241794697007', None, None, None, None, '2919816'), ('4302', '23201666', '1359991494', '0.03794241794697007', None, None, None, None, '2919816'), ('4302', '23201666', '1359991316', '0.03794241794697007', None, None, None, None, '2919816'), ('4302', '23201666', '1359991295', '0.03794241794697007', None, None, None, None, '2919816'), ('4302', '23201666', '1359991288', '0.03794241794697007', None, None, None, None, '2919816'), ('4302', '23201666', '1359991274', '0.03794241794697007', None, None, None, None, '2919816'), ('4302', '23201666', '1359991257', '0.03794241794697007', None, None, None, None, '2919816'), ('4302', '23201666', '1359991214', '0.03794241794697007', None, None, None, None, '2919816')] time used for this insertion : 0.07697820663452148 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.10945653915405273 time spend to save output : 0.07772612571716309 total time spend for step 2 : 0.18718266487121582 step3:velours_tree Wed May 21 10:31:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {23201666: [{'Carton_gris': 23201696, 'autre_refus': 23201697, 'Teint_Dans_La_Masse': 23201698, 'metal': 23201699, 'environnement': 23201700, 'plastique': 23201701, 'mal_croppe': 23201702, 'cartonnette': 23201703, 'Carton_brun': 23201704, 'kraft': 23201705, 'papier': 23201706, 'flou': 23201707}]} input_args_next_step : {23201666: ()} output_args : {23201666: [{'Carton_gris': 23201696, 'autre_refus': 23201697, 'Teint_Dans_La_Masse': 23201698, 'metal': 23201699, 'environnement': 23201700, 'plastique': 23201701, 'mal_croppe': 23201702, 'cartonnette': 23201703, 'Carton_brun': 23201704, 'kraft': 23201705, 'papier': 23201706, 'flou': 23201707}]} args : 23201666 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 23201696, 'autre_refus': 23201697, 'Teint_Dans_La_Masse': 23201698, 'metal': 23201699, 'environnement': 23201700, 'plastique': 23201701, 'mal_croppe': 23201702, 'cartonnette': 23201703, 'Carton_brun': 23201704, 'kraft': 23201705, 'papier': 23201706, 'flou': 23201707},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23201666) 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([23201666]) 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.3524665832519531 time spend to save output : 9.274482727050781e-05 total time spend for step 3 : 0.35255932807922363 step4:send_mail_cod Wed May 21 10:31:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} input_args_next_step : {1359991970: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991970 depend.output_id : 0 input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991966 depend.output_id : 0 input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991960 depend.output_id : 0 input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991926 depend.output_id : 0 input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991887 depend.output_id : 0 input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991731 depend.output_id : 0 input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991705 depend.output_id : 0 input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991677 depend.output_id : 0 input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991674 depend.output_id : 0 input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991582 depend.output_id : 0 input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991559 depend.output_id : 0 input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991533 depend.output_id : 0 input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991514 depend.output_id : 0 input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991502 depend.output_id : 0 input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991494 depend.output_id : 0 input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991316 depend.output_id : 0 input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991295 depend.output_id : 0 input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991288 depend.output_id : 0 input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991274 depend.output_id : 0 input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991257 depend.output_id : 0 input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ()} output_args : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',)} args : 1359991214 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 : {23201666: [{'Carton_gris': 23201696, 'autre_refus': 23201697, 'Teint_Dans_La_Masse': 23201698, 'metal': 23201699, 'environnement': 23201700, 'plastique': 23201701, 'mal_croppe': 23201702, 'cartonnette': 23201703, 'Carton_brun': 23201704, 'kraft': 23201705, 'papier': 23201706, 'flou': 23201707}]} input_args_next_step : {1359991970: ('0.03794241794697007',), 1359991966: ('0.03794241794697007',), 1359991960: ('0.03794241794697007',), 1359991926: ('0.03794241794697007',), 1359991887: ('0.03794241794697007',), 1359991731: ('0.03794241794697007',), 1359991705: ('0.03794241794697007',), 1359991677: ('0.03794241794697007',), 1359991674: ('0.03794241794697007',), 1359991582: ('0.03794241794697007',), 1359991559: ('0.03794241794697007',), 1359991533: ('0.03794241794697007',), 1359991514: ('0.03794241794697007',), 1359991502: ('0.03794241794697007',), 1359991494: ('0.03794241794697007',), 1359991316: ('0.03794241794697007',), 1359991295: ('0.03794241794697007',), 1359991288: ('0.03794241794697007',), 1359991274: ('0.03794241794697007',), 1359991257: ('0.03794241794697007',), 1359991214: ('0.03794241794697007',), 23201666: ()} output_args : {23201666: [{'Carton_gris': 23201696, 'autre_refus': 23201697, 'Teint_Dans_La_Masse': 23201698, 'metal': 23201699, 'environnement': 23201700, 'plastique': 23201701, 'mal_croppe': 23201702, 'cartonnette': 23201703, 'Carton_brun': 23201704, 'kraft': 23201705, 'papier': 23201706, 'flou': 23201707}]} args : 23201666 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 :22, first value : ('0.03794241794697007',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23201666) 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 (1359991970,1359991966,1359991960,1359991926,1359991887,1359991731,1359991705,1359991677,1359991674,1359991582,1359991559,1359991533,1359991514,1359991502,1359991494,1359991316,1359991295,1359991288,1359991274,1359991257,1359991214) Found this number of photos: 21 ##### Call download_photos : nb_thread : 5 begin to download photo : 1359991214 begin to download photo : 1359991316 begin to download photo : 1359991559 begin to download photo : 1359991731 begin to download photo : 1359991970 download finish for photo 1359991731 begin to download photo : 1359991887 download finish for photo 1359991316 begin to download photo : 1359991494 download finish for photo 1359991214 begin to download photo : 1359991257 download finish for photo 1359991559 begin to download photo : 1359991582 download finish for photo 1359991887 begin to download photo : 1359991926 download finish for photo 1359991494 begin to download photo : 1359991502 download finish for photo 1359991582 begin to download photo : 1359991674 download finish for photo 1359991257 begin to download photo : 1359991274 download finish for photo 1359991926 begin to download photo : 1359991960 download finish for photo 1359991274 begin to download photo : 1359991288 download finish for photo 1359991674 begin to download photo : 1359991677 download finish for photo 1359991960 begin to download photo : 1359991966 download finish for photo 1359991288 begin to download photo : 1359991295 download finish for photo 1359991677 begin to download photo : 1359991705 download finish for photo 1359991966 download finish for photo 1359991970 download finish for photo 1359991295 download finish for photo 1359991705 download finish for photo 1359991502 begin to download photo : 1359991514 download finish for photo 1359991514 begin to download photo : 1359991533 download finish for photo 1359991533 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 : 21 ; length of list_pids : 21 ; length of list_args : 21 results_Auto_P23201666_21-05-2025_10_31_01.pdf 23201697 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=23201697 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1359991416: '1747815822_4019851_1359988898_a3926268898ef330388dd141e52d3ef3_rle_crop_3807420395_0.png'} change filename to text .imagette232016971747816261/ imagette232016971747816261/1747815822_4019851_1359988898_a3926268898ef330388dd141e52d3ef3_rle_crop_3807420395_0.png.png imagette232016991747816261/ imagette232017011747816261/ imagette232017021747816261/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/96fa4e7762ef30d82b90e5140fcb2de8_787526.png imagette232016971747816261 23201699 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=23201699 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette232016991747816261 23201701 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=23201701 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette232017011747816261 23201702 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=23201702 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette232017021747816261 23201703 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=23201703 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1359991417: '1747815822_4019851_1359988888_4328c9489fd5bb5e7ae290c0a55c8d46_rle_crop_3807423095_0.png'} change filename to text .imagette232017031747816261/ imagette232017031747816261/1747815822_4019851_1359988888_4328c9489fd5bb5e7ae290c0a55c8d46_rle_crop_3807423095_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/84ceccb558d9b357b7dd954007f5a831_45640968.png imagette232017031747816261 23201705 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=23201705 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1359991420: '1747815822_4019851_1359989457_39206565ec0ef3e731cac817223df776_rle_crop_3807420119_0.png'} change filename to text .imagette232017051747816261/ imagette232017051747816261/1747815822_4019851_1359989457_39206565ec0ef3e731cac817223df776_rle_crop_3807420119_0.png.png imagette232017071747816261/ imagette232016961747816261/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/81649318ab27bd5095e55a7526ab8700_4066483.png imagette232017051747816261 23201707 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=23201707 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette232017071747816261 23201696 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=23201696 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette232016961747816261 23201698 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=23201698 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1359989369: '1747815586_4016477_1359988745_cad45787464a566ed6dab99deebe6840_rle_crop_3807417614_0.png', 1359991414: '1747815822_4019851_1359988888_4328c9489fd5bb5e7ae290c0a55c8d46_rle_crop_3807423101_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/8e91bc2ae9a4e24789f0c78c0c9dc3d0_62555550.png change filename to text .imagette232016981747816261/ imagette232016981747816261/1747815586_4016477_1359988745_cad45787464a566ed6dab99deebe6840_rle_crop_3807417614_0.png.png imagette232016981747816261/1747815822_4019851_1359988888_4328c9489fd5bb5e7ae290c0a55c8d46_rle_crop_3807423101_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/e0736afa04d2970ae1d57dc4551dae7d_25658952.png imagette232016981747816261 23201704 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=23201704 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1359991419: '1747815822_4019851_1359988915_69b17d7d39fa56e73d1a9b39b0470b0d_rle_crop_3807420384_0.png'} change filename to text .imagette232017041747816261/ imagette232017041747816261/1747815822_4019851_1359988915_69b17d7d39fa56e73d1a9b39b0470b0d_rle_crop_3807420384_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/ada51b487aea1b884fbf4d3e7a31acb5_83386146.png imagette232017041747816261 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23201666 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23201709,23201710,23201711,23201712,23201713,23201715,23201716,23201717,23201718,23201719,23201720,23201721?tags=Carton_gris,autre_refus,Teint_Dans_La_Masse,metal,environnement,plastique,mal_croppe,cartonnette,Carton_brun,kraft,papier,flou your option no_mail is active, we will not send the real mail to your client args[1359991970] : ('0.03794241794697007',) no score found for photo 1359991970 We are sending mail with results at report@fotonower.com args[1359991966] : ('0.03794241794697007',) no score found for photo 1359991966 We are sending mail with results at report@fotonower.com args[1359991960] : ('0.03794241794697007',) no score found for photo 1359991960 We are sending mail with results at report@fotonower.com args[1359991926] : ('0.03794241794697007',) no score found for photo 1359991926 We are sending mail with results at report@fotonower.com args[1359991887] : ('0.03794241794697007',) no score found for photo 1359991887 We are sending mail with results at report@fotonower.com args[1359991731] : ('0.03794241794697007',) no score found for photo 1359991731 We are sending mail with results at report@fotonower.com args[1359991705] : ('0.03794241794697007',) no score found for photo 1359991705 We are sending mail with results at report@fotonower.com args[1359991677] : ('0.03794241794697007',) no score found for photo 1359991677 We are sending mail with results at report@fotonower.com args[1359991674] : ('0.03794241794697007',) no score found for photo 1359991674 We are sending mail with results at report@fotonower.com args[1359991582] : ('0.03794241794697007',) no score found for photo 1359991582 We are sending mail with results at report@fotonower.com args[1359991559] : ('0.03794241794697007',) no score found for photo 1359991559 We are sending mail with results at report@fotonower.com args[1359991533] : ('0.03794241794697007',) no score found for photo 1359991533 We are sending mail with results at report@fotonower.com args[1359991514] : ('0.03794241794697007',) no score found for photo 1359991514 We are sending mail with results at report@fotonower.com args[1359991502] : ('0.03794241794697007',) no score found for photo 1359991502 We are sending mail with results at report@fotonower.com args[1359991494] : ('0.03794241794697007',) no score found for photo 1359991494 We are sending mail with results at report@fotonower.com args[1359991316] : ('0.03794241794697007',) no score found for photo 1359991316 We are sending mail with results at report@fotonower.com args[1359991295] : ('0.03794241794697007',) no score found for photo 1359991295 We are sending mail with results at report@fotonower.com args[1359991288] : ('0.03794241794697007',) no score found for photo 1359991288 We are sending mail with results at report@fotonower.com args[1359991274] : ('0.03794241794697007',) no score found for photo 1359991274 We are sending mail with results at report@fotonower.com args[1359991257] : ('0.03794241794697007',) no score found for photo 1359991257 We are sending mail with results at report@fotonower.com args[1359991214] : ('0.03794241794697007',) no score found for photo 1359991214 We are sending mail with results at report@fotonower.com refus_total : 0.03794241794697007 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=23201666 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_P23201666_21-05-2025_10_31_01.pdf results_Auto_P23201666_21-05-2025_10_31_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23201666_21-05-2025_10_31_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','23201666','results_Auto_P23201666_21-05-2025_10_31_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23201666_21-05-2025_10_31_01.pdf','pdf','','0.18','0.03794241794697007') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23201666]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1359991970, 1359991966, 1359991960, 1359991926, 1359991887, 1359991731, 1359991705, 1359991677, 1359991674, 1359991582, 1359991559, 1359991533, 1359991514, 1359991502, 1359991494, 1359991316, 1359991295, 1359991288, 1359991274, 1359991257, 1359991214] map_info['map_portfolio_photo'] : {23201666: [1359991970, 1359991966, 1359991960, 1359991926, 1359991887, 1359991731, 1359991705, 1359991677, 1359991674, 1359991582, 1359991559, 1359991533, 1359991514, 1359991502, 1359991494, 1359991316, 1359991295, 1359991288, 1359991274, 1359991257, 1359991214, 1359990986, 1359990962, 1359990925, 1359990322, 1359990296, 1359990271, 1359990244, 1359990214, 1359990182, 1359990088, 1359990086, 1359990081, 1359990076, 1359990072, 1359990037, 1359990032, 1359990028, 1359990011, 1359990006, 1359990002, 1359989997, 1359989994, 1359989876, 1359989850, 1359989819, 1359989811, 1359989806, 1359989457, 1359989425, 1359989390, 1359989336, 1359989297, 1359988940, 1359988915, 1359988898, 1359988893, 1359988888, 1359988882, 1359988832, 1359988827, 1359988823, 1359988819, 1359988816, 1359988784, 1359988780, 1359988776, 1359988745, 1359988740]} final : False mtd_id 4302 list_pids : [1359991970, 1359991966, 1359991960, 1359991926, 1359991887, 1359991731, 1359991705, 1359991677, 1359991674, 1359991582, 1359991559, 1359991533, 1359991514, 1359991502, 1359991494, 1359991316, 1359991295, 1359991288, 1359991274, 1359991257, 1359991214] 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, '2919816') ('4302', '23201666', '1359991970', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991966', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991960', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991926', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991887', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991731', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991705', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991677', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991674', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991582', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991559', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991533', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991514', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991502', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991494', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991316', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991295', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991288', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991274', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991257', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991214', None, None, None, None, None, '2919816') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '23201666', '1359991970', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991966', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991960', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991926', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991887', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991731', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991705', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991677', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991674', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991582', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991559', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991533', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991514', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991502', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991494', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991316', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991295', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991288', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991274', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991257', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991214', None, None, None, None, None, '2919816')] time used for this insertion : 0.06760478019714355 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.8253018856048584 time spend to save output : 0.06793618202209473 total time spend for step 4 : 2.893238067626953 step5:split_time_score Wed May 21 10:31:03 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 : ['23201666'] 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 : [('23201666',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23201666) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1359991731: {'path': 'temp/1747816260_2179092_1359991731_dbc60a86af707c472a1ccb1912628d2a.jpg', 'extension': 'jpg'}, 1359991887: {'path': 'temp/1747816260_2179092_1359991887_a8ea3fd66289f684168a4f96efade94b.jpg', 'extension': 'jpg'}, 1359991926: {'path': 'temp/1747816260_2179092_1359991926_051b7b75ebaba33d87aae81ba22756dc.jpg', 'extension': 'jpg'}, 1359991960: {'path': 'temp/1747816260_2179092_1359991960_d5d4d229db345eded5bdfe79b2c80146.jpg', 'extension': 'jpg'}, 1359991966: {'path': 'temp/1747816260_2179092_1359991966_79c656a030d862669e7904f8beed1303.jpg', 'extension': 'jpg'}, 1359991970: {'path': 'temp/1747816260_2179092_1359991970_09eef5ed6f429400c4fde87b3ee0506a.jpg', 'extension': 'jpg'}, 1359991214: {'path': 'temp/1747816260_2179092_1359991214_c91bf5f8c3d42c2f700931fe9661ea0b.jpg', 'extension': 'jpg'}, 1359991257: {'path': 'temp/1747816260_2179092_1359991257_4a0e36e217a491055870fd92bc60a560.jpg', 'extension': 'jpg'}, 1359991274: {'path': 'temp/1747816260_2179092_1359991274_92850943754de1179c95e098ae1d78d7.jpg', 'extension': 'jpg'}, 1359991288: {'path': 'temp/1747816260_2179092_1359991288_b30f4f84b2effa897e4532df9773801d.jpg', 'extension': 'jpg'}, 1359991295: {'path': 'temp/1747816260_2179092_1359991295_b043df087ffd62f53087f2c70072af4a.jpg', 'extension': 'jpg'}, 1359991559: {'path': 'temp/1747816260_2179092_1359991559_3ed8a879ef929de8c8a7f3be5beadb21.jpg', 'extension': 'jpg'}, 1359991582: {'path': 'temp/1747816260_2179092_1359991582_9a40b7d0dbf4f15e8153d94c763fa67a.jpg', 'extension': 'jpg'}, 1359991674: {'path': 'temp/1747816260_2179092_1359991674_f0a8002b669ffd61e7a19f5fa27c3040.jpg', 'extension': 'jpg'}, 1359991677: {'path': 'temp/1747816260_2179092_1359991677_f94fb0aea6fa014fa842000b57865e18.jpg', 'extension': 'jpg'}, 1359991705: {'path': 'temp/1747816260_2179092_1359991705_81c5d6584f82cd1cc1a0488f3cc30d32.jpg', 'extension': 'jpg'}, 1359991316: {'path': 'temp/1747816260_2179092_1359991316_159747a367b17b0d427795948e2b771d.jpg', 'extension': 'jpg'}, 1359991494: {'path': 'temp/1747816260_2179092_1359991494_267b01a41d0912a57cca3f46c794bb4f.jpg', 'extension': 'jpg'}, 1359991502: {'path': 'temp/1747816260_2179092_1359991502_9cb1100d225c37a04d2c344e1f5783c3.jpg', 'extension': 'jpg'}, 1359991514: {'path': 'temp/1747816260_2179092_1359991514_d0adea6cbd77387b89882485c8519e87.jpg', 'extension': 'jpg'}, 1359991533: {'path': 'temp/1747816260_2179092_1359991533_9f1839e411b6859b8b12839b19d3ddaf.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 = 23201666; (('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 = 23201666 group by h (('10', 69),) 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=23201666 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 (23201666) 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 (23201666) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 21052025 23201666 Nombre de photos uploadées : 69 / 23040 (0%) 21052025 23201666 Nombre de photos taguées (types de déchets): 0 / 69 (0%) 21052025 23201666 Nombre de photos taguées (volume) : 0 / 69 (0%) [{'photo_id': 1359988745, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/cad45787464a566ed6dab99deebe6840.jpg', 'username': None, 'uploaded_at': 1747815367, 'text': 'image_21052025_10_15_04_10161.jpg'}, {'photo_id': 1359988740, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/ae51cc2a608add31847d5dddc768408d.jpg', 'username': None, 'uploaded_at': 1747815367, 'text': 'image_21052025_10_15_34_10134.jpg'}, {'photo_id': 1359988784, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/3457f192f93959f61f6a21515f77ea2a.jpg', 'username': None, 'uploaded_at': 1747815427, 'text': 'image_21052025_10_15_54_10136.jpg'}, {'photo_id': 1359988780, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/301292dcec176d7fb283e4eddd48ad37.jpg', 'username': None, 'uploaded_at': 1747815427, 'text': 'image_21052025_10_16_14_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 8.106231689453125e-06 ????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004156589508056641 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23201666, '2025-05-21' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1824382,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.027609825134277344 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= 1824382 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23186642, 'dashboard_result_id': 10778211, '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_P23186642_21-05-2025_06_10_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23186644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23186645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23186646, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23186647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23186648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23186649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23186650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23186651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23186652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23186653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23186654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23186655, 'pht': 3726}}"}, {'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23187474, 'dashboard_result_id': 10778212, '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_P23187474_21-05-2025_06_11_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23187477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23187478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23187479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23187480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23187481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23187482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23187483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23187484, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23187485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23187486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23187487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23187488, 'pht': 3726}}"}, {'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23188819, 'dashboard_result_id': 10778213, '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_P23188819_21-05-2025_06_12_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23188835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23188836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23188837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23188838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23188839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23188840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23188841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23188842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23188843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23188844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23188845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23188846, 'pht': 3726}}"}, {'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23189190, 'dashboard_result_id': 10778214, '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_P23189190_21-05-2025_06_13_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23189215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23189216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23189217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23189218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23189219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23189220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23189221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23189222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23189223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23189224, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23189225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23189226, 'pht': 3726}}"}, {'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23189732, 'dashboard_result_id': 10778215, '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_P23189732_21-05-2025_05_49_44.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23189755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23189756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23189757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23189758, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23189759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23189760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23189761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23189762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23189763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23189764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23189765, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23189766, 'pht': 3726}}"}, {'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23190355, 'dashboard_result_id': 10778216, '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_P23190355_21-05-2025_06_03_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23190358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23190359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23190360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23190362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23190363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23190364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23190365, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23190366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23190367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23190368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23190369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23190370, 'pht': 3726}}"}, {'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23190647, 'dashboard_result_id': 10778217, '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_P23190647_21-05-2025_06_19_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23190653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23190654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23190655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23190656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23190657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23190658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23190659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23190660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23190661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23190662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23190663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23190664, 'pht': 3726}}"}, {'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23191339, 'dashboard_result_id': 10778218, '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_P23191339_21-05-2025_06_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23191350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23191351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23191352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23191353, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23191354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23191355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23191356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23191357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23191358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23191359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23191360, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23191361, 'pht': 3726}}"}, {'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23191752, 'dashboard_result_id': 10778219, '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_P23191752_21-05-2025_06_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23191764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23191765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23191766, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23191767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23191768, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23191769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23191770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23191771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23191772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23191773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23191774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23191775, 'pht': 3726}}"}, {'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23192216, 'dashboard_result_id': 10778220, '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_P23192216_21-05-2025_07_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23192228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23192229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23192230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23192231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23192232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23192233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23192234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23192235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23192236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23192237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23192238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23192239, 'pht': 3726}}"}, {'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23192562, 'dashboard_result_id': 10778221, '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_P23192562_21-05-2025_07_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23192589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23192590, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23192591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23192592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23192593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23192594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23192595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23192596, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23192597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23192598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23192599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23192600, 'pht': 3726}}"}, {'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23193125, 'dashboard_result_id': 10778222, '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_P23193125_21-05-2025_07_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23193195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23193196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23193197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23193198, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23193199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23193200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23193202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23193203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23193204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23193205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23193206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23193207, 'pht': 3726}}"}, {'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23193909, 'dashboard_result_id': 10778223, '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_P23193909_21-05-2025_07_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23193958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23193959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23193960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23193961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23193962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23193963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23193964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23193965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23193966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23193967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23193968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23193969, 'pht': 3726}}"}, {'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23194440, 'dashboard_result_id': 10778224, '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_P23194440_21-05-2025_08_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23194460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23194461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23194462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23194463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23194464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23194465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23194466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23194467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23194468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23194469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23194470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23194471, 'pht': 3726}}"}, {'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23195014, 'dashboard_result_id': 10778225, '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_P23195014_21-05-2025_08_16_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23195039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23195040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23195041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23195042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23195043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23195044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23195045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23195046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23195047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23195048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23195049, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23195050, 'pht': 3726}}"}, {'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23195643, 'dashboard_result_id': 10778226, '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_P23195643_21-05-2025_08_51_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23195669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23195670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23195671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23195672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23195673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23195674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23195675, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23195676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23195677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23195678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23195679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23195680, 'pht': 3726}}"}, {'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23197882, 'dashboard_result_id': 10778227, '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_P23197882_21-05-2025_08_59_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23197961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23197962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23197964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23197965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23197966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23197968, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23197969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23197970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23197972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23197973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23197974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23197976, 'pht': 3726}}"}, {'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23200082, 'dashboard_result_id': 10778228, '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_P23200082_21-05-2025_09_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23200084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23200085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23200086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23200087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23200088, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23200089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23200090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23200091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23200092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23200093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23200094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23200095, 'pht': 3726}}"}, {'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23200459, 'dashboard_result_id': 10778229, '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_P23200459_21-05-2025_10_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23200514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23200515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23200516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23200517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23200518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23200519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23200520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23200521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23200522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23200523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23200524, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23200526, 'pht': 3726}}"}, {'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23201055, 'dashboard_result_id': 10778230, '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_P23201055_21-05-2025_10_16_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23201110, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23201111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23201112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23201113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23201114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23201115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23201116, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23201117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23201118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23201119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23201120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23201121, 'pht': 3726}}"}, {'dashboat_entry_day': 1824382, 'dashboard_run_id': 1833365, 'mtr_portfolio_id': 23201666, 'dashboard_result_id': 10778231, '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_P23201666_21-05-2025_10_27_49.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23201696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23201697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23201698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23201699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23201700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23201701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23201702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23201703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23201704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23201705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23201706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23201707, '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 = 23186642 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': 2915299, 'mtr_portfolio_id': 23186642, 'created_at': datetime.datetime(2025, 5, 21, 6, 10, 29), 'result': '0.05952991725520187', 'result_long': None, 'result_double': None}] Qualite : 0.05952991725520187 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23186642 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23186642_21-05-2025_06_10_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23186642 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_P23186642_21-05-2025_06_10_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23186644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23186645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23186646, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23186647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23186648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23186649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23186650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23186651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23186652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23186653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23186654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23186655, 'pht': 3726}}" where mtr_portfolio_id = 23186642 and dashboard_run_id = 1833365 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`=23186642 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778211, 0.05952991725520187, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23186642_21-05-2025_06_10_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23186644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23186645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23186646, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23186647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23186648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23186649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23186650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23186651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23186652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23186653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23186654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23186655, '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 = 23187474 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': 2915300, 'mtr_portfolio_id': 23187474, 'created_at': datetime.datetime(2025, 5, 21, 6, 11, 28), 'result': '0.0074541485314885605', 'result_long': None, 'result_double': None}] Qualite : 0.0074541485314885605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23187474 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23187474_21-05-2025_06_11_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23187474 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_P23187474_21-05-2025_06_11_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23187477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23187478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23187479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23187480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23187481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23187482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23187483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23187484, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23187485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23187486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23187487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23187488, 'pht': 3726}}" where mtr_portfolio_id = 23187474 and dashboard_run_id = 1833365 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`=23187474 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778212, 0.0074541485314885605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23187474_21-05-2025_06_11_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23187477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23187478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23187479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23187480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23187481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23187482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23187483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23187484, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23187485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23187486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23187487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23187488, '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 = 23188819 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': 2915302, 'mtr_portfolio_id': 23188819, 'created_at': datetime.datetime(2025, 5, 21, 6, 11, 59), 'result': '0.05321047919108487', 'result_long': None, 'result_double': None}] Qualite : 0.05321047919108487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23188819 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23188819_21-05-2025_06_12_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23188819 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_P23188819_21-05-2025_06_12_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23188835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23188836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23188837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23188838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23188839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23188840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23188841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23188842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23188843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23188844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23188845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23188846, 'pht': 3726}}" where mtr_portfolio_id = 23188819 and dashboard_run_id = 1833365 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`=23188819 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778213, 0.05321047919108487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23188819_21-05-2025_06_12_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23188835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23188836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23188837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23188838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23188839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23188840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23188841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23188842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23188843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23188844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23188845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23188846, '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 = 23189190 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': 2915303, 'mtr_portfolio_id': 23189190, 'created_at': datetime.datetime(2025, 5, 21, 6, 12, 59), 'result': '0.04476924172280995', 'result_long': None, 'result_double': None}] Qualite : 0.04476924172280995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23189190 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23189190_21-05-2025_06_13_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23189190 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_P23189190_21-05-2025_06_13_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23189215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23189216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23189217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23189218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23189219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23189220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23189221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23189222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23189223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23189224, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23189225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23189226, 'pht': 3726}}" where mtr_portfolio_id = 23189190 and dashboard_run_id = 1833365 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`=23189190 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778214, 0.04476924172280995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23189190_21-05-2025_06_13_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23189215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23189216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23189217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23189218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23189219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23189220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23189221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23189222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23189223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23189224, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23189225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23189226, '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 = 23189732 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': 2915226, 'mtr_portfolio_id': 23189732, 'created_at': datetime.datetime(2025, 5, 21, 5, 49, 44), 'result': '0.03731501525719458', 'result_long': None, 'result_double': None}] Qualite : 0.03731501525719458 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23189732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23189732_21-05-2025_05_49_44.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23189732 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_P23189732_21-05-2025_05_49_44.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23189755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23189756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23189757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23189758, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23189759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23189760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23189761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23189762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23189763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23189764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23189765, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23189766, 'pht': 3726}}" where mtr_portfolio_id = 23189732 and dashboard_run_id = 1833365 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`=23189732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778215, 0.03731501525719458, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23189732_21-05-2025_05_49_44.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23189755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23189756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23189757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23189758, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23189759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23189760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23189761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23189762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23189763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23189764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23189765, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23189766, '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 = 23190355 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': 2915409, 'mtr_portfolio_id': 23190355, 'created_at': datetime.datetime(2025, 5, 21, 6, 3, 30), 'result': '0.05245052938237106', 'result_long': None, 'result_double': None}] Qualite : 0.05245052938237106 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23190355 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23190355_21-05-2025_06_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23190355 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_P23190355_21-05-2025_06_03_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23190358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23190359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23190360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23190362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23190363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23190364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23190365, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23190366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23190367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23190368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23190369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23190370, 'pht': 3726}}" where mtr_portfolio_id = 23190355 and dashboard_run_id = 1833365 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`=23190355 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778216, 0.05245052938237106, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23190355_21-05-2025_06_03_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23190358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23190359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23190360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23190362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23190363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23190364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23190365, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23190366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23190367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23190368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23190369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23190370, '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 = 23190647 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': 2915550, 'mtr_portfolio_id': 23190647, 'created_at': datetime.datetime(2025, 5, 21, 6, 19, 1), 'result': '0.04223294650698659', 'result_long': None, 'result_double': None}] Qualite : 0.04223294650698659 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23190647 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23190647_21-05-2025_06_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23190647 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_P23190647_21-05-2025_06_19_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23190653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23190654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23190655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23190656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23190657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23190658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23190659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23190660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23190661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23190662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23190663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23190664, 'pht': 3726}}" where mtr_portfolio_id = 23190647 and dashboard_run_id = 1833365 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`=23190647 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778217, 0.04223294650698659, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23190647_21-05-2025_06_19_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23190653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23190654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23190655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23190656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23190657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23190658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23190659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23190660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23190661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23190662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23190663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23190664, '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 = 23191339 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': 2915777, 'mtr_portfolio_id': 23191339, 'created_at': datetime.datetime(2025, 5, 21, 6, 32, 59), 'result': '0.060729795857115194', 'result_long': None, 'result_double': None}] Qualite : 0.060729795857115194 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23191339 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23191339_21-05-2025_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23191339 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_P23191339_21-05-2025_06_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23191350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23191351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23191352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23191353, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23191354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23191355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23191356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23191357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23191358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23191359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23191360, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23191361, 'pht': 3726}}" where mtr_portfolio_id = 23191339 and dashboard_run_id = 1833365 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`=23191339 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778218, 0.060729795857115194, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23191339_21-05-2025_06_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23191350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23191351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23191352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23191353, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23191354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23191355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23191356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23191357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23191358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23191359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23191360, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23191361, '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 = 23191752 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': 2916003, 'mtr_portfolio_id': 23191752, 'created_at': datetime.datetime(2025, 5, 21, 6, 48, 58), 'result': '0.05110005069877445', 'result_long': None, 'result_double': None}] Qualite : 0.05110005069877445 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23191752 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23191752_21-05-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23191752 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_P23191752_21-05-2025_06_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23191764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23191765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23191766, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23191767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23191768, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23191769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23191770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23191771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23191772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23191773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23191774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23191775, 'pht': 3726}}" where mtr_portfolio_id = 23191752 and dashboard_run_id = 1833365 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`=23191752 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778219, 0.05110005069877445, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23191752_21-05-2025_06_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23191764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23191765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23191766, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23191767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23191768, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23191769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23191770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23191771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23191772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23191773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23191774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23191775, '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 = 23192216 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': 2916241, 'mtr_portfolio_id': 23192216, 'created_at': datetime.datetime(2025, 5, 21, 7, 3), 'result': '0.08388000089085215', 'result_long': None, 'result_double': None}] Qualite : 0.08388000089085215 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23192216 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23192216_21-05-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23192216 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_P23192216_21-05-2025_07_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23192228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23192229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23192230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23192231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23192232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23192233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23192234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23192235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23192236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23192237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23192238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23192239, 'pht': 3726}}" where mtr_portfolio_id = 23192216 and dashboard_run_id = 1833365 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`=23192216 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778220, 0.08388000089085215, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23192216_21-05-2025_07_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23192228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23192229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23192230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23192231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23192232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23192233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23192234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23192235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23192236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23192237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23192238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23192239, '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 = 23192562 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': 2916470, 'mtr_portfolio_id': 23192562, 'created_at': datetime.datetime(2025, 5, 21, 7, 16, 59), 'result': '0.032306176136723104', 'result_long': None, 'result_double': None}] Qualite : 0.032306176136723104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23192562 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23192562_21-05-2025_07_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23192562 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_P23192562_21-05-2025_07_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23192589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23192590, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23192591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23192592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23192593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23192594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23192595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23192596, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23192597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23192598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23192599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23192600, 'pht': 3726}}" where mtr_portfolio_id = 23192562 and dashboard_run_id = 1833365 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`=23192562 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778221, 0.032306176136723104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23192562_21-05-2025_07_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23192589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23192590, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23192591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23192592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23192593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23192594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23192595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23192596, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23192597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23192598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23192599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23192600, '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 = 23193125 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': 2916752, 'mtr_portfolio_id': 23193125, 'created_at': datetime.datetime(2025, 5, 21, 7, 32, 59), 'result': '0.12049799831417134', 'result_long': None, 'result_double': None}] Qualite : 0.12049799831417134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23193125 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23193125_21-05-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23193125 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_P23193125_21-05-2025_07_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23193195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23193196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23193197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23193198, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23193199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23193200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23193202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23193203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23193204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23193205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23193206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23193207, 'pht': 3726}}" where mtr_portfolio_id = 23193125 and dashboard_run_id = 1833365 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`=23193125 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778222, 0.12049799831417134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23193125_21-05-2025_07_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23193195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23193196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23193197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23193198, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23193199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23193200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23193202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23193203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23193204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23193205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23193206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23193207, '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 = 23193909 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': 2917031, 'mtr_portfolio_id': 23193909, 'created_at': datetime.datetime(2025, 5, 21, 7, 46, 58), 'result': '0.03739561981832935', 'result_long': None, 'result_double': None}] Qualite : 0.03739561981832935 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23193909 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23193909_21-05-2025_07_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23193909 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_P23193909_21-05-2025_07_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23193958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23193959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23193960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23193961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23193962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23193963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23193964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23193965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23193966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23193967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23193968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23193969, 'pht': 3726}}" where mtr_portfolio_id = 23193909 and dashboard_run_id = 1833365 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`=23193909 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778223, 0.03739561981832935, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23193909_21-05-2025_07_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23193958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23193959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23193960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23193961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23193962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23193963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23193964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23193965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23193966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23193967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23193968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23193969, '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 = 23194440 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': 2917305, 'mtr_portfolio_id': 23194440, 'created_at': datetime.datetime(2025, 5, 21, 8, 2, 59), 'result': '0.04696792922028709', 'result_long': None, 'result_double': None}] Qualite : 0.04696792922028709 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23194440 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23194440_21-05-2025_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23194440 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_P23194440_21-05-2025_08_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23194460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23194461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23194462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23194463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23194464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23194465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23194466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23194467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23194468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23194469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23194470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23194471, 'pht': 3726}}" where mtr_portfolio_id = 23194440 and dashboard_run_id = 1833365 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`=23194440 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778224, 0.04696792922028709, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23194440_21-05-2025_08_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23194460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23194461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23194462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23194463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23194464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23194465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23194466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23194467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23194468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23194469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23194470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23194471, '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 = 23195014 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': 2917616, 'mtr_portfolio_id': 23195014, 'created_at': datetime.datetime(2025, 5, 21, 8, 16, 57), 'result': '0.059381538722909015', 'result_long': None, 'result_double': None}] Qualite : 0.059381538722909015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23195014 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23195014_21-05-2025_08_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23195014 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_P23195014_21-05-2025_08_16_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23195039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23195040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23195041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23195042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23195043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23195044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23195045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23195046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23195047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23195048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23195049, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23195050, 'pht': 3726}}" where mtr_portfolio_id = 23195014 and dashboard_run_id = 1833365 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`=23195014 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778225, 0.059381538722909015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23195014_21-05-2025_08_16_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23195039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23195040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23195041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23195042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23195043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23195044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23195045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23195046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23195047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23195048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23195049, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23195050, '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 = 23195643 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': 2917923, 'mtr_portfolio_id': 23195643, 'created_at': datetime.datetime(2025, 5, 21, 8, 50, 59), 'result': '0.02679906752060539', 'result_long': None, 'result_double': None}] Qualite : 0.02679906752060539 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23195643 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23195643_21-05-2025_08_51_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23195643 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_P23195643_21-05-2025_08_51_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23195669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23195670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23195671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23195672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23195673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23195674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23195675, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23195676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23195677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23195678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23195679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23195680, 'pht': 3726}}" where mtr_portfolio_id = 23195643 and dashboard_run_id = 1833365 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`=23195643 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778226, 0.02679906752060539, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23195643_21-05-2025_08_51_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23195669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23195670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23195671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23195672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23195673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23195674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23195675, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23195676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23195677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23195678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23195679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23195680, '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 = 23197882 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': 2919029, 'mtr_portfolio_id': 23197882, 'created_at': datetime.datetime(2025, 5, 21, 9, 3, 1), 'result': '0.0885636217096734', 'result_long': None, 'result_double': None}] Qualite : 0.0885636217096734 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23197882 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23197882_21-05-2025_09_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23197882 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_P23197882_21-05-2025_09_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23197961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23197962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23197964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23197965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23197966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23197968, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23197969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23197970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23197972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23197973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23197974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23197976, 'pht': 3726}}" where mtr_portfolio_id = 23197882 and dashboard_run_id = 1833365 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`=23197882 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778227, 0.0885636217096734, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23197882_21-05-2025_09_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23197961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23197962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23197964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23197965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23197966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23197968, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23197969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23197970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23197972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23197973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23197974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23197976, '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 = 23200082 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': 2919470, 'mtr_portfolio_id': 23200082, 'created_at': datetime.datetime(2025, 5, 21, 9, 46, 58), 'result': '0.016096568187864382', 'result_long': None, 'result_double': None}] Qualite : 0.016096568187864382 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23200082 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23200082_21-05-2025_09_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23200082 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_P23200082_21-05-2025_09_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23200084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23200085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23200086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23200087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23200088, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23200089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23200090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23200091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23200092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23200093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23200094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23200095, 'pht': 3726}}" where mtr_portfolio_id = 23200082 and dashboard_run_id = 1833367 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`=23200082 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778228, 0.016096568187864382, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23200082_21-05-2025_09_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23200084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23200085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23200086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23200087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23200088, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23200089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23200090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23200091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23200092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23200093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23200094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23200095, '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 = 23200459 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': 2919529, 'mtr_portfolio_id': 23200459, 'created_at': datetime.datetime(2025, 5, 21, 10, 3, 1), 'result': '0.1053129621044867', 'result_long': None, 'result_double': None}] Qualite : 0.1053129621044867 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23200459 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23200459_21-05-2025_10_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23200459 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_P23200459_21-05-2025_10_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23200514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23200515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23200516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23200517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23200518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23200519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23200520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23200521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23200522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23200523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23200524, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23200526, 'pht': 3726}}" where mtr_portfolio_id = 23200459 and dashboard_run_id = 1833367 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`=23200459 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778229, 0.1053129621044867, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23200459_21-05-2025_10_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23200514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23200515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23200516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23200517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23200518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23200519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23200520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23200521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23200522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23200523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23200524, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23200526, '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 = 23201055 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': 2919695, 'mtr_portfolio_id': 23201055, 'created_at': datetime.datetime(2025, 5, 21, 10, 16, 57), 'result': '0.1266597855156641', 'result_long': None, 'result_double': None}] Qualite : 0.1266597855156641 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23201055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23201055_21-05-2025_10_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23201055 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_P23201055_21-05-2025_10_16_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23201110, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23201111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23201112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23201113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23201114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23201115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23201116, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23201117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23201118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23201119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23201120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23201121, 'pht': 3726}}" where mtr_portfolio_id = 23201055 and dashboard_run_id = 1833367 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`=23201055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778230, 0.1266597855156641, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23201055_21-05-2025_10_16_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23201110, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23201111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23201112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23201113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23201114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23201115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23201116, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23201117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23201118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23201119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23201120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23201121, '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 = 23201666 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': 2919816, 'mtr_portfolio_id': 23201666, 'created_at': datetime.datetime(2025, 5, 21, 10, 31), 'result': '0.03794241794697007', 'result_long': None, 'result_double': None}] Qualite : 0.03794241794697007 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23201666 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23201666_21-05-2025_10_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23201666 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_P23201666_21-05-2025_10_31_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23201696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23201697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23201698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23201699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23201700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23201701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23201702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23201703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23201704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23201705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23201706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23201707, 'pht': 3726}}" where mtr_portfolio_id = 23201666 and dashboard_run_id = 1833367 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`=23201666 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10778231, 0.03794241794697007, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23201666_21-05-2025_10_31_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23201696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23201697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23201698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23201699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23201700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23201701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23201702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23201703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23201704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23201705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23201706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23201707, '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 (23186642,23187474,23188819,23189190,23189732,23190355,23190647,23191339,23191752,23192216,23192562,23193125,23193909,23194440,23195014,23195643,23197882,23200082,23200459,23201055,23201666) result : ((1359928302,), (1359928420,), (1359930048,), (1359930058,), (1359930625,), (1359932674,), (1359932678,), (1359932682,), (1359932728,), (1359941096,), (1359943647,), (1359943706,), (1359944234,), (1359944896,), (1359945243,), (1359945432,), (1359946107,), (1359954058,), (1359954108,), (1359954111,), (1359954112,), (1359954132,), (1359954270,), (1359954287,), (1359954623,), (1359954626,), (1359954741,), (1359954768,), (1359954792,), (1359954815,), (1359954840,), (1359954847,), (1359955073,), (1359955086,), (1359955528,), (1359955556,), (1359955581,), (1359955596,), (1359955598,), (1359955681,), (1359955705,), (1359955715,), (1359955721,), (1359955802,), (1359955804,), (1359955806,), (1359955807,), (1359955809,), (1359955810,), (1359955827,), (1359955829,), (1359955831,), (1359955833,), (1359955850,), (1359955854,), (1359955864,), (1359955891,), (1359956150,), (1359956114,), (1359956117,), (1359956134,), (1359956145,), (1359956147,), (1359956214,), (1359956217,), (1359956220,), (1359956420,), (1359956423,), (1359956435,), (1359956467,), (1359956498,), (1359956748,), (1359956758,), (1359956761,), (1359956764,), (1359956766,), (1359956768,), (1359956784,), (1359956789,), (1359956919,), (1359956947,), (1359956958,), (1359956959,), (1359956966,), (1359956993,), (1359957096,), (1359957099,), (1359957102,), (1359957105,), (1359957107,), (1359957111,), (1359957268,), (1359957281,), (1359957290,), (1359957313,), (1359957546,), (1359957550,), (1359957569,), (1359957572,), (1359957576,), (1359957588,), (1359957625,), (1359957628,), (1359957630,), (1359957632,), (1359957648,), (1359957657,), (1359957660,), (1359957662,), (1359957663,), (1359957679,), (1359957683,), (1359957685,), (1359957689,), (1359957691,), (1359957692,), (1359957897,), (1359957925,), (1359957952,), (1359957980,), (1359958007,), (1359958038,), (1359958136,), (1359958140,), (1359958159,), (1359958186,), (1359958283,), (1359958287,), (1359958294,), (1359958297,), (1359958310,), (1359958335,), (1359958722,), (1359958615,), (1359958669,), (1359959258,), (1359959306,), (1359959336,), (1359959377,), (1359959760,), (1359959784,), (1359959814,), (1359959855,), (1359960060,), (1359960085,), (1359960090,), (1359960093,), (1359960094,), (1359960095,), (1359960115,), (1359960186,), (1359960211,), (1359960236,), (1359960260,), (1359960362,), (1359960368,), (1359960371,), (1359960374,), (1359960377,), (1359960392,), (1359960396,), (1359960413,), (1359960438,), (1359960480,), (1359960527,), (1359960949,), (1359960977,), (1359961016,), (1359961310,), (1359961362,), (1359961409,), (1359961442,), (1359961474,), (1359961622,), (1359961625,), (1359961628,), (1359961631,), (1359961652,), (1359961680,), (1359961794,), (1359961798,), (1359961800,), (1359961803,), (1359961805,), (1359961820,), (1359961824,), (1359961827,), (1359961830,), (1359961833,), (1359961841,), (1359961856,), (1359961859,), (1359961877,), (1359961880,), (1359961904,), (1359961960,), (1359961958,), (1359961986,), (1359961989,), (1359961991,), (1359962011,), (1359962014,), (1359962017,), (1359962019,), (1359962022,), (1359962036,), (1359962037,), (1359962041,), (1359962044,), (1359962062,), (1359962064,), (1359962067,), (1359962069,), (1359962071,), (1359962077,), (1359962103,), (1359962112,), (1359962118,), (1359962121,), (1359962122,), (1359962138,), (1359962141,), (1359962143,), (1359962146,), (1359962148,), (1359962163,), (1359962166,), (1359962168,), (1359962173,), (1359962174,), (1359962175,), (1359962192,), (1359962193,), (1359962196,), (1359962228,), (1359962230,), (1359962232,), (1359962234,), (1359962235,), (1359962236,), (1359962264,), (1359962267,), (1359962270,), (1359962272,), (1359962288,), (1359962291,), (1359962294,), (1359962296,), (1359962298,), (1359962908,), (1359962936,), (1359962962,), (1359962990,), (1359963020,), (1359963048,), (1359963110,), (1359963105,), (1359963107,), (1359963449,), (1359963491,), (1359963517,), (1359963545,), (1359963572,), (1359963598,), (1359963828,), (1359963858,), (1359963888,), (1359963913,), (1359963939,), (1359963965,), (1359964155,), (1359964159,), (1359964162,), (1359964296,), (1359964324,), (1359964354,), (1359964379,), (1359964405,), (1359964422,), (1359964537,), (1359964544,), (1359964546,), (1359964548,), (1359964549,), (1359964873,), (1359964915,), (1359964940,), (1359964945,), (1359964946,), (1359965212,), (1359965215,), (1359965244,), (1359965251,), (1359965350,), (1359965353,), (1359965357,), (1359965360,), (1359965381,), (1359965385,), (1359965401,), (1359965740,), (1359965767,), (1359965792,), (1359965816,), (1359965841,), (1359965938,), (1359965986,), (1359966042,), (1359966097,), (1359966160,), (1359966187,), (1359966364,), (1359966391,), (1359966396,), (1359966409,), (1359966603,), (1359966605,), (1359966606,), (1359966609,), (1359966610,), (1359966626,), (1359966628,), (1359966630,), (1359966631,), (1359966634,), (1359966660,), (1359966647,), (1359966649,), (1359966651,), (1359966658,), (1359966659,), (1359966677,), (1359966678,), (1359966681,), (1359966708,), (1359966711,), (1359966714,), (1359966716,), (1359966734,), (1359966736,), (1359966738,), (1359966740,), (1359966742,), (1359966762,), (1359966766,), (1359966767,), (1359966769,), (1359966773,), (1359966792,), (1359966794,), (1359966796,), (1359966798,), (1359966818,), (1359966821,), (1359966823,), (1359966825,), (1359966828,), (1359966849,), (1359966852,), (1359966855,), (1359966859,), (1359966861,), (1359966881,), (1359966883,), (1359966885,), (1359966887,), (1359966924,), (1359966926,), (1359966928,), (1359966930,), (1359966955,), (1359966959,), (1359966962,), (1359966966,), (1359966969,), (1359966993,), (1359966995,), (1359966997,), (1359966999,), (1359967003,), (1359967042,), (1359967044,), (1359967046,), (1359967051,), (1359967057,), (1359967059,), (1359967085,), (1359967089,), (1359967092,), (1359967095,), (1359967097,), (1359967119,), (1359967121,), (1359967124,), (1359967126,), (1359967131,), (1359967134,), (1359967174,), (1359967161,), (1359967164,), (1359967166,), (1359967168,), (1359967171,), (1359967198,), (1359967200,), (1359967203,), (1359967205,), (1359967240,), (1359967243,), (1359967247,), (1359967251,), (1359967254,), (1359967258,), (1359967318,), (1359967321,), (1359967326,), (1359967331,), (1359967357,), (1359967359,), (1359967361,), (1359967391,), (1359967393,), (1359967395,), (1359967397,), (1359967429,), (1359967432,), (1359967435,), (1359967438,), (1359967475,), (1359967479,), (1359967481,), (1359967485,), (1359967490,), (1359967493,), (1359967515,), (1359967517,), (1359967525,), (1359967529,), (1359967554,), (1359967556,), (1359967558,), (1359967562,), (1359967564,), (1359967567,), (1359967585,), (1359967589,), (1359967592,), (1359967622,), (1359967624,), (1359967626,), (1359967628,), (1359967630,), (1359967633,), (1359967656,), (1359967659,), (1359967673,), (1359967680,), (1359967688,), (1359967701,), (1359967726,), (1359967730,), (1359967733,), (1359967734,), (1359967738,), (1359967762,), (1359967766,), (1359967768,), (1359967771,), (1359967819,), (1359967799,), (1359967803,), (1359967805,), (1359967807,), (1359967813,), (1359967833,), (1359967836,), (1359967840,), (1359967885,), (1359967893,), (1359967895,), (1359967897,), (1359967899,), (1359967902,), (1359967919,), (1359967922,), (1359967925,), (1359967928,), (1359967930,), (1359967951,), (1359967953,), (1359967954,), (1359967980,), (1359967988,), (1359967991,), (1359967994,), (1359967997,), (1359967999,), (1359968020,), (1359968022,), (1359968024,), (1359968055,), (1359968058,), (1359968061,), (1359968064,), (1359968067,), (1359968069,), (1359968089,), (1359968091,), (1359968093,), (1359968097,), (1359968125,), (1359968132,), (1359968136,), (1359968137,), (1359968140,), (1359968161,), (1359968163,), (1359968186,), (1359968189,), (1359968192,), (1359968256,), (1359968259,), (1359968261,), (1359968264,), (1359968267,), (1359968270,), (1359968507,), (1359968537,), (1359968567,), (1359968594,), (1359968623,), (1359968937,), (1359968921,), (1359968924,), (1359968929,), (1359968932,), (1359969068,), (1359969094,), (1359969131,), (1359969175,), (1359969572,), (1359969600,), (1359969630,), (1359969658,), (1359969690,), (1359969838,), (1359969841,), (1359969845,), (1359969849,), (1359970076,), (1359970088,), (1359970093,), (1359970095,), (1359970100,), (1359970105,), (1359970143,), (1359970151,), (1359970169,), (1359970177,), (1359970187,), (1359970212,), (1359970224,), (1359970229,), (1359970234,), (1359970258,), (1359970384,), (1359970409,), (1359970417,), (1359970419,), (1359970423,), (1359970449,), (1359970452,), (1359970456,), (1359970459,), (1359970494,), (1359970495,), (1359970497,), (1359970499,), (1359970500,), (1359970503,), (1359970531,), (1359970533,), (1359970535,), (1359970538,), (1359970572,), (1359970578,), (1359970581,), (1359970592,), (1359970611,), (1359970613,), (1359970617,), (1359970620,), (1359970623,), (1359970689,), (1359970649,), (1359970651,), (1359970655,), (1359970669,), (1359970788,), (1359970791,), (1359970794,), (1359970842,), (1359970845,), (1359970862,), (1359970865,), (1359970869,), (1359970902,), (1359970904,), (1359970908,), (1359970911,), (1359970963,), (1359970964,), (1359970967,), (1359970995,), (1359971010,), (1359971036,), (1359971110,), (1359971112,), (1359971114,), (1359971145,), (1359971148,), (1359971155,), (1359971157,), (1359971171,), (1359971180,), (1359971219,), (1359971224,), (1359971226,), (1359971229,), (1359971300,), (1359971310,), (1359971322,), (1359971331,), (1359971483,), (1359971489,), (1359971493,), (1359971498,), (1359971502,), (1359971518,), (1359971612,), (1359971614,), (1359971633,), (1359971643,), (1359971647,), (1359971764,), (1359971768,), (1359971774,), (1359971805,), (1359971808,), (1359971812,), (1359971816,), (1359971845,), (1359971849,), (1359971854,), (1359971858,), (1359971862,), (1359971865,), (1359971899,), (1359971902,), (1359971906,), (1359971909,), (1359971913,), (1359971915,), (1359971975,), (1359971967,), (1359971969,), (1359971972,), (1359972009,), (1359972012,), (1359972017,), (1359972019,), (1359972022,), (1359972061,), (1359972064,), (1359972067,), (1359972070,), (1359972101,), (1359972104,), (1359972106,), (1359972110,), (1359972112,), (1359972118,), (1359972226,), (1359972240,), (1359972247,), (1359972249,), (1359972255,), (1359972258,), (1359972285,), (1359972288,), (1359972293,), (1359972297,), (1359972326,), (1359972330,), (1359972333,), (1359972336,), (1359972338,), (1359972343,), (1359972374,), (1359972378,), (1359972382,), (1359972386,), (1359972418,), (1359972423,), (1359972426,), (1359972432,), (1359972436,), (1359972442,), (1359972483,), (1359972492,), (1359972497,), (1359972500,), (1359972546,), (1359972549,), (1359972552,), (1359972556,), (1359972562,), (1359972566,), (1359972593,), (1359972598,), (1359972602,), (1359972610,), (1359972628,), (1359972664,), (1359972668,), (1359972671,), (1359972675,), (1359972678,), (1359972772,), (1359972783,), (1359972788,), (1359972792,), (1359972797,), (1359972798,), (1359972821,), (1359972825,), (1359972829,), (1359972833,), (1359972919,), (1359972892,), (1359972905,), (1359972910,), (1359972915,), (1359972944,), (1359972948,), (1359972952,), (1359972957,), (1359972962,), (1359972966,), (1359972991,), (1359972996,), (1359973001,), (1359973007,), (1359973011,), (1359973059,), (1359973065,), (1359973070,), (1359973075,), (1359973079,), (1359973119,), (1359973125,), (1359973133,), (1359973142,), (1359973146,), (1359973149,), (1359973179,), (1359973183,), (1359973187,), (1359973191,), (1359973234,), (1359973239,), (1359973243,), (1359973247,), (1359973291,), (1359973295,), (1359973300,), (1359973304,), (1359973306,), (1359973310,), (1359973338,), (1359973342,), (1359973346,), (1359973352,), (1359973664,), (1359973713,), (1359973750,), (1359973818,), (1359973955,), (1359973960,), (1359973964,), (1359973974,), (1359974002,), (1359974033,), (1359974199,), (1359974228,), (1359974234,), (1359974417,), (1359974437,), (1359974447,), (1359974452,), (1359974462,), (1359974496,), (1359974505,), (1359974511,), (1359974518,), (1359974524,), (1359974617,), (1359974596,), (1359974601,), (1359974606,), (1359974612,), (1359974695,), (1359974699,), (1359974703,), (1359974707,), (1359974735,), (1359974740,), (1359974745,), (1359974785,), (1359974790,), (1359974794,), (1359974796,), (1359974799,), (1359974804,), (1359974825,), (1359974830,), (1359974835,), (1359974842,), (1359974848,), (1359974857,), (1359974887,), (1359974892,), (1359974896,), (1359974903,), (1359974939,), (1359974945,), (1359974955,), (1359974984,), (1359974990,), (1359974995,), (1359974999,), (1359975003,), (1359975032,), (1359975037,), (1359975042,), (1359975045,), (1359975050,), (1359975072,), (1359975078,), (1359975129,), (1359975133,), (1359975137,), (1359975142,), (1359975149,), (1359975183,), (1359975187,), (1359975190,), (1359975195,), (1359975200,), (1359975205,), (1359975226,), (1359975230,), (1359975234,), (1359975237,), (1359975276,), (1359975281,), (1359975285,), (1359975320,), (1359975327,), (1359975338,), (1359975345,), (1359975352,), (1359975398,), (1359975385,), (1359975388,), (1359975393,), (1359975433,), (1359975440,), (1359975446,), (1359975451,), (1359975462,), (1359975501,), (1359975506,), (1359975511,), (1359975560,), (1359975566,), (1359975572,), (1359975624,), (1359975630,), (1359975637,), (1359975642,), (1359975646,), (1359975648,), (1359975685,), (1359975688,), (1359975692,), (1359975697,), (1359975701,), (1359975704,), (1359975733,), (1359975736,), (1359975739,), (1359975743,), (1359975772,), (1359975776,), (1359975780,), (1359975821,), (1359975825,), (1359975830,), (1359975834,), (1359975877,), (1359975882,), (1359975889,), (1359975895,), (1359975902,), (1359975930,), (1359975933,), (1359975937,), (1359975940,), (1359975944,), (1359975971,), (1359975975,), (1359975980,), (1359975985,), (1359977455,), (1359976955,), (1359977421,), (1359977623,), (1359977648,), (1359977656,), (1359977673,), (1359977688,), (1359977749,), (1359977753,), (1359977758,), (1359977907,), (1359977937,), (1359977952,), (1359978379,), (1359978398,), (1359978407,), (1359978411,), (1359978416,), (1359978469,), (1359978496,), (1359978524,), (1359978551,), (1359978797,), (1359978905,), (1359978918,), (1359978932,), (1359978973,), (1359979069,), (1359979073,), (1359979075,), (1359979078,), (1359979087,), (1359979148,), (1359979154,), (1359979160,), (1359979168,), (1359979176,), (1359979232,), (1359983801,), (1359983812,), (1359983853,), (1359983858,), (1359983862,), (1359983865,), (1359983867,), (1359983871,), (1359983911,), (1359983938,), (1359984302,), (1359984332,), (1359984337,), (1359984342,), (1359984497,), (1359984525,), (1359984536,), (1359984821,), (1359984825,), (1359984830,), (1359984845,), (1359984878,), (1359984963,), (1359984965,), (1359984969,), (1359984974,), (1359984979,), (1359985004,), (1359985007,), (1359985017,), (1359985085,), (1359985094,), (1359985102,), (1359985139,), (1359985177,), (1359985204,), (1359985213,), (1359985230,), (1359985290,), (1359985298,), (1359985303,), (1359985308,), (1359985311,), (1359985334,), (1359985339,), (1359985344,), (1359985349,), (1359985437,), (1359985442,), (1359985446,), (1359985450,), (1359985511,), (1359985493,), (1359985497,), (1359985503,), (1359985508,), (1359985607,), (1359985612,), (1359985614,), (1359985617,), (1359985621,), (1359985623,), (1359985782,), (1359985786,), (1359985807,), (1359985811,), (1359985845,), (1359985846,), (1359985848,), (1359985853,), (1359985856,), (1359985860,), (1359985921,), (1359985924,), (1359985927,), (1359985930,), (1359985932,), (1359986081,), (1359986122,), (1359986124,), (1359986268,), (1359986285,), (1359986289,), (1359986293,), (1359986321,), (1359986324,), (1359986327,), (1359986330,), (1359986334,), (1359986338,), (1359986366,), (1359986368,), (1359986371,), (1359986374,), (1359986376,), (1359986381,), (1359986464,), (1359986482,), (1359986492,), (1359986534,), (1359986536,), (1359986539,), (1359986542,), (1359986543,), (1359986716,), (1359986722,), (1359986728,), (1359986735,), (1359986742,), (1359986811,), (1359986802,), (1359986805,), (1359986852,), (1359986868,), (1359986873,), (1359987288,), (1359987472,), (1359987488,), (1359987492,), (1359987513,), (1359987683,), (1359987686,), (1359987690,), (1359987695,), (1359987699,), (1359987701,), (1359987719,), (1359987723,), (1359987726,), (1359987729,), (1359987734,), (1359987761,), (1359987821,), (1359987826,), (1359987830,), (1359987833,), (1359987838,), (1359987854,), (1359987858,), (1359987863,), (1359987900,), (1359987903,), (1359987908,), (1359987914,), (1359987923,), (1359987946,), (1359987953,), (1359987965,), (1359987970,), (1359987974,), (1359987979,), (1359988187,), (1359988214,), (1359988242,), (1359988444,), (1359988459,), (1359988472,), (1359988477,), (1359988481,), (1359988596,), (1359988607,), (1359988612,), (1359988618,), (1359988642,), (1359988750,), (1359988740,), (1359988745,), (1359988776,), (1359988780,), (1359988784,), (1359988816,), (1359988819,), (1359988823,), (1359988827,), (1359988832,), (1359988882,), (1359988888,), (1359988893,), (1359988898,), (1359988915,), (1359988940,), (1359989297,), (1359989336,), (1359989390,), (1359989425,), (1359989457,), (1359989806,), (1359989811,), (1359989819,), (1359989850,), (1359989876,), (1359989994,), (1359989997,), (1359990002,), (1359990006,), (1359990011,), (1359990028,), (1359990032,), (1359990037,), (1359990072,), (1359990076,), (1359990081,), (1359990086,), (1359990088,), (1359990182,), (1359990214,), (1359990244,), (1359990271,), (1359990296,), (1359990322,), (1359990925,), (1359990962,), (1359990986,), (1359991214,), (1359991257,), (1359991274,), (1359991288,), (1359991295,), (1359991316,), (1359991494,), (1359991502,), (1359991514,), (1359991533,), (1359991559,), (1359991582,), (1359991674,), (1359991677,), (1359991705,), (1359991731,), (1359991887,), (1359991926,), (1359991960,), (1359991966,), (1359991970,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'21052025': {'nb_upload': 69, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23201666]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1359991970, 1359991966, 1359991960, 1359991926, 1359991887, 1359991731, 1359991705, 1359991677, 1359991674, 1359991582, 1359991559, 1359991533, 1359991514, 1359991502, 1359991494, 1359991316, 1359991295, 1359991288, 1359991274, 1359991257, 1359991214] map_info['map_portfolio_photo'] : {23201666: [1359991970, 1359991966, 1359991960, 1359991926, 1359991887, 1359991731, 1359991705, 1359991677, 1359991674, 1359991582, 1359991559, 1359991533, 1359991514, 1359991502, 1359991494, 1359991316, 1359991295, 1359991288, 1359991274, 1359991257, 1359991214, 1359990986, 1359990962, 1359990925, 1359990322, 1359990296, 1359990271, 1359990244, 1359990214, 1359990182, 1359990088, 1359990086, 1359990081, 1359990076, 1359990072, 1359990037, 1359990032, 1359990028, 1359990011, 1359990006, 1359990002, 1359989997, 1359989994, 1359989876, 1359989850, 1359989819, 1359989811, 1359989806, 1359989457, 1359989425, 1359989390, 1359989336, 1359989297, 1359988940, 1359988915, 1359988898, 1359988893, 1359988888, 1359988882, 1359988832, 1359988827, 1359988823, 1359988819, 1359988816, 1359988784, 1359988780, 1359988776, 1359988745, 1359988740]} final : True mtd_id 4302 list_pids : [1359991970, 1359991966, 1359991960, 1359991926, 1359991887, 1359991731, 1359991705, 1359991677, 1359991674, 1359991582, 1359991559, 1359991533, 1359991514, 1359991502, 1359991494, 1359991316, 1359991295, 1359991288, 1359991274, 1359991257, 1359991214] Looping around the photos to save general results len do output : 1 /23201666Didn'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, '2919816') ('4302', '23201666', '1359991970', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991966', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991960', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991926', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991887', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991731', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991705', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991677', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991674', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991582', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991559', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991533', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991514', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991502', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991494', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991316', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991295', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991288', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991274', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991257', None, None, None, None, None, '2919816') ('4302', None, None, None, None, None, None, None, '2919816') ('4302', '23201666', '1359991214', None, None, None, None, None, '2919816') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '23201666', 'None', None, None, None, None, '2919816'), ('4302', '23201666', '1359991970', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991966', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991960', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991926', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991887', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991731', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991705', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991677', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991674', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991582', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991559', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991533', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991514', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991502', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991494', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991316', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991295', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991288', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991274', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991257', None, None, None, None, None, '2919816'), ('4302', '23201666', '1359991214', None, None, None, None, None, '2919816')] time used for this insertion : 0.0799703598022461 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8618943691253662 time spend to save output : 0.0802915096282959 total time spend for step 5 : 1.942185878753662 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 (2919816) 2.61user 2.84system 0:10.29elapsed 53%CPU (0avgtext+0avgdata 166148maxresident)k 6688inputs+12096outputs (46major+78149minor)pagefaults 0swaps