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 : 289382 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 (3662481) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3662481) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26519302 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3662481'] with mtr_portfolio_ids : ['26519302'] and first list_photo_ids : [] new path : /proc/289382/ Name: python3 Umask: 0002 State: R (running) Tgid: 289382 Ngid: 0 Pid: 289382 PPid: 289381 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 289382 NSpid: 289382 NSpgid: 288820 NSsid: 288820 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98952 kB VmRSS: 98952 kB RssAnon: 60168 kB RssFile: 38784 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 556 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: 50 nonvoluntary_ctxt_switches: 114 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '289382', 'Ngid': '0', 'Pid': '289382', 'PPid': '289381', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '289382', 'NSpid': '289382', 'NSpgid': '288820', 'NSsid': '288820', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98952 kB', 'VmRSS': '98952 kB', 'RssAnon': '60168 kB', 'RssFile': '38784 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '556 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': '50', 'nonvoluntary_ctxt_switches': '114'} ('datou_batch_current', '289382', '1107252', '0', '1107252', '866004', '98952', b'', 'marlene', '3662481') 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 (26519302) 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 (3662481 ) ) 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 (26519302) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1381377097, 'portfolio_id': 26519302}, {'photo_id': 1381372175, 'portfolio_id': 26519302}, {'photo_id': 1381372174, 'portfolio_id': 26519302}, {'photo_id': 1381372173, 'portfolio_id': 26519302}, {'photo_id': 1381372127, 'portfolio_id': 26519302}, {'photo_id': 1381372126, 'portfolio_id': 26519302}, {'photo_id': 1381372125, 'portfolio_id': 26519302}, {'photo_id': 1381372124, 'portfolio_id': 26519302}, {'photo_id': 1381372081, 'portfolio_id': 26519302}, {'photo_id': 1381372080, 'portfolio_id': 26519302}, {'photo_id': 1381372079, 'portfolio_id': 26519302}, {'photo_id': 1381372078, 'portfolio_id': 26519302}, {'photo_id': 1381372038, 'portfolio_id': 26519302}, {'photo_id': 1381371986, 'portfolio_id': 26519302}, {'photo_id': 1381371985, 'portfolio_id': 26519302}, {'photo_id': 1381371984, 'portfolio_id': 26519302}, {'photo_id': 1381371983, 'portfolio_id': 26519302}, {'photo_id': 1381371871, 'portfolio_id': 26519302}, {'photo_id': 1381371870, 'portfolio_id': 26519302}, {'photo_id': 1381371719, 'portfolio_id': 26519302}, {'photo_id': 1381371717, 'portfolio_id': 26519302}, {'photo_id': 1381371715, 'portfolio_id': 26519302}, {'photo_id': 1381371713, 'portfolio_id': 26519302}, {'photo_id': 1381371360, 'portfolio_id': 26519302}, {'photo_id': 1381371358, 'portfolio_id': 26519302}, {'photo_id': 1381371356, 'portfolio_id': 26519302}, {'photo_id': 1381371354, 'portfolio_id': 26519302}, {'photo_id': 1381370919, 'portfolio_id': 26519302}, {'photo_id': 1381370917, 'portfolio_id': 26519302}] map_portfolio_id_photo_id: {26519302: [1381377097, 1381372175, 1381372174, 1381372173, 1381372127, 1381372126, 1381372125, 1381372124, 1381372081, 1381372080, 1381372079, 1381372078, 1381372038, 1381371986, 1381371985, 1381371984, 1381371983, 1381371871, 1381371870, 1381371719, 1381371717, 1381371715, 1381371713, 1381371360, 1381371358, 1381371356, 1381371354, 1381370919, 1381370917]} ##### 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.015084028244018555 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Sep 4 06:02:27 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 (26519302) 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 : 26519302 get user id for portfolio 26519302 get sub ptf for main ptf 26519302, type 3726 and hashtags ['mal_croppe', 'Carton_gris', 'cartonnette', 'Teint_Dans_La_Masse', 'Carton_brun', 'kraft', 'plastique', 'metal', 'environnement', 'flou', 'autre_refus', 'papier'] 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`=26519302 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_gris','cartonnette','Teint_Dans_La_Masse','Carton_brun','kraft','plastique','metal','environnement','flou','autre_refus','papier')) 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`=26519302 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_gris','cartonnette','Teint_Dans_La_Masse','Carton_brun','kraft','plastique','metal','environnement','flou','autre_refus','papier')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 26519302, 'sub_port_id': 26519324, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855668, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 28)}, 'papier': {'main_port_id': 26519302, 'sub_port_id': 26519325, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855669, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 28)}, 'environnement': {'main_port_id': 26519302, 'sub_port_id': 26519326, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855670, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 28)}, 'cartonnette': {'main_port_id': 26519302, 'sub_port_id': 26519327, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855671, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 28)}, 'plastique': {'main_port_id': 26519302, 'sub_port_id': 26519328, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855672, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 28)}, 'autre_refus': {'main_port_id': 26519302, 'sub_port_id': 26519329, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855673, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 28)}, 'metal': {'main_port_id': 26519302, 'sub_port_id': 26519330, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855674, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 28)}, 'flou': {'main_port_id': 26519302, 'sub_port_id': 26519331, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855675, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 26519302, 'sub_port_id': 26519332, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855676, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 28)}, 'kraft': {'main_port_id': 26519302, 'sub_port_id': 26519333, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855677, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 28)}, 'Carton_brun': {'main_port_id': 26519302, 'sub_port_id': 26519334, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855678, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 28)}, 'Carton_gris': {'main_port_id': 26519302, 'sub_port_id': 26519335, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855679, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26519324 , 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=26519302 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 (26519324) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26519302) result : ((1381370917,), (1381370919,), (1381371354,), (1381371356,), (1381371358,), (1381371360,), (1381371713,), (1381371715,), (1381371717,), (1381371719,), (1381371870,), (1381371871,), (1381371983,), (1381371984,), (1381371985,), (1381371986,), (1381372038,), (1381372078,), (1381372079,), (1381372080,), (1381372081,), (1381372124,), (1381372125,), (1381372126,), (1381372127,), (1381372173,), (1381372174,), (1381372175,), (1381377097,)) 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 26519325 , 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=26519302 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 (26519325) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26519302) result : ((1381370917,), (1381370919,), (1381371354,), (1381371356,), (1381371358,), (1381371360,), (1381371713,), (1381371715,), (1381371717,), (1381371719,), (1381371870,), (1381371871,), (1381371983,), (1381371984,), (1381371985,), (1381371986,), (1381372038,), (1381372078,), (1381372079,), (1381372080,), (1381372081,), (1381372124,), (1381372125,), (1381372126,), (1381372127,), (1381372173,), (1381372174,), (1381372175,), (1381377097,)) 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 26519326 , 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=26519302 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 (26519326) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26519302) result : ((1381370917,), (1381370919,), (1381371354,), (1381371356,), (1381371358,), (1381371360,), (1381371713,), (1381371715,), (1381371717,), (1381371719,), (1381371870,), (1381371871,), (1381371983,), (1381371984,), (1381371985,), (1381371986,), (1381372038,), (1381372078,), (1381372079,), (1381372080,), (1381372081,), (1381372124,), (1381372125,), (1381372126,), (1381372127,), (1381372173,), (1381372174,), (1381372175,), (1381377097,)) 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 26519327 , 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=26519302 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 (26519327) result : ((1381372008,), (1381372009,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26519302) result : ((1381370917,), (1381370919,), (1381371354,), (1381371356,), (1381371358,), (1381371360,), (1381371713,), (1381371715,), (1381371717,), (1381371719,), (1381371870,), (1381371871,), (1381371983,), (1381371984,), (1381371985,), (1381371986,), (1381372038,), (1381372078,), (1381372079,), (1381372080,), (1381372081,), (1381372124,), (1381372125,), (1381372126,), (1381372127,), (1381372173,), (1381372174,), (1381372175,), (1381377097,)) 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 26519328 , 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=26519302 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 (26519328) result : ((1381372102,), (1381372314,), (1381372424,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26519302) result : ((1381370917,), (1381370919,), (1381371354,), (1381371356,), (1381371358,), (1381371360,), (1381371713,), (1381371715,), (1381371717,), (1381371719,), (1381371870,), (1381371871,), (1381371983,), (1381371984,), (1381371985,), (1381371986,), (1381372038,), (1381372078,), (1381372079,), (1381372080,), (1381372081,), (1381372124,), (1381372125,), (1381372126,), (1381372127,), (1381372173,), (1381372174,), (1381372175,), (1381377097,)) 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 26519329 , 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=26519302 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 (26519329) result : ((1381372025,), (1381372026,), (1381372027,), (1381372113,), (1381372114,), (1381372115,), (1381372310,), (1381372311,), (1381372437,), (1381372438,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26519302) result : ((1381370917,), (1381370919,), (1381371354,), (1381371356,), (1381371358,), (1381371360,), (1381371713,), (1381371715,), (1381371717,), (1381371719,), (1381371870,), (1381371871,), (1381371983,), (1381371984,), (1381371985,), (1381371986,), (1381372038,), (1381372078,), (1381372079,), (1381372080,), (1381372081,), (1381372124,), (1381372125,), (1381372126,), (1381372127,), (1381372173,), (1381372174,), (1381372175,), (1381377097,)) 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 26519330 , 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=26519302 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 (26519330) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26519302) result : ((1381370917,), (1381370919,), (1381371354,), (1381371356,), (1381371358,), (1381371360,), (1381371713,), (1381371715,), (1381371717,), (1381371719,), (1381371870,), (1381371871,), (1381371983,), (1381371984,), (1381371985,), (1381371986,), (1381372038,), (1381372078,), (1381372079,), (1381372080,), (1381372081,), (1381372124,), (1381372125,), (1381372126,), (1381372127,), (1381372173,), (1381372174,), (1381372175,), (1381377097,)) 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 26519331 , 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=26519302 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 (26519331) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26519302) result : ((1381370917,), (1381370919,), (1381371354,), (1381371356,), (1381371358,), (1381371360,), (1381371713,), (1381371715,), (1381371717,), (1381371719,), (1381371870,), (1381371871,), (1381371983,), (1381371984,), (1381371985,), (1381371986,), (1381372038,), (1381372078,), (1381372079,), (1381372080,), (1381372081,), (1381372124,), (1381372125,), (1381372126,), (1381372127,), (1381372173,), (1381372174,), (1381372175,), (1381377097,)) 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 26519332 , 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=26519302 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 (26519332) result : ((1381372001,), (1381372002,), (1381372003,), (1381372024,), (1381372101,), (1381372112,), (1381372193,), (1381372194,), (1381372195,), (1381372196,), (1381372198,), (1381372308,), (1381372419,), (1381372943,), (1381372944,), (1381372946,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26519302) result : ((1381370917,), (1381370919,), (1381371354,), (1381371356,), (1381371358,), (1381371360,), (1381371713,), (1381371715,), (1381371717,), (1381371719,), (1381371870,), (1381371871,), (1381371983,), (1381371984,), (1381371985,), (1381371986,), (1381372038,), (1381372078,), (1381372079,), (1381372080,), (1381372081,), (1381372124,), (1381372125,), (1381372126,), (1381372127,), (1381372173,), (1381372174,), (1381372175,), (1381377097,)) 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 26519333 , 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=26519302 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 (26519333) result : ((1381372425,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26519302) result : ((1381370917,), (1381370919,), (1381371354,), (1381371356,), (1381371358,), (1381371360,), (1381371713,), (1381371715,), (1381371717,), (1381371719,), (1381371870,), (1381371871,), (1381371983,), (1381371984,), (1381371985,), (1381371986,), (1381372038,), (1381372078,), (1381372079,), (1381372080,), (1381372081,), (1381372124,), (1381372125,), (1381372126,), (1381372127,), (1381372173,), (1381372174,), (1381372175,), (1381377097,)) 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 26519334 , 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=26519302 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 (26519334) result : ((1381372010,), (1381372011,), (1381372012,), (1381372028,), (1381372116,), (1381372312,), (1381372313,), (1381372422,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26519302) result : ((1381370917,), (1381370919,), (1381371354,), (1381371356,), (1381371358,), (1381371360,), (1381371713,), (1381371715,), (1381371717,), (1381371719,), (1381371870,), (1381371871,), (1381371983,), (1381371984,), (1381371985,), (1381371986,), (1381372038,), (1381372078,), (1381372079,), (1381372080,), (1381372081,), (1381372124,), (1381372125,), (1381372126,), (1381372127,), (1381372173,), (1381372174,), (1381372175,), (1381377097,)) 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 26519335 , 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=26519302 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 (26519335) result : ((1381372005,), (1381372006,), (1381372199,), (1381372200,), (1381372420,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26519302) result : ((1381370917,), (1381370919,), (1381371354,), (1381371356,), (1381371358,), (1381371360,), (1381371713,), (1381371715,), (1381371717,), (1381371719,), (1381371870,), (1381371871,), (1381371983,), (1381371984,), (1381371985,), (1381371986,), (1381372038,), (1381372078,), (1381372079,), (1381372080,), (1381372081,), (1381372124,), (1381372125,), (1381372126,), (1381372127,), (1381372173,), (1381372174,), (1381372175,), (1381377097,)) 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`=26519302 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_gris','cartonnette','Teint_Dans_La_Masse','Carton_brun','kraft','plastique','metal','environnement','flou','autre_refus','papier')) 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`=26519302 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_gris','cartonnette','Teint_Dans_La_Masse','Carton_brun','kraft','plastique','metal','environnement','flou','autre_refus','papier')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 26519302, 'sub_port_id': 26519344, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855692, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 34)}, 'papier': {'main_port_id': 26519302, 'sub_port_id': 26519346, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855693, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 34)}, 'environnement': {'main_port_id': 26519302, 'sub_port_id': 26519348, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855694, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 34)}, 'cartonnette': {'main_port_id': 26519302, 'sub_port_id': 26519351, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855695, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 34)}, 'plastique': {'main_port_id': 26519302, 'sub_port_id': 26519352, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855696, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 34)}, 'autre_refus': {'main_port_id': 26519302, 'sub_port_id': 26519354, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855697, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 34)}, 'metal': {'main_port_id': 26519302, 'sub_port_id': 26519356, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855698, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 34)}, 'flou': {'main_port_id': 26519302, 'sub_port_id': 26519357, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855699, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 26519302, 'sub_port_id': 26519358, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855700, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 34)}, 'kraft': {'main_port_id': 26519302, 'sub_port_id': 26519359, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855701, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 34)}, 'Carton_brun': {'main_port_id': 26519302, 'sub_port_id': 26519360, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855702, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 34)}, 'Carton_gris': {'main_port_id': 26519302, 'sub_port_id': 26519361, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17855703, 'last_updated_at': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 4, 10, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 4, 3, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26519344,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26519324 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26519346,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26519325 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26519348,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26519326 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26519351,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26519327 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26519352,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26519328 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26519354,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26519329 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26519356,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26519330 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26519357,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26519331 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26519358,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26519332 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26519359,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26519333 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26519360,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26519334 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26519361,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26519335 lien utilise dans velours : https://marlene.fotonower.com/velours/26519344,26519346,26519348,26519351,26519352,26519354,26519356,26519357,26519358,26519359,26519360,26519361?tags=mal_croppe,papier,environnement,cartonnette,plastique,autre_refus,metal,flou,Teint_Dans_La_Masse,kraft,Carton_brun,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26519302]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1381377097] map_info['map_portfolio_photo'] : {26519302: [1381377097, 1381372175, 1381372174, 1381372173, 1381372127, 1381372126, 1381372125, 1381372124, 1381372081, 1381372080, 1381372079, 1381372078, 1381372038, 1381371986, 1381371985, 1381371984, 1381371983, 1381371871, 1381371870, 1381371719, 1381371717, 1381371715, 1381371713, 1381371360, 1381371358, 1381371356, 1381371354, 1381370919, 1381370917]} final : False mtd_id 4302 list_pids : [1381377097] Looping around the photos to save general results len do output : 1 /26519302. 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, '3662481') ('4302', '26519302', '1381377097', None, None, None, None, None, '3662481') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '26519302', "{'mal_croppe': 26519324, 'papier': 26519325, 'environnement': 26519326, 'cartonnette': 26519327, 'plastique': 26519328, 'autre_refus': 26519329, 'metal': 26519330, 'flou': 26519331, 'Teint_Dans_La_Masse': 26519332, 'kraft': 26519333, 'Carton_brun': 26519334, 'Carton_gris': 26519335}", None, None, None, None, '3662481'), ('4302', '26519302', '1381377097', None, None, None, None, None, '3662481')] time used for this insertion : 0.012842416763305664 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.751885175704956 time spend to save output : 0.013148784637451172 total time spend for step 1 : 1.7650339603424072 step2:final Thu Sep 4 06:02:29 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 (26519302) 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 26519302 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1381370919,1381370917,1381371360,1381371358,1381371356,1381371354,1381371719,1381371717,1381371715,1381371713,1381371871,1381371870,1381371986,1381371985,1381371984,1381371983,1381372038,1381372081,1381372080,1381372079,1381372078,1381372127,1381372126,1381372125,1381372124,1381372175,1381372174,1381372173,1381377097); 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([26519302]) Inside saveOutput : final : False verbose : True original output for save of step final : {1381377097: ('0.04651536629923985',)} new output for save of step final : {1381377097: ('0.04651536629923985',)} [1381377097] map_info['map_portfolio_photo'] : {26519302: [1381377097, 1381372175, 1381372174, 1381372173, 1381372127, 1381372126, 1381372125, 1381372124, 1381372081, 1381372080, 1381372079, 1381372078, 1381372038, 1381371986, 1381371985, 1381371984, 1381371983, 1381371871, 1381371870, 1381371719, 1381371717, 1381371715, 1381371713, 1381371360, 1381371358, 1381371356, 1381371354, 1381370919, 1381370917]} final : False mtd_id 4302 list_pids : [1381377097] Looping around the photos to save general results len do output : 1 /1381377097.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, '3662481') ('4302', '26519302', '1381377097', None, None, None, None, None, '3662481') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '26519302', '1381377097', '0.04651536629923985', None, None, None, None, '3662481')] time used for this insertion : 0.013707637786865234 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06925082206726074 time spend to save output : 0.013930559158325195 total time spend for step 2 : 0.08318138122558594 step3:velours_tree Thu Sep 4 06:02:29 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 : {26519302: [{'mal_croppe': 26519324, 'papier': 26519325, 'environnement': 26519326, 'cartonnette': 26519327, 'plastique': 26519328, 'autre_refus': 26519329, 'metal': 26519330, 'flou': 26519331, 'Teint_Dans_La_Masse': 26519332, 'kraft': 26519333, 'Carton_brun': 26519334, 'Carton_gris': 26519335}]} input_args_next_step : {26519302: ()} output_args : {26519302: [{'mal_croppe': 26519324, 'papier': 26519325, 'environnement': 26519326, 'cartonnette': 26519327, 'plastique': 26519328, 'autre_refus': 26519329, 'metal': 26519330, 'flou': 26519331, 'Teint_Dans_La_Masse': 26519332, 'kraft': 26519333, 'Carton_brun': 26519334, 'Carton_gris': 26519335}]} args : 26519302 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': 26519324, 'papier': 26519325, 'environnement': 26519326, 'cartonnette': 26519327, 'plastique': 26519328, 'autre_refus': 26519329, 'metal': 26519330, 'flou': 26519331, 'Teint_Dans_La_Masse': 26519332, 'kraft': 26519333, 'Carton_brun': 26519334, 'Carton_gris': 26519335},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26519302) 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([26519302]) 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.32672619819641113 time spend to save output : 7.867813110351562e-05 total time spend for step 3 : 0.32680487632751465 step4:send_mail_cod Thu Sep 4 06:02:29 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 : {1381377097: ('0.04651536629923985',)} input_args_next_step : {1381377097: ()} output_args : {1381377097: ('0.04651536629923985',)} args : 1381377097 depend.output_id : 0 complete output_args for input 3 : {26519302: [{'mal_croppe': 26519324, 'papier': 26519325, 'environnement': 26519326, 'cartonnette': 26519327, 'plastique': 26519328, 'autre_refus': 26519329, 'metal': 26519330, 'flou': 26519331, 'Teint_Dans_La_Masse': 26519332, 'kraft': 26519333, 'Carton_brun': 26519334, 'Carton_gris': 26519335}]} input_args_next_step : {1381377097: ('0.04651536629923985',), 26519302: ()} output_args : {26519302: [{'mal_croppe': 26519324, 'papier': 26519325, 'environnement': 26519326, 'cartonnette': 26519327, 'plastique': 26519328, 'autre_refus': 26519329, 'metal': 26519330, 'flou': 26519331, 'Teint_Dans_La_Masse': 26519332, 'kraft': 26519333, 'Carton_brun': 26519334, 'Carton_gris': 26519335}]} args : 26519302 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 :2, first value : ('0.04651536629923985',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26519302) 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 (1381377097) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1381377097 download finish for photo 1381377097 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette265193241756958549/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P26519302_04-09-2025_06_02_29.pdf 26519324 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=26519324 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265193241756958549 26519327 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=26519327 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381372008: '1756951505_1730531_1381371358_ac0c8e44aef218aa370e7c5a322da856_71382494_rle_crop_3943841403_0.png', 1381372009: '1756951505_1730531_1381371356_6c234b579a777952b6876890da75faec_54876429_rle_crop_3943841418_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/34d8637bc0dc6a8fe2b608f47b489a53_16288847.png change filename to text .imagette265193271756958549/ imagette265193271756958549/1756951505_1730531_1381371356_6c234b579a777952b6876890da75faec_54876429_rle_crop_3943841418_0.png.png imagette265193271756958549/1756951505_1730531_1381371358_ac0c8e44aef218aa370e7c5a322da856_71382494_rle_crop_3943841403_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/579709b2a6331c87cd2cb16546bd06a6_17197517.png imagette265193271756958549 26519328 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=26519328 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381372102: '1756951627_1736681_1381371715_3eb618b5cd01ace2b60b0c748157ff62_83534639_rle_crop_3943841612_0.png', 1381372314: '1756951885_1747916_1381372127_8fba1eebcc15d0bae87ebf22b614d544_12321517_rle_crop_3943842297_0.png', 1381372424: '1756951986_1753426_1381372174_4fd19c66bc58293a27ff4f344667c5c8_77787274_rle_crop_3943842493_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/5b58c72b6831bd6a410ed1a943640229_52424546.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/9eb8cb8b0146e6ebb166fb5f793c1f6b_80893642.png change filename to text .imagette265193281756958550/ imagette265193281756958550/1756951627_1736681_1381371715_3eb618b5cd01ace2b60b0c748157ff62_83534639_rle_crop_3943841612_0.png.png imagette265193281756958550/1756951986_1753426_1381372174_4fd19c66bc58293a27ff4f344667c5c8_77787274_rle_crop_3943842493_0.png.png imagette265193281756958550/1756951885_1747916_1381372127_8fba1eebcc15d0bae87ebf22b614d544_12321517_rle_crop_3943842297_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/bd36906e2227ef977302f6d289e39a8b_98314000.png imagette265193281756958550 26519329 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=26519329 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381372025: '1756951526_1730900_1381371360_5439840979df0faa27ada4a28757fd6d_13041904_rle_crop_3943841508_0.png', 1381372026: '1756951526_1730900_1381370919_7e74b1798645150c6fb1b315af128935_34054109_rle_crop_3943841518_0.png', 1381372027: '1756951526_1730900_1381370917_6f7467d024fde325173a68cce60df9d8_36694368_rle_crop_3943841527_0.png', 1381372113: '1756951645_1737068_1381371360_5439840979df0faa27ada4a28757fd6d_13041904_rle_crop_3943841508_0.png', 1381372114: '1756951645_1737068_1381370919_7e74b1798645150c6fb1b315af128935_34054109_rle_crop_3943841518_0.png', 1381372115: '1756951645_1737068_1381370917_6f7467d024fde325173a68cce60df9d8_36694368_rle_crop_3943841527_0.png', 1381372310: '1756951885_1747916_1381372127_8fba1eebcc15d0bae87ebf22b614d544_12321517_rle_crop_3943842301_0.png', 1381372311: '1756951885_1747916_1381372080_54790af73e6f6c5e60644f33c6f35f66_9463198_rle_crop_3943842312_0.png', 1381372437: '1756952006_1753863_1381372126_a1712cfa7bc8b8e35b871d9baeb59320_76233226_rle_crop_3943842168_0.png', 1381372438: '1756952006_1753863_1381372125_a941f60eeda933af052aa3f16288547b_74747644_rle_crop_3943842181_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/20e40b0c53d9f299f1dba27971ad2438_95681525.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/8547fd99155d32abe4aaf33922734cda_95852359.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/05faf380842ab35a6e1f040a47f70a49_45862790.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/20e40b0c53d9f299f1dba27971ad2438_43594348.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/8547fd99155d32abe4aaf33922734cda_92813044.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/05faf380842ab35a6e1f040a47f70a49_89865572.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/6c1ce7719120cc18fe8a5bdb31e4b5b8_63237990.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/19ba6ced2be23048f64c926d83188da1_63638155.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/881368d5879b8c869dcf99a29c7e66fd_80882792.png change filename to text .imagette265193291756958550/ imagette265193291756958550/1756951885_1747916_1381372080_54790af73e6f6c5e60644f33c6f35f66_9463198_rle_crop_3943842312_0.png.png imagette265193291756958550/1756951885_1747916_1381372127_8fba1eebcc15d0bae87ebf22b614d544_12321517_rle_crop_3943842301_0.png.png imagette265193291756958550/1756951526_1730900_1381371360_5439840979df0faa27ada4a28757fd6d_13041904_rle_crop_3943841508_0.png.png imagette265193291756958550/1756951645_1737068_1381370919_7e74b1798645150c6fb1b315af128935_34054109_rle_crop_3943841518_0.png.png imagette265193291756958550/1756951526_1730900_1381370917_6f7467d024fde325173a68cce60df9d8_36694368_rle_crop_3943841527_0.png.png imagette265193291756958550/1756951645_1737068_1381371360_5439840979df0faa27ada4a28757fd6d_13041904_rle_crop_3943841508_0.png.png imagette265193291756958550/1756952006_1753863_1381372125_a941f60eeda933af052aa3f16288547b_74747644_rle_crop_3943842181_0.png.png imagette265193291756958550/1756952006_1753863_1381372126_a1712cfa7bc8b8e35b871d9baeb59320_76233226_rle_crop_3943842168_0.png.png imagette265193291756958550/1756951645_1737068_1381370917_6f7467d024fde325173a68cce60df9d8_36694368_rle_crop_3943841527_0.png.png imagette265193291756958550/1756951526_1730900_1381370919_7e74b1798645150c6fb1b315af128935_34054109_rle_crop_3943841518_0.png.png imagette265193301756958551/ imagette265193311756958551/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/ded0eacf2d519d819b9fcfb56003012d_38385058.png imagette265193291756958550 26519330 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=26519330 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265193301756958551 26519331 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=26519331 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265193311756958551 26519333 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=26519333 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381372425: '1756951986_1753426_1381372173_c5aaaf447a36288eda6cdc7a89727402_96853194_rle_crop_3943842504_0.png'} change filename to text .imagette265193331756958551/ imagette265193331756958551/1756951986_1753426_1381372173_c5aaaf447a36288eda6cdc7a89727402_96853194_rle_crop_3943842504_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/11234d3e60d333fcbb468febf50b2913_63091478.png imagette265193331756958551 26519332 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=26519332 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381372001: '1756951505_1730531_1381371358_ac0c8e44aef218aa370e7c5a322da856_71382494_rle_crop_3943841407_0.png', 1381372002: '1756951505_1730531_1381371356_6c234b579a777952b6876890da75faec_54876429_rle_crop_3943841424_0.png', 1381372003: '1756951505_1730531_1381371354_98396f64df2d18ff723064b89541153c_15204699_rle_crop_3943841436_0.png', 1381372024: '1756951526_1730900_1381370919_7e74b1798645150c6fb1b315af128935_34054109_rle_crop_3943841515_0.png', 1381372101: '1756951627_1736681_1381371715_3eb618b5cd01ace2b60b0c748157ff62_83534639_rle_crop_3943841616_0.png', 1381372112: '1756951645_1737068_1381370919_7e74b1798645150c6fb1b315af128935_34054109_rle_crop_3943841515_0.png', 1381372193: '1756951746_1741847_1381372038_e86616e712cd9b21fb032d69299741f3_23010086_rle_crop_3943841845_0.png', 1381372194: '1756951746_1741847_1381371985_c857b08e37d8df35376c328a6124bb59_46184096_rle_crop_3943841857_0.png', 1381372195: '1756951746_1741847_1381371984_6813be3df08afe42acaf50479e0de155_94331182_rle_crop_3943841883_0.png', 1381372196: '1756951746_1741847_1381371984_6813be3df08afe42acaf50479e0de155_94331182_rle_crop_3943841881_0.png', 1381372198: '1756951746_1741847_1381371983_9b75ae8009bc2d59d396563c0a721d74_76915677_rle_crop_3943841903_0.png', 1381372308: '1756951885_1747916_1381372078_6bc688e8ab8eb85dba999a4bf21c9441_92488685_rle_crop_3943842339_0.png', 1381372419: '1756951986_1753426_1381372173_c5aaaf447a36288eda6cdc7a89727402_96853194_rle_crop_3943842508_0.png', 1381372943: '1756952585_1782319_1381371719_08a98bd88b2e4fd5f9076368a9d14a89_9467475_rle_crop_3943844351_0.png', 1381372944: '1756952585_1782319_1381371719_08a98bd88b2e4fd5f9076368a9d14a89_9467475_rle_crop_3943844349_0.png', 1381372946: '1756952585_1782319_1381371719_08a98bd88b2e4fd5f9076368a9d14a89_9467475_rle_crop_3943844355_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/7bffd840f4081ebf5881fc7e04051c79_68753899.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/2648f1a49a1db66a0df3ba3ffef49af8_9991149.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/84a2b09619a3421355b975d9f7258f7b_99371006.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/b1e2e295ca21eccde2b04c7d36634db9_34491523.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/810dd4155d3441f26d7d67e661f29fe1_94607779.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/b1e2e295ca21eccde2b04c7d36634db9_28587321.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/8bd62b8afa01dadd12a6ac0d12d5250f_91953370.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/9e0f02348a1286d29575e2616ddeb2b9_9788948.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/d8438572f558472dbf9c92b355599c4b_35982206.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/998d2c61ecb9e02ce964476f82bb2066_85316561.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/195b599381453031f6267c652a29a09a_50285026.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/65e30b25c7a68f95b9753495b74e154f_13768839.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/ce2ddd9b4c460bed0db0c728a557a359_87746329.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/1bca7ed8f48a90a8bb8dd26317261cc1_85054627.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/742b98c183cd0d299aff52b47a565578_38599780.png change filename to text .imagette265193321756958551/ imagette265193321756958551/1756951885_1747916_1381372078_6bc688e8ab8eb85dba999a4bf21c9441_92488685_rle_crop_3943842339_0.png.png imagette265193321756958551/1756951627_1736681_1381371715_3eb618b5cd01ace2b60b0c748157ff62_83534639_rle_crop_3943841616_0.png.png imagette265193321756958551/1756951746_1741847_1381371983_9b75ae8009bc2d59d396563c0a721d74_76915677_rle_crop_3943841903_0.png.png imagette265193321756958551/1756951526_1730900_1381370919_7e74b1798645150c6fb1b315af128935_34054109_rle_crop_3943841515_0.png.png imagette265193321756958551/1756951746_1741847_1381371984_6813be3df08afe42acaf50479e0de155_94331182_rle_crop_3943841881_0.png.png imagette265193321756958551/1756951505_1730531_1381371358_ac0c8e44aef218aa370e7c5a322da856_71382494_rle_crop_3943841407_0.png.png imagette265193321756958551/1756951746_1741847_1381371985_c857b08e37d8df35376c328a6124bb59_46184096_rle_crop_3943841857_0.png.png imagette265193321756958551/1756951986_1753426_1381372173_c5aaaf447a36288eda6cdc7a89727402_96853194_rle_crop_3943842508_0.png.png imagette265193321756958551/1756952585_1782319_1381371719_08a98bd88b2e4fd5f9076368a9d14a89_9467475_rle_crop_3943844355_0.png.png imagette265193321756958551/1756951505_1730531_1381371354_98396f64df2d18ff723064b89541153c_15204699_rle_crop_3943841436_0.png.png imagette265193321756958551/1756952585_1782319_1381371719_08a98bd88b2e4fd5f9076368a9d14a89_9467475_rle_crop_3943844351_0.png.png imagette265193321756958551/1756951746_1741847_1381371984_6813be3df08afe42acaf50479e0de155_94331182_rle_crop_3943841883_0.png.png imagette265193321756958551/1756952585_1782319_1381371719_08a98bd88b2e4fd5f9076368a9d14a89_9467475_rle_crop_3943844349_0.png.png imagette265193321756958551/1756951505_1730531_1381371356_6c234b579a777952b6876890da75faec_54876429_rle_crop_3943841424_0.png.png imagette265193321756958551/1756951645_1737068_1381370919_7e74b1798645150c6fb1b315af128935_34054109_rle_crop_3943841515_0.png.png imagette265193321756958551/1756951746_1741847_1381372038_e86616e712cd9b21fb032d69299741f3_23010086_rle_crop_3943841845_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/53ee3671b6267b820d9bdaf4491a479f_80412236.png imagette265193321756958551 26519334 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=26519334 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381372010: '1756951505_1730531_1381371358_ac0c8e44aef218aa370e7c5a322da856_71382494_rle_crop_3943841405_0.png', 1381372011: '1756951505_1730531_1381371356_6c234b579a777952b6876890da75faec_54876429_rle_crop_3943841426_0.png', 1381372012: '1756951505_1730531_1381371354_98396f64df2d18ff723064b89541153c_15204699_rle_crop_3943841435_0.png', 1381372028: '1756951526_1730900_1381371360_5439840979df0faa27ada4a28757fd6d_13041904_rle_crop_3943841506_0.png', 1381372116: '1756951645_1737068_1381371360_5439840979df0faa27ada4a28757fd6d_13041904_rle_crop_3943841506_0.png', 1381372312: '1756951885_1747916_1381372127_8fba1eebcc15d0bae87ebf22b614d544_12321517_rle_crop_3943842300_0.png', 1381372313: '1756951885_1747916_1381372079_8c1ab2ff0d3b16d7a16d5df45d3bc460_17372259_rle_crop_3943842329_0.png', 1381372422: '1756951986_1753426_1381372173_c5aaaf447a36288eda6cdc7a89727402_96853194_rle_crop_3943842509_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/3674044069e522fe5d04399ebac327ce_76656234.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/d2a7b5d4427d42f668c64bf72f806127_1648903.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/6fa0a1b260dbb2941df9d6635f363cb9_42436062.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/6d8898835824cd62ca0513411d707b85_61106146.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/6d8898835824cd62ca0513411d707b85_79496758.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/e9faa5e6d663df154d0b9af23be0df83_13746981.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/887c09560c507ea3b604c4a3b8813a44_70243183.png change filename to text .imagette265193341756958552/ imagette265193341756958552/1756951505_1730531_1381371356_6c234b579a777952b6876890da75faec_54876429_rle_crop_3943841426_0.png.png imagette265193341756958552/1756951986_1753426_1381372173_c5aaaf447a36288eda6cdc7a89727402_96853194_rle_crop_3943842509_0.png.png imagette265193341756958552/1756951885_1747916_1381372079_8c1ab2ff0d3b16d7a16d5df45d3bc460_17372259_rle_crop_3943842329_0.png.png imagette265193341756958552/1756951505_1730531_1381371358_ac0c8e44aef218aa370e7c5a322da856_71382494_rle_crop_3943841405_0.png.png imagette265193341756958552/1756951526_1730900_1381371360_5439840979df0faa27ada4a28757fd6d_13041904_rle_crop_3943841506_0.png.png imagette265193341756958552/1756951645_1737068_1381371360_5439840979df0faa27ada4a28757fd6d_13041904_rle_crop_3943841506_0.png.png imagette265193341756958552/1756951885_1747916_1381372127_8fba1eebcc15d0bae87ebf22b614d544_12321517_rle_crop_3943842300_0.png.png imagette265193341756958552/1756951505_1730531_1381371354_98396f64df2d18ff723064b89541153c_15204699_rle_crop_3943841435_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/aedb26344cfb37f065f5fd8164f617cc_87522928.png imagette265193341756958552 26519335 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=26519335 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381372005: '1756951505_1730531_1381371358_ac0c8e44aef218aa370e7c5a322da856_71382494_rle_crop_3943841409_0.png', 1381372006: '1756951505_1730531_1381371358_ac0c8e44aef218aa370e7c5a322da856_71382494_rle_crop_3943841411_0.png', 1381372199: '1756951746_1741847_1381372038_e86616e712cd9b21fb032d69299741f3_23010086_rle_crop_3943841840_0.png', 1381372200: '1756951746_1741847_1381371984_6813be3df08afe42acaf50479e0de155_94331182_rle_crop_3943841878_0.png', 1381372420: '1756951986_1753426_1381372173_c5aaaf447a36288eda6cdc7a89727402_96853194_rle_crop_3943842510_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/792a3d44d0466d98a84d51277282018f_38644031.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/d76a1966821743ee938dc3a1c13ea2d0_62565034.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/96c223b1d9fbf24e01683b36566c4efa_2213339.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/e41a7a3c496e8adc2e75fea0e7bd3185_99958447.png change filename to text .imagette265193351756958552/ imagette265193351756958552/1756951505_1730531_1381371358_ac0c8e44aef218aa370e7c5a322da856_71382494_rle_crop_3943841409_0.png.png imagette265193351756958552/1756951746_1741847_1381372038_e86616e712cd9b21fb032d69299741f3_23010086_rle_crop_3943841840_0.png.png imagette265193351756958552/1756951505_1730531_1381371358_ac0c8e44aef218aa370e7c5a322da856_71382494_rle_crop_3943841411_0.png.png imagette265193351756958552/1756951986_1753426_1381372173_c5aaaf447a36288eda6cdc7a89727402_96853194_rle_crop_3943842510_0.png.png imagette265193351756958552/1756951746_1741847_1381371984_6813be3df08afe42acaf50479e0de155_94331182_rle_crop_3943841878_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/7a610389fcfdd154794313449d61a2e8_15530951.png imagette265193351756958552 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26519302 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26519344,26519346,26519348,26519351,26519352,26519354,26519356,26519357,26519358,26519359,26519360,26519361?tags=mal_croppe,papier,environnement,cartonnette,plastique,autre_refus,metal,flou,Teint_Dans_La_Masse,kraft,Carton_brun,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1381377097] : ('0.04651536629923985',) no score found for photo 1381377097 We are sending mail with results at report@fotonower.com refus_total : 0.04651536629923985 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=26519302 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_P26519302_04-09-2025_06_02_29.pdf results_Auto_P26519302_04-09-2025_06_02_29.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26519302_04-09-2025_06_02_29.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','26519302','results_Auto_P26519302_04-09-2025_06_02_29.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26519302_04-09-2025_06_02_29.pdf','pdf','','0.16','0.04651536629923985') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26519302]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1381377097] map_info['map_portfolio_photo'] : {26519302: [1381377097, 1381372175, 1381372174, 1381372173, 1381372127, 1381372126, 1381372125, 1381372124, 1381372081, 1381372080, 1381372079, 1381372078, 1381372038, 1381371986, 1381371985, 1381371984, 1381371983, 1381371871, 1381371870, 1381371719, 1381371717, 1381371715, 1381371713, 1381371360, 1381371358, 1381371356, 1381371354, 1381370919, 1381370917]} final : False mtd_id 4302 list_pids : [1381377097] 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, '3662481') ('4302', '26519302', '1381377097', None, None, None, None, None, '3662481') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '26519302', '1381377097', None, None, None, None, None, '3662481')] time used for this insertion : 0.013735055923461914 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.79021954536438 time spend to save output : 0.013932228088378906 total time spend for step 4 : 4.804151773452759 step5:split_time_score Thu Sep 4 06:02:34 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 : ['26519302'] 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 : [('26519302',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26519302) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1381377097: {'path': 'temp/1756958549_289382_1381377097_a964426a6a70e0bf0022f7ca67518290_81584913.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 = 26519302; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('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 = 26519302 group by h (('04', 29),) 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=26519302 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 (26519302) 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 (26519302) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04092025 26519302 Nombre de photos uploadées : 29 / 23040 (0%) 04092025 26519302 Nombre de photos taguées (types de déchets): 0 / 29 (0%) 04092025 26519302 Nombre de photos taguées (volume) : 0 / 29 (0%) [{'photo_id': 1381370919, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/7e74b1798645150c6fb1b315af128935_34054109.jpg', 'username': None, 'uploaded_at': 1756951272, 'text': 'image_04092025_04_00_14_010193m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1381370917, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/6f7467d024fde325173a68cce60df9d8_36694368.jpg', 'username': None, 'uploaded_at': 1756951272, 'text': 'image_04092025_04_00_44_010142m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1381371360, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/5439840979df0faa27ada4a28757fd6d_13041904.jpg', 'username': None, 'uploaded_at': 1756951332, 'text': 'image_04092025_04_00_54_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1381371358, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/ac0c8e44aef218aa370e7c5a322da856_71382494.jpg', 'username': None, 'uploaded_at': 1756951332, 'text': 'image_04092025_04_01_13_009127m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0009634494781494141 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26519302, '2025-09-04' ) 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-04' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2228087,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.1993093490600586 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= 2228087 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26511239, 'dashboard_result_id': 14730656, '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_P26511239_04-09-2025_00_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26511248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26511249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26511250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26511251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26511252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26511253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26511254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26511255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26511256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26511257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26511258, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26511259, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26512008, 'dashboard_result_id': 14730657, '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_P26512008_04-09-2025_00_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512022, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26512746, 'dashboard_result_id': 14730658, '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_P26512746_04-09-2025_00_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512760, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26513045, 'dashboard_result_id': 14730659, '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_P26513045_04-09-2025_01_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26513049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26513050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26513051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26513052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26513053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26513054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26513055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26513056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26513057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26513058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26513059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26513060, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26514289, 'dashboard_result_id': 14730660, '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_P26514289_04-09-2025_01_46_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514301, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26514642, 'dashboard_result_id': 14730661, '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_P26514642_04-09-2025_02_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514659, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26515182, 'dashboard_result_id': 14730662, '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_P26515182_04-09-2025_02_17_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515242, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26515774, 'dashboard_result_id': 14730663, '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_P26515774_04-09-2025_02_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515791, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26516310, 'dashboard_result_id': 14730664, '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_P26516310_04-09-2025_02_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516320, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516331, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26516863, 'dashboard_result_id': 14730665, '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_P26516863_04-09-2025_03_03_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516880, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26517331, 'dashboard_result_id': 14730666, '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_P26517331_04-09-2025_03_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517369, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26517892, 'dashboard_result_id': 14730667, '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_P26517892_04-09-2025_03_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517928, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26518418, 'dashboard_result_id': 14730668, '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_P26518418_04-09-2025_03_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518452, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26518831, 'dashboard_result_id': 14730669, '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_P26518831_04-09-2025_04_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518849, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26519302, 'dashboard_result_id': 14730670, '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_P26519302_04-09-2025_04_10_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26519324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26519325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26519326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26519327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26519328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26519329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26519330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26519331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26519332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26519333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26519334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26519335, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26519966, 'dashboard_result_id': 14730671, '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_P26519966_04-09-2025_04_27_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26519967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26519968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26519969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26519970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26519971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26519972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26519973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26519974, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26519975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26519976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26519977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26519978, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26520020, 'dashboard_result_id': 14730672, '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_P26520020_04-09-2025_04_45_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26520021, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26520022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26520023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26520024, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26520025, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26520026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26520027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26520028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26520029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26520030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26520031, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26520032, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26521196, 'dashboard_result_id': 14730673, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26521198, 'dashboard_result_id': 14730674, '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_P26521198_04-09-2025_06_02_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521269, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26521200, 'dashboard_result_id': 14730675, '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_P26521200_04-09-2025_06_01_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521228, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2236961, 'mtr_portfolio_id': 26521203, 'dashboard_result_id': 14730676, '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_P26521203_04-09-2025_06_01_37.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521216, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26511239 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': 3661530, 'mtr_portfolio_id': 26511239, 'created_at': datetime.datetime(2025, 9, 4, 0, 18, 58), 'result': '0.05027331027112363', 'result_long': None, 'result_double': None}] Qualite : 0.05027331027112363 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26511239 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26511239_04-09-2025_00_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26511239 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_P26511239_04-09-2025_00_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26511248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26511249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26511250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26511251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26511252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26511253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26511254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26511255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26511256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26511257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26511258, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26511259, 'pht': 3726}}" where mtr_portfolio_id = 26511239 and dashboard_run_id = 2236961 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`=26511239 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14730656, 0.05027331027112363, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26511239_04-09-2025_00_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26511248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26511249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26511250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26511251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26511252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26511253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26511254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26511255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26511256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26511257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26511258, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26511259, '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 = 26512008 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': 3661564, 'mtr_portfolio_id': 26512008, 'created_at': datetime.datetime(2025, 9, 4, 0, 32, 58), 'result': '0.06376195561344973', 'result_long': None, 'result_double': None}] Qualite : 0.06376195561344973 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26512008 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26512008_04-09-2025_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26512008 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_P26512008_04-09-2025_00_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512022, 'pht': 3726}}" where mtr_portfolio_id = 26512008 and dashboard_run_id = 2236961 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`=26512008 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14730657, 0.06376195561344973, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26512008_04-09-2025_00_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512022, '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 = 26512746 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': 3661610, 'mtr_portfolio_id': 26512746, 'created_at': datetime.datetime(2025, 9, 4, 0, 46, 59), 'result': '0.06048141476015288', 'result_long': None, 'result_double': None}] Qualite : 0.06048141476015288 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26512746 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26512746_04-09-2025_00_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26512746 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_P26512746_04-09-2025_00_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512760, 'pht': 3726}}" where mtr_portfolio_id = 26512746 and dashboard_run_id = 2236961 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`=26512746 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14730658, 0.06048141476015288, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26512746_04-09-2025_00_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512760, '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 = 26513045 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': 3661639, 'mtr_portfolio_id': 26513045, 'created_at': datetime.datetime(2025, 9, 4, 1, 33, 1), 'result': '0.05307991528254644', 'result_long': None, 'result_double': None}] Qualite : 0.05307991528254644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26513045 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26513045_04-09-2025_01_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26513045 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_P26513045_04-09-2025_01_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26513049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26513050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26513051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26513052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26513053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26513054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26513055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26513056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26513057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26513058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26513059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26513060, 'pht': 3726}}" where mtr_portfolio_id = 26513045 and dashboard_run_id = 2236961 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`=26513045 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14730659, 0.05307991528254644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26513045_04-09-2025_01_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26513049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26513050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26513051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26513052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26513053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26513054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26513055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26513056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26513057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26513058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26513059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26513060, '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 = 26514289 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': 3661766, 'mtr_portfolio_id': 26514289, 'created_at': datetime.datetime(2025, 9, 4, 1, 46, 57), 'result': '0.06679185906021409', 'result_long': None, 'result_double': None}] Qualite : 0.06679185906021409 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26514289 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26514289_04-09-2025_01_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26514289 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_P26514289_04-09-2025_01_46_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514301, 'pht': 3726}}" where mtr_portfolio_id = 26514289 and dashboard_run_id = 2236961 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`=26514289 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14730660, 0.06679185906021409, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26514289_04-09-2025_01_46_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514301, '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 = 26514642 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': 3661808, 'mtr_portfolio_id': 26514642, 'created_at': datetime.datetime(2025, 9, 4, 2, 2, 57), 'result': '0.059590210984218656', 'result_long': None, 'result_double': None}] Qualite : 0.059590210984218656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26514642 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26514642_04-09-2025_02_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26514642 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_P26514642_04-09-2025_02_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514659, 'pht': 3726}}" where mtr_portfolio_id = 26514642 and dashboard_run_id = 2236961 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`=26514642 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14730661, 0.059590210984218656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26514642_04-09-2025_02_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514659, '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 = 26515182 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': 3661887, 'mtr_portfolio_id': 26515182, 'created_at': datetime.datetime(2025, 9, 4, 2, 17, 28), 'result': '0.08148681369186955', 'result_long': None, 'result_double': None}] Qualite : 0.08148681369186955 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26515182 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26515182_04-09-2025_02_17_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26515182 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_P26515182_04-09-2025_02_17_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515242, 'pht': 3726}}" where mtr_portfolio_id = 26515182 and dashboard_run_id = 2236961 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`=26515182 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14730662, 0.08148681369186955, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26515182_04-09-2025_02_17_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515242, '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 = 26515774 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': 3661948, 'mtr_portfolio_id': 26515774, 'created_at': datetime.datetime(2025, 9, 4, 2, 33), 'result': '0.04514127321922813', 'result_long': None, 'result_double': None}] Qualite : 0.04514127321922813 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26515774 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26515774_04-09-2025_02_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26515774 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_P26515774_04-09-2025_02_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515791, 'pht': 3726}}" where mtr_portfolio_id = 26515774 and dashboard_run_id = 2236961 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`=26515774 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14730663, 0.04514127321922813, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26515774_04-09-2025_02_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515791, '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 = 26516310 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': 3662029, 'mtr_portfolio_id': 26516310, 'created_at': datetime.datetime(2025, 9, 4, 2, 47, 1), 'result': '0.07508896031267422', 'result_long': None, 'result_double': None}] Qualite : 0.07508896031267422 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26516310 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26516310_04-09-2025_02_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26516310 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_P26516310_04-09-2025_02_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516320, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516331, 'pht': 3726}}" where mtr_portfolio_id = 26516310 and dashboard_run_id = 2236961 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`=26516310 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14730664, 0.07508896031267422, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26516310_04-09-2025_02_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516320, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516331, '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 = 26516863 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': 3662126, 'mtr_portfolio_id': 26516863, 'created_at': datetime.datetime(2025, 9, 4, 3, 3, 1), 'result': '0.06579091100398138', 'result_long': None, 'result_double': None}] Qualite : 0.06579091100398138 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26516863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26516863_04-09-2025_03_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26516863 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_P26516863_04-09-2025_03_03_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516880, 'pht': 3726}}" where mtr_portfolio_id = 26516863 and dashboard_run_id = 2236961 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`=26516863 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14730665, 0.06579091100398138, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26516863_04-09-2025_03_03_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516880, '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 = 26517331 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': 3662205, 'mtr_portfolio_id': 26517331, 'created_at': datetime.datetime(2025, 9, 4, 3, 16, 58), 'result': '0.06309281734438148', 'result_long': None, 'result_double': None}] Qualite : 0.06309281734438148 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26517331 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26517331_04-09-2025_03_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26517331 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_P26517331_04-09-2025_03_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517369, 'pht': 3726}}" where mtr_portfolio_id = 26517331 and dashboard_run_id = 2236961 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`=26517331 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14730666, 0.06309281734438148, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26517331_04-09-2025_03_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517369, '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 = 26517892 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': 3662277, 'mtr_portfolio_id': 26517892, 'created_at': datetime.datetime(2025, 9, 4, 3, 32, 57), 'result': '0.03645183144871515', 'result_long': None, 'result_double': None}] Qualite : 0.03645183144871515 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26517892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26517892_04-09-2025_03_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26517892 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_P26517892_04-09-2025_03_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517928, 'pht': 3726}}" where mtr_portfolio_id = 26517892 and dashboard_run_id = 2236961 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`=26517892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14730667, 0.03645183144871515, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26517892_04-09-2025_03_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517928, '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 = 26518418 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': 3662339, 'mtr_portfolio_id': 26518418, 'created_at': datetime.datetime(2025, 9, 4, 3, 46, 58), 'result': '0.04397680396566972', 'result_long': None, 'result_double': None}] Qualite : 0.04397680396566972 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26518418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26518418_04-09-2025_03_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26518418 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_P26518418_04-09-2025_03_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518452, 'pht': 3726}}" where mtr_portfolio_id = 26518418 and dashboard_run_id = 2236961 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`=26518418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14730668, 0.04397680396566972, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26518418_04-09-2025_03_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518452, '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 = 26518831 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': 3662393, 'mtr_portfolio_id': 26518831, 'created_at': datetime.datetime(2025, 9, 4, 4, 2, 58), 'result': '0.053176298253082545', 'result_long': None, 'result_double': None}] Qualite : 0.053176298253082545 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26518831 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26518831_04-09-2025_04_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26518831 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_P26518831_04-09-2025_04_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518849, 'pht': 3726}}" where mtr_portfolio_id = 26518831 and dashboard_run_id = 2236961 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`=26518831 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14730669, 0.053176298253082545, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26518831_04-09-2025_04_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518849, '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 = 26519302 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': 3662481, 'mtr_portfolio_id': 26519302, 'created_at': datetime.datetime(2025, 9, 4, 6, 2, 29), 'result': '0.04651536629923985', 'result_long': None, 'result_double': None}] Qualite : 0.04651536629923985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26519302 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26519302_04-09-2025_06_02_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26519302 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_P26519302_04-09-2025_06_02_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26519324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26519325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26519326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26519327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26519328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26519329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26519330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26519331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26519332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26519333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26519334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26519335, 'pht': 3726}}" where mtr_portfolio_id = 26519302 and dashboard_run_id = 2236961 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`=26519302 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14730670, 0.04651536629923985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26519302_04-09-2025_06_02_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26519324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26519325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26519326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26519327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26519328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26519329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26519330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26519331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26519332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26519333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26519334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26519335, '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 = 26519966 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 = 26519966 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 = 26519966 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26519966 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 = 26519966 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 = 26519966 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26519966_04-09-2025_04_27_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26519966 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_P26519966_04-09-2025_04_27_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26519967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26519968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26519969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26519970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26519971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26519972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26519973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26519974, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26519975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26519976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26519977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26519978, 'pht': 3726}}" where mtr_portfolio_id = 26519966 and dashboard_run_id = 2236961 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 = 26520020 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 = 26520020 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 = 26520020 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26520020 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 = 26520020 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 = 26520020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26520020_04-09-2025_04_45_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26520020 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_P26520020_04-09-2025_04_45_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26520021, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26520022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26520023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26520024, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26520025, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26520026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26520027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26520028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26520029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26520030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26520031, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26520032, 'pht': 3726}}" where mtr_portfolio_id = 26520020 and dashboard_run_id = 2236961 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 = 26521196 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 = 26521196 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26521196 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%26521196%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26521196 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 26521196 and dashboard_run_id = 2236961 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 = 26521198 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': 3662921, 'mtr_portfolio_id': 26521198, 'created_at': datetime.datetime(2025, 9, 4, 6, 1, 58), 'result': '0.08810981605952489', 'result_long': None, 'result_double': None}] Qualite : 0.08810981605952489 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26521198 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521198_04-09-2025_06_02_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26521198 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_P26521198_04-09-2025_06_02_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521269, 'pht': 3726}}" where mtr_portfolio_id = 26521198 and dashboard_run_id = 2236961 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`=26521198 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14730674, 0.08810981605952489, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521198_04-09-2025_06_02_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521269, '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 = 26521200 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': 3662922, 'mtr_portfolio_id': 26521200, 'created_at': datetime.datetime(2025, 9, 4, 6, 1, 30), 'result': '0.05914308535975234', 'result_long': None, 'result_double': None}] Qualite : 0.05914308535975234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26521200 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521200_04-09-2025_06_01_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26521200 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_P26521200_04-09-2025_06_01_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521228, 'pht': 3726}}" where mtr_portfolio_id = 26521200 and dashboard_run_id = 2236961 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`=26521200 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14730675, 0.05914308535975234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521200_04-09-2025_06_01_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521228, '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 = 26521203 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': 3662923, 'mtr_portfolio_id': 26521203, 'created_at': datetime.datetime(2025, 9, 4, 6, 1, 34), 'result': '0.07337767426580319', 'result_long': None, 'result_double': None}] Qualite : 0.07337767426580319 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26521203 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521203_04-09-2025_06_01_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26521203 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_P26521203_04-09-2025_06_01_37.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521216, 'pht': 3726}}" where mtr_portfolio_id = 26521203 and dashboard_run_id = 2236961 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`=26521203 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14730676, 0.07337767426580319, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521203_04-09-2025_06_01_37.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521216, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26511239,26512008,26512746,26513045,26514289,26514642,26515182,26515774,26516310,26516863,26517331,26517892,26518418,26518831,26519302,26519966,26520020,26521196,26521198,26521200,26521203) result : ((1381310396,), (1381310399,), (1381311379,), (1381311381,), (1381311384,), (1381312220,), (1381312223,), (1381312226,), (1381312229,), (1381312232,), (1381312235,), (1381313264,), (1381313267,), (1381313270,), (1381313273,), (1381313276,), (1381313862,), (1381313864,), (1381313866,), (1381313868,), (1381314117,), (1381314118,), (1381314119,), (1381314120,), (1381314122,), (1381314348,), (1381314350,), (1381314353,), (1381314355,), (1381314357,), (1381314752,), (1381314827,), (1381314829,), (1381314831,), (1381314833,), (1381314835,), (1381315040,), (1381315041,), (1381315042,), (1381315043,), (1381315098,), (1381315099,), (1381315100,), (1381315102,), (1381315103,), (1381315104,), (1381315270,), (1381315271,), (1381315272,), (1381315273,), (1381315274,), (1381315580,), (1381315581,), (1381315583,), (1381315584,), (1381315585,), (1381315586,), (1381315682,), (1381315683,), (1381315684,), (1381315685,), (1381315729,), (1381315730,), (1381315731,), (1381315732,), (1381315826,), (1381315828,), (1381315830,), (1381315832,), (1381316466,), (1381316707,), (1381316463,), (1381316465,), (1381316658,), (1381316659,), (1381316661,), (1381316663,), (1381316665,), (1381316667,), (1381316706,), (1381316821,), (1381316823,), (1381316825,), (1381316827,), (1381316829,), (1381316831,), (1381317023,), (1381317025,), (1381317027,), (1381317796,), (1381317801,), (1381317806,), (1381319184,), (1381319187,), (1381319191,), (1381319195,), (1381319199,), (1381319652,), (1381319654,), (1381319656,), (1381319658,), (1381319660,), (1381319662,), (1381320119,), (1381320121,), (1381320123,), (1381320125,), (1381321423,), (1381321431,), (1381321439,), (1381321449,), (1381321456,), (1381322593,), (1381322596,), (1381322598,), (1381322600,), (1381322602,), (1381322604,), (1381323215,), (1381323216,), (1381323217,), (1381323218,), (1381323940,), (1381323941,), (1381323942,), (1381323943,), (1381324018,), (1381324019,), (1381324020,), (1381324021,), (1381324023,), (1381324200,), (1381324202,), (1381324204,), (1381324206,), (1381324610,), (1381324611,), (1381324613,), (1381324616,), (1381324878,), (1381324875,), (1381324876,), (1381324877,), (1381325084,), (1381325086,), (1381325088,), (1381325089,), (1381325320,), (1381325321,), (1381325322,), (1381325323,), (1381325324,), (1381325325,), (1381325518,), (1381325521,), (1381325523,), (1381325525,), (1381325907,), (1381325909,), (1381325911,), (1381325913,), (1381326296,), (1381326298,), (1381326300,), (1381326302,), (1381326585,), (1381329291,), (1381329294,), (1381329706,), (1381329708,), (1381329710,), (1381329712,), (1381329714,), (1381329716,), (1381330124,), (1381330127,), (1381330130,), (1381330133,), (1381330847,), (1381330853,), (1381330858,), (1381331946,), (1381331949,), (1381331952,), (1381331955,), (1381332414,), (1381332404,), (1381332406,), (1381332408,), (1381332410,), (1381332412,), (1381333367,), (1381333370,), (1381333373,), (1381333376,), (1381333379,), (1381333941,), (1381333943,), (1381333945,), (1381333947,), (1381333949,), (1381334631,), (1381334634,), (1381334637,), (1381335104,), (1381335106,), (1381335108,), (1381335110,), (1381335807,), (1381335809,), (1381335811,), (1381335814,), (1381335816,), (1381336258,), (1381336259,), (1381336260,), (1381336261,), (1381336262,), (1381336263,), (1381336801,), (1381336803,), (1381336805,), (1381336966,), (1381336967,), (1381336968,), (1381336969,), (1381336970,), (1381336971,), (1381337452,), (1381337455,), (1381337458,), (1381337461,), (1381337464,), (1381337467,), (1381337643,), (1381337644,), (1381337645,), (1381337646,), (1381337647,), (1381337686,), (1381337687,), (1381337688,), (1381337735,), (1381345142,), (1381345189,), (1381345190,), (1381345259,), (1381345260,), (1381345262,), (1381345263,), (1381345302,), (1381345304,), (1381345305,), (1381345347,), (1381345348,), (1381345349,), (1381345394,), (1381345395,), (1381345396,), (1381345397,), (1381345398,), (1381345399,), (1381345436,), (1381345437,), (1381345438,), (1381345439,), (1381345440,), (1381345486,), (1381345487,), (1381345488,), (1381345490,), (1381345528,), (1381345529,), (1381345530,), (1381345531,), (1381345577,), (1381345585,), (1381345586,), (1381345587,), (1381345589,), (1381345633,), (1381345634,), (1381345635,), (1381345636,), (1381345637,), (1381345638,), (1381345679,), (1381345680,), (1381345681,), (1381345682,), (1381345717,), (1381345718,), (1381345719,), (1381345915,), (1381345919,), (1381345923,), (1381345927,), (1381345930,), (1381345999,), (1381346000,), (1381346001,), (1381346002,), (1381346003,), (1381346049,), (1381346044,), (1381346045,), (1381346046,), (1381346048,), (1381346114,), (1381346115,), (1381346116,), (1381346117,), (1381346182,), (1381346183,), (1381346232,), (1381346254,), (1381346255,), (1381346256,), (1381346258,), (1381346318,), (1381346319,), (1381346320,), (1381346321,), (1381346322,), (1381346323,), (1381346370,), (1381346371,), (1381346372,), (1381346428,), (1381346430,), (1381346431,), (1381346432,), (1381346433,), (1381346500,), (1381346501,), (1381346502,), (1381346503,), (1381346504,), (1381346558,), (1381346559,), (1381346560,), (1381346561,), (1381346562,), (1381346598,), (1381346599,), (1381346600,), (1381346601,), (1381346602,), (1381346641,), (1381346642,), (1381346679,), (1381346680,), (1381346681,), (1381346682,), (1381346683,), (1381346735,), (1381346736,), (1381346737,), (1381346738,), (1381346739,), (1381346740,), (1381346942,), (1381346944,), (1381346946,), (1381346948,), (1381347376,), (1381347369,), (1381347370,), (1381347372,), (1381347374,), (1381347700,), (1381347702,), (1381347703,), (1381347704,), (1381347879,), (1381347880,), (1381347881,), (1381347882,), (1381347883,), (1381347884,), (1381347952,), (1381347953,), (1381347954,), (1381347955,), (1381347956,), (1381347994,), (1381347995,), (1381347996,), (1381347997,), (1381347998,), (1381347999,), (1381348046,), (1381348047,), (1381348048,), (1381348049,), (1381348518,), (1381348521,), (1381348524,), (1381349221,), (1381349223,), (1381349739,), (1381349741,), (1381349743,), (1381349745,), (1381349747,), (1381349959,), (1381350079,), (1381350357,), (1381350359,), (1381350361,), (1381350363,), (1381350365,), (1381350776,), (1381350778,), (1381350780,), (1381350782,), (1381350784,), (1381351159,), (1381351160,), (1381351161,), (1381351162,), (1381351210,), (1381351212,), (1381351214,), (1381351216,), (1381351218,), (1381351506,), (1381351498,), (1381351500,), (1381351502,), (1381351504,), (1381351621,), (1381351622,), (1381351624,), (1381351626,), (1381351629,), (1381351703,), (1381351704,), (1381351743,), (1381351744,), (1381351745,), (1381351746,), (1381351783,), (1381351784,), (1381351785,), (1381351786,), (1381351787,), (1381351830,), (1381351831,), (1381351832,), (1381351833,), (1381351889,), (1381351890,), (1381351891,), (1381351892,), (1381351929,), (1381351930,), (1381351931,), (1381351932,), (1381352023,), (1381352025,), (1381352027,), (1381352029,), (1381352031,), (1381352409,), (1381352411,), (1381352413,), (1381352728,), (1381352731,), (1381352734,), (1381352737,), (1381352740,), (1381352743,), (1381353097,), (1381353099,), (1381353101,), (1381353103,), (1381353105,), (1381353107,), (1381353494,), (1381353496,), (1381353498,), (1381353500,), (1381353811,), (1381353813,), (1381353814,), (1381353815,), (1381353816,), (1381353879,), (1381353880,), (1381353881,), (1381353882,), (1381353883,), (1381353931,), (1381353928,), (1381353929,), (1381353930,), (1381354265,), (1381354267,), (1381354269,), (1381354271,), (1381354670,), (1381354671,), (1381354672,), (1381354673,), (1381354853,), (1381354855,), (1381354857,), (1381354859,), (1381354861,), (1381354863,), (1381354941,), (1381354942,), (1381354943,), (1381354945,), (1381354946,), (1381355150,), (1381355152,), (1381355154,), (1381355156,), (1381355455,), (1381355456,), (1381355457,), (1381355458,), (1381355541,), (1381355542,), (1381355543,), (1381355544,), (1381355580,), (1381355581,), (1381355582,), (1381355626,), (1381355627,), (1381355629,), (1381355630,), (1381355631,), (1381355632,), (1381355666,), (1381355667,), (1381355668,), (1381355712,), (1381355713,), (1381355714,), (1381355751,), (1381355752,), (1381355753,), (1381355754,), (1381355802,), (1381355803,), (1381355804,), (1381355805,), (1381355806,), (1381355898,), (1381355899,), (1381355901,), (1381355943,), (1381355942,), (1381355987,), (1381355988,), (1381355989,), (1381356042,), (1381356043,), (1381356044,), (1381356045,), (1381356085,), (1381356086,), (1381356087,), (1381356088,), (1381356126,), (1381356127,), (1381356128,), (1381356129,), (1381356130,), (1381356220,), (1381356221,), (1381356278,), (1381356279,), (1381356280,), (1381356281,), (1381356282,), (1381356343,), (1381356344,), (1381356345,), (1381356346,), (1381356779,), (1381356781,), (1381356783,), (1381356785,), (1381356787,), (1381357239,), (1381357241,), (1381357243,), (1381357649,), (1381357651,), (1381357653,), (1381357655,), (1381358020,), (1381358021,), (1381358022,), (1381358023,), (1381358106,), (1381358107,), (1381358108,), (1381358579,), (1381358583,), (1381358587,), (1381358771,), (1381358775,), (1381358779,), (1381359839,), (1381359823,), (1381359827,), (1381359831,), (1381359835,), (1381361021,), (1381361026,), (1381361031,), (1381361719,), (1381361721,), (1381361723,), (1381362620,), (1381362623,), (1381362872,), (1381362873,), (1381362874,), (1381362917,), (1381362918,), (1381362919,), (1381362966,), (1381362967,), (1381363007,), (1381363008,), (1381363009,), (1381363010,), (1381363184,), (1381363186,), (1381363188,), (1381363190,), (1381363192,), (1381363576,), (1381363579,), (1381363581,), (1381363584,), (1381363976,), (1381363978,), (1381363980,), (1381363982,), (1381363984,), (1381364376,), (1381364378,), (1381364380,), (1381364382,), (1381364384,), (1381364386,), (1381364753,), (1381364754,), (1381364755,), (1381364805,), (1381364806,), (1381364807,), (1381364808,), (1381364845,), (1381364846,), (1381364847,), (1381364849,), (1381364850,), (1381365244,), (1381365237,), (1381365240,), (1381365242,), (1381365612,), (1381365614,), (1381365616,), (1381365784,), (1381365786,), (1381365788,), (1381365790,), (1381365964,), (1381365966,), (1381365968,), (1381365970,), (1381366429,), (1381366432,), (1381366435,), (1381366438,), (1381366842,), (1381366843,), (1381366844,), (1381366845,), (1381366846,), (1381366847,), (1381367136,), (1381367318,), (1381367400,), (1381367438,), (1381367439,), (1381367440,), (1381367525,), (1381367526,), (1381367527,), (1381367567,), (1381367568,), (1381367569,), (1381367570,), (1381367613,), (1381367614,), (1381367615,), (1381367616,), (1381367617,), (1381367658,), (1381367655,), (1381367656,), (1381367657,), (1381367701,), (1381367702,), (1381367703,), (1381367704,), (1381367705,), (1381367955,), (1381367956,), (1381367957,), (1381368174,), (1381368176,), (1381368177,), (1381368178,), (1381368179,), (1381368219,), (1381368220,), (1381368221,), (1381368222,), (1381368270,), (1381368271,), (1381368272,), (1381368273,), (1381368310,), (1381368311,), (1381368312,), (1381368314,), (1381368315,), (1381368393,), (1381368394,), (1381368395,), (1381368430,), (1381368431,), (1381368432,), (1381368434,), (1381368435,), (1381368479,), (1381368551,), (1381368552,), (1381368553,), (1381368583,), (1381368585,), (1381368586,), (1381368587,), (1381368639,), (1381368640,), (1381368641,), (1381368642,), (1381368682,), (1381368683,), (1381368729,), (1381368725,), (1381368726,), (1381368728,), (1381368861,), (1381368862,), (1381368863,), (1381368864,), (1381368865,), (1381368989,), (1381368990,), (1381368991,), (1381368992,), (1381368993,), (1381369029,), (1381369030,), (1381369031,), (1381369032,), (1381369074,), (1381369075,), (1381369076,), (1381369123,), (1381369124,), (1381369125,), (1381369126,), (1381369127,), (1381369170,), (1381369171,), (1381369172,), (1381369173,), (1381369174,), (1381369229,), (1381369230,), (1381369231,), (1381369232,), (1381369233,), (1381369273,), (1381369274,), (1381369275,), (1381369277,), (1381369310,), (1381369311,), (1381369312,), (1381369353,), (1381369354,), (1381369355,), (1381369388,), (1381369389,), (1381369390,), (1381369391,), (1381369392,), (1381369393,), (1381369751,), (1381369753,), (1381369755,), (1381370225,), (1381370229,), (1381370232,), (1381370921,), (1381370917,), (1381370919,), (1381371354,), (1381371356,), (1381371358,), (1381371360,), (1381371713,), (1381371715,), (1381371717,), (1381371719,), (1381371870,), (1381371871,), (1381371983,), (1381371984,), (1381371985,), (1381371986,), (1381372038,), (1381372078,), (1381372079,), (1381372080,), (1381372081,), (1381372124,), (1381372125,), (1381372126,), (1381372127,), (1381372173,), (1381372174,), (1381372175,), (1381377097,), (1381372526,), (1381373005,), (1381373434,), (1381373959,), (1381377745,), (1381377747,), (1381378419,), (1381378420,), (1381378421,), (1381378463,), (1381378464,), (1381378465,), (1381378506,), (1381378507,), (1381378554,), (1381378555,), (1381378627,), (1381378628,), (1381378629,), (1381378630,), (1381378631,), (1381378673,), (1381378674,), (1381378723,), (1381378724,), (1381378725,), (1381378726,), (1381378727,), (1381378775,), (1381378771,), (1381378772,), (1381378773,), (1381378774,), (1381378822,), (1381378823,), (1381378824,), (1381378825,), (1381378826,), (1381378909,), (1381378910,), (1381378911,), (1381378912,), (1381378953,), (1381378954,), (1381378955,), (1381378956,), (1381379022,), (1381379023,), (1381379024,), (1381379025,), (1381379026,), (1381379027,), (1381379077,), (1381379078,), (1381379079,), (1381379080,), (1381379081,), (1381379082,), (1381379164,), (1381379165,), (1381379166,), (1381379207,), (1381379208,), (1381379209,), (1381379210,), (1381379211,), (1381379212,), (1381379324,), (1381379325,), (1381379326,), (1381379327,), (1381379328,), (1381379380,), (1381379381,), (1381379382,), (1381379383,), (1381379453,), (1381379454,), (1381379455,), (1381379456,), (1381379457,), (1381379530,), (1381379531,), (1381379532,), (1381379533,), (1381379624,), (1381379625,), (1381379626,), (1381379627,), (1381379628,), (1381379629,), (1381379669,), (1381379670,), (1381379671,), (1381379672,), (1381379673,), (1381379674,), (1381379738,), (1381379739,), (1381379740,), (1381379741,), (1381379793,), (1381379788,), (1381379789,), (1381379790,), (1381379791,), (1381379792,), (1381379852,), (1381379853,), (1381379854,), (1381379855,), (1381379856,), (1381379857,), (1381379945,), (1381379946,), (1381379947,), (1381379948,), (1381379949,), (1381379995,), (1381379996,), (1381379997,), (1381379998,), (1381379999,), (1381380000,), (1381380037,), (1381380039,), (1381380219,), (1381380590,), (1381380586,), (1381380587,), (1381380588,), (1381380589,), (1381380682,), (1381380683,), (1381380684,), (1381380685,), (1381380686,), (1381380726,), (1381380727,), (1381380728,), (1381380729,), (1381380786,), (1381380787,), (1381380788,), (1381380789,), (1381380836,), (1381380837,), (1381380838,), (1381380839,), (1381380840,), (1381380841,), (1381380881,), (1381380882,), (1381380887,), (1381380889,), (1381380935,), (1381380936,), (1381380981,), (1381380982,), (1381380983,), (1381381013,), (1381381014,), (1381381015,), (1381381016,), (1381381017,), (1381381018,), (1381381057,), (1381381058,), (1381381059,), (1381381060,), (1381381061,), (1381381075,), (1381381076,), (1381381077,), (1381381078,), (1381381079,), (1381381080,), (1381381152,), (1381381153,), (1381381154,), (1381381155,), (1381381759,), (1381381762,), (1381381766,), (1381381769,), (1381381875,), (1381381878,), (1381381881,), (1381381885,), (1381381888,), (1381382490,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04092025': {'nb_upload': 29, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26519302]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1381377097] map_info['map_portfolio_photo'] : {26519302: [1381377097, 1381372175, 1381372174, 1381372173, 1381372127, 1381372126, 1381372125, 1381372124, 1381372081, 1381372080, 1381372079, 1381372078, 1381372038, 1381371986, 1381371985, 1381371984, 1381371983, 1381371871, 1381371870, 1381371719, 1381371717, 1381371715, 1381371713, 1381371360, 1381371358, 1381371356, 1381371354, 1381370919, 1381370917]} final : True mtd_id 4302 list_pids : [1381377097] Looping around the photos to save general results len do output : 1 /26519302Didn'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, '3662481') ('4302', '26519302', '1381377097', None, None, None, None, None, '3662481') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '26519302', 'None', None, None, None, None, '3662481'), ('4302', '26519302', '1381377097', None, None, None, None, None, '3662481')] time used for this insertion : 0.015045881271362305 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.9603536128997803 time spend to save output : 0.015213727951049805 total time spend for step 5 : 2.97556734085083 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 (3662481) 2.08user 2.14system 0:11.56elapsed 36%CPU (0avgtext+0avgdata 156308maxresident)k 0inputs+8136outputs (10major+62074minor)pagefaults 0swaps