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 : 4108403 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 (2655084) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2655084) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21231378 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2655084'] with mtr_portfolio_ids : ['21231378'] and first list_photo_ids : [] new path : /proc/4108403/ Name: python3 Umask: 0002 State: R (running) Tgid: 4108403 Ngid: 0 Pid: 4108403 PPid: 4108402 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4108403 NSpid: 4108403 NSpgid: 4102955 NSsid: 4102955 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98340 kB VmRSS: 98340 kB RssAnon: 59792 kB RssFile: 38548 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 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: 51 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4108403', 'Ngid': '0', 'Pid': '4108403', 'PPid': '4108402', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4108403', 'NSpid': '4108403', 'NSpgid': '4102955', 'NSsid': '4102955', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98340 kB', 'VmRSS': '98340 kB', 'RssAnon': '59792 kB', 'RssFile': '38548 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '51', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '4108403', '1106844', '0', '1106844', '865592', '98340', b'', 'marlene', '2655084') 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 (21231378) 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 (2655084 ) ) 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 (21231378) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1342603839, 'portfolio_id': 21231378}, {'photo_id': 1342603793, 'portfolio_id': 21231378}, {'photo_id': 1342603734, 'portfolio_id': 21231378}, {'photo_id': 1342603651, 'portfolio_id': 21231378}, {'photo_id': 1342603580, 'portfolio_id': 21231378}, {'photo_id': 1342603334, 'portfolio_id': 21231378}, {'photo_id': 1342603306, 'portfolio_id': 21231378}, {'photo_id': 1342603264, 'portfolio_id': 21231378}, {'photo_id': 1342603202, 'portfolio_id': 21231378}, {'photo_id': 1342603169, 'portfolio_id': 21231378}, {'photo_id': 1342603128, 'portfolio_id': 21231378}, {'photo_id': 1342602833, 'portfolio_id': 21231378}, {'photo_id': 1342602801, 'portfolio_id': 21231378}, {'photo_id': 1342602740, 'portfolio_id': 21231378}, {'photo_id': 1342602556, 'portfolio_id': 21231378}, {'photo_id': 1342602514, 'portfolio_id': 21231378}, {'photo_id': 1342602481, 'portfolio_id': 21231378}, {'photo_id': 1342602448, 'portfolio_id': 21231378}, {'photo_id': 1342602349, 'portfolio_id': 21231378}, {'photo_id': 1342602086, 'portfolio_id': 21231378}, {'photo_id': 1342602063, 'portfolio_id': 21231378}, {'photo_id': 1342602053, 'portfolio_id': 21231378}, {'photo_id': 1342602031, 'portfolio_id': 21231378}, {'photo_id': 1342602016, 'portfolio_id': 21231378}, {'photo_id': 1342601633, 'portfolio_id': 21231378}, {'photo_id': 1342601554, 'portfolio_id': 21231378}, {'photo_id': 1342601524, 'portfolio_id': 21231378}, {'photo_id': 1342601497, 'portfolio_id': 21231378}, {'photo_id': 1342601445, 'portfolio_id': 21231378}, {'photo_id': 1342600815, 'portfolio_id': 21231378}, {'photo_id': 1342600737, 'portfolio_id': 21231378}, {'photo_id': 1342600644, 'portfolio_id': 21231378}, {'photo_id': 1342600537, 'portfolio_id': 21231378}, {'photo_id': 1342599942, 'portfolio_id': 21231378}, {'photo_id': 1342599873, 'portfolio_id': 21231378}, {'photo_id': 1342599833, 'portfolio_id': 21231378}] map_portfolio_id_photo_id: {21231378: [1342603839, 1342603793, 1342603734, 1342603651, 1342603580, 1342603334, 1342603306, 1342603264, 1342603202, 1342603169, 1342603128, 1342602833, 1342602801, 1342602740, 1342602556, 1342602514, 1342602481, 1342602448, 1342602349, 1342602086, 1342602063, 1342602053, 1342602031, 1342602016, 1342601633, 1342601554, 1342601524, 1342601497, 1342601445, 1342600815, 1342600737, 1342600644, 1342600537, 1342599942, 1342599873, 1342599833]} ##### 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.05419182777404785 #### 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 Mon Mar 10 18:12: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21231378) 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 : 21231378 get user id for portfolio 21231378 get sub ptf for main ptf 21231378, type 3726 and hashtags ['papier', 'metal', 'flou', 'environnement', 'Teint_Dans_La_Masse', 'cartonnette', 'autre_refus', 'mal_croppe', 'kraft', 'plastique', 'Carton_brun', 'Carton_gris'] 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`=21231378 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','metal','flou','environnement','Teint_Dans_La_Masse','cartonnette','autre_refus','mal_croppe','kraft','plastique','Carton_brun','Carton_gris')) 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`=21231378 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','metal','flou','environnement','Teint_Dans_La_Masse','cartonnette','autre_refus','mal_croppe','kraft','plastique','Carton_brun','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21231378, 'sub_port_id': 21231437, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821623, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 8, 59)}, 'kraft': {'main_port_id': 21231378, 'sub_port_id': 21231438, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821624, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 8, 59)}, 'plastique': {'main_port_id': 21231378, 'sub_port_id': 21231439, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821625, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 8, 59)}, 'mal_croppe': {'main_port_id': 21231378, 'sub_port_id': 21231440, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821626, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 8, 59)}, 'flou': {'main_port_id': 21231378, 'sub_port_id': 21231441, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821627, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 8, 59)}, 'environnement': {'main_port_id': 21231378, 'sub_port_id': 21231442, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821628, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 8, 59)}, 'Carton_gris': {'main_port_id': 21231378, 'sub_port_id': 21231443, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821629, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 8, 59)}, 'cartonnette': {'main_port_id': 21231378, 'sub_port_id': 21231444, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821630, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 8, 59)}, 'metal': {'main_port_id': 21231378, 'sub_port_id': 21231445, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821631, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 8, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21231378, 'sub_port_id': 21231446, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821632, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 8, 59)}, 'Carton_brun': {'main_port_id': 21231378, 'sub_port_id': 21231447, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821633, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 8, 59)}, 'papier': {'main_port_id': 21231378, 'sub_port_id': 21231448, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821634, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 8, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21231437 , 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=21231378 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 (21231437) result : ((1342602583,), (1342602586,), (1342602589,), (1342602592,), (1342602596,), (1342602818,), (1342602819,), (1342602820,), (1342603404,), (1342603405,), (1342603406,), (1342603407,), (1342603408,), (1342603502,), (1342603504,), (1342603505,), (1342603506,), (1342603508,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21231378) result : ((1342599833,), (1342599873,), (1342599942,), (1342600537,), (1342600644,), (1342600737,), (1342600815,), (1342601445,), (1342601497,), (1342601524,), (1342601554,), (1342601633,), (1342602016,), (1342602031,), (1342602053,), (1342602063,), (1342602086,), (1342602349,), (1342602448,), (1342602481,), (1342602514,), (1342602556,), (1342602740,), (1342602801,), (1342602833,), (1342603128,), (1342603169,), (1342603202,), (1342603264,), (1342603306,), (1342603334,), (1342603580,), (1342603651,), (1342603734,), (1342603793,), (1342603839,)) 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 21231438 , 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=21231378 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 (21231438) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21231378) result : ((1342599833,), (1342599873,), (1342599942,), (1342600537,), (1342600644,), (1342600737,), (1342600815,), (1342601445,), (1342601497,), (1342601524,), (1342601554,), (1342601633,), (1342602016,), (1342602031,), (1342602053,), (1342602063,), (1342602086,), (1342602349,), (1342602448,), (1342602481,), (1342602514,), (1342602556,), (1342602740,), (1342602801,), (1342602833,), (1342603128,), (1342603169,), (1342603202,), (1342603264,), (1342603306,), (1342603334,), (1342603580,), (1342603651,), (1342603734,), (1342603793,), (1342603839,)) 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 21231439 , 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=21231378 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 (21231439) result : ((1342602612,), (1342602614,), (1342603538,), (1342603539,), (1342603540,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21231378) result : ((1342599833,), (1342599873,), (1342599942,), (1342600537,), (1342600644,), (1342600737,), (1342600815,), (1342601445,), (1342601497,), (1342601524,), (1342601554,), (1342601633,), (1342602016,), (1342602031,), (1342602053,), (1342602063,), (1342602086,), (1342602349,), (1342602448,), (1342602481,), (1342602514,), (1342602556,), (1342602740,), (1342602801,), (1342602833,), (1342603128,), (1342603169,), (1342603202,), (1342603264,), (1342603306,), (1342603334,), (1342603580,), (1342603651,), (1342603734,), (1342603793,), (1342603839,)) 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 21231440 , 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=21231378 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 (21231440) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21231378) result : ((1342599833,), (1342599873,), (1342599942,), (1342600537,), (1342600644,), (1342600737,), (1342600815,), (1342601445,), (1342601497,), (1342601524,), (1342601554,), (1342601633,), (1342602016,), (1342602031,), (1342602053,), (1342602063,), (1342602086,), (1342602349,), (1342602448,), (1342602481,), (1342602514,), (1342602556,), (1342602740,), (1342602801,), (1342602833,), (1342603128,), (1342603169,), (1342603202,), (1342603264,), (1342603306,), (1342603334,), (1342603580,), (1342603651,), (1342603734,), (1342603793,), (1342603839,)) 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 21231441 , 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=21231378 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 (21231441) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21231378) result : ((1342599833,), (1342599873,), (1342599942,), (1342600537,), (1342600644,), (1342600737,), (1342600815,), (1342601445,), (1342601497,), (1342601524,), (1342601554,), (1342601633,), (1342602016,), (1342602031,), (1342602053,), (1342602063,), (1342602086,), (1342602349,), (1342602448,), (1342602481,), (1342602514,), (1342602556,), (1342602740,), (1342602801,), (1342602833,), (1342603128,), (1342603169,), (1342603202,), (1342603264,), (1342603306,), (1342603334,), (1342603580,), (1342603651,), (1342603734,), (1342603793,), (1342603839,)) 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 21231442 , 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=21231378 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 (21231442) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21231378) result : ((1342599833,), (1342599873,), (1342599942,), (1342600537,), (1342600644,), (1342600737,), (1342600815,), (1342601445,), (1342601497,), (1342601524,), (1342601554,), (1342601633,), (1342602016,), (1342602031,), (1342602053,), (1342602063,), (1342602086,), (1342602349,), (1342602448,), (1342602481,), (1342602514,), (1342602556,), (1342602740,), (1342602801,), (1342602833,), (1342603128,), (1342603169,), (1342603202,), (1342603264,), (1342603306,), (1342603334,), (1342603580,), (1342603651,), (1342603734,), (1342603793,), (1342603839,)) 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 21231443 , 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=21231378 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 (21231443) result : ((1342602835,), (1342603413,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21231378) result : ((1342599833,), (1342599873,), (1342599942,), (1342600537,), (1342600644,), (1342600737,), (1342600815,), (1342601445,), (1342601497,), (1342601524,), (1342601554,), (1342601633,), (1342602016,), (1342602031,), (1342602053,), (1342602063,), (1342602086,), (1342602349,), (1342602448,), (1342602481,), (1342602514,), (1342602556,), (1342602740,), (1342602801,), (1342602833,), (1342603128,), (1342603169,), (1342603202,), (1342603264,), (1342603306,), (1342603334,), (1342603580,), (1342603651,), (1342603734,), (1342603793,), (1342603839,)) 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 21231444 , 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=21231378 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 (21231444) result : ((1342602603,), (1342602839,), (1342602840,), (1342603424,), (1342603425,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21231378) result : ((1342599833,), (1342599873,), (1342599942,), (1342600537,), (1342600644,), (1342600737,), (1342600815,), (1342601445,), (1342601497,), (1342601524,), (1342601554,), (1342601633,), (1342602016,), (1342602031,), (1342602053,), (1342602063,), (1342602086,), (1342602349,), (1342602448,), (1342602481,), (1342602514,), (1342602556,), (1342602740,), (1342602801,), (1342602833,), (1342603128,), (1342603169,), (1342603202,), (1342603264,), (1342603306,), (1342603334,), (1342603580,), (1342603651,), (1342603734,), (1342603793,), (1342603839,)) 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 21231445 , 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=21231378 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 (21231445) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21231378) result : ((1342599833,), (1342599873,), (1342599942,), (1342600537,), (1342600644,), (1342600737,), (1342600815,), (1342601445,), (1342601497,), (1342601524,), (1342601554,), (1342601633,), (1342602016,), (1342602031,), (1342602053,), (1342602063,), (1342602086,), (1342602349,), (1342602448,), (1342602481,), (1342602514,), (1342602556,), (1342602740,), (1342602801,), (1342602833,), (1342603128,), (1342603169,), (1342603202,), (1342603264,), (1342603306,), (1342603334,), (1342603580,), (1342603651,), (1342603734,), (1342603793,), (1342603839,)) 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 21231446 , 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=21231378 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 (21231446) result : ((1342602568,), (1342602792,), (1342602793,), (1342603323,), (1342603324,), (1342603325,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21231378) result : ((1342599833,), (1342599873,), (1342599942,), (1342600537,), (1342600644,), (1342600737,), (1342600815,), (1342601445,), (1342601497,), (1342601524,), (1342601554,), (1342601633,), (1342602016,), (1342602031,), (1342602053,), (1342602063,), (1342602086,), (1342602349,), (1342602448,), (1342602481,), (1342602514,), (1342602556,), (1342602740,), (1342602801,), (1342602833,), (1342603128,), (1342603169,), (1342603202,), (1342603264,), (1342603306,), (1342603334,), (1342603580,), (1342603651,), (1342603734,), (1342603793,), (1342603839,)) 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 21231447 , 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=21231378 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 (21231447) result : ((1342603521,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21231378) result : ((1342599833,), (1342599873,), (1342599942,), (1342600537,), (1342600644,), (1342600737,), (1342600815,), (1342601445,), (1342601497,), (1342601524,), (1342601554,), (1342601633,), (1342602016,), (1342602031,), (1342602053,), (1342602063,), (1342602086,), (1342602349,), (1342602448,), (1342602481,), (1342602514,), (1342602556,), (1342602740,), (1342602801,), (1342602833,), (1342603128,), (1342603169,), (1342603202,), (1342603264,), (1342603306,), (1342603334,), (1342603580,), (1342603651,), (1342603734,), (1342603793,), (1342603839,)) 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 21231448 , 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=21231378 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 (21231448) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21231378) result : ((1342599833,), (1342599873,), (1342599942,), (1342600537,), (1342600644,), (1342600737,), (1342600815,), (1342601445,), (1342601497,), (1342601524,), (1342601554,), (1342601633,), (1342602016,), (1342602031,), (1342602053,), (1342602063,), (1342602086,), (1342602349,), (1342602448,), (1342602481,), (1342602514,), (1342602556,), (1342602740,), (1342602801,), (1342602833,), (1342603128,), (1342603169,), (1342603202,), (1342603264,), (1342603306,), (1342603334,), (1342603580,), (1342603651,), (1342603734,), (1342603793,), (1342603839,)) 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`=21231378 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','metal','flou','environnement','Teint_Dans_La_Masse','cartonnette','autre_refus','mal_croppe','kraft','plastique','Carton_brun','Carton_gris')) 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`=21231378 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','metal','flou','environnement','Teint_Dans_La_Masse','cartonnette','autre_refus','mal_croppe','kraft','plastique','Carton_brun','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21231378, 'sub_port_id': 21231449, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821635, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 9, 3)}, 'kraft': {'main_port_id': 21231378, 'sub_port_id': 21231450, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821636, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 9, 3)}, 'plastique': {'main_port_id': 21231378, 'sub_port_id': 21231451, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821637, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 9, 3)}, 'mal_croppe': {'main_port_id': 21231378, 'sub_port_id': 21231452, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821638, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 9, 3)}, 'flou': {'main_port_id': 21231378, 'sub_port_id': 21231453, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821639, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 9, 3)}, 'environnement': {'main_port_id': 21231378, 'sub_port_id': 21231454, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821640, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 9, 3)}, 'Carton_gris': {'main_port_id': 21231378, 'sub_port_id': 21231455, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821641, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 9, 3)}, 'cartonnette': {'main_port_id': 21231378, 'sub_port_id': 21231456, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821642, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 9, 3)}, 'metal': {'main_port_id': 21231378, 'sub_port_id': 21231457, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821643, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 9, 3)}, 'Teint_Dans_La_Masse': {'main_port_id': 21231378, 'sub_port_id': 21231458, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821644, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 9, 3)}, 'Carton_brun': {'main_port_id': 21231378, 'sub_port_id': 21231459, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821645, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 9, 3)}, 'papier': {'main_port_id': 21231378, 'sub_port_id': 21231460, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13821646, 'last_updated_at': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 18, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 18, 9, 3)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21231449,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21231437 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21231450,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21231438 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21231451,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21231439 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21231452,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21231440 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21231453,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21231441 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21231454,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21231442 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21231455,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21231443 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21231456,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21231444 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21231457,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21231445 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21231458,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21231446 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21231459,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21231447 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21231460,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21231448 lien utilise dans velours : https://www.fotonower.com/velours/21231449,21231450,21231451,21231452,21231453,21231454,21231455,21231456,21231457,21231458,21231459,21231460?tags=autre_refus,kraft,plastique,mal_croppe,flou,environnement,Carton_gris,cartonnette,metal,Teint_Dans_La_Masse,Carton_brun,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21231378]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1342603839, 1342603793, 1342603734, 1342603651, 1342603580, 1342603334, 1342603306, 1342603264, 1342603202, 1342603169, 1342603128, 1342602833, 1342602801, 1342602740, 1342602556, 1342602514, 1342602481, 1342602448, 1342602349] map_info['map_portfolio_photo'] : {21231378: [1342603839, 1342603793, 1342603734, 1342603651, 1342603580, 1342603334, 1342603306, 1342603264, 1342603202, 1342603169, 1342603128, 1342602833, 1342602801, 1342602740, 1342602556, 1342602514, 1342602481, 1342602448, 1342602349, 1342602086, 1342602063, 1342602053, 1342602031, 1342602016, 1342601633, 1342601554, 1342601524, 1342601497, 1342601445, 1342600815, 1342600737, 1342600644, 1342600537, 1342599942, 1342599873, 1342599833]} final : False mtd_id 4302 list_pids : [1342603839, 1342603793, 1342603734, 1342603651, 1342603580, 1342603334, 1342603306, 1342603264, 1342603202, 1342603169, 1342603128, 1342602833, 1342602801, 1342602740, 1342602556, 1342602514, 1342602481, 1342602448, 1342602349] Looping around the photos to save general results len do output : 1 /21231378. 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, '2655084') ('4302', '21231378', '1342603839', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603793', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603734', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603651', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603580', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603334', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603306', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603264', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603202', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603169', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603128', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602833', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602801', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602740', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602556', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602514', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602481', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602448', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602349', None, None, None, None, None, '2655084') 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, '21231378', "{'autre_refus': 21231437, 'kraft': 21231438, 'plastique': 21231439, 'mal_croppe': 21231440, 'flou': 21231441, 'environnement': 21231442, 'Carton_gris': 21231443, 'cartonnette': 21231444, 'metal': 21231445, 'Teint_Dans_La_Masse': 21231446, 'Carton_brun': 21231447, 'papier': 21231448}", None, None, None, None, '2655084'), ('4302', '21231378', '1342603839', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603793', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603734', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603651', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603580', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603334', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603306', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603264', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603202', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603169', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603128', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602833', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602801', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602740', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602556', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602514', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602481', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602448', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602349', None, None, None, None, None, '2655084')] time used for this insertion : 0.042374610900878906 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.636347532272339 time spend to save output : 0.04270291328430176 total time spend for step 1 : 4.679050445556641 step2:final Mon Mar 10 18:13:03 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 (21231378) 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 21231378 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1342599942,1342599873,1342599833,1342600815,1342600737,1342600644,1342600537,1342601633,1342601554,1342601524,1342601497,1342601445,1342602086,1342602063,1342602053,1342602031,1342602016,1342602556,1342602514,1342602481,1342602448,1342602349,1342602833,1342602801,1342602740,1342603334,1342603306,1342603264,1342603202,1342603169,1342603128,1342603839,1342603793,1342603734,1342603651,1342603580); 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([21231378]) Inside saveOutput : final : False verbose : True original output for save of step final : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} new output for save of step final : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} [1342603839, 1342603793, 1342603734, 1342603651, 1342603580, 1342603334, 1342603306, 1342603264, 1342603202, 1342603169, 1342603128, 1342602833, 1342602801, 1342602740, 1342602556, 1342602514, 1342602481, 1342602448, 1342602349] map_info['map_portfolio_photo'] : {21231378: [1342603839, 1342603793, 1342603734, 1342603651, 1342603580, 1342603334, 1342603306, 1342603264, 1342603202, 1342603169, 1342603128, 1342602833, 1342602801, 1342602740, 1342602556, 1342602514, 1342602481, 1342602448, 1342602349, 1342602086, 1342602063, 1342602053, 1342602031, 1342602016, 1342601633, 1342601554, 1342601524, 1342601497, 1342601445, 1342600815, 1342600737, 1342600644, 1342600537, 1342599942, 1342599873, 1342599833]} final : False mtd_id 4302 list_pids : [1342603839, 1342603793, 1342603734, 1342603651, 1342603580, 1342603334, 1342603306, 1342603264, 1342603202, 1342603169, 1342603128, 1342602833, 1342602801, 1342602740, 1342602556, 1342602514, 1342602481, 1342602448, 1342602349] Looping around the photos to save general results len do output : 19 /1342603839.Didn't retrieve data . /1342603793.Didn't retrieve data . /1342603734.Didn't retrieve data . /1342603651.Didn't retrieve data . /1342603580.Didn't retrieve data . /1342603334.Didn't retrieve data . /1342603306.Didn't retrieve data . /1342603264.Didn't retrieve data . /1342603202.Didn't retrieve data . /1342603169.Didn't retrieve data . /1342603128.Didn't retrieve data . /1342602833.Didn't retrieve data . /1342602801.Didn't retrieve data . /1342602740.Didn't retrieve data . /1342602556.Didn't retrieve data . /1342602514.Didn't retrieve data . /1342602481.Didn't retrieve data . /1342602448.Didn't retrieve data . /1342602349.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, '2655084') ('4302', '21231378', '1342603839', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603793', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603734', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603651', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603580', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603334', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603306', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603264', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603202', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603169', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603128', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602833', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602801', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602740', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602556', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602514', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602481', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602448', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602349', None, None, None, None, None, '2655084') 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', '21231378', '1342603839', '0.06814892855274454', None, None, None, None, '2655084'), ('4302', '21231378', '1342603793', '0.06814892855274454', None, None, None, None, '2655084'), ('4302', '21231378', '1342603734', '0.06814892855274454', None, None, None, None, '2655084'), ('4302', '21231378', '1342603651', '0.06814892855274454', None, None, None, None, '2655084'), ('4302', '21231378', '1342603580', '0.06814892855274454', None, None, None, None, '2655084'), ('4302', '21231378', '1342603334', '0.06814892855274454', None, None, None, None, '2655084'), ('4302', '21231378', '1342603306', '0.06814892855274454', None, None, None, None, '2655084'), ('4302', '21231378', '1342603264', '0.06814892855274454', None, None, None, None, '2655084'), ('4302', '21231378', '1342603202', '0.06814892855274454', None, None, None, None, '2655084'), ('4302', '21231378', '1342603169', '0.06814892855274454', None, None, None, None, '2655084'), ('4302', '21231378', '1342603128', '0.06814892855274454', None, None, None, None, '2655084'), ('4302', '21231378', '1342602833', '0.06814892855274454', None, None, None, None, '2655084'), ('4302', '21231378', '1342602801', '0.06814892855274454', None, None, None, None, '2655084'), ('4302', '21231378', '1342602740', '0.06814892855274454', None, None, None, None, '2655084'), ('4302', '21231378', '1342602556', '0.06814892855274454', None, None, None, None, '2655084'), ('4302', '21231378', '1342602514', '0.06814892855274454', None, None, None, None, '2655084'), ('4302', '21231378', '1342602481', '0.06814892855274454', None, None, None, None, '2655084'), ('4302', '21231378', '1342602448', '0.06814892855274454', None, None, None, None, '2655084'), ('4302', '21231378', '1342602349', '0.06814892855274454', None, None, None, None, '2655084')] time used for this insertion : 0.04365849494934082 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2539093494415283 time spend to save output : 0.04457211494445801 total time spend for step 2 : 0.29848146438598633 step3:velours_tree Mon Mar 10 18:13: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 : {21231378: [{'autre_refus': 21231437, 'kraft': 21231438, 'plastique': 21231439, 'mal_croppe': 21231440, 'flou': 21231441, 'environnement': 21231442, 'Carton_gris': 21231443, 'cartonnette': 21231444, 'metal': 21231445, 'Teint_Dans_La_Masse': 21231446, 'Carton_brun': 21231447, 'papier': 21231448}]} input_args_next_step : {21231378: ()} output_args : {21231378: [{'autre_refus': 21231437, 'kraft': 21231438, 'plastique': 21231439, 'mal_croppe': 21231440, 'flou': 21231441, 'environnement': 21231442, 'Carton_gris': 21231443, 'cartonnette': 21231444, 'metal': 21231445, 'Teint_Dans_La_Masse': 21231446, 'Carton_brun': 21231447, 'papier': 21231448}]} args : 21231378 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 : ({'autre_refus': 21231437, 'kraft': 21231438, 'plastique': 21231439, 'mal_croppe': 21231440, 'flou': 21231441, 'environnement': 21231442, 'Carton_gris': 21231443, 'cartonnette': 21231444, 'metal': 21231445, 'Teint_Dans_La_Masse': 21231446, 'Carton_brun': 21231447, 'papier': 21231448},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21231378) 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([21231378]) 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.38993406295776367 time spend to save output : 5.936622619628906e-05 total time spend for step 3 : 0.38999342918395996 step4:send_mail_cod Mon Mar 10 18:13: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 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 : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} input_args_next_step : {1342603839: ()} output_args : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} args : 1342603839 depend.output_id : 0 input_args_next_step : {1342603839: ('0.06814892855274454',), 1342603793: ()} output_args : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} args : 1342603793 depend.output_id : 0 input_args_next_step : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ()} output_args : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} args : 1342603734 depend.output_id : 0 input_args_next_step : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ()} output_args : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} args : 1342603651 depend.output_id : 0 input_args_next_step : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ()} output_args : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} args : 1342603580 depend.output_id : 0 input_args_next_step : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ()} output_args : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} args : 1342603334 depend.output_id : 0 input_args_next_step : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ()} output_args : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} args : 1342603306 depend.output_id : 0 input_args_next_step : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ()} output_args : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} args : 1342603264 depend.output_id : 0 input_args_next_step : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ()} output_args : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} args : 1342603202 depend.output_id : 0 input_args_next_step : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ()} output_args : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} args : 1342603169 depend.output_id : 0 input_args_next_step : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ()} output_args : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} args : 1342603128 depend.output_id : 0 input_args_next_step : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ()} output_args : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} args : 1342602833 depend.output_id : 0 input_args_next_step : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ()} output_args : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} args : 1342602801 depend.output_id : 0 input_args_next_step : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ()} output_args : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} args : 1342602740 depend.output_id : 0 input_args_next_step : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ()} output_args : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} args : 1342602556 depend.output_id : 0 input_args_next_step : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ()} output_args : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} args : 1342602514 depend.output_id : 0 input_args_next_step : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ()} output_args : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} args : 1342602481 depend.output_id : 0 input_args_next_step : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ()} output_args : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} args : 1342602448 depend.output_id : 0 input_args_next_step : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ()} output_args : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',)} args : 1342602349 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 : {21231378: [{'autre_refus': 21231437, 'kraft': 21231438, 'plastique': 21231439, 'mal_croppe': 21231440, 'flou': 21231441, 'environnement': 21231442, 'Carton_gris': 21231443, 'cartonnette': 21231444, 'metal': 21231445, 'Teint_Dans_La_Masse': 21231446, 'Carton_brun': 21231447, 'papier': 21231448}]} input_args_next_step : {1342603839: ('0.06814892855274454',), 1342603793: ('0.06814892855274454',), 1342603734: ('0.06814892855274454',), 1342603651: ('0.06814892855274454',), 1342603580: ('0.06814892855274454',), 1342603334: ('0.06814892855274454',), 1342603306: ('0.06814892855274454',), 1342603264: ('0.06814892855274454',), 1342603202: ('0.06814892855274454',), 1342603169: ('0.06814892855274454',), 1342603128: ('0.06814892855274454',), 1342602833: ('0.06814892855274454',), 1342602801: ('0.06814892855274454',), 1342602740: ('0.06814892855274454',), 1342602556: ('0.06814892855274454',), 1342602514: ('0.06814892855274454',), 1342602481: ('0.06814892855274454',), 1342602448: ('0.06814892855274454',), 1342602349: ('0.06814892855274454',), 21231378: ()} output_args : {21231378: [{'autre_refus': 21231437, 'kraft': 21231438, 'plastique': 21231439, 'mal_croppe': 21231440, 'flou': 21231441, 'environnement': 21231442, 'Carton_gris': 21231443, 'cartonnette': 21231444, 'metal': 21231445, 'Teint_Dans_La_Masse': 21231446, 'Carton_brun': 21231447, 'papier': 21231448}]} args : 21231378 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.06814892855274454',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21231378) 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 (1342603839,1342603793,1342603734,1342603651,1342603580,1342603334,1342603306,1342603264,1342603202,1342603169,1342603128,1342602833,1342602801,1342602740,1342602556,1342602514,1342602481,1342602448,1342602349) Found this number of photos: 19 ##### Call download_photos : nb_thread : 5 begin to download photo : 1342602349 begin to download photo : 1342602556 begin to download photo : 1342603128 begin to download photo : 1342603306 begin to download photo : 1342603734 download finish for photo 1342603128 begin to download photo : 1342603169 download finish for photo 1342603306 begin to download photo : 1342603334 download finish for photo 1342603734 begin to download photo : 1342603793 download finish for photo 1342602349 begin to download photo : 1342602448 download finish for photo 1342602556 begin to download photo : 1342602740 download finish for photo 1342603793 begin to download photo : 1342603839 download finish for photo 1342603334 begin to download photo : 1342603580 download finish for photo 1342603169 begin to download photo : 1342603202 download finish for photo 1342602448 begin to download photo : 1342602481 download finish for photo 1342602740 begin to download photo : 1342602801 download finish for photo 1342603580 begin to download photo : 1342603651 download finish for photo 1342603202 begin to download photo : 1342603264 download finish for photo 1342603839 download finish for photo 1342602801 begin to download photo : 1342602833 download finish for photo 1342602481 begin to download photo : 1342602514 download finish for photo 1342603651 download finish for photo 1342603264 download finish for photo 1342602833 download finish for photo 1342602514 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_P21231378_10-03-2025_18_13_04.pdf 21231437 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=21231437 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342603405: '1741626593_3983680_1342602063_e008bf15eecbd776b43e5ee013cfc06a_rle_crop_3703188021_0.png', 1342603508: '1741626615_3984043_1342599833_98d2a3e31b9048f81aa8523f9857d342_rle_crop_3703184576_0.png', 1342603506: '1741626615_3984043_1342599873_aefd3831e654404f583845f68625a521_rle_crop_3703184517_0.png', 1342603505: '1741626615_3984043_1342599942_388d18b407dcb9be4c2c9c8534b03822_rle_crop_3703184476_0.png', 1342603504: '1741626615_3984043_1342599942_388d18b407dcb9be4c2c9c8534b03822_rle_crop_3703184475_0.png', 1342603502: '1741626615_3984043_1342600815_7a1495d6eebdeea6cd8b109ba014e170_rle_crop_3703184466_0.png', 1342603408: '1741626593_3983680_1342602016_c7aa661132d2f01c080c561798dda47b_rle_crop_3703188287_0.png', 1342603407: '1741626593_3983680_1342602031_cd6eb2f217461ca85f023b36f6620dd4_rle_crop_3703188175_0.png', 1342603406: '1741626593_3983680_1342602053_81d3341a712b6ca44ce9a4ece0e6c182_rle_crop_3703188107_0.png', 1342602583: '1741626508_134453_1342601554_31eeb30caf02ecfe8689f0a4988fc7f7_rle_crop_3703183414_0.png', 1342603404: '1741626593_3983680_1342602063_e008bf15eecbd776b43e5ee013cfc06a_rle_crop_3703188020_0.png', 1342602820: '1741626533_3982601_1342600537_09e3668c2a906e6c0d90a8cdafd5b630_rle_crop_3703186500_0.png', 1342602819: '1741626533_3982601_1342600644_c7ecef2e0540a22bb196922a093afa56_rle_crop_3703186468_0.png', 1342602818: '1741626533_3982601_1342600737_433b4cddfb6b47bcaa9ce0f3528ec327_rle_crop_3703186454_0.png', 1342602596: '1741626508_134453_1342601445_92bd345c39a9d642ff34e01f02d0997f_rle_crop_3703183444_0.png', 1342602592: '1741626508_134453_1342601445_92bd345c39a9d642ff34e01f02d0997f_rle_crop_3703183440_0.png', 1342602589: '1741626508_134453_1342601497_88b972b7d90fe012e3054e795e8ff4af_rle_crop_3703183431_0.png', 1342602586: '1741626508_134453_1342601524_baa4980fb8171192465a410740687e5a_rle_crop_3703183424_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/8e7ea1bfcb9c2e0338393af13133c3ac_95869854.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/465922557c67e4e0fb6bda4fa7fc867b_63449381.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/9f8fa77306e5c4a88dfdebf7d3a6d804_81360734.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/302a2ced146603a3a81daf35f10f56f7_25785661.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/11cc139c57b44e396dc3319a3cf133c9_54370953.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/8887bad2d4834da5bc1f4c902629ae66_58720163.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/be43d5f2603bfc32015b6ee512ec0d6c_51776897.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/fc106acc1ae3b0f146d2899213cc1b68_79128789.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/3dcf3dd26a01f3f270fb4436b1d94851_40185431.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/625522d7f9957aeaed40011d55ed3415_49866719.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/873cdd0e367f1fe83c14a7d31d936e21_23019046.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/e9b6ed973506c2a47b899f51669d211d_14379979.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/6f5db494f2be4d9bb21219aad640d289_67747410.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d493a0d363f18c4ce9c6500277bb70e4_91198788.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/6fec20d454f82af6a83bc007112690a1_18104747.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/7c132b4d0702589487b3d2f1c330f2b0_11468191.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d9a6bc30974db51221b0d657787697b3_53541951.png change filename to text .imagette212314371741626784/ imagette212314371741626784/1741626593_3983680_1342602031_cd6eb2f217461ca85f023b36f6620dd4_rle_crop_3703188175_0.png.png imagette212314371741626784/1741626615_3984043_1342599833_98d2a3e31b9048f81aa8523f9857d342_rle_crop_3703184576_0.png.png imagette212314371741626784/1741626508_134453_1342601524_baa4980fb8171192465a410740687e5a_rle_crop_3703183424_0.png.png imagette212314371741626784/1741626508_134453_1342601445_92bd345c39a9d642ff34e01f02d0997f_rle_crop_3703183444_0.png.png imagette212314371741626784/1741626615_3984043_1342599942_388d18b407dcb9be4c2c9c8534b03822_rle_crop_3703184475_0.png.png imagette212314371741626784/1741626508_134453_1342601554_31eeb30caf02ecfe8689f0a4988fc7f7_rle_crop_3703183414_0.png.png imagette212314371741626784/1741626615_3984043_1342600815_7a1495d6eebdeea6cd8b109ba014e170_rle_crop_3703184466_0.png.png imagette212314371741626784/1741626593_3983680_1342602063_e008bf15eecbd776b43e5ee013cfc06a_rle_crop_3703188020_0.png.png imagette212314371741626784/1741626508_134453_1342601445_92bd345c39a9d642ff34e01f02d0997f_rle_crop_3703183440_0.png.png imagette212314371741626784/1741626615_3984043_1342599942_388d18b407dcb9be4c2c9c8534b03822_rle_crop_3703184476_0.png.png imagette212314371741626784/1741626533_3982601_1342600737_433b4cddfb6b47bcaa9ce0f3528ec327_rle_crop_3703186454_0.png.png imagette212314371741626784/1741626593_3983680_1342602016_c7aa661132d2f01c080c561798dda47b_rle_crop_3703188287_0.png.png imagette212314371741626784/1741626508_134453_1342601497_88b972b7d90fe012e3054e795e8ff4af_rle_crop_3703183431_0.png.png imagette212314371741626784/1741626593_3983680_1342602053_81d3341a712b6ca44ce9a4ece0e6c182_rle_crop_3703188107_0.png.png imagette212314371741626784/1741626533_3982601_1342600644_c7ecef2e0540a22bb196922a093afa56_rle_crop_3703186468_0.png.png imagette212314371741626784/1741626593_3983680_1342602063_e008bf15eecbd776b43e5ee013cfc06a_rle_crop_3703188021_0.png.png imagette212314371741626784/1741626615_3984043_1342599873_aefd3831e654404f583845f68625a521_rle_crop_3703184517_0.png.png imagette212314371741626784/1741626533_3982601_1342600537_09e3668c2a906e6c0d90a8cdafd5b630_rle_crop_3703186500_0.png.png imagette212314381741626785/ wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/c8034ea8e1b64751d844a1187540da3a_55044054.png imagette212314371741626784 21231438 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=21231438 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212314381741626785 21231439 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=21231439 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342602612: '1741626508_134453_1342601524_baa4980fb8171192465a410740687e5a_rle_crop_3703183419_0.png', 1342602614: '1741626508_134453_1342601497_88b972b7d90fe012e3054e795e8ff4af_rle_crop_3703183429_0.png', 1342603538: '1741626615_3984043_1342599873_aefd3831e654404f583845f68625a521_bib_crop_3703184515_0.jpg', 1342603539: '1741626615_3984043_1342599873_aefd3831e654404f583845f68625a521_rle_crop_3703188546_0.png', 1342603540: '1741626615_3984043_1342599873_aefd3831e654404f583845f68625a521_rle_crop_3703184516_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/570f53cd5e19831abf4493958121df9d_57182612.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/509946dc4da9bc3102c81c0ee377a2b5_73431885.png change filename to text .wget -O 3.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/e563b6d78cd4e9622069b28783297064_71032032.jpg change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/cb24ed399306263fa485ccd946ebc0ec_43491988.png change filename to text .imagette212314391741626786/ imagette212314391741626786/1741626615_3984043_1342599873_aefd3831e654404f583845f68625a521_rle_crop_3703188546_0.png.png imagette212314391741626786/1741626615_3984043_1342599873_aefd3831e654404f583845f68625a521_bib_crop_3703184515_0.jpg.jpg imagette212314391741626786/1741626508_134453_1342601524_baa4980fb8171192465a410740687e5a_rle_crop_3703183419_0.png.png imagette212314391741626786/1741626508_134453_1342601497_88b972b7d90fe012e3054e795e8ff4af_rle_crop_3703183429_0.png.png imagette212314391741626786/1741626615_3984043_1342599873_aefd3831e654404f583845f68625a521_rle_crop_3703184516_0.png.png imagette212314401741626786/ imagette212314411741626786/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/8d58306864753411d63dd9f831d51f51_93308850.png imagette212314391741626786 21231440 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=21231440 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212314401741626786 21231441 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=21231441 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212314411741626786 21231444 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=21231444 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342602603: '1741626508_134453_1342601524_baa4980fb8171192465a410740687e5a_rle_crop_3703183418_0.png', 1342602839: '1741626533_3982601_1342600644_c7ecef2e0540a22bb196922a093afa56_rle_crop_3703186464_0.png', 1342602840: '1741626533_3982601_1342600644_c7ecef2e0540a22bb196922a093afa56_rle_crop_3703186463_0.png', 1342603424: '1741626593_3983680_1342602063_e008bf15eecbd776b43e5ee013cfc06a_rle_crop_3703188014_0.png', 1342603425: '1741626593_3983680_1342602031_cd6eb2f217461ca85f023b36f6620dd4_rle_crop_3703188168_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a8b8e719f108a452f8eee79dbd67d224_56123696.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/2f746b955354dbdb7becb9bdf7b491f0_47497546.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f4e9a2dc5cb58ad7f5bbe3f6b9a04adf_36607677.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d508ff5ac04ba6d0ea8aeae0c875b414_20057229.png change filename to text .imagette212314441741626786/ imagette212314441741626786/1741626508_134453_1342601524_baa4980fb8171192465a410740687e5a_rle_crop_3703183418_0.png.png imagette212314441741626786/1741626593_3983680_1342602031_cd6eb2f217461ca85f023b36f6620dd4_rle_crop_3703188168_0.png.png imagette212314441741626786/1741626533_3982601_1342600644_c7ecef2e0540a22bb196922a093afa56_rle_crop_3703186464_0.png.png imagette212314441741626786/1741626593_3983680_1342602063_e008bf15eecbd776b43e5ee013cfc06a_rle_crop_3703188014_0.png.png imagette212314441741626786/1741626533_3982601_1342600644_c7ecef2e0540a22bb196922a093afa56_rle_crop_3703186463_0.png.png imagette212314451741626786/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/7ce59c642eb3b0be753d0928f01c9ebe_57499794.png imagette212314441741626786 21231445 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=21231445 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212314451741626786 21231443 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=21231443 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342602835: '1741626533_3982601_1342600737_433b4cddfb6b47bcaa9ce0f3528ec327_rle_crop_3703186448_0.png', 1342603413: '1741626593_3983680_1342602053_81d3341a712b6ca44ce9a4ece0e6c182_rle_crop_3703188105_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a06df652f581c59d711d7819fd837e3e_99068331.png change filename to text .imagette212314431741626786/ imagette212314431741626786/1741626533_3982601_1342600737_433b4cddfb6b47bcaa9ce0f3528ec327_rle_crop_3703186448_0.png.png imagette212314431741626786/1741626593_3983680_1342602053_81d3341a712b6ca44ce9a4ece0e6c182_rle_crop_3703188105_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/663b7e25d0b1560cfea9ea9344170b79_67693402.png imagette212314431741626786 21231446 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=21231446 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342602568: '1741626508_134453_1342601445_92bd345c39a9d642ff34e01f02d0997f_rle_crop_3703183442_0.png', 1342602792: '1741626533_3982601_1342600737_433b4cddfb6b47bcaa9ce0f3528ec327_rle_crop_3703186453_0.png', 1342602793: '1741626533_3982601_1342600537_09e3668c2a906e6c0d90a8cdafd5b630_rle_crop_3703186496_0.png', 1342603323: '1741626593_3983680_1342602063_e008bf15eecbd776b43e5ee013cfc06a_rle_crop_3703188019_0.png', 1342603324: '1741626593_3983680_1342602063_e008bf15eecbd776b43e5ee013cfc06a_rle_crop_3703188023_0.png', 1342603325: '1741626593_3983680_1342602053_81d3341a712b6ca44ce9a4ece0e6c182_rle_crop_3703188108_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/690bbc4c545b48b05cc1f1bd4a5ef454_68049452.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/2da1bb3319fb7d1e3f3bc2bdd33b3366_15906513.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b4d69331023aa9224c4685f6c9b89512_88118851.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/224f99de66b51bc033386a9134d67961_83740787.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a0d19f086de205bfe01a67cbdbaac311_41155049.png change filename to text .imagette212314461741626786/ imagette212314461741626786/1741626593_3983680_1342602053_81d3341a712b6ca44ce9a4ece0e6c182_rle_crop_3703188108_0.png.png imagette212314461741626786/1741626593_3983680_1342602063_e008bf15eecbd776b43e5ee013cfc06a_rle_crop_3703188023_0.png.png imagette212314461741626786/1741626533_3982601_1342600537_09e3668c2a906e6c0d90a8cdafd5b630_rle_crop_3703186496_0.png.png imagette212314461741626786/1741626508_134453_1342601445_92bd345c39a9d642ff34e01f02d0997f_rle_crop_3703183442_0.png.png imagette212314461741626786/1741626593_3983680_1342602063_e008bf15eecbd776b43e5ee013cfc06a_rle_crop_3703188019_0.png.png imagette212314461741626786/1741626533_3982601_1342600737_433b4cddfb6b47bcaa9ce0f3528ec327_rle_crop_3703186453_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/2b9879dc0f0b95d43b40ff9f6647c3d6_6090316.png imagette212314461741626786 21231447 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=21231447 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342603521: '1741626615_3984043_1342599942_388d18b407dcb9be4c2c9c8534b03822_rle_crop_3703184474_0.png'} change filename to text .imagette212314471741626787/ imagette212314471741626787/1741626615_3984043_1342599942_388d18b407dcb9be4c2c9c8534b03822_rle_crop_3703184474_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/1dafdeb1af8f013da6f238600b33f909_83867867.png imagette212314471741626787 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21231378 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21231449,21231450,21231451,21231452,21231453,21231454,21231455,21231456,21231457,21231458,21231459,21231460?tags=autre_refus,kraft,plastique,mal_croppe,flou,environnement,Carton_gris,cartonnette,metal,Teint_Dans_La_Masse,Carton_brun,papier your option no_mail is active, we will not send the real mail to your client args[1342603839] : ('0.06814892855274454',) no score found for photo 1342603839 We are sending mail with results at report@fotonower.com args[1342603793] : ('0.06814892855274454',) no score found for photo 1342603793 We are sending mail with results at report@fotonower.com args[1342603734] : ('0.06814892855274454',) no score found for photo 1342603734 We are sending mail with results at report@fotonower.com args[1342603651] : ('0.06814892855274454',) no score found for photo 1342603651 We are sending mail with results at report@fotonower.com args[1342603580] : ('0.06814892855274454',) no score found for photo 1342603580 We are sending mail with results at report@fotonower.com args[1342603334] : ('0.06814892855274454',) no score found for photo 1342603334 We are sending mail with results at report@fotonower.com args[1342603306] : ('0.06814892855274454',) no score found for photo 1342603306 We are sending mail with results at report@fotonower.com args[1342603264] : ('0.06814892855274454',) no score found for photo 1342603264 We are sending mail with results at report@fotonower.com args[1342603202] : ('0.06814892855274454',) no score found for photo 1342603202 We are sending mail with results at report@fotonower.com args[1342603169] : ('0.06814892855274454',) no score found for photo 1342603169 We are sending mail with results at report@fotonower.com args[1342603128] : ('0.06814892855274454',) no score found for photo 1342603128 We are sending mail with results at report@fotonower.com args[1342602833] : ('0.06814892855274454',) no score found for photo 1342602833 We are sending mail with results at report@fotonower.com args[1342602801] : ('0.06814892855274454',) no score found for photo 1342602801 We are sending mail with results at report@fotonower.com args[1342602740] : ('0.06814892855274454',) no score found for photo 1342602740 We are sending mail with results at report@fotonower.com args[1342602556] : ('0.06814892855274454',) no score found for photo 1342602556 We are sending mail with results at report@fotonower.com args[1342602514] : ('0.06814892855274454',) no score found for photo 1342602514 We are sending mail with results at report@fotonower.com args[1342602481] : ('0.06814892855274454',) no score found for photo 1342602481 We are sending mail with results at report@fotonower.com args[1342602448] : ('0.06814892855274454',) no score found for photo 1342602448 We are sending mail with results at report@fotonower.com args[1342602349] : ('0.06814892855274454',) no score found for photo 1342602349 We are sending mail with results at report@fotonower.com refus_total : 0.06814892855274454 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=21231378 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_P21231378_10-03-2025_18_13_04.pdf results_Auto_P21231378_10-03-2025_18_13_04.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21231378_10-03-2025_18_13_04.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','21231378','results_Auto_P21231378_10-03-2025_18_13_04.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21231378_10-03-2025_18_13_04.pdf','pdf','','0.27','0.06814892855274454') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21231378]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1342603839, 1342603793, 1342603734, 1342603651, 1342603580, 1342603334, 1342603306, 1342603264, 1342603202, 1342603169, 1342603128, 1342602833, 1342602801, 1342602740, 1342602556, 1342602514, 1342602481, 1342602448, 1342602349] map_info['map_portfolio_photo'] : {21231378: [1342603839, 1342603793, 1342603734, 1342603651, 1342603580, 1342603334, 1342603306, 1342603264, 1342603202, 1342603169, 1342603128, 1342602833, 1342602801, 1342602740, 1342602556, 1342602514, 1342602481, 1342602448, 1342602349, 1342602086, 1342602063, 1342602053, 1342602031, 1342602016, 1342601633, 1342601554, 1342601524, 1342601497, 1342601445, 1342600815, 1342600737, 1342600644, 1342600537, 1342599942, 1342599873, 1342599833]} final : False mtd_id 4302 list_pids : [1342603839, 1342603793, 1342603734, 1342603651, 1342603580, 1342603334, 1342603306, 1342603264, 1342603202, 1342603169, 1342603128, 1342602833, 1342602801, 1342602740, 1342602556, 1342602514, 1342602481, 1342602448, 1342602349] 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, '2655084') ('4302', '21231378', '1342603839', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603793', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603734', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603651', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603580', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603334', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603306', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603264', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603202', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603169', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603128', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602833', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602801', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602740', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602556', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602514', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602481', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602448', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602349', None, None, None, None, None, '2655084') 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', '21231378', '1342603839', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603793', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603734', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603651', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603580', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603334', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603306', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603264', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603202', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603169', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603128', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602833', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602801', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602740', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602556', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602514', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602481', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602448', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602349', None, None, None, None, None, '2655084')] time used for this insertion : 0.02129197120666504 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.587158203125 time spend to save output : 0.02177739143371582 total time spend for step 4 : 4.608935594558716 step5:split_time_score Mon Mar 10 18:13:09 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 : ['21231378'] 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 : [('21231378',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21231378) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1342603734: {'path': 'temp/1741626784_4108403_1342603734_989fa040d2706781ebd0d2b95e06274f.jpg', 'extension': 'jpg'}, 1342603793: {'path': 'temp/1741626784_4108403_1342603793_d5ab3e9551983016b16d1d15f27b8882.jpg', 'extension': 'jpg'}, 1342603839: {'path': 'temp/1741626784_4108403_1342603839_19c09e6c4898e96b3c5a853945c63836.jpg', 'extension': 'jpg'}, 1342603306: {'path': 'temp/1741626784_4108403_1342603306_09623a1a3a04cb3ed4ccea47ddea48c8.jpg', 'extension': 'jpg'}, 1342603334: {'path': 'temp/1741626784_4108403_1342603334_ba664c1def148028bc6c34050b0830dd.jpg', 'extension': 'jpg'}, 1342603580: {'path': 'temp/1741626784_4108403_1342603580_b042e4da4b35c0481b16d1b98a2bb3a0.jpg', 'extension': 'jpg'}, 1342603651: {'path': 'temp/1741626784_4108403_1342603651_4851d1449f27251f3d4c11737ecac013.jpg', 'extension': 'jpg'}, 1342603128: {'path': 'temp/1741626784_4108403_1342603128_dbd90994a7196a664c29ea353202fac6.jpg', 'extension': 'jpg'}, 1342603169: {'path': 'temp/1741626784_4108403_1342603169_9922f505c849e03c32417183f35ee8a7.jpg', 'extension': 'jpg'}, 1342603202: {'path': 'temp/1741626784_4108403_1342603202_8dc2ae874d5ab74da9aef1dfe92a54b9.jpg', 'extension': 'jpg'}, 1342603264: {'path': 'temp/1741626784_4108403_1342603264_be723438a379d57721cc2aaf31ca6bdc.jpg', 'extension': 'jpg'}, 1342602556: {'path': 'temp/1741626784_4108403_1342602556_5ba0cb21406052b7cc2bec0d471abae6.jpg', 'extension': 'jpg'}, 1342602740: {'path': 'temp/1741626784_4108403_1342602740_7b84ba928c6ed286294ec54e4b2c9ef4.jpg', 'extension': 'jpg'}, 1342602801: {'path': 'temp/1741626784_4108403_1342602801_068747852e24042ecfbaf9bac4dd1c5e.jpg', 'extension': 'jpg'}, 1342602833: {'path': 'temp/1741626784_4108403_1342602833_9caafddc526694d9d6c2b2fca61a8eb1.jpg', 'extension': 'jpg'}, 1342602349: {'path': 'temp/1741626784_4108403_1342602349_3b0bb713d6632440e908f95ab989b955.jpg', 'extension': 'jpg'}, 1342602448: {'path': 'temp/1741626784_4108403_1342602448_a17c1c0f61f26930fe6f6be3ff5107ab.jpg', 'extension': 'jpg'}, 1342602481: {'path': 'temp/1741626784_4108403_1342602481_5ad6dcc5181a0107809d6c399e8652b8.jpg', 'extension': 'jpg'}, 1342602514: {'path': 'temp/1741626784_4108403_1342602514_15a13807a55564d8ce257255fa56d87b.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 = 21231378; (('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 = 21231378 group by h (('18', 36),) 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=21231378 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 (21231378) 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 (21231378) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10032025 21231378 Nombre de photos uploadées : 36 / 23040 (0%) 10032025 21231378 Nombre de photos taguées (types de déchets): 0 / 36 (0%) 10032025 21231378 Nombre de photos taguées (volume) : 0 / 36 (0%) [{'photo_id': 1342599942, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/388d18b407dcb9be4c2c9c8534b03822.jpg', 'username': None, 'uploaded_at': 1741626277, 'text': 'image_10032025_18_03_13_010148m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342599873, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/aefd3831e654404f583845f68625a521.jpg', 'username': None, 'uploaded_at': 1741626277, 'text': 'image_10032025_18_03_34_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342599833, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/98d2a3e31b9048f81aa8523f9857d342.jpg', 'username': None, 'uploaded_at': 1741626277, 'text': 'image_10032025_18_03_44_010139m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342600815, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/7a1495d6eebdeea6cd8b109ba014e170.jpg', 'username': None, 'uploaded_at': 1741626337, 'text': 'image_10032025_18_03_54_010138m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 4.0531158447265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.0967254638671875e-05 ???????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017580986022949219 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21231378, '2025-03-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1654691,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.0285797119140625 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= 1654691 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1654691, 'dashboard_run_id': 1663122, 'mtr_portfolio_id': 21229599, 'dashboard_result_id': 9315735, '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_P21229599_10-03-2025_17_40_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21229624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21229625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21229626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21229627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21229628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21229629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21229630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21229631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21229632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21229633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21229634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21229635, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1663122, 'mtr_portfolio_id': 21231378, 'dashboard_result_id': 9315736, '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_P21231378_10-03-2025_18_09_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21231437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21231438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21231439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21231440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21231441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21231442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21231443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21231444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21231445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21231446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21231447, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21231448, '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 = 21229599 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': 2654944, 'mtr_portfolio_id': 21229599, 'created_at': datetime.datetime(2025, 3, 10, 17, 40, 1), 'result': '0.08283150403928959', 'result_long': None, 'result_double': None}] Qualite : 0.08283150403928959 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21229599 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21229599_10-03-2025_17_40_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21229599 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_P21229599_10-03-2025_17_40_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21229624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21229625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21229626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21229627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21229628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21229629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21229630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21229631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21229632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21229633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21229634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21229635, 'pht': 3726}}" where mtr_portfolio_id = 21229599 and dashboard_run_id = 1663122 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`=21229599 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9315735, 0.08283150403928959, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21229599_10-03-2025_17_40_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21229624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21229625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21229626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21229627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21229628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21229629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21229630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21229631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21229632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21229633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21229634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21229635, '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 = 21231378 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': 2655084, 'mtr_portfolio_id': 21231378, 'created_at': datetime.datetime(2025, 3, 10, 18, 13, 3), 'result': '0.06814892855274454', 'result_long': None, 'result_double': None}] Qualite : 0.06814892855274454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21231378 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21231378_10-03-2025_18_13_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21231378 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_P21231378_10-03-2025_18_13_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21231437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21231438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21231439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21231440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21231441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21231442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21231443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21231444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21231445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21231446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21231447, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21231448, 'pht': 3726}}" where mtr_portfolio_id = 21231378 and dashboard_run_id = 1663122 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`=21231378 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9315736, 0.06814892855274454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21231378_10-03-2025_18_13_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21231437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21231438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21231439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21231440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21231441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21231442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21231443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21231444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21231445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21231446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21231447, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21231448, '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 (21229599,21231378) result : ((1342580983,), (1342580987,), (1342580991,), (1342581057,), (1342581094,), (1342581251,), (1342581256,), (1342581263,), (1342581268,), (1342581272,), (1342581277,), (1342581388,), (1342581431,), (1342581455,), (1342581739,), (1342581750,), (1342581764,), (1342581801,), (1342581898,), (1342581952,), (1342581994,), (1342582259,), (1342582345,), (1342582404,), (1342582483,), (1342582527,), (1342582786,), (1342582870,), (1342582925,), (1342583259,), (1342583279,), (1342583291,), (1342583305,), (1342583588,), (1342583601,), (1342583626,), (1342583638,), (1342583697,), (1342583757,), (1342583812,), (1342583848,), (1342583881,), (1342583914,), (1342583948,), (1342584026,), (1342584044,), (1342584072,), (1342584349,), (1342584370,), (1342584409,), (1342584455,), (1342584503,), (1342584559,), (1342584830,), (1342584860,), (1342584893,), (1342584911,), (1342585024,), (1342585065,), (1342585096,), (1342585122,), (1342585144,), (1342585166,), (1342585307,), (1342585335,), (1342585371,), (1342585397,), (1342585434,), (1342585667,), (1342585762,), (1342585814,), (1342585895,), (1342585982,), (1342588366,), (1342599833,), (1342599873,), (1342599942,), (1342600537,), (1342600644,), (1342600737,), (1342600815,), (1342601445,), (1342601497,), (1342601524,), (1342601554,), (1342601633,), (1342602016,), (1342602031,), (1342602053,), (1342602063,), (1342602086,), (1342602349,), (1342602448,), (1342602481,), (1342602514,), (1342602556,), (1342602740,), (1342602801,), (1342602833,), (1342603128,), (1342603169,), (1342603202,), (1342603264,), (1342603306,), (1342603334,), (1342603580,), (1342603651,), (1342603734,), (1342603793,), (1342603839,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10032025': {'nb_upload': 36, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21231378]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1342603839, 1342603793, 1342603734, 1342603651, 1342603580, 1342603334, 1342603306, 1342603264, 1342603202, 1342603169, 1342603128, 1342602833, 1342602801, 1342602740, 1342602556, 1342602514, 1342602481, 1342602448, 1342602349] map_info['map_portfolio_photo'] : {21231378: [1342603839, 1342603793, 1342603734, 1342603651, 1342603580, 1342603334, 1342603306, 1342603264, 1342603202, 1342603169, 1342603128, 1342602833, 1342602801, 1342602740, 1342602556, 1342602514, 1342602481, 1342602448, 1342602349, 1342602086, 1342602063, 1342602053, 1342602031, 1342602016, 1342601633, 1342601554, 1342601524, 1342601497, 1342601445, 1342600815, 1342600737, 1342600644, 1342600537, 1342599942, 1342599873, 1342599833]} final : True mtd_id 4302 list_pids : [1342603839, 1342603793, 1342603734, 1342603651, 1342603580, 1342603334, 1342603306, 1342603264, 1342603202, 1342603169, 1342603128, 1342602833, 1342602801, 1342602740, 1342602556, 1342602514, 1342602481, 1342602448, 1342602349] Looping around the photos to save general results len do output : 1 /21231378Didn'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, '2655084') ('4302', '21231378', '1342603839', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603793', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603734', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603651', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603580', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603334', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603306', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603264', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603202', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603169', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342603128', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602833', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602801', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602740', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602556', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602514', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602481', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602448', None, None, None, None, None, '2655084') ('4302', None, None, None, None, None, None, None, '2655084') ('4302', '21231378', '1342602349', None, None, None, None, None, '2655084') 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, '21231378', 'None', None, None, None, None, '2655084'), ('4302', '21231378', '1342603839', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603793', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603734', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603651', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603580', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603334', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603306', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603264', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603202', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603169', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342603128', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602833', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602801', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602740', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602556', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602514', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602481', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602448', None, None, None, None, None, '2655084'), ('4302', '21231378', '1342602349', None, None, None, None, None, '2655084')] time used for this insertion : 0.017954111099243164 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2797696590423584 time spend to save output : 0.018328189849853516 total time spend for step 5 : 0.2980978488922119 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 (2655084) 2.57user 1.98system 0:13.84elapsed 32%CPU (0avgtext+0avgdata 160416maxresident)k 7408inputs+16848outputs (101major+76225minor)pagefaults 0swaps