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 : 3825622 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 (2725037) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2725037) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22066281 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2725037'] with mtr_portfolio_ids : ['22066281'] and first list_photo_ids : [] new path : /proc/3825622/ Name: python3 Umask: 0002 State: R (running) Tgid: 3825622 Ngid: 0 Pid: 3825622 PPid: 3825621 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3825622 NSpid: 3825622 NSpgid: 3821454 NSsid: 3821454 VmPeak: 1106828 kB VmSize: 1106828 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97904 kB VmRSS: 97904 kB RssAnon: 59772 kB RssFile: 38132 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 81 nonvoluntary_ctxt_switches: 112 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3825622', 'Ngid': '0', 'Pid': '3825622', 'PPid': '3825621', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3825622', 'NSpid': '3825622', 'NSpgid': '3821454', 'NSsid': '3821454', 'VmPeak': '1106828 kB', 'VmSize': '1106828 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97904 kB', 'VmRSS': '97904 kB', 'RssAnon': '59772 kB', 'RssFile': '38132 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '81', 'nonvoluntary_ctxt_switches': '112'} ('datou_batch_current', '3825622', '1106828', '0', '1106828', '865576', '97904', b'', 'marlene', '2725037') 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 (22066281) 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 (2725037 ) ) 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 (22066281) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350188060, 'portfolio_id': 22066281}, {'photo_id': 1350188055, 'portfolio_id': 22066281}, {'photo_id': 1350188051, 'portfolio_id': 22066281}, {'photo_id': 1350188046, 'portfolio_id': 22066281}, {'photo_id': 1350187974, 'portfolio_id': 22066281}, {'photo_id': 1350187969, 'portfolio_id': 22066281}, {'photo_id': 1350187966, 'portfolio_id': 22066281}, {'photo_id': 1350187961, 'portfolio_id': 22066281}, {'photo_id': 1350187957, 'portfolio_id': 22066281}, {'photo_id': 1350187916, 'portfolio_id': 22066281}, {'photo_id': 1350187912, 'portfolio_id': 22066281}, {'photo_id': 1350187909, 'portfolio_id': 22066281}, {'photo_id': 1350187906, 'portfolio_id': 22066281}, {'photo_id': 1350187822, 'portfolio_id': 22066281}, {'photo_id': 1350187815, 'portfolio_id': 22066281}, {'photo_id': 1350187809, 'portfolio_id': 22066281}, {'photo_id': 1350187803, 'portfolio_id': 22066281}, {'photo_id': 1350187798, 'portfolio_id': 22066281}, {'photo_id': 1350187793, 'portfolio_id': 22066281}, {'photo_id': 1350187759, 'portfolio_id': 22066281}, {'photo_id': 1350187754, 'portfolio_id': 22066281}, {'photo_id': 1350187751, 'portfolio_id': 22066281}, {'photo_id': 1350187740, 'portfolio_id': 22066281}, {'photo_id': 1350187732, 'portfolio_id': 22066281}, {'photo_id': 1350187721, 'portfolio_id': 22066281}, {'photo_id': 1350187677, 'portfolio_id': 22066281}, {'photo_id': 1350187674, 'portfolio_id': 22066281}, {'photo_id': 1350187647, 'portfolio_id': 22066281}, {'photo_id': 1350187489, 'portfolio_id': 22066281}, {'photo_id': 1350187474, 'portfolio_id': 22066281}, {'photo_id': 1350187472, 'portfolio_id': 22066281}, {'photo_id': 1350187238, 'portfolio_id': 22066281}, {'photo_id': 1350187208, 'portfolio_id': 22066281}, {'photo_id': 1350186753, 'portfolio_id': 22066281}, {'photo_id': 1350186596, 'portfolio_id': 22066281}, {'photo_id': 1350186570, 'portfolio_id': 22066281}, {'photo_id': 1350186555, 'portfolio_id': 22066281}, {'photo_id': 1350186552, 'portfolio_id': 22066281}, {'photo_id': 1350186548, 'portfolio_id': 22066281}] map_portfolio_id_photo_id: {22066281: [1350188060, 1350188055, 1350188051, 1350188046, 1350187974, 1350187969, 1350187966, 1350187961, 1350187957, 1350187916, 1350187912, 1350187909, 1350187906, 1350187822, 1350187815, 1350187809, 1350187803, 1350187798, 1350187793, 1350187759, 1350187754, 1350187751, 1350187740, 1350187732, 1350187721, 1350187677, 1350187674, 1350187647, 1350187489, 1350187474, 1350187472, 1350187238, 1350187208, 1350186753, 1350186596, 1350186570, 1350186555, 1350186552, 1350186548]} ##### 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.013913631439208984 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Apr 16 08:26:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22066281) 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 : 22066281 get user id for portfolio 22066281 get sub ptf for main ptf 22066281, type 3726 and hashtags ['environnement', 'Carton_brun', 'plastique', 'flou', 'kraft', 'metal', 'autre_refus', 'Teint_Dans_La_Masse', 'cartonnette', 'Carton_gris', 'mal_croppe', 'papier'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22066281 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','plastique','flou','kraft','metal','autre_refus','Teint_Dans_La_Masse','cartonnette','Carton_gris','mal_croppe','papier')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22066281 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','plastique','flou','kraft','metal','autre_refus','Teint_Dans_La_Masse','cartonnette','Carton_gris','mal_croppe','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22066281, 'sub_port_id': 22066364, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555230, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 29)}, 'flou': {'main_port_id': 22066281, 'sub_port_id': 22066365, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555231, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 29)}, 'plastique': {'main_port_id': 22066281, 'sub_port_id': 22066366, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555232, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 29)}, 'cartonnette': {'main_port_id': 22066281, 'sub_port_id': 22066367, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555233, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 29)}, 'autre_refus': {'main_port_id': 22066281, 'sub_port_id': 22066368, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555234, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 22066281, 'sub_port_id': 22066369, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555235, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 29)}, 'mal_croppe': {'main_port_id': 22066281, 'sub_port_id': 22066370, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555236, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 29)}, 'environnement': {'main_port_id': 22066281, 'sub_port_id': 22066371, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555237, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 29)}, 'kraft': {'main_port_id': 22066281, 'sub_port_id': 22066372, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555238, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 29)}, 'papier': {'main_port_id': 22066281, 'sub_port_id': 22066373, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555239, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 29)}, 'Carton_brun': {'main_port_id': 22066281, 'sub_port_id': 22066374, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555240, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 29)}, 'metal': {'main_port_id': 22066281, 'sub_port_id': 22066375, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555241, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22066364 , 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=22066281 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 (22066364) result : ((1350187766,), (1350187857,), (1350188003,), (1350188014,), (1350188015,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22066281) result : ((1350186548,), (1350186552,), (1350186555,), (1350186570,), (1350186596,), (1350186753,), (1350187208,), (1350187238,), (1350187472,), (1350187474,), (1350187489,), (1350187647,), (1350187674,), (1350187677,), (1350187721,), (1350187732,), (1350187740,), (1350187751,), (1350187754,), (1350187759,), (1350187793,), (1350187798,), (1350187803,), (1350187809,), (1350187815,), (1350187822,), (1350187906,), (1350187909,), (1350187912,), (1350187916,), (1350187957,), (1350187961,), (1350187966,), (1350187969,), (1350187974,), (1350188046,), (1350188051,), (1350188055,), (1350188060,)) 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 22066365 , 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=22066281 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 (22066365) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22066281) result : ((1350186548,), (1350186552,), (1350186555,), (1350186570,), (1350186596,), (1350186753,), (1350187208,), (1350187238,), (1350187472,), (1350187474,), (1350187489,), (1350187647,), (1350187674,), (1350187677,), (1350187721,), (1350187732,), (1350187740,), (1350187751,), (1350187754,), (1350187759,), (1350187793,), (1350187798,), (1350187803,), (1350187809,), (1350187815,), (1350187822,), (1350187906,), (1350187909,), (1350187912,), (1350187916,), (1350187957,), (1350187961,), (1350187966,), (1350187969,), (1350187974,), (1350188046,), (1350188051,), (1350188055,), (1350188060,)) 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 22066366 , 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=22066281 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 (22066366) result : ((1350187469,), (1350187470,), (1350187471,), (1350188033,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22066281) result : ((1350186548,), (1350186552,), (1350186555,), (1350186570,), (1350186596,), (1350186753,), (1350187208,), (1350187238,), (1350187472,), (1350187474,), (1350187489,), (1350187647,), (1350187674,), (1350187677,), (1350187721,), (1350187732,), (1350187740,), (1350187751,), (1350187754,), (1350187759,), (1350187793,), (1350187798,), (1350187803,), (1350187809,), (1350187815,), (1350187822,), (1350187906,), (1350187909,), (1350187912,), (1350187916,), (1350187957,), (1350187961,), (1350187966,), (1350187969,), (1350187974,), (1350188046,), (1350188051,), (1350188055,), (1350188060,)) 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 22066367 , 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=22066281 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 (22066367) result : ((1350187457,), (1350187767,), (1350188018,), (1350188019,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22066281) result : ((1350186548,), (1350186552,), (1350186555,), (1350186570,), (1350186596,), (1350186753,), (1350187208,), (1350187238,), (1350187472,), (1350187474,), (1350187489,), (1350187647,), (1350187674,), (1350187677,), (1350187721,), (1350187732,), (1350187740,), (1350187751,), (1350187754,), (1350187759,), (1350187793,), (1350187798,), (1350187803,), (1350187809,), (1350187815,), (1350187822,), (1350187906,), (1350187909,), (1350187912,), (1350187916,), (1350187957,), (1350187961,), (1350187966,), (1350187969,), (1350187974,), (1350188046,), (1350188051,), (1350188055,), (1350188060,)) 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 22066368 , 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=22066281 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 (22066368) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22066281) result : ((1350186548,), (1350186552,), (1350186555,), (1350186570,), (1350186596,), (1350186753,), (1350187208,), (1350187238,), (1350187472,), (1350187474,), (1350187489,), (1350187647,), (1350187674,), (1350187677,), (1350187721,), (1350187732,), (1350187740,), (1350187751,), (1350187754,), (1350187759,), (1350187793,), (1350187798,), (1350187803,), (1350187809,), (1350187815,), (1350187822,), (1350187906,), (1350187909,), (1350187912,), (1350187916,), (1350187957,), (1350187961,), (1350187966,), (1350187969,), (1350187974,), (1350188046,), (1350188051,), (1350188055,), (1350188060,)) 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 22066369 , 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=22066281 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 (22066369) result : ((1350187454,), (1350187765,), (1350187853,), (1350187855,), (1350188011,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22066281) result : ((1350186548,), (1350186552,), (1350186555,), (1350186570,), (1350186596,), (1350186753,), (1350187208,), (1350187238,), (1350187472,), (1350187474,), (1350187489,), (1350187647,), (1350187674,), (1350187677,), (1350187721,), (1350187732,), (1350187740,), (1350187751,), (1350187754,), (1350187759,), (1350187793,), (1350187798,), (1350187803,), (1350187809,), (1350187815,), (1350187822,), (1350187906,), (1350187909,), (1350187912,), (1350187916,), (1350187957,), (1350187961,), (1350187966,), (1350187969,), (1350187974,), (1350188046,), (1350188051,), (1350188055,), (1350188060,)) 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 22066370 , 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=22066281 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 (22066370) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22066281) result : ((1350186548,), (1350186552,), (1350186555,), (1350186570,), (1350186596,), (1350186753,), (1350187208,), (1350187238,), (1350187472,), (1350187474,), (1350187489,), (1350187647,), (1350187674,), (1350187677,), (1350187721,), (1350187732,), (1350187740,), (1350187751,), (1350187754,), (1350187759,), (1350187793,), (1350187798,), (1350187803,), (1350187809,), (1350187815,), (1350187822,), (1350187906,), (1350187909,), (1350187912,), (1350187916,), (1350187957,), (1350187961,), (1350187966,), (1350187969,), (1350187974,), (1350188046,), (1350188051,), (1350188055,), (1350188060,)) 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 22066371 , 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=22066281 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 (22066371) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22066281) result : ((1350186548,), (1350186552,), (1350186555,), (1350186570,), (1350186596,), (1350186753,), (1350187208,), (1350187238,), (1350187472,), (1350187474,), (1350187489,), (1350187647,), (1350187674,), (1350187677,), (1350187721,), (1350187732,), (1350187740,), (1350187751,), (1350187754,), (1350187759,), (1350187793,), (1350187798,), (1350187803,), (1350187809,), (1350187815,), (1350187822,), (1350187906,), (1350187909,), (1350187912,), (1350187916,), (1350187957,), (1350187961,), (1350187966,), (1350187969,), (1350187974,), (1350188046,), (1350188051,), (1350188055,), (1350188060,)) 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 22066372 , 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=22066281 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 (22066372) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22066281) result : ((1350186548,), (1350186552,), (1350186555,), (1350186570,), (1350186596,), (1350186753,), (1350187208,), (1350187238,), (1350187472,), (1350187474,), (1350187489,), (1350187647,), (1350187674,), (1350187677,), (1350187721,), (1350187732,), (1350187740,), (1350187751,), (1350187754,), (1350187759,), (1350187793,), (1350187798,), (1350187803,), (1350187809,), (1350187815,), (1350187822,), (1350187906,), (1350187909,), (1350187912,), (1350187916,), (1350187957,), (1350187961,), (1350187966,), (1350187969,), (1350187974,), (1350188046,), (1350188051,), (1350188055,), (1350188060,)) 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 22066373 , 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=22066281 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 (22066373) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22066281) result : ((1350186548,), (1350186552,), (1350186555,), (1350186570,), (1350186596,), (1350186753,), (1350187208,), (1350187238,), (1350187472,), (1350187474,), (1350187489,), (1350187647,), (1350187674,), (1350187677,), (1350187721,), (1350187732,), (1350187740,), (1350187751,), (1350187754,), (1350187759,), (1350187793,), (1350187798,), (1350187803,), (1350187809,), (1350187815,), (1350187822,), (1350187906,), (1350187909,), (1350187912,), (1350187916,), (1350187957,), (1350187961,), (1350187966,), (1350187969,), (1350187974,), (1350188046,), (1350188051,), (1350188055,), (1350188060,)) 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 22066374 , 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=22066281 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 (22066374) result : ((1350187461,), (1350187462,), (1350187463,), (1350187464,), (1350187465,), (1350187859,), (1350187860,), (1350188028,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22066281) result : ((1350186548,), (1350186552,), (1350186555,), (1350186570,), (1350186596,), (1350186753,), (1350187208,), (1350187238,), (1350187472,), (1350187474,), (1350187489,), (1350187647,), (1350187674,), (1350187677,), (1350187721,), (1350187732,), (1350187740,), (1350187751,), (1350187754,), (1350187759,), (1350187793,), (1350187798,), (1350187803,), (1350187809,), (1350187815,), (1350187822,), (1350187906,), (1350187909,), (1350187912,), (1350187916,), (1350187957,), (1350187961,), (1350187966,), (1350187969,), (1350187974,), (1350188046,), (1350188051,), (1350188055,), (1350188060,)) 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 22066375 , 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=22066281 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 (22066375) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22066281) result : ((1350186548,), (1350186552,), (1350186555,), (1350186570,), (1350186596,), (1350186753,), (1350187208,), (1350187238,), (1350187472,), (1350187474,), (1350187489,), (1350187647,), (1350187674,), (1350187677,), (1350187721,), (1350187732,), (1350187740,), (1350187751,), (1350187754,), (1350187759,), (1350187793,), (1350187798,), (1350187803,), (1350187809,), (1350187815,), (1350187822,), (1350187906,), (1350187909,), (1350187912,), (1350187916,), (1350187957,), (1350187961,), (1350187966,), (1350187969,), (1350187974,), (1350188046,), (1350188051,), (1350188055,), (1350188060,)) 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`=22066281 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','plastique','flou','kraft','metal','autre_refus','Teint_Dans_La_Masse','cartonnette','Carton_gris','mal_croppe','papier')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22066281 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','plastique','flou','kraft','metal','autre_refus','Teint_Dans_La_Masse','cartonnette','Carton_gris','mal_croppe','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22066281, 'sub_port_id': 22066376, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555242, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 31)}, 'flou': {'main_port_id': 22066281, 'sub_port_id': 22066377, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555243, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 31)}, 'plastique': {'main_port_id': 22066281, 'sub_port_id': 22066378, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555244, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 31)}, 'cartonnette': {'main_port_id': 22066281, 'sub_port_id': 22066379, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555245, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 31)}, 'autre_refus': {'main_port_id': 22066281, 'sub_port_id': 22066380, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555246, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 22066281, 'sub_port_id': 22066381, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555247, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 31)}, 'mal_croppe': {'main_port_id': 22066281, 'sub_port_id': 22066382, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555248, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 31)}, 'environnement': {'main_port_id': 22066281, 'sub_port_id': 22066383, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555249, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 31)}, 'kraft': {'main_port_id': 22066281, 'sub_port_id': 22066384, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555250, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 31)}, 'papier': {'main_port_id': 22066281, 'sub_port_id': 22066385, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555251, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 31)}, 'Carton_brun': {'main_port_id': 22066281, 'sub_port_id': 22066386, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555252, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 31)}, 'metal': {'main_port_id': 22066281, 'sub_port_id': 22066387, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14555253, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 21, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22066376,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22066364 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22066377,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22066365 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22066378,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22066366 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22066379,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22066367 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22066380,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22066368 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22066381,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22066369 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22066382,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22066370 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22066383,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22066371 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22066384,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22066372 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22066385,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22066373 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22066386,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22066374 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22066387,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22066375 lien utilise dans velours : https://www.fotonower.com/velours/22066376,22066377,22066378,22066379,22066380,22066381,22066382,22066383,22066384,22066385,22066386,22066387?tags=Carton_gris,flou,plastique,cartonnette,autre_refus,Teint_Dans_La_Masse,mal_croppe,environnement,kraft,papier,Carton_brun,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22066281]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350188060, 1350188055, 1350188051, 1350188046, 1350187974, 1350187969, 1350187966, 1350187961, 1350187957, 1350187916, 1350187912, 1350187909, 1350187906, 1350187822, 1350187815, 1350187809, 1350187803, 1350187798, 1350187793] map_info['map_portfolio_photo'] : {22066281: [1350188060, 1350188055, 1350188051, 1350188046, 1350187974, 1350187969, 1350187966, 1350187961, 1350187957, 1350187916, 1350187912, 1350187909, 1350187906, 1350187822, 1350187815, 1350187809, 1350187803, 1350187798, 1350187793, 1350187759, 1350187754, 1350187751, 1350187740, 1350187732, 1350187721, 1350187677, 1350187674, 1350187647, 1350187489, 1350187474, 1350187472, 1350187238, 1350187208, 1350186753, 1350186596, 1350186570, 1350186555, 1350186552, 1350186548]} final : False mtd_id 4302 list_pids : [1350188060, 1350188055, 1350188051, 1350188046, 1350187974, 1350187969, 1350187966, 1350187961, 1350187957, 1350187916, 1350187912, 1350187909, 1350187906, 1350187822, 1350187815, 1350187809, 1350187803, 1350187798, 1350187793] Looping around the photos to save general results len do output : 1 /22066281. 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, '2725037') ('4302', '22066281', '1350188060', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350188055', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350188051', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350188046', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187974', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187969', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187966', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187961', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187957', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187916', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187912', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187909', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187906', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187822', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187815', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187809', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187803', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187798', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187793', None, None, None, None, None, '2725037') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '22066281', "{'Carton_gris': 22066364, 'flou': 22066365, 'plastique': 22066366, 'cartonnette': 22066367, 'autre_refus': 22066368, 'Teint_Dans_La_Masse': 22066369, 'mal_croppe': 22066370, 'environnement': 22066371, 'kraft': 22066372, 'papier': 22066373, 'Carton_brun': 22066374, 'metal': 22066375}", None, None, None, None, '2725037'), ('4302', '22066281', '1350188060', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350188055', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350188051', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350188046', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187974', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187969', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187966', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187961', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187957', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187916', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187912', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187909', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187906', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187822', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187815', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187809', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187803', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187798', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187793', None, None, None, None, None, '2725037')] time used for this insertion : 0.014665603637695312 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6920106410980225 time spend to save output : 0.015083789825439453 total time spend for step 1 : 1.707094430923462 step2:final Wed Apr 16 08:26:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22066281) 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 22066281 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350186596,1350186570,1350186555,1350186552,1350186548,1350186753,1350187238,1350187208,1350187489,1350187474,1350187472,1350187677,1350187674,1350187647,1350187759,1350187754,1350187751,1350187740,1350187732,1350187721,1350187822,1350187815,1350187809,1350187803,1350187798,1350187793,1350187916,1350187912,1350187909,1350187906,1350187974,1350187969,1350187966,1350187961,1350187957,1350188060,1350188055,1350188051,1350188046); 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([22066281]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} new output for save of step final : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} [1350188060, 1350188055, 1350188051, 1350188046, 1350187974, 1350187969, 1350187966, 1350187961, 1350187957, 1350187916, 1350187912, 1350187909, 1350187906, 1350187822, 1350187815, 1350187809, 1350187803, 1350187798, 1350187793] map_info['map_portfolio_photo'] : {22066281: [1350188060, 1350188055, 1350188051, 1350188046, 1350187974, 1350187969, 1350187966, 1350187961, 1350187957, 1350187916, 1350187912, 1350187909, 1350187906, 1350187822, 1350187815, 1350187809, 1350187803, 1350187798, 1350187793, 1350187759, 1350187754, 1350187751, 1350187740, 1350187732, 1350187721, 1350187677, 1350187674, 1350187647, 1350187489, 1350187474, 1350187472, 1350187238, 1350187208, 1350186753, 1350186596, 1350186570, 1350186555, 1350186552, 1350186548]} final : False mtd_id 4302 list_pids : [1350188060, 1350188055, 1350188051, 1350188046, 1350187974, 1350187969, 1350187966, 1350187961, 1350187957, 1350187916, 1350187912, 1350187909, 1350187906, 1350187822, 1350187815, 1350187809, 1350187803, 1350187798, 1350187793] Looping around the photos to save general results len do output : 19 /1350188060.Didn't retrieve data . /1350188055.Didn't retrieve data . /1350188051.Didn't retrieve data . /1350188046.Didn't retrieve data . /1350187974.Didn't retrieve data . /1350187969.Didn't retrieve data . /1350187966.Didn't retrieve data . /1350187961.Didn't retrieve data . /1350187957.Didn't retrieve data . /1350187916.Didn't retrieve data . /1350187912.Didn't retrieve data . /1350187909.Didn't retrieve data . /1350187906.Didn't retrieve data . /1350187822.Didn't retrieve data . /1350187815.Didn't retrieve data . /1350187809.Didn't retrieve data . /1350187803.Didn't retrieve data . /1350187798.Didn't retrieve data . /1350187793.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, '2725037') ('4302', '22066281', '1350188060', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350188055', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350188051', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350188046', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187974', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187969', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187966', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187961', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187957', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187916', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187912', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187909', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187906', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187822', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187815', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187809', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187803', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187798', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187793', None, None, None, None, None, '2725037') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 57 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', '22066281', '1350188060', '0.04480221489899417', None, None, None, None, '2725037'), ('4302', '22066281', '1350188055', '0.04480221489899417', None, None, None, None, '2725037'), ('4302', '22066281', '1350188051', '0.04480221489899417', None, None, None, None, '2725037'), ('4302', '22066281', '1350188046', '0.04480221489899417', None, None, None, None, '2725037'), ('4302', '22066281', '1350187974', '0.04480221489899417', None, None, None, None, '2725037'), ('4302', '22066281', '1350187969', '0.04480221489899417', None, None, None, None, '2725037'), ('4302', '22066281', '1350187966', '0.04480221489899417', None, None, None, None, '2725037'), ('4302', '22066281', '1350187961', '0.04480221489899417', None, None, None, None, '2725037'), ('4302', '22066281', '1350187957', '0.04480221489899417', None, None, None, None, '2725037'), ('4302', '22066281', '1350187916', '0.04480221489899417', None, None, None, None, '2725037'), ('4302', '22066281', '1350187912', '0.04480221489899417', None, None, None, None, '2725037'), ('4302', '22066281', '1350187909', '0.04480221489899417', None, None, None, None, '2725037'), ('4302', '22066281', '1350187906', '0.04480221489899417', None, None, None, None, '2725037'), ('4302', '22066281', '1350187822', '0.04480221489899417', None, None, None, None, '2725037'), ('4302', '22066281', '1350187815', '0.04480221489899417', None, None, None, None, '2725037'), ('4302', '22066281', '1350187809', '0.04480221489899417', None, None, None, None, '2725037'), ('4302', '22066281', '1350187803', '0.04480221489899417', None, None, None, None, '2725037'), ('4302', '22066281', '1350187798', '0.04480221489899417', None, None, None, None, '2725037'), ('4302', '22066281', '1350187793', '0.04480221489899417', None, None, None, None, '2725037')] time used for this insertion : 0.01712512969970703 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06984663009643555 time spend to save output : 0.01803445816040039 total time spend for step 2 : 0.08788108825683594 step3:velours_tree Wed Apr 16 08:26:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22066281: [{'Carton_gris': 22066364, 'flou': 22066365, 'plastique': 22066366, 'cartonnette': 22066367, 'autre_refus': 22066368, 'Teint_Dans_La_Masse': 22066369, 'mal_croppe': 22066370, 'environnement': 22066371, 'kraft': 22066372, 'papier': 22066373, 'Carton_brun': 22066374, 'metal': 22066375}]} input_args_next_step : {22066281: ()} output_args : {22066281: [{'Carton_gris': 22066364, 'flou': 22066365, 'plastique': 22066366, 'cartonnette': 22066367, 'autre_refus': 22066368, 'Teint_Dans_La_Masse': 22066369, 'mal_croppe': 22066370, 'environnement': 22066371, 'kraft': 22066372, 'papier': 22066373, 'Carton_brun': 22066374, 'metal': 22066375}]} args : 22066281 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 22066364, 'flou': 22066365, 'plastique': 22066366, 'cartonnette': 22066367, 'autre_refus': 22066368, 'Teint_Dans_La_Masse': 22066369, 'mal_croppe': 22066370, 'environnement': 22066371, 'kraft': 22066372, 'papier': 22066373, 'Carton_brun': 22066374, 'metal': 22066375},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22066281) 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([22066281]) 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.48795056343078613 time spend to save output : 4.839897155761719e-05 total time spend for step 3 : 0.48799896240234375 step4:send_mail_cod Wed Apr 16 08:26:59 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 : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} input_args_next_step : {1350188060: ()} output_args : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} args : 1350188060 depend.output_id : 0 input_args_next_step : {1350188060: ('0.04480221489899417',), 1350188055: ()} output_args : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} args : 1350188055 depend.output_id : 0 input_args_next_step : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ()} output_args : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} args : 1350188051 depend.output_id : 0 input_args_next_step : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ()} output_args : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} args : 1350188046 depend.output_id : 0 input_args_next_step : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ()} output_args : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} args : 1350187974 depend.output_id : 0 input_args_next_step : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ()} output_args : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} args : 1350187969 depend.output_id : 0 input_args_next_step : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ()} output_args : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} args : 1350187966 depend.output_id : 0 input_args_next_step : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ()} output_args : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} args : 1350187961 depend.output_id : 0 input_args_next_step : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ()} output_args : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} args : 1350187957 depend.output_id : 0 input_args_next_step : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ()} output_args : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} args : 1350187916 depend.output_id : 0 input_args_next_step : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ()} output_args : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} args : 1350187912 depend.output_id : 0 input_args_next_step : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ()} output_args : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} args : 1350187909 depend.output_id : 0 input_args_next_step : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ()} output_args : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} args : 1350187906 depend.output_id : 0 input_args_next_step : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ()} output_args : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} args : 1350187822 depend.output_id : 0 input_args_next_step : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ()} output_args : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} args : 1350187815 depend.output_id : 0 input_args_next_step : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ()} output_args : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} args : 1350187809 depend.output_id : 0 input_args_next_step : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ()} output_args : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} args : 1350187803 depend.output_id : 0 input_args_next_step : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ()} output_args : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} args : 1350187798 depend.output_id : 0 input_args_next_step : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ()} output_args : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',)} args : 1350187793 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 : {22066281: [{'Carton_gris': 22066364, 'flou': 22066365, 'plastique': 22066366, 'cartonnette': 22066367, 'autre_refus': 22066368, 'Teint_Dans_La_Masse': 22066369, 'mal_croppe': 22066370, 'environnement': 22066371, 'kraft': 22066372, 'papier': 22066373, 'Carton_brun': 22066374, 'metal': 22066375}]} input_args_next_step : {1350188060: ('0.04480221489899417',), 1350188055: ('0.04480221489899417',), 1350188051: ('0.04480221489899417',), 1350188046: ('0.04480221489899417',), 1350187974: ('0.04480221489899417',), 1350187969: ('0.04480221489899417',), 1350187966: ('0.04480221489899417',), 1350187961: ('0.04480221489899417',), 1350187957: ('0.04480221489899417',), 1350187916: ('0.04480221489899417',), 1350187912: ('0.04480221489899417',), 1350187909: ('0.04480221489899417',), 1350187906: ('0.04480221489899417',), 1350187822: ('0.04480221489899417',), 1350187815: ('0.04480221489899417',), 1350187809: ('0.04480221489899417',), 1350187803: ('0.04480221489899417',), 1350187798: ('0.04480221489899417',), 1350187793: ('0.04480221489899417',), 22066281: ()} output_args : {22066281: [{'Carton_gris': 22066364, 'flou': 22066365, 'plastique': 22066366, 'cartonnette': 22066367, 'autre_refus': 22066368, 'Teint_Dans_La_Masse': 22066369, 'mal_croppe': 22066370, 'environnement': 22066371, 'kraft': 22066372, 'papier': 22066373, 'Carton_brun': 22066374, 'metal': 22066375}]} args : 22066281 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 :20, first value : ('0.04480221489899417',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22066281) 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 (1350188060,1350188055,1350188051,1350188046,1350187974,1350187969,1350187966,1350187961,1350187957,1350187916,1350187912,1350187909,1350187906,1350187822,1350187815,1350187809,1350187803,1350187798,1350187793) Found this number of photos: 19 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350187793 begin to download photo : 1350187815 begin to download photo : 1350187912 begin to download photo : 1350187966 begin to download photo : 1350188051 download finish for photo 1350187912 begin to download photo : 1350187916 download finish for photo 1350188051 begin to download photo : 1350188055 download finish for photo 1350187793 begin to download photo : 1350187798 download finish for photo 1350187966 begin to download photo : 1350187969 download finish for photo 1350187815 begin to download photo : 1350187822 download finish for photo 1350187916 begin to download photo : 1350187957 download finish for photo 1350187798 begin to download photo : 1350187803 download finish for photo 1350188055 begin to download photo : 1350188060 download finish for photo 1350187969 begin to download photo : 1350187974 download finish for photo 1350187822 begin to download photo : 1350187906 download finish for photo 1350187957 begin to download photo : 1350187961 download finish for photo 1350188060 download finish for photo 1350187803 begin to download photo : 1350187809 download finish for photo 1350187974 begin to download photo : 1350188046 download finish for photo 1350187906 begin to download photo : 1350187909 download finish for photo 1350187961 download finish for photo 1350187809 download finish for photo 1350187909 download finish for photo 1350188046 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220663651744784819/ length of list_filenames : 19 ; length of list_pids : 19 ; length of list_args : 19 results_Auto_P22066281_16-04-2025_08_26_59.pdf 22066365 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=22066365 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220663651744784819 22066366 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=22066366 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350187469: '1744784351_1569624_1350186552_acc401a3c10ff93ebe02ae97b12c0954_rle_crop_3748531742_0.png', 1350187470: '1744784351_1569624_1350186548_ba7d8938833128cc84755bbd1b6fbb33_rle_crop_3748531749_0.png', 1350187471: '1744784351_1569624_1350186548_ba7d8938833128cc84755bbd1b6fbb33_rle_crop_3748531759_0.png', 1350188033: '1744784702_1573687_1350187809_95e55ad593e05fc82b1d32072b25e230_rle_crop_3748536336_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/afd6a71847c9977c2265a810e4b45208_35651418.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/28cb792c7b8a4e824a2d6fa364e03f85_36566289.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/085a410b6ee6dd98ca8413b91aabc4f2_33401117.png change filename to text .imagette220663661744784819/ imagette220663661744784819/1744784351_1569624_1350186548_ba7d8938833128cc84755bbd1b6fbb33_rle_crop_3748531759_0.png.png imagette220663661744784819/1744784702_1573687_1350187809_95e55ad593e05fc82b1d32072b25e230_rle_crop_3748536336_0.png.png imagette220663661744784819/1744784351_1569624_1350186548_ba7d8938833128cc84755bbd1b6fbb33_rle_crop_3748531749_0.png.png imagette220663661744784819/1744784351_1569624_1350186552_acc401a3c10ff93ebe02ae97b12c0954_rle_crop_3748531742_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/17295d630a8ae6c86453d98dd832d84e_53669683.png imagette220663661744784819 22066367 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=22066367 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350187457: '1744784351_1569624_1350186753_93be19e7b93686cf8e4e44be122f3a5b_rle_crop_3748531637_0.png', 1350187767: '1744784530_1571872_1350187472_87fd1bc064a1c5567dd82709d20f88f0_rle_crop_3748534213_0.png', 1350188018: '1744784702_1573687_1350187809_95e55ad593e05fc82b1d32072b25e230_rle_crop_3748536328_0.png', 1350188019: '1744784702_1573687_1350187798_21be320572160258a88e49bf99ed622d_rle_crop_3748536372_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/5de9c159f596c0faba4ac5a8fef11284_52362420.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7745a375337a07ef8f6b572648f6e713_1423638.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/241ac1bcd9105fc774ef4a40ea2dda03_21628700.png change filename to text .imagette220663671744784820/ imagette220663671744784820/1744784530_1571872_1350187472_87fd1bc064a1c5567dd82709d20f88f0_rle_crop_3748534213_0.png.png imagette220663671744784820/1744784702_1573687_1350187809_95e55ad593e05fc82b1d32072b25e230_rle_crop_3748536328_0.png.png imagette220663671744784820/1744784351_1569624_1350186753_93be19e7b93686cf8e4e44be122f3a5b_rle_crop_3748531637_0.png.png imagette220663671744784820/1744784702_1573687_1350187798_21be320572160258a88e49bf99ed622d_rle_crop_3748536372_0.png.png imagette220663681744784820/ imagette220663701744784820/ imagette220663721744784820/ imagette220663751744784820/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/2c9e602422f312655e85301f40931311_5083040.png imagette220663671744784820 22066368 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=22066368 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220663681744784820 22066370 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=22066370 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220663701744784820 22066372 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=22066372 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220663721744784820 22066375 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=22066375 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220663751744784820 22066364 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=22066364 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350187766: '1744784530_1571872_1350187474_5540c8628aae172503a93c1b6005c7fa_rle_crop_3748534200_0.png', 1350187857: '1744784592_1572410_1350187208_badbfda0caa10c8e4c8a0d4733c7be19_rle_crop_3748534726_0.png', 1350188003: '1744784713_1573831_1350187759_603ea5fdbb73216bcb5517dd629d2fee_rle_crop_3748536320_0.png', 1350188014: '1744784702_1573687_1350187815_b540298a7032c1973fa6cff904581992_rle_crop_3748536307_0.png', 1350188015: '1744784702_1573687_1350187809_95e55ad593e05fc82b1d32072b25e230_rle_crop_3748536330_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/bf7e06a7440af9c83110695d15b13281_46071110.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d9367b4b52562e3f362a3ba9f34c7228_30189589.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/713c6c512aadb19e3708c73cae53c0c6_32114362.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/61b7380e03799e54e7c3630b13c86dbd_78994534.png change filename to text .imagette220663641744784820/ imagette220663641744784820/1744784702_1573687_1350187815_b540298a7032c1973fa6cff904581992_rle_crop_3748536307_0.png.png imagette220663641744784820/1744784530_1571872_1350187474_5540c8628aae172503a93c1b6005c7fa_rle_crop_3748534200_0.png.png imagette220663641744784820/1744784702_1573687_1350187809_95e55ad593e05fc82b1d32072b25e230_rle_crop_3748536330_0.png.png imagette220663641744784820/1744784713_1573831_1350187759_603ea5fdbb73216bcb5517dd629d2fee_rle_crop_3748536320_0.png.png imagette220663641744784820/1744784592_1572410_1350187208_badbfda0caa10c8e4c8a0d4733c7be19_rle_crop_3748534726_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/fb8b7d273b9206d5430f372229a35fdf_26695160.png imagette220663641744784820 22066369 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=22066369 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350187454: '1744784351_1569624_1350186753_93be19e7b93686cf8e4e44be122f3a5b_rle_crop_3748531639_0.png', 1350187765: '1744784530_1571872_1350187474_5540c8628aae172503a93c1b6005c7fa_rle_crop_3748534205_0.png', 1350187853: '1744784592_1572410_1350187489_1949f7e45bd37dcfdf712e7281fab245_rle_crop_3748534715_0.png', 1350187855: '1744784592_1572410_1350187208_badbfda0caa10c8e4c8a0d4733c7be19_rle_crop_3748534725_0.png', 1350188011: '1744784702_1573687_1350187809_95e55ad593e05fc82b1d32072b25e230_rle_crop_3748536329_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/0987075ca7b0c86877a2581b9c74a780_57714453.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/f5ebd59788c86d89b53eb3dd81307823_85907486.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/a56a4984432628bf4afd45f5e8aaf6f1_33745946.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/46c88215bdd198b6b165b8d025f929bd_75286003.png change filename to text .imagette220663691744784820/ imagette220663691744784820/1744784592_1572410_1350187208_badbfda0caa10c8e4c8a0d4733c7be19_rle_crop_3748534725_0.png.png imagette220663691744784820/1744784592_1572410_1350187489_1949f7e45bd37dcfdf712e7281fab245_rle_crop_3748534715_0.png.png imagette220663691744784820/1744784702_1573687_1350187809_95e55ad593e05fc82b1d32072b25e230_rle_crop_3748536329_0.png.png imagette220663691744784820/1744784351_1569624_1350186753_93be19e7b93686cf8e4e44be122f3a5b_rle_crop_3748531639_0.png.png imagette220663691744784820/1744784530_1571872_1350187474_5540c8628aae172503a93c1b6005c7fa_rle_crop_3748534205_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/38b0a704a968425f61af8673fb01fb6c_10815328.png imagette220663691744784820 22066374 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=22066374 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350187461: '1744784351_1569624_1350186596_da58f0e5fbb63e7283bf44037c7368d2_rle_crop_3748531668_0.png', 1350187462: '1744784351_1569624_1350186570_9b791f28439c4b4955e17f6759cdacb0_rle_crop_3748531700_0.png', 1350187463: '1744784351_1569624_1350186555_7b935790b213f8697861701173c35f23_rle_crop_3748531726_0.png', 1350187464: '1744784351_1569624_1350186552_acc401a3c10ff93ebe02ae97b12c0954_rle_crop_3748531740_0.png', 1350187465: '1744784351_1569624_1350186548_ba7d8938833128cc84755bbd1b6fbb33_rle_crop_3748531753_0.png', 1350187859: '1744784592_1572410_1350187489_1949f7e45bd37dcfdf712e7281fab245_rle_crop_3748534717_0.png', 1350187860: '1744784592_1572410_1350187208_badbfda0caa10c8e4c8a0d4733c7be19_rle_crop_3748534729_0.png', 1350188028: '1744784702_1573687_1350187793_8aab0bb82e0a62c91f15495188b0b3a5_rle_crop_3748536384_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/178ac286d3cd5ed6faa4140fafb8ba58_55692448.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/5c8e36d6ef7aaad45692317324336632_97802392.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/fe092d1d8e2bcad3e48191217101c09b_54855695.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/6d849ae6d5155a92e547d161c0785ea4_93386117.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d4966d38e5c4f6e794dd3bfa4dda0565_59603741.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/bc4c4bc14724e99d47a9d8424232d572_32277941.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/3503e791f1f9a035b48acbce70fc7d94_84405501.png change filename to text .imagette220663741744784821/ imagette220663741744784821/1744784351_1569624_1350186548_ba7d8938833128cc84755bbd1b6fbb33_rle_crop_3748531753_0.png.png imagette220663741744784821/1744784351_1569624_1350186552_acc401a3c10ff93ebe02ae97b12c0954_rle_crop_3748531740_0.png.png imagette220663741744784821/1744784351_1569624_1350186570_9b791f28439c4b4955e17f6759cdacb0_rle_crop_3748531700_0.png.png imagette220663741744784821/1744784592_1572410_1350187208_badbfda0caa10c8e4c8a0d4733c7be19_rle_crop_3748534729_0.png.png imagette220663741744784821/1744784592_1572410_1350187489_1949f7e45bd37dcfdf712e7281fab245_rle_crop_3748534717_0.png.png imagette220663741744784821/1744784351_1569624_1350186596_da58f0e5fbb63e7283bf44037c7368d2_rle_crop_3748531668_0.png.png imagette220663741744784821/1744784702_1573687_1350187793_8aab0bb82e0a62c91f15495188b0b3a5_rle_crop_3748536384_0.png.png imagette220663741744784821/1744784351_1569624_1350186555_7b935790b213f8697861701173c35f23_rle_crop_3748531726_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b1fadcd9a2ac2b802fdd62e775fe20f6_49221230.png imagette220663741744784821 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22066281 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22066376,22066377,22066378,22066379,22066380,22066381,22066382,22066383,22066384,22066385,22066386,22066387?tags=Carton_gris,flou,plastique,cartonnette,autre_refus,Teint_Dans_La_Masse,mal_croppe,environnement,kraft,papier,Carton_brun,metal your option no_mail is active, we will not send the real mail to your client args[1350188060] : ('0.04480221489899417',) no score found for photo 1350188060 We are sending mail with results at report@fotonower.com args[1350188055] : ('0.04480221489899417',) no score found for photo 1350188055 We are sending mail with results at report@fotonower.com args[1350188051] : ('0.04480221489899417',) no score found for photo 1350188051 We are sending mail with results at report@fotonower.com args[1350188046] : ('0.04480221489899417',) no score found for photo 1350188046 We are sending mail with results at report@fotonower.com args[1350187974] : ('0.04480221489899417',) no score found for photo 1350187974 We are sending mail with results at report@fotonower.com args[1350187969] : ('0.04480221489899417',) no score found for photo 1350187969 We are sending mail with results at report@fotonower.com args[1350187966] : ('0.04480221489899417',) no score found for photo 1350187966 We are sending mail with results at report@fotonower.com args[1350187961] : ('0.04480221489899417',) no score found for photo 1350187961 We are sending mail with results at report@fotonower.com args[1350187957] : ('0.04480221489899417',) no score found for photo 1350187957 We are sending mail with results at report@fotonower.com args[1350187916] : ('0.04480221489899417',) no score found for photo 1350187916 We are sending mail with results at report@fotonower.com args[1350187912] : ('0.04480221489899417',) no score found for photo 1350187912 We are sending mail with results at report@fotonower.com args[1350187909] : ('0.04480221489899417',) no score found for photo 1350187909 We are sending mail with results at report@fotonower.com args[1350187906] : ('0.04480221489899417',) no score found for photo 1350187906 We are sending mail with results at report@fotonower.com args[1350187822] : ('0.04480221489899417',) no score found for photo 1350187822 We are sending mail with results at report@fotonower.com args[1350187815] : ('0.04480221489899417',) no score found for photo 1350187815 We are sending mail with results at report@fotonower.com args[1350187809] : ('0.04480221489899417',) no score found for photo 1350187809 We are sending mail with results at report@fotonower.com args[1350187803] : ('0.04480221489899417',) no score found for photo 1350187803 We are sending mail with results at report@fotonower.com args[1350187798] : ('0.04480221489899417',) no score found for photo 1350187798 We are sending mail with results at report@fotonower.com args[1350187793] : ('0.04480221489899417',) no score found for photo 1350187793 We are sending mail with results at report@fotonower.com refus_total : 0.04480221489899417 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=22066281 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_P22066281_16-04-2025_08_26_59.pdf results_Auto_P22066281_16-04-2025_08_26_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22066281_16-04-2025_08_26_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22066281','results_Auto_P22066281_16-04-2025_08_26_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22066281_16-04-2025_08_26_59.pdf','pdf','','0.22','0.04480221489899417') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22066281]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350188060, 1350188055, 1350188051, 1350188046, 1350187974, 1350187969, 1350187966, 1350187961, 1350187957, 1350187916, 1350187912, 1350187909, 1350187906, 1350187822, 1350187815, 1350187809, 1350187803, 1350187798, 1350187793] map_info['map_portfolio_photo'] : {22066281: [1350188060, 1350188055, 1350188051, 1350188046, 1350187974, 1350187969, 1350187966, 1350187961, 1350187957, 1350187916, 1350187912, 1350187909, 1350187906, 1350187822, 1350187815, 1350187809, 1350187803, 1350187798, 1350187793, 1350187759, 1350187754, 1350187751, 1350187740, 1350187732, 1350187721, 1350187677, 1350187674, 1350187647, 1350187489, 1350187474, 1350187472, 1350187238, 1350187208, 1350186753, 1350186596, 1350186570, 1350186555, 1350186552, 1350186548]} final : False mtd_id 4302 list_pids : [1350188060, 1350188055, 1350188051, 1350188046, 1350187974, 1350187969, 1350187966, 1350187961, 1350187957, 1350187916, 1350187912, 1350187909, 1350187906, 1350187822, 1350187815, 1350187809, 1350187803, 1350187798, 1350187793] 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, '2725037') ('4302', '22066281', '1350188060', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350188055', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350188051', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350188046', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187974', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187969', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187966', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187961', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187957', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187916', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187912', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187909', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187906', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187822', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187815', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187809', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187803', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187798', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187793', None, None, None, None, None, '2725037') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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', '22066281', '1350188060', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350188055', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350188051', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350188046', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187974', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187969', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187966', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187961', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187957', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187916', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187912', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187909', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187906', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187822', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187815', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187809', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187803', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187798', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187793', None, None, None, None, None, '2725037')] time used for this insertion : 0.016896486282348633 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.441405296325684 time spend to save output : 0.017241716384887695 total time spend for step 4 : 5.458647012710571 step5:split_time_score Wed Apr 16 08:27:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22066281'] 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 : [('22066281',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22066281) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350188051: {'path': 'temp/1744784819_3825622_1350188051_512cf22d06ed3c68a8f9bd2203de5b71.jpg', 'extension': 'jpg'}, 1350188055: {'path': 'temp/1744784819_3825622_1350188055_cc3acef2f39bba9757e4d3cac20aaabf.jpg', 'extension': 'jpg'}, 1350188060: {'path': 'temp/1744784819_3825622_1350188060_627f78baf4e49d493bf0da745f130024.jpg', 'extension': 'jpg'}, 1350187912: {'path': 'temp/1744784819_3825622_1350187912_fda9a6ab7d35a00cfa6a28e9c6ecad03.jpg', 'extension': 'jpg'}, 1350187916: {'path': 'temp/1744784819_3825622_1350187916_e60989218d785c5e39087357ac2ed24f.jpg', 'extension': 'jpg'}, 1350187957: {'path': 'temp/1744784819_3825622_1350187957_9638ad20b979747cb1dcf5b80c0b8f56.jpg', 'extension': 'jpg'}, 1350187961: {'path': 'temp/1744784819_3825622_1350187961_f7bd790f74be992f1c551479bcc6ac4f.jpg', 'extension': 'jpg'}, 1350187793: {'path': 'temp/1744784819_3825622_1350187793_8aab0bb82e0a62c91f15495188b0b3a5.jpg', 'extension': 'jpg'}, 1350187798: {'path': 'temp/1744784819_3825622_1350187798_21be320572160258a88e49bf99ed622d.jpg', 'extension': 'jpg'}, 1350187803: {'path': 'temp/1744784819_3825622_1350187803_9b6aa1260eb5e5cf932cfaa9adf95468.jpg', 'extension': 'jpg'}, 1350187809: {'path': 'temp/1744784819_3825622_1350187809_95e55ad593e05fc82b1d32072b25e230.jpg', 'extension': 'jpg'}, 1350187815: {'path': 'temp/1744784819_3825622_1350187815_b540298a7032c1973fa6cff904581992.jpg', 'extension': 'jpg'}, 1350187822: {'path': 'temp/1744784819_3825622_1350187822_3bb2199eee3812dabace2fc29575f475.jpg', 'extension': 'jpg'}, 1350187906: {'path': 'temp/1744784819_3825622_1350187906_d3a6fa3b59f96adc1c4a91280debf4f7.jpg', 'extension': 'jpg'}, 1350187909: {'path': 'temp/1744784819_3825622_1350187909_51eac3f6726ac6b06e29c5b5ba76dda6.jpg', 'extension': 'jpg'}, 1350187966: {'path': 'temp/1744784819_3825622_1350187966_b1bcc0391a62ad1dbe1f055c6190899f.jpg', 'extension': 'jpg'}, 1350187969: {'path': 'temp/1744784819_3825622_1350187969_6bb4db43ef39c0d2f27b6524fce58365.jpg', 'extension': 'jpg'}, 1350187974: {'path': 'temp/1744784819_3825622_1350187974_f1d8d8f3be6d98f445cafb155e75f2f0.jpg', 'extension': 'jpg'}, 1350188046: {'path': 'temp/1744784819_3825622_1350188046_4138fe60f12db9435af7900566e80261.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 = 22066281; (('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 = 22066281 group by h (('08', 39),) 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=22066281 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 (22066281) 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 (22066281) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16042025 22066281 Nombre de photos uploadées : 39 / 23040 (0%) 16042025 22066281 Nombre de photos taguées (types de déchets): 0 / 39 (0%) 16042025 22066281 Nombre de photos taguées (volume) : 0 / 39 (0%) [{'photo_id': 1350186596, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/da58f0e5fbb63e7283bf44037c7368d2.jpg', 'username': None, 'uploaded_at': 1744784167, 'text': 'image_16042025_08_15_05_010150m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350186570, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/9b791f28439c4b4955e17f6759cdacb0.jpg', 'username': None, 'uploaded_at': 1744784167, 'text': 'image_16042025_08_15_15_010137m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1350186555, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7b935790b213f8697861701173c35f23.jpg', 'username': None, 'uploaded_at': 1744784167, 'text': 'image_16042025_08_15_25_010133m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1350186552, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/acc401a3c10ff93ebe02ae97b12c0954.jpg', 'username': None, 'uploaded_at': 1744784167, 'text': 'image_16042025_08_15_35_010140m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ??????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017092227935791016 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22066281, '2025-04-16' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1717339,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.029305696487426758 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= 1717339 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1717339, 'dashboard_run_id': 1725886, 'mtr_portfolio_id': 22063888, 'dashboard_result_id': 9875820, '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_P22063888_16-04-2025_07_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22063893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22063894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22063895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22063896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22063897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22063898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22063899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22063900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22063901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22063902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22063903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22063904, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1725886, 'mtr_portfolio_id': 22064719, 'dashboard_result_id': 9875822, '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_P22064719_16-04-2025_08_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22064721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22064722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22064723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22064724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22064725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22064726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22064727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22064728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22064729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22064730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22064731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22064732, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1725886, 'mtr_portfolio_id': 22065434, 'dashboard_result_id': 9875823, '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_P22065434_16-04-2025_08_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22065449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22065450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22065451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22065452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22065453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22065454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22065455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22065456, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22065457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22065458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22065459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22065460, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1725886, 'mtr_portfolio_id': 22066281, 'dashboard_result_id': 9875825, '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_P22066281_16-04-2025_08_23_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22066364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22066365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22066366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22066367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22066368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22066369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22066370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22066371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22066372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22066373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22066374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22066375, '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 = 22063888 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': 2724835, 'mtr_portfolio_id': 22063888, 'created_at': datetime.datetime(2025, 4, 16, 7, 46, 59), 'result': '0.04707989872056587', 'result_long': None, 'result_double': None}] Qualite : 0.04707989872056587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22063888 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22063888_16-04-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22063888 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_P22063888_16-04-2025_07_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22063893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22063894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22063895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22063896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22063897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22063898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22063899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22063900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22063901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22063902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22063903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22063904, 'pht': 3726}}" where mtr_portfolio_id = 22063888 and dashboard_run_id = 1725886 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`=22063888 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9875820, 0.04707989872056587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22063888_16-04-2025_07_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22063893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22063894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22063895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22063896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22063897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22063898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22063899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22063900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22063901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22063902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22063903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22063904, '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 = 22064719 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': 2724894, 'mtr_portfolio_id': 22064719, 'created_at': datetime.datetime(2025, 4, 16, 8, 2, 59), 'result': '0.04684223915456911', 'result_long': None, 'result_double': None}] Qualite : 0.04684223915456911 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22064719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22064719_16-04-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22064719 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_P22064719_16-04-2025_08_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22064721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22064722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22064723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22064724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22064725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22064726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22064727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22064728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22064729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22064730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22064731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22064732, 'pht': 3726}}" where mtr_portfolio_id = 22064719 and dashboard_run_id = 1725886 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`=22064719 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9875822, 0.04684223915456911, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22064719_16-04-2025_08_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22064721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22064722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22064723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22064724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22064725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22064726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22064727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22064728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22064729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22064730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22064731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22064732, '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 = 22065434 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': 2724964, 'mtr_portfolio_id': 22065434, 'created_at': datetime.datetime(2025, 4, 16, 8, 16, 57), 'result': '0.04557986179704616', 'result_long': None, 'result_double': None}] Qualite : 0.04557986179704616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22065434 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22065434_16-04-2025_08_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22065434 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_P22065434_16-04-2025_08_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22065449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22065450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22065451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22065452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22065453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22065454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22065455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22065456, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22065457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22065458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22065459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22065460, 'pht': 3726}}" where mtr_portfolio_id = 22065434 and dashboard_run_id = 1725886 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`=22065434 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9875823, 0.04557986179704616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22065434_16-04-2025_08_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22065449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22065450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22065451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22065452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22065453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22065454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22065455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22065456, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22065457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22065458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22065459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22065460, '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 = 22066281 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': 2725037, 'mtr_portfolio_id': 22066281, 'created_at': datetime.datetime(2025, 4, 16, 8, 26, 58), 'result': '0.04480221489899417', 'result_long': None, 'result_double': None}] Qualite : 0.04480221489899417 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22066281 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22066281_16-04-2025_08_26_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22066281 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_P22066281_16-04-2025_08_26_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22066364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22066365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22066366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22066367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22066368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22066369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22066370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22066371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22066372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22066373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22066374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22066375, 'pht': 3726}}" where mtr_portfolio_id = 22066281 and dashboard_run_id = 1725886 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`=22066281 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9875825, 0.04480221489899417, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22066281_16-04-2025_08_26_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22066364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22066365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22066366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22066367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22066368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22066369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22066370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22066371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22066372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22066373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22066374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22066375, '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 (22063888,22064719,22065434,22066281) result : ((1350178738,), (1350178745,), (1350178758,), (1350178761,), (1350178856,), (1350178862,), (1350178886,), (1350178912,), (1350179071,), (1350179090,), (1350179100,), (1350179107,), (1350179125,), (1350179158,), (1350179373,), (1350179398,), (1350179429,), (1350179445,), (1350179462,), (1350179590,), (1350179595,), (1350179602,), (1350179610,), (1350179810,), (1350179814,), (1350179819,), (1350179824,), (1350179829,), (1350179834,), (1350179870,), (1350179876,), (1350179884,), (1350179888,), (1350179892,), (1350179932,), (1350179942,), (1350179950,), (1350179963,), (1350179976,), (1350179980,), (1350180020,), (1350180024,), (1350180029,), (1350180077,), (1350180084,), (1350180093,), (1350180098,), (1350180104,), (1350180109,), (1350180142,), (1350180148,), (1350180156,), (1350180163,), (1350180168,), (1350180197,), (1350180203,), (1350180209,), (1350180222,), (1350180238,), (1350180251,), (1350180363,), (1350180374,), (1350180386,), (1350180391,), (1350180423,), (1350180475,), (1350180482,), (1350180494,), (1350180509,), (1350180515,), (1350180519,), (1350180557,), (1350180562,), (1350180568,), (1350180574,), (1350180581,), (1350180587,), (1350180665,), (1350180632,), (1350180638,), (1350180649,), (1350180654,), (1350180756,), (1350180775,), (1350180781,), (1350180785,), (1350180791,), (1350180826,), (1350180833,), (1350180931,), (1350180997,), (1350181119,), (1350181127,), (1350181132,), (1350181135,), (1350181197,), (1350181215,), (1350181331,), (1350181338,), (1350181343,), (1350181458,), (1350181470,), (1350181507,), (1350181543,), (1350181567,), (1350181581,), (1350181705,), (1350181714,), (1350181718,), (1350181722,), (1350181786,), (1350181792,), (1350181796,), (1350181801,), (1350181805,), (1350181808,), (1350181837,), (1350181844,), (1350181856,), (1350181860,), (1350181872,), (1350181933,), (1350181937,), (1350181941,), (1350181945,), (1350181949,), (1350181954,), (1350182001,), (1350182008,), (1350182023,), (1350182072,), (1350182090,), (1350182098,), (1350182103,), (1350182107,), (1350182112,), (1350182190,), (1350182218,), (1350182243,), (1350182293,), (1350182774,), (1350182781,), (1350182790,), (1350182799,), (1350182814,), (1350182818,), (1350182869,), (1350182850,), (1350182854,), (1350182861,), (1350182865,), (1350182895,), (1350182904,), (1350182916,), (1350182925,), (1350182930,), (1350182935,), (1350183027,), (1350183032,), (1350183040,), (1350183055,), (1350183093,), (1350183099,), (1350183111,), (1350183117,), (1350183122,), (1350183265,), (1350184477,), (1350184482,), (1350184485,), (1350184489,), (1350184800,), (1350184804,), (1350184849,), (1350184854,), (1350184859,), (1350184926,), (1350184969,), (1350184979,), (1350184984,), (1350184990,), (1350185277,), (1350185285,), (1350185290,), (1350185295,), (1350185298,), (1350185303,), (1350185355,), (1350185361,), (1350185366,), (1350185544,), (1350185571,), (1350185600,), (1350185627,), (1350185672,), (1350185702,), (1350185871,), (1350185907,), (1350185937,), (1350185953,), (1350186006,), (1350186011,), (1350186015,), (1350186024,), (1350186030,), (1350186036,), (1350186150,), (1350186155,), (1350186160,), (1350186166,), (1350186176,), (1350186247,), (1350186253,), (1350186257,), (1350186260,), (1350186351,), (1350186366,), (1350186375,), (1350186621,), (1350186548,), (1350186552,), (1350186555,), (1350186570,), (1350186596,), (1350186753,), (1350187208,), (1350187238,), (1350187472,), (1350187474,), (1350187489,), (1350187647,), (1350187674,), (1350187677,), (1350187721,), (1350187732,), (1350187740,), (1350187751,), (1350187754,), (1350187759,), (1350187793,), (1350187798,), (1350187803,), (1350187809,), (1350187815,), (1350187822,), (1350187906,), (1350187909,), (1350187912,), (1350187916,), (1350187957,), (1350187961,), (1350187966,), (1350187969,), (1350187974,), (1350188046,), (1350188051,), (1350188055,), (1350188060,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16042025': {'nb_upload': 39, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22066281]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350188060, 1350188055, 1350188051, 1350188046, 1350187974, 1350187969, 1350187966, 1350187961, 1350187957, 1350187916, 1350187912, 1350187909, 1350187906, 1350187822, 1350187815, 1350187809, 1350187803, 1350187798, 1350187793] map_info['map_portfolio_photo'] : {22066281: [1350188060, 1350188055, 1350188051, 1350188046, 1350187974, 1350187969, 1350187966, 1350187961, 1350187957, 1350187916, 1350187912, 1350187909, 1350187906, 1350187822, 1350187815, 1350187809, 1350187803, 1350187798, 1350187793, 1350187759, 1350187754, 1350187751, 1350187740, 1350187732, 1350187721, 1350187677, 1350187674, 1350187647, 1350187489, 1350187474, 1350187472, 1350187238, 1350187208, 1350186753, 1350186596, 1350186570, 1350186555, 1350186552, 1350186548]} final : True mtd_id 4302 list_pids : [1350188060, 1350188055, 1350188051, 1350188046, 1350187974, 1350187969, 1350187966, 1350187961, 1350187957, 1350187916, 1350187912, 1350187909, 1350187906, 1350187822, 1350187815, 1350187809, 1350187803, 1350187798, 1350187793] Looping around the photos to save general results len do output : 1 /22066281Didn'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, '2725037') ('4302', '22066281', '1350188060', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350188055', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350188051', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350188046', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187974', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187969', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187966', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187961', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187957', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187916', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187912', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187909', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187906', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187822', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187815', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187809', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187803', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187798', None, None, None, None, None, '2725037') ('4302', None, None, None, None, None, None, None, '2725037') ('4302', '22066281', '1350187793', None, None, None, None, None, '2725037') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '22066281', 'None', None, None, None, None, '2725037'), ('4302', '22066281', '1350188060', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350188055', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350188051', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350188046', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187974', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187969', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187966', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187961', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187957', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187916', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187912', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187909', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187906', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187822', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187815', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187809', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187803', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187798', None, None, None, None, None, '2725037'), ('4302', '22066281', '1350187793', None, None, None, None, None, '2725037')] time used for this insertion : 0.15921425819396973 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.38109564781188965 time spend to save output : 0.15957164764404297 total time spend for step 5 : 0.5406672954559326 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 (2725037) 2.47user 2.84system 0:10.20elapsed 52%CPU (0avgtext+0avgdata 160572maxresident)k 51312inputs+13296outputs (173major+76983minor)pagefaults 0swaps