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 : 3204028 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 (3667835) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3667835) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26561100 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3667835'] with mtr_portfolio_ids : ['26561100'] and first list_photo_ids : [] new path : /proc/3204028/ Name: python3 Umask: 0002 State: R (running) Tgid: 3204028 Ngid: 0 Pid: 3204028 PPid: 3204027 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3204028 NSpid: 3204028 NSpgid: 3203415 NSsid: 3203415 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99068 kB VmRSS: 99068 kB RssAnon: 60164 kB RssFile: 38904 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 560 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 42 nonvoluntary_ctxt_switches: 140 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3204028', 'Ngid': '0', 'Pid': '3204028', 'PPid': '3204027', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3204028', 'NSpid': '3204028', 'NSpgid': '3203415', 'NSsid': '3203415', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99068 kB', 'VmRSS': '99068 kB', 'RssAnon': '60164 kB', 'RssFile': '38904 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '560 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '42', 'nonvoluntary_ctxt_switches': '140'} ('datou_batch_current', '3204028', '1107252', '0', '1107252', '866004', '99068', b'', 'marlene', '3667835') 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 (26561100) 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 (3667835 ) ) 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 (26561100) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1381624483, 'portfolio_id': 26561100}, {'photo_id': 1381623965, 'portfolio_id': 26561100}, {'photo_id': 1381623964, 'portfolio_id': 26561100}, {'photo_id': 1381623963, 'portfolio_id': 26561100}, {'photo_id': 1381623962, 'portfolio_id': 26561100}, {'photo_id': 1381623860, 'portfolio_id': 26561100}, {'photo_id': 1381623859, 'portfolio_id': 26561100}, {'photo_id': 1381623858, 'portfolio_id': 26561100}, {'photo_id': 1381623857, 'portfolio_id': 26561100}, {'photo_id': 1381623755, 'portfolio_id': 26561100}, {'photo_id': 1381623754, 'portfolio_id': 26561100}, {'photo_id': 1381623753, 'portfolio_id': 26561100}, {'photo_id': 1381623752, 'portfolio_id': 26561100}, {'photo_id': 1381623515, 'portfolio_id': 26561100}, {'photo_id': 1381623514, 'portfolio_id': 26561100}, {'photo_id': 1381623513, 'portfolio_id': 26561100}] map_portfolio_id_photo_id: {26561100: [1381624483, 1381623965, 1381623964, 1381623963, 1381623962, 1381623860, 1381623859, 1381623858, 1381623857, 1381623755, 1381623754, 1381623753, 1381623752, 1381623515, 1381623514, 1381623513]} ##### 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.01580667495727539 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Sep 5 05:48:30 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 (26561100) 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 : 26561100 get user id for portfolio 26561100 get sub ptf for main ptf 26561100, type 3726 and hashtags ['mal_croppe', 'plastique', 'Carton_gris', 'environnement', 'Teint_Dans_La_Masse', 'autre_refus', 'Carton_brun', 'kraft', 'papier', 'flou', 'cartonnette', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26561100 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','Carton_gris','environnement','Teint_Dans_La_Masse','autre_refus','Carton_brun','kraft','papier','flou','cartonnette','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26561100 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','Carton_gris','environnement','Teint_Dans_La_Masse','autre_refus','Carton_brun','kraft','papier','flou','cartonnette','metal')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_3726_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_3726_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_3726_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_3726_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_3726_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_3726_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_3726_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_3726_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_3726_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_3726_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_3726_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_3726_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[26561100, 26561226, 3726, 0.5, 2107755527, 979], [26561100, 26561227, 3726, 0.5, 492725882, 979], [26561100, 26561228, 3726, 0.5, 2107753020, 979], [26561100, 26561229, 3726, 0.5, 493012381, 979], [26561100, 26561230, 3726, 0.5, 2107752385, 979], [26561100, 26561231, 3726, 0.5, 2107752406, 979], [26561100, 26561232, 3726, 0.5, 2107753024, 979], [26561100, 26561233, 3726, 0.5, 493202403, 979], [26561100, 26561234, 3726, 0.5, 492668766, 979], [26561100, 26561235, 3726, 0.5, 492777938, 979], [26561100, 26561236, 3726, 0.5, 702398920, 979], [26561100, 26561237, 3726, 0.5, 492628673, 979]] 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`=26561100 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','Carton_gris','environnement','Teint_Dans_La_Masse','autre_refus','Carton_brun','kraft','papier','flou','cartonnette','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26561100 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','Carton_gris','environnement','Teint_Dans_La_Masse','autre_refus','Carton_brun','kraft','papier','flou','cartonnette','metal')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 26561100, 'sub_port_id': 26561226, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889095, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 30)}, 'plastique': {'main_port_id': 26561100, 'sub_port_id': 26561227, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889096, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 30)}, 'Carton_gris': {'main_port_id': 26561100, 'sub_port_id': 26561228, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889097, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 30)}, 'environnement': {'main_port_id': 26561100, 'sub_port_id': 26561229, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889098, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 26561100, 'sub_port_id': 26561230, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889099, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 30)}, 'autre_refus': {'main_port_id': 26561100, 'sub_port_id': 26561231, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889100, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 30)}, 'Carton_brun': {'main_port_id': 26561100, 'sub_port_id': 26561232, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889101, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 30)}, 'kraft': {'main_port_id': 26561100, 'sub_port_id': 26561233, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889102, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 30)}, 'papier': {'main_port_id': 26561100, 'sub_port_id': 26561234, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889103, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 30)}, 'flou': {'main_port_id': 26561100, 'sub_port_id': 26561235, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889104, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 30)}, 'cartonnette': {'main_port_id': 26561100, 'sub_port_id': 26561236, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889105, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 30)}, 'metal': {'main_port_id': 26561100, 'sub_port_id': 26561237, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889106, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26561226 , 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=26561100 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 (26561226) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26561100) result : ((1381623513,), (1381623514,), (1381623515,), (1381623752,), (1381623753,), (1381623754,), (1381623755,), (1381623857,), (1381623858,), (1381623859,), (1381623860,), (1381623962,), (1381623963,), (1381623964,), (1381623965,), (1381624483,)) 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 26561227 , 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=26561100 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 (26561227) result : ((1381623881,), (1381624043,), (1381624160,), (1381624161,), (1381624162,), (1381624163,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26561100) result : ((1381623513,), (1381623514,), (1381623515,), (1381623752,), (1381623753,), (1381623754,), (1381623755,), (1381623857,), (1381623858,), (1381623859,), (1381623860,), (1381623962,), (1381623963,), (1381623964,), (1381623965,), (1381624483,)) 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 26561228 , 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=26561100 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 (26561228) result : ((1381624027,), (1381624028,), (1381624029,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26561100) result : ((1381623513,), (1381623514,), (1381623515,), (1381623752,), (1381623753,), (1381623754,), (1381623755,), (1381623857,), (1381623858,), (1381623859,), (1381623860,), (1381623962,), (1381623963,), (1381623964,), (1381623965,), (1381624483,)) 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 26561229 , 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=26561100 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 (26561229) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26561100) result : ((1381623513,), (1381623514,), (1381623515,), (1381623752,), (1381623753,), (1381623754,), (1381623755,), (1381623857,), (1381623858,), (1381623859,), (1381623860,), (1381623962,), (1381623963,), (1381623964,), (1381623965,), (1381624483,)) 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 26561230 , 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=26561100 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 (26561230) result : ((1381623875,), (1381623876,), (1381623877,), (1381623878,), (1381623905,), (1381623906,), (1381624039,), (1381624152,), (1381624153,), (1381624154,), (1381624155,), (1381624157,), (1381624158,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26561100) result : ((1381623513,), (1381623514,), (1381623515,), (1381623752,), (1381623753,), (1381623754,), (1381623755,), (1381623857,), (1381623858,), (1381623859,), (1381623860,), (1381623962,), (1381623963,), (1381623964,), (1381623965,), (1381624483,)) 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 26561231 , 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=26561100 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 (26561231) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26561100) result : ((1381623513,), (1381623514,), (1381623515,), (1381623752,), (1381623753,), (1381623754,), (1381623755,), (1381623857,), (1381623858,), (1381623859,), (1381623860,), (1381623962,), (1381623963,), (1381623964,), (1381623965,), (1381624483,)) 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 26561232 , 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=26561100 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 (26561232) result : ((1381623879,), (1381623880,), (1381623907,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26561100) result : ((1381623513,), (1381623514,), (1381623515,), (1381623752,), (1381623753,), (1381623754,), (1381623755,), (1381623857,), (1381623858,), (1381623859,), (1381623860,), (1381623962,), (1381623963,), (1381623964,), (1381623965,), (1381624483,)) 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 26561233 , 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=26561100 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 (26561233) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26561100) result : ((1381623513,), (1381623514,), (1381623515,), (1381623752,), (1381623753,), (1381623754,), (1381623755,), (1381623857,), (1381623858,), (1381623859,), (1381623860,), (1381623962,), (1381623963,), (1381623964,), (1381623965,), (1381624483,)) 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 26561234 , 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=26561100 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 (26561234) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26561100) result : ((1381623513,), (1381623514,), (1381623515,), (1381623752,), (1381623753,), (1381623754,), (1381623755,), (1381623857,), (1381623858,), (1381623859,), (1381623860,), (1381623962,), (1381623963,), (1381623964,), (1381623965,), (1381624483,)) 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 26561235 , 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=26561100 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 (26561235) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26561100) result : ((1381623513,), (1381623514,), (1381623515,), (1381623752,), (1381623753,), (1381623754,), (1381623755,), (1381623857,), (1381623858,), (1381623859,), (1381623860,), (1381623962,), (1381623963,), (1381623964,), (1381623965,), (1381624483,)) 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 26561236 , 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=26561100 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 (26561236) result : ((1381624030,), (1381624159,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26561100) result : ((1381623513,), (1381623514,), (1381623515,), (1381623752,), (1381623753,), (1381623754,), (1381623755,), (1381623857,), (1381623858,), (1381623859,), (1381623860,), (1381623962,), (1381623963,), (1381623964,), (1381623965,), (1381624483,)) 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 26561237 , 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=26561100 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 (26561237) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26561100) result : ((1381623513,), (1381623514,), (1381623515,), (1381623752,), (1381623753,), (1381623754,), (1381623755,), (1381623857,), (1381623858,), (1381623859,), (1381623860,), (1381623962,), (1381623963,), (1381623964,), (1381623965,), (1381624483,)) 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`=26561100 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','Carton_gris','environnement','Teint_Dans_La_Masse','autre_refus','Carton_brun','kraft','papier','flou','cartonnette','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26561100 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','Carton_gris','environnement','Teint_Dans_La_Masse','autre_refus','Carton_brun','kraft','papier','flou','cartonnette','metal')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_4417_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_4417_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_4417_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_4417_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_4417_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_4417_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_4417_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_4417_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_4417_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05092025_05_02_53_009125_4417_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[26561100, 26561238, 4417, 0.5, 2107755527, 979], [26561100, 26561239, 4417, 0.5, 492725882, 979], [26561100, 26561240, 4417, 0.5, 2107753020, 979], [26561100, 26561241, 4417, 0.5, 493012381, 979], [26561100, 26561242, 4417, 0.5, 2107752385, 979], [26561100, 26561243, 4417, 0.5, 2107752406, 979], [26561100, 26561244, 4417, 0.5, 2107753024, 979], [26561100, 26561245, 4417, 0.5, 493202403, 979], [26561100, 26561246, 4417, 0.5, 492668766, 979], [26561100, 26561247, 4417, 0.5, 492777938, 979], [26561100, 26561248, 4417, 0.5, 702398920, 979], [26561100, 26561249, 4417, 0.5, 492628673, 979]] 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`=26561100 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','Carton_gris','environnement','Teint_Dans_La_Masse','autre_refus','Carton_brun','kraft','papier','flou','cartonnette','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26561100 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','Carton_gris','environnement','Teint_Dans_La_Masse','autre_refus','Carton_brun','kraft','papier','flou','cartonnette','metal')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 26561100, 'sub_port_id': 26561238, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889107, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 32)}, 'plastique': {'main_port_id': 26561100, 'sub_port_id': 26561239, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889108, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 32)}, 'Carton_gris': {'main_port_id': 26561100, 'sub_port_id': 26561240, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889109, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 32)}, 'environnement': {'main_port_id': 26561100, 'sub_port_id': 26561241, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889110, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 26561100, 'sub_port_id': 26561242, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889111, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 32)}, 'autre_refus': {'main_port_id': 26561100, 'sub_port_id': 26561243, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889112, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 32)}, 'Carton_brun': {'main_port_id': 26561100, 'sub_port_id': 26561244, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889113, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 32)}, 'kraft': {'main_port_id': 26561100, 'sub_port_id': 26561245, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889114, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 32)}, 'papier': {'main_port_id': 26561100, 'sub_port_id': 26561246, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889115, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 32)}, 'flou': {'main_port_id': 26561100, 'sub_port_id': 26561247, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889116, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 32)}, 'cartonnette': {'main_port_id': 26561100, 'sub_port_id': 26561248, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889117, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 32)}, 'metal': {'main_port_id': 26561100, 'sub_port_id': 26561249, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17889118, 'last_updated_at': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 5, 48, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 5, 48, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26561238,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26561226 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26561239,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26561227 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26561240,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26561228 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26561241,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26561229 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26561242,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26561230 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26561243,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26561231 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26561244,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26561232 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26561245,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26561233 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26561246,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26561234 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26561247,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26561235 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26561248,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26561236 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26561249,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26561237 lien utilise dans velours : https://marlene.fotonower.com/velours/26561238,26561239,26561240,26561241,26561242,26561243,26561244,26561245,26561246,26561247,26561248,26561249?tags=mal_croppe,plastique,Carton_gris,environnement,Teint_Dans_La_Masse,autre_refus,Carton_brun,kraft,papier,flou,cartonnette,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26561100]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1381624483, 1381623965, 1381623964, 1381623963, 1381623962, 1381623860, 1381623859, 1381623858, 1381623857, 1381623755, 1381623754, 1381623753, 1381623752, 1381623515, 1381623514, 1381623513] map_info['map_portfolio_photo'] : {26561100: [1381624483, 1381623965, 1381623964, 1381623963, 1381623962, 1381623860, 1381623859, 1381623858, 1381623857, 1381623755, 1381623754, 1381623753, 1381623752, 1381623515, 1381623514, 1381623513]} final : False mtd_id 4302 list_pids : [1381624483, 1381623965, 1381623964, 1381623963, 1381623962, 1381623860, 1381623859, 1381623858, 1381623857, 1381623755, 1381623754, 1381623753, 1381623752, 1381623515, 1381623514, 1381623513] Looping around the photos to save general results len do output : 1 /26561100. 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, '3667835') ('4302', '26561100', '1381624483', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623965', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623964', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623963', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623962', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623860', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623859', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623858', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623857', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623755', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623754', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623753', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623752', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623515', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623514', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623513', None, None, None, None, None, '3667835') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26561100', "{'mal_croppe': 26561226, 'plastique': 26561227, 'Carton_gris': 26561228, 'environnement': 26561229, 'Teint_Dans_La_Masse': 26561230, 'autre_refus': 26561231, 'Carton_brun': 26561232, 'kraft': 26561233, 'papier': 26561234, 'flou': 26561235, 'cartonnette': 26561236, 'metal': 26561237}", None, None, None, None, '3667835'), ('4302', '26561100', '1381624483', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623965', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623964', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623963', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623962', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623860', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623859', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623858', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623857', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623755', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623754', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623753', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623752', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623515', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623514', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623513', None, None, None, None, None, '3667835')] time used for this insertion : 0.01475834846496582 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4404022693634033 time spend to save output : 0.015078067779541016 total time spend for step 1 : 2.4554803371429443 step2:final Fri Sep 5 05:48:32 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 (26561100) 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 26561100 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1381623515,1381623514,1381623513,1381623755,1381623754,1381623753,1381623752,1381623860,1381623859,1381623858,1381623857,1381623965,1381623964,1381623963,1381623962,1381624483); 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([26561100]) Inside saveOutput : final : False verbose : True original output for save of step final : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ('0.07289219547998828',)} new output for save of step final : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ('0.07289219547998828',)} [1381624483, 1381623965, 1381623964, 1381623963, 1381623962, 1381623860, 1381623859, 1381623858, 1381623857, 1381623755, 1381623754, 1381623753, 1381623752, 1381623515, 1381623514, 1381623513] map_info['map_portfolio_photo'] : {26561100: [1381624483, 1381623965, 1381623964, 1381623963, 1381623962, 1381623860, 1381623859, 1381623858, 1381623857, 1381623755, 1381623754, 1381623753, 1381623752, 1381623515, 1381623514, 1381623513]} final : False mtd_id 4302 list_pids : [1381624483, 1381623965, 1381623964, 1381623963, 1381623962, 1381623860, 1381623859, 1381623858, 1381623857, 1381623755, 1381623754, 1381623753, 1381623752, 1381623515, 1381623514, 1381623513] Looping around the photos to save general results len do output : 16 /1381624483.Didn't retrieve data . /1381623965.Didn't retrieve data . /1381623964.Didn't retrieve data . /1381623963.Didn't retrieve data . /1381623962.Didn't retrieve data . /1381623860.Didn't retrieve data . /1381623859.Didn't retrieve data . /1381623858.Didn't retrieve data . /1381623857.Didn't retrieve data . /1381623755.Didn't retrieve data . /1381623754.Didn't retrieve data . /1381623753.Didn't retrieve data . /1381623752.Didn't retrieve data . /1381623515.Didn't retrieve data . /1381623514.Didn't retrieve data . /1381623513.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, '3667835') ('4302', '26561100', '1381624483', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623965', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623964', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623963', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623962', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623860', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623859', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623858', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623857', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623755', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623754', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623753', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623752', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623515', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623514', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623513', None, None, None, None, None, '3667835') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '26561100', '1381624483', '0.07289219547998828', None, None, None, None, '3667835'), ('4302', '26561100', '1381623965', '0.07289219547998828', None, None, None, None, '3667835'), ('4302', '26561100', '1381623964', '0.07289219547998828', None, None, None, None, '3667835'), ('4302', '26561100', '1381623963', '0.07289219547998828', None, None, None, None, '3667835'), ('4302', '26561100', '1381623962', '0.07289219547998828', None, None, None, None, '3667835'), ('4302', '26561100', '1381623860', '0.07289219547998828', None, None, None, None, '3667835'), ('4302', '26561100', '1381623859', '0.07289219547998828', None, None, None, None, '3667835'), ('4302', '26561100', '1381623858', '0.07289219547998828', None, None, None, None, '3667835'), ('4302', '26561100', '1381623857', '0.07289219547998828', None, None, None, None, '3667835'), ('4302', '26561100', '1381623755', '0.07289219547998828', None, None, None, None, '3667835'), ('4302', '26561100', '1381623754', '0.07289219547998828', None, None, None, None, '3667835'), ('4302', '26561100', '1381623753', '0.07289219547998828', None, None, None, None, '3667835'), ('4302', '26561100', '1381623752', '0.07289219547998828', None, None, None, None, '3667835'), ('4302', '26561100', '1381623515', '0.07289219547998828', None, None, None, None, '3667835'), ('4302', '26561100', '1381623514', '0.07289219547998828', None, None, None, None, '3667835'), ('4302', '26561100', '1381623513', '0.07289219547998828', None, None, None, None, '3667835')] time used for this insertion : 0.014232397079467773 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.02709794044494629 time spend to save output : 0.014927148818969727 total time spend for step 2 : 0.042025089263916016 step3:velours_tree Fri Sep 5 05:48:32 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 : {26561100: [{'mal_croppe': 26561226, 'plastique': 26561227, 'Carton_gris': 26561228, 'environnement': 26561229, 'Teint_Dans_La_Masse': 26561230, 'autre_refus': 26561231, 'Carton_brun': 26561232, 'kraft': 26561233, 'papier': 26561234, 'flou': 26561235, 'cartonnette': 26561236, 'metal': 26561237}]} input_args_next_step : {26561100: ()} output_args : {26561100: [{'mal_croppe': 26561226, 'plastique': 26561227, 'Carton_gris': 26561228, 'environnement': 26561229, 'Teint_Dans_La_Masse': 26561230, 'autre_refus': 26561231, 'Carton_brun': 26561232, 'kraft': 26561233, 'papier': 26561234, 'flou': 26561235, 'cartonnette': 26561236, 'metal': 26561237}]} args : 26561100 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 : ({'mal_croppe': 26561226, 'plastique': 26561227, 'Carton_gris': 26561228, 'environnement': 26561229, 'Teint_Dans_La_Masse': 26561230, 'autre_refus': 26561231, 'Carton_brun': 26561232, 'kraft': 26561233, 'papier': 26561234, 'flou': 26561235, 'cartonnette': 26561236, 'metal': 26561237},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26561100) 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([26561100]) 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.2725255489349365 time spend to save output : 4.100799560546875e-05 total time spend for step 3 : 0.272566556930542 step4:send_mail_cod Fri Sep 5 05:48:32 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 : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ('0.07289219547998828',)} input_args_next_step : {1381624483: ()} output_args : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ('0.07289219547998828',)} args : 1381624483 depend.output_id : 0 input_args_next_step : {1381624483: ('0.07289219547998828',), 1381623965: ()} output_args : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ('0.07289219547998828',)} args : 1381623965 depend.output_id : 0 input_args_next_step : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ()} output_args : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ('0.07289219547998828',)} args : 1381623964 depend.output_id : 0 input_args_next_step : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ()} output_args : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ('0.07289219547998828',)} args : 1381623963 depend.output_id : 0 input_args_next_step : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ()} output_args : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ('0.07289219547998828',)} args : 1381623962 depend.output_id : 0 input_args_next_step : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ()} output_args : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ('0.07289219547998828',)} args : 1381623860 depend.output_id : 0 input_args_next_step : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ()} output_args : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ('0.07289219547998828',)} args : 1381623859 depend.output_id : 0 input_args_next_step : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ()} output_args : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ('0.07289219547998828',)} args : 1381623858 depend.output_id : 0 input_args_next_step : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ()} output_args : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ('0.07289219547998828',)} args : 1381623857 depend.output_id : 0 input_args_next_step : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ()} output_args : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ('0.07289219547998828',)} args : 1381623755 depend.output_id : 0 input_args_next_step : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ()} output_args : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ('0.07289219547998828',)} args : 1381623754 depend.output_id : 0 input_args_next_step : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ()} output_args : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ('0.07289219547998828',)} args : 1381623753 depend.output_id : 0 input_args_next_step : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ()} output_args : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ('0.07289219547998828',)} args : 1381623752 depend.output_id : 0 input_args_next_step : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ()} output_args : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ('0.07289219547998828',)} args : 1381623515 depend.output_id : 0 input_args_next_step : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ()} output_args : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ('0.07289219547998828',)} args : 1381623514 depend.output_id : 0 input_args_next_step : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ()} output_args : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ('0.07289219547998828',)} args : 1381623513 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 : {26561100: [{'mal_croppe': 26561226, 'plastique': 26561227, 'Carton_gris': 26561228, 'environnement': 26561229, 'Teint_Dans_La_Masse': 26561230, 'autre_refus': 26561231, 'Carton_brun': 26561232, 'kraft': 26561233, 'papier': 26561234, 'flou': 26561235, 'cartonnette': 26561236, 'metal': 26561237}]} input_args_next_step : {1381624483: ('0.07289219547998828',), 1381623965: ('0.07289219547998828',), 1381623964: ('0.07289219547998828',), 1381623963: ('0.07289219547998828',), 1381623962: ('0.07289219547998828',), 1381623860: ('0.07289219547998828',), 1381623859: ('0.07289219547998828',), 1381623858: ('0.07289219547998828',), 1381623857: ('0.07289219547998828',), 1381623755: ('0.07289219547998828',), 1381623754: ('0.07289219547998828',), 1381623753: ('0.07289219547998828',), 1381623752: ('0.07289219547998828',), 1381623515: ('0.07289219547998828',), 1381623514: ('0.07289219547998828',), 1381623513: ('0.07289219547998828',), 26561100: ()} output_args : {26561100: [{'mal_croppe': 26561226, 'plastique': 26561227, 'Carton_gris': 26561228, 'environnement': 26561229, 'Teint_Dans_La_Masse': 26561230, 'autre_refus': 26561231, 'Carton_brun': 26561232, 'kraft': 26561233, 'papier': 26561234, 'flou': 26561235, 'cartonnette': 26561236, 'metal': 26561237}]} args : 26561100 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :17, first value : ('0.07289219547998828',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26561100) 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 (1381624483,1381623965,1381623964,1381623963,1381623962,1381623860,1381623859,1381623858,1381623857,1381623755,1381623754,1381623753,1381623752,1381623515,1381623514,1381623513) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1381623513 begin to download photo : 1381623753 begin to download photo : 1381623858 begin to download photo : 1381623963 download finish for photo 1381623513 begin to download photo : 1381623514 download finish for photo 1381623858 begin to download photo : 1381623859 download finish for photo 1381623753 begin to download photo : 1381623754 download finish for photo 1381623963 begin to download photo : 1381623964 download finish for photo 1381623514 begin to download photo : 1381623515 download finish for photo 1381623754 begin to download photo : 1381623755 download finish for photo 1381623859 begin to download photo : 1381623860 download finish for photo 1381623964 begin to download photo : 1381623965 download finish for photo 1381623515 begin to download photo : 1381623752 download finish for photo 1381623755 begin to download photo : 1381623857 download finish for photo 1381623860 begin to download photo : 1381623962 download finish for photo 1381623965 begin to download photo : 1381624483 download finish for photo 1381623752 download finish for photo 1381624483 download finish for photo 1381623962 download finish for photo 1381623857 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette265612261757044113/ length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P26561100_05-09-2025_05_48_33.pdf 26561226 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=26561226 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265612261757044113 26561227 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=26561227 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381623881: '1757041626_1049167_1381623753_d934ee567a06a93ebf39bd3bd2ccc864_72421753_rle_crop_3945370756_0.png', 1381624043: '1757041767_1054773_1381623860_0228842b0a18b4525537db76d3bbcb8e_61000237_rle_crop_3945371185_0.png', 1381624160: '1757041886_1060305_1381623965_560118991dcd191f8174524e9c12e5d7_74131898_rle_crop_3945371368_0.png', 1381624161: '1757041886_1060305_1381623859_6b8de99d53c2d665e42eb6737d2d8d71_14142845_rle_crop_3945371378_0.png', 1381624162: '1757041886_1060305_1381623858_d8c054ab6a3d01c4e33d3a25b3ae284f_3842120_rle_crop_3945371395_0.png', 1381624163: '1757041886_1060305_1381623857_7f11375e2757d3ea0cd9def2003997f5_80578638_rle_crop_3945371418_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/c4ecf30da4d68ef47cc16fdb271aa8bb_15893657.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/654ea90027a750eba645bb494deee586_59333173.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/e318fb49c215fdf7958c59b67b334ac4_29243388.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/382364e2758b1f7f094bb70bf717f714_4790319.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/9f0f96a9542475fee68c0f530ad80088_49615626.png change filename to text .imagette265612271757044113/ imagette265612271757044113/1757041886_1060305_1381623859_6b8de99d53c2d665e42eb6737d2d8d71_14142845_rle_crop_3945371378_0.png.png imagette265612271757044113/1757041886_1060305_1381623965_560118991dcd191f8174524e9c12e5d7_74131898_rle_crop_3945371368_0.png.png imagette265612271757044113/1757041626_1049167_1381623753_d934ee567a06a93ebf39bd3bd2ccc864_72421753_rle_crop_3945370756_0.png.png imagette265612271757044113/1757041886_1060305_1381623857_7f11375e2757d3ea0cd9def2003997f5_80578638_rle_crop_3945371418_0.png.png imagette265612271757044113/1757041767_1054773_1381623860_0228842b0a18b4525537db76d3bbcb8e_61000237_rle_crop_3945371185_0.png.png imagette265612271757044113/1757041886_1060305_1381623858_d8c054ab6a3d01c4e33d3a25b3ae284f_3842120_rle_crop_3945371395_0.png.png imagette265612311757044113/ imagette265612331757044113/ imagette265612351757044113/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/7a1a4d5ec949fb5b469daa19554d864f_20931739.png imagette265612271757044113 26561231 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=26561231 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265612311757044113 26561233 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=26561233 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265612331757044113 26561235 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=26561235 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265612351757044113 26561236 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=26561236 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381624030: '1757041746_1054415_1381623963_27563d25aa278a8d8f735191701f3ea3_97134350_rle_crop_3945371129_0.png', 1381624159: '1757041886_1060305_1381623858_d8c054ab6a3d01c4e33d3a25b3ae284f_3842120_rle_crop_3945371393_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/6bf018264c8382c1d373eb53d8e17ff7_2819774.png change filename to text .imagette265612361757044113/ imagette265612361757044113/1757041746_1054415_1381623963_27563d25aa278a8d8f735191701f3ea3_97134350_rle_crop_3945371129_0.png.png imagette265612361757044113/1757041886_1060305_1381623858_d8c054ab6a3d01c4e33d3a25b3ae284f_3842120_rle_crop_3945371393_0.png.png imagette265612371757044114/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/6d493fff6c91655a4b18ac40f05dca56_40257843.png imagette265612361757044113 26561237 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=26561237 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265612371757044114 26561228 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=26561228 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381624027: '1757041746_1054415_1381623964_40b474733962d107c3da47e89285212b_10755246_rle_crop_3945371116_0.png', 1381624028: '1757041746_1054415_1381623964_40b474733962d107c3da47e89285212b_10755246_rle_crop_3945371115_0.png', 1381624029: '1757041746_1054415_1381623962_cf39b25a692ee830863b633637bcdc09_7784351_rle_crop_3945371143_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/380acdc54de678927057e234202052f8_2622334.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/32a30b60582a08101dcc58084850fc4b_93442015.png change filename to text .imagette265612281757044114/ imagette265612281757044114/1757041746_1054415_1381623962_cf39b25a692ee830863b633637bcdc09_7784351_rle_crop_3945371143_0.png.png imagette265612281757044114/1757041746_1054415_1381623964_40b474733962d107c3da47e89285212b_10755246_rle_crop_3945371116_0.png.png imagette265612281757044114/1757041746_1054415_1381623964_40b474733962d107c3da47e89285212b_10755246_rle_crop_3945371115_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/b6f87c16e82923b9aa4d5e4f01a86bf1_79153536.png imagette265612281757044114 26561230 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=26561230 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381623875: '1757041626_1049167_1381623754_0c5a9b98567d5d70ba8d04b609407149_50341504_rle_crop_3945370740_0.png', 1381623876: '1757041626_1049167_1381623754_0c5a9b98567d5d70ba8d04b609407149_50341504_rle_crop_3945370741_0.png', 1381623877: '1757041626_1049167_1381623753_d934ee567a06a93ebf39bd3bd2ccc864_72421753_rle_crop_3945370763_0.png', 1381623878: '1757041626_1049167_1381623752_1059199503fe12d22c177a76f3dbaae6_15553241_rle_crop_3945370782_0.png', 1381623905: '1757041644_1049626_1381623755_853c63599ad3550eff43f3cd23c8c4b7_30742236_rle_crop_3945370986_0.png', 1381623906: '1757041644_1049626_1381623755_853c63599ad3550eff43f3cd23c8c4b7_30742236_rle_crop_3945370981_0.png', 1381624039: '1757041767_1054773_1381623860_0228842b0a18b4525537db76d3bbcb8e_61000237_rle_crop_3945371189_0.png', 1381624152: '1757041886_1060305_1381623965_560118991dcd191f8174524e9c12e5d7_74131898_rle_crop_3945371367_0.png', 1381624153: '1757041886_1060305_1381623859_6b8de99d53c2d665e42eb6737d2d8d71_14142845_rle_crop_3945371383_0.png', 1381624154: '1757041886_1060305_1381623858_d8c054ab6a3d01c4e33d3a25b3ae284f_3842120_rle_crop_3945371401_0.png', 1381624155: '1757041886_1060305_1381623858_d8c054ab6a3d01c4e33d3a25b3ae284f_3842120_rle_crop_3945371397_0.png', 1381624157: '1757041886_1060305_1381623858_d8c054ab6a3d01c4e33d3a25b3ae284f_3842120_rle_crop_3945371399_0.png', 1381624158: '1757041886_1060305_1381623857_7f11375e2757d3ea0cd9def2003997f5_80578638_rle_crop_3945371412_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/694051e3632c6e8eb959e17815bb80bc_39253623.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/188de56934ae4e04b9fbd7029bba5549_39697141.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/a0b7e6f3c796dbb641e11d1601f9b167_33059139.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/0f2d8908491697baef003635982f2608_12352467.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/1e4fadd98ec8f477de75ebd104abce48_77296148.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/383bec2ba2121e3e7bddf5af0813aee9_11554103.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/2171a29d7d63c6a658b05f1cb663e374_53230864.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/63f8a1b2bf24b7a6a50cf2d6bdfc75ca_68200740.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/9870a0824b619d3dbc8708631f68ebf6_1334843.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/ced286d114dc95dfe5ea96840c687dbb_22845869.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/5c93ed111d0c87665fd5d08b89da3b06_57366166.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/3c72f76218ce1ec395b726d224ee5228_12225258.png change filename to text .imagette265612301757044114/ imagette265612301757044114/1757041886_1060305_1381623965_560118991dcd191f8174524e9c12e5d7_74131898_rle_crop_3945371367_0.png.png imagette265612301757044114/1757041886_1060305_1381623858_d8c054ab6a3d01c4e33d3a25b3ae284f_3842120_rle_crop_3945371399_0.png.png imagette265612301757044114/1757041886_1060305_1381623857_7f11375e2757d3ea0cd9def2003997f5_80578638_rle_crop_3945371412_0.png.png imagette265612301757044114/1757041886_1060305_1381623858_d8c054ab6a3d01c4e33d3a25b3ae284f_3842120_rle_crop_3945371397_0.png.png imagette265612301757044114/1757041644_1049626_1381623755_853c63599ad3550eff43f3cd23c8c4b7_30742236_rle_crop_3945370981_0.png.png imagette265612301757044114/1757041767_1054773_1381623860_0228842b0a18b4525537db76d3bbcb8e_61000237_rle_crop_3945371189_0.png.png imagette265612301757044114/1757041626_1049167_1381623754_0c5a9b98567d5d70ba8d04b609407149_50341504_rle_crop_3945370740_0.png.png imagette265612301757044114/1757041886_1060305_1381623859_6b8de99d53c2d665e42eb6737d2d8d71_14142845_rle_crop_3945371383_0.png.png imagette265612301757044114/1757041644_1049626_1381623755_853c63599ad3550eff43f3cd23c8c4b7_30742236_rle_crop_3945370986_0.png.png imagette265612301757044114/1757041626_1049167_1381623752_1059199503fe12d22c177a76f3dbaae6_15553241_rle_crop_3945370782_0.png.png imagette265612301757044114/1757041626_1049167_1381623754_0c5a9b98567d5d70ba8d04b609407149_50341504_rle_crop_3945370741_0.png.png imagette265612301757044114/1757041886_1060305_1381623858_d8c054ab6a3d01c4e33d3a25b3ae284f_3842120_rle_crop_3945371401_0.png.png imagette265612301757044114/1757041626_1049167_1381623753_d934ee567a06a93ebf39bd3bd2ccc864_72421753_rle_crop_3945370763_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/cdd8c85802645e921bc34476f69e299c_23420815.png imagette265612301757044114 26561232 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=26561232 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381623879: '1757041626_1049167_1381623753_d934ee567a06a93ebf39bd3bd2ccc864_72421753_rle_crop_3945370758_0.png', 1381623880: '1757041626_1049167_1381623752_1059199503fe12d22c177a76f3dbaae6_15553241_rle_crop_3945370780_0.png', 1381623907: '1757041644_1049626_1381623513_70da6867480309dc8a8df0af7d58cbc7_93142930_rle_crop_3945371011_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/dae732226c513ce2171c0c53aca39497_63129921.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/f5b420a6cbe5acab1a2ed43915179394_40646933.png change filename to text .imagette265612321757044115/ imagette265612321757044115/1757041626_1049167_1381623752_1059199503fe12d22c177a76f3dbaae6_15553241_rle_crop_3945370780_0.png.png imagette265612321757044115/1757041626_1049167_1381623753_d934ee567a06a93ebf39bd3bd2ccc864_72421753_rle_crop_3945370758_0.png.png imagette265612321757044115/1757041644_1049626_1381623513_70da6867480309dc8a8df0af7d58cbc7_93142930_rle_crop_3945371011_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/ce492ce981d08a2798158954183b0476_42574776.png imagette265612321757044115 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26561100 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26561238,26561239,26561240,26561241,26561242,26561243,26561244,26561245,26561246,26561247,26561248,26561249?tags=mal_croppe,plastique,Carton_gris,environnement,Teint_Dans_La_Masse,autre_refus,Carton_brun,kraft,papier,flou,cartonnette,metal your option no_mail is active, we will not send the real mail to your client args[1381624483] : ('0.07289219547998828',) no score found for photo 1381624483 We are sending mail with results at report@fotonower.com args[1381623965] : ('0.07289219547998828',) no score found for photo 1381623965 We are sending mail with results at report@fotonower.com args[1381623964] : ('0.07289219547998828',) no score found for photo 1381623964 We are sending mail with results at report@fotonower.com args[1381623963] : ('0.07289219547998828',) no score found for photo 1381623963 We are sending mail with results at report@fotonower.com args[1381623962] : ('0.07289219547998828',) no score found for photo 1381623962 We are sending mail with results at report@fotonower.com args[1381623860] : ('0.07289219547998828',) no score found for photo 1381623860 We are sending mail with results at report@fotonower.com args[1381623859] : ('0.07289219547998828',) no score found for photo 1381623859 We are sending mail with results at report@fotonower.com args[1381623858] : ('0.07289219547998828',) no score found for photo 1381623858 We are sending mail with results at report@fotonower.com args[1381623857] : ('0.07289219547998828',) no score found for photo 1381623857 We are sending mail with results at report@fotonower.com args[1381623755] : ('0.07289219547998828',) no score found for photo 1381623755 We are sending mail with results at report@fotonower.com args[1381623754] : ('0.07289219547998828',) no score found for photo 1381623754 We are sending mail with results at report@fotonower.com args[1381623753] : ('0.07289219547998828',) no score found for photo 1381623753 We are sending mail with results at report@fotonower.com args[1381623752] : ('0.07289219547998828',) no score found for photo 1381623752 We are sending mail with results at report@fotonower.com args[1381623515] : ('0.07289219547998828',) no score found for photo 1381623515 We are sending mail with results at report@fotonower.com args[1381623514] : ('0.07289219547998828',) no score found for photo 1381623514 We are sending mail with results at report@fotonower.com args[1381623513] : ('0.07289219547998828',) no score found for photo 1381623513 We are sending mail with results at report@fotonower.com refus_total : 0.07289219547998828 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=26561100 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_P26561100_05-09-2025_05_48_33.pdf results_Auto_P26561100_05-09-2025_05_48_33.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561100_05-09-2025_05_48_33.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','26561100','results_Auto_P26561100_05-09-2025_05_48_33.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561100_05-09-2025_05_48_33.pdf','pdf','','0.21','0.07289219547998828') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26561100]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1381624483, 1381623965, 1381623964, 1381623963, 1381623962, 1381623860, 1381623859, 1381623858, 1381623857, 1381623755, 1381623754, 1381623753, 1381623752, 1381623515, 1381623514, 1381623513] map_info['map_portfolio_photo'] : {26561100: [1381624483, 1381623965, 1381623964, 1381623963, 1381623962, 1381623860, 1381623859, 1381623858, 1381623857, 1381623755, 1381623754, 1381623753, 1381623752, 1381623515, 1381623514, 1381623513]} final : False mtd_id 4302 list_pids : [1381624483, 1381623965, 1381623964, 1381623963, 1381623962, 1381623860, 1381623859, 1381623858, 1381623857, 1381623755, 1381623754, 1381623753, 1381623752, 1381623515, 1381623514, 1381623513] 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, '3667835') ('4302', '26561100', '1381624483', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623965', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623964', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623963', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623962', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623860', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623859', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623858', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623857', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623755', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623754', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623753', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623752', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623515', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623514', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623513', None, None, None, None, None, '3667835') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '26561100', '1381624483', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623965', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623964', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623963', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623962', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623860', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623859', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623858', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623857', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623755', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623754', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623753', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623752', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623515', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623514', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623513', None, None, None, None, None, '3667835')] time used for this insertion : 0.017362356185913086 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.8822853565216064 time spend to save output : 0.017651081085205078 total time spend for step 4 : 3.8999364376068115 step5:split_time_score Fri Sep 5 05:48:36 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 : ['26561100'] 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 : [('26561100',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26561100) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1381623513: {'path': 'temp/1757044112_3204028_1381623513_70da6867480309dc8a8df0af7d58cbc7_93142930.jpg', 'extension': 'jpg'}, 1381623514: {'path': 'temp/1757044112_3204028_1381623514_c7224dd151ca288bbdbfb503e583c230_41720489.jpg', 'extension': 'jpg'}, 1381623515: {'path': 'temp/1757044112_3204028_1381623515_5b751a2e3f79596b73efd9be5d0f6164_81012082.jpg', 'extension': 'jpg'}, 1381623752: {'path': 'temp/1757044112_3204028_1381623752_1059199503fe12d22c177a76f3dbaae6_15553241.jpg', 'extension': 'jpg'}, 1381623963: {'path': 'temp/1757044112_3204028_1381623963_27563d25aa278a8d8f735191701f3ea3_97134350.jpg', 'extension': 'jpg'}, 1381623964: {'path': 'temp/1757044112_3204028_1381623964_40b474733962d107c3da47e89285212b_10755246.jpg', 'extension': 'jpg'}, 1381623965: {'path': 'temp/1757044112_3204028_1381623965_560118991dcd191f8174524e9c12e5d7_74131898.jpg', 'extension': 'jpg'}, 1381624483: {'path': 'temp/1757044112_3204028_1381624483_eeddcbd7a23be19d90f1842922bb8e87_77077175.jpg', 'extension': 'jpg'}, 1381623858: {'path': 'temp/1757044112_3204028_1381623858_d8c054ab6a3d01c4e33d3a25b3ae284f_3842120.jpg', 'extension': 'jpg'}, 1381623859: {'path': 'temp/1757044112_3204028_1381623859_6b8de99d53c2d665e42eb6737d2d8d71_14142845.jpg', 'extension': 'jpg'}, 1381623860: {'path': 'temp/1757044112_3204028_1381623860_0228842b0a18b4525537db76d3bbcb8e_61000237.jpg', 'extension': 'jpg'}, 1381623962: {'path': 'temp/1757044112_3204028_1381623962_cf39b25a692ee830863b633637bcdc09_7784351.jpg', 'extension': 'jpg'}, 1381623753: {'path': 'temp/1757044112_3204028_1381623753_d934ee567a06a93ebf39bd3bd2ccc864_72421753.jpg', 'extension': 'jpg'}, 1381623754: {'path': 'temp/1757044112_3204028_1381623754_0c5a9b98567d5d70ba8d04b609407149_50341504.jpg', 'extension': 'jpg'}, 1381623755: {'path': 'temp/1757044112_3204028_1381623755_853c63599ad3550eff43f3cd23c8c4b7_30742236.jpg', 'extension': 'jpg'}, 1381623857: {'path': 'temp/1757044112_3204028_1381623857_7f11375e2757d3ea0cd9def2003997f5_80578638.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 = 26561100; (('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 = 26561100 group by h (('05', 16),) 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=26561100 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 (26561100) 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 (26561100) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05092025 26561100 Nombre de photos uploadées : 16 / 23040 (0%) 05092025 26561100 Nombre de photos taguées (types de déchets): 0 / 16 (0%) 05092025 26561100 Nombre de photos taguées (volume) : 0 / 16 (0%) [{'photo_id': 1381623515, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/5b751a2e3f79596b73efd9be5d0f6164_81012082.jpg', 'username': None, 'uploaded_at': 1757041512, 'text': 'image_05092025_05_02_53_9125.jpg'}, {'photo_id': 1381623514, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/c7224dd151ca288bbdbfb503e583c230_41720489.jpg', 'username': None, 'uploaded_at': 1757041512, 'text': 'image_05092025_05_04_34_010140m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1381623513, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/70da6867480309dc8a8df0af7d58cbc7_93142930.jpg', 'username': None, 'uploaded_at': 1757041512, 'text': 'image_05092025_05_04_44_010137m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1381623755, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/853c63599ad3550eff43f3cd23c8c4b7_30742236.jpg', 'username': None, 'uploaded_at': 1757041572, 'text': 'image_05092025_05_04_54_010142m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ???????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0008602142333984375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26561100, '2025-09-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-09-05' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2234129,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.22655916213989258 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= 2234129 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242777, 'mtr_portfolio_id': 26552286, 'dashboard_result_id': 14785296, '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_P26552286_05-09-2025_00_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242777, 'mtr_portfolio_id': 26552950, 'dashboard_result_id': 14785297, '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_P26552950_05-09-2025_00_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26552954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552965, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242777, 'mtr_portfolio_id': 26553483, 'dashboard_result_id': 14785298, '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_P26553483_05-09-2025_00_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553501, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242777, 'mtr_portfolio_id': 26553954, 'dashboard_result_id': 14785299, '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_P26553954_05-09-2025_02_01_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553974, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242777, 'mtr_portfolio_id': 26555558, 'dashboard_result_id': 14785300, '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_P26555558_05-09-2025_02_02_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26555617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555628, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242777, 'mtr_portfolio_id': 26555560, 'dashboard_result_id': 14785301, '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_P26555560_05-09-2025_02_34_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26555568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555575, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242777, 'mtr_portfolio_id': 26556761, 'dashboard_result_id': 14785302, '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_P26556761_05-09-2025_02_35_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26556766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556777, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242777, 'mtr_portfolio_id': 26556619, 'dashboard_result_id': 14785303, '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_P26556619_05-09-2025_02_33_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26556649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556660, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242777, 'mtr_portfolio_id': 26556621, 'dashboard_result_id': 14785304, '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_P26556621_05-09-2025_02_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556636, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242777, 'mtr_portfolio_id': 26557110, 'dashboard_result_id': 14785305, '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_P26557110_05-09-2025_03_06_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557129, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242777, 'mtr_portfolio_id': 26557601, 'dashboard_result_id': 14785306, '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_P26557601_05-09-2025_03_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557606, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557615, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242777, 'mtr_portfolio_id': 26557985, 'dashboard_result_id': 14785307, '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_P26557985_05-09-2025_03_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558000, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242777, 'mtr_portfolio_id': 26558350, 'dashboard_result_id': 14785308, '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_P26558350_05-09-2025_03_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558368, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242777, 'mtr_portfolio_id': 26558751, 'dashboard_result_id': 14785309, '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_P26558751_05-09-2025_04_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558771, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242777, 'mtr_portfolio_id': 26559193, 'dashboard_result_id': 14785310, '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_P26559193_05-09-2025_04_15_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26559218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26559219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26559220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26559221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26559222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26559223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26559224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26559225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26559226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26559228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26559229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26559230, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242777, 'mtr_portfolio_id': 26561100, 'dashboard_result_id': 14785311, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242777, 'mtr_portfolio_id': 26561102, 'dashboard_result_id': 14785312, '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_P26561102_05-09-2025_05_47_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561141, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242777, 'mtr_portfolio_id': 26561104, 'dashboard_result_id': 14785313, '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_P26561104_05-09-2025_05_48_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561189, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242777, 'mtr_portfolio_id': 26561105, 'dashboard_result_id': 14785314, '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_P26561105_05-09-2025_05_47_00.pdf'}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26552286 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': 3666584, 'mtr_portfolio_id': 26552286, 'created_at': datetime.datetime(2025, 9, 5, 0, 17), 'result': '0.04774675192080819', 'result_long': None, 'result_double': None}] Qualite : 0.04774675192080819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26552286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552286_05-09-2025_00_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26552286 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_P26552286_05-09-2025_00_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, 'pht': 3726}}" where mtr_portfolio_id = 26552286 and dashboard_run_id = 2242777 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`=26552286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14785296, 0.04774675192080819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552286_05-09-2025_00_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, '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 = 26552950 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': 3666648, 'mtr_portfolio_id': 26552950, 'created_at': datetime.datetime(2025, 9, 5, 0, 32, 57), 'result': '0.053637049482939146', 'result_long': None, 'result_double': None}] Qualite : 0.053637049482939146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26552950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552950_05-09-2025_00_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26552950 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_P26552950_05-09-2025_00_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26552954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552965, 'pht': 3726}}" where mtr_portfolio_id = 26552950 and dashboard_run_id = 2242777 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`=26552950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14785297, 0.053637049482939146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552950_05-09-2025_00_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26552954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552965, '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 = 26553483 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': 3666712, 'mtr_portfolio_id': 26553483, 'created_at': datetime.datetime(2025, 9, 5, 0, 47, 1), 'result': '0.0521622743835702', 'result_long': None, 'result_double': None}] Qualite : 0.0521622743835702 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26553483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553483_05-09-2025_00_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26553483 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_P26553483_05-09-2025_00_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553501, 'pht': 3726}}" where mtr_portfolio_id = 26553483 and dashboard_run_id = 2242777 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`=26553483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14785298, 0.0521622743835702, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553483_05-09-2025_00_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553501, '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 = 26553954 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': 3666772, 'mtr_portfolio_id': 26553954, 'created_at': datetime.datetime(2025, 9, 5, 2, 1, 2), 'result': '0.038686864708222954', 'result_long': None, 'result_double': None}] Qualite : 0.038686864708222954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26553954 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553954_05-09-2025_02_01_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26553954 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_P26553954_05-09-2025_02_01_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553974, 'pht': 3726}}" where mtr_portfolio_id = 26553954 and dashboard_run_id = 2242777 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`=26553954 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14785299, 0.038686864708222954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553954_05-09-2025_02_01_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553974, '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 = 26555558 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': 3666993, 'mtr_portfolio_id': 26555558, 'created_at': datetime.datetime(2025, 9, 5, 2, 2, 2), 'result': '0.05771406143431616', 'result_long': None, 'result_double': None}] Qualite : 0.05771406143431616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26555558 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555558_05-09-2025_02_02_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26555558 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_P26555558_05-09-2025_02_02_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26555617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555628, 'pht': 3726}}" where mtr_portfolio_id = 26555558 and dashboard_run_id = 2242777 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`=26555558 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14785300, 0.05771406143431616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555558_05-09-2025_02_02_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26555617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555628, '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 = 26555560 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': 3666994, 'mtr_portfolio_id': 26555560, 'created_at': datetime.datetime(2025, 9, 5, 2, 34), 'result': '0.043526961330972676', 'result_long': None, 'result_double': None}] Qualite : 0.043526961330972676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26555560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555560_05-09-2025_02_34_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26555560 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_P26555560_05-09-2025_02_34_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26555568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555575, 'pht': 3726}}" where mtr_portfolio_id = 26555560 and dashboard_run_id = 2242777 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`=26555560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14785301, 0.043526961330972676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555560_05-09-2025_02_34_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26555568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555575, '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 = 26556761 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': 3667087, 'mtr_portfolio_id': 26556761, 'created_at': datetime.datetime(2025, 9, 5, 2, 35, 30), 'result': '0.050995299214166845', 'result_long': None, 'result_double': None}] Qualite : 0.050995299214166845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26556761 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556761_05-09-2025_02_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26556761 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_P26556761_05-09-2025_02_35_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26556766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556777, 'pht': 3726}}" where mtr_portfolio_id = 26556761 and dashboard_run_id = 2242777 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`=26556761 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14785302, 0.050995299214166845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556761_05-09-2025_02_35_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26556766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556777, '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 = 26556619 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': 3667078, 'mtr_portfolio_id': 26556619, 'created_at': datetime.datetime(2025, 9, 5, 2, 33, 30), 'result': '0.07673693332822124', 'result_long': None, 'result_double': None}] Qualite : 0.07673693332822124 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26556619 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556619_05-09-2025_02_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26556619 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_P26556619_05-09-2025_02_33_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26556649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556660, 'pht': 3726}}" where mtr_portfolio_id = 26556619 and dashboard_run_id = 2242777 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`=26556619 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14785303, 0.07673693332822124, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556619_05-09-2025_02_33_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26556649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556660, '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 = 26556621 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': 3667079, 'mtr_portfolio_id': 26556621, 'created_at': datetime.datetime(2025, 9, 5, 2, 46, 58), 'result': '0.0664857122408595', 'result_long': None, 'result_double': None}] Qualite : 0.0664857122408595 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26556621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556621_05-09-2025_02_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26556621 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_P26556621_05-09-2025_02_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556636, 'pht': 3726}}" where mtr_portfolio_id = 26556621 and dashboard_run_id = 2242777 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`=26556621 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14785304, 0.0664857122408595, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556621_05-09-2025_02_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556636, '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 = 26557110 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': 3667139, 'mtr_portfolio_id': 26557110, 'created_at': datetime.datetime(2025, 9, 5, 3, 6, 57), 'result': '0.05256991522493719', 'result_long': None, 'result_double': None}] Qualite : 0.05256991522493719 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26557110 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557110_05-09-2025_03_06_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26557110 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_P26557110_05-09-2025_03_06_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557129, 'pht': 3726}}" where mtr_portfolio_id = 26557110 and dashboard_run_id = 2242777 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`=26557110 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14785305, 0.05256991522493719, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557110_05-09-2025_03_06_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557129, '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 = 26557601 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': 3667225, 'mtr_portfolio_id': 26557601, 'created_at': datetime.datetime(2025, 9, 5, 3, 16, 59), 'result': '0.06752967265858235', 'result_long': None, 'result_double': None}] Qualite : 0.06752967265858235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26557601 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557601_05-09-2025_03_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26557601 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_P26557601_05-09-2025_03_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557606, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557615, 'pht': 3726}}" where mtr_portfolio_id = 26557601 and dashboard_run_id = 2242777 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`=26557601 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14785306, 0.06752967265858235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557601_05-09-2025_03_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557606, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557615, '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 = 26557985 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': 3667252, 'mtr_portfolio_id': 26557985, 'created_at': datetime.datetime(2025, 9, 5, 3, 32, 58), 'result': '0.050265012304524966', 'result_long': None, 'result_double': None}] Qualite : 0.050265012304524966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26557985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557985_05-09-2025_03_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26557985 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_P26557985_05-09-2025_03_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558000, 'pht': 3726}}" where mtr_portfolio_id = 26557985 and dashboard_run_id = 2242777 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`=26557985 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14785307, 0.050265012304524966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557985_05-09-2025_03_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558000, '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 = 26558350 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': 3667308, 'mtr_portfolio_id': 26558350, 'created_at': datetime.datetime(2025, 9, 5, 3, 46, 59), 'result': '0.054930995283354905', 'result_long': None, 'result_double': None}] Qualite : 0.054930995283354905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26558350 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26558350_05-09-2025_03_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26558350 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_P26558350_05-09-2025_03_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558368, 'pht': 3726}}" where mtr_portfolio_id = 26558350 and dashboard_run_id = 2242777 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`=26558350 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14785308, 0.054930995283354905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26558350_05-09-2025_03_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558368, '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 = 26558751 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': 3667374, 'mtr_portfolio_id': 26558751, 'created_at': datetime.datetime(2025, 9, 5, 4, 2, 59), 'result': '0.06562548839628608', 'result_long': None, 'result_double': None}] Qualite : 0.06562548839628608 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26558751 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26558751_05-09-2025_04_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26558751 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_P26558751_05-09-2025_04_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558771, 'pht': 3726}}" where mtr_portfolio_id = 26558751 and dashboard_run_id = 2242777 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`=26558751 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14785309, 0.06562548839628608, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26558751_05-09-2025_04_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558771, '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 = 26559193 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': 3667474, 'mtr_portfolio_id': 26559193, 'created_at': datetime.datetime(2025, 9, 5, 4, 15), 'result': '0.03545835453789996', 'result_long': None, 'result_double': None}] Qualite : 0.03545835453789996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26559193 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26559193_05-09-2025_04_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26559193 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_P26559193_05-09-2025_04_15_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26559218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26559219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26559220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26559221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26559222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26559223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26559224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26559225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26559226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26559228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26559229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26559230, 'pht': 3726}}" where mtr_portfolio_id = 26559193 and dashboard_run_id = 2242777 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`=26559193 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14785310, 0.03545835453789996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26559193_05-09-2025_04_15_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26559218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26559219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26559220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26559221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26559222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26559223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26559224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26559225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26559226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26559228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26559229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26559230, '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 = 26561100 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': 3667835, 'mtr_portfolio_id': 26561100, 'created_at': datetime.datetime(2025, 9, 5, 5, 48, 32), 'result': '0.07289219547998828', 'result_long': None, 'result_double': None}] Qualite : 0.07289219547998828 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26561100 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561100_05-09-2025_05_48_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26561100 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_P26561100_05-09-2025_05_48_33.pdf'}" where mtr_portfolio_id = 26561100 and dashboard_run_id = 2242777 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`=26561100 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14785311, 0.07289219547998828, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561100_05-09-2025_05_48_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561228, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561237, '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 = 26561102 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': 3667836, 'mtr_portfolio_id': 26561102, 'created_at': datetime.datetime(2025, 9, 5, 5, 47, 29), 'result': '0.057297069317970954', 'result_long': None, 'result_double': None}] Qualite : 0.057297069317970954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26561102 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561102_05-09-2025_05_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26561102 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_P26561102_05-09-2025_05_47_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561141, 'pht': 3726}}" where mtr_portfolio_id = 26561102 and dashboard_run_id = 2242775 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`=26561102 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14785312, 0.057297069317970954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561102_05-09-2025_05_47_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561141, '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 = 26561104 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': 3667837, 'mtr_portfolio_id': 26561104, 'created_at': datetime.datetime(2025, 9, 5, 5, 47, 59), 'result': '0.06210840669781008', 'result_long': None, 'result_double': None}] Qualite : 0.06210840669781008 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26561104 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561104_05-09-2025_05_48_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26561104 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_P26561104_05-09-2025_05_48_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561189, 'pht': 3726}}" where mtr_portfolio_id = 26561104 and dashboard_run_id = 2242775 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`=26561104 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14785313, 0.06210840669781008, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561104_05-09-2025_05_48_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561189, '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 = 26561105 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26561105 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26561105 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26561105 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26561105 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26561105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561105_05-09-2025_05_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26561105 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_P26561105_05-09-2025_05_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561106, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561117, 'pht': 3726}}" where mtr_portfolio_id = 26561105 and dashboard_run_id = 2242775 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26552286,26552950,26553483,26553954,26555558,26555560,26556761,26556619,26556621,26557110,26557601,26557985,26558350,26558751,26559193,26561100,26561102,26561104,26561105) result : ((1381585163,), (1381585166,), (1381585170,), (1381585665,), (1381585668,), (1381585671,), (1381585674,), (1381585677,), (1381585680,), (1381586198,), (1381586202,), (1381586206,), (1381586210,), (1381586214,), (1381586704,), (1381586707,), (1381586710,), (1381586992,), (1381586994,), (1381586997,), (1381587000,), (1381587003,), (1381587006,), (1381587312,), (1381587313,), (1381587314,), (1381587315,), (1381587316,), (1381587317,), (1381587397,), (1381587398,), (1381587400,), (1381587401,), (1381587402,), (1381587480,), (1381587483,), (1381587484,), (1381587485,), (1381587536,), (1381587537,), (1381587539,), (1381587540,), (1381587541,), (1381587542,), (1381587601,), (1381587602,), (1381587603,), (1381587604,), (1381587605,), (1381587655,), (1381587657,), (1381587659,), (1381587816,), (1381587817,), (1381587818,), (1381587820,), (1381587821,), (1381587823,), (1381587981,), (1381587982,), (1381587983,), (1381587985,), (1381588048,), (1381588049,), (1381588050,), (1381588051,), (1381588053,), (1381588055,), (1381588093,), (1381588095,), (1381588097,), (1381588099,), (1381588102,), (1381588104,), (1381588400,), (1381588393,), (1381588395,), (1381588397,), (1381588567,), (1381588569,), (1381588571,), (1381588573,), (1381588575,), (1381588743,), (1381588744,), (1381588745,), (1381588746,), (1381588747,), (1381588749,), (1381588979,), (1381588981,), (1381588984,), (1381588986,), (1381589178,), (1381589180,), (1381589182,), (1381589184,), (1381589187,), (1381589189,), (1381589294,), (1381589295,), (1381589296,), (1381589297,), (1381589298,), (1381589300,), (1381589350,), (1381589351,), (1381589352,), (1381589353,), (1381589392,), (1381589394,), (1381589395,), (1381589397,), (1381589398,), (1381589435,), (1381589443,), (1381589444,), (1381589446,), (1381589447,), (1381589489,), (1381589490,), (1381589491,), (1381589492,), (1381589540,), (1381589541,), (1381589542,), (1381589543,), (1381589545,), (1381589546,), (1381589611,), (1381589613,), (1381589616,), (1381589620,), (1381589623,), (1381589726,), (1381589727,), (1381589728,), (1381589729,), (1381589730,), (1381589765,), (1381589766,), (1381589821,), (1381589822,), (1381589823,), (1381589824,), (1381589865,), (1381589860,), (1381589861,), (1381589862,), (1381589863,), (1381589970,), (1381589971,), (1381589973,), (1381589974,), (1381590017,), (1381590018,), (1381590019,), (1381590020,), (1381590021,), (1381590022,), (1381590076,), (1381590078,), (1381590079,), (1381590080,), (1381590082,), (1381590157,), (1381590159,), (1381590160,), (1381590161,), (1381590196,), (1381590197,), (1381590198,), (1381590199,), (1381590234,), (1381590235,), (1381590236,), (1381590237,), (1381590239,), (1381590316,), (1381590317,), (1381590318,), (1381590319,), (1381590321,), (1381590351,), (1381590352,), (1381590353,), (1381590354,), (1381590355,), (1381590356,), (1381590404,), (1381590405,), (1381590407,), (1381590408,), (1381590409,), (1381590410,), (1381590454,), (1381590456,), (1381590457,), (1381590458,), (1381590504,), (1381590505,), (1381590506,), (1381590507,), (1381590508,), (1381590509,), (1381590543,), (1381590544,), (1381590545,), (1381590546,), (1381590548,), (1381590617,), (1381590618,), (1381590619,), (1381590661,), (1381590663,), (1381590664,), (1381590665,), (1381590666,), (1381590667,), (1381590717,), (1381590712,), (1381590713,), (1381590714,), (1381590715,), (1381590716,), (1381590753,), (1381590754,), (1381590828,), (1381590830,), (1381590832,), (1381590835,), (1381590837,), (1381590877,), (1381590878,), (1381590879,), (1381590880,), (1381590881,), (1381590927,), (1381590928,), (1381590929,), (1381590930,), (1381590964,), (1381590965,), (1381590966,), (1381590967,), (1381591124,), (1381591169,), (1381591170,), (1381591171,), (1381591172,), (1381591173,), (1381591217,), (1381591218,), (1381591220,), (1381591224,), (1381591227,), (1381591229,), (1381591243,), (1381591244,), (1381591245,), (1381591246,), (1381591248,), (1381591413,), (1381591415,), (1381591417,), (1381591419,), (1381591421,), (1381595847,), (1381595882,), (1381595883,), (1381595884,), (1381595886,), (1381595887,), (1381595947,), (1381595948,), (1381595949,), (1381596040,), (1381596041,), (1381596042,), (1381596099,), (1381596100,), (1381596101,), (1381596102,), (1381596147,), (1381596148,), (1381596149,), (1381596150,), (1381596151,), (1381596152,), (1381596199,), (1381596200,), (1381596202,), (1381596203,), (1381596205,), (1381596237,), (1381596238,), (1381596239,), (1381596296,), (1381596297,), (1381596298,), (1381596299,), (1381596300,), (1381596349,), (1381596350,), (1381596352,), (1381596354,), (1381596355,), (1381596389,), (1381596391,), (1381596392,), (1381596393,), (1381596449,), (1381596450,), (1381596488,), (1381596489,), (1381596535,), (1381596536,), (1381596537,), (1381596539,), (1381596541,), (1381596577,), (1381596579,), (1381596580,), (1381596582,), (1381596628,), (1381596625,), (1381596626,), (1381596627,), (1381596664,), (1381596665,), (1381596666,), (1381596667,), (1381596710,), (1381596711,), (1381596712,), (1381596801,), (1381596802,), (1381596803,), (1381596845,), (1381596846,), (1381596847,), (1381596848,), (1381596849,), (1381596892,), (1381596893,), (1381596894,), (1381596895,), (1381596896,), (1381596897,), (1381596948,), (1381596950,), (1381596951,), (1381596952,), (1381596954,), (1381597020,), (1381597021,), (1381597022,), (1381597023,), (1381597064,), (1381597065,), (1381597066,), (1381597068,), (1381597069,), (1381597097,), (1381597099,), (1381597100,), (1381597101,), (1381597102,), (1381597103,), (1381597151,), (1381597152,), (1381597153,), (1381597154,), (1381597155,), (1381597197,), (1381597198,), (1381597199,), (1381597200,), (1381597201,), (1381597203,), (1381597207,), (1381597209,), (1381597210,), (1381597211,), (1381597212,), (1381597287,), (1381597288,), (1381597289,), (1381597290,), (1381597327,), (1381597329,), (1381597332,), (1381597334,), (1381597336,), (1381597339,), (1381597640,), (1381602249,), (1381604849,), (1381604850,), (1381604851,), (1381604852,), (1381604854,), (1381604855,), (1381604894,), (1381604896,), (1381604942,), (1381604943,), (1381604944,), (1381604972,), (1381604973,), (1381605075,), (1381605077,), (1381605080,), (1381605083,), (1381605086,), (1381605087,), (1381605161,), (1381605163,), (1381605165,), (1381605219,), (1381605216,), (1381605217,), (1381605218,), (1381605265,), (1381605266,), (1381605267,), (1381605268,), (1381605269,), (1381605271,), (1381605323,), (1381605324,), (1381605325,), (1381605326,), (1381605327,), (1381605414,), (1381605415,), (1381605416,), (1381605417,), (1381605418,), (1381605419,), (1381605453,), (1381605454,), (1381605455,), (1381605456,), (1381605457,), (1381605508,), (1381605509,), (1381605510,), (1381605511,), (1381605568,), (1381605569,), (1381605570,), (1381605571,), (1381605608,), (1381605609,), (1381605610,), (1381605611,), (1381605613,), (1381605672,), (1381605673,), (1381605674,), (1381605716,), (1381605717,), (1381605718,), (1381605719,), (1381605720,), (1381605766,), (1381605767,), (1381605768,), (1381605769,), (1381605770,), (1381605771,), (1381605810,), (1381605812,), (1381605814,), (1381605815,), (1381605905,), (1381605906,), (1381605907,), (1381605908,), (1381605909,), (1381605910,), (1381605954,), (1381605955,), (1381605957,), (1381605958,), (1381605959,), (1381605961,), (1381605994,), (1381605995,), (1381605996,), (1381605997,), (1381605998,), (1381605999,), (1381606049,), (1381597636,), (1381597638,), (1381597846,), (1381597847,), (1381597848,), (1381597849,), (1381597850,), (1381598044,), (1381598046,), (1381598048,), (1381598050,), (1381598052,), (1381598054,), (1381598238,), (1381598239,), (1381598240,), (1381598241,), (1381598266,), (1381598275,), (1381598276,), (1381598278,), (1381598280,), (1381598281,), (1381598328,), (1381598329,), (1381598330,), (1381598332,), (1381598333,), (1381601466,), (1381601468,), (1381601877,), (1381601880,), (1381601883,), (1381601886,), (1381601889,), (1381602252,), (1381602255,), (1381602258,), (1381602261,), (1381602264,), (1381602337,), (1381606047,), (1381606048,), (1381606093,), (1381606094,), (1381606095,), (1381606096,), (1381606097,), (1381606161,), (1381606162,), (1381606163,), (1381606164,), (1381606165,), (1381606198,), (1381606199,), (1381606200,), (1381606201,), (1381606252,), (1381606253,), (1381606254,), (1381606255,), (1381606256,), (1381606294,), (1381606295,), (1381606297,), (1381606298,), (1381606299,), (1381606300,), (1381606345,), (1381606346,), (1381606347,), (1381606411,), (1381606412,), (1381606414,), (1381606415,), (1381606416,), (1381606417,), (1381606463,), (1381606464,), (1381606465,), (1381606466,), (1381606498,), (1381606499,), (1381606500,), (1381606501,), (1381606594,), (1381606644,), (1381607065,), (1381607067,), (1381609098,), (1381609096,), (1381609167,), (1381610003,), (1381610005,), (1381610325,), (1381610326,), (1381610327,), (1381610328,), (1381610330,), (1381610549,), (1381610550,), (1381610551,), (1381610552,), (1381610656,), (1381610657,), (1381610658,), (1381610659,), (1381610660,), (1381610732,), (1381610733,), (1381610734,), (1381610735,), (1381610736,), (1381610737,), (1381610774,), (1381610775,), (1381610776,), (1381610777,), (1381610835,), (1381610836,), (1381610837,), (1381610838,), (1381610839,), (1381610872,), (1381610873,), (1381610874,), (1381610875,), (1381610877,), (1381610919,), (1381610917,), (1381610918,), (1381611027,), (1381611036,), (1381611037,), (1381611039,), (1381611071,), (1381611072,), (1381611073,), (1381611074,), (1381611075,), (1381611076,), (1381611119,), (1381611120,), (1381611121,), (1381611122,), (1381611123,), (1381611169,), (1381611170,), (1381611171,), (1381611173,), (1381611174,), (1381611175,), (1381611225,), (1381611226,), (1381611227,), (1381611228,), (1381611229,), (1381611239,), (1381611240,), (1381611241,), (1381611242,), (1381611243,), (1381611244,), (1381611280,), (1381611281,), (1381611282,), (1381611283,), (1381611313,), (1381611314,), (1381611315,), (1381611316,), (1381611338,), (1381611339,), (1381611340,), (1381611360,), (1381611361,), (1381611363,), (1381611364,), (1381611365,), (1381611366,), (1381611439,), (1381611440,), (1381611441,), (1381611442,), (1381611443,), (1381611444,), (1381611483,), (1381611484,), (1381611485,), (1381611486,), (1381611528,), (1381611529,), (1381611530,), (1381611531,), (1381611532,), (1381611534,), (1381611578,), (1381611574,), (1381611575,), (1381611576,), (1381611577,), (1381611626,), (1381611627,), (1381611628,), (1381611629,), (1381611630,), (1381611631,), (1381611698,), (1381611699,), (1381611701,), (1381611702,), (1381611703,), (1381611757,), (1381611758,), (1381611759,), (1381611760,), (1381611761,), (1381611800,), (1381611801,), (1381611802,), (1381611803,), (1381611804,), (1381611805,), (1381611848,), (1381611849,), (1381611850,), (1381611851,), (1381611887,), (1381611888,), (1381611889,), (1381611890,), (1381611891,), (1381611892,), (1381611964,), (1381611965,), (1381611966,), (1381611967,), (1381612075,), (1381612076,), (1381612077,), (1381612078,), (1381612079,), (1381612080,), (1381612135,), (1381612136,), (1381612137,), (1381612138,), (1381612180,), (1381612181,), (1381612183,), (1381612184,), (1381612185,), (1381612186,), (1381612233,), (1381612234,), (1381612235,), (1381612236,), (1381612292,), (1381612293,), (1381612295,), (1381612296,), (1381612297,), (1381612298,), (1381612347,), (1381612349,), (1381612350,), (1381612351,), (1381612390,), (1381612392,), (1381612393,), (1381612394,), (1381612395,), (1381612396,), (1381612459,), (1381612456,), (1381612457,), (1381612458,), (1381612488,), (1381612489,), (1381612490,), (1381612560,), (1381612561,), (1381612562,), (1381612563,), (1381612564,), (1381612597,), (1381612598,), (1381612600,), (1381612601,), (1381612602,), (1381612603,), (1381612660,), (1381612661,), (1381612662,), (1381612663,), (1381612664,), (1381612708,), (1381612709,), (1381612710,), (1381612711,), (1381612712,), (1381612713,), (1381612760,), (1381612761,), (1381612762,), (1381612763,), (1381612831,), (1381612832,), (1381612833,), (1381612834,), (1381612873,), (1381612874,), (1381612875,), (1381612876,), (1381612877,), (1381612878,), (1381612915,), (1381612916,), (1381612917,), (1381612918,), (1381612952,), (1381612953,), (1381612954,), (1381612955,), (1381612993,), (1381612995,), (1381612998,), (1381612999,), (1381613045,), (1381613046,), (1381613047,), (1381613049,), (1381613050,), (1381613431,), (1381613433,), (1381613435,), (1381613437,), (1381613502,), (1381613504,), (1381613506,), (1381613508,), (1381613854,), (1381613846,), (1381613848,), (1381613850,), (1381613852,), (1381614041,), (1381614042,), (1381614377,), (1381614379,), (1381614382,), (1381614385,), (1381614890,), (1381614892,), (1381614894,), (1381614895,), (1381614897,), (1381615278,), (1381615281,), (1381615283,), (1381615285,), (1381615287,), (1381615548,), (1381615549,), (1381615550,), (1381615551,), (1381615552,), (1381615772,), (1381615773,), (1381615774,), (1381615775,), (1381615776,), (1381615777,), (1381616157,), (1381616159,), (1381617539,), (1381623513,), (1381623514,), (1381623515,), (1381623752,), (1381623753,), (1381623754,), (1381623755,), (1381623857,), (1381623858,), (1381623859,), (1381623860,), (1381623962,), (1381623963,), (1381623964,), (1381623965,), (1381624483,), (1381624479,), (1381624480,), (1381624481,), (1381624482,), (1381624525,), (1381624526,), (1381624527,), (1381624528,), (1381624576,), (1381624577,), (1381624578,), (1381624579,), (1381624580,), (1381624624,), (1381624625,), (1381624627,), (1381624628,), (1381624690,), (1381624691,), (1381624692,), (1381624693,), (1381624694,), (1381624768,), (1381624769,), (1381624770,), (1381624771,), (1381624851,), (1381624852,), (1381624853,), (1381624854,), (1381624855,), (1381624900,), (1381624901,), (1381624902,), (1381624903,), (1381624953,), (1381624954,), (1381624955,), (1381624956,), (1381624957,), (1381624958,), (1381625033,), (1381625034,), (1381625035,), (1381625037,), (1381625038,), (1381625113,), (1381625114,), (1381625115,), (1381625116,), (1381625117,), (1381625118,), (1381625154,), (1381625155,), (1381625156,), (1381625157,), (1381625212,), (1381625213,), (1381625214,), (1381625215,), (1381625216,), (1381625271,), (1381625266,), (1381625267,), (1381625268,), (1381625269,), (1381625270,), (1381625322,), (1381625323,), (1381625324,), (1381625325,), (1381625405,), (1381625406,), (1381625407,), (1381625408,), (1381625409,), (1381625410,), (1381625450,), (1381625451,), (1381625452,), (1381625454,), (1381625487,), (1381625499,), (1381625500,), (1381625502,), (1381625503,), (1381625504,), (1381625553,), (1381625555,), (1381625556,), (1381625557,), (1381625603,), (1381625604,), (1381625605,), (1381625606,), (1381625685,), (1381625686,), (1381625687,), (1381625688,), (1381625689,), (1381625690,), (1381625725,), (1381625726,), (1381625727,), (1381625728,), (1381625795,), (1381625796,), (1381625797,), (1381625835,), (1381625836,), (1381625838,), (1381625840,), (1381625841,), (1381625904,), (1381625906,), (1381625907,), (1381625947,), (1381625948,), (1381625949,), (1381625950,), (1381625951,), (1381625985,), (1381625997,), (1381625998,), (1381625999,), (1381626039,), (1381626040,), (1381626041,), (1381626042,), (1381626043,), (1381626044,), (1381626100,), (1381626095,), (1381626096,), (1381626097,), (1381626098,), (1381626099,), (1381626136,), (1381626137,), (1381626138,), (1381626139,), (1381626228,), (1381626229,), (1381626230,), (1381626231,), (1381626232,), (1381626233,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05092025': {'nb_upload': 16, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26561100]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1381624483, 1381623965, 1381623964, 1381623963, 1381623962, 1381623860, 1381623859, 1381623858, 1381623857, 1381623755, 1381623754, 1381623753, 1381623752, 1381623515, 1381623514, 1381623513] map_info['map_portfolio_photo'] : {26561100: [1381624483, 1381623965, 1381623964, 1381623963, 1381623962, 1381623860, 1381623859, 1381623858, 1381623857, 1381623755, 1381623754, 1381623753, 1381623752, 1381623515, 1381623514, 1381623513]} final : True mtd_id 4302 list_pids : [1381624483, 1381623965, 1381623964, 1381623963, 1381623962, 1381623860, 1381623859, 1381623858, 1381623857, 1381623755, 1381623754, 1381623753, 1381623752, 1381623515, 1381623514, 1381623513] Looping around the photos to save general results len do output : 1 /26561100Didn'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, '3667835') ('4302', '26561100', '1381624483', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623965', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623964', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623963', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623962', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623860', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623859', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623858', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623857', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623755', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623754', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623753', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623752', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623515', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623514', None, None, None, None, None, '3667835') ('4302', None, None, None, None, None, None, None, '3667835') ('4302', '26561100', '1381623513', None, None, None, None, None, '3667835') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26561100', 'None', None, None, None, None, '3667835'), ('4302', '26561100', '1381624483', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623965', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623964', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623963', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623962', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623860', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623859', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623858', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623857', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623755', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623754', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623753', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623752', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623515', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623514', None, None, None, None, None, '3667835'), ('4302', '26561100', '1381623513', None, None, None, None, None, '3667835')] time used for this insertion : 0.016104936599731445 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8815653324127197 time spend to save output : 0.016347408294677734 total time spend for step 5 : 1.8979127407073975 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 (3667835) 2.60user 2.37system 0:12.51elapsed 39%CPU (0avgtext+0avgdata 160448maxresident)k 352inputs+12752outputs (2major+77334minor)pagefaults 0swaps