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 : 2605017 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 (2592608) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2592608) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20600382 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2592608'] with mtr_portfolio_ids : ['20600382'] and first list_photo_ids : [] new path : /proc/2605017/ Name: python3 Umask: 0002 State: R (running) Tgid: 2605017 Ngid: 0 Pid: 2605017 PPid: 2605015 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2605017 NSpid: 2605017 NSpgid: 2603917 NSsid: 2603917 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97792 kB VmRSS: 97792 kB RssAnon: 59740 kB RssFile: 38052 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 612 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: 75 nonvoluntary_ctxt_switches: 186 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2605017', 'Ngid': '0', 'Pid': '2605017', 'PPid': '2605015', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2605017', 'NSpid': '2605017', 'NSpgid': '2603917', 'NSsid': '2603917', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97792 kB', 'VmRSS': '97792 kB', 'RssAnon': '59740 kB', 'RssFile': '38052 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '612 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': '75', 'nonvoluntary_ctxt_switches': '186'} ('datou_batch_current', '2605017', '1106844', '0', '1106844', '865596', '97792', b'', 'marlene', '2592608') 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 (20600382) 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 (2592608 ) ) 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 (20600382) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338130790, 'portfolio_id': 20600382}, {'photo_id': 1338130785, 'portfolio_id': 20600382}, {'photo_id': 1338130782, 'portfolio_id': 20600382}, {'photo_id': 1338130775, 'portfolio_id': 20600382}, {'photo_id': 1338130752, 'portfolio_id': 20600382}, {'photo_id': 1338130746, 'portfolio_id': 20600382}, {'photo_id': 1338130743, 'portfolio_id': 20600382}, {'photo_id': 1338130739, 'portfolio_id': 20600382}, {'photo_id': 1338130736, 'portfolio_id': 20600382}, {'photo_id': 1338130733, 'portfolio_id': 20600382}, {'photo_id': 1338130674, 'portfolio_id': 20600382}, {'photo_id': 1338130668, 'portfolio_id': 20600382}, {'photo_id': 1338130664, 'portfolio_id': 20600382}, {'photo_id': 1338130662, 'portfolio_id': 20600382}, {'photo_id': 1338130659, 'portfolio_id': 20600382}, {'photo_id': 1338130648, 'portfolio_id': 20600382}, {'photo_id': 1338130578, 'portfolio_id': 20600382}, {'photo_id': 1338130575, 'portfolio_id': 20600382}, {'photo_id': 1338130572, 'portfolio_id': 20600382}, {'photo_id': 1338130570, 'portfolio_id': 20600382}, {'photo_id': 1338130530, 'portfolio_id': 20600382}, {'photo_id': 1338130527, 'portfolio_id': 20600382}, {'photo_id': 1338130526, 'portfolio_id': 20600382}, {'photo_id': 1338130524, 'portfolio_id': 20600382}, {'photo_id': 1338130521, 'portfolio_id': 20600382}, {'photo_id': 1338130519, 'portfolio_id': 20600382}, {'photo_id': 1338130488, 'portfolio_id': 20600382}, {'photo_id': 1338130485, 'portfolio_id': 20600382}, {'photo_id': 1338130481, 'portfolio_id': 20600382}, {'photo_id': 1338130478, 'portfolio_id': 20600382}, {'photo_id': 1338130477, 'portfolio_id': 20600382}, {'photo_id': 1338130290, 'portfolio_id': 20600382}, {'photo_id': 1338130280, 'portfolio_id': 20600382}, {'photo_id': 1338130269, 'portfolio_id': 20600382}, {'photo_id': 1338130201, 'portfolio_id': 20600382}, {'photo_id': 1338130199, 'portfolio_id': 20600382}, {'photo_id': 1338130177, 'portfolio_id': 20600382}, {'photo_id': 1338130173, 'portfolio_id': 20600382}, {'photo_id': 1338130168, 'portfolio_id': 20600382}, {'photo_id': 1338130112, 'portfolio_id': 20600382}, {'photo_id': 1338130108, 'portfolio_id': 20600382}, {'photo_id': 1338130089, 'portfolio_id': 20600382}, {'photo_id': 1338130085, 'portfolio_id': 20600382}, {'photo_id': 1338130081, 'portfolio_id': 20600382}, {'photo_id': 1338129956, 'portfolio_id': 20600382}, {'photo_id': 1338129952, 'portfolio_id': 20600382}, {'photo_id': 1338129881, 'portfolio_id': 20600382}] map_portfolio_id_photo_id: {20600382: [1338130790, 1338130785, 1338130782, 1338130775, 1338130752, 1338130746, 1338130743, 1338130739, 1338130736, 1338130733, 1338130674, 1338130668, 1338130664, 1338130662, 1338130659, 1338130648, 1338130578, 1338130575, 1338130572, 1338130570, 1338130530, 1338130527, 1338130526, 1338130524, 1338130521, 1338130519, 1338130488, 1338130485, 1338130481, 1338130478, 1338130477, 1338130290, 1338130280, 1338130269, 1338130201, 1338130199, 1338130177, 1338130173, 1338130168, 1338130112, 1338130108, 1338130089, 1338130085, 1338130081, 1338129956, 1338129952, 1338129881]} ##### 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.01666426658630371 #### 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 Feb 17 09:43:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20600382) 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 : 20600382 get user id for portfolio 20600382 get sub ptf for main ptf 20600382, type 3726 and hashtags ['Carton_brun', 'metal', 'Carton_gris', 'flou', 'mal_croppe', 'autre_refus', 'environnement', 'plastique', 'Teint_Dans_La_Masse', 'cartonnette', 'papier', 'kraft'] 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`=20600382 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','metal','Carton_gris','flou','mal_croppe','autre_refus','environnement','plastique','Teint_Dans_La_Masse','cartonnette','papier','kraft')) 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`=20600382 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','metal','Carton_gris','flou','mal_croppe','autre_refus','environnement','plastique','Teint_Dans_La_Masse','cartonnette','papier','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20600382, 'sub_port_id': 20600384, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258283, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20600382, 'sub_port_id': 20600385, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258284, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 34, 59)}, 'metal': {'main_port_id': 20600382, 'sub_port_id': 20600386, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258285, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 34, 59)}, 'plastique': {'main_port_id': 20600382, 'sub_port_id': 20600387, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258286, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 34, 59)}, 'cartonnette': {'main_port_id': 20600382, 'sub_port_id': 20600388, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258287, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 34, 59)}, 'Carton_brun': {'main_port_id': 20600382, 'sub_port_id': 20600389, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258288, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 34, 59)}, 'kraft': {'main_port_id': 20600382, 'sub_port_id': 20600390, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258289, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 34, 59)}, 'papier': {'main_port_id': 20600382, 'sub_port_id': 20600391, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258290, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 34, 59)}, 'mal_croppe': {'main_port_id': 20600382, 'sub_port_id': 20600392, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258291, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 34, 59)}, 'autre_refus': {'main_port_id': 20600382, 'sub_port_id': 20600393, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258292, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 34, 59)}, 'flou': {'main_port_id': 20600382, 'sub_port_id': 20600394, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258293, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 34, 59)}, 'environnement': {'main_port_id': 20600382, 'sub_port_id': 20600395, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258294, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20600384 , 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=20600382 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 (20600384) result : ((1338130242,), (1338130243,), (1338130271,), (1338130272,), (1338130523,), (1338130703,), (1338130724,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20600382) result : ((1338129881,), (1338129952,), (1338129956,), (1338130081,), (1338130085,), (1338130089,), (1338130108,), (1338130112,), (1338130168,), (1338130173,), (1338130177,), (1338130199,), (1338130201,), (1338130269,), (1338130280,), (1338130290,), (1338130477,), (1338130478,), (1338130481,), (1338130485,), (1338130488,), (1338130519,), (1338130521,), (1338130524,), (1338130526,), (1338130527,), (1338130530,), (1338130570,), (1338130572,), (1338130575,), (1338130578,), (1338130648,), (1338130659,), (1338130662,), (1338130664,), (1338130668,), (1338130674,), (1338130733,), (1338130736,), (1338130739,), (1338130743,), (1338130746,), (1338130752,), (1338130775,), (1338130782,), (1338130785,), (1338130790,)) 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 20600385 , 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=20600382 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 (20600385) result : ((1338130237,), (1338130514,), (1338130722,), (1338130808,), (1338130809,), (1338130810,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20600382) result : ((1338129881,), (1338129952,), (1338129956,), (1338130081,), (1338130085,), (1338130089,), (1338130108,), (1338130112,), (1338130168,), (1338130173,), (1338130177,), (1338130199,), (1338130201,), (1338130269,), (1338130280,), (1338130290,), (1338130477,), (1338130478,), (1338130481,), (1338130485,), (1338130488,), (1338130519,), (1338130521,), (1338130524,), (1338130526,), (1338130527,), (1338130530,), (1338130570,), (1338130572,), (1338130575,), (1338130578,), (1338130648,), (1338130659,), (1338130662,), (1338130664,), (1338130668,), (1338130674,), (1338130733,), (1338130736,), (1338130739,), (1338130743,), (1338130746,), (1338130752,), (1338130775,), (1338130782,), (1338130785,), (1338130790,)) 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 20600386 , 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=20600382 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 (20600386) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20600382) result : ((1338129881,), (1338129952,), (1338129956,), (1338130081,), (1338130085,), (1338130089,), (1338130108,), (1338130112,), (1338130168,), (1338130173,), (1338130177,), (1338130199,), (1338130201,), (1338130269,), (1338130280,), (1338130290,), (1338130477,), (1338130478,), (1338130481,), (1338130485,), (1338130488,), (1338130519,), (1338130521,), (1338130524,), (1338130526,), (1338130527,), (1338130530,), (1338130570,), (1338130572,), (1338130575,), (1338130578,), (1338130648,), (1338130659,), (1338130662,), (1338130664,), (1338130668,), (1338130674,), (1338130733,), (1338130736,), (1338130739,), (1338130743,), (1338130746,), (1338130752,), (1338130775,), (1338130782,), (1338130785,), (1338130790,)) 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 20600387 , 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=20600382 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 (20600387) result : ((1338130123,), (1338130284,), (1338130285,), (1338130286,), (1338130287,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20600382) result : ((1338129881,), (1338129952,), (1338129956,), (1338130081,), (1338130085,), (1338130089,), (1338130108,), (1338130112,), (1338130168,), (1338130173,), (1338130177,), (1338130199,), (1338130201,), (1338130269,), (1338130280,), (1338130290,), (1338130477,), (1338130478,), (1338130481,), (1338130485,), (1338130488,), (1338130519,), (1338130521,), (1338130524,), (1338130526,), (1338130527,), (1338130530,), (1338130570,), (1338130572,), (1338130575,), (1338130578,), (1338130648,), (1338130659,), (1338130662,), (1338130664,), (1338130668,), (1338130674,), (1338130733,), (1338130736,), (1338130739,), (1338130743,), (1338130746,), (1338130752,), (1338130775,), (1338130782,), (1338130785,), (1338130790,)) 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 20600388 , 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=20600382 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 (20600388) result : ((1338130273,), (1338130275,), (1338130277,), (1338130707,), (1338130787,), (1338130816,), (1338130817,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20600382) result : ((1338129881,), (1338129952,), (1338129956,), (1338130081,), (1338130085,), (1338130089,), (1338130108,), (1338130112,), (1338130168,), (1338130173,), (1338130177,), (1338130199,), (1338130201,), (1338130269,), (1338130280,), (1338130290,), (1338130477,), (1338130478,), (1338130481,), (1338130485,), (1338130488,), (1338130519,), (1338130521,), (1338130524,), (1338130526,), (1338130527,), (1338130530,), (1338130570,), (1338130572,), (1338130575,), (1338130578,), (1338130648,), (1338130659,), (1338130662,), (1338130664,), (1338130668,), (1338130674,), (1338130733,), (1338130736,), (1338130739,), (1338130743,), (1338130746,), (1338130752,), (1338130775,), (1338130782,), (1338130785,), (1338130790,)) 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 20600389 , 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=20600382 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 (20600389) result : ((1338130122,), (1338130245,), (1338130246,), (1338130279,), (1338130499,), (1338130500,), (1338130516,), (1338130525,), (1338130726,), (1338130789,), (1338130818,), (1338130819,), (1338130820,), (1338130821,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20600382) result : ((1338129881,), (1338129952,), (1338129956,), (1338130081,), (1338130085,), (1338130089,), (1338130108,), (1338130112,), (1338130168,), (1338130173,), (1338130177,), (1338130199,), (1338130201,), (1338130269,), (1338130280,), (1338130290,), (1338130477,), (1338130478,), (1338130481,), (1338130485,), (1338130488,), (1338130519,), (1338130521,), (1338130524,), (1338130526,), (1338130527,), (1338130530,), (1338130570,), (1338130572,), (1338130575,), (1338130578,), (1338130648,), (1338130659,), (1338130662,), (1338130664,), (1338130668,), (1338130674,), (1338130733,), (1338130736,), (1338130739,), (1338130743,), (1338130746,), (1338130752,), (1338130775,), (1338130782,), (1338130785,), (1338130790,)) 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 20600390 , 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=20600382 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 (20600390) result : ((1338130289,), (1338130823,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20600382) result : ((1338129881,), (1338129952,), (1338129956,), (1338130081,), (1338130085,), (1338130089,), (1338130108,), (1338130112,), (1338130168,), (1338130173,), (1338130177,), (1338130199,), (1338130201,), (1338130269,), (1338130280,), (1338130290,), (1338130477,), (1338130478,), (1338130481,), (1338130485,), (1338130488,), (1338130519,), (1338130521,), (1338130524,), (1338130526,), (1338130527,), (1338130530,), (1338130570,), (1338130572,), (1338130575,), (1338130578,), (1338130648,), (1338130659,), (1338130662,), (1338130664,), (1338130668,), (1338130674,), (1338130733,), (1338130736,), (1338130739,), (1338130743,), (1338130746,), (1338130752,), (1338130775,), (1338130782,), (1338130785,), (1338130790,)) 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 20600391 , 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=20600382 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 (20600391) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20600382) result : ((1338129881,), (1338129952,), (1338129956,), (1338130081,), (1338130085,), (1338130089,), (1338130108,), (1338130112,), (1338130168,), (1338130173,), (1338130177,), (1338130199,), (1338130201,), (1338130269,), (1338130280,), (1338130290,), (1338130477,), (1338130478,), (1338130481,), (1338130485,), (1338130488,), (1338130519,), (1338130521,), (1338130524,), (1338130526,), (1338130527,), (1338130530,), (1338130570,), (1338130572,), (1338130575,), (1338130578,), (1338130648,), (1338130659,), (1338130662,), (1338130664,), (1338130668,), (1338130674,), (1338130733,), (1338130736,), (1338130739,), (1338130743,), (1338130746,), (1338130752,), (1338130775,), (1338130782,), (1338130785,), (1338130790,)) 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 20600392 , 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=20600382 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 (20600392) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20600382) result : ((1338129881,), (1338129952,), (1338129956,), (1338130081,), (1338130085,), (1338130089,), (1338130108,), (1338130112,), (1338130168,), (1338130173,), (1338130177,), (1338130199,), (1338130201,), (1338130269,), (1338130280,), (1338130290,), (1338130477,), (1338130478,), (1338130481,), (1338130485,), (1338130488,), (1338130519,), (1338130521,), (1338130524,), (1338130526,), (1338130527,), (1338130530,), (1338130570,), (1338130572,), (1338130575,), (1338130578,), (1338130648,), (1338130659,), (1338130662,), (1338130664,), (1338130668,), (1338130674,), (1338130733,), (1338130736,), (1338130739,), (1338130743,), (1338130746,), (1338130752,), (1338130775,), (1338130782,), (1338130785,), (1338130790,)) 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 20600393 , 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=20600382 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 (20600393) result : ((1338130515,), (1338130812,), (1338130813,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20600382) result : ((1338129881,), (1338129952,), (1338129956,), (1338130081,), (1338130085,), (1338130089,), (1338130108,), (1338130112,), (1338130168,), (1338130173,), (1338130177,), (1338130199,), (1338130201,), (1338130269,), (1338130280,), (1338130290,), (1338130477,), (1338130478,), (1338130481,), (1338130485,), (1338130488,), (1338130519,), (1338130521,), (1338130524,), (1338130526,), (1338130527,), (1338130530,), (1338130570,), (1338130572,), (1338130575,), (1338130578,), (1338130648,), (1338130659,), (1338130662,), (1338130664,), (1338130668,), (1338130674,), (1338130733,), (1338130736,), (1338130739,), (1338130743,), (1338130746,), (1338130752,), (1338130775,), (1338130782,), (1338130785,), (1338130790,)) 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 20600394 , 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=20600382 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 (20600394) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20600382) result : ((1338129881,), (1338129952,), (1338129956,), (1338130081,), (1338130085,), (1338130089,), (1338130108,), (1338130112,), (1338130168,), (1338130173,), (1338130177,), (1338130199,), (1338130201,), (1338130269,), (1338130280,), (1338130290,), (1338130477,), (1338130478,), (1338130481,), (1338130485,), (1338130488,), (1338130519,), (1338130521,), (1338130524,), (1338130526,), (1338130527,), (1338130530,), (1338130570,), (1338130572,), (1338130575,), (1338130578,), (1338130648,), (1338130659,), (1338130662,), (1338130664,), (1338130668,), (1338130674,), (1338130733,), (1338130736,), (1338130739,), (1338130743,), (1338130746,), (1338130752,), (1338130775,), (1338130782,), (1338130785,), (1338130790,)) 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 20600395 , 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=20600382 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 (20600395) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20600382) result : ((1338129881,), (1338129952,), (1338129956,), (1338130081,), (1338130085,), (1338130089,), (1338130108,), (1338130112,), (1338130168,), (1338130173,), (1338130177,), (1338130199,), (1338130201,), (1338130269,), (1338130280,), (1338130290,), (1338130477,), (1338130478,), (1338130481,), (1338130485,), (1338130488,), (1338130519,), (1338130521,), (1338130524,), (1338130526,), (1338130527,), (1338130530,), (1338130570,), (1338130572,), (1338130575,), (1338130578,), (1338130648,), (1338130659,), (1338130662,), (1338130664,), (1338130668,), (1338130674,), (1338130733,), (1338130736,), (1338130739,), (1338130743,), (1338130746,), (1338130752,), (1338130775,), (1338130782,), (1338130785,), (1338130790,)) 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`=20600382 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','metal','Carton_gris','flou','mal_croppe','autre_refus','environnement','plastique','Teint_Dans_La_Masse','cartonnette','papier','kraft')) 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`=20600382 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','metal','Carton_gris','flou','mal_croppe','autre_refus','environnement','plastique','Teint_Dans_La_Masse','cartonnette','papier','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20600382, 'sub_port_id': 20600396, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258295, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 20600382, 'sub_port_id': 20600397, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258296, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 35)}, 'metal': {'main_port_id': 20600382, 'sub_port_id': 20600398, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258297, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 35)}, 'plastique': {'main_port_id': 20600382, 'sub_port_id': 20600399, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258298, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 35)}, 'cartonnette': {'main_port_id': 20600382, 'sub_port_id': 20600400, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258299, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 35)}, 'Carton_brun': {'main_port_id': 20600382, 'sub_port_id': 20600401, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258300, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 35)}, 'kraft': {'main_port_id': 20600382, 'sub_port_id': 20600402, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258301, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 35)}, 'papier': {'main_port_id': 20600382, 'sub_port_id': 20600403, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258302, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 35)}, 'mal_croppe': {'main_port_id': 20600382, 'sub_port_id': 20600404, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258303, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 35)}, 'autre_refus': {'main_port_id': 20600382, 'sub_port_id': 20600405, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258304, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 35)}, 'flou': {'main_port_id': 20600382, 'sub_port_id': 20600406, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258305, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 35)}, 'environnement': {'main_port_id': 20600382, 'sub_port_id': 20600407, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13258306, 'last_updated_at': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 9, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20600396,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20600384 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20600397,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20600385 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20600398,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20600386 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20600399,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20600387 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20600400,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20600388 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20600401,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20600389 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20600402,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20600390 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20600403,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20600391 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20600404,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20600392 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20600405,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20600393 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20600406,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20600394 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20600407,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20600395 lien utilise dans velours : https://www.fotonower.com/velours/20600396,20600397,20600398,20600399,20600400,20600401,20600402,20600403,20600404,20600405,20600406,20600407?tags=Carton_gris,Teint_Dans_La_Masse,metal,plastique,cartonnette,Carton_brun,kraft,papier,mal_croppe,autre_refus,flou,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20600382]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338130790, 1338130785, 1338130782, 1338130775, 1338130752, 1338130746, 1338130743, 1338130739, 1338130736, 1338130733, 1338130674, 1338130668, 1338130664, 1338130662, 1338130659] map_info['map_portfolio_photo'] : {20600382: [1338130790, 1338130785, 1338130782, 1338130775, 1338130752, 1338130746, 1338130743, 1338130739, 1338130736, 1338130733, 1338130674, 1338130668, 1338130664, 1338130662, 1338130659, 1338130648, 1338130578, 1338130575, 1338130572, 1338130570, 1338130530, 1338130527, 1338130526, 1338130524, 1338130521, 1338130519, 1338130488, 1338130485, 1338130481, 1338130478, 1338130477, 1338130290, 1338130280, 1338130269, 1338130201, 1338130199, 1338130177, 1338130173, 1338130168, 1338130112, 1338130108, 1338130089, 1338130085, 1338130081, 1338129956, 1338129952, 1338129881]} final : False mtd_id 4302 list_pids : [1338130790, 1338130785, 1338130782, 1338130775, 1338130752, 1338130746, 1338130743, 1338130739, 1338130736, 1338130733, 1338130674, 1338130668, 1338130664, 1338130662, 1338130659] Looping around the photos to save general results len do output : 1 /20600382. 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, '2592608') ('4302', '20600382', '1338130790', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130785', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130782', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130775', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130752', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130746', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130743', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130739', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130736', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130733', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130674', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130668', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130664', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130662', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130659', None, None, None, None, None, '2592608') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '20600382', "{'Carton_gris': 20600384, 'Teint_Dans_La_Masse': 20600385, 'metal': 20600386, 'plastique': 20600387, 'cartonnette': 20600388, 'Carton_brun': 20600389, 'kraft': 20600390, 'papier': 20600391, 'mal_croppe': 20600392, 'autre_refus': 20600393, 'flou': 20600394, 'environnement': 20600395}", None, None, None, None, '2592608'), ('4302', '20600382', '1338130790', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130785', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130782', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130775', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130752', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130746', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130743', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130739', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130736', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130733', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130674', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130668', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130664', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130662', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130659', None, None, None, None, None, '2592608')] time used for this insertion : 0.014681577682495117 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9055044651031494 time spend to save output : 0.015060663223266602 total time spend for step 1 : 1.920565128326416 step2:final Mon Feb 17 09:43:31 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 (20600382) 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 20600382 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338129881,1338129956,1338129952,1338130112,1338130108,1338130089,1338130085,1338130081,1338130177,1338130173,1338130168,1338130201,1338130199,1338130290,1338130280,1338130269,1338130488,1338130485,1338130481,1338130478,1338130477,1338130530,1338130527,1338130526,1338130524,1338130521,1338130519,1338130578,1338130575,1338130572,1338130570,1338130674,1338130668,1338130664,1338130662,1338130659,1338130648,1338130752,1338130746,1338130743,1338130739,1338130736,1338130733,1338130790,1338130785,1338130782,1338130775); 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([20600382]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ('0.04870622756694951',), 1338130659: ('0.04870622756694951',)} new output for save of step final : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ('0.04870622756694951',), 1338130659: ('0.04870622756694951',)} [1338130790, 1338130785, 1338130782, 1338130775, 1338130752, 1338130746, 1338130743, 1338130739, 1338130736, 1338130733, 1338130674, 1338130668, 1338130664, 1338130662, 1338130659] map_info['map_portfolio_photo'] : {20600382: [1338130790, 1338130785, 1338130782, 1338130775, 1338130752, 1338130746, 1338130743, 1338130739, 1338130736, 1338130733, 1338130674, 1338130668, 1338130664, 1338130662, 1338130659, 1338130648, 1338130578, 1338130575, 1338130572, 1338130570, 1338130530, 1338130527, 1338130526, 1338130524, 1338130521, 1338130519, 1338130488, 1338130485, 1338130481, 1338130478, 1338130477, 1338130290, 1338130280, 1338130269, 1338130201, 1338130199, 1338130177, 1338130173, 1338130168, 1338130112, 1338130108, 1338130089, 1338130085, 1338130081, 1338129956, 1338129952, 1338129881]} final : False mtd_id 4302 list_pids : [1338130790, 1338130785, 1338130782, 1338130775, 1338130752, 1338130746, 1338130743, 1338130739, 1338130736, 1338130733, 1338130674, 1338130668, 1338130664, 1338130662, 1338130659] Looping around the photos to save general results len do output : 15 /1338130790.Didn't retrieve data . /1338130785.Didn't retrieve data . /1338130782.Didn't retrieve data . /1338130775.Didn't retrieve data . /1338130752.Didn't retrieve data . /1338130746.Didn't retrieve data . /1338130743.Didn't retrieve data . /1338130739.Didn't retrieve data . /1338130736.Didn't retrieve data . /1338130733.Didn't retrieve data . /1338130674.Didn't retrieve data . /1338130668.Didn't retrieve data . /1338130664.Didn't retrieve data . /1338130662.Didn't retrieve data . /1338130659.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, '2592608') ('4302', '20600382', '1338130790', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130785', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130782', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130775', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130752', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130746', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130743', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130739', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130736', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130733', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130674', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130668', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130664', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130662', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130659', None, None, None, None, None, '2592608') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '20600382', '1338130790', '0.04870622756694951', None, None, None, None, '2592608'), ('4302', '20600382', '1338130785', '0.04870622756694951', None, None, None, None, '2592608'), ('4302', '20600382', '1338130782', '0.04870622756694951', None, None, None, None, '2592608'), ('4302', '20600382', '1338130775', '0.04870622756694951', None, None, None, None, '2592608'), ('4302', '20600382', '1338130752', '0.04870622756694951', None, None, None, None, '2592608'), ('4302', '20600382', '1338130746', '0.04870622756694951', None, None, None, None, '2592608'), ('4302', '20600382', '1338130743', '0.04870622756694951', None, None, None, None, '2592608'), ('4302', '20600382', '1338130739', '0.04870622756694951', None, None, None, None, '2592608'), ('4302', '20600382', '1338130736', '0.04870622756694951', None, None, None, None, '2592608'), ('4302', '20600382', '1338130733', '0.04870622756694951', None, None, None, None, '2592608'), ('4302', '20600382', '1338130674', '0.04870622756694951', None, None, None, None, '2592608'), ('4302', '20600382', '1338130668', '0.04870622756694951', None, None, None, None, '2592608'), ('4302', '20600382', '1338130664', '0.04870622756694951', None, None, None, None, '2592608'), ('4302', '20600382', '1338130662', '0.04870622756694951', None, None, None, None, '2592608'), ('4302', '20600382', '1338130659', '0.04870622756694951', None, None, None, None, '2592608')] time used for this insertion : 0.9317107200622559 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06607437133789062 time spend to save output : 0.932532548904419 total time spend for step 2 : 0.9986069202423096 step3:velours_tree Mon Feb 17 09:43:32 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 : {20600382: [{'Carton_gris': 20600384, 'Teint_Dans_La_Masse': 20600385, 'metal': 20600386, 'plastique': 20600387, 'cartonnette': 20600388, 'Carton_brun': 20600389, 'kraft': 20600390, 'papier': 20600391, 'mal_croppe': 20600392, 'autre_refus': 20600393, 'flou': 20600394, 'environnement': 20600395}]} input_args_next_step : {20600382: ()} output_args : {20600382: [{'Carton_gris': 20600384, 'Teint_Dans_La_Masse': 20600385, 'metal': 20600386, 'plastique': 20600387, 'cartonnette': 20600388, 'Carton_brun': 20600389, 'kraft': 20600390, 'papier': 20600391, 'mal_croppe': 20600392, 'autre_refus': 20600393, 'flou': 20600394, 'environnement': 20600395}]} args : 20600382 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 20600384, 'Teint_Dans_La_Masse': 20600385, 'metal': 20600386, 'plastique': 20600387, 'cartonnette': 20600388, 'Carton_brun': 20600389, 'kraft': 20600390, 'papier': 20600391, 'mal_croppe': 20600392, 'autre_refus': 20600393, 'flou': 20600394, 'environnement': 20600395},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20600382) 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([20600382]) 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.5012156963348389 time spend to save output : 8.225440979003906e-05 total time spend for step 3 : 0.5012979507446289 step4:send_mail_cod Mon Feb 17 09:43:32 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 : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ('0.04870622756694951',), 1338130659: ('0.04870622756694951',)} input_args_next_step : {1338130790: ()} output_args : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ('0.04870622756694951',), 1338130659: ('0.04870622756694951',)} args : 1338130790 depend.output_id : 0 input_args_next_step : {1338130790: ('0.04870622756694951',), 1338130785: ()} output_args : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ('0.04870622756694951',), 1338130659: ('0.04870622756694951',)} args : 1338130785 depend.output_id : 0 input_args_next_step : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ()} output_args : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ('0.04870622756694951',), 1338130659: ('0.04870622756694951',)} args : 1338130782 depend.output_id : 0 input_args_next_step : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ()} output_args : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ('0.04870622756694951',), 1338130659: ('0.04870622756694951',)} args : 1338130775 depend.output_id : 0 input_args_next_step : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ()} output_args : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ('0.04870622756694951',), 1338130659: ('0.04870622756694951',)} args : 1338130752 depend.output_id : 0 input_args_next_step : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ()} output_args : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ('0.04870622756694951',), 1338130659: ('0.04870622756694951',)} args : 1338130746 depend.output_id : 0 input_args_next_step : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ()} output_args : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ('0.04870622756694951',), 1338130659: ('0.04870622756694951',)} args : 1338130743 depend.output_id : 0 input_args_next_step : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ()} output_args : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ('0.04870622756694951',), 1338130659: ('0.04870622756694951',)} args : 1338130739 depend.output_id : 0 input_args_next_step : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ()} output_args : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ('0.04870622756694951',), 1338130659: ('0.04870622756694951',)} args : 1338130736 depend.output_id : 0 input_args_next_step : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ()} output_args : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ('0.04870622756694951',), 1338130659: ('0.04870622756694951',)} args : 1338130733 depend.output_id : 0 input_args_next_step : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ()} output_args : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ('0.04870622756694951',), 1338130659: ('0.04870622756694951',)} args : 1338130674 depend.output_id : 0 input_args_next_step : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ()} output_args : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ('0.04870622756694951',), 1338130659: ('0.04870622756694951',)} args : 1338130668 depend.output_id : 0 input_args_next_step : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ()} output_args : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ('0.04870622756694951',), 1338130659: ('0.04870622756694951',)} args : 1338130664 depend.output_id : 0 input_args_next_step : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ()} output_args : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ('0.04870622756694951',), 1338130659: ('0.04870622756694951',)} args : 1338130662 depend.output_id : 0 input_args_next_step : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ('0.04870622756694951',), 1338130659: ()} output_args : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ('0.04870622756694951',), 1338130659: ('0.04870622756694951',)} args : 1338130659 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 : {20600382: [{'Carton_gris': 20600384, 'Teint_Dans_La_Masse': 20600385, 'metal': 20600386, 'plastique': 20600387, 'cartonnette': 20600388, 'Carton_brun': 20600389, 'kraft': 20600390, 'papier': 20600391, 'mal_croppe': 20600392, 'autre_refus': 20600393, 'flou': 20600394, 'environnement': 20600395}]} input_args_next_step : {1338130790: ('0.04870622756694951',), 1338130785: ('0.04870622756694951',), 1338130782: ('0.04870622756694951',), 1338130775: ('0.04870622756694951',), 1338130752: ('0.04870622756694951',), 1338130746: ('0.04870622756694951',), 1338130743: ('0.04870622756694951',), 1338130739: ('0.04870622756694951',), 1338130736: ('0.04870622756694951',), 1338130733: ('0.04870622756694951',), 1338130674: ('0.04870622756694951',), 1338130668: ('0.04870622756694951',), 1338130664: ('0.04870622756694951',), 1338130662: ('0.04870622756694951',), 1338130659: ('0.04870622756694951',), 20600382: ()} output_args : {20600382: [{'Carton_gris': 20600384, 'Teint_Dans_La_Masse': 20600385, 'metal': 20600386, 'plastique': 20600387, 'cartonnette': 20600388, 'Carton_brun': 20600389, 'kraft': 20600390, 'papier': 20600391, 'mal_croppe': 20600392, 'autre_refus': 20600393, 'flou': 20600394, 'environnement': 20600395}]} args : 20600382 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 :16, first value : ('0.04870622756694951',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20600382) 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 (1338130790,1338130785,1338130782,1338130775,1338130752,1338130746,1338130743,1338130739,1338130736,1338130733,1338130674,1338130668,1338130664,1338130662,1338130659) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338130659 begin to download photo : 1338130674 begin to download photo : 1338130743 begin to download photo : 1338130782 download finish for photo 1338130674 begin to download photo : 1338130733 download finish for photo 1338130782 begin to download photo : 1338130785 download finish for photo 1338130659 begin to download photo : 1338130662 download finish for photo 1338130743 begin to download photo : 1338130746 download finish for photo 1338130733 begin to download photo : 1338130736 download finish for photo 1338130785 begin to download photo : 1338130790 download finish for photo 1338130662 begin to download photo : 1338130664 download finish for photo 1338130746 begin to download photo : 1338130752 download finish for photo 1338130790 download finish for photo 1338130736 begin to download photo : 1338130739 download finish for photo 1338130664 begin to download photo : 1338130668 download finish for photo 1338130752 begin to download photo : 1338130775 download finish for photo 1338130739 download finish for photo 1338130775 download finish for photo 1338130668 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette206003861739781813/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P20600382_17-02-2025_09_43_33.pdf 20600386 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=20600386 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206003861739781813 20600387 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=20600387 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338130123: '1739781171_2343542_1338129952_63243640c64c89e758d6f07ded7e0c17_rle_crop_3677794051_0.png', 1338130284: '1739781313_2344892_1338130108_47260454a707af89a90a407e6af08786_rle_crop_3677795128_0.png', 1338130285: '1739781313_2344892_1338130108_47260454a707af89a90a407e6af08786_rle_crop_3677795117_0.png', 1338130286: '1739781313_2344892_1338130081_ce8d48a416ee31b3b25fe5ea5779f8ef_rle_crop_3677795180_0.png', 1338130287: '1739781313_2344892_1338130081_ce8d48a416ee31b3b25fe5ea5779f8ef_rle_crop_3677795172_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/883268f0f8d2e69f4b0b5077a728164c_7397952.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/db651fe099ec2dec9c13e963ab0fcb77_99464179.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/00b15caee56b9329510d190b290f9a8b_31410105.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/20fa9e5e6d9f61f9e86578304a9658ac_57006360.png change filename to text .imagette206003871739781813/ imagette206003871739781813/1739781313_2344892_1338130081_ce8d48a416ee31b3b25fe5ea5779f8ef_rle_crop_3677795180_0.png.png imagette206003871739781813/1739781313_2344892_1338130108_47260454a707af89a90a407e6af08786_rle_crop_3677795128_0.png.png imagette206003871739781813/1739781171_2343542_1338129952_63243640c64c89e758d6f07ded7e0c17_rle_crop_3677794051_0.png.png imagette206003871739781813/1739781313_2344892_1338130108_47260454a707af89a90a407e6af08786_rle_crop_3677795117_0.png.png imagette206003871739781813/1739781313_2344892_1338130081_ce8d48a416ee31b3b25fe5ea5779f8ef_rle_crop_3677795172_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/2ef9b182e57e951d1453116ff0f8f17c_49753574.png imagette206003871739781813 20600388 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=20600388 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338130273: '1739781313_2344892_1338130177_2953179109f4fd76c273d2ff01e0f61a_rle_crop_3677795038_0.png', 1338130275: '1739781313_2344892_1338130108_47260454a707af89a90a407e6af08786_rle_crop_3677795115_0.png', 1338130277: '1739781313_2344892_1338130089_689c078782003393bc7fb9a918a9f53c_rle_crop_3677795132_0.png', 1338130707: '1739781592_2348032_1338130570_67dda61192e3de0d914d259d2d060cfb_rle_crop_3677798450_0.png', 1338130787: '1739781652_2348842_1338130527_66d9ee74373c7375d212a80e6e64bc54_rle_crop_3677799348_0.png', 1338130816: '1739781671_2349598_1338130485_d42a9d7c49514422d67321733ed3f79a_rle_crop_3677799138_0.png', 1338130817: '1739781671_2349598_1338130481_f51f657dd9486a7f8b280bef75fc278b_rle_crop_3677799302_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/170226e000e97606f81c4015e776bf18_44099047.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/a4614c2f7c564793ab1813b827317d46_63916680.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/f10fb8a8476b3a12021e0d2d203e39b7_93327503.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/f8353aede5997f7e587f71553907f69e_7159953.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/6ed1587a32bd31d6893815af297a1201_17984415.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/1db8e21904c9dc398b7a57a4e10dba94_57621518.png change filename to text .imagette206003881739781813/ imagette206003881739781813/1739781652_2348842_1338130527_66d9ee74373c7375d212a80e6e64bc54_rle_crop_3677799348_0.png.png imagette206003881739781813/1739781313_2344892_1338130108_47260454a707af89a90a407e6af08786_rle_crop_3677795115_0.png.png imagette206003881739781813/1739781313_2344892_1338130089_689c078782003393bc7fb9a918a9f53c_rle_crop_3677795132_0.png.png imagette206003881739781813/1739781671_2349598_1338130485_d42a9d7c49514422d67321733ed3f79a_rle_crop_3677799138_0.png.png imagette206003881739781813/1739781671_2349598_1338130481_f51f657dd9486a7f8b280bef75fc278b_rle_crop_3677799302_0.png.png imagette206003881739781813/1739781313_2344892_1338130177_2953179109f4fd76c273d2ff01e0f61a_rle_crop_3677795038_0.png.png imagette206003881739781813/1739781592_2348032_1338130570_67dda61192e3de0d914d259d2d060cfb_rle_crop_3677798450_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/aa433df3a49a6412db1cefea99e79e04_79978074.png imagette206003881739781813 20600390 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=20600390 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338130289: '1739781313_2344892_1338130089_689c078782003393bc7fb9a918a9f53c_rle_crop_3677795134_0.png', 1338130823: '1739781671_2349598_1338130481_f51f657dd9486a7f8b280bef75fc278b_rle_crop_3677799301_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/0f613c3694cf32167e07bdfd9b1d86e6_38770894.png change filename to text .imagette206003901739781814/ imagette206003901739781814/1739781313_2344892_1338130089_689c078782003393bc7fb9a918a9f53c_rle_crop_3677795134_0.png.png imagette206003901739781814/1739781671_2349598_1338130481_f51f657dd9486a7f8b280bef75fc278b_rle_crop_3677799301_0.png.png imagette206003921739781814/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/e5fd521b29162f1a126e9f1ec818afaa_45404255.png imagette206003901739781814 20600392 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=20600392 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206003921739781814 20600393 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=20600393 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338130515: '1739781434_2346416_1338130201_f337983cbe99cb3e353b2e275b7a79b9_rle_crop_3677795678_0.png', 1338130812: '1739781671_2349598_1338130530_fef6db77fbe745b769768c4b8adcbe46_rle_crop_3677799127_0.png', 1338130813: '1739781671_2349598_1338130477_5975e10f13911a55052de8cbaaf9c6fd_rle_crop_3677799337_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/682697f4f7d8d6ca3cbebe91e058e44d_40056040.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/a5b7b796f37969abca8ce1b6c72f6963_31072986.png change filename to text .imagette206003931739781814/ imagette206003931739781814/1739781671_2349598_1338130530_fef6db77fbe745b769768c4b8adcbe46_rle_crop_3677799127_0.png.png imagette206003931739781814/1739781434_2346416_1338130201_f337983cbe99cb3e353b2e275b7a79b9_rle_crop_3677795678_0.png.png imagette206003931739781814/1739781671_2349598_1338130477_5975e10f13911a55052de8cbaaf9c6fd_rle_crop_3677799337_0.png.png imagette206003941739781814/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/63e70a8b975073bedbb443c936d737c3_68032602.png imagette206003931739781814 20600394 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=20600394 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206003941739781814 20600384 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=20600384 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338130242: '1739781293_2344701_1338130173_34229fc387672d3b393a2ed7859363eb_rle_crop_3677794810_0.png', 1338130243: '1739781293_2344701_1338130168_a6c13ddfc95ae38ea7b63b4b409d7631_rle_crop_3677794822_0.png', 1338130271: '1739781313_2344892_1338130108_47260454a707af89a90a407e6af08786_rle_crop_3677795116_0.png', 1338130272: '1739781313_2344892_1338130085_97fce3b16d6796f7882778cb4f2413b1_rle_crop_3677795152_0.png', 1338130523: '1739781451_2346680_1338130199_9d2c0a0125b939515d76331d4c53f391_rle_crop_3677795845_0.png', 1338130703: '1739781592_2348032_1338130572_34cb66cdd9f31554c1abec3b4fe8099c_rle_crop_3677798078_0.png', 1338130724: '1739781614_2348261_1338130488_644cb795b558e7310f04ec7dd688e75a_rle_crop_3677798790_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/48e4b9dedcbfe7cf6d462e9706fc9f8d_17936558.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/0c2dc045e70ed14eff7844dd88084f4d_19036489.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/86257239d8c28e6178b4edb7647692f3_10088357.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/c2b09487d6d653a9332ee2ebc51bc3e4_17912119.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/60aea101c4b9de8b5539522ad9b0dfdf_96991504.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/6e5a966938019a07038188aa641d4ab0_74071662.png change filename to text .imagette206003841739781814/ imagette206003841739781814/1739781592_2348032_1338130572_34cb66cdd9f31554c1abec3b4fe8099c_rle_crop_3677798078_0.png.png imagette206003841739781814/1739781451_2346680_1338130199_9d2c0a0125b939515d76331d4c53f391_rle_crop_3677795845_0.png.png imagette206003841739781814/1739781293_2344701_1338130173_34229fc387672d3b393a2ed7859363eb_rle_crop_3677794810_0.png.png imagette206003841739781814/1739781293_2344701_1338130168_a6c13ddfc95ae38ea7b63b4b409d7631_rle_crop_3677794822_0.png.png imagette206003841739781814/1739781313_2344892_1338130085_97fce3b16d6796f7882778cb4f2413b1_rle_crop_3677795152_0.png.png imagette206003841739781814/1739781313_2344892_1338130108_47260454a707af89a90a407e6af08786_rle_crop_3677795116_0.png.png imagette206003841739781814/1739781614_2348261_1338130488_644cb795b558e7310f04ec7dd688e75a_rle_crop_3677798790_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/57a644828129c4f1ebdd2c04e6c9598c_30606201.png imagette206003841739781814 20600385 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=20600385 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338130237: '1739781293_2344701_1338130168_a6c13ddfc95ae38ea7b63b4b409d7631_rle_crop_3677794832_0.png', 1338130514: '1739781434_2346416_1338130201_f337983cbe99cb3e353b2e275b7a79b9_rle_crop_3677795680_0.png', 1338130722: '1739781614_2348261_1338130488_644cb795b558e7310f04ec7dd688e75a_rle_crop_3677798794_0.png', 1338130808: '1739781671_2349598_1338130481_f51f657dd9486a7f8b280bef75fc278b_rle_crop_3677799306_0.png', 1338130809: '1739781671_2349598_1338130477_5975e10f13911a55052de8cbaaf9c6fd_rle_crop_3677799343_0.png', 1338130810: '1739781671_2349598_1338130477_5975e10f13911a55052de8cbaaf9c6fd_rle_crop_3677799342_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/10201a6466bc4f7a25e8b9152b385b47_2214762.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/886d6f998a8e393f0c6021f4b8bcaf55_65902996.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/21b29677f0df0bafa8b4b90eecf6e6b1_13547203.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/2929601fc3a04b0e70fb51c7420ecb3f_3201688.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/2f30b1eb34eda8012c14f14d6e8537c5_19170000.png change filename to text .imagette206003851739781814/ imagette206003851739781814/1739781434_2346416_1338130201_f337983cbe99cb3e353b2e275b7a79b9_rle_crop_3677795680_0.png.png imagette206003851739781814/1739781293_2344701_1338130168_a6c13ddfc95ae38ea7b63b4b409d7631_rle_crop_3677794832_0.png.png imagette206003851739781814/1739781671_2349598_1338130481_f51f657dd9486a7f8b280bef75fc278b_rle_crop_3677799306_0.png.png imagette206003851739781814/1739781671_2349598_1338130477_5975e10f13911a55052de8cbaaf9c6fd_rle_crop_3677799342_0.png.png imagette206003851739781814/1739781614_2348261_1338130488_644cb795b558e7310f04ec7dd688e75a_rle_crop_3677798794_0.png.png imagette206003851739781814/1739781671_2349598_1338130477_5975e10f13911a55052de8cbaaf9c6fd_rle_crop_3677799343_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/ee413cea0c626fcba5326b2e730c1b0a_59419221.png imagette206003851739781814 20600389 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=20600389 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338130122: '1739781171_2343542_1338129952_63243640c64c89e758d6f07ded7e0c17_rle_crop_3677794052_0.png', 1338130245: '1739781293_2344701_1338130173_34229fc387672d3b393a2ed7859363eb_rle_crop_3677794817_0.png', 1338130246: '1739781293_2344701_1338130168_a6c13ddfc95ae38ea7b63b4b409d7631_rle_crop_3677794825_0.png', 1338130279: '1739781313_2344892_1338130108_47260454a707af89a90a407e6af08786_rle_crop_3677795119_0.png', 1338130499: '1739781412_2346190_1338130280_53e6a65095617223df9e51dd54151ef8_rle_crop_3677795412_0.png', 1338130500: '1739781412_2346190_1338130269_4e903937f6ce9d995f75c36317c832e1_rle_crop_3677795432_0.png', 1338130516: '1739781434_2346416_1338130201_f337983cbe99cb3e353b2e275b7a79b9_rle_crop_3677795684_0.png', 1338130525: '1739781451_2346680_1338130199_9d2c0a0125b939515d76331d4c53f391_rle_crop_3677795848_0.png', 1338130726: '1739781614_2348261_1338130488_644cb795b558e7310f04ec7dd688e75a_rle_crop_3677798793_0.png', 1338130789: '1739781652_2348842_1338130527_66d9ee74373c7375d212a80e6e64bc54_rle_crop_3677799359_0.png', 1338130818: '1739781671_2349598_1338130530_fef6db77fbe745b769768c4b8adcbe46_rle_crop_3677799131_0.png', 1338130819: '1739781671_2349598_1338130485_d42a9d7c49514422d67321733ed3f79a_rle_crop_3677799140_0.png', 1338130820: '1739781671_2349598_1338130485_d42a9d7c49514422d67321733ed3f79a_rle_crop_3677799144_0.png', 1338130821: '1739781671_2349598_1338130485_d42a9d7c49514422d67321733ed3f79a_rle_crop_3677799146_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/ac742c3dbe651bd2c0a637bf424a6e38_14574928.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/3b22d3d3cafcffa4c72c9eb3a04b7699_23263659.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/7add857c9d1114518dd9847c583092f1_61091433.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b61fabb5920e1079134783a0dc94d952_65498446.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/61de071a5613e688ee87d24dcaaff3d6_14211170.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/50cd82d300936a149e6ef7459d4265ab_30071340.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/d58fcb9aa6c38d961ad816b118e8c402_15754925.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/943580161b4d8bfcf519dd544719cd25_29093548.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/8a1a845284b519d26808cee9672fb73e_1899904.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/5a9bc65aabce17a54d5055d0b905bf25_67835026.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/c9921790ef642903bed1c7f57fafb31b_81258165.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/fcac1df826ef37e89e33ba5f0751f594_2069244.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/cc2bf9a574a91bece6455f78dcc5514c_55254344.png change filename to text .imagette206003891739781815/ imagette206003891739781815/1739781671_2349598_1338130530_fef6db77fbe745b769768c4b8adcbe46_rle_crop_3677799131_0.png.png imagette206003891739781815/1739781671_2349598_1338130485_d42a9d7c49514422d67321733ed3f79a_rle_crop_3677799144_0.png.png imagette206003891739781815/1739781671_2349598_1338130485_d42a9d7c49514422d67321733ed3f79a_rle_crop_3677799140_0.png.png imagette206003891739781815/1739781434_2346416_1338130201_f337983cbe99cb3e353b2e275b7a79b9_rle_crop_3677795684_0.png.png imagette206003891739781815/1739781671_2349598_1338130485_d42a9d7c49514422d67321733ed3f79a_rle_crop_3677799146_0.png.png imagette206003891739781815/1739781313_2344892_1338130108_47260454a707af89a90a407e6af08786_rle_crop_3677795119_0.png.png imagette206003891739781815/1739781412_2346190_1338130280_53e6a65095617223df9e51dd54151ef8_rle_crop_3677795412_0.png.png imagette206003891739781815/1739781171_2343542_1338129952_63243640c64c89e758d6f07ded7e0c17_rle_crop_3677794052_0.png.png imagette206003891739781815/1739781614_2348261_1338130488_644cb795b558e7310f04ec7dd688e75a_rle_crop_3677798793_0.png.png imagette206003891739781815/1739781451_2346680_1338130199_9d2c0a0125b939515d76331d4c53f391_rle_crop_3677795848_0.png.png imagette206003891739781815/1739781293_2344701_1338130168_a6c13ddfc95ae38ea7b63b4b409d7631_rle_crop_3677794825_0.png.png imagette206003891739781815/1739781412_2346190_1338130269_4e903937f6ce9d995f75c36317c832e1_rle_crop_3677795432_0.png.png imagette206003891739781815/1739781652_2348842_1338130527_66d9ee74373c7375d212a80e6e64bc54_rle_crop_3677799359_0.png.png imagette206003891739781815/1739781293_2344701_1338130173_34229fc387672d3b393a2ed7859363eb_rle_crop_3677794817_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/90bc34800628b73ff10afaad99d2ee2e_72095951.png imagette206003891739781815 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20600382 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20600396,20600397,20600398,20600399,20600400,20600401,20600402,20600403,20600404,20600405,20600406,20600407?tags=Carton_gris,Teint_Dans_La_Masse,metal,plastique,cartonnette,Carton_brun,kraft,papier,mal_croppe,autre_refus,flou,environnement your option no_mail is active, we will not send the real mail to your client args[1338130790] : ('0.04870622756694951',) no score found for photo 1338130790 apple ('0.04870622756694951',) We are sending mail with results at report@fotonower.com args[1338130785] : ('0.04870622756694951',) no score found for photo 1338130785 apple ('0.04870622756694951',) We are sending mail with results at report@fotonower.com args[1338130782] : ('0.04870622756694951',) no score found for photo 1338130782 apple ('0.04870622756694951',) We are sending mail with results at report@fotonower.com args[1338130775] : ('0.04870622756694951',) no score found for photo 1338130775 apple ('0.04870622756694951',) We are sending mail with results at report@fotonower.com args[1338130752] : ('0.04870622756694951',) no score found for photo 1338130752 apple ('0.04870622756694951',) We are sending mail with results at report@fotonower.com args[1338130746] : ('0.04870622756694951',) no score found for photo 1338130746 apple ('0.04870622756694951',) We are sending mail with results at report@fotonower.com args[1338130743] : ('0.04870622756694951',) no score found for photo 1338130743 apple ('0.04870622756694951',) We are sending mail with results at report@fotonower.com args[1338130739] : ('0.04870622756694951',) no score found for photo 1338130739 apple ('0.04870622756694951',) We are sending mail with results at report@fotonower.com args[1338130736] : ('0.04870622756694951',) no score found for photo 1338130736 apple ('0.04870622756694951',) We are sending mail with results at report@fotonower.com args[1338130733] : ('0.04870622756694951',) no score found for photo 1338130733 apple ('0.04870622756694951',) We are sending mail with results at report@fotonower.com args[1338130674] : ('0.04870622756694951',) no score found for photo 1338130674 apple ('0.04870622756694951',) We are sending mail with results at report@fotonower.com args[1338130668] : ('0.04870622756694951',) no score found for photo 1338130668 apple ('0.04870622756694951',) We are sending mail with results at report@fotonower.com args[1338130664] : ('0.04870622756694951',) no score found for photo 1338130664 apple ('0.04870622756694951',) We are sending mail with results at report@fotonower.com args[1338130662] : ('0.04870622756694951',) no score found for photo 1338130662 apple ('0.04870622756694951',) We are sending mail with results at report@fotonower.com args[1338130659] : ('0.04870622756694951',) no score found for photo 1338130659 apple ('0.04870622756694951',) We are sending mail with results at report@fotonower.com refus_total : 0.04870622756694951 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=20600382 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_P20600382_17-02-2025_09_43_33.pdf results_Auto_P20600382_17-02-2025_09_43_33.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600382_17-02-2025_09_43_33.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','20600382','results_Auto_P20600382_17-02-2025_09_43_33.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600382_17-02-2025_09_43_33.pdf','pdf','','0.26','0.04870622756694951') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20600382]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338130790, 1338130785, 1338130782, 1338130775, 1338130752, 1338130746, 1338130743, 1338130739, 1338130736, 1338130733, 1338130674, 1338130668, 1338130664, 1338130662, 1338130659] map_info['map_portfolio_photo'] : {20600382: [1338130790, 1338130785, 1338130782, 1338130775, 1338130752, 1338130746, 1338130743, 1338130739, 1338130736, 1338130733, 1338130674, 1338130668, 1338130664, 1338130662, 1338130659, 1338130648, 1338130578, 1338130575, 1338130572, 1338130570, 1338130530, 1338130527, 1338130526, 1338130524, 1338130521, 1338130519, 1338130488, 1338130485, 1338130481, 1338130478, 1338130477, 1338130290, 1338130280, 1338130269, 1338130201, 1338130199, 1338130177, 1338130173, 1338130168, 1338130112, 1338130108, 1338130089, 1338130085, 1338130081, 1338129956, 1338129952, 1338129881]} final : False mtd_id 4302 list_pids : [1338130790, 1338130785, 1338130782, 1338130775, 1338130752, 1338130746, 1338130743, 1338130739, 1338130736, 1338130733, 1338130674, 1338130668, 1338130664, 1338130662, 1338130659] 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, '2592608') ('4302', '20600382', '1338130790', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130785', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130782', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130775', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130752', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130746', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130743', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130739', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130736', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130733', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130674', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130668', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130664', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130662', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130659', None, None, None, None, None, '2592608') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '20600382', '1338130790', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130785', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130782', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130775', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130752', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130746', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130743', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130739', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130736', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130733', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130674', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130668', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130664', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130662', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130659', None, None, None, None, None, '2592608')] time used for this insertion : 0.013657808303833008 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.220693588256836 time spend to save output : 0.014081239700317383 total time spend for step 4 : 4.234774827957153 step5:split_time_score Mon Feb 17 09:43:37 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 : ['20600382'] 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 : [('20600382',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20600382) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338130782: {'path': 'temp/1739781812_2605017_1338130782_b1e621f83901f7f0414264c5fffc76e8.jpg', 'extension': 'jpg'}, 1338130785: {'path': 'temp/1739781812_2605017_1338130785_0092d8352fb95774378036df83ca5fb6.jpg', 'extension': 'jpg'}, 1338130790: {'path': 'temp/1739781812_2605017_1338130790_a1b509a7de211831e2e3426c90051e4a.jpg', 'extension': 'jpg'}, 1338130674: {'path': 'temp/1739781812_2605017_1338130674_fb2e16a44fbf63bbc5f4f4d572cd5d1c.jpg', 'extension': 'jpg'}, 1338130733: {'path': 'temp/1739781812_2605017_1338130733_22bdf3aea457a08ea9d966c0feb42584.jpg', 'extension': 'jpg'}, 1338130736: {'path': 'temp/1739781812_2605017_1338130736_35f7f1c391bc1d1664aa53516247db3d.jpg', 'extension': 'jpg'}, 1338130739: {'path': 'temp/1739781812_2605017_1338130739_8e9ba0dc3eeed6259efd20d707a3380e.jpg', 'extension': 'jpg'}, 1338130743: {'path': 'temp/1739781812_2605017_1338130743_35df43bcf992801470bff17fd564ba1a.jpg', 'extension': 'jpg'}, 1338130746: {'path': 'temp/1739781812_2605017_1338130746_a738d85f1675333c2465b38c6b2745c8.jpg', 'extension': 'jpg'}, 1338130752: {'path': 'temp/1739781812_2605017_1338130752_8884d69b714f492268f79fa9de28019a.jpg', 'extension': 'jpg'}, 1338130775: {'path': 'temp/1739781812_2605017_1338130775_9a4df657c512892cc147a623cafddd68.jpg', 'extension': 'jpg'}, 1338130659: {'path': 'temp/1739781812_2605017_1338130659_5517ceec51e312b4e40e5d9fab751691.jpg', 'extension': 'jpg'}, 1338130662: {'path': 'temp/1739781812_2605017_1338130662_76099ea1ec896463534e8bdb1aa15ca0.jpg', 'extension': 'jpg'}, 1338130664: {'path': 'temp/1739781812_2605017_1338130664_6d1c3315b37b188289833652716347a7.jpg', 'extension': 'jpg'}, 1338130668: {'path': 'temp/1739781812_2605017_1338130668_53249f020813d4b61dd418b71fa2c8d5.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 = 20600382; (('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 = 20600382 group by h (('09', 47),) 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=20600382 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 (20600382) 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 (20600382) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17022025 20600382 Nombre de photos uploadées : 47 / 23040 (0%) 17022025 20600382 Nombre de photos taguées (types de déchets): 0 / 47 (0%) 17022025 20600382 Nombre de photos taguées (volume) : 0 / 47 (0%) [{'photo_id': 1338129881, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/cb32cfa81b6e42b0a272631b16b522e3.jpg', 'username': None, 'uploaded_at': 1739781067, 'text': 'image_17022025_09_30_35_10145.jpg'}, {'photo_id': 1338129956, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/084057d854046352e3ebc0f05cee2d69.jpg', 'username': None, 'uploaded_at': 1739781126, 'text': 'image_17022025_09_31_35_10144.jpg'}, {'photo_id': 1338129952, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/63243640c64c89e758d6f07ded7e0c17.jpg', 'username': None, 'uploaded_at': 1739781126, 'text': 'image_17022025_09_31_45_10137.jpg'}, {'photo_id': 1338130112, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/1bdc6001f652a8a600b03cae6caf9e46.jpg', 'username': None, 'uploaded_at': 1739781186, 'text': 'image_17022025_09_31_55_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 9.059906005859375e-06 ??????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0021843910217285156 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20600382, '2025-02-17' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1607134,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022593259811401367 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= 1607134 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1607134, 'dashboard_run_id': 1615045, 'mtr_portfolio_id': 20599330, 'dashboard_result_id': 8923787, '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_P20599330_17-02-2025_09_04_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20599334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20599335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20599336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20599337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20599338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20599339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20599340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20599341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20599342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20599343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20599344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20599345, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1615045, 'mtr_portfolio_id': 20600382, 'dashboard_result_id': 8923788, '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_P20600382_17-02-2025_09_41_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600395, '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 = 20599330 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': 2592515, 'mtr_portfolio_id': 20599330, 'created_at': datetime.datetime(2025, 2, 17, 9, 4, 57), 'result': '0.040526736510255686', 'result_long': None, 'result_double': None}] Qualite : 0.040526736510255686 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20599330 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20599330_17-02-2025_09_04_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20599330 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_P20599330_17-02-2025_09_04_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20599334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20599335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20599336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20599337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20599338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20599339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20599340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20599341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20599342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20599343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20599344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20599345, 'pht': 3726}}" where mtr_portfolio_id = 20599330 and dashboard_run_id = 1615045 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`=20599330 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8923787, 0.040526736510255686, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20599330_17-02-2025_09_04_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20599334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20599335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20599336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20599337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20599338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20599339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20599340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20599341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20599342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20599343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20599344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20599345, '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 = 20600382 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': 2592608, 'mtr_portfolio_id': 20600382, 'created_at': datetime.datetime(2025, 2, 17, 9, 43, 31), 'result': '0.04870622756694951', 'result_long': None, 'result_double': None}] Qualite : 0.04870622756694951 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20600382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600382_17-02-2025_09_43_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20600382 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_P20600382_17-02-2025_09_43_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600395, 'pht': 3726}}" where mtr_portfolio_id = 20600382 and dashboard_run_id = 1615045 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`=20600382 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8923788, 0.04870622756694951, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600382_17-02-2025_09_43_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600395, '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 (20599330,20600382) result : ((1338122733,), (1338122736,), (1338122739,), (1338122742,), (1338122839,), (1338122842,), (1338122848,), (1338122853,), (1338122884,), (1338122888,), (1338122891,), (1338122894,), (1338122930,), (1338122935,), (1338122981,), (1338122983,), (1338122986,), (1338123048,), (1338123050,), (1338123052,), (1338123146,), (1338123148,), (1338123182,), (1338123183,), (1338123239,), (1338123240,), (1338123243,), (1338123265,), (1338123352,), (1338123358,), (1338123361,), (1338123414,), (1338123416,), (1338123419,), (1338123422,), (1338123423,), (1338123456,), (1338123459,), (1338123462,), (1338123464,), (1338123500,), (1338123505,), (1338123510,), (1338123517,), (1338123524,), (1338123530,), (1338123568,), (1338129881,), (1338129952,), (1338129956,), (1338130081,), (1338130085,), (1338130089,), (1338130108,), (1338130112,), (1338130168,), (1338130173,), (1338130177,), (1338130199,), (1338130201,), (1338130269,), (1338130280,), (1338130290,), (1338130477,), (1338130478,), (1338130481,), (1338130485,), (1338130488,), (1338130519,), (1338130521,), (1338130524,), (1338130526,), (1338130527,), (1338130530,), (1338130570,), (1338130572,), (1338130575,), (1338130578,), (1338130648,), (1338130659,), (1338130662,), (1338130664,), (1338130668,), (1338130674,), (1338130733,), (1338130736,), (1338130739,), (1338130743,), (1338130746,), (1338130752,), (1338130775,), (1338130782,), (1338130785,), (1338130790,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17022025': {'nb_upload': 47, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20600382]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338130790, 1338130785, 1338130782, 1338130775, 1338130752, 1338130746, 1338130743, 1338130739, 1338130736, 1338130733, 1338130674, 1338130668, 1338130664, 1338130662, 1338130659] map_info['map_portfolio_photo'] : {20600382: [1338130790, 1338130785, 1338130782, 1338130775, 1338130752, 1338130746, 1338130743, 1338130739, 1338130736, 1338130733, 1338130674, 1338130668, 1338130664, 1338130662, 1338130659, 1338130648, 1338130578, 1338130575, 1338130572, 1338130570, 1338130530, 1338130527, 1338130526, 1338130524, 1338130521, 1338130519, 1338130488, 1338130485, 1338130481, 1338130478, 1338130477, 1338130290, 1338130280, 1338130269, 1338130201, 1338130199, 1338130177, 1338130173, 1338130168, 1338130112, 1338130108, 1338130089, 1338130085, 1338130081, 1338129956, 1338129952, 1338129881]} final : True mtd_id 4302 list_pids : [1338130790, 1338130785, 1338130782, 1338130775, 1338130752, 1338130746, 1338130743, 1338130739, 1338130736, 1338130733, 1338130674, 1338130668, 1338130664, 1338130662, 1338130659] Looping around the photos to save general results len do output : 1 /20600382Didn'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, '2592608') ('4302', '20600382', '1338130790', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130785', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130782', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130775', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130752', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130746', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130743', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130739', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130736', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130733', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130674', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130668', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130664', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130662', None, None, None, None, None, '2592608') ('4302', None, None, None, None, None, None, None, '2592608') ('4302', '20600382', '1338130659', None, None, None, None, None, '2592608') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '20600382', 'None', None, None, None, None, '2592608'), ('4302', '20600382', '1338130790', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130785', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130782', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130775', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130752', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130746', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130743', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130739', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130736', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130733', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130674', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130668', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130664', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130662', None, None, None, None, None, '2592608'), ('4302', '20600382', '1338130659', None, None, None, None, None, '2592608')] time used for this insertion : 0.015192270278930664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.23256587982177734 time spend to save output : 0.015529632568359375 total time spend for step 5 : 0.24809551239013672 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 (2592608) 2.47user 2.05system 0:11.70elapsed 38%CPU (0avgtext+0avgdata 159924maxresident)k 63104inputs+15296outputs (222major+76447minor)pagefaults 0swaps