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 : 2864555 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 (3667225) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3667225) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26557601 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3667225'] with mtr_portfolio_ids : ['26557601'] and first list_photo_ids : [] new path : /proc/2864555/ Name: python3 Umask: 0002 State: R (running) Tgid: 2864555 Ngid: 0 Pid: 2864555 PPid: 2864554 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2864555 NSpid: 2864555 NSpgid: 2863464 NSsid: 2863464 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98672 kB VmRSS: 98672 kB RssAnon: 60164 kB RssFile: 38508 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 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: 59 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2864555', 'Ngid': '0', 'Pid': '2864555', 'PPid': '2864554', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2864555', 'NSpid': '2864555', 'NSpgid': '2863464', 'NSsid': '2863464', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98672 kB', 'VmRSS': '98672 kB', 'RssAnon': '60164 kB', 'RssFile': '38508 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 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': '59', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '2864555', '1107252', '0', '1107252', '866004', '98672', b'', 'marlene', '3667225') 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 (26557601) 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 (3667225 ) ) 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 (26557601) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1381610839, 'portfolio_id': 26557601}, {'photo_id': 1381610838, 'portfolio_id': 26557601}, {'photo_id': 1381610837, 'portfolio_id': 26557601}, {'photo_id': 1381610836, 'portfolio_id': 26557601}, {'photo_id': 1381610835, 'portfolio_id': 26557601}, {'photo_id': 1381610777, 'portfolio_id': 26557601}, {'photo_id': 1381610776, 'portfolio_id': 26557601}, {'photo_id': 1381610775, 'portfolio_id': 26557601}, {'photo_id': 1381610774, 'portfolio_id': 26557601}, {'photo_id': 1381610737, 'portfolio_id': 26557601}, {'photo_id': 1381610736, 'portfolio_id': 26557601}, {'photo_id': 1381610735, 'portfolio_id': 26557601}, {'photo_id': 1381610734, 'portfolio_id': 26557601}, {'photo_id': 1381610733, 'portfolio_id': 26557601}, {'photo_id': 1381610732, 'portfolio_id': 26557601}, {'photo_id': 1381610660, 'portfolio_id': 26557601}, {'photo_id': 1381610659, 'portfolio_id': 26557601}, {'photo_id': 1381610658, 'portfolio_id': 26557601}, {'photo_id': 1381610657, 'portfolio_id': 26557601}, {'photo_id': 1381610656, 'portfolio_id': 26557601}, {'photo_id': 1381610552, 'portfolio_id': 26557601}, {'photo_id': 1381610551, 'portfolio_id': 26557601}, {'photo_id': 1381610550, 'portfolio_id': 26557601}, {'photo_id': 1381610549, 'portfolio_id': 26557601}, {'photo_id': 1381610330, 'portfolio_id': 26557601}, {'photo_id': 1381610328, 'portfolio_id': 26557601}, {'photo_id': 1381610327, 'portfolio_id': 26557601}, {'photo_id': 1381610326, 'portfolio_id': 26557601}, {'photo_id': 1381610325, 'portfolio_id': 26557601}, {'photo_id': 1381610005, 'portfolio_id': 26557601}, {'photo_id': 1381610003, 'portfolio_id': 26557601}, {'photo_id': 1381609167, 'portfolio_id': 26557601}, {'photo_id': 1381609096, 'portfolio_id': 26557601}] map_portfolio_id_photo_id: {26557601: [1381610839, 1381610838, 1381610837, 1381610836, 1381610835, 1381610777, 1381610776, 1381610775, 1381610774, 1381610737, 1381610736, 1381610735, 1381610734, 1381610733, 1381610732, 1381610660, 1381610659, 1381610658, 1381610657, 1381610656, 1381610552, 1381610551, 1381610550, 1381610549, 1381610330, 1381610328, 1381610327, 1381610326, 1381610325, 1381610005, 1381610003, 1381609167, 1381609096]} ##### 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.014192819595336914 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Sep 5 03:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26557601) 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 : 26557601 get user id for portfolio 26557601 get sub ptf for main ptf 26557601, type 3726 and hashtags ['cartonnette', 'mal_croppe', 'metal', 'papier', 'plastique', 'Carton_brun', 'kraft', 'environnement', 'Teint_Dans_La_Masse', 'Carton_gris', 'flou', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26557601 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','mal_croppe','metal','papier','plastique','Carton_brun','kraft','environnement','Teint_Dans_La_Masse','Carton_gris','flou','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26557601 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','mal_croppe','metal','papier','plastique','Carton_brun','kraft','environnement','Teint_Dans_La_Masse','Carton_gris','flou','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 26557601, 'sub_port_id': 26557604, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885910, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 27)}, 'flou': {'main_port_id': 26557601, 'sub_port_id': 26557605, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885911, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 27)}, 'cartonnette': {'main_port_id': 26557601, 'sub_port_id': 26557606, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885912, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 27)}, 'environnement': {'main_port_id': 26557601, 'sub_port_id': 26557607, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885913, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 27)}, 'papier': {'main_port_id': 26557601, 'sub_port_id': 26557608, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885914, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 26557601, 'sub_port_id': 26557609, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885915, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 27)}, 'metal': {'main_port_id': 26557601, 'sub_port_id': 26557610, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885916, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 27)}, 'mal_croppe': {'main_port_id': 26557601, 'sub_port_id': 26557611, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885917, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 27)}, 'Carton_gris': {'main_port_id': 26557601, 'sub_port_id': 26557612, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885918, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 27)}, 'kraft': {'main_port_id': 26557601, 'sub_port_id': 26557613, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885919, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 27)}, 'autre_refus': {'main_port_id': 26557601, 'sub_port_id': 26557614, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885920, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 27)}, 'Carton_brun': {'main_port_id': 26557601, 'sub_port_id': 26557615, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885921, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26557604 , 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=26557601 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 (26557604) result : ((1381610821,), (1381610822,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26557601) result : ((1381609096,), (1381609167,), (1381610003,), (1381610005,), (1381610325,), (1381610326,), (1381610327,), (1381610328,), (1381610330,), (1381610549,), (1381610550,), (1381610551,), (1381610552,), (1381610656,), (1381610657,), (1381610658,), (1381610659,), (1381610660,), (1381610732,), (1381610733,), (1381610734,), (1381610735,), (1381610736,), (1381610737,), (1381610774,), (1381610775,), (1381610776,), (1381610777,), (1381610835,), (1381610836,), (1381610837,), (1381610838,), (1381610839,)) 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 26557605 , 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=26557601 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 (26557605) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26557601) result : ((1381609096,), (1381609167,), (1381610003,), (1381610005,), (1381610325,), (1381610326,), (1381610327,), (1381610328,), (1381610330,), (1381610549,), (1381610550,), (1381610551,), (1381610552,), (1381610656,), (1381610657,), (1381610658,), (1381610659,), (1381610660,), (1381610732,), (1381610733,), (1381610734,), (1381610735,), (1381610736,), (1381610737,), (1381610774,), (1381610775,), (1381610776,), (1381610777,), (1381610835,), (1381610836,), (1381610837,), (1381610838,), (1381610839,)) 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 26557606 , 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=26557601 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 (26557606) result : ((1381609702,), (1381609704,), (1381610677,), (1381610713,), (1381610816,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26557601) result : ((1381609096,), (1381609167,), (1381610003,), (1381610005,), (1381610325,), (1381610326,), (1381610327,), (1381610328,), (1381610330,), (1381610549,), (1381610550,), (1381610551,), (1381610552,), (1381610656,), (1381610657,), (1381610658,), (1381610659,), (1381610660,), (1381610732,), (1381610733,), (1381610734,), (1381610735,), (1381610736,), (1381610737,), (1381610774,), (1381610775,), (1381610776,), (1381610777,), (1381610835,), (1381610836,), (1381610837,), (1381610838,), (1381610839,)) 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 26557607 , 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=26557601 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 (26557607) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26557601) result : ((1381609096,), (1381609167,), (1381610003,), (1381610005,), (1381610325,), (1381610326,), (1381610327,), (1381610328,), (1381610330,), (1381610549,), (1381610550,), (1381610551,), (1381610552,), (1381610656,), (1381610657,), (1381610658,), (1381610659,), (1381610660,), (1381610732,), (1381610733,), (1381610734,), (1381610735,), (1381610736,), (1381610737,), (1381610774,), (1381610775,), (1381610776,), (1381610777,), (1381610835,), (1381610836,), (1381610837,), (1381610838,), (1381610839,)) 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 26557608 , 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=26557601 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 (26557608) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26557601) result : ((1381609096,), (1381609167,), (1381610003,), (1381610005,), (1381610325,), (1381610326,), (1381610327,), (1381610328,), (1381610330,), (1381610549,), (1381610550,), (1381610551,), (1381610552,), (1381610656,), (1381610657,), (1381610658,), (1381610659,), (1381610660,), (1381610732,), (1381610733,), (1381610734,), (1381610735,), (1381610736,), (1381610737,), (1381610774,), (1381610775,), (1381610776,), (1381610777,), (1381610835,), (1381610836,), (1381610837,), (1381610838,), (1381610839,)) 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 26557609 , 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=26557601 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 (26557609) result : ((1381610698,), (1381610699,), (1381610700,), (1381610704,), (1381610705,), (1381610706,), (1381610708,), (1381610791,), (1381610792,), (1381610793,), (1381610808,), (1381610809,), (1381610810,), (1381610811,), (1381610812,), (1381610813,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26557601) result : ((1381609096,), (1381609167,), (1381610003,), (1381610005,), (1381610325,), (1381610326,), (1381610327,), (1381610328,), (1381610330,), (1381610549,), (1381610550,), (1381610551,), (1381610552,), (1381610656,), (1381610657,), (1381610658,), (1381610659,), (1381610660,), (1381610732,), (1381610733,), (1381610734,), (1381610735,), (1381610736,), (1381610737,), (1381610774,), (1381610775,), (1381610776,), (1381610777,), (1381610835,), (1381610836,), (1381610837,), (1381610838,), (1381610839,)) 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 26557610 , 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=26557601 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 (26557610) result : ((1381610724,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26557601) result : ((1381609096,), (1381609167,), (1381610003,), (1381610005,), (1381610325,), (1381610326,), (1381610327,), (1381610328,), (1381610330,), (1381610549,), (1381610550,), (1381610551,), (1381610552,), (1381610656,), (1381610657,), (1381610658,), (1381610659,), (1381610660,), (1381610732,), (1381610733,), (1381610734,), (1381610735,), (1381610736,), (1381610737,), (1381610774,), (1381610775,), (1381610776,), (1381610777,), (1381610835,), (1381610836,), (1381610837,), (1381610838,), (1381610839,)) 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 26557611 , 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=26557601 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 (26557611) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26557601) result : ((1381609096,), (1381609167,), (1381610003,), (1381610005,), (1381610325,), (1381610326,), (1381610327,), (1381610328,), (1381610330,), (1381610549,), (1381610550,), (1381610551,), (1381610552,), (1381610656,), (1381610657,), (1381610658,), (1381610659,), (1381610660,), (1381610732,), (1381610733,), (1381610734,), (1381610735,), (1381610736,), (1381610737,), (1381610774,), (1381610775,), (1381610776,), (1381610777,), (1381610835,), (1381610836,), (1381610837,), (1381610838,), (1381610839,)) 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 26557612 , 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=26557601 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 (26557612) result : ((1381610711,), (1381610814,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26557601) result : ((1381609096,), (1381609167,), (1381610003,), (1381610005,), (1381610325,), (1381610326,), (1381610327,), (1381610328,), (1381610330,), (1381610549,), (1381610550,), (1381610551,), (1381610552,), (1381610656,), (1381610657,), (1381610658,), (1381610659,), (1381610660,), (1381610732,), (1381610733,), (1381610734,), (1381610735,), (1381610736,), (1381610737,), (1381610774,), (1381610775,), (1381610776,), (1381610777,), (1381610835,), (1381610836,), (1381610837,), (1381610838,), (1381610839,)) 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 26557613 , 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=26557601 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 (26557613) result : ((1381610678,), (1381610795,), (1381610824,), (1381610825,), (1381610826,), (1381610827,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26557601) result : ((1381609096,), (1381609167,), (1381610003,), (1381610005,), (1381610325,), (1381610326,), (1381610327,), (1381610328,), (1381610330,), (1381610549,), (1381610550,), (1381610551,), (1381610552,), (1381610656,), (1381610657,), (1381610658,), (1381610659,), (1381610660,), (1381610732,), (1381610733,), (1381610734,), (1381610735,), (1381610736,), (1381610737,), (1381610774,), (1381610775,), (1381610776,), (1381610777,), (1381610835,), (1381610836,), (1381610837,), (1381610838,), (1381610839,)) 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 26557614 , 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=26557601 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 (26557614) result : ((1381610676,), (1381610710,), (1381610794,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26557601) result : ((1381609096,), (1381609167,), (1381610003,), (1381610005,), (1381610325,), (1381610326,), (1381610327,), (1381610328,), (1381610330,), (1381610549,), (1381610550,), (1381610551,), (1381610552,), (1381610656,), (1381610657,), (1381610658,), (1381610659,), (1381610660,), (1381610732,), (1381610733,), (1381610734,), (1381610735,), (1381610736,), (1381610737,), (1381610774,), (1381610775,), (1381610776,), (1381610777,), (1381610835,), (1381610836,), (1381610837,), (1381610838,), (1381610839,)) 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 26557615 , 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=26557601 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 (26557615) result : ((1381610818,), (1381610819,), (1381610820,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26557601) result : ((1381609096,), (1381609167,), (1381610003,), (1381610005,), (1381610325,), (1381610326,), (1381610327,), (1381610328,), (1381610330,), (1381610549,), (1381610550,), (1381610551,), (1381610552,), (1381610656,), (1381610657,), (1381610658,), (1381610659,), (1381610660,), (1381610732,), (1381610733,), (1381610734,), (1381610735,), (1381610736,), (1381610737,), (1381610774,), (1381610775,), (1381610776,), (1381610777,), (1381610835,), (1381610836,), (1381610837,), (1381610838,), (1381610839,)) 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`=26557601 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','mal_croppe','metal','papier','plastique','Carton_brun','kraft','environnement','Teint_Dans_La_Masse','Carton_gris','flou','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26557601 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','mal_croppe','metal','papier','plastique','Carton_brun','kraft','environnement','Teint_Dans_La_Masse','Carton_gris','flou','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 26557601, 'sub_port_id': 26557616, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885922, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 29)}, 'flou': {'main_port_id': 26557601, 'sub_port_id': 26557617, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885923, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 29)}, 'cartonnette': {'main_port_id': 26557601, 'sub_port_id': 26557618, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885924, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 29)}, 'environnement': {'main_port_id': 26557601, 'sub_port_id': 26557619, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885925, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 29)}, 'papier': {'main_port_id': 26557601, 'sub_port_id': 26557620, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885926, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 26557601, 'sub_port_id': 26557621, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885927, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 29)}, 'metal': {'main_port_id': 26557601, 'sub_port_id': 26557622, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885928, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 29)}, 'mal_croppe': {'main_port_id': 26557601, 'sub_port_id': 26557623, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885929, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 29)}, 'Carton_gris': {'main_port_id': 26557601, 'sub_port_id': 26557624, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885930, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 29)}, 'kraft': {'main_port_id': 26557601, 'sub_port_id': 26557625, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885931, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 29)}, 'autre_refus': {'main_port_id': 26557601, 'sub_port_id': 26557626, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885932, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 29)}, 'Carton_brun': {'main_port_id': 26557601, 'sub_port_id': 26557627, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17885933, 'last_updated_at': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 3, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 3, 7, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26557616,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26557604 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26557617,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26557605 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26557618,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26557606 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26557619,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26557607 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26557620,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26557608 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26557621,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26557609 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26557622,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26557610 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26557623,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26557611 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26557624,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26557612 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26557625,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26557613 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26557626,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26557614 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26557627,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26557615 lien utilise dans velours : https://marlene.fotonower.com/velours/26557616,26557617,26557618,26557619,26557620,26557621,26557622,26557623,26557624,26557625,26557626,26557627?tags=plastique,flou,cartonnette,environnement,papier,Teint_Dans_La_Masse,metal,mal_croppe,Carton_gris,kraft,autre_refus,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26557601]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1381610839, 1381610838, 1381610837, 1381610836, 1381610835, 1381610777, 1381610776, 1381610775, 1381610774] map_info['map_portfolio_photo'] : {26557601: [1381610839, 1381610838, 1381610837, 1381610836, 1381610835, 1381610777, 1381610776, 1381610775, 1381610774, 1381610737, 1381610736, 1381610735, 1381610734, 1381610733, 1381610732, 1381610660, 1381610659, 1381610658, 1381610657, 1381610656, 1381610552, 1381610551, 1381610550, 1381610549, 1381610330, 1381610328, 1381610327, 1381610326, 1381610325, 1381610005, 1381610003, 1381609167, 1381609096]} final : False mtd_id 4302 list_pids : [1381610839, 1381610838, 1381610837, 1381610836, 1381610835, 1381610777, 1381610776, 1381610775, 1381610774] Looping around the photos to save general results len do output : 1 /26557601. 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, '3667225') ('4302', '26557601', '1381610839', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610838', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610837', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610836', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610835', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610777', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610776', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610775', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610774', None, None, None, None, None, '3667225') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '26557601', "{'plastique': 26557604, 'flou': 26557605, 'cartonnette': 26557606, 'environnement': 26557607, 'papier': 26557608, 'Teint_Dans_La_Masse': 26557609, 'metal': 26557610, 'mal_croppe': 26557611, 'Carton_gris': 26557612, 'kraft': 26557613, 'autre_refus': 26557614, 'Carton_brun': 26557615}", None, None, None, None, '3667225'), ('4302', '26557601', '1381610839', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610838', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610837', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610836', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610835', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610777', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610776', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610775', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610774', None, None, None, None, None, '3667225')] time used for this insertion : 0.13085150718688965 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9629504680633545 time spend to save output : 0.13115262985229492 total time spend for step 1 : 2.0941030979156494 step2:final Fri Sep 5 03:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26557601) 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 26557601 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1381609096,1381609167,1381610005,1381610003,1381610330,1381610328,1381610327,1381610326,1381610325,1381610552,1381610551,1381610550,1381610549,1381610660,1381610659,1381610658,1381610657,1381610656,1381610737,1381610736,1381610735,1381610734,1381610733,1381610732,1381610777,1381610776,1381610775,1381610774,1381610839,1381610838,1381610837,1381610836,1381610835); 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([26557601]) Inside saveOutput : final : False verbose : True original output for save of step final : {1381610839: ('0.0787985503411629',), 1381610838: ('0.0787985503411629',), 1381610837: ('0.0787985503411629',), 1381610836: ('0.0787985503411629',), 1381610835: ('0.0787985503411629',), 1381610777: ('0.0787985503411629',), 1381610776: ('0.0787985503411629',), 1381610775: ('0.0787985503411629',), 1381610774: ('0.0787985503411629',)} new output for save of step final : {1381610839: ('0.0787985503411629',), 1381610838: ('0.0787985503411629',), 1381610837: ('0.0787985503411629',), 1381610836: ('0.0787985503411629',), 1381610835: ('0.0787985503411629',), 1381610777: ('0.0787985503411629',), 1381610776: ('0.0787985503411629',), 1381610775: ('0.0787985503411629',), 1381610774: ('0.0787985503411629',)} [1381610839, 1381610838, 1381610837, 1381610836, 1381610835, 1381610777, 1381610776, 1381610775, 1381610774] map_info['map_portfolio_photo'] : {26557601: [1381610839, 1381610838, 1381610837, 1381610836, 1381610835, 1381610777, 1381610776, 1381610775, 1381610774, 1381610737, 1381610736, 1381610735, 1381610734, 1381610733, 1381610732, 1381610660, 1381610659, 1381610658, 1381610657, 1381610656, 1381610552, 1381610551, 1381610550, 1381610549, 1381610330, 1381610328, 1381610327, 1381610326, 1381610325, 1381610005, 1381610003, 1381609167, 1381609096]} final : False mtd_id 4302 list_pids : [1381610839, 1381610838, 1381610837, 1381610836, 1381610835, 1381610777, 1381610776, 1381610775, 1381610774] Looping around the photos to save general results len do output : 9 /1381610839.Didn't retrieve data . /1381610838.Didn't retrieve data . /1381610837.Didn't retrieve data . /1381610836.Didn't retrieve data . /1381610835.Didn't retrieve data . /1381610777.Didn't retrieve data . /1381610776.Didn't retrieve data . /1381610775.Didn't retrieve data . /1381610774.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, '3667225') ('4302', '26557601', '1381610839', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610838', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610837', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610836', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610835', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610777', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610776', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610775', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610774', None, None, None, None, None, '3667225') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '26557601', '1381610839', '0.0787985503411629', None, None, None, None, '3667225'), ('4302', '26557601', '1381610838', '0.0787985503411629', None, None, None, None, '3667225'), ('4302', '26557601', '1381610837', '0.0787985503411629', None, None, None, None, '3667225'), ('4302', '26557601', '1381610836', '0.0787985503411629', None, None, None, None, '3667225'), ('4302', '26557601', '1381610835', '0.0787985503411629', None, None, None, None, '3667225'), ('4302', '26557601', '1381610777', '0.0787985503411629', None, None, None, None, '3667225'), ('4302', '26557601', '1381610776', '0.0787985503411629', None, None, None, None, '3667225'), ('4302', '26557601', '1381610775', '0.0787985503411629', None, None, None, None, '3667225'), ('4302', '26557601', '1381610774', '0.0787985503411629', None, None, None, None, '3667225')] time used for this insertion : 0.016016721725463867 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06461000442504883 time spend to save output : 0.01648688316345215 total time spend for step 2 : 0.08109688758850098 step3:velours_tree Fri Sep 5 03:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {26557601: [{'plastique': 26557604, 'flou': 26557605, 'cartonnette': 26557606, 'environnement': 26557607, 'papier': 26557608, 'Teint_Dans_La_Masse': 26557609, 'metal': 26557610, 'mal_croppe': 26557611, 'Carton_gris': 26557612, 'kraft': 26557613, 'autre_refus': 26557614, 'Carton_brun': 26557615}]} input_args_next_step : {26557601: ()} output_args : {26557601: [{'plastique': 26557604, 'flou': 26557605, 'cartonnette': 26557606, 'environnement': 26557607, 'papier': 26557608, 'Teint_Dans_La_Masse': 26557609, 'metal': 26557610, 'mal_croppe': 26557611, 'Carton_gris': 26557612, 'kraft': 26557613, 'autre_refus': 26557614, 'Carton_brun': 26557615}]} args : 26557601 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 : ({'plastique': 26557604, 'flou': 26557605, 'cartonnette': 26557606, 'environnement': 26557607, 'papier': 26557608, 'Teint_Dans_La_Masse': 26557609, 'metal': 26557610, 'mal_croppe': 26557611, 'Carton_gris': 26557612, 'kraft': 26557613, 'autre_refus': 26557614, 'Carton_brun': 26557615},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26557601) 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([26557601]) 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.2890169620513916 time spend to save output : 4.1484832763671875e-05 total time spend for step 3 : 0.2890584468841553 step4:send_mail_cod Fri Sep 5 03:15:01 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 : {1381610839: ('0.0787985503411629',), 1381610838: ('0.0787985503411629',), 1381610837: ('0.0787985503411629',), 1381610836: ('0.0787985503411629',), 1381610835: ('0.0787985503411629',), 1381610777: ('0.0787985503411629',), 1381610776: ('0.0787985503411629',), 1381610775: ('0.0787985503411629',), 1381610774: ('0.0787985503411629',)} input_args_next_step : {1381610839: ()} output_args : {1381610839: ('0.0787985503411629',), 1381610838: ('0.0787985503411629',), 1381610837: ('0.0787985503411629',), 1381610836: ('0.0787985503411629',), 1381610835: ('0.0787985503411629',), 1381610777: ('0.0787985503411629',), 1381610776: ('0.0787985503411629',), 1381610775: ('0.0787985503411629',), 1381610774: ('0.0787985503411629',)} args : 1381610839 depend.output_id : 0 input_args_next_step : {1381610839: ('0.0787985503411629',), 1381610838: ()} output_args : {1381610839: ('0.0787985503411629',), 1381610838: ('0.0787985503411629',), 1381610837: ('0.0787985503411629',), 1381610836: ('0.0787985503411629',), 1381610835: ('0.0787985503411629',), 1381610777: ('0.0787985503411629',), 1381610776: ('0.0787985503411629',), 1381610775: ('0.0787985503411629',), 1381610774: ('0.0787985503411629',)} args : 1381610838 depend.output_id : 0 input_args_next_step : {1381610839: ('0.0787985503411629',), 1381610838: ('0.0787985503411629',), 1381610837: ()} output_args : {1381610839: ('0.0787985503411629',), 1381610838: ('0.0787985503411629',), 1381610837: ('0.0787985503411629',), 1381610836: ('0.0787985503411629',), 1381610835: ('0.0787985503411629',), 1381610777: ('0.0787985503411629',), 1381610776: ('0.0787985503411629',), 1381610775: ('0.0787985503411629',), 1381610774: ('0.0787985503411629',)} args : 1381610837 depend.output_id : 0 input_args_next_step : {1381610839: ('0.0787985503411629',), 1381610838: ('0.0787985503411629',), 1381610837: ('0.0787985503411629',), 1381610836: ()} output_args : {1381610839: ('0.0787985503411629',), 1381610838: ('0.0787985503411629',), 1381610837: ('0.0787985503411629',), 1381610836: ('0.0787985503411629',), 1381610835: ('0.0787985503411629',), 1381610777: ('0.0787985503411629',), 1381610776: ('0.0787985503411629',), 1381610775: ('0.0787985503411629',), 1381610774: ('0.0787985503411629',)} args : 1381610836 depend.output_id : 0 input_args_next_step : {1381610839: ('0.0787985503411629',), 1381610838: ('0.0787985503411629',), 1381610837: ('0.0787985503411629',), 1381610836: ('0.0787985503411629',), 1381610835: ()} output_args : {1381610839: ('0.0787985503411629',), 1381610838: ('0.0787985503411629',), 1381610837: ('0.0787985503411629',), 1381610836: ('0.0787985503411629',), 1381610835: ('0.0787985503411629',), 1381610777: ('0.0787985503411629',), 1381610776: ('0.0787985503411629',), 1381610775: ('0.0787985503411629',), 1381610774: ('0.0787985503411629',)} args : 1381610835 depend.output_id : 0 input_args_next_step : {1381610839: ('0.0787985503411629',), 1381610838: ('0.0787985503411629',), 1381610837: ('0.0787985503411629',), 1381610836: ('0.0787985503411629',), 1381610835: ('0.0787985503411629',), 1381610777: ()} output_args : {1381610839: ('0.0787985503411629',), 1381610838: ('0.0787985503411629',), 1381610837: ('0.0787985503411629',), 1381610836: ('0.0787985503411629',), 1381610835: ('0.0787985503411629',), 1381610777: ('0.0787985503411629',), 1381610776: ('0.0787985503411629',), 1381610775: ('0.0787985503411629',), 1381610774: ('0.0787985503411629',)} args : 1381610777 depend.output_id : 0 input_args_next_step : {1381610839: ('0.0787985503411629',), 1381610838: ('0.0787985503411629',), 1381610837: ('0.0787985503411629',), 1381610836: ('0.0787985503411629',), 1381610835: ('0.0787985503411629',), 1381610777: ('0.0787985503411629',), 1381610776: ()} output_args : {1381610839: ('0.0787985503411629',), 1381610838: ('0.0787985503411629',), 1381610837: ('0.0787985503411629',), 1381610836: ('0.0787985503411629',), 1381610835: ('0.0787985503411629',), 1381610777: ('0.0787985503411629',), 1381610776: ('0.0787985503411629',), 1381610775: ('0.0787985503411629',), 1381610774: ('0.0787985503411629',)} args : 1381610776 depend.output_id : 0 input_args_next_step : {1381610839: ('0.0787985503411629',), 1381610838: ('0.0787985503411629',), 1381610837: ('0.0787985503411629',), 1381610836: ('0.0787985503411629',), 1381610835: ('0.0787985503411629',), 1381610777: ('0.0787985503411629',), 1381610776: ('0.0787985503411629',), 1381610775: ()} output_args : {1381610839: ('0.0787985503411629',), 1381610838: ('0.0787985503411629',), 1381610837: ('0.0787985503411629',), 1381610836: ('0.0787985503411629',), 1381610835: ('0.0787985503411629',), 1381610777: ('0.0787985503411629',), 1381610776: ('0.0787985503411629',), 1381610775: ('0.0787985503411629',), 1381610774: ('0.0787985503411629',)} args : 1381610775 depend.output_id : 0 input_args_next_step : {1381610839: ('0.0787985503411629',), 1381610838: ('0.0787985503411629',), 1381610837: ('0.0787985503411629',), 1381610836: ('0.0787985503411629',), 1381610835: ('0.0787985503411629',), 1381610777: ('0.0787985503411629',), 1381610776: ('0.0787985503411629',), 1381610775: ('0.0787985503411629',), 1381610774: ()} output_args : {1381610839: ('0.0787985503411629',), 1381610838: ('0.0787985503411629',), 1381610837: ('0.0787985503411629',), 1381610836: ('0.0787985503411629',), 1381610835: ('0.0787985503411629',), 1381610777: ('0.0787985503411629',), 1381610776: ('0.0787985503411629',), 1381610775: ('0.0787985503411629',), 1381610774: ('0.0787985503411629',)} args : 1381610774 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {26557601: [{'plastique': 26557604, 'flou': 26557605, 'cartonnette': 26557606, 'environnement': 26557607, 'papier': 26557608, 'Teint_Dans_La_Masse': 26557609, 'metal': 26557610, 'mal_croppe': 26557611, 'Carton_gris': 26557612, 'kraft': 26557613, 'autre_refus': 26557614, 'Carton_brun': 26557615}]} input_args_next_step : {1381610839: ('0.0787985503411629',), 1381610838: ('0.0787985503411629',), 1381610837: ('0.0787985503411629',), 1381610836: ('0.0787985503411629',), 1381610835: ('0.0787985503411629',), 1381610777: ('0.0787985503411629',), 1381610776: ('0.0787985503411629',), 1381610775: ('0.0787985503411629',), 1381610774: ('0.0787985503411629',), 26557601: ()} output_args : {26557601: [{'plastique': 26557604, 'flou': 26557605, 'cartonnette': 26557606, 'environnement': 26557607, 'papier': 26557608, 'Teint_Dans_La_Masse': 26557609, 'metal': 26557610, 'mal_croppe': 26557611, 'Carton_gris': 26557612, 'kraft': 26557613, 'autre_refus': 26557614, 'Carton_brun': 26557615}]} args : 26557601 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 :10, first value : ('0.0787985503411629',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26557601) 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 (1381610839,1381610838,1381610837,1381610836,1381610835,1381610777,1381610776,1381610775,1381610774) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1381610774 begin to download photo : 1381610776 begin to download photo : 1381610835 begin to download photo : 1381610837 begin to download photo : 1381610839 download finish for photo 1381610837 begin to download photo : 1381610838 download finish for photo 1381610835 begin to download photo : 1381610836 download finish for photo 1381610774 begin to download photo : 1381610775 download finish for photo 1381610776 begin to download photo : 1381610777 download finish for photo 1381610839 download finish for photo 1381610838 download finish for photo 1381610775 download finish for photo 1381610777 download finish for photo 1381610836 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P26557601_05-09-2025_03_15_01.pdf 26557604 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=26557604 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381610821: '1757034804_729180_1381610735_7cae443141cdf1ce1b584a51549b1462_98472775_rle_crop_3945299288_0.png', 1381610822: '1757034804_729180_1381610732_d5a7701ba5d956b2a5bb20406d203a24_32959999_rle_crop_3945299329_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/6385d5b21acabd8a35909753c80f1fc5_68793315.png change filename to text .imagette265576041757034901/ imagette265576041757034901/1757034804_729180_1381610735_7cae443141cdf1ce1b584a51549b1462_98472775_rle_crop_3945299288_0.png.png imagette265576041757034901/1757034804_729180_1381610732_d5a7701ba5d956b2a5bb20406d203a24_32959999_rle_crop_3945299329_0.png.png imagette265576051757034901/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/275068e029c506cb4614defe29e114b8_93452801.png imagette265576041757034901 26557605 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=26557605 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265576051757034901 26557606 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=26557606 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381609702: '1757034426_713093_1381609167_3caa3349952b8c0f53cde4e2f1c29cf9_66648376_rle_crop_3945298454_0.png', 1381609704: '1757034426_713093_1381609167_3caa3349952b8c0f53cde4e2f1c29cf9_66648376_rle_crop_3945298452_0.png', 1381610677: '1757034666_723435_1381610550_f36fae83261b68d4f8dc7f27ce573467_8937596_rle_crop_3945298762_0.png', 1381610713: '1757034685_723870_1381610327_38d18a8546bdb18ac0d0ef5bc846e862_90678637_rle_crop_3945299017_0.png', 1381610816: '1757034804_729180_1381610733_f1ed66641ef806e7dcf20f30429f061f_72440374_rle_crop_3945299317_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/a55348388a48da6125adcd94cc065446_72251000.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/f17cc890ce6183319acb12a55906b33b_45555973.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/55a585113ab95a6c4ea3985a6a2719ae_56932840.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/2f3c22468aa92cbd3b6427e624b94321_34922162.png change filename to text .imagette265576061757034901/ imagette265576061757034901/1757034426_713093_1381609167_3caa3349952b8c0f53cde4e2f1c29cf9_66648376_rle_crop_3945298452_0.png.png imagette265576061757034901/1757034426_713093_1381609167_3caa3349952b8c0f53cde4e2f1c29cf9_66648376_rle_crop_3945298454_0.png.png imagette265576061757034901/1757034685_723870_1381610327_38d18a8546bdb18ac0d0ef5bc846e862_90678637_rle_crop_3945299017_0.png.png imagette265576061757034901/1757034666_723435_1381610550_f36fae83261b68d4f8dc7f27ce573467_8937596_rle_crop_3945298762_0.png.png imagette265576061757034901/1757034804_729180_1381610733_f1ed66641ef806e7dcf20f30429f061f_72440374_rle_crop_3945299317_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/44d75331854ca85d1274c95faae70886_83269260.png imagette265576061757034901 26557610 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=26557610 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381610724: '1757034685_723870_1381610325_ed69ed555f167068abfd3b62a80141dc_41125016_rle_crop_3945299044_0.png'} change filename to text .imagette265576101757034901/ imagette265576101757034901/1757034685_723870_1381610325_ed69ed555f167068abfd3b62a80141dc_41125016_rle_crop_3945299044_0.png.png imagette265576111757034902/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/6dd399d59d41f6f6093810a18f2dbefc_44910486.png imagette265576101757034901 26557611 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=26557611 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265576111757034902 26557613 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=26557613 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381610678: '1757034666_723435_1381610551_c31f01072b32b77d00bc42af640b0c78_32348790_rle_crop_3945298746_0.png', 1381610795: '1757034786_728780_1381610330_f43e01c74796a2bbf6161af3fe628f1b_4955152_rle_crop_3945299112_0.png', 1381610824: '1757034804_729180_1381610736_e4cb39fada2eb9ebea6a088f76f932f2_25966167_rle_crop_3945299276_0.png', 1381610825: '1757034804_729180_1381610735_7cae443141cdf1ce1b584a51549b1462_98472775_rle_crop_3945299289_0.png', 1381610826: '1757034804_729180_1381610734_4d7ff02ca3014bbc69fd20d56f940a81_14811731_rle_crop_3945299301_0.png', 1381610827: '1757034804_729180_1381610732_d5a7701ba5d956b2a5bb20406d203a24_32959999_rle_crop_3945299328_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/6232918e73b963916949ed752f7b7200_69341894.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/fdaccfce5be90e70bb686af2e628ca89_59054393.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/8d55ef21d84003ee7801d733ee9204c4_80419923.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/81373966150ac793397064c32b67ecae_41682589.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/e00668348d169ba2b51fc46108b50841_73441098.png change filename to text .imagette265576131757034902/ imagette265576131757034902/1757034804_729180_1381610736_e4cb39fada2eb9ebea6a088f76f932f2_25966167_rle_crop_3945299276_0.png.png imagette265576131757034902/1757034804_729180_1381610734_4d7ff02ca3014bbc69fd20d56f940a81_14811731_rle_crop_3945299301_0.png.png imagette265576131757034902/1757034786_728780_1381610330_f43e01c74796a2bbf6161af3fe628f1b_4955152_rle_crop_3945299112_0.png.png imagette265576131757034902/1757034804_729180_1381610735_7cae443141cdf1ce1b584a51549b1462_98472775_rle_crop_3945299289_0.png.png imagette265576131757034902/1757034804_729180_1381610732_d5a7701ba5d956b2a5bb20406d203a24_32959999_rle_crop_3945299328_0.png.png imagette265576131757034902/1757034666_723435_1381610551_c31f01072b32b77d00bc42af640b0c78_32348790_rle_crop_3945298746_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/56502ab7c5afaf460f28e19a6e0435de_23623775.png imagette265576131757034902 26557614 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=26557614 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381610676: '1757034666_723435_1381610550_f36fae83261b68d4f8dc7f27ce573467_8937596_rle_crop_3945298766_0.png', 1381610710: '1757034685_723870_1381610325_ed69ed555f167068abfd3b62a80141dc_41125016_rle_crop_3945299039_0.png', 1381610794: '1757034786_728780_1381610003_8367e828105b140989bec913f1fb63ae_59795341_rle_crop_3945299127_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/e52c087d5319f52a14ad3467960660dd_83302383.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/2f6aaf4d6ede71bcc074cc053c978a23_80114004.png change filename to text .imagette265576141757034902/ imagette265576141757034902/1757034666_723435_1381610550_f36fae83261b68d4f8dc7f27ce573467_8937596_rle_crop_3945298766_0.png.png imagette265576141757034902/1757034685_723870_1381610325_ed69ed555f167068abfd3b62a80141dc_41125016_rle_crop_3945299039_0.png.png imagette265576141757034902/1757034786_728780_1381610003_8367e828105b140989bec913f1fb63ae_59795341_rle_crop_3945299127_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/39acd4d27df235def1e0e41290e86c8d_93216472.png imagette265576141757034902 26557609 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=26557609 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381610698: '1757034685_723870_1381610328_65036a3be577e380801e7d2e54093ad3_75014253_rle_crop_3945299006_0.png', 1381610699: '1757034685_723870_1381610328_65036a3be577e380801e7d2e54093ad3_75014253_rle_crop_3945299005_0.png', 1381610700: '1757034685_723870_1381610328_65036a3be577e380801e7d2e54093ad3_75014253_rle_crop_3945299001_0.png', 1381610704: '1757034685_723870_1381610327_38d18a8546bdb18ac0d0ef5bc846e862_90678637_rle_crop_3945299020_0.png', 1381610705: '1757034685_723870_1381610326_3f19d55619dd99c327101705a507be29_36977293_rle_crop_3945299027_0.png', 1381610706: '1757034685_723870_1381610326_3f19d55619dd99c327101705a507be29_36977293_rle_crop_3945299034_0.png', 1381610708: '1757034685_723870_1381610325_ed69ed555f167068abfd3b62a80141dc_41125016_rle_crop_3945299046_0.png', 1381610791: '1757034786_728780_1381610330_f43e01c74796a2bbf6161af3fe628f1b_4955152_rle_crop_3945299117_0.png', 1381610792: '1757034786_728780_1381610330_f43e01c74796a2bbf6161af3fe628f1b_4955152_rle_crop_3945299115_0.png', 1381610793: '1757034786_728780_1381610330_f43e01c74796a2bbf6161af3fe628f1b_4955152_rle_crop_3945299114_0.png', 1381610808: '1757034804_729180_1381610734_4d7ff02ca3014bbc69fd20d56f940a81_14811731_rle_crop_3945299308_0.png', 1381610809: '1757034804_729180_1381610734_4d7ff02ca3014bbc69fd20d56f940a81_14811731_rle_crop_3945299303_0.png', 1381610810: '1757034804_729180_1381610734_4d7ff02ca3014bbc69fd20d56f940a81_14811731_rle_crop_3945299306_0.png', 1381610811: '1757034804_729180_1381610733_f1ed66641ef806e7dcf20f30429f061f_72440374_rle_crop_3945299324_0.png', 1381610812: '1757034804_729180_1381610733_f1ed66641ef806e7dcf20f30429f061f_72440374_rle_crop_3945299320_0.png', 1381610813: '1757034804_729180_1381610732_d5a7701ba5d956b2a5bb20406d203a24_32959999_rle_crop_3945299335_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/3f5f40867f16316d3a32514f7200d4a0_96889784.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/a9ee2593cfc8ad5572524953f8f25b7f_66514986.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/4111853f611611aca2a8d55b14645288_53396818.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/79c0d11b2c530180f09d50679949b297_195852.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/35cd6701e63465bc3b92671e9d5ce9ab_9421927.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/08c48e77d347d73955d69198944e95dd_22278890.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/7e501b2a4f143f4f35fe22c49bfd12eb_51244719.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/99de43a1eee900f012a99273cfe67db2_41370593.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/68087175ed83ae009dba9d1994b9d2c0_54969937.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/f1f477e37126f921d93311d83d187987_64274568.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/75dbd28d991afbce9634eacc3aa935d1_40579915.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/a187baf8d641f549a1f28c84e74e46a5_37082281.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/18ba24cc563d807b9fb72a7386a86eaf_55811788.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/8ce869d24b131d17cf3ccb2a806c6cce_15123664.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/d42e54e212d19dc5a546b9dc649702f8_84357678.png change filename to text .imagette265576091757034902/ imagette265576091757034902/1757034804_729180_1381610734_4d7ff02ca3014bbc69fd20d56f940a81_14811731_rle_crop_3945299308_0.png.png imagette265576091757034902/1757034685_723870_1381610328_65036a3be577e380801e7d2e54093ad3_75014253_rle_crop_3945299001_0.png.png imagette265576091757034902/1757034685_723870_1381610327_38d18a8546bdb18ac0d0ef5bc846e862_90678637_rle_crop_3945299020_0.png.png imagette265576091757034902/1757034804_729180_1381610733_f1ed66641ef806e7dcf20f30429f061f_72440374_rle_crop_3945299320_0.png.png imagette265576091757034902/1757034804_729180_1381610734_4d7ff02ca3014bbc69fd20d56f940a81_14811731_rle_crop_3945299303_0.png.png imagette265576091757034902/1757034786_728780_1381610330_f43e01c74796a2bbf6161af3fe628f1b_4955152_rle_crop_3945299115_0.png.png imagette265576091757034902/1757034786_728780_1381610330_f43e01c74796a2bbf6161af3fe628f1b_4955152_rle_crop_3945299117_0.png.png imagette265576091757034902/1757034786_728780_1381610330_f43e01c74796a2bbf6161af3fe628f1b_4955152_rle_crop_3945299114_0.png.png imagette265576091757034902/1757034804_729180_1381610734_4d7ff02ca3014bbc69fd20d56f940a81_14811731_rle_crop_3945299306_0.png.png imagette265576091757034902/1757034685_723870_1381610326_3f19d55619dd99c327101705a507be29_36977293_rle_crop_3945299034_0.png.png imagette265576091757034902/1757034685_723870_1381610328_65036a3be577e380801e7d2e54093ad3_75014253_rle_crop_3945299006_0.png.png imagette265576091757034902/1757034685_723870_1381610326_3f19d55619dd99c327101705a507be29_36977293_rle_crop_3945299027_0.png.png imagette265576091757034902/1757034685_723870_1381610328_65036a3be577e380801e7d2e54093ad3_75014253_rle_crop_3945299005_0.png.png imagette265576091757034902/1757034685_723870_1381610325_ed69ed555f167068abfd3b62a80141dc_41125016_rle_crop_3945299046_0.png.png imagette265576091757034902/1757034804_729180_1381610732_d5a7701ba5d956b2a5bb20406d203a24_32959999_rle_crop_3945299335_0.png.png imagette265576091757034902/1757034804_729180_1381610733_f1ed66641ef806e7dcf20f30429f061f_72440374_rle_crop_3945299324_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/5eb758023e9d7d389b60463f925c5563_30679802.png imagette265576091757034902 26557612 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=26557612 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381610711: '1757034685_723870_1381610327_38d18a8546bdb18ac0d0ef5bc846e862_90678637_rle_crop_3945299019_0.png', 1381610814: '1757034804_729180_1381610735_7cae443141cdf1ce1b584a51549b1462_98472775_rle_crop_3945299292_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/8dd385ea3560e3e47e28b9f1fcb1c0f9_81329203.png change filename to text .imagette265576121757034903/ imagette265576121757034903/1757034804_729180_1381610735_7cae443141cdf1ce1b584a51549b1462_98472775_rle_crop_3945299292_0.png.png imagette265576121757034903/1757034685_723870_1381610327_38d18a8546bdb18ac0d0ef5bc846e862_90678637_rle_crop_3945299019_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/26b5f484dd410e083960a53cc2c34c06_36410526.png imagette265576121757034903 26557615 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=26557615 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381610818: '1757034804_729180_1381610736_e4cb39fada2eb9ebea6a088f76f932f2_25966167_rle_crop_3945299274_0.png', 1381610819: '1757034804_729180_1381610736_e4cb39fada2eb9ebea6a088f76f932f2_25966167_rle_crop_3945299275_0.png', 1381610820: '1757034804_729180_1381610735_7cae443141cdf1ce1b584a51549b1462_98472775_rle_crop_3945299293_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/5df8d92fcc0e6c771a86ba2867bdf363_44327183.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/49dc3eb924e2ae435309515b9acb8b26_69129899.png change filename to text .imagette265576151757034903/ imagette265576151757034903/1757034804_729180_1381610735_7cae443141cdf1ce1b584a51549b1462_98472775_rle_crop_3945299293_0.png.png imagette265576151757034903/1757034804_729180_1381610736_e4cb39fada2eb9ebea6a088f76f932f2_25966167_rle_crop_3945299275_0.png.png imagette265576151757034903/1757034804_729180_1381610736_e4cb39fada2eb9ebea6a088f76f932f2_25966167_rle_crop_3945299274_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/e92ebb6ef8c5c8ae86dc8802f64b8a9d_20314603.png imagette265576151757034903 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26557601 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26557616,26557617,26557618,26557619,26557620,26557621,26557622,26557623,26557624,26557625,26557626,26557627?tags=plastique,flou,cartonnette,environnement,papier,Teint_Dans_La_Masse,metal,mal_croppe,Carton_gris,kraft,autre_refus,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1381610839] : ('0.0787985503411629',) no score found for photo 1381610839 We are sending mail with results at report@fotonower.com args[1381610838] : ('0.0787985503411629',) no score found for photo 1381610838 We are sending mail with results at report@fotonower.com args[1381610837] : ('0.0787985503411629',) no score found for photo 1381610837 We are sending mail with results at report@fotonower.com args[1381610836] : ('0.0787985503411629',) no score found for photo 1381610836 We are sending mail with results at report@fotonower.com args[1381610835] : ('0.0787985503411629',) no score found for photo 1381610835 We are sending mail with results at report@fotonower.com args[1381610777] : ('0.0787985503411629',) no score found for photo 1381610777 We are sending mail with results at report@fotonower.com args[1381610776] : ('0.0787985503411629',) no score found for photo 1381610776 We are sending mail with results at report@fotonower.com args[1381610775] : ('0.0787985503411629',) no score found for photo 1381610775 We are sending mail with results at report@fotonower.com args[1381610774] : ('0.0787985503411629',) no score found for photo 1381610774 We are sending mail with results at report@fotonower.com refus_total : 0.0787985503411629 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=26557601 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_P26557601_05-09-2025_03_15_01.pdf results_Auto_P26557601_05-09-2025_03_15_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557601_05-09-2025_03_15_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','26557601','results_Auto_P26557601_05-09-2025_03_15_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557601_05-09-2025_03_15_01.pdf','pdf','','0.2','0.0787985503411629') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26557601]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1381610839, 1381610838, 1381610837, 1381610836, 1381610835, 1381610777, 1381610776, 1381610775, 1381610774] map_info['map_portfolio_photo'] : {26557601: [1381610839, 1381610838, 1381610837, 1381610836, 1381610835, 1381610777, 1381610776, 1381610775, 1381610774, 1381610737, 1381610736, 1381610735, 1381610734, 1381610733, 1381610732, 1381610660, 1381610659, 1381610658, 1381610657, 1381610656, 1381610552, 1381610551, 1381610550, 1381610549, 1381610330, 1381610328, 1381610327, 1381610326, 1381610325, 1381610005, 1381610003, 1381609167, 1381609096]} final : False mtd_id 4302 list_pids : [1381610839, 1381610838, 1381610837, 1381610836, 1381610835, 1381610777, 1381610776, 1381610775, 1381610774] 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, '3667225') ('4302', '26557601', '1381610839', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610838', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610837', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610836', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610835', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610777', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610776', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610775', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610774', None, None, None, None, None, '3667225') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '26557601', '1381610839', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610838', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610837', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610836', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610835', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610777', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610776', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610775', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610774', None, None, None, None, None, '3667225')] time used for this insertion : 0.015342473983764648 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.9743728637695312 time spend to save output : 0.015595674514770508 total time spend for step 4 : 3.9899685382843018 step5:split_time_score Fri Sep 5 03:15:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['26557601'] 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 : [('26557601',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26557601) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1381610839: {'path': 'temp/1757034901_2864555_1381610839_8a057c6a57f2908dfd656e70fc3542b5_53446470.jpg', 'extension': 'jpg'}, 1381610837: {'path': 'temp/1757034901_2864555_1381610837_7c63de6de3a6ce1169d90a5e8b9ffcc0_55533674.jpg', 'extension': 'jpg'}, 1381610838: {'path': 'temp/1757034901_2864555_1381610838_9580bcea72ac51d3d940d7b04cfdd5db_87995173.jpg', 'extension': 'jpg'}, 1381610774: {'path': 'temp/1757034901_2864555_1381610774_63aa04abfd39384e8883793b16aa1c43_41047738.jpg', 'extension': 'jpg'}, 1381610775: {'path': 'temp/1757034901_2864555_1381610775_005bd0871c441754cdfc0a96536ee663_76821139.jpg', 'extension': 'jpg'}, 1381610776: {'path': 'temp/1757034901_2864555_1381610776_5317b6e24d446968882d1ce71dbc69f3_98873561.jpg', 'extension': 'jpg'}, 1381610777: {'path': 'temp/1757034901_2864555_1381610777_29fc180356c047872e5327b46713e563_95920676.jpg', 'extension': 'jpg'}, 1381610835: {'path': 'temp/1757034901_2864555_1381610835_aeab2ff8e5df3d1b54e2bef9528e6a3d_96170398.jpg', 'extension': 'jpg'}, 1381610836: {'path': 'temp/1757034901_2864555_1381610836_b822e51e4d4e94a63c55087434923669_23785462.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 = 26557601; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26557601 group by h (('03', 33),) 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=26557601 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 (26557601) 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 (26557601) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05092025 26557601 Nombre de photos uploadées : 33 / 23040 (0%) 05092025 26557601 Nombre de photos taguées (types de déchets): 0 / 33 (0%) 05092025 26557601 Nombre de photos taguées (volume) : 0 / 33 (0%) [{'photo_id': 1381609096, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/bf9f30c30fd0401d50b48d4d5584e184_35055585.jpg', 'username': None, 'uploaded_at': 1757034312, 'text': 'image_05092025_03_04_34_010159m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1381609167, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/3caa3349952b8c0f53cde4e2f1c29cf9_66648376.jpg', 'username': None, 'uploaded_at': 1757034371, 'text': 'image_05092025_03_04_44_010141m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1381610005, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/7d6997523555aaa2e4e733ba73c314d5_81431244.jpg', 'username': None, 'uploaded_at': 1757034492, 'text': 'image_05092025_03_05_03_10149.jpg'}, {'photo_id': 1381610003, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/8367e828105b140989bec913f1fb63ae_59795341.jpg', 'username': None, 'uploaded_at': 1757034492, 'text': 'image_05092025_03_07_43_010140m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012967586517333984 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26557601, '2025-09-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-09-05' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2234129,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.23427224159240723 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 2234129 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242117, 'mtr_portfolio_id': 26552286, 'dashboard_result_id': 14780589, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552286_05-09-2025_00_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242117, 'mtr_portfolio_id': 26552950, 'dashboard_result_id': 14780590, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552950_05-09-2025_00_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26552954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552965, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242117, 'mtr_portfolio_id': 26553483, 'dashboard_result_id': 14780591, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553483_05-09-2025_00_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553501, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242117, 'mtr_portfolio_id': 26553954, 'dashboard_result_id': 14780592, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553954_05-09-2025_02_01_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553974, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242117, 'mtr_portfolio_id': 26555558, 'dashboard_result_id': 14780593, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555558_05-09-2025_02_02_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26555617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555628, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242117, 'mtr_portfolio_id': 26555560, 'dashboard_result_id': 14780594, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555560_05-09-2025_02_34_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26555568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555575, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242117, 'mtr_portfolio_id': 26556761, 'dashboard_result_id': 14780595, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556761_05-09-2025_02_35_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26556766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556777, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242117, 'mtr_portfolio_id': 26556619, 'dashboard_result_id': 14780596, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556619_05-09-2025_02_33_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26556649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556660, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242117, 'mtr_portfolio_id': 26556621, 'dashboard_result_id': 14780597, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556621_05-09-2025_02_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556636, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242117, 'mtr_portfolio_id': 26557110, 'dashboard_result_id': 14780598, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557110_05-09-2025_03_06_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557129, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2242117, 'mtr_portfolio_id': 26557601, 'dashboard_result_id': 14780599, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557601_05-09-2025_03_13_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557606, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557615, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26552286 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3666584, 'mtr_portfolio_id': 26552286, 'created_at': datetime.datetime(2025, 9, 5, 0, 17), 'result': '0.04774675192080819', 'result_long': None, 'result_double': None}] Qualite : 0.04774675192080819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26552286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552286_05-09-2025_00_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26552286 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552286_05-09-2025_00_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, 'pht': 3726}}" where mtr_portfolio_id = 26552286 and dashboard_run_id = 2242117 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26552286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14780589, 0.04774675192080819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552286_05-09-2025_00_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26552950 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3666648, 'mtr_portfolio_id': 26552950, 'created_at': datetime.datetime(2025, 9, 5, 0, 32, 57), 'result': '0.053637049482939146', 'result_long': None, 'result_double': None}] Qualite : 0.053637049482939146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26552950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552950_05-09-2025_00_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26552950 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552950_05-09-2025_00_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26552954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552965, 'pht': 3726}}" where mtr_portfolio_id = 26552950 and dashboard_run_id = 2242117 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26552950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14780590, 0.053637049482939146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552950_05-09-2025_00_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26552954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552965, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26553483 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3666712, 'mtr_portfolio_id': 26553483, 'created_at': datetime.datetime(2025, 9, 5, 0, 47, 1), 'result': '0.0521622743835702', 'result_long': None, 'result_double': None}] Qualite : 0.0521622743835702 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26553483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553483_05-09-2025_00_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26553483 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553483_05-09-2025_00_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553501, 'pht': 3726}}" where mtr_portfolio_id = 26553483 and dashboard_run_id = 2242117 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26553483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14780591, 0.0521622743835702, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553483_05-09-2025_00_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553501, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26553954 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3666772, 'mtr_portfolio_id': 26553954, 'created_at': datetime.datetime(2025, 9, 5, 2, 1, 2), 'result': '0.038686864708222954', 'result_long': None, 'result_double': None}] Qualite : 0.038686864708222954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26553954 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553954_05-09-2025_02_01_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26553954 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553954_05-09-2025_02_01_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553974, 'pht': 3726}}" where mtr_portfolio_id = 26553954 and dashboard_run_id = 2242117 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26553954 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14780592, 0.038686864708222954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553954_05-09-2025_02_01_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553974, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26555558 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3666993, 'mtr_portfolio_id': 26555558, 'created_at': datetime.datetime(2025, 9, 5, 2, 2, 2), 'result': '0.05771406143431616', 'result_long': None, 'result_double': None}] Qualite : 0.05771406143431616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26555558 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555558_05-09-2025_02_02_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26555558 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555558_05-09-2025_02_02_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26555617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555628, 'pht': 3726}}" where mtr_portfolio_id = 26555558 and dashboard_run_id = 2242117 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26555558 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14780593, 0.05771406143431616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555558_05-09-2025_02_02_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26555617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555628, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26555560 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3666994, 'mtr_portfolio_id': 26555560, 'created_at': datetime.datetime(2025, 9, 5, 2, 34), 'result': '0.043526961330972676', 'result_long': None, 'result_double': None}] Qualite : 0.043526961330972676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26555560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555560_05-09-2025_02_34_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26555560 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555560_05-09-2025_02_34_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26555568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555575, 'pht': 3726}}" where mtr_portfolio_id = 26555560 and dashboard_run_id = 2242117 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26555560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14780594, 0.043526961330972676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555560_05-09-2025_02_34_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26555568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555575, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26556761 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667087, 'mtr_portfolio_id': 26556761, 'created_at': datetime.datetime(2025, 9, 5, 2, 35, 30), 'result': '0.050995299214166845', 'result_long': None, 'result_double': None}] Qualite : 0.050995299214166845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26556761 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556761_05-09-2025_02_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26556761 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556761_05-09-2025_02_35_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26556766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556777, 'pht': 3726}}" where mtr_portfolio_id = 26556761 and dashboard_run_id = 2242117 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26556761 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14780595, 0.050995299214166845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556761_05-09-2025_02_35_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26556766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556777, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26556619 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667078, 'mtr_portfolio_id': 26556619, 'created_at': datetime.datetime(2025, 9, 5, 2, 33, 30), 'result': '0.07673693332822124', 'result_long': None, 'result_double': None}] Qualite : 0.07673693332822124 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26556619 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556619_05-09-2025_02_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26556619 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556619_05-09-2025_02_33_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26556649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556660, 'pht': 3726}}" where mtr_portfolio_id = 26556619 and dashboard_run_id = 2242121 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26556619 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14780596, 0.07673693332822124, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556619_05-09-2025_02_33_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26556649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556660, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26556621 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667079, 'mtr_portfolio_id': 26556621, 'created_at': datetime.datetime(2025, 9, 5, 2, 46, 58), 'result': '0.0664857122408595', 'result_long': None, 'result_double': None}] Qualite : 0.0664857122408595 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26556621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556621_05-09-2025_02_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26556621 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556621_05-09-2025_02_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556636, 'pht': 3726}}" where mtr_portfolio_id = 26556621 and dashboard_run_id = 2242121 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26556621 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14780597, 0.0664857122408595, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556621_05-09-2025_02_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556636, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26557110 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667139, 'mtr_portfolio_id': 26557110, 'created_at': datetime.datetime(2025, 9, 5, 3, 6, 57), 'result': '0.05256991522493719', 'result_long': None, 'result_double': None}] Qualite : 0.05256991522493719 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26557110 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557110_05-09-2025_03_06_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26557110 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557110_05-09-2025_03_06_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557129, 'pht': 3726}}" where mtr_portfolio_id = 26557110 and dashboard_run_id = 2242121 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26557110 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14780598, 0.05256991522493719, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557110_05-09-2025_03_06_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557129, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26557601 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667225, 'mtr_portfolio_id': 26557601, 'created_at': datetime.datetime(2025, 9, 5, 3, 15), 'result': '0.0787985503411629', 'result_long': None, 'result_double': None}] Qualite : 0.0787985503411629 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26557601 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557601_05-09-2025_03_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26557601 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557601_05-09-2025_03_15_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557606, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557615, 'pht': 3726}}" where mtr_portfolio_id = 26557601 and dashboard_run_id = 2242121 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26557601 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14780599, 0.0787985503411629, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557601_05-09-2025_03_15_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557606, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557615, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26552286,26552950,26553483,26553954,26555558,26555560,26556761,26556619,26556621,26557110,26557601) result : ((1381585163,), (1381585166,), (1381585170,), (1381585665,), (1381585668,), (1381585671,), (1381585674,), (1381585677,), (1381585680,), (1381586198,), (1381586202,), (1381586206,), (1381586210,), (1381586214,), (1381586704,), (1381586707,), (1381586710,), (1381586992,), (1381586994,), (1381586997,), (1381587000,), (1381587003,), (1381587006,), (1381587312,), (1381587313,), (1381587314,), (1381587315,), (1381587316,), (1381587317,), (1381587397,), (1381587398,), (1381587400,), (1381587401,), (1381587402,), (1381587480,), (1381587483,), (1381587484,), (1381587485,), (1381587536,), (1381587537,), (1381587539,), (1381587540,), (1381587541,), (1381587542,), (1381587601,), (1381587602,), (1381587603,), (1381587604,), (1381587605,), (1381587655,), (1381587657,), (1381587659,), (1381587816,), (1381587817,), (1381587818,), (1381587820,), (1381587821,), (1381587823,), (1381587981,), (1381587982,), (1381587983,), (1381587985,), (1381588048,), (1381588049,), (1381588050,), (1381588051,), (1381588053,), (1381588055,), (1381588093,), (1381588095,), (1381588097,), (1381588099,), (1381588102,), (1381588104,), (1381588400,), (1381588393,), (1381588395,), (1381588397,), (1381588567,), (1381588569,), (1381588571,), (1381588573,), (1381588575,), (1381588743,), (1381588744,), (1381588745,), (1381588746,), (1381588747,), (1381588749,), (1381588979,), (1381588981,), (1381588984,), (1381588986,), (1381589178,), (1381589180,), (1381589182,), (1381589184,), (1381589187,), (1381589189,), (1381589294,), (1381589295,), (1381589296,), (1381589297,), (1381589298,), (1381589300,), (1381589350,), (1381589351,), (1381589352,), (1381589353,), (1381589392,), (1381589394,), (1381589395,), (1381589397,), (1381589398,), (1381589435,), (1381589443,), (1381589444,), (1381589446,), (1381589447,), (1381589489,), (1381589490,), (1381589491,), (1381589492,), (1381589540,), (1381589541,), (1381589542,), (1381589543,), (1381589545,), (1381589546,), (1381589611,), (1381589613,), (1381589616,), (1381589620,), (1381589623,), (1381589726,), (1381589727,), (1381589728,), (1381589729,), (1381589730,), (1381589765,), (1381589766,), (1381589821,), (1381589822,), (1381589823,), (1381589824,), (1381589865,), (1381589860,), (1381589861,), (1381589862,), (1381589863,), (1381589970,), (1381589971,), (1381589973,), (1381589974,), (1381590017,), (1381590018,), (1381590019,), (1381590020,), (1381590021,), (1381590022,), (1381590076,), (1381590078,), (1381590079,), (1381590080,), (1381590082,), (1381590157,), (1381590159,), (1381590160,), (1381590161,), (1381590196,), (1381590197,), (1381590198,), (1381590199,), (1381590234,), (1381590235,), (1381590236,), (1381590237,), (1381590239,), (1381590316,), (1381590317,), (1381590318,), (1381590319,), (1381590321,), (1381590351,), (1381590352,), (1381590353,), (1381590354,), (1381590355,), (1381590356,), (1381590404,), (1381590405,), (1381590407,), (1381590408,), (1381590409,), (1381590410,), (1381590454,), (1381590456,), (1381590457,), (1381590458,), (1381590504,), (1381590505,), (1381590506,), (1381590507,), (1381590508,), (1381590509,), (1381590543,), (1381590544,), (1381590545,), (1381590546,), (1381590548,), (1381590617,), (1381590618,), (1381590619,), (1381590661,), (1381590663,), (1381590664,), (1381590665,), (1381590666,), (1381590667,), (1381590717,), (1381590712,), (1381590713,), (1381590714,), (1381590715,), (1381590716,), (1381590753,), (1381590754,), (1381590828,), (1381590830,), (1381590832,), (1381590835,), (1381590837,), (1381590877,), (1381590878,), (1381590879,), (1381590880,), (1381590881,), (1381590927,), (1381590928,), (1381590929,), (1381590930,), (1381590964,), (1381590965,), (1381590966,), (1381590967,), (1381591124,), (1381591169,), (1381591170,), (1381591171,), (1381591172,), (1381591173,), (1381591217,), (1381591218,), (1381591220,), (1381591224,), (1381591227,), (1381591229,), (1381591243,), (1381591244,), (1381591245,), (1381591246,), (1381591248,), (1381591413,), (1381591415,), (1381591417,), (1381591419,), (1381591421,), (1381595847,), (1381595882,), (1381595883,), (1381595884,), (1381595886,), (1381595887,), (1381595947,), (1381595948,), (1381595949,), (1381596040,), (1381596041,), (1381596042,), (1381596099,), (1381596100,), (1381596101,), (1381596102,), (1381596147,), (1381596148,), (1381596149,), (1381596150,), (1381596151,), (1381596152,), (1381596199,), (1381596200,), (1381596202,), (1381596203,), (1381596205,), (1381596237,), (1381596238,), (1381596239,), (1381596296,), (1381596297,), (1381596298,), (1381596299,), (1381596300,), (1381596349,), (1381596350,), (1381596352,), (1381596354,), (1381596355,), (1381596389,), (1381596391,), (1381596392,), (1381596393,), (1381596449,), (1381596450,), (1381596488,), (1381596489,), (1381596535,), (1381596536,), (1381596537,), (1381596539,), (1381596541,), (1381596577,), (1381596579,), (1381596580,), (1381596582,), (1381596628,), (1381596625,), (1381596626,), (1381596627,), (1381596664,), (1381596665,), (1381596666,), (1381596667,), (1381596710,), (1381596711,), (1381596712,), (1381596801,), (1381596802,), (1381596803,), (1381596845,), (1381596846,), (1381596847,), (1381596848,), (1381596849,), (1381596892,), (1381596893,), (1381596894,), (1381596895,), (1381596896,), (1381596897,), (1381596948,), (1381596950,), (1381596951,), (1381596952,), (1381596954,), (1381597020,), (1381597021,), (1381597022,), (1381597023,), (1381597064,), (1381597065,), (1381597066,), (1381597068,), (1381597069,), (1381597097,), (1381597099,), (1381597100,), (1381597101,), (1381597102,), (1381597103,), (1381597151,), (1381597152,), (1381597153,), (1381597154,), (1381597155,), (1381597197,), (1381597198,), (1381597199,), (1381597200,), (1381597201,), (1381597203,), (1381597207,), (1381597209,), (1381597210,), (1381597211,), (1381597212,), (1381597287,), (1381597288,), (1381597289,), (1381597290,), (1381597327,), (1381597329,), (1381597332,), (1381597334,), (1381597336,), (1381597339,), (1381597640,), (1381602249,), (1381604849,), (1381604850,), (1381604851,), (1381604852,), (1381604854,), (1381604855,), (1381604894,), (1381604896,), (1381604942,), (1381604943,), (1381604944,), (1381604972,), (1381604973,), (1381605075,), (1381605077,), (1381605080,), (1381605083,), (1381605086,), (1381605087,), (1381605161,), (1381605163,), (1381605165,), (1381605219,), (1381605216,), (1381605217,), (1381605218,), (1381605265,), (1381605266,), (1381605267,), (1381605268,), (1381605269,), (1381605271,), (1381605323,), (1381605324,), (1381605325,), (1381605326,), (1381605327,), (1381605414,), (1381605415,), (1381605416,), (1381605417,), (1381605418,), (1381605419,), (1381605453,), (1381605454,), (1381605455,), (1381605456,), (1381605457,), (1381605508,), (1381605509,), (1381605510,), (1381605511,), (1381605568,), (1381605569,), (1381605570,), (1381605571,), (1381605608,), (1381605609,), (1381605610,), (1381605611,), (1381605613,), (1381605672,), (1381605673,), (1381605674,), (1381605716,), (1381605717,), (1381605718,), (1381605719,), (1381605720,), (1381605766,), (1381605767,), (1381605768,), (1381605769,), (1381605770,), (1381605771,), (1381605810,), (1381605812,), (1381605814,), (1381605815,), (1381605905,), (1381605906,), (1381605907,), (1381605908,), (1381605909,), (1381605910,), (1381605954,), (1381605955,), (1381605957,), (1381605958,), (1381605959,), (1381605961,), (1381605994,), (1381605995,), (1381605996,), (1381605997,), (1381605998,), (1381605999,), (1381606049,), (1381597636,), (1381597638,), (1381597846,), (1381597847,), (1381597848,), (1381597849,), (1381597850,), (1381598044,), (1381598046,), (1381598048,), (1381598050,), (1381598052,), (1381598054,), (1381598238,), (1381598239,), (1381598240,), (1381598241,), (1381598266,), (1381598275,), (1381598276,), (1381598278,), (1381598280,), (1381598281,), (1381598328,), (1381598329,), (1381598330,), (1381598332,), (1381598333,), (1381601466,), (1381601468,), (1381601877,), (1381601880,), (1381601883,), (1381601886,), (1381601889,), (1381602252,), (1381602255,), (1381602258,), (1381602261,), (1381602264,), (1381602337,), (1381606047,), (1381606048,), (1381606093,), (1381606094,), (1381606095,), (1381606096,), (1381606097,), (1381606161,), (1381606162,), (1381606163,), (1381606164,), (1381606165,), (1381606198,), (1381606199,), (1381606200,), (1381606201,), (1381606252,), (1381606253,), (1381606254,), (1381606255,), (1381606256,), (1381606294,), (1381606295,), (1381606297,), (1381606298,), (1381606299,), (1381606300,), (1381606345,), (1381606346,), (1381606347,), (1381606411,), (1381606412,), (1381606414,), (1381606415,), (1381606416,), (1381606417,), (1381606463,), (1381606464,), (1381606465,), (1381606466,), (1381606498,), (1381606499,), (1381606500,), (1381606501,), (1381606594,), (1381606644,), (1381607065,), (1381607067,), (1381609098,), (1381609096,), (1381609167,), (1381610003,), (1381610005,), (1381610325,), (1381610326,), (1381610327,), (1381610328,), (1381610330,), (1381610549,), (1381610550,), (1381610551,), (1381610552,), (1381610656,), (1381610657,), (1381610658,), (1381610659,), (1381610660,), (1381610732,), (1381610733,), (1381610734,), (1381610735,), (1381610736,), (1381610737,), (1381610774,), (1381610775,), (1381610776,), (1381610777,), (1381610835,), (1381610836,), (1381610837,), (1381610838,), (1381610839,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05092025': {'nb_upload': 33, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26557601]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1381610839, 1381610838, 1381610837, 1381610836, 1381610835, 1381610777, 1381610776, 1381610775, 1381610774] map_info['map_portfolio_photo'] : {26557601: [1381610839, 1381610838, 1381610837, 1381610836, 1381610835, 1381610777, 1381610776, 1381610775, 1381610774, 1381610737, 1381610736, 1381610735, 1381610734, 1381610733, 1381610732, 1381610660, 1381610659, 1381610658, 1381610657, 1381610656, 1381610552, 1381610551, 1381610550, 1381610549, 1381610330, 1381610328, 1381610327, 1381610326, 1381610325, 1381610005, 1381610003, 1381609167, 1381609096]} final : True mtd_id 4302 list_pids : [1381610839, 1381610838, 1381610837, 1381610836, 1381610835, 1381610777, 1381610776, 1381610775, 1381610774] Looping around the photos to save general results len do output : 1 /26557601Didn'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, '3667225') ('4302', '26557601', '1381610839', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610838', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610837', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610836', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610835', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610777', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610776', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610775', None, None, None, None, None, '3667225') ('4302', None, None, None, None, None, None, None, '3667225') ('4302', '26557601', '1381610774', None, None, None, None, None, '3667225') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '26557601', 'None', None, None, None, None, '3667225'), ('4302', '26557601', '1381610839', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610838', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610837', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610836', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610835', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610777', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610776', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610775', None, None, None, None, None, '3667225'), ('4302', '26557601', '1381610774', None, None, None, None, None, '3667225')] time used for this insertion : 0.018405914306640625 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.914031982421875 time spend to save output : 0.01860976219177246 total time spend for step 5 : 0.9326417446136475 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 (3667225) 2.04user 2.50system 0:11.33elapsed 40%CPU (0avgtext+0avgdata 159728maxresident)k 416inputs+10840outputs (5major+64224minor)pagefaults 0swaps