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 : 519903 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 (2617818) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2617818) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20856900 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2617818'] with mtr_portfolio_ids : ['20856900'] and first list_photo_ids : [] new path : /proc/519903/ Name: python3 Umask: 0002 State: R (running) Tgid: 519903 Ngid: 0 Pid: 519903 PPid: 519902 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 519903 NSpid: 519903 NSpgid: 517411 NSsid: 517411 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98368 kB VmRSS: 98368 kB RssAnon: 59756 kB RssFile: 38612 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/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: 52 nonvoluntary_ctxt_switches: 86 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '519903', 'Ngid': '0', 'Pid': '519903', 'PPid': '519902', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '519903', 'NSpid': '519903', 'NSpgid': '517411', 'NSsid': '517411', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98368 kB', 'VmRSS': '98368 kB', 'RssAnon': '59756 kB', 'RssFile': '38612 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/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': '52', 'nonvoluntary_ctxt_switches': '86'} ('datou_batch_current', '519903', '1106848', '0', '1106848', '865596', '98368', b'', 'marlene', '2617818') 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 (20856900) 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 (2617818 ) ) 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 (20856900) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339801146, 'portfolio_id': 20856900}, {'photo_id': 1339801136, 'portfolio_id': 20856900}, {'photo_id': 1339801128, 'portfolio_id': 20856900}, {'photo_id': 1339801078, 'portfolio_id': 20856900}, {'photo_id': 1339800916, 'portfolio_id': 20856900}, {'photo_id': 1339800912, 'portfolio_id': 20856900}, {'photo_id': 1339800881, 'portfolio_id': 20856900}, {'photo_id': 1339800872, 'portfolio_id': 20856900}, {'photo_id': 1339800868, 'portfolio_id': 20856900}, {'photo_id': 1339800864, 'portfolio_id': 20856900}, {'photo_id': 1339800851, 'portfolio_id': 20856900}, {'photo_id': 1339800846, 'portfolio_id': 20856900}, {'photo_id': 1339800842, 'portfolio_id': 20856900}, {'photo_id': 1339800818, 'portfolio_id': 20856900}, {'photo_id': 1339800814, 'portfolio_id': 20856900}, {'photo_id': 1339800804, 'portfolio_id': 20856900}, {'photo_id': 1339800802, 'portfolio_id': 20856900}, {'photo_id': 1339800799, 'portfolio_id': 20856900}, {'photo_id': 1339800795, 'portfolio_id': 20856900}, {'photo_id': 1339800790, 'portfolio_id': 20856900}, {'photo_id': 1339800757, 'portfolio_id': 20856900}, {'photo_id': 1339800603, 'portfolio_id': 20856900}, {'photo_id': 1339800551, 'portfolio_id': 20856900}, {'photo_id': 1339800545, 'portfolio_id': 20856900}, {'photo_id': 1339800520, 'portfolio_id': 20856900}, {'photo_id': 1339800517, 'portfolio_id': 20856900}, {'photo_id': 1339800506, 'portfolio_id': 20856900}, {'photo_id': 1339800313, 'portfolio_id': 20856900}, {'photo_id': 1339800309, 'portfolio_id': 20856900}, {'photo_id': 1339800075, 'portfolio_id': 20856900}, {'photo_id': 1339800065, 'portfolio_id': 20856900}, {'photo_id': 1339800015, 'portfolio_id': 20856900}] map_portfolio_id_photo_id: {20856900: [1339801146, 1339801136, 1339801128, 1339801078, 1339800916, 1339800912, 1339800881, 1339800872, 1339800868, 1339800864, 1339800851, 1339800846, 1339800842, 1339800818, 1339800814, 1339800804, 1339800802, 1339800799, 1339800795, 1339800790, 1339800757, 1339800603, 1339800551, 1339800545, 1339800520, 1339800517, 1339800506, 1339800313, 1339800309, 1339800075, 1339800065, 1339800015]} ##### 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.014158487319946289 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Feb 26 22:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20856900) 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 : 20856900 get user id for portfolio 20856900 get sub ptf for main ptf 20856900, type 3726 and hashtags ['papier', 'environnement', 'flou', 'metal', 'plastique', 'mal_croppe', 'Carton_brun', 'kraft', 'Teint_Dans_La_Masse', 'Carton_gris', 'autre_refus', 'cartonnette'] 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`=20856900 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','environnement','flou','metal','plastique','mal_croppe','Carton_brun','kraft','Teint_Dans_La_Masse','Carton_gris','autre_refus','cartonnette')) 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`=20856900 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','environnement','flou','metal','plastique','mal_croppe','Carton_brun','kraft','Teint_Dans_La_Masse','Carton_gris','autre_refus','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 20856900, 'sub_port_id': 20856925, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489306, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 57)}, 'environnement': {'main_port_id': 20856900, 'sub_port_id': 20856926, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489307, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 57)}, 'autre_refus': {'main_port_id': 20856900, 'sub_port_id': 20856927, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489308, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 57)}, 'plastique': {'main_port_id': 20856900, 'sub_port_id': 20856928, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489309, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 57)}, 'mal_croppe': {'main_port_id': 20856900, 'sub_port_id': 20856929, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489310, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 57)}, 'papier': {'main_port_id': 20856900, 'sub_port_id': 20856930, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489311, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 57)}, 'Carton_brun': {'main_port_id': 20856900, 'sub_port_id': 20856931, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489312, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 57)}, 'cartonnette': {'main_port_id': 20856900, 'sub_port_id': 20856932, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489313, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 57)}, 'kraft': {'main_port_id': 20856900, 'sub_port_id': 20856933, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489314, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 57)}, 'flou': {'main_port_id': 20856900, 'sub_port_id': 20856934, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489315, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 57)}, 'Carton_gris': {'main_port_id': 20856900, 'sub_port_id': 20856935, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489316, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20856900, 'sub_port_id': 20856936, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489317, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20856925 , 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=20856900 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 (20856925) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20856900) result : ((1339800015,), (1339800065,), (1339800075,), (1339800309,), (1339800313,), (1339800506,), (1339800517,), (1339800520,), (1339800545,), (1339800551,), (1339800603,), (1339800757,), (1339800790,), (1339800795,), (1339800799,), (1339800802,), (1339800804,), (1339800814,), (1339800818,), (1339800842,), (1339800846,), (1339800851,), (1339800864,), (1339800868,), (1339800872,), (1339800881,), (1339800912,), (1339800916,), (1339801078,), (1339801128,), (1339801136,), (1339801146,)) 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 20856926 , 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=20856900 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 (20856926) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20856900) result : ((1339800015,), (1339800065,), (1339800075,), (1339800309,), (1339800313,), (1339800506,), (1339800517,), (1339800520,), (1339800545,), (1339800551,), (1339800603,), (1339800757,), (1339800790,), (1339800795,), (1339800799,), (1339800802,), (1339800804,), (1339800814,), (1339800818,), (1339800842,), (1339800846,), (1339800851,), (1339800864,), (1339800868,), (1339800872,), (1339800881,), (1339800912,), (1339800916,), (1339801078,), (1339801128,), (1339801136,), (1339801146,)) 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 20856927 , 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=20856900 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 (20856927) result : ((1339800538,), (1339800823,), (1339800877,), (1339800878,), (1339800879,), (1339800880,), (1339801153,), (1339801154,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20856900) result : ((1339800015,), (1339800065,), (1339800075,), (1339800309,), (1339800313,), (1339800506,), (1339800517,), (1339800520,), (1339800545,), (1339800551,), (1339800603,), (1339800757,), (1339800790,), (1339800795,), (1339800799,), (1339800802,), (1339800804,), (1339800814,), (1339800818,), (1339800842,), (1339800846,), (1339800851,), (1339800864,), (1339800868,), (1339800872,), (1339800881,), (1339800912,), (1339800916,), (1339801078,), (1339801128,), (1339801136,), (1339801146,)) 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 20856928 , 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=20856900 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 (20856928) result : ((1339800891,), (1339800892,), (1339800893,), (1339801119,), (1339801121,), (1339801143,), (1339801163,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20856900) result : ((1339800015,), (1339800065,), (1339800075,), (1339800309,), (1339800313,), (1339800506,), (1339800517,), (1339800520,), (1339800545,), (1339800551,), (1339800603,), (1339800757,), (1339800790,), (1339800795,), (1339800799,), (1339800802,), (1339800804,), (1339800814,), (1339800818,), (1339800842,), (1339800846,), (1339800851,), (1339800864,), (1339800868,), (1339800872,), (1339800881,), (1339800912,), (1339800916,), (1339801078,), (1339801128,), (1339801136,), (1339801146,)) 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 20856929 , 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=20856900 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 (20856929) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20856900) result : ((1339800015,), (1339800065,), (1339800075,), (1339800309,), (1339800313,), (1339800506,), (1339800517,), (1339800520,), (1339800545,), (1339800551,), (1339800603,), (1339800757,), (1339800790,), (1339800795,), (1339800799,), (1339800802,), (1339800804,), (1339800814,), (1339800818,), (1339800842,), (1339800846,), (1339800851,), (1339800864,), (1339800868,), (1339800872,), (1339800881,), (1339800912,), (1339800916,), (1339801078,), (1339801128,), (1339801136,), (1339801146,)) 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 20856930 , 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=20856900 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 (20856930) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20856900) result : ((1339800015,), (1339800065,), (1339800075,), (1339800309,), (1339800313,), (1339800506,), (1339800517,), (1339800520,), (1339800545,), (1339800551,), (1339800603,), (1339800757,), (1339800790,), (1339800795,), (1339800799,), (1339800802,), (1339800804,), (1339800814,), (1339800818,), (1339800842,), (1339800846,), (1339800851,), (1339800864,), (1339800868,), (1339800872,), (1339800881,), (1339800912,), (1339800916,), (1339801078,), (1339801128,), (1339801136,), (1339801146,)) 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 20856931 , 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=20856900 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 (20856931) result : ((1339800826,), (1339800827,), (1339800828,), (1339800889,), (1339800890,), (1339801112,), (1339801113,), (1339801114,), (1339801115,), (1339801140,), (1339801141,), (1339801162,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20856900) result : ((1339800015,), (1339800065,), (1339800075,), (1339800309,), (1339800313,), (1339800506,), (1339800517,), (1339800520,), (1339800545,), (1339800551,), (1339800603,), (1339800757,), (1339800790,), (1339800795,), (1339800799,), (1339800802,), (1339800804,), (1339800814,), (1339800818,), (1339800842,), (1339800846,), (1339800851,), (1339800864,), (1339800868,), (1339800872,), (1339800881,), (1339800912,), (1339800916,), (1339801078,), (1339801128,), (1339801136,), (1339801146,)) 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 20856932 , 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=20856900 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 (20856932) result : ((1339800524,), (1339800825,), (1339801109,), (1339801110,), (1339801138,), (1339801139,), (1339801161,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20856900) result : ((1339800015,), (1339800065,), (1339800075,), (1339800309,), (1339800313,), (1339800506,), (1339800517,), (1339800520,), (1339800545,), (1339800551,), (1339800603,), (1339800757,), (1339800790,), (1339800795,), (1339800799,), (1339800802,), (1339800804,), (1339800814,), (1339800818,), (1339800842,), (1339800846,), (1339800851,), (1339800864,), (1339800868,), (1339800872,), (1339800881,), (1339800912,), (1339800916,), (1339801078,), (1339801128,), (1339801136,), (1339801146,)) 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 20856933 , 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=20856900 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 (20856933) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20856900) result : ((1339800015,), (1339800065,), (1339800075,), (1339800309,), (1339800313,), (1339800506,), (1339800517,), (1339800520,), (1339800545,), (1339800551,), (1339800603,), (1339800757,), (1339800790,), (1339800795,), (1339800799,), (1339800802,), (1339800804,), (1339800814,), (1339800818,), (1339800842,), (1339800846,), (1339800851,), (1339800864,), (1339800868,), (1339800872,), (1339800881,), (1339800912,), (1339800916,), (1339801078,), (1339801128,), (1339801136,), (1339801146,)) 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 20856934 , 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=20856900 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 (20856934) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20856900) result : ((1339800015,), (1339800065,), (1339800075,), (1339800309,), (1339800313,), (1339800506,), (1339800517,), (1339800520,), (1339800545,), (1339800551,), (1339800603,), (1339800757,), (1339800790,), (1339800795,), (1339800799,), (1339800802,), (1339800804,), (1339800814,), (1339800818,), (1339800842,), (1339800846,), (1339800851,), (1339800864,), (1339800868,), (1339800872,), (1339800881,), (1339800912,), (1339800916,), (1339801078,), (1339801128,), (1339801136,), (1339801146,)) 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 20856935 , 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=20856900 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 (20856935) result : ((1339800760,), (1339800882,), (1339800883,), (1339800884,), (1339800885,), (1339801135,), (1339801156,), (1339801157,), (1339801158,), (1339801159,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20856900) result : ((1339800015,), (1339800065,), (1339800075,), (1339800309,), (1339800313,), (1339800506,), (1339800517,), (1339800520,), (1339800545,), (1339800551,), (1339800603,), (1339800757,), (1339800790,), (1339800795,), (1339800799,), (1339800802,), (1339800804,), (1339800814,), (1339800818,), (1339800842,), (1339800846,), (1339800851,), (1339800864,), (1339800868,), (1339800872,), (1339800881,), (1339800912,), (1339800916,), (1339801078,), (1339801128,), (1339801136,), (1339801146,)) 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 20856936 , 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=20856900 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 (20856936) result : ((1339800819,), (1339800820,), (1339800874,), (1339801108,), (1339801132,), (1339801133,), (1339801152,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20856900) result : ((1339800015,), (1339800065,), (1339800075,), (1339800309,), (1339800313,), (1339800506,), (1339800517,), (1339800520,), (1339800545,), (1339800551,), (1339800603,), (1339800757,), (1339800790,), (1339800795,), (1339800799,), (1339800802,), (1339800804,), (1339800814,), (1339800818,), (1339800842,), (1339800846,), (1339800851,), (1339800864,), (1339800868,), (1339800872,), (1339800881,), (1339800912,), (1339800916,), (1339801078,), (1339801128,), (1339801136,), (1339801146,)) 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`=20856900 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','environnement','flou','metal','plastique','mal_croppe','Carton_brun','kraft','Teint_Dans_La_Masse','Carton_gris','autre_refus','cartonnette')) 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`=20856900 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','environnement','flou','metal','plastique','mal_croppe','Carton_brun','kraft','Teint_Dans_La_Masse','Carton_gris','autre_refus','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 20856900, 'sub_port_id': 20856937, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489318, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 59)}, 'environnement': {'main_port_id': 20856900, 'sub_port_id': 20856938, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489319, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 59)}, 'autre_refus': {'main_port_id': 20856900, 'sub_port_id': 20856939, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489320, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 59)}, 'plastique': {'main_port_id': 20856900, 'sub_port_id': 20856940, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489321, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 59)}, 'mal_croppe': {'main_port_id': 20856900, 'sub_port_id': 20856941, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489322, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 59)}, 'papier': {'main_port_id': 20856900, 'sub_port_id': 20856942, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489323, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 59)}, 'Carton_brun': {'main_port_id': 20856900, 'sub_port_id': 20856943, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489324, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 59)}, 'cartonnette': {'main_port_id': 20856900, 'sub_port_id': 20856944, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489325, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 59)}, 'kraft': {'main_port_id': 20856900, 'sub_port_id': 20856945, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489326, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 59)}, 'flou': {'main_port_id': 20856900, 'sub_port_id': 20856946, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489327, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 59)}, 'Carton_gris': {'main_port_id': 20856900, 'sub_port_id': 20856947, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489328, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20856900, 'sub_port_id': 20856948, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13489329, 'last_updated_at': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 22, 8, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20856937,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20856925 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20856938,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20856926 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20856939,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20856927 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20856940,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20856928 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20856941,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20856929 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20856942,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20856930 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20856943,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20856931 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20856944,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20856932 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20856945,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20856933 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20856946,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20856934 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20856947,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20856935 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20856948,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20856936 lien utilise dans velours : https://www.fotonower.com/velours/20856937,20856938,20856939,20856940,20856941,20856942,20856943,20856944,20856945,20856946,20856947,20856948?tags=metal,environnement,autre_refus,plastique,mal_croppe,papier,Carton_brun,cartonnette,kraft,flou,Carton_gris,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20856900]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339801146, 1339801136, 1339801128, 1339801078, 1339800916, 1339800912, 1339800881, 1339800872, 1339800868, 1339800864, 1339800851, 1339800846, 1339800842, 1339800818, 1339800814] map_info['map_portfolio_photo'] : {20856900: [1339801146, 1339801136, 1339801128, 1339801078, 1339800916, 1339800912, 1339800881, 1339800872, 1339800868, 1339800864, 1339800851, 1339800846, 1339800842, 1339800818, 1339800814, 1339800804, 1339800802, 1339800799, 1339800795, 1339800790, 1339800757, 1339800603, 1339800551, 1339800545, 1339800520, 1339800517, 1339800506, 1339800313, 1339800309, 1339800075, 1339800065, 1339800015]} final : False mtd_id 4302 list_pids : [1339801146, 1339801136, 1339801128, 1339801078, 1339800916, 1339800912, 1339800881, 1339800872, 1339800868, 1339800864, 1339800851, 1339800846, 1339800842, 1339800818, 1339800814] Looping around the photos to save general results len do output : 1 /20856900. 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, '2617818') ('4302', '20856900', '1339801146', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339801136', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339801128', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339801078', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800916', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800912', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800881', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800872', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800868', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800864', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800851', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800846', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800842', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800818', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800814', None, None, None, None, None, '2617818') 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, '20856900', "{'metal': 20856925, 'environnement': 20856926, 'autre_refus': 20856927, 'plastique': 20856928, 'mal_croppe': 20856929, 'papier': 20856930, 'Carton_brun': 20856931, 'cartonnette': 20856932, 'kraft': 20856933, 'flou': 20856934, 'Carton_gris': 20856935, 'Teint_Dans_La_Masse': 20856936}", None, None, None, None, '2617818'), ('4302', '20856900', '1339801146', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339801136', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339801128', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339801078', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800916', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800912', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800881', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800872', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800868', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800864', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800851', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800846', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800842', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800818', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800814', None, None, None, None, None, '2617818')] time used for this insertion : 0.015108108520507812 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4789555072784424 time spend to save output : 0.015447139739990234 total time spend for step 1 : 1.4944026470184326 step2:final Wed Feb 26 22:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (20856900) 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 20856900 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339800015,1339800313,1339800309,1339800075,1339800065,1339800520,1339800517,1339800603,1339800506,1339800551,1339800545,1339800757,1339800804,1339800802,1339800799,1339800795,1339800790,1339800818,1339800814,1339800851,1339800846,1339800842,1339800881,1339800872,1339800868,1339800864,1339800916,1339800912,1339801078,1339801146,1339801136,1339801128); 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([20856900]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ('0.1169375491298784',), 1339800814: ('0.1169375491298784',)} new output for save of step final : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ('0.1169375491298784',), 1339800814: ('0.1169375491298784',)} [1339801146, 1339801136, 1339801128, 1339801078, 1339800916, 1339800912, 1339800881, 1339800872, 1339800868, 1339800864, 1339800851, 1339800846, 1339800842, 1339800818, 1339800814] map_info['map_portfolio_photo'] : {20856900: [1339801146, 1339801136, 1339801128, 1339801078, 1339800916, 1339800912, 1339800881, 1339800872, 1339800868, 1339800864, 1339800851, 1339800846, 1339800842, 1339800818, 1339800814, 1339800804, 1339800802, 1339800799, 1339800795, 1339800790, 1339800757, 1339800603, 1339800551, 1339800545, 1339800520, 1339800517, 1339800506, 1339800313, 1339800309, 1339800075, 1339800065, 1339800015]} final : False mtd_id 4302 list_pids : [1339801146, 1339801136, 1339801128, 1339801078, 1339800916, 1339800912, 1339800881, 1339800872, 1339800868, 1339800864, 1339800851, 1339800846, 1339800842, 1339800818, 1339800814] Looping around the photos to save general results len do output : 15 /1339801146.Didn't retrieve data . /1339801136.Didn't retrieve data . /1339801128.Didn't retrieve data . /1339801078.Didn't retrieve data . /1339800916.Didn't retrieve data . /1339800912.Didn't retrieve data . /1339800881.Didn't retrieve data . /1339800872.Didn't retrieve data . /1339800868.Didn't retrieve data . /1339800864.Didn't retrieve data . /1339800851.Didn't retrieve data . /1339800846.Didn't retrieve data . /1339800842.Didn't retrieve data . /1339800818.Didn't retrieve data . /1339800814.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, '2617818') ('4302', '20856900', '1339801146', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339801136', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339801128', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339801078', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800916', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800912', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800881', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800872', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800868', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800864', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800851', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800846', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800842', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800818', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800814', None, None, None, None, None, '2617818') 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', '20856900', '1339801146', '0.1169375491298784', None, None, None, None, '2617818'), ('4302', '20856900', '1339801136', '0.1169375491298784', None, None, None, None, '2617818'), ('4302', '20856900', '1339801128', '0.1169375491298784', None, None, None, None, '2617818'), ('4302', '20856900', '1339801078', '0.1169375491298784', None, None, None, None, '2617818'), ('4302', '20856900', '1339800916', '0.1169375491298784', None, None, None, None, '2617818'), ('4302', '20856900', '1339800912', '0.1169375491298784', None, None, None, None, '2617818'), ('4302', '20856900', '1339800881', '0.1169375491298784', None, None, None, None, '2617818'), ('4302', '20856900', '1339800872', '0.1169375491298784', None, None, None, None, '2617818'), ('4302', '20856900', '1339800868', '0.1169375491298784', None, None, None, None, '2617818'), ('4302', '20856900', '1339800864', '0.1169375491298784', None, None, None, None, '2617818'), ('4302', '20856900', '1339800851', '0.1169375491298784', None, None, None, None, '2617818'), ('4302', '20856900', '1339800846', '0.1169375491298784', None, None, None, None, '2617818'), ('4302', '20856900', '1339800842', '0.1169375491298784', None, None, None, None, '2617818'), ('4302', '20856900', '1339800818', '0.1169375491298784', None, None, None, None, '2617818'), ('4302', '20856900', '1339800814', '0.1169375491298784', None, None, None, None, '2617818')] time used for this insertion : 0.014327526092529297 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06441974639892578 time spend to save output : 0.0150299072265625 total time spend for step 2 : 0.07944965362548828 step3:velours_tree Wed Feb 26 22:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20856900: [{'metal': 20856925, 'environnement': 20856926, 'autre_refus': 20856927, 'plastique': 20856928, 'mal_croppe': 20856929, 'papier': 20856930, 'Carton_brun': 20856931, 'cartonnette': 20856932, 'kraft': 20856933, 'flou': 20856934, 'Carton_gris': 20856935, 'Teint_Dans_La_Masse': 20856936}]} input_args_next_step : {20856900: ()} output_args : {20856900: [{'metal': 20856925, 'environnement': 20856926, 'autre_refus': 20856927, 'plastique': 20856928, 'mal_croppe': 20856929, 'papier': 20856930, 'Carton_brun': 20856931, 'cartonnette': 20856932, 'kraft': 20856933, 'flou': 20856934, 'Carton_gris': 20856935, 'Teint_Dans_La_Masse': 20856936}]} args : 20856900 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 : ({'metal': 20856925, 'environnement': 20856926, 'autre_refus': 20856927, 'plastique': 20856928, 'mal_croppe': 20856929, 'papier': 20856930, 'Carton_brun': 20856931, 'cartonnette': 20856932, 'kraft': 20856933, 'flou': 20856934, 'Carton_gris': 20856935, 'Teint_Dans_La_Masse': 20856936},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20856900) 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([20856900]) 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.28733134269714355 time spend to save output : 4.2438507080078125e-05 total time spend for step 3 : 0.28737378120422363 step4:send_mail_cod Wed Feb 26 22:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ('0.1169375491298784',), 1339800814: ('0.1169375491298784',)} input_args_next_step : {1339801146: ()} output_args : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ('0.1169375491298784',), 1339800814: ('0.1169375491298784',)} args : 1339801146 depend.output_id : 0 input_args_next_step : {1339801146: ('0.1169375491298784',), 1339801136: ()} output_args : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ('0.1169375491298784',), 1339800814: ('0.1169375491298784',)} args : 1339801136 depend.output_id : 0 input_args_next_step : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ()} output_args : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ('0.1169375491298784',), 1339800814: ('0.1169375491298784',)} args : 1339801128 depend.output_id : 0 input_args_next_step : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ()} output_args : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ('0.1169375491298784',), 1339800814: ('0.1169375491298784',)} args : 1339801078 depend.output_id : 0 input_args_next_step : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ()} output_args : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ('0.1169375491298784',), 1339800814: ('0.1169375491298784',)} args : 1339800916 depend.output_id : 0 input_args_next_step : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ()} output_args : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ('0.1169375491298784',), 1339800814: ('0.1169375491298784',)} args : 1339800912 depend.output_id : 0 input_args_next_step : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ()} output_args : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ('0.1169375491298784',), 1339800814: ('0.1169375491298784',)} args : 1339800881 depend.output_id : 0 input_args_next_step : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ()} output_args : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ('0.1169375491298784',), 1339800814: ('0.1169375491298784',)} args : 1339800872 depend.output_id : 0 input_args_next_step : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ()} output_args : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ('0.1169375491298784',), 1339800814: ('0.1169375491298784',)} args : 1339800868 depend.output_id : 0 input_args_next_step : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ()} output_args : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ('0.1169375491298784',), 1339800814: ('0.1169375491298784',)} args : 1339800864 depend.output_id : 0 input_args_next_step : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ()} output_args : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ('0.1169375491298784',), 1339800814: ('0.1169375491298784',)} args : 1339800851 depend.output_id : 0 input_args_next_step : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ()} output_args : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ('0.1169375491298784',), 1339800814: ('0.1169375491298784',)} args : 1339800846 depend.output_id : 0 input_args_next_step : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ()} output_args : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ('0.1169375491298784',), 1339800814: ('0.1169375491298784',)} args : 1339800842 depend.output_id : 0 input_args_next_step : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ()} output_args : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ('0.1169375491298784',), 1339800814: ('0.1169375491298784',)} args : 1339800818 depend.output_id : 0 input_args_next_step : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ('0.1169375491298784',), 1339800814: ()} output_args : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ('0.1169375491298784',), 1339800814: ('0.1169375491298784',)} args : 1339800814 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 : {20856900: [{'metal': 20856925, 'environnement': 20856926, 'autre_refus': 20856927, 'plastique': 20856928, 'mal_croppe': 20856929, 'papier': 20856930, 'Carton_brun': 20856931, 'cartonnette': 20856932, 'kraft': 20856933, 'flou': 20856934, 'Carton_gris': 20856935, 'Teint_Dans_La_Masse': 20856936}]} input_args_next_step : {1339801146: ('0.1169375491298784',), 1339801136: ('0.1169375491298784',), 1339801128: ('0.1169375491298784',), 1339801078: ('0.1169375491298784',), 1339800916: ('0.1169375491298784',), 1339800912: ('0.1169375491298784',), 1339800881: ('0.1169375491298784',), 1339800872: ('0.1169375491298784',), 1339800868: ('0.1169375491298784',), 1339800864: ('0.1169375491298784',), 1339800851: ('0.1169375491298784',), 1339800846: ('0.1169375491298784',), 1339800842: ('0.1169375491298784',), 1339800818: ('0.1169375491298784',), 1339800814: ('0.1169375491298784',), 20856900: ()} output_args : {20856900: [{'metal': 20856925, 'environnement': 20856926, 'autre_refus': 20856927, 'plastique': 20856928, 'mal_croppe': 20856929, 'papier': 20856930, 'Carton_brun': 20856931, 'cartonnette': 20856932, 'kraft': 20856933, 'flou': 20856934, 'Carton_gris': 20856935, 'Teint_Dans_La_Masse': 20856936}]} args : 20856900 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.1169375491298784',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20856900) 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 (1339801146,1339801136,1339801128,1339801078,1339800916,1339800912,1339800881,1339800872,1339800868,1339800864,1339800851,1339800846,1339800842,1339800818,1339800814) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339800814 begin to download photo : 1339800851 begin to download photo : 1339800881 begin to download photo : 1339801128 download finish for photo 1339801128 begin to download photo : 1339801136 download finish for photo 1339800881 begin to download photo : 1339800912 download finish for photo 1339800851 begin to download photo : 1339800864 download finish for photo 1339800814 begin to download photo : 1339800818 download finish for photo 1339801136 begin to download photo : 1339801146 download finish for photo 1339800864 begin to download photo : 1339800868 download finish for photo 1339800912 begin to download photo : 1339800916 download finish for photo 1339800818 begin to download photo : 1339800842 download finish for photo 1339801146 download finish for photo 1339800916 begin to download photo : 1339801078 download finish for photo 1339800868 begin to download photo : 1339800872 download finish for photo 1339800842 begin to download photo : 1339800846 download finish for photo 1339801078 download finish for photo 1339800872 download finish for photo 1339800846 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette208569251740604500/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P20856900_26-02-2025_22_15_00.pdf 20856925 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=20856925 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208569251740604500 20856927 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=20856927 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339800538: '1740603871_76632_1339800313_f3099870bff39f77525f890ae9c6f187_rle_crop_3687957707_0.png', 1339800823: '1740604073_80116_1339800757_269deea2f0b3cfc486e2dfa35cf4af85_rle_crop_3687959003_0.png', 1339800877: '1740604172_81690_1339800802_a9d2b1f807b6952c33a12f1bfd926b24_rle_crop_3687960112_0.png', 1339800878: '1740604172_81690_1339800802_a9d2b1f807b6952c33a12f1bfd926b24_rle_crop_3687960111_0.png', 1339800879: '1740604172_81690_1339800799_c41757e8d0295a3f903126b0fc9c87d8_rle_crop_3687960117_0.png', 1339800880: '1740604172_81690_1339800795_0fc1f8d06a0b48cb1f0bd3af804cac92_rle_crop_3687960131_0.png', 1339801153: '1740604373_85013_1339800851_6fafccd2ea4ffad12eb0c3406597d242_rle_crop_3687961711_0.png', 1339801154: '1740604373_85013_1339800814_cbb8f269f148f7db3c80022588d760e9_rle_crop_3687961751_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/b45c56a237aada8d4bad6e5704d62ec7_10793779.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/70ff191ee03bb8747d80c38f5eb92655_19432884.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/3613bcfd1b948ffa91871733768e6cfb_64194362.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/2b1a6e3f9c348804ae846ac3426e973b_89159774.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/63a0897746329cb483166daf1bf5e27a_12559891.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/d99603e165d8287c08725fdf348c27b1_28299948.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/dfe246f2333b5229dfa281f54ff9757e_44150937.png change filename to text .imagette208569271740604500/ imagette208569271740604500/1740604172_81690_1339800802_a9d2b1f807b6952c33a12f1bfd926b24_rle_crop_3687960112_0.png.png imagette208569271740604500/1740604172_81690_1339800795_0fc1f8d06a0b48cb1f0bd3af804cac92_rle_crop_3687960131_0.png.png imagette208569271740604500/1740604373_85013_1339800814_cbb8f269f148f7db3c80022588d760e9_rle_crop_3687961751_0.png.png imagette208569271740604500/1740604373_85013_1339800851_6fafccd2ea4ffad12eb0c3406597d242_rle_crop_3687961711_0.png.png imagette208569271740604500/1740604073_80116_1339800757_269deea2f0b3cfc486e2dfa35cf4af85_rle_crop_3687959003_0.png.png imagette208569271740604500/1740604172_81690_1339800799_c41757e8d0295a3f903126b0fc9c87d8_rle_crop_3687960117_0.png.png imagette208569271740604500/1740603871_76632_1339800313_f3099870bff39f77525f890ae9c6f187_rle_crop_3687957707_0.png.png imagette208569271740604500/1740604172_81690_1339800802_a9d2b1f807b6952c33a12f1bfd926b24_rle_crop_3687960111_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/c79d5b74dcd1cf5fc158cac47796606b_14646393.png imagette208569271740604500 20856928 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=20856928 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339800891: '1740604172_81690_1339800802_a9d2b1f807b6952c33a12f1bfd926b24_rle_crop_3687960107_0.png', 1339800892: '1740604172_81690_1339800802_a9d2b1f807b6952c33a12f1bfd926b24_rle_crop_3687960103_0.png', 1339800893: '1740604172_81690_1339800799_c41757e8d0295a3f903126b0fc9c87d8_rle_crop_3687960120_0.png', 1339801119: '1740604332_84096_1339800868_94e6ccf0329b649866751211d4e74b4d_rle_crop_3687961467_0.png', 1339801121: '1740604332_84096_1339800864_b88b7533ce224f8ecd08ad78331c331a_rle_crop_3687961597_0.png', 1339801143: '1740604353_84653_1339800881_e447dd66fc8ad044d56d06c3d9dae21b_rle_crop_3687961604_0.png', 1339801163: '1740604373_85013_1339800814_cbb8f269f148f7db3c80022588d760e9_rle_crop_3687961729_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/02e23286fc0da42e64298b0185e08a6c_44869282.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/4738f45696fabbc422d1c9bd7f23b22a_47804429.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/e86844a7398d6cc55f6c63894c960b5d_49908926.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/98092d606e3ee5fb321b4feff07a6056_93162591.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/fa81a1bb3d8cf87eca7a7dbd0e4f8c2b_83765779.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/6c2e767584d01f78df40c47dd3c92b3f_60386959.png change filename to text .imagette208569281740604501/ imagette208569281740604501/1740604172_81690_1339800802_a9d2b1f807b6952c33a12f1bfd926b24_rle_crop_3687960103_0.png.png imagette208569281740604501/1740604332_84096_1339800864_b88b7533ce224f8ecd08ad78331c331a_rle_crop_3687961597_0.png.png imagette208569281740604501/1740604332_84096_1339800868_94e6ccf0329b649866751211d4e74b4d_rle_crop_3687961467_0.png.png imagette208569281740604501/1740604373_85013_1339800814_cbb8f269f148f7db3c80022588d760e9_rle_crop_3687961729_0.png.png imagette208569281740604501/1740604353_84653_1339800881_e447dd66fc8ad044d56d06c3d9dae21b_rle_crop_3687961604_0.png.png imagette208569281740604501/1740604172_81690_1339800799_c41757e8d0295a3f903126b0fc9c87d8_rle_crop_3687960120_0.png.png imagette208569281740604501/1740604172_81690_1339800802_a9d2b1f807b6952c33a12f1bfd926b24_rle_crop_3687960107_0.png.png imagette208569291740604501/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/816e3bf4566925033623cc0b20bdbef9_67821008.png imagette208569281740604501 20856929 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=20856929 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208569291740604501 20856932 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=20856932 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339800524: '1740603854_76223_1339800075_29707e1baffd0cfc228668053d912765_rle_crop_3687957673_0.png', 1339800825: '1740604073_80116_1339800757_269deea2f0b3cfc486e2dfa35cf4af85_rle_crop_3687959011_0.png', 1339801109: '1740604332_84096_1339800872_0795c16ac87da726d4464b2ec2546417_rle_crop_3687961447_0.png', 1339801110: '1740604332_84096_1339800868_94e6ccf0329b649866751211d4e74b4d_rle_crop_3687961456_0.png', 1339801138: '1740604353_84653_1339800842_d04c6ecc65adabf206e1715525f0aee1_rle_crop_3687961692_0.png', 1339801139: '1740604353_84653_1339800842_d04c6ecc65adabf206e1715525f0aee1_rle_crop_3687961695_0.png', 1339801161: '1740604373_85013_1339800851_6fafccd2ea4ffad12eb0c3406597d242_rle_crop_3687961709_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/dbb51cb03fccd237eb381be7907c1efb_24519188.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/1d69f2a6da9eab4b02d38266bec4611f_5200006.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/6a8ef9d066d0c1ee817e1d024180c850_91656170.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/18a10b4b1fd0c4a6f7fbc1fcb889913d_11845636.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/a07beeccc1f3ed2212d5e477a7e4f543_37149142.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/7d04875345d4d80bd9a8bcee388ca677_60606675.png change filename to text .imagette208569321740604501/ imagette208569321740604501/1740604073_80116_1339800757_269deea2f0b3cfc486e2dfa35cf4af85_rle_crop_3687959011_0.png.png imagette208569321740604501/1740604373_85013_1339800851_6fafccd2ea4ffad12eb0c3406597d242_rle_crop_3687961709_0.png.png imagette208569321740604501/1740604332_84096_1339800872_0795c16ac87da726d4464b2ec2546417_rle_crop_3687961447_0.png.png imagette208569321740604501/1740604353_84653_1339800842_d04c6ecc65adabf206e1715525f0aee1_rle_crop_3687961692_0.png.png imagette208569321740604501/1740604353_84653_1339800842_d04c6ecc65adabf206e1715525f0aee1_rle_crop_3687961695_0.png.png imagette208569321740604501/1740604332_84096_1339800868_94e6ccf0329b649866751211d4e74b4d_rle_crop_3687961456_0.png.png imagette208569321740604501/1740603854_76223_1339800075_29707e1baffd0cfc228668053d912765_rle_crop_3687957673_0.png.png imagette208569331740604501/ imagette208569341740604501/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/afe93eb2cbf1fb7e7728a72c52c4c426_99031968.png imagette208569321740604501 20856933 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=20856933 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208569331740604501 20856934 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=20856934 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208569341740604501 20856931 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=20856931 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339800826: '1740604073_80116_1339800757_269deea2f0b3cfc486e2dfa35cf4af85_rle_crop_3687959009_0.png', 1339800827: '1740604073_80116_1339800757_269deea2f0b3cfc486e2dfa35cf4af85_rle_crop_3687959017_0.png', 1339800828: '1740604073_80116_1339800545_59930e705466d6f0d78129343ed1a224_rle_crop_3687959036_0.png', 1339800889: '1740604172_81690_1339800790_ddd774facb5e99c7b4ad310b910c11ed_rle_crop_3687960153_0.png', 1339800890: '1740604172_81690_1339800790_ddd774facb5e99c7b4ad310b910c11ed_rle_crop_3687960151_0.png', 1339801112: '1740604332_84096_1339800868_94e6ccf0329b649866751211d4e74b4d_rle_crop_3687961469_0.png', 1339801113: '1740604332_84096_1339800868_94e6ccf0329b649866751211d4e74b4d_rle_crop_3687961457_0.png', 1339801114: '1740604332_84096_1339800864_b88b7533ce224f8ecd08ad78331c331a_rle_crop_3687961593_0.png', 1339801115: '1740604332_84096_1339800864_b88b7533ce224f8ecd08ad78331c331a_rle_crop_3687961586_0.png', 1339801140: '1740604353_84653_1339800846_47c7d089afa3b67f304bf5cb7d68d296_rle_crop_3687961676_0.png', 1339801141: '1740604353_84653_1339800842_d04c6ecc65adabf206e1715525f0aee1_rle_crop_3687961693_0.png', 1339801162: '1740604373_85013_1339800814_cbb8f269f148f7db3c80022588d760e9_rle_crop_3687961744_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/a598758d0891f23bb0c267ca4791d46c_96291339.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/45d1391069885d9ab318eec6edb657ce_27291716.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/0ded8fc77a6a6f182df820bb8fd9928d_34435033.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/4c9669575865c74e4b0d66f28d0ab521_5760102.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/09f43225676ce919fc130e3e9ae90ff5_23649704.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/96df8ebd478bc5fb5398c6f9afe66e57_61369097.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/4c90180be203d3b4703a135e04bdb91a_84524362.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/c6b075b1942228912a3044f3e024044e_68523304.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/a10c7d5ef327ecd061f1dac7c0c4c69a_91353395.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/a41d88ad7516a4692d08b248815fe2f6_94378759.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/f766dc42f4927e16538892af698e5891_61669792.png change filename to text .imagette208569311740604501/ imagette208569311740604501/1740604332_84096_1339800868_94e6ccf0329b649866751211d4e74b4d_rle_crop_3687961469_0.png.png imagette208569311740604501/1740604073_80116_1339800757_269deea2f0b3cfc486e2dfa35cf4af85_rle_crop_3687959017_0.png.png imagette208569311740604501/1740604373_85013_1339800814_cbb8f269f148f7db3c80022588d760e9_rle_crop_3687961744_0.png.png imagette208569311740604501/1740604332_84096_1339800868_94e6ccf0329b649866751211d4e74b4d_rle_crop_3687961457_0.png.png imagette208569311740604501/1740604172_81690_1339800790_ddd774facb5e99c7b4ad310b910c11ed_rle_crop_3687960153_0.png.png imagette208569311740604501/1740604353_84653_1339800846_47c7d089afa3b67f304bf5cb7d68d296_rle_crop_3687961676_0.png.png imagette208569311740604501/1740604172_81690_1339800790_ddd774facb5e99c7b4ad310b910c11ed_rle_crop_3687960151_0.png.png imagette208569311740604501/1740604073_80116_1339800545_59930e705466d6f0d78129343ed1a224_rle_crop_3687959036_0.png.png imagette208569311740604501/1740604353_84653_1339800842_d04c6ecc65adabf206e1715525f0aee1_rle_crop_3687961693_0.png.png imagette208569311740604501/1740604332_84096_1339800864_b88b7533ce224f8ecd08ad78331c331a_rle_crop_3687961593_0.png.png imagette208569311740604501/1740604332_84096_1339800864_b88b7533ce224f8ecd08ad78331c331a_rle_crop_3687961586_0.png.png imagette208569311740604501/1740604073_80116_1339800757_269deea2f0b3cfc486e2dfa35cf4af85_rle_crop_3687959009_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/bde93731347474886d6d6192ed996362_46084222.png imagette208569311740604501 20856935 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=20856935 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339800760: '1740603953_77981_1339800517_da428ecf3e4c7b93f77dae49ee934c5d_rle_crop_3687958176_0.png', 1339800882: '1740604172_81690_1339800802_a9d2b1f807b6952c33a12f1bfd926b24_rle_crop_3687960113_0.png', 1339800883: '1740604172_81690_1339800802_a9d2b1f807b6952c33a12f1bfd926b24_rle_crop_3687960104_0.png', 1339800884: '1740604172_81690_1339800799_c41757e8d0295a3f903126b0fc9c87d8_rle_crop_3687960124_0.png', 1339800885: '1740604172_81690_1339800795_0fc1f8d06a0b48cb1f0bd3af804cac92_rle_crop_3687960136_0.png', 1339801135: '1740604353_84653_1339800846_47c7d089afa3b67f304bf5cb7d68d296_rle_crop_3687961670_0.png', 1339801156: '1740604373_85013_1339800851_6fafccd2ea4ffad12eb0c3406597d242_rle_crop_3687961713_0.png', 1339801157: '1740604373_85013_1339800851_6fafccd2ea4ffad12eb0c3406597d242_rle_crop_3687961719_0.png', 1339801158: '1740604373_85013_1339800814_cbb8f269f148f7db3c80022588d760e9_rle_crop_3687961742_0.png', 1339801159: '1740604373_85013_1339800814_cbb8f269f148f7db3c80022588d760e9_rle_crop_3687961740_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/b0c9e73e2f41ffd42f047960c20aa1b6_90699981.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/14afb1966bab6492e7646c12c3cc7950_29992178.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/dd78575d223afce43d17a1b838062691_78981883.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/c723560a5afebef82bee78feeb8f2651_77366552.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/e2fc665d7810dc89f9395e96328bc34c_69028795.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/e5b037de1f88e44fece0fe672da3ef95_40001803.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/e060da9a6105e0963db9f9dffc9b05d3_24829409.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/8a39c11919c1e38edd0d61905c1f8f4d_66150649.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/6f74efa80ad65bbe65ab815c9d54fe8b_78723283.png change filename to text .imagette208569351740604502/ imagette208569351740604502/1740604353_84653_1339800846_47c7d089afa3b67f304bf5cb7d68d296_rle_crop_3687961670_0.png.png imagette208569351740604502/1740604172_81690_1339800802_a9d2b1f807b6952c33a12f1bfd926b24_rle_crop_3687960113_0.png.png imagette208569351740604502/1740604373_85013_1339800851_6fafccd2ea4ffad12eb0c3406597d242_rle_crop_3687961719_0.png.png imagette208569351740604502/1740604373_85013_1339800851_6fafccd2ea4ffad12eb0c3406597d242_rle_crop_3687961713_0.png.png imagette208569351740604502/1740604172_81690_1339800795_0fc1f8d06a0b48cb1f0bd3af804cac92_rle_crop_3687960136_0.png.png imagette208569351740604502/1740604373_85013_1339800814_cbb8f269f148f7db3c80022588d760e9_rle_crop_3687961742_0.png.png imagette208569351740604502/1740604373_85013_1339800814_cbb8f269f148f7db3c80022588d760e9_rle_crop_3687961740_0.png.png imagette208569351740604502/1740604172_81690_1339800802_a9d2b1f807b6952c33a12f1bfd926b24_rle_crop_3687960104_0.png.png imagette208569351740604502/1740603953_77981_1339800517_da428ecf3e4c7b93f77dae49ee934c5d_rle_crop_3687958176_0.png.png imagette208569351740604502/1740604172_81690_1339800799_c41757e8d0295a3f903126b0fc9c87d8_rle_crop_3687960124_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/53beeb756bfe9f6e34bb57af9ea10746_69071780.png imagette208569351740604502 20856936 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=20856936 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339800819: '1740604073_80116_1339800551_922263f26b9397a60ab8e3406321d2ea_rle_crop_3687959029_0.png', 1339800820: '1740604073_80116_1339800545_59930e705466d6f0d78129343ed1a224_rle_crop_3687959038_0.png', 1339800874: '1740604172_81690_1339800802_a9d2b1f807b6952c33a12f1bfd926b24_rle_crop_3687960108_0.png', 1339801108: '1740604332_84096_1339800872_0795c16ac87da726d4464b2ec2546417_rle_crop_3687961448_0.png', 1339801132: '1740604353_84653_1339800881_e447dd66fc8ad044d56d06c3d9dae21b_rle_crop_3687961603_0.png', 1339801133: '1740604353_84653_1339800842_d04c6ecc65adabf206e1715525f0aee1_rle_crop_3687961697_0.png', 1339801152: '1740604373_85013_1339800851_6fafccd2ea4ffad12eb0c3406597d242_rle_crop_3687961717_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/b7649ba4dfddd291d92fa319f1a367d2_77217266.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/48ae93c0e91244d2585642f01f22b36c_27942957.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/e3dd545bdc79c2bd8262c93a5c97432a_97007107.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/8870e8202386efca3fbcb67784771cb5_88188777.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/529371e6de596babfe6e7c99efad4da3_60162903.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/8d17a05d5e5ff9c91ce0de81460f381f_76962690.png change filename to text .imagette208569361740604503/ imagette208569361740604503/1740604332_84096_1339800872_0795c16ac87da726d4464b2ec2546417_rle_crop_3687961448_0.png.png imagette208569361740604503/1740604073_80116_1339800551_922263f26b9397a60ab8e3406321d2ea_rle_crop_3687959029_0.png.png imagette208569361740604503/1740604172_81690_1339800802_a9d2b1f807b6952c33a12f1bfd926b24_rle_crop_3687960108_0.png.png imagette208569361740604503/1740604353_84653_1339800842_d04c6ecc65adabf206e1715525f0aee1_rle_crop_3687961697_0.png.png imagette208569361740604503/1740604073_80116_1339800545_59930e705466d6f0d78129343ed1a224_rle_crop_3687959038_0.png.png imagette208569361740604503/1740604353_84653_1339800881_e447dd66fc8ad044d56d06c3d9dae21b_rle_crop_3687961603_0.png.png imagette208569361740604503/1740604373_85013_1339800851_6fafccd2ea4ffad12eb0c3406597d242_rle_crop_3687961717_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/24eb04f699567df4f2418ace1f5084e1_89862080.png imagette208569361740604503 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20856900 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20856937,20856938,20856939,20856940,20856941,20856942,20856943,20856944,20856945,20856946,20856947,20856948?tags=metal,environnement,autre_refus,plastique,mal_croppe,papier,Carton_brun,cartonnette,kraft,flou,Carton_gris,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1339801146] : ('0.1169375491298784',) no score found for photo 1339801146 We are sending mail with results at report@fotonower.com args[1339801136] : ('0.1169375491298784',) no score found for photo 1339801136 We are sending mail with results at report@fotonower.com args[1339801128] : ('0.1169375491298784',) no score found for photo 1339801128 We are sending mail with results at report@fotonower.com args[1339801078] : ('0.1169375491298784',) no score found for photo 1339801078 We are sending mail with results at report@fotonower.com args[1339800916] : ('0.1169375491298784',) no score found for photo 1339800916 We are sending mail with results at report@fotonower.com args[1339800912] : ('0.1169375491298784',) no score found for photo 1339800912 We are sending mail with results at report@fotonower.com args[1339800881] : ('0.1169375491298784',) no score found for photo 1339800881 We are sending mail with results at report@fotonower.com args[1339800872] : ('0.1169375491298784',) no score found for photo 1339800872 We are sending mail with results at report@fotonower.com args[1339800868] : ('0.1169375491298784',) no score found for photo 1339800868 We are sending mail with results at report@fotonower.com args[1339800864] : ('0.1169375491298784',) no score found for photo 1339800864 We are sending mail with results at report@fotonower.com args[1339800851] : ('0.1169375491298784',) no score found for photo 1339800851 We are sending mail with results at report@fotonower.com args[1339800846] : ('0.1169375491298784',) no score found for photo 1339800846 We are sending mail with results at report@fotonower.com args[1339800842] : ('0.1169375491298784',) no score found for photo 1339800842 We are sending mail with results at report@fotonower.com args[1339800818] : ('0.1169375491298784',) no score found for photo 1339800818 We are sending mail with results at report@fotonower.com args[1339800814] : ('0.1169375491298784',) no score found for photo 1339800814 We are sending mail with results at report@fotonower.com refus_total : 0.1169375491298784 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=20856900 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_P20856900_26-02-2025_22_15_00.pdf results_Auto_P20856900_26-02-2025_22_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20856900_26-02-2025_22_15_00.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','20856900','results_Auto_P20856900_26-02-2025_22_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20856900_26-02-2025_22_15_00.pdf','pdf','','0.28','0.1169375491298784') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20856900]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339801146, 1339801136, 1339801128, 1339801078, 1339800916, 1339800912, 1339800881, 1339800872, 1339800868, 1339800864, 1339800851, 1339800846, 1339800842, 1339800818, 1339800814] map_info['map_portfolio_photo'] : {20856900: [1339801146, 1339801136, 1339801128, 1339801078, 1339800916, 1339800912, 1339800881, 1339800872, 1339800868, 1339800864, 1339800851, 1339800846, 1339800842, 1339800818, 1339800814, 1339800804, 1339800802, 1339800799, 1339800795, 1339800790, 1339800757, 1339800603, 1339800551, 1339800545, 1339800520, 1339800517, 1339800506, 1339800313, 1339800309, 1339800075, 1339800065, 1339800015]} final : False mtd_id 4302 list_pids : [1339801146, 1339801136, 1339801128, 1339801078, 1339800916, 1339800912, 1339800881, 1339800872, 1339800868, 1339800864, 1339800851, 1339800846, 1339800842, 1339800818, 1339800814] 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, '2617818') ('4302', '20856900', '1339801146', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339801136', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339801128', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339801078', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800916', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800912', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800881', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800872', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800868', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800864', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800851', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800846', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800842', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800818', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800814', None, None, None, None, None, '2617818') 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', '20856900', '1339801146', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339801136', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339801128', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339801078', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800916', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800912', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800881', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800872', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800868', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800864', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800851', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800846', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800842', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800818', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800814', None, None, None, None, None, '2617818')] time used for this insertion : 0.013701915740966797 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.5255773067474365 time spend to save output : 0.013941287994384766 total time spend for step 4 : 4.539518594741821 step5:split_time_score Wed Feb 26 22:15:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20856900'] 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 : [('20856900',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20856900) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339801128: {'path': 'temp/1740604500_519903_1339801128_92b073359b0cfb7e09e6e5c4fb28881c.jpg', 'extension': 'jpg'}, 1339801136: {'path': 'temp/1740604500_519903_1339801136_461b55c927953a30fdec46b4ea5fe7a2.jpg', 'extension': 'jpg'}, 1339801146: {'path': 'temp/1740604500_519903_1339801146_0a4f8b84729d42f36d9f3f258f8105ba.jpg', 'extension': 'jpg'}, 1339800881: {'path': 'temp/1740604500_519903_1339800881_e447dd66fc8ad044d56d06c3d9dae21b.jpg', 'extension': 'jpg'}, 1339800912: {'path': 'temp/1740604500_519903_1339800912_c34804d8dc69477a0692c0968f4c8b33.jpg', 'extension': 'jpg'}, 1339800916: {'path': 'temp/1740604500_519903_1339800916_86be23ae105f9f769dfce60795c0bd83.jpg', 'extension': 'jpg'}, 1339801078: {'path': 'temp/1740604500_519903_1339801078_170011ab5a1cbf45ec8c085a5a4932c9.jpg', 'extension': 'jpg'}, 1339800851: {'path': 'temp/1740604500_519903_1339800851_6fafccd2ea4ffad12eb0c3406597d242.jpg', 'extension': 'jpg'}, 1339800864: {'path': 'temp/1740604500_519903_1339800864_b88b7533ce224f8ecd08ad78331c331a.jpg', 'extension': 'jpg'}, 1339800868: {'path': 'temp/1740604500_519903_1339800868_94e6ccf0329b649866751211d4e74b4d.jpg', 'extension': 'jpg'}, 1339800872: {'path': 'temp/1740604500_519903_1339800872_0795c16ac87da726d4464b2ec2546417.jpg', 'extension': 'jpg'}, 1339800814: {'path': 'temp/1740604500_519903_1339800814_cbb8f269f148f7db3c80022588d760e9.jpg', 'extension': 'jpg'}, 1339800818: {'path': 'temp/1740604500_519903_1339800818_9779c56d5b99ac2c53089418b2790d4a.jpg', 'extension': 'jpg'}, 1339800842: {'path': 'temp/1740604500_519903_1339800842_d04c6ecc65adabf206e1715525f0aee1.jpg', 'extension': 'jpg'}, 1339800846: {'path': 'temp/1740604500_519903_1339800846_47c7d089afa3b67f304bf5cb7d68d296.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 = 20856900; (('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 = 20856900 group by h (('22', 32),) 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=20856900 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 (20856900) 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 (20856900) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26022025 20856900 Nombre de photos uploadées : 32 / 23040 (0%) 26022025 20856900 Nombre de photos taguées (types de déchets): 0 / 32 (0%) 26022025 20856900 Nombre de photos taguées (volume) : 0 / 32 (0%) [{'photo_id': 1339800015, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/0c9d09d1935bead965a1e1c7e0ee1dfb.jpg', 'username': None, 'uploaded_at': 1740603696, 'text': 'image_26022025_22_00_14_010210m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339800313, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/f3099870bff39f77525f890ae9c6f187.jpg', 'username': None, 'uploaded_at': 1740603756, 'text': 'image_26022025_22_00_45_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339800309, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/8db319560425daf9d9975aa103cdcc3d.jpg', 'username': None, 'uploaded_at': 1740603756, 'text': 'image_26022025_22_01_14_9125.jpg'}, {'photo_id': 1339800075, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/29707e1baffd0cfc228668053d912765.jpg', 'username': None, 'uploaded_at': 1740603756, 'text': 'image_26022025_22_01_24_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ???????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0014660358428955078 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20856900, '2025-02-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1624425,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022405385971069336 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= 1624425 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634315, 'mtr_portfolio_id': 20855468, 'dashboard_result_id': 9086137, '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_P20855468_26-02-2025_21_33_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20855469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20855470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20855471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20855472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20855473, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20855474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20855475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20855476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20855477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20855478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20855479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20855480, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634315, 'mtr_portfolio_id': 20856043, 'dashboard_result_id': 9086138, '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_P20856043_26-02-2025_21_54_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20856044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20856045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20856046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20856047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20856048, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20856049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20856050, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20856051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20856052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20856053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20856054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20856055, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634315, 'mtr_portfolio_id': 20856419, 'dashboard_result_id': 9086139, '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_P20856419_26-02-2025_22_05_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20856471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20856472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20856473, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20856474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20856475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20856476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20856477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20856478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20856479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20856480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20856481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20856482, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634315, 'mtr_portfolio_id': 20856900, 'dashboard_result_id': 9086140, '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_P20856900_26-02-2025_22_09_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20856925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20856926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20856927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20856928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20856929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20856930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20856931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20856932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20856933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20856934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20856935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20856936, '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 = 20855468 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': 2617726, 'mtr_portfolio_id': 20855468, 'created_at': datetime.datetime(2025, 2, 26, 21, 33, 28), 'result': '0.09852803363838154', 'result_long': None, 'result_double': None}] Qualite : 0.09852803363838154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20855468 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20855468_26-02-2025_21_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20855468 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_P20855468_26-02-2025_21_33_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20855469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20855470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20855471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20855472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20855473, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20855474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20855475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20855476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20855477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20855478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20855479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20855480, 'pht': 3726}}" where mtr_portfolio_id = 20855468 and dashboard_run_id = 1634315 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`=20855468 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9086137, 0.09852803363838154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20855468_26-02-2025_21_33_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20855469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20855470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20855471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20855472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20855473, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20855474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20855475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20855476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20855477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20855478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20855479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20855480, '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 = 20856043 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': 2617758, 'mtr_portfolio_id': 20856043, 'created_at': datetime.datetime(2025, 2, 26, 21, 54, 58), 'result': '0.09443002056884146', 'result_long': None, 'result_double': None}] Qualite : 0.09443002056884146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20856043 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20856043_26-02-2025_21_54_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20856043 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_P20856043_26-02-2025_21_54_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20856044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20856045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20856046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20856047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20856048, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20856049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20856050, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20856051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20856052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20856053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20856054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20856055, 'pht': 3726}}" where mtr_portfolio_id = 20856043 and dashboard_run_id = 1634315 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`=20856043 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9086138, 0.09443002056884146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20856043_26-02-2025_21_54_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20856044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20856045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20856046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20856047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20856048, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20856049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20856050, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20856051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20856052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20856053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20856054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20856055, '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 = 20856419 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': 2617788, 'mtr_portfolio_id': 20856419, 'created_at': datetime.datetime(2025, 2, 26, 22, 5), 'result': '0.10444942231048877', 'result_long': None, 'result_double': None}] Qualite : 0.10444942231048877 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20856419 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20856419_26-02-2025_22_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20856419 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_P20856419_26-02-2025_22_05_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20856471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20856472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20856473, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20856474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20856475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20856476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20856477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20856478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20856479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20856480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20856481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20856482, 'pht': 3726}}" where mtr_portfolio_id = 20856419 and dashboard_run_id = 1634315 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`=20856419 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9086139, 0.10444942231048877, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20856419_26-02-2025_22_05_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20856471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20856472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20856473, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20856474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20856475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20856476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20856477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20856478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20856479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20856480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20856481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20856482, '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 = 20856900 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': 2617818, 'mtr_portfolio_id': 20856900, 'created_at': datetime.datetime(2025, 2, 26, 22, 14, 59), 'result': '0.1169375491298784', 'result_long': None, 'result_double': None}] Qualite : 0.1169375491298784 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20856900 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20856900_26-02-2025_22_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20856900 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_P20856900_26-02-2025_22_15_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20856925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20856926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20856927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20856928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20856929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20856930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20856931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20856932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20856933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20856934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20856935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20856936, 'pht': 3726}}" where mtr_portfolio_id = 20856900 and dashboard_run_id = 1634315 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`=20856900 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9086140, 0.1169375491298784, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20856900_26-02-2025_22_15_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20856925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20856926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20856927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20856928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20856929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20856930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20856931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20856932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20856933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20856934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20856935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20856936, '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 (20855468,20856043,20856419,20856900) result : ((1339792047,), (1339792076,), (1339792082,), (1339792147,), (1339792553,), (1339793533,), (1339793538,), (1339793544,), (1339793549,), (1339793554,), (1339793614,), (1339793619,), (1339793632,), (1339793636,), (1339793640,), (1339793716,), (1339793802,), (1339793843,), (1339793916,), (1339793978,), (1339794220,), (1339794250,), (1339794261,), (1339794285,), (1339794295,), (1339794299,), (1339794324,), (1339794330,), (1339794334,), (1339794338,), (1339794359,), (1339794390,), (1339794396,), (1339794401,), (1339794406,), (1339794481,), (1339794487,), (1339794493,), (1339794499,), (1339794588,), (1339794613,), (1339794641,), (1339794646,), (1339794650,), (1339794688,), (1339794692,), (1339794696,), (1339794700,), (1339794721,), (1339794873,), (1339794876,), (1339794880,), (1339794881,), (1339794912,), (1339795201,), (1339795435,), (1339795439,), (1339795501,), (1339795505,), (1339795509,), (1339795513,), (1339795556,), (1339795577,), (1339795807,), (1339795813,), (1339796107,), (1339796116,), (1339796212,), (1339796218,), (1339796223,), (1339796255,), (1339796260,), (1339796341,), (1339796350,), (1339796356,), (1339796359,), (1339796444,), (1339796449,), (1339796484,), (1339796524,), (1339796617,), (1339796773,), (1339796727,), (1339796843,), (1339796854,), (1339796859,), (1339796882,), (1339796889,), (1339796894,), (1339796919,), (1339796926,), (1339796955,), (1339796961,), (1339797001,), (1339797014,), (1339797865,), (1339797872,), (1339797884,), (1339797890,), (1339797968,), (1339798413,), (1339798419,), (1339798556,), (1339798560,), (1339798882,), (1339798887,), (1339798891,), (1339798895,), (1339798940,), (1339798971,), (1339799762,), (1339799796,), (1339800020,), (1339800015,), (1339800065,), (1339800075,), (1339800309,), (1339800313,), (1339800506,), (1339800517,), (1339800520,), (1339800545,), (1339800551,), (1339800603,), (1339800757,), (1339800790,), (1339800795,), (1339800799,), (1339800802,), (1339800804,), (1339800814,), (1339800818,), (1339800842,), (1339800846,), (1339800851,), (1339800864,), (1339800868,), (1339800872,), (1339800881,), (1339800912,), (1339800916,), (1339801078,), (1339801128,), (1339801136,), (1339801146,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26022025': {'nb_upload': 32, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20856900]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339801146, 1339801136, 1339801128, 1339801078, 1339800916, 1339800912, 1339800881, 1339800872, 1339800868, 1339800864, 1339800851, 1339800846, 1339800842, 1339800818, 1339800814] map_info['map_portfolio_photo'] : {20856900: [1339801146, 1339801136, 1339801128, 1339801078, 1339800916, 1339800912, 1339800881, 1339800872, 1339800868, 1339800864, 1339800851, 1339800846, 1339800842, 1339800818, 1339800814, 1339800804, 1339800802, 1339800799, 1339800795, 1339800790, 1339800757, 1339800603, 1339800551, 1339800545, 1339800520, 1339800517, 1339800506, 1339800313, 1339800309, 1339800075, 1339800065, 1339800015]} final : True mtd_id 4302 list_pids : [1339801146, 1339801136, 1339801128, 1339801078, 1339800916, 1339800912, 1339800881, 1339800872, 1339800868, 1339800864, 1339800851, 1339800846, 1339800842, 1339800818, 1339800814] Looping around the photos to save general results len do output : 1 /20856900Didn'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, '2617818') ('4302', '20856900', '1339801146', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339801136', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339801128', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339801078', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800916', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800912', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800881', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800872', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800868', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800864', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800851', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800846', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800842', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800818', None, None, None, None, None, '2617818') ('4302', None, None, None, None, None, None, None, '2617818') ('4302', '20856900', '1339800814', None, None, None, None, None, '2617818') 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, '20856900', 'None', None, None, None, None, '2617818'), ('4302', '20856900', '1339801146', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339801136', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339801128', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339801078', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800916', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800912', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800881', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800872', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800868', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800864', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800851', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800846', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800842', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800818', None, None, None, None, None, '2617818'), ('4302', '20856900', '1339800814', None, None, None, None, None, '2617818')] time used for this insertion : 0.014934062957763672 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3217353820800781 time spend to save output : 0.01524662971496582 total time spend for step 5 : 0.33698201179504395 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 (2617818) 2.25user 2.57system 0:10.79elapsed 44%CPU (0avgtext+0avgdata 160420maxresident)k 2184inputs+17008outputs (26major+72859minor)pagefaults 0swaps