python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 2870504 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 (2759574) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2759574) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22404342 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2759574'] with mtr_portfolio_ids : ['22404342'] and first list_photo_ids : [] new path : /proc/2870504/ Name: python3 Umask: 0002 State: R (running) Tgid: 2870504 Ngid: 0 Pid: 2870504 PPid: 2870503 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2870504 NSpid: 2870504 NSpgid: 2867367 NSsid: 2867367 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98656 kB VmRSS: 98656 kB RssAnon: 59804 kB RssFile: 38852 kB RssShmem: 0 kB VmData: 865684 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: 84 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2870504', 'Ngid': '0', 'Pid': '2870504', 'PPid': '2870503', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2870504', 'NSpid': '2870504', 'NSpgid': '2867367', 'NSsid': '2867367', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98656 kB', 'VmRSS': '98656 kB', 'RssAnon': '59804 kB', 'RssFile': '38852 kB', 'RssShmem': '0 kB', 'VmData': '865684 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': '84', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '2870504', '1106936', '0', '1106936', '865684', '98656', b'', 'marlene', '2759574') 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 (22404342) 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 (2759574 ) ) 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 (22404342) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1353514566, 'portfolio_id': 22404342}, {'photo_id': 1353514489, 'portfolio_id': 22404342}, {'photo_id': 1353514384, 'portfolio_id': 22404342}, {'photo_id': 1353514286, 'portfolio_id': 22404342}, {'photo_id': 1353514234, 'portfolio_id': 22404342}, {'photo_id': 1353513537, 'portfolio_id': 22404342}, {'photo_id': 1353513483, 'portfolio_id': 22404342}, {'photo_id': 1353513432, 'portfolio_id': 22404342}, {'photo_id': 1353513357, 'portfolio_id': 22404342}, {'photo_id': 1353512668, 'portfolio_id': 22404342}, {'photo_id': 1353512568, 'portfolio_id': 22404342}, {'photo_id': 1353512494, 'portfolio_id': 22404342}, {'photo_id': 1353512211, 'portfolio_id': 22404342}, {'photo_id': 1353510622, 'portfolio_id': 22404342}, {'photo_id': 1353510571, 'portfolio_id': 22404342}, {'photo_id': 1353510519, 'portfolio_id': 22404342}, {'photo_id': 1353510470, 'portfolio_id': 22404342}, {'photo_id': 1353510440, 'portfolio_id': 22404342}, {'photo_id': 1353510388, 'portfolio_id': 22404342}, {'photo_id': 1353510352, 'portfolio_id': 22404342}, {'photo_id': 1353510332, 'portfolio_id': 22404342}, {'photo_id': 1353510310, 'portfolio_id': 22404342}, {'photo_id': 1353510280, 'portfolio_id': 22404342}, {'photo_id': 1353510268, 'portfolio_id': 22404342}, {'photo_id': 1353510030, 'portfolio_id': 22404342}, {'photo_id': 1353509931, 'portfolio_id': 22404342}, {'photo_id': 1353509834, 'portfolio_id': 22404342}, {'photo_id': 1353509738, 'portfolio_id': 22404342}, {'photo_id': 1353508832, 'portfolio_id': 22404342}, {'photo_id': 1353508782, 'portfolio_id': 22404342}, {'photo_id': 1353508732, 'portfolio_id': 22404342}, {'photo_id': 1353508705, 'portfolio_id': 22404342}, {'photo_id': 1353508427, 'portfolio_id': 22404342}, {'photo_id': 1353508405, 'portfolio_id': 22404342}] map_portfolio_id_photo_id: {22404342: [1353514566, 1353514489, 1353514384, 1353514286, 1353514234, 1353513537, 1353513483, 1353513432, 1353513357, 1353512668, 1353512568, 1353512494, 1353512211, 1353510622, 1353510571, 1353510519, 1353510470, 1353510440, 1353510388, 1353510352, 1353510332, 1353510310, 1353510280, 1353510268, 1353510030, 1353509931, 1353509834, 1353509738, 1353508832, 1353508782, 1353508732, 1353508705, 1353508427, 1353508405]} ##### 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.015958786010742188 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Apr 24 23:10: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 (22404342) 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 : 22404342 get user id for portfolio 22404342 get sub ptf for main ptf 22404342, type 3726 and hashtags ['kraft', 'cartonnette', 'mal_croppe', 'Carton_brun', 'Teint_Dans_La_Masse', 'autre_refus', 'papier', 'flou', 'plastique', 'environnement', 'Carton_gris', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22404342 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','mal_croppe','Carton_brun','Teint_Dans_La_Masse','autre_refus','papier','flou','plastique','environnement','Carton_gris','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22404342 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','mal_croppe','Carton_brun','Teint_Dans_La_Masse','autre_refus','papier','flou','plastique','environnement','Carton_gris','metal')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22404342, 'sub_port_id': 22404371, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853388, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 6, 58)}, 'Carton_brun': {'main_port_id': 22404342, 'sub_port_id': 22404372, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853389, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 6, 58)}, 'Carton_gris': {'main_port_id': 22404342, 'sub_port_id': 22404373, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853390, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 6, 58)}, 'environnement': {'main_port_id': 22404342, 'sub_port_id': 22404374, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853391, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 6, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22404342, 'sub_port_id': 22404375, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853392, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 6, 58)}, 'plastique': {'main_port_id': 22404342, 'sub_port_id': 22404376, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853393, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 6, 58)}, 'mal_croppe': {'main_port_id': 22404342, 'sub_port_id': 22404377, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853394, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 6, 58)}, 'kraft': {'main_port_id': 22404342, 'sub_port_id': 22404378, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853395, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 6, 58)}, 'flou': {'main_port_id': 22404342, 'sub_port_id': 22404379, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853396, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 6, 58)}, 'autre_refus': {'main_port_id': 22404342, 'sub_port_id': 22404380, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853397, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 6, 58)}, 'cartonnette': {'main_port_id': 22404342, 'sub_port_id': 22404381, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853398, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 6, 58)}, 'metal': {'main_port_id': 22404342, 'sub_port_id': 22404382, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853399, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 6, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22404371 , 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=22404342 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 (22404371) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22404342) result : ((1353508405,), (1353508427,), (1353508705,), (1353508732,), (1353508782,), (1353508832,), (1353509738,), (1353509834,), (1353509931,), (1353510030,), (1353510268,), (1353510280,), (1353510310,), (1353510332,), (1353510352,), (1353510388,), (1353510440,), (1353510470,), (1353510519,), (1353510571,), (1353510622,), (1353512211,), (1353512494,), (1353512568,), (1353512668,), (1353513357,), (1353513432,), (1353513483,), (1353513537,), (1353514234,), (1353514286,), (1353514384,), (1353514489,), (1353514566,)) 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 22404372 , 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=22404342 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 (22404372) result : ((1353509929,), (1353509935,), (1353515159,), (1353515161,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22404342) result : ((1353508405,), (1353508427,), (1353508705,), (1353508732,), (1353508782,), (1353508832,), (1353509738,), (1353509834,), (1353509931,), (1353510030,), (1353510268,), (1353510280,), (1353510310,), (1353510332,), (1353510352,), (1353510388,), (1353510440,), (1353510470,), (1353510519,), (1353510571,), (1353510622,), (1353512211,), (1353512494,), (1353512568,), (1353512668,), (1353513357,), (1353513432,), (1353513483,), (1353513537,), (1353514234,), (1353514286,), (1353514384,), (1353514489,), (1353514566,)) 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 22404373 , 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=22404342 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 (22404373) result : ((1353509869,), (1353515095,), (1353515391,), (1353516055,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22404342) result : ((1353508405,), (1353508427,), (1353508705,), (1353508732,), (1353508782,), (1353508832,), (1353509738,), (1353509834,), (1353509931,), (1353510030,), (1353510268,), (1353510280,), (1353510310,), (1353510332,), (1353510352,), (1353510388,), (1353510440,), (1353510470,), (1353510519,), (1353510571,), (1353510622,), (1353512211,), (1353512494,), (1353512568,), (1353512668,), (1353513357,), (1353513432,), (1353513483,), (1353513537,), (1353514234,), (1353514286,), (1353514384,), (1353514489,), (1353514566,)) 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 22404374 , 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=22404342 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 (22404374) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22404342) result : ((1353508405,), (1353508427,), (1353508705,), (1353508732,), (1353508782,), (1353508832,), (1353509738,), (1353509834,), (1353509931,), (1353510030,), (1353510268,), (1353510280,), (1353510310,), (1353510332,), (1353510352,), (1353510388,), (1353510440,), (1353510470,), (1353510519,), (1353510571,), (1353510622,), (1353512211,), (1353512494,), (1353512568,), (1353512668,), (1353513357,), (1353513432,), (1353513483,), (1353513537,), (1353514234,), (1353514286,), (1353514384,), (1353514489,), (1353514566,)) 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 22404375 , 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=22404342 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 (22404375) result : ((1353509839,), (1353510141,), (1353512807,), (1353512809,), (1353512810,), (1353512812,), (1353512813,), (1353515056,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22404342) result : ((1353508405,), (1353508427,), (1353508705,), (1353508732,), (1353508782,), (1353508832,), (1353509738,), (1353509834,), (1353509931,), (1353510030,), (1353510268,), (1353510280,), (1353510310,), (1353510332,), (1353510352,), (1353510388,), (1353510440,), (1353510470,), (1353510519,), (1353510571,), (1353510622,), (1353512211,), (1353512494,), (1353512568,), (1353512668,), (1353513357,), (1353513432,), (1353513483,), (1353513537,), (1353514234,), (1353514286,), (1353514384,), (1353514489,), (1353514566,)) 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 22404376 , 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=22404342 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 (22404376) result : ((1353515183,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22404342) result : ((1353508405,), (1353508427,), (1353508705,), (1353508732,), (1353508782,), (1353508832,), (1353509738,), (1353509834,), (1353509931,), (1353510030,), (1353510268,), (1353510280,), (1353510310,), (1353510332,), (1353510352,), (1353510388,), (1353510440,), (1353510470,), (1353510519,), (1353510571,), (1353510622,), (1353512211,), (1353512494,), (1353512568,), (1353512668,), (1353513357,), (1353513432,), (1353513483,), (1353513537,), (1353514234,), (1353514286,), (1353514384,), (1353514489,), (1353514566,)) 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 22404377 , 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=22404342 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 (22404377) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22404342) result : ((1353508405,), (1353508427,), (1353508705,), (1353508732,), (1353508782,), (1353508832,), (1353509738,), (1353509834,), (1353509931,), (1353510030,), (1353510268,), (1353510280,), (1353510310,), (1353510332,), (1353510352,), (1353510388,), (1353510440,), (1353510470,), (1353510519,), (1353510571,), (1353510622,), (1353512211,), (1353512494,), (1353512568,), (1353512668,), (1353513357,), (1353513432,), (1353513483,), (1353513537,), (1353514234,), (1353514286,), (1353514384,), (1353514489,), (1353514566,)) 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 22404378 , 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=22404342 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 (22404378) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22404342) result : ((1353508405,), (1353508427,), (1353508705,), (1353508732,), (1353508782,), (1353508832,), (1353509738,), (1353509834,), (1353509931,), (1353510030,), (1353510268,), (1353510280,), (1353510310,), (1353510332,), (1353510352,), (1353510388,), (1353510440,), (1353510470,), (1353510519,), (1353510571,), (1353510622,), (1353512211,), (1353512494,), (1353512568,), (1353512668,), (1353513357,), (1353513432,), (1353513483,), (1353513537,), (1353514234,), (1353514286,), (1353514384,), (1353514489,), (1353514566,)) 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 22404379 , 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=22404342 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 (22404379) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22404342) result : ((1353508405,), (1353508427,), (1353508705,), (1353508732,), (1353508782,), (1353508832,), (1353509738,), (1353509834,), (1353509931,), (1353510030,), (1353510268,), (1353510280,), (1353510310,), (1353510332,), (1353510352,), (1353510388,), (1353510440,), (1353510470,), (1353510519,), (1353510571,), (1353510622,), (1353512211,), (1353512494,), (1353512568,), (1353512668,), (1353513357,), (1353513432,), (1353513483,), (1353513537,), (1353514234,), (1353514286,), (1353514384,), (1353514489,), (1353514566,)) 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 22404380 , 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=22404342 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 (22404380) result : ((1353510142,), (1353515076,), (1353516042,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22404342) result : ((1353508405,), (1353508427,), (1353508705,), (1353508732,), (1353508782,), (1353508832,), (1353509738,), (1353509834,), (1353509931,), (1353510030,), (1353510268,), (1353510280,), (1353510310,), (1353510332,), (1353510352,), (1353510388,), (1353510440,), (1353510470,), (1353510519,), (1353510571,), (1353510622,), (1353512211,), (1353512494,), (1353512568,), (1353512668,), (1353513357,), (1353513432,), (1353513483,), (1353513537,), (1353514234,), (1353514286,), (1353514384,), (1353514489,), (1353514566,)) 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 22404381 , 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=22404342 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 (22404381) result : ((1353509893,), (1353510144,), (1353512844,), (1353512845,), (1353512846,), (1353512848,), (1353512850,), (1353515129,), (1353515130,), (1353515132,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22404342) result : ((1353508405,), (1353508427,), (1353508705,), (1353508732,), (1353508782,), (1353508832,), (1353509738,), (1353509834,), (1353509931,), (1353510030,), (1353510268,), (1353510280,), (1353510310,), (1353510332,), (1353510352,), (1353510388,), (1353510440,), (1353510470,), (1353510519,), (1353510571,), (1353510622,), (1353512211,), (1353512494,), (1353512568,), (1353512668,), (1353513357,), (1353513432,), (1353513483,), (1353513537,), (1353514234,), (1353514286,), (1353514384,), (1353514489,), (1353514566,)) 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 22404382 , 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=22404342 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 (22404382) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22404342) result : ((1353508405,), (1353508427,), (1353508705,), (1353508732,), (1353508782,), (1353508832,), (1353509738,), (1353509834,), (1353509931,), (1353510030,), (1353510268,), (1353510280,), (1353510310,), (1353510332,), (1353510352,), (1353510388,), (1353510440,), (1353510470,), (1353510519,), (1353510571,), (1353510622,), (1353512211,), (1353512494,), (1353512568,), (1353512668,), (1353513357,), (1353513432,), (1353513483,), (1353513537,), (1353514234,), (1353514286,), (1353514384,), (1353514489,), (1353514566,)) 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`=22404342 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','mal_croppe','Carton_brun','Teint_Dans_La_Masse','autre_refus','papier','flou','plastique','environnement','Carton_gris','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22404342 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','mal_croppe','Carton_brun','Teint_Dans_La_Masse','autre_refus','papier','flou','plastique','environnement','Carton_gris','metal')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22404342, 'sub_port_id': 22404383, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853400, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 7)}, 'Carton_brun': {'main_port_id': 22404342, 'sub_port_id': 22404384, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853401, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 7)}, 'Carton_gris': {'main_port_id': 22404342, 'sub_port_id': 22404385, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853402, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 7)}, 'environnement': {'main_port_id': 22404342, 'sub_port_id': 22404386, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853403, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 7)}, 'Teint_Dans_La_Masse': {'main_port_id': 22404342, 'sub_port_id': 22404387, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853404, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 7)}, 'plastique': {'main_port_id': 22404342, 'sub_port_id': 22404388, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853405, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 7)}, 'mal_croppe': {'main_port_id': 22404342, 'sub_port_id': 22404389, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853406, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 7)}, 'kraft': {'main_port_id': 22404342, 'sub_port_id': 22404390, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853407, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 7)}, 'flou': {'main_port_id': 22404342, 'sub_port_id': 22404391, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853408, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 7)}, 'autre_refus': {'main_port_id': 22404342, 'sub_port_id': 22404392, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853409, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 7)}, 'cartonnette': {'main_port_id': 22404342, 'sub_port_id': 22404393, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853410, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 7)}, 'metal': {'main_port_id': 22404342, 'sub_port_id': 22404394, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14853411, 'last_updated_at': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 23, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 23, 7)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22404383,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22404371 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22404384,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22404372 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22404385,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22404373 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22404386,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22404374 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22404387,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22404375 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22404388,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22404376 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22404389,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22404377 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22404390,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22404378 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22404391,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22404379 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22404392,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22404380 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22404393,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22404381 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22404394,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22404382 lien utilise dans velours : https://www.fotonower.com/velours/22404383,22404384,22404385,22404386,22404387,22404388,22404389,22404390,22404391,22404392,22404393,22404394?tags=papier,Carton_brun,Carton_gris,environnement,Teint_Dans_La_Masse,plastique,mal_croppe,kraft,flou,autre_refus,cartonnette,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22404342]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353514566, 1353514489, 1353514384, 1353514286, 1353514234, 1353513537, 1353513483, 1353513432, 1353513357, 1353512668, 1353512568, 1353512494, 1353512211, 1353510622, 1353510571, 1353510519, 1353510470, 1353510440, 1353510388] map_info['map_portfolio_photo'] : {22404342: [1353514566, 1353514489, 1353514384, 1353514286, 1353514234, 1353513537, 1353513483, 1353513432, 1353513357, 1353512668, 1353512568, 1353512494, 1353512211, 1353510622, 1353510571, 1353510519, 1353510470, 1353510440, 1353510388, 1353510352, 1353510332, 1353510310, 1353510280, 1353510268, 1353510030, 1353509931, 1353509834, 1353509738, 1353508832, 1353508782, 1353508732, 1353508705, 1353508427, 1353508405]} final : False mtd_id 4302 list_pids : [1353514566, 1353514489, 1353514384, 1353514286, 1353514234, 1353513537, 1353513483, 1353513432, 1353513357, 1353512668, 1353512568, 1353512494, 1353512211, 1353510622, 1353510571, 1353510519, 1353510470, 1353510440, 1353510388] Looping around the photos to save general results len do output : 1 /22404342. 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, '2759574') ('4302', '22404342', '1353514566', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353514489', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353514384', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353514286', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353514234', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353513537', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353513483', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353513432', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353513357', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353512668', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353512568', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353512494', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353512211', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510622', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510571', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510519', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510470', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510440', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510388', None, None, None, None, None, '2759574') 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, '22404342', "{'papier': 22404371, 'Carton_brun': 22404372, 'Carton_gris': 22404373, 'environnement': 22404374, 'Teint_Dans_La_Masse': 22404375, 'plastique': 22404376, 'mal_croppe': 22404377, 'kraft': 22404378, 'flou': 22404379, 'autre_refus': 22404380, 'cartonnette': 22404381, 'metal': 22404382}", None, None, None, None, '2759574'), ('4302', '22404342', '1353514566', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353514489', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353514384', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353514286', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353514234', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353513537', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353513483', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353513432', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353513357', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353512668', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353512568', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353512494', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353512211', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353510622', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353510571', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353510519', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353510470', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353510440', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353510388', None, None, None, None, None, '2759574')] time used for this insertion : 0.016754865646362305 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4381837844848633 time spend to save output : 0.017039775848388672 total time spend for step 1 : 1.455223560333252 step2:final Thu Apr 24 23:10: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 (22404342) 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 22404342 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353508427,1353508405,1353508832,1353508782,1353508732,1353508705,1353510030,1353509931,1353509834,1353509738,1353510352,1353510332,1353510310,1353510280,1353510268,1353510622,1353510571,1353510519,1353510470,1353510440,1353510388,1353512668,1353512568,1353512494,1353512211,1353513537,1353513483,1353513432,1353513357,1353514566,1353514489,1353514384,1353514286,1353514234); 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([22404342]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} new output for save of step final : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} [1353514566, 1353514489, 1353514384, 1353514286, 1353514234, 1353513537, 1353513483, 1353513432, 1353513357, 1353512668, 1353512568, 1353512494, 1353512211, 1353510622, 1353510571, 1353510519, 1353510470, 1353510440, 1353510388] map_info['map_portfolio_photo'] : {22404342: [1353514566, 1353514489, 1353514384, 1353514286, 1353514234, 1353513537, 1353513483, 1353513432, 1353513357, 1353512668, 1353512568, 1353512494, 1353512211, 1353510622, 1353510571, 1353510519, 1353510470, 1353510440, 1353510388, 1353510352, 1353510332, 1353510310, 1353510280, 1353510268, 1353510030, 1353509931, 1353509834, 1353509738, 1353508832, 1353508782, 1353508732, 1353508705, 1353508427, 1353508405]} final : False mtd_id 4302 list_pids : [1353514566, 1353514489, 1353514384, 1353514286, 1353514234, 1353513537, 1353513483, 1353513432, 1353513357, 1353512668, 1353512568, 1353512494, 1353512211, 1353510622, 1353510571, 1353510519, 1353510470, 1353510440, 1353510388] Looping around the photos to save general results len do output : 19 /1353514566.Didn't retrieve data . /1353514489.Didn't retrieve data . /1353514384.Didn't retrieve data . /1353514286.Didn't retrieve data . /1353514234.Didn't retrieve data . /1353513537.Didn't retrieve data . /1353513483.Didn't retrieve data . /1353513432.Didn't retrieve data . /1353513357.Didn't retrieve data . /1353512668.Didn't retrieve data . /1353512568.Didn't retrieve data . /1353512494.Didn't retrieve data . /1353512211.Didn't retrieve data . /1353510622.Didn't retrieve data . /1353510571.Didn't retrieve data . /1353510519.Didn't retrieve data . /1353510470.Didn't retrieve data . /1353510440.Didn't retrieve data . /1353510388.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, '2759574') ('4302', '22404342', '1353514566', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353514489', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353514384', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353514286', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353514234', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353513537', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353513483', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353513432', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353513357', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353512668', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353512568', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353512494', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353512211', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510622', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510571', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510519', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510470', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510440', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510388', None, None, None, None, None, '2759574') 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', '22404342', '1353514566', '0.026511209850571628', None, None, None, None, '2759574'), ('4302', '22404342', '1353514489', '0.026511209850571628', None, None, None, None, '2759574'), ('4302', '22404342', '1353514384', '0.026511209850571628', None, None, None, None, '2759574'), ('4302', '22404342', '1353514286', '0.026511209850571628', None, None, None, None, '2759574'), ('4302', '22404342', '1353514234', '0.026511209850571628', None, None, None, None, '2759574'), ('4302', '22404342', '1353513537', '0.026511209850571628', None, None, None, None, '2759574'), ('4302', '22404342', '1353513483', '0.026511209850571628', None, None, None, None, '2759574'), ('4302', '22404342', '1353513432', '0.026511209850571628', None, None, None, None, '2759574'), ('4302', '22404342', '1353513357', '0.026511209850571628', None, None, None, None, '2759574'), ('4302', '22404342', '1353512668', '0.026511209850571628', None, None, None, None, '2759574'), ('4302', '22404342', '1353512568', '0.026511209850571628', None, None, None, None, '2759574'), ('4302', '22404342', '1353512494', '0.026511209850571628', None, None, None, None, '2759574'), ('4302', '22404342', '1353512211', '0.026511209850571628', None, None, None, None, '2759574'), ('4302', '22404342', '1353510622', '0.026511209850571628', None, None, None, None, '2759574'), ('4302', '22404342', '1353510571', '0.026511209850571628', None, None, None, None, '2759574'), ('4302', '22404342', '1353510519', '0.026511209850571628', None, None, None, None, '2759574'), ('4302', '22404342', '1353510470', '0.026511209850571628', None, None, None, None, '2759574'), ('4302', '22404342', '1353510440', '0.026511209850571628', None, None, None, None, '2759574'), ('4302', '22404342', '1353510388', '0.026511209850571628', None, None, None, None, '2759574')] time used for this insertion : 0.014999628067016602 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07068109512329102 time spend to save output : 0.015656709671020508 total time spend for step 2 : 0.08633780479431152 step3:velours_tree Thu Apr 24 23:10: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 complete output_args for input 0 : {22404342: [{'papier': 22404371, 'Carton_brun': 22404372, 'Carton_gris': 22404373, 'environnement': 22404374, 'Teint_Dans_La_Masse': 22404375, 'plastique': 22404376, 'mal_croppe': 22404377, 'kraft': 22404378, 'flou': 22404379, 'autre_refus': 22404380, 'cartonnette': 22404381, 'metal': 22404382}]} input_args_next_step : {22404342: ()} output_args : {22404342: [{'papier': 22404371, 'Carton_brun': 22404372, 'Carton_gris': 22404373, 'environnement': 22404374, 'Teint_Dans_La_Masse': 22404375, 'plastique': 22404376, 'mal_croppe': 22404377, 'kraft': 22404378, 'flou': 22404379, 'autre_refus': 22404380, 'cartonnette': 22404381, 'metal': 22404382}]} args : 22404342 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 : ({'papier': 22404371, 'Carton_brun': 22404372, 'Carton_gris': 22404373, 'environnement': 22404374, 'Teint_Dans_La_Masse': 22404375, 'plastique': 22404376, 'mal_croppe': 22404377, 'kraft': 22404378, 'flou': 22404379, 'autre_refus': 22404380, 'cartonnette': 22404381, 'metal': 22404382},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22404342) 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([22404342]) 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.36681580543518066 time spend to save output : 7.200241088867188e-05 total time spend for step 3 : 0.36688780784606934 step4:send_mail_cod Thu Apr 24 23:10: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 : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} input_args_next_step : {1353514566: ()} output_args : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} args : 1353514566 depend.output_id : 0 input_args_next_step : {1353514566: ('0.026511209850571628',), 1353514489: ()} output_args : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} args : 1353514489 depend.output_id : 0 input_args_next_step : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ()} output_args : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} args : 1353514384 depend.output_id : 0 input_args_next_step : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ()} output_args : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} args : 1353514286 depend.output_id : 0 input_args_next_step : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ()} output_args : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} args : 1353514234 depend.output_id : 0 input_args_next_step : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ()} output_args : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} args : 1353513537 depend.output_id : 0 input_args_next_step : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ()} output_args : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} args : 1353513483 depend.output_id : 0 input_args_next_step : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ()} output_args : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} args : 1353513432 depend.output_id : 0 input_args_next_step : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ()} output_args : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} args : 1353513357 depend.output_id : 0 input_args_next_step : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ()} output_args : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} args : 1353512668 depend.output_id : 0 input_args_next_step : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ()} output_args : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} args : 1353512568 depend.output_id : 0 input_args_next_step : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ()} output_args : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} args : 1353512494 depend.output_id : 0 input_args_next_step : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ()} output_args : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} args : 1353512211 depend.output_id : 0 input_args_next_step : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ()} output_args : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} args : 1353510622 depend.output_id : 0 input_args_next_step : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ()} output_args : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} args : 1353510571 depend.output_id : 0 input_args_next_step : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ()} output_args : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} args : 1353510519 depend.output_id : 0 input_args_next_step : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ()} output_args : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} args : 1353510470 depend.output_id : 0 input_args_next_step : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ()} output_args : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} args : 1353510440 depend.output_id : 0 input_args_next_step : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ()} output_args : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',)} args : 1353510388 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 : {22404342: [{'papier': 22404371, 'Carton_brun': 22404372, 'Carton_gris': 22404373, 'environnement': 22404374, 'Teint_Dans_La_Masse': 22404375, 'plastique': 22404376, 'mal_croppe': 22404377, 'kraft': 22404378, 'flou': 22404379, 'autre_refus': 22404380, 'cartonnette': 22404381, 'metal': 22404382}]} input_args_next_step : {1353514566: ('0.026511209850571628',), 1353514489: ('0.026511209850571628',), 1353514384: ('0.026511209850571628',), 1353514286: ('0.026511209850571628',), 1353514234: ('0.026511209850571628',), 1353513537: ('0.026511209850571628',), 1353513483: ('0.026511209850571628',), 1353513432: ('0.026511209850571628',), 1353513357: ('0.026511209850571628',), 1353512668: ('0.026511209850571628',), 1353512568: ('0.026511209850571628',), 1353512494: ('0.026511209850571628',), 1353512211: ('0.026511209850571628',), 1353510622: ('0.026511209850571628',), 1353510571: ('0.026511209850571628',), 1353510519: ('0.026511209850571628',), 1353510470: ('0.026511209850571628',), 1353510440: ('0.026511209850571628',), 1353510388: ('0.026511209850571628',), 22404342: ()} output_args : {22404342: [{'papier': 22404371, 'Carton_brun': 22404372, 'Carton_gris': 22404373, 'environnement': 22404374, 'Teint_Dans_La_Masse': 22404375, 'plastique': 22404376, 'mal_croppe': 22404377, 'kraft': 22404378, 'flou': 22404379, 'autre_refus': 22404380, 'cartonnette': 22404381, 'metal': 22404382}]} args : 22404342 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.026511209850571628',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22404342) 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 (1353514566,1353514489,1353514384,1353514286,1353514234,1353513537,1353513483,1353513432,1353513357,1353512668,1353512568,1353512494,1353512211,1353510622,1353510571,1353510519,1353510470,1353510440,1353510388) Found this number of photos: 19 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353510388 begin to download photo : 1353510571 begin to download photo : 1353512568 begin to download photo : 1353513483 begin to download photo : 1353514384 download finish for photo 1353513483 begin to download photo : 1353513537 download finish for photo 1353512568 begin to download photo : 1353512668 download finish for photo 1353510571 begin to download photo : 1353510622 download finish for photo 1353514384 begin to download photo : 1353514489 download finish for photo 1353512668 begin to download photo : 1353513357 download finish for photo 1353513537 begin to download photo : 1353514234 download finish for photo 1353514489 begin to download photo : 1353514566 download finish for photo 1353510622 begin to download photo : 1353512211 download finish for photo 1353513357 begin to download photo : 1353513432 download finish for photo 1353514234 begin to download photo : 1353514286 download finish for photo 1353514566 download finish for photo 1353512211 begin to download photo : 1353512494 download finish for photo 1353513432 download finish for photo 1353514286 download finish for photo 1353512494 download finish for photo 1353510388 begin to download photo : 1353510440 download finish for photo 1353510440 begin to download photo : 1353510470 download finish for photo 1353510470 begin to download photo : 1353510519 download finish for photo 1353510519 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 19 ; length of list_pids : 19 ; length of list_args : 19 results_Auto_P22404342_24-04-2025_23_11_01.pdf 22404376 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=22404376 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353515183: '1745528952_1316895_1353510470_76cd4cd1b8cf6a12561e7c951324f19d_rle_crop_3768472380_0.png'} change filename to text .imagette224043761745529061/ imagette224043761745529061/1745528952_1316895_1353510470_76cd4cd1b8cf6a12561e7c951324f19d_rle_crop_3768472380_0.png.png imagette224043771745529061/ imagette224043781745529061/ imagette224043791745529061/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/67644cfd0779fa4d566225d6ce431ea9_40994857.png imagette224043761745529061 22404377 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=22404377 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224043771745529061 22404378 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=22404378 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224043781745529061 22404379 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=22404379 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224043791745529061 22404380 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=22404380 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353510142: '1745528652_1314219_1353508705_eff9f032a38ae4a0bbce6205a2afdaf9_rle_crop_3768450706_0.png', 1353515076: '1745528952_1316895_1353510571_59608ac75def6b97cce69ebb87f43704_rle_crop_3768472349_0.png', 1353516042: '1745529012_1317659_1353512494_9825d8dc38fbfbf8d6670b1450d6c1be_rle_crop_3768472609_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/39513c91460c182e28c7ab98f4493b5f_73609052.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/d01af298103662a483a7ea843e7a5a95_39608467.png change filename to text .imagette224043801745529061/ imagette224043801745529061/1745529012_1317659_1353512494_9825d8dc38fbfbf8d6670b1450d6c1be_rle_crop_3768472609_0.png.png imagette224043801745529061/1745528952_1316895_1353510571_59608ac75def6b97cce69ebb87f43704_rle_crop_3768472349_0.png.png imagette224043801745529061/1745528652_1314219_1353508705_eff9f032a38ae4a0bbce6205a2afdaf9_rle_crop_3768450706_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/93a48ff8da63890866b76ed859213b77_2426361.png imagette224043801745529061 22404381 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=22404381 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353509893: '1745528624_640193_1353508832_bf1f81e6d417fe21d7a5187fe309d86b_rle_crop_3768450557_0.png', 1353510144: '1745528652_1314219_1353508705_eff9f032a38ae4a0bbce6205a2afdaf9_rle_crop_3768450709_0.png', 1353512844: '1745528832_1315791_1353510310_2362d7b480bb0e65c144c2405b527eb8_rle_crop_3768467726_0.png', 1353512845: '1745528832_1315791_1353510310_2362d7b480bb0e65c144c2405b527eb8_rle_crop_3768467727_0.png', 1353512846: '1745528832_1315791_1353510280_c245a5201ca87f6f18385c04d664b5c0_rle_crop_3768467738_0.png', 1353512848: '1745528832_1315791_1353510280_c245a5201ca87f6f18385c04d664b5c0_rle_crop_3768467742_0.png', 1353512850: '1745528832_1315791_1353510280_c245a5201ca87f6f18385c04d664b5c0_rle_crop_3768467739_0.png', 1353515129: '1745528952_1316895_1353510571_59608ac75def6b97cce69ebb87f43704_rle_crop_3768472346_0.png', 1353515130: '1745528952_1316895_1353510440_b300a880000d83e8a31860ededddabce_rle_crop_3768472390_0.png', 1353515132: '1745528952_1316895_1353510388_1de2caf1388d6a88c45cd773138fa1d2_rle_crop_3768472440_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7f194108f859e6de139e540acd9e855e_84744728.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/e29e74a42b1275c1685a907c6c227204_12756615.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/ceb02458a65b071210d916a55fd651df_10062112.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/b97e2606bc662602dd60fb9280e06735_98928655.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/b850dced0354e1a25256aa72d25c0659_1783601.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/96dafd35b56fc5d0c8e1605f062c82e5_39449172.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/1ce12377d373fa7b452fc8424d402cb2_16689485.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/541b99501d3bec17a6caabd89943d1d9_45479175.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/8a7b11c2f7f053c941e5629b1c16bb4e_81862708.png change filename to text .imagette224043811745529061/ imagette224043811745529061/1745528952_1316895_1353510440_b300a880000d83e8a31860ededddabce_rle_crop_3768472390_0.png.png imagette224043811745529061/1745528624_640193_1353508832_bf1f81e6d417fe21d7a5187fe309d86b_rle_crop_3768450557_0.png.png imagette224043811745529061/1745528952_1316895_1353510571_59608ac75def6b97cce69ebb87f43704_rle_crop_3768472346_0.png.png imagette224043811745529061/1745528832_1315791_1353510310_2362d7b480bb0e65c144c2405b527eb8_rle_crop_3768467726_0.png.png imagette224043811745529061/1745528652_1314219_1353508705_eff9f032a38ae4a0bbce6205a2afdaf9_rle_crop_3768450709_0.png.png imagette224043811745529061/1745528832_1315791_1353510280_c245a5201ca87f6f18385c04d664b5c0_rle_crop_3768467739_0.png.png imagette224043811745529061/1745528952_1316895_1353510388_1de2caf1388d6a88c45cd773138fa1d2_rle_crop_3768472440_0.png.png imagette224043811745529061/1745528832_1315791_1353510310_2362d7b480bb0e65c144c2405b527eb8_rle_crop_3768467727_0.png.png imagette224043811745529061/1745528832_1315791_1353510280_c245a5201ca87f6f18385c04d664b5c0_rle_crop_3768467738_0.png.png imagette224043811745529061/1745528832_1315791_1353510280_c245a5201ca87f6f18385c04d664b5c0_rle_crop_3768467742_0.png.png imagette224043821745529062/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/85a126da8c1dbb7382639da7011f8713_20769092.png imagette224043811745529061 22404382 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=22404382 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224043821745529062 22404372 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=22404372 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353509929: '1745528624_640193_1353508427_8f3882cdf5cd4bbbad4b17d2165c3b14_rle_crop_3768450571_0.png', 1353509935: '1745528624_640193_1353508405_c9bd5b9b42c49b642d0df1e30d0c84cf_rle_crop_3768450585_0.png', 1353515159: '1745528952_1316895_1353510571_59608ac75def6b97cce69ebb87f43704_rle_crop_3768472352_0.png', 1353515161: '1745528952_1316895_1353510519_4fb8c9f99fb4f5552835f4eeca81530e_rle_crop_3768472363_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/9dc7c900687aed6a9a28257a5d02d6fd_72949193.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/6695f1496e81a4f1e35a555a3407f0d9_69540138.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/b0c16fa173d34fc87fb23070ca41c777_82347725.png change filename to text .imagette224043721745529062/ imagette224043721745529062/1745528952_1316895_1353510519_4fb8c9f99fb4f5552835f4eeca81530e_rle_crop_3768472363_0.png.png imagette224043721745529062/1745528952_1316895_1353510571_59608ac75def6b97cce69ebb87f43704_rle_crop_3768472352_0.png.png imagette224043721745529062/1745528624_640193_1353508427_8f3882cdf5cd4bbbad4b17d2165c3b14_rle_crop_3768450571_0.png.png imagette224043721745529062/1745528624_640193_1353508405_c9bd5b9b42c49b642d0df1e30d0c84cf_rle_crop_3768450585_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/775c07b30a257cd7e4ce71f97698fba0_69630367.png imagette224043721745529062 22404373 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=22404373 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353509869: '1745528624_640193_1353508832_bf1f81e6d417fe21d7a5187fe309d86b_rle_crop_3768450551_0.png', 1353515095: '1745528952_1316895_1353510440_b300a880000d83e8a31860ededddabce_rle_crop_3768472391_0.png', 1353515391: '1745528982_650321_1353513357_0ab24503b0e9030748b786f39288748b_rle_crop_3768472460_0.png', 1353516055: '1745529012_1317659_1353512568_18466b954c939416495eaa4fbd18a635_rle_crop_3768472601_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/8cd94512f8064dc61036033b859e8fd4_35636337.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/f9335d053e8398dce27490515b0cb61e_58694952.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/10ea112f8c34d124f1929422abc7dbe2_64120586.png change filename to text .imagette224043731745529062/ imagette224043731745529062/1745528624_640193_1353508832_bf1f81e6d417fe21d7a5187fe309d86b_rle_crop_3768450551_0.png.png imagette224043731745529062/1745528982_650321_1353513357_0ab24503b0e9030748b786f39288748b_rle_crop_3768472460_0.png.png imagette224043731745529062/1745529012_1317659_1353512568_18466b954c939416495eaa4fbd18a635_rle_crop_3768472601_0.png.png imagette224043731745529062/1745528952_1316895_1353510440_b300a880000d83e8a31860ededddabce_rle_crop_3768472391_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/159a88bb3470b92d0f33a5d9aeb40c92_8410529.png imagette224043731745529062 22404375 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=22404375 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353509839: '1745528624_640193_1353508405_c9bd5b9b42c49b642d0df1e30d0c84cf_rle_crop_3768450590_0.png', 1353510141: '1745528652_1314219_1353508732_94708b56bd75425c03cbe195a1d09692_rle_crop_3768450693_0.png', 1353512807: '1745528832_1315791_1353510332_7189a34fad442c22620d1eade43183c3_rle_crop_3768467719_0.png', 1353512809: '1745528832_1315791_1353510310_2362d7b480bb0e65c144c2405b527eb8_rle_crop_3768467731_0.png', 1353512810: '1745528832_1315791_1353510280_c245a5201ca87f6f18385c04d664b5c0_rle_crop_3768467752_0.png', 1353512812: '1745528832_1315791_1353510280_c245a5201ca87f6f18385c04d664b5c0_rle_crop_3768467747_0.png', 1353512813: '1745528832_1315791_1353510268_3d2ab971d9bcc8601e05872d26e1194c_rle_crop_3768467764_0.png', 1353515056: '1745528952_1316895_1353510470_76cd4cd1b8cf6a12561e7c951324f19d_rle_crop_3768472378_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/01b824d03d195e18c432f19a7ed314de_97313018.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/a024a540a0a609904421227c20964a5b_43737398.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/145383687dec47530616786e39e98b55_52923011.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7f89220daff2b194f6870e4d9d31a180_25816047.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/4ba77eaeb12237d6b49f259401698401_40733079.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/2b6c43d7f50fd6ab664c5f2d3ef95546_63918738.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/a1eed7a5fa953d514425b708371241f7_93880327.png change filename to text .imagette224043751745529062/ imagette224043751745529062/1745528832_1315791_1353510268_3d2ab971d9bcc8601e05872d26e1194c_rle_crop_3768467764_0.png.png imagette224043751745529062/1745528652_1314219_1353508732_94708b56bd75425c03cbe195a1d09692_rle_crop_3768450693_0.png.png imagette224043751745529062/1745528624_640193_1353508405_c9bd5b9b42c49b642d0df1e30d0c84cf_rle_crop_3768450590_0.png.png imagette224043751745529062/1745528832_1315791_1353510332_7189a34fad442c22620d1eade43183c3_rle_crop_3768467719_0.png.png imagette224043751745529062/1745528832_1315791_1353510280_c245a5201ca87f6f18385c04d664b5c0_rle_crop_3768467752_0.png.png imagette224043751745529062/1745528832_1315791_1353510310_2362d7b480bb0e65c144c2405b527eb8_rle_crop_3768467731_0.png.png imagette224043751745529062/1745528952_1316895_1353510470_76cd4cd1b8cf6a12561e7c951324f19d_rle_crop_3768472378_0.png.png imagette224043751745529062/1745528832_1315791_1353510280_c245a5201ca87f6f18385c04d664b5c0_rle_crop_3768467747_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/30b295a5366b33c803fabe7ed06fbf02_63706283.png imagette224043751745529062 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22404342 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22404383,22404384,22404385,22404386,22404387,22404388,22404389,22404390,22404391,22404392,22404393,22404394?tags=papier,Carton_brun,Carton_gris,environnement,Teint_Dans_La_Masse,plastique,mal_croppe,kraft,flou,autre_refus,cartonnette,metal your option no_mail is active, we will not send the real mail to your client args[1353514566] : ('0.026511209850571628',) no score found for photo 1353514566 We are sending mail with results at report@fotonower.com args[1353514489] : ('0.026511209850571628',) no score found for photo 1353514489 We are sending mail with results at report@fotonower.com args[1353514384] : ('0.026511209850571628',) no score found for photo 1353514384 We are sending mail with results at report@fotonower.com args[1353514286] : ('0.026511209850571628',) no score found for photo 1353514286 We are sending mail with results at report@fotonower.com args[1353514234] : ('0.026511209850571628',) no score found for photo 1353514234 We are sending mail with results at report@fotonower.com args[1353513537] : ('0.026511209850571628',) no score found for photo 1353513537 We are sending mail with results at report@fotonower.com args[1353513483] : ('0.026511209850571628',) no score found for photo 1353513483 We are sending mail with results at report@fotonower.com args[1353513432] : ('0.026511209850571628',) no score found for photo 1353513432 We are sending mail with results at report@fotonower.com args[1353513357] : ('0.026511209850571628',) no score found for photo 1353513357 We are sending mail with results at report@fotonower.com args[1353512668] : ('0.026511209850571628',) no score found for photo 1353512668 We are sending mail with results at report@fotonower.com args[1353512568] : ('0.026511209850571628',) no score found for photo 1353512568 We are sending mail with results at report@fotonower.com args[1353512494] : ('0.026511209850571628',) no score found for photo 1353512494 We are sending mail with results at report@fotonower.com args[1353512211] : ('0.026511209850571628',) no score found for photo 1353512211 We are sending mail with results at report@fotonower.com args[1353510622] : ('0.026511209850571628',) no score found for photo 1353510622 We are sending mail with results at report@fotonower.com args[1353510571] : ('0.026511209850571628',) no score found for photo 1353510571 We are sending mail with results at report@fotonower.com args[1353510519] : ('0.026511209850571628',) no score found for photo 1353510519 We are sending mail with results at report@fotonower.com args[1353510470] : ('0.026511209850571628',) no score found for photo 1353510470 We are sending mail with results at report@fotonower.com args[1353510440] : ('0.026511209850571628',) no score found for photo 1353510440 We are sending mail with results at report@fotonower.com args[1353510388] : ('0.026511209850571628',) no score found for photo 1353510388 We are sending mail with results at report@fotonower.com refus_total : 0.026511209850571628 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=22404342 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_P22404342_24-04-2025_23_11_01.pdf results_Auto_P22404342_24-04-2025_23_11_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22404342_24-04-2025_23_11_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22404342','results_Auto_P22404342_24-04-2025_23_11_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22404342_24-04-2025_23_11_01.pdf','pdf','','0.24','0.026511209850571628') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22404342]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353514566, 1353514489, 1353514384, 1353514286, 1353514234, 1353513537, 1353513483, 1353513432, 1353513357, 1353512668, 1353512568, 1353512494, 1353512211, 1353510622, 1353510571, 1353510519, 1353510470, 1353510440, 1353510388] map_info['map_portfolio_photo'] : {22404342: [1353514566, 1353514489, 1353514384, 1353514286, 1353514234, 1353513537, 1353513483, 1353513432, 1353513357, 1353512668, 1353512568, 1353512494, 1353512211, 1353510622, 1353510571, 1353510519, 1353510470, 1353510440, 1353510388, 1353510352, 1353510332, 1353510310, 1353510280, 1353510268, 1353510030, 1353509931, 1353509834, 1353509738, 1353508832, 1353508782, 1353508732, 1353508705, 1353508427, 1353508405]} final : False mtd_id 4302 list_pids : [1353514566, 1353514489, 1353514384, 1353514286, 1353514234, 1353513537, 1353513483, 1353513432, 1353513357, 1353512668, 1353512568, 1353512494, 1353512211, 1353510622, 1353510571, 1353510519, 1353510470, 1353510440, 1353510388] 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, '2759574') ('4302', '22404342', '1353514566', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353514489', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353514384', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353514286', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353514234', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353513537', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353513483', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353513432', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353513357', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353512668', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353512568', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353512494', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353512211', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510622', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510571', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510519', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510470', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510440', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510388', None, None, None, None, None, '2759574') 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', '22404342', '1353514566', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353514489', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353514384', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353514286', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353514234', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353513537', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353513483', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353513432', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353513357', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353512668', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353512568', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353512494', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353512211', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353510622', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353510571', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353510519', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353510470', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353510440', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353510388', None, None, None, None, None, '2759574')] time used for this insertion : 0.017555713653564453 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.396018743515015 time spend to save output : 0.017902135848999023 total time spend for step 4 : 5.413920879364014 step5:split_time_score Thu Apr 24 23:11: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 : ['22404342'] 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 : [('22404342',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22404342) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353514384: {'path': 'temp/1745529059_2870504_1353514384_04fdc7aca21ab5d361311c11315d939c.jpg', 'extension': 'jpg'}, 1353514489: {'path': 'temp/1745529059_2870504_1353514489_f98b0847e01cb912649571d0f4f07262.jpg', 'extension': 'jpg'}, 1353514566: {'path': 'temp/1745529059_2870504_1353514566_04fb79f31a94ba7520769b983698a529.jpg', 'extension': 'jpg'}, 1353512568: {'path': 'temp/1745529059_2870504_1353512568_18466b954c939416495eaa4fbd18a635.jpg', 'extension': 'jpg'}, 1353512668: {'path': 'temp/1745529059_2870504_1353512668_0f3e1196cbb84e9291569bb79d12966a.jpg', 'extension': 'jpg'}, 1353513357: {'path': 'temp/1745529059_2870504_1353513357_0ab24503b0e9030748b786f39288748b.jpg', 'extension': 'jpg'}, 1353513432: {'path': 'temp/1745529059_2870504_1353513432_887749fbdcb74c517200e26b28da8901.jpg', 'extension': 'jpg'}, 1353513483: {'path': 'temp/1745529059_2870504_1353513483_d99496d57763f052fefe6a9715ff5c9c.jpg', 'extension': 'jpg'}, 1353513537: {'path': 'temp/1745529059_2870504_1353513537_3264d24403d23c9197abcb53cefdc8df.jpg', 'extension': 'jpg'}, 1353514234: {'path': 'temp/1745529059_2870504_1353514234_0bacab0e1122d8285a30e1f0d8c60059.jpg', 'extension': 'jpg'}, 1353514286: {'path': 'temp/1745529059_2870504_1353514286_c1fba226d46ded95310e5ab14a4e1a33.jpg', 'extension': 'jpg'}, 1353510571: {'path': 'temp/1745529059_2870504_1353510571_59608ac75def6b97cce69ebb87f43704.jpg', 'extension': 'jpg'}, 1353510622: {'path': 'temp/1745529059_2870504_1353510622_a3d64d81f5f4b217fac70678827d6632.jpg', 'extension': 'jpg'}, 1353512211: {'path': 'temp/1745529059_2870504_1353512211_f91defcf6ca99fb82da871da7726919e.jpg', 'extension': 'jpg'}, 1353512494: {'path': 'temp/1745529059_2870504_1353512494_9825d8dc38fbfbf8d6670b1450d6c1be.jpg', 'extension': 'jpg'}, 1353510388: {'path': 'temp/1745529059_2870504_1353510388_1de2caf1388d6a88c45cd773138fa1d2.jpg', 'extension': 'jpg'}, 1353510440: {'path': 'temp/1745529059_2870504_1353510440_b300a880000d83e8a31860ededddabce.jpg', 'extension': 'jpg'}, 1353510470: {'path': 'temp/1745529059_2870504_1353510470_76cd4cd1b8cf6a12561e7c951324f19d.jpg', 'extension': 'jpg'}, 1353510519: {'path': 'temp/1745529059_2870504_1353510519_4fb8c9f99fb4f5552835f4eeca81530e.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 = 22404342; (('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 = 22404342 group by h (('23', 34),) 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=22404342 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 (22404342) 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 (22404342) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24042025 22404342 Nombre de photos uploadées : 34 / 23040 (0%) 24042025 22404342 Nombre de photos taguées (types de déchets): 0 / 34 (0%) 24042025 22404342 Nombre de photos taguées (volume) : 0 / 34 (0%) [{'photo_id': 1353508427, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/8f3882cdf5cd4bbbad4b17d2165c3b14.jpg', 'username': None, 'uploaded_at': 1745528467, 'text': 'image_24042025_23_00_14_010136m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1353508405, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/c9bd5b9b42c49b642d0df1e30d0c84cf.jpg', 'username': None, 'uploaded_at': 1745528467, 'text': 'image_24042025_23_00_24_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353508832, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/bf1f81e6d417fe21d7a5187fe309d86b.jpg', 'username': None, 'uploaded_at': 1745528527, 'text': 'image_24042025_23_00_53_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1353508782, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/2763f102b508244ec99423c40e78f155.jpg', 'username': None, 'uploaded_at': 1745528527, 'text': 'image_24042025_23_01_04_10162.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 8.344650268554688e-06 ?????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018641948699951172 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22404342, '2025-04-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1743777,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02208542823791504 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= 1743777 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1743777, 'dashboard_run_id': 1754942, 'mtr_portfolio_id': 22401543, 'dashboard_result_id': 10086002, '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_P22401543_24-04-2025_22_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22401546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22401547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22401548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22401549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22401550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22401551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22401552, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22401553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22401554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22401555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22401556, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22401557, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1754942, 'mtr_portfolio_id': 22402470, 'dashboard_result_id': 10086003, '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_P22402470_24-04-2025_22_51_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22402516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22402517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22402518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22402519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22402520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22402521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22402522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22402523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22402524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22402525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22402526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22402527, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1754942, 'mtr_portfolio_id': 22403475, 'dashboard_result_id': 10086004, '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_P22403475_24-04-2025_23_08_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22403505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22403506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22403507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22403508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22403509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22403510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22403511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22403512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22403513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22403514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22403515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22403516, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1754942, 'mtr_portfolio_id': 22404342, 'dashboard_result_id': 10086005, '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_P22404342_24-04-2025_23_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22404371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22404372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22404373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22404374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22404375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22404376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22404377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22404378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22404379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22404380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22404381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22404382, '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 = 22401543 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': 2759397, 'mtr_portfolio_id': 22401543, 'created_at': datetime.datetime(2025, 4, 24, 22, 32, 58), 'result': '0.04146142728776247', 'result_long': None, 'result_double': None}] Qualite : 0.04146142728776247 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22401543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22401543_24-04-2025_22_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22401543 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_P22401543_24-04-2025_22_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22401546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22401547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22401548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22401549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22401550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22401551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22401552, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22401553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22401554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22401555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22401556, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22401557, 'pht': 3726}}" where mtr_portfolio_id = 22401543 and dashboard_run_id = 1754942 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`=22401543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10086002, 0.04146142728776247, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22401543_24-04-2025_22_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22401546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22401547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22401548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22401549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22401550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22401551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22401552, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22401553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22401554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22401555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22401556, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22401557, '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 = 22402470 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': 2759452, 'mtr_portfolio_id': 22402470, 'created_at': datetime.datetime(2025, 4, 24, 22, 50, 59), 'result': '0.049624119949482605', 'result_long': None, 'result_double': None}] Qualite : 0.049624119949482605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22402470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22402470_24-04-2025_22_51_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22402470 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_P22402470_24-04-2025_22_51_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22402516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22402517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22402518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22402519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22402520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22402521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22402522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22402523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22402524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22402525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22402526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22402527, 'pht': 3726}}" where mtr_portfolio_id = 22402470 and dashboard_run_id = 1754942 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`=22402470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10086003, 0.049624119949482605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22402470_24-04-2025_22_51_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22402516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22402517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22402518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22402519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22402520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22402521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22402522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22402523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22402524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22402525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22402526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22402527, '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 = 22403475 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': 2759507, 'mtr_portfolio_id': 22403475, 'created_at': datetime.datetime(2025, 4, 24, 23, 7, 59), 'result': '0.036305943530978185', 'result_long': None, 'result_double': None}] Qualite : 0.036305943530978185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22403475 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22403475_24-04-2025_23_08_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22403475 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_P22403475_24-04-2025_23_08_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22403505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22403506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22403507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22403508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22403509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22403510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22403511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22403512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22403513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22403514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22403515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22403516, 'pht': 3726}}" where mtr_portfolio_id = 22403475 and dashboard_run_id = 1754942 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`=22403475 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10086004, 0.036305943530978185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22403475_24-04-2025_23_08_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22403505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22403506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22403507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22403508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22403509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22403510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22403511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22403512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22403513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22403514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22403515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22403516, '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 = 22404342 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': 2759574, 'mtr_portfolio_id': 22404342, 'created_at': datetime.datetime(2025, 4, 24, 23, 10, 59), 'result': '0.026511209850571628', 'result_long': None, 'result_double': None}] Qualite : 0.026511209850571628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22404342 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22404342_24-04-2025_23_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22404342 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_P22404342_24-04-2025_23_11_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22404371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22404372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22404373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22404374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22404375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22404376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22404377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22404378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22404379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22404380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22404381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22404382, 'pht': 3726}}" where mtr_portfolio_id = 22404342 and dashboard_run_id = 1754942 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`=22404342 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10086005, 0.026511209850571628, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22404342_24-04-2025_23_11_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22404371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22404372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22404373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22404374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22404375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22404376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22404377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22404378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22404379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22404380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22404381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22404382, '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 (22401543,22402470,22403475,22404342) result : ((1353489620,), (1353489732,), (1353489846,), (1353489954,), (1353490787,), (1353490876,), (1353490958,), (1353491233,), (1353491250,), (1353491257,), (1353491290,), (1353491295,), (1353491299,), (1353491305,), (1353491340,), (1353492171,), (1353492201,), (1353492293,), (1353492365,), (1353492423,), (1353492652,), (1353492655,), (1353492682,), (1353492713,), (1353493101,), (1353493130,), (1353493159,), (1353493200,), (1353493231,), (1353493258,), (1353493530,), (1353493562,), (1353493569,), (1353493572,), (1353493575,), (1353493733,), (1353493739,), (1353493744,), (1353493777,), (1353493789,), (1353493795,), (1353493867,), (1353493872,), (1353493875,), (1353494217,), (1353494247,), (1353494277,), (1353494304,), (1353494336,), (1353494364,), (1353494435,), (1353494437,), (1353494440,), (1353494449,), (1353494478,), (1353494507,), (1353494803,), (1353494830,), (1353494853,), (1353494968,), (1353494972,), (1353494977,), (1353494980,), (1353494985,), (1353495012,), (1353495016,), (1353495024,), (1353495032,), (1353495039,), (1353495314,), (1353495229,), (1353495262,), (1353495285,), (1353495640,), (1353495669,), (1353495694,), (1353495719,), (1353496243,), (1353496324,), (1353496402,), (1353496500,), (1353496589,), (1353497415,), (1353497443,), (1353497474,), (1353498161,), (1353498226,), (1353498292,), (1353498362,), (1353498393,), (1353498663,), (1353498688,), (1353498703,), (1353498736,), (1353499181,), (1353499237,), (1353499330,), (1353499417,), (1353499447,), (1353499794,), (1353499832,), (1353499881,), (1353499934,), (1353499991,), (1353500011,), (1353500163,), (1353500174,), (1353500177,), (1353500181,), (1353500283,), (1353500288,), (1353500290,), (1353500293,), (1353500319,), (1353500636,), (1353500663,), (1353500701,), (1353500714,), (1353500737,), (1353500770,), (1353501012,), (1353501047,), (1353501054,), (1353501489,), (1353501528,), (1353501529,), (1353501531,), (1353501534,), (1353501674,), (1353501703,), (1353501741,), (1353501769,), (1353501798,), (1353502115,), (1353502147,), (1353502176,), (1353502206,), (1353502376,), (1353502373,), (1353502416,), (1353502420,), (1353502425,), (1353502429,), (1353502434,), (1353502475,), (1353502478,), (1353502481,), (1353502488,), (1353502497,), (1353502599,), (1353502637,), (1353502792,), (1353503043,), (1353503454,), (1353503479,), (1353503520,), (1353503827,), (1353503941,), (1353504127,), (1353504307,), (1353504495,), (1353504745,), (1353504960,), (1353504972,), (1353504978,), (1353504983,), (1353505220,), (1353506394,), (1353506443,), (1353506494,), (1353507244,), (1353507287,), (1353507314,), (1353507379,), (1353507985,), (1353508039,), (1353508224,), (1353508256,), (1353508284,), (1353508458,), (1353508405,), (1353508427,), (1353508705,), (1353508732,), (1353508782,), (1353508832,), (1353509738,), (1353509834,), (1353509931,), (1353510030,), (1353510268,), (1353510280,), (1353510310,), (1353510332,), (1353510352,), (1353510388,), (1353510440,), (1353510470,), (1353510519,), (1353510571,), (1353510622,), (1353512211,), (1353512494,), (1353512568,), (1353512668,), (1353513357,), (1353513432,), (1353513483,), (1353513537,), (1353514234,), (1353514286,), (1353514384,), (1353514489,), (1353514566,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24042025': {'nb_upload': 34, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22404342]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353514566, 1353514489, 1353514384, 1353514286, 1353514234, 1353513537, 1353513483, 1353513432, 1353513357, 1353512668, 1353512568, 1353512494, 1353512211, 1353510622, 1353510571, 1353510519, 1353510470, 1353510440, 1353510388] map_info['map_portfolio_photo'] : {22404342: [1353514566, 1353514489, 1353514384, 1353514286, 1353514234, 1353513537, 1353513483, 1353513432, 1353513357, 1353512668, 1353512568, 1353512494, 1353512211, 1353510622, 1353510571, 1353510519, 1353510470, 1353510440, 1353510388, 1353510352, 1353510332, 1353510310, 1353510280, 1353510268, 1353510030, 1353509931, 1353509834, 1353509738, 1353508832, 1353508782, 1353508732, 1353508705, 1353508427, 1353508405]} final : True mtd_id 4302 list_pids : [1353514566, 1353514489, 1353514384, 1353514286, 1353514234, 1353513537, 1353513483, 1353513432, 1353513357, 1353512668, 1353512568, 1353512494, 1353512211, 1353510622, 1353510571, 1353510519, 1353510470, 1353510440, 1353510388] Looping around the photos to save general results len do output : 1 /22404342Didn'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, '2759574') ('4302', '22404342', '1353514566', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353514489', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353514384', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353514286', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353514234', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353513537', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353513483', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353513432', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353513357', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353512668', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353512568', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353512494', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353512211', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510622', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510571', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510519', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510470', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510440', None, None, None, None, None, '2759574') ('4302', None, None, None, None, None, None, None, '2759574') ('4302', '22404342', '1353510388', None, None, None, None, None, '2759574') 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, '22404342', 'None', None, None, None, None, '2759574'), ('4302', '22404342', '1353514566', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353514489', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353514384', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353514286', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353514234', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353513537', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353513483', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353513432', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353513357', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353512668', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353512568', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353512494', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353512211', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353510622', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353510571', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353510519', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353510470', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353510440', None, None, None, None, None, '2759574'), ('4302', '22404342', '1353510388', None, None, None, None, None, '2759574')] time used for this insertion : 0.017136812210083008 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3408329486846924 time spend to save output : 0.017447948455810547 total time spend for step 5 : 0.35828089714050293 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 (2759574) 2.39user 2.38system 0:10.35elapsed 46%CPU (0avgtext+0avgdata 160972maxresident)k 2216inputs+14424outputs (33major+75063minor)pagefaults 0swaps