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 : 2895008 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 (2656633) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2656633) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21257252 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2656633'] with mtr_portfolio_ids : ['21257252'] and first list_photo_ids : [] new path : /proc/2895008/ Name: python3 Umask: 0002 State: R (running) Tgid: 2895008 Ngid: 0 Pid: 2895008 PPid: 2895007 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2895008 NSpid: 2895008 NSpgid: 2892399 NSsid: 2892399 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98540 kB VmRSS: 98540 kB RssAnon: 59752 kB RssFile: 38788 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 51 nonvoluntary_ctxt_switches: 106 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2895008', 'Ngid': '0', 'Pid': '2895008', 'PPid': '2895007', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2895008', 'NSpid': '2895008', 'NSpgid': '2892399', 'NSsid': '2892399', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98540 kB', 'VmRSS': '98540 kB', 'RssAnon': '59752 kB', 'RssFile': '38788 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '51', 'nonvoluntary_ctxt_switches': '106'} ('datou_batch_current', '2895008', '1106848', '0', '1106848', '865596', '98540', b'', 'marlene', '2656633') 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 (21257252) 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 (2656633 ) ) 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 (21257252) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1342819381, 'portfolio_id': 21257252}, {'photo_id': 1342819376, 'portfolio_id': 21257252}, {'photo_id': 1342819370, 'portfolio_id': 21257252}, {'photo_id': 1342819353, 'portfolio_id': 21257252}, {'photo_id': 1342819322, 'portfolio_id': 21257252}, {'photo_id': 1342819320, 'portfolio_id': 21257252}, {'photo_id': 1342819316, 'portfolio_id': 21257252}, {'photo_id': 1342819312, 'portfolio_id': 21257252}, {'photo_id': 1342819308, 'portfolio_id': 21257252}, {'photo_id': 1342819258, 'portfolio_id': 21257252}, {'photo_id': 1342819218, 'portfolio_id': 21257252}, {'photo_id': 1342819142, 'portfolio_id': 21257252}, {'photo_id': 1342819089, 'portfolio_id': 21257252}, {'photo_id': 1342819013, 'portfolio_id': 21257252}, {'photo_id': 1342818550, 'portfolio_id': 21257252}, {'photo_id': 1342818463, 'portfolio_id': 21257252}, {'photo_id': 1342818397, 'portfolio_id': 21257252}, {'photo_id': 1342818085, 'portfolio_id': 21257252}, {'photo_id': 1342817978, 'portfolio_id': 21257252}, {'photo_id': 1342817927, 'portfolio_id': 21257252}, {'photo_id': 1342817820, 'portfolio_id': 21257252}, {'photo_id': 1342817760, 'portfolio_id': 21257252}, {'photo_id': 1342816957, 'portfolio_id': 21257252}, {'photo_id': 1342816825, 'portfolio_id': 21257252}, {'photo_id': 1342816656, 'portfolio_id': 21257252}, {'photo_id': 1342816596, 'portfolio_id': 21257252}, {'photo_id': 1342815909, 'portfolio_id': 21257252}, {'photo_id': 1342815894, 'portfolio_id': 21257252}] map_portfolio_id_photo_id: {21257252: [1342819381, 1342819376, 1342819370, 1342819353, 1342819322, 1342819320, 1342819316, 1342819312, 1342819308, 1342819258, 1342819218, 1342819142, 1342819089, 1342819013, 1342818550, 1342818463, 1342818397, 1342818085, 1342817978, 1342817927, 1342817820, 1342817760, 1342816957, 1342816825, 1342816656, 1342816596, 1342815909, 1342815894]} ##### 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.015182018280029297 #### 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 Tue Mar 11 04:38:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21257252) 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 : 21257252 get user id for portfolio 21257252 get sub ptf for main ptf 21257252, type 3726 and hashtags ['papier', 'cartonnette', 'environnement', 'Carton_gris', 'flou', 'kraft', 'metal', 'mal_croppe', 'plastique', 'Carton_brun', 'autre_refus', 'Teint_Dans_La_Masse'] 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`=21257252 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','environnement','Carton_gris','flou','kraft','metal','mal_croppe','plastique','Carton_brun','autre_refus','Teint_Dans_La_Masse')) 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`=21257252 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','environnement','Carton_gris','flou','kraft','metal','mal_croppe','plastique','Carton_brun','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 21257252, 'sub_port_id': 21257269, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845258, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 34, 58)}, 'environnement': {'main_port_id': 21257252, 'sub_port_id': 21257270, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845259, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 34, 58)}, 'cartonnette': {'main_port_id': 21257252, 'sub_port_id': 21257271, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845260, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 34, 58)}, 'autre_refus': {'main_port_id': 21257252, 'sub_port_id': 21257272, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845261, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 34, 58)}, 'Carton_gris': {'main_port_id': 21257252, 'sub_port_id': 21257273, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845262, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 34, 58)}, 'mal_croppe': {'main_port_id': 21257252, 'sub_port_id': 21257274, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845263, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 34, 58)}, 'plastique': {'main_port_id': 21257252, 'sub_port_id': 21257275, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845264, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 34, 58)}, 'papier': {'main_port_id': 21257252, 'sub_port_id': 21257276, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845265, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 34, 58)}, 'flou': {'main_port_id': 21257252, 'sub_port_id': 21257277, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845266, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 34, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21257252, 'sub_port_id': 21257278, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845267, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 34, 58)}, 'metal': {'main_port_id': 21257252, 'sub_port_id': 21257279, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845268, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 34, 58)}, 'kraft': {'main_port_id': 21257252, 'sub_port_id': 21257280, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845269, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21257269 , 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=21257252 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 (21257269) result : ((1342819504,), (1342819505,), (1342819602,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21257252) result : ((1342815894,), (1342815909,), (1342816596,), (1342816656,), (1342816825,), (1342816957,), (1342817760,), (1342817820,), (1342817927,), (1342817978,), (1342818085,), (1342818397,), (1342818463,), (1342818550,), (1342819013,), (1342819089,), (1342819142,), (1342819218,), (1342819258,), (1342819308,), (1342819312,), (1342819316,), (1342819320,), (1342819322,), (1342819353,), (1342819370,), (1342819376,), (1342819381,)) 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 21257270 , 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=21257252 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 (21257270) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21257252) result : ((1342815894,), (1342815909,), (1342816596,), (1342816656,), (1342816825,), (1342816957,), (1342817760,), (1342817820,), (1342817927,), (1342817978,), (1342818085,), (1342818397,), (1342818463,), (1342818550,), (1342819013,), (1342819089,), (1342819142,), (1342819218,), (1342819258,), (1342819308,), (1342819312,), (1342819316,), (1342819320,), (1342819322,), (1342819353,), (1342819370,), (1342819376,), (1342819381,)) 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 21257271 , 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=21257252 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 (21257271) result : ((1342819339,), (1342819395,), (1342819396,), (1342819397,), (1342819398,), (1342819498,), (1342819592,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21257252) result : ((1342815894,), (1342815909,), (1342816596,), (1342816656,), (1342816825,), (1342816957,), (1342817760,), (1342817820,), (1342817927,), (1342817978,), (1342818085,), (1342818397,), (1342818463,), (1342818550,), (1342819013,), (1342819089,), (1342819142,), (1342819218,), (1342819258,), (1342819308,), (1342819312,), (1342819316,), (1342819320,), (1342819322,), (1342819353,), (1342819370,), (1342819376,), (1342819381,)) 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 21257272 , 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=21257252 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 (21257272) result : ((1342819336,), (1342819337,), (1342819390,), (1342819481,), (1342819483,), (1342819484,), (1342819566,), (1342819570,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21257252) result : ((1342815894,), (1342815909,), (1342816596,), (1342816656,), (1342816825,), (1342816957,), (1342817760,), (1342817820,), (1342817927,), (1342817978,), (1342818085,), (1342818397,), (1342818463,), (1342818550,), (1342819013,), (1342819089,), (1342819142,), (1342819218,), (1342819258,), (1342819308,), (1342819312,), (1342819316,), (1342819320,), (1342819322,), (1342819353,), (1342819370,), (1342819376,), (1342819381,)) 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 21257273 , 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=21257252 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 (21257273) result : ((1342819391,), (1342819392,), (1342819490,), (1342819491,), (1342819493,), (1342819582,), (1342819584,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21257252) result : ((1342815894,), (1342815909,), (1342816596,), (1342816656,), (1342816825,), (1342816957,), (1342817760,), (1342817820,), (1342817927,), (1342817978,), (1342818085,), (1342818397,), (1342818463,), (1342818550,), (1342819013,), (1342819089,), (1342819142,), (1342819218,), (1342819258,), (1342819308,), (1342819312,), (1342819316,), (1342819320,), (1342819322,), (1342819353,), (1342819370,), (1342819376,), (1342819381,)) 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 21257274 , 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=21257252 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 (21257274) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21257252) result : ((1342815894,), (1342815909,), (1342816596,), (1342816656,), (1342816825,), (1342816957,), (1342817760,), (1342817820,), (1342817927,), (1342817978,), (1342818085,), (1342818397,), (1342818463,), (1342818550,), (1342819013,), (1342819089,), (1342819142,), (1342819218,), (1342819258,), (1342819308,), (1342819312,), (1342819316,), (1342819320,), (1342819322,), (1342819353,), (1342819370,), (1342819376,), (1342819381,)) 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 21257275 , 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=21257252 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 (21257275) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21257252) result : ((1342815894,), (1342815909,), (1342816596,), (1342816656,), (1342816825,), (1342816957,), (1342817760,), (1342817820,), (1342817927,), (1342817978,), (1342818085,), (1342818397,), (1342818463,), (1342818550,), (1342819013,), (1342819089,), (1342819142,), (1342819218,), (1342819258,), (1342819308,), (1342819312,), (1342819316,), (1342819320,), (1342819322,), (1342819353,), (1342819370,), (1342819376,), (1342819381,)) 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 21257276 , 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=21257252 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 (21257276) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21257252) result : ((1342815894,), (1342815909,), (1342816596,), (1342816656,), (1342816825,), (1342816957,), (1342817760,), (1342817820,), (1342817927,), (1342817978,), (1342818085,), (1342818397,), (1342818463,), (1342818550,), (1342819013,), (1342819089,), (1342819142,), (1342819218,), (1342819258,), (1342819308,), (1342819312,), (1342819316,), (1342819320,), (1342819322,), (1342819353,), (1342819370,), (1342819376,), (1342819381,)) 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 21257277 , 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=21257252 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 (21257277) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21257252) result : ((1342815894,), (1342815909,), (1342816596,), (1342816656,), (1342816825,), (1342816957,), (1342817760,), (1342817820,), (1342817927,), (1342817978,), (1342818085,), (1342818397,), (1342818463,), (1342818550,), (1342819013,), (1342819089,), (1342819142,), (1342819218,), (1342819258,), (1342819308,), (1342819312,), (1342819316,), (1342819320,), (1342819322,), (1342819353,), (1342819370,), (1342819376,), (1342819381,)) 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 21257278 , 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=21257252 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 (21257278) result : ((1342819386,), (1342819387,), (1342819472,), (1342819547,), (1342819549,), (1342819550,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21257252) result : ((1342815894,), (1342815909,), (1342816596,), (1342816656,), (1342816825,), (1342816957,), (1342817760,), (1342817820,), (1342817927,), (1342817978,), (1342818085,), (1342818397,), (1342818463,), (1342818550,), (1342819013,), (1342819089,), (1342819142,), (1342819218,), (1342819258,), (1342819308,), (1342819312,), (1342819316,), (1342819320,), (1342819322,), (1342819353,), (1342819370,), (1342819376,), (1342819381,)) 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 21257279 , 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=21257252 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 (21257279) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21257252) result : ((1342815894,), (1342815909,), (1342816596,), (1342816656,), (1342816825,), (1342816957,), (1342817760,), (1342817820,), (1342817927,), (1342817978,), (1342818085,), (1342818397,), (1342818463,), (1342818550,), (1342819013,), (1342819089,), (1342819142,), (1342819218,), (1342819258,), (1342819308,), (1342819312,), (1342819316,), (1342819320,), (1342819322,), (1342819353,), (1342819370,), (1342819376,), (1342819381,)) 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 21257280 , 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=21257252 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 (21257280) result : ((1342819399,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21257252) result : ((1342815894,), (1342815909,), (1342816596,), (1342816656,), (1342816825,), (1342816957,), (1342817760,), (1342817820,), (1342817927,), (1342817978,), (1342818085,), (1342818397,), (1342818463,), (1342818550,), (1342819013,), (1342819089,), (1342819142,), (1342819218,), (1342819258,), (1342819308,), (1342819312,), (1342819316,), (1342819320,), (1342819322,), (1342819353,), (1342819370,), (1342819376,), (1342819381,)) 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`=21257252 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','environnement','Carton_gris','flou','kraft','metal','mal_croppe','plastique','Carton_brun','autre_refus','Teint_Dans_La_Masse')) 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`=21257252 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','environnement','Carton_gris','flou','kraft','metal','mal_croppe','plastique','Carton_brun','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 21257252, 'sub_port_id': 21257281, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845270, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 35)}, 'environnement': {'main_port_id': 21257252, 'sub_port_id': 21257282, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845271, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 35)}, 'cartonnette': {'main_port_id': 21257252, 'sub_port_id': 21257283, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845272, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 35)}, 'autre_refus': {'main_port_id': 21257252, 'sub_port_id': 21257284, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845273, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 35)}, 'Carton_gris': {'main_port_id': 21257252, 'sub_port_id': 21257285, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845274, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 35)}, 'mal_croppe': {'main_port_id': 21257252, 'sub_port_id': 21257286, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845275, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 35)}, 'plastique': {'main_port_id': 21257252, 'sub_port_id': 21257287, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845276, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 35)}, 'papier': {'main_port_id': 21257252, 'sub_port_id': 21257288, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845277, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 35)}, 'flou': {'main_port_id': 21257252, 'sub_port_id': 21257289, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845278, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 21257252, 'sub_port_id': 21257290, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845279, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 35)}, 'metal': {'main_port_id': 21257252, 'sub_port_id': 21257291, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845280, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 35)}, 'kraft': {'main_port_id': 21257252, 'sub_port_id': 21257292, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13845281, 'last_updated_at': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 4, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 4, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21257281,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21257269 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21257282,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21257270 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21257283,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21257271 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21257284,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21257272 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21257285,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21257273 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21257286,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21257274 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21257287,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21257275 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21257288,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21257276 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21257289,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21257277 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21257290,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21257278 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21257291,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21257279 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21257292,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21257280 lien utilise dans velours : https://www.fotonower.com/velours/21257281,21257282,21257283,21257284,21257285,21257286,21257287,21257288,21257289,21257290,21257291,21257292?tags=Carton_brun,environnement,cartonnette,autre_refus,Carton_gris,mal_croppe,plastique,papier,flou,Teint_Dans_La_Masse,metal,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21257252]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1342819381, 1342819376, 1342819370, 1342819353, 1342819322, 1342819320, 1342819316, 1342819312, 1342819308, 1342819258, 1342819218, 1342819142, 1342819089, 1342819013, 1342818550, 1342818463, 1342818397] map_info['map_portfolio_photo'] : {21257252: [1342819381, 1342819376, 1342819370, 1342819353, 1342819322, 1342819320, 1342819316, 1342819312, 1342819308, 1342819258, 1342819218, 1342819142, 1342819089, 1342819013, 1342818550, 1342818463, 1342818397, 1342818085, 1342817978, 1342817927, 1342817820, 1342817760, 1342816957, 1342816825, 1342816656, 1342816596, 1342815909, 1342815894]} final : False mtd_id 4302 list_pids : [1342819381, 1342819376, 1342819370, 1342819353, 1342819322, 1342819320, 1342819316, 1342819312, 1342819308, 1342819258, 1342819218, 1342819142, 1342819089, 1342819013, 1342818550, 1342818463, 1342818397] Looping around the photos to save general results len do output : 1 /21257252. 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, '2656633') ('4302', '21257252', '1342819381', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819376', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819370', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819353', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819322', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819320', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819316', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819312', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819308', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819258', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819218', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819142', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819089', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819013', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342818550', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342818463', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342818397', None, None, None, None, None, '2656633') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '21257252', "{'Carton_brun': 21257269, 'environnement': 21257270, 'cartonnette': 21257271, 'autre_refus': 21257272, 'Carton_gris': 21257273, 'mal_croppe': 21257274, 'plastique': 21257275, 'papier': 21257276, 'flou': 21257277, 'Teint_Dans_La_Masse': 21257278, 'metal': 21257279, 'kraft': 21257280}", None, None, None, None, '2656633'), ('4302', '21257252', '1342819381', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819376', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819370', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819353', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819322', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819320', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819316', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819312', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819308', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819258', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819218', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819142', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819089', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819013', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342818550', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342818463', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342818397', None, None, None, None, None, '2656633')] time used for this insertion : 0.017390966415405273 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.871265172958374 time spend to save output : 0.017801284790039062 total time spend for step 1 : 3.889066457748413 step2:final Tue Mar 11 04:39:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21257252) 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 21257252 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1342815909,1342815894,1342816957,1342816825,1342816656,1342816596,1342818085,1342817978,1342817927,1342817820,1342817760,1342818550,1342818463,1342818397,1342819258,1342819218,1342819142,1342819089,1342819013,1342819322,1342819320,1342819316,1342819312,1342819308,1342819381,1342819376,1342819370,1342819353); 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([21257252]) Inside saveOutput : final : False verbose : True original output for save of step final : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',)} new output for save of step final : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',)} [1342819381, 1342819376, 1342819370, 1342819353, 1342819322, 1342819320, 1342819316, 1342819312, 1342819308, 1342819258, 1342819218, 1342819142, 1342819089, 1342819013, 1342818550, 1342818463, 1342818397] map_info['map_portfolio_photo'] : {21257252: [1342819381, 1342819376, 1342819370, 1342819353, 1342819322, 1342819320, 1342819316, 1342819312, 1342819308, 1342819258, 1342819218, 1342819142, 1342819089, 1342819013, 1342818550, 1342818463, 1342818397, 1342818085, 1342817978, 1342817927, 1342817820, 1342817760, 1342816957, 1342816825, 1342816656, 1342816596, 1342815909, 1342815894]} final : False mtd_id 4302 list_pids : [1342819381, 1342819376, 1342819370, 1342819353, 1342819322, 1342819320, 1342819316, 1342819312, 1342819308, 1342819258, 1342819218, 1342819142, 1342819089, 1342819013, 1342818550, 1342818463, 1342818397] Looping around the photos to save general results len do output : 17 /1342819381.Didn't retrieve data . /1342819376.Didn't retrieve data . /1342819370.Didn't retrieve data . /1342819353.Didn't retrieve data . /1342819322.Didn't retrieve data . /1342819320.Didn't retrieve data . /1342819316.Didn't retrieve data . /1342819312.Didn't retrieve data . /1342819308.Didn't retrieve data . /1342819258.Didn't retrieve data . /1342819218.Didn't retrieve data . /1342819142.Didn't retrieve data . /1342819089.Didn't retrieve data . /1342819013.Didn't retrieve data . /1342818550.Didn't retrieve data . /1342818463.Didn't retrieve data . /1342818397.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, '2656633') ('4302', '21257252', '1342819381', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819376', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819370', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819353', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819322', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819320', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819316', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819312', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819308', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819258', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819218', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819142', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819089', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819013', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342818550', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342818463', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342818397', None, None, None, None, None, '2656633') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 51 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', '21257252', '1342819381', '0.06960251383342313', None, None, None, None, '2656633'), ('4302', '21257252', '1342819376', '0.06960251383342313', None, None, None, None, '2656633'), ('4302', '21257252', '1342819370', '0.06960251383342313', None, None, None, None, '2656633'), ('4302', '21257252', '1342819353', '0.06960251383342313', None, None, None, None, '2656633'), ('4302', '21257252', '1342819322', '0.06960251383342313', None, None, None, None, '2656633'), ('4302', '21257252', '1342819320', '0.06960251383342313', None, None, None, None, '2656633'), ('4302', '21257252', '1342819316', '0.06960251383342313', None, None, None, None, '2656633'), ('4302', '21257252', '1342819312', '0.06960251383342313', None, None, None, None, '2656633'), ('4302', '21257252', '1342819308', '0.06960251383342313', None, None, None, None, '2656633'), ('4302', '21257252', '1342819258', '0.06960251383342313', None, None, None, None, '2656633'), ('4302', '21257252', '1342819218', '0.06960251383342313', None, None, None, None, '2656633'), ('4302', '21257252', '1342819142', '0.06960251383342313', None, None, None, None, '2656633'), ('4302', '21257252', '1342819089', '0.06960251383342313', None, None, None, None, '2656633'), ('4302', '21257252', '1342819013', '0.06960251383342313', None, None, None, None, '2656633'), ('4302', '21257252', '1342818550', '0.06960251383342313', None, None, None, None, '2656633'), ('4302', '21257252', '1342818463', '0.06960251383342313', None, None, None, None, '2656633'), ('4302', '21257252', '1342818397', '0.06960251383342313', None, None, None, None, '2656633')] time used for this insertion : 0.015741586685180664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06562209129333496 time spend to save output : 0.01655292510986328 total time spend for step 2 : 0.08217501640319824 step3:velours_tree Tue Mar 11 04:39:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21257252: [{'Carton_brun': 21257269, 'environnement': 21257270, 'cartonnette': 21257271, 'autre_refus': 21257272, 'Carton_gris': 21257273, 'mal_croppe': 21257274, 'plastique': 21257275, 'papier': 21257276, 'flou': 21257277, 'Teint_Dans_La_Masse': 21257278, 'metal': 21257279, 'kraft': 21257280}]} input_args_next_step : {21257252: ()} output_args : {21257252: [{'Carton_brun': 21257269, 'environnement': 21257270, 'cartonnette': 21257271, 'autre_refus': 21257272, 'Carton_gris': 21257273, 'mal_croppe': 21257274, 'plastique': 21257275, 'papier': 21257276, 'flou': 21257277, 'Teint_Dans_La_Masse': 21257278, 'metal': 21257279, 'kraft': 21257280}]} args : 21257252 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 21257269, 'environnement': 21257270, 'cartonnette': 21257271, 'autre_refus': 21257272, 'Carton_gris': 21257273, 'mal_croppe': 21257274, 'plastique': 21257275, 'papier': 21257276, 'flou': 21257277, 'Teint_Dans_La_Masse': 21257278, 'metal': 21257279, 'kraft': 21257280},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21257252) 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([21257252]) 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.30194926261901855 time spend to save output : 4.100799560546875e-05 total time spend for step 3 : 0.301990270614624 step4:send_mail_cod Tue Mar 11 04:39:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',)} input_args_next_step : {1342819381: ()} output_args : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',)} args : 1342819381 depend.output_id : 0 input_args_next_step : {1342819381: ('0.06960251383342313',), 1342819376: ()} output_args : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',)} args : 1342819376 depend.output_id : 0 input_args_next_step : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ()} output_args : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',)} args : 1342819370 depend.output_id : 0 input_args_next_step : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ()} output_args : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',)} args : 1342819353 depend.output_id : 0 input_args_next_step : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ()} output_args : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',)} args : 1342819322 depend.output_id : 0 input_args_next_step : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ()} output_args : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',)} args : 1342819320 depend.output_id : 0 input_args_next_step : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ()} output_args : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',)} args : 1342819316 depend.output_id : 0 input_args_next_step : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ()} output_args : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',)} args : 1342819312 depend.output_id : 0 input_args_next_step : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ()} output_args : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',)} args : 1342819308 depend.output_id : 0 input_args_next_step : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ()} output_args : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',)} args : 1342819258 depend.output_id : 0 input_args_next_step : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ()} output_args : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',)} args : 1342819218 depend.output_id : 0 input_args_next_step : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ()} output_args : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',)} args : 1342819142 depend.output_id : 0 input_args_next_step : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ()} output_args : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',)} args : 1342819089 depend.output_id : 0 input_args_next_step : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ()} output_args : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',)} args : 1342819013 depend.output_id : 0 input_args_next_step : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ()} output_args : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',)} args : 1342818550 depend.output_id : 0 input_args_next_step : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ()} output_args : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',)} args : 1342818463 depend.output_id : 0 input_args_next_step : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ()} output_args : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',)} args : 1342818397 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 : {21257252: [{'Carton_brun': 21257269, 'environnement': 21257270, 'cartonnette': 21257271, 'autre_refus': 21257272, 'Carton_gris': 21257273, 'mal_croppe': 21257274, 'plastique': 21257275, 'papier': 21257276, 'flou': 21257277, 'Teint_Dans_La_Masse': 21257278, 'metal': 21257279, 'kraft': 21257280}]} input_args_next_step : {1342819381: ('0.06960251383342313',), 1342819376: ('0.06960251383342313',), 1342819370: ('0.06960251383342313',), 1342819353: ('0.06960251383342313',), 1342819322: ('0.06960251383342313',), 1342819320: ('0.06960251383342313',), 1342819316: ('0.06960251383342313',), 1342819312: ('0.06960251383342313',), 1342819308: ('0.06960251383342313',), 1342819258: ('0.06960251383342313',), 1342819218: ('0.06960251383342313',), 1342819142: ('0.06960251383342313',), 1342819089: ('0.06960251383342313',), 1342819013: ('0.06960251383342313',), 1342818550: ('0.06960251383342313',), 1342818463: ('0.06960251383342313',), 1342818397: ('0.06960251383342313',), 21257252: ()} output_args : {21257252: [{'Carton_brun': 21257269, 'environnement': 21257270, 'cartonnette': 21257271, 'autre_refus': 21257272, 'Carton_gris': 21257273, 'mal_croppe': 21257274, 'plastique': 21257275, 'papier': 21257276, 'flou': 21257277, 'Teint_Dans_La_Masse': 21257278, 'metal': 21257279, 'kraft': 21257280}]} args : 21257252 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 :18, first value : ('0.06960251383342313',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21257252) 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 (1342819381,1342819376,1342819370,1342819353,1342819322,1342819320,1342819316,1342819312,1342819308,1342819258,1342819218,1342819142,1342819089,1342819013,1342818550,1342818463,1342818397) Found this number of photos: 17 ##### Call download_photos : nb_thread : 5 begin to download photo : 1342818397 begin to download photo : 1342819089 begin to download photo : 1342819308 begin to download photo : 1342819322 begin to download photo : 1342819381 download finish for photo 1342819089 begin to download photo : 1342819142 download finish for photo 1342819322 begin to download photo : 1342819353 download finish for photo 1342819381 download finish for photo 1342819308 begin to download photo : 1342819312 download finish for photo 1342818397 begin to download photo : 1342818463 download finish for photo 1342819142 begin to download photo : 1342819218 download finish for photo 1342819353 begin to download photo : 1342819370 download finish for photo 1342819312 begin to download photo : 1342819316 download finish for photo 1342818463 begin to download photo : 1342818550 download finish for photo 1342819218 begin to download photo : 1342819258 download finish for photo 1342819370 begin to download photo : 1342819376 download finish for photo 1342819316 begin to download photo : 1342819320 download finish for photo 1342818550 begin to download photo : 1342819013 download finish for photo 1342819258 download finish for photo 1342819376 download finish for photo 1342819320 download finish for photo 1342819013 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 17 ; length of list_pids : 17 ; length of list_args : 17 results_Auto_P21257252_11-03-2025_04_39_03.pdf 21257271 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=21257271 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342819339: '1741664213_529854_1342818463_af976b3b3c4d5ec7eb71f4b8b832e3cc_rle_crop_3704251594_0.png', 1342819395: '1741664232_530062_1342816825_e58127346c1e9bf211f8904c346930d7_rle_crop_3704252156_0.png', 1342819396: '1741664232_530062_1342816825_e58127346c1e9bf211f8904c346930d7_rle_crop_3704252152_0.png', 1342819397: '1741664232_530062_1342816825_e58127346c1e9bf211f8904c346930d7_rle_crop_3704252162_0.png', 1342819398: '1741664232_530062_1342816656_cb89813e9bda0888c6e8daf3563b75e0_rle_crop_3704252241_0.png', 1342819498: '1741664251_530297_1342816957_51c898f820e3178ffbf5fa411a9cd7c5_rle_crop_3704253242_0.png', 1342819592: '1741664247_943468_1342817760_4414bae046ebabd38ccb5ea2491c0fbc_rle_crop_3704253440_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/76b68da0df14da76f47f70c9cc34dbe7_3642525.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/346bbe6bc4bd768a3076b451a7542a01_19785741.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/886550107e0218690f08d13b55aa56db_98297819.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ca18aef158d61a734861fa43a05ea71d_18144879.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7e7135fe39d945b84fca15955fc04bf6_65535444.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f0e2acf18526dba9802fd3fd0a68a825_49036695.png change filename to text .imagette212572711741664343/ imagette212572711741664343/1741664213_529854_1342818463_af976b3b3c4d5ec7eb71f4b8b832e3cc_rle_crop_3704251594_0.png.png imagette212572711741664343/1741664232_530062_1342816825_e58127346c1e9bf211f8904c346930d7_rle_crop_3704252156_0.png.png imagette212572711741664343/1741664232_530062_1342816825_e58127346c1e9bf211f8904c346930d7_rle_crop_3704252162_0.png.png imagette212572711741664343/1741664232_530062_1342816825_e58127346c1e9bf211f8904c346930d7_rle_crop_3704252152_0.png.png imagette212572711741664343/1741664232_530062_1342816656_cb89813e9bda0888c6e8daf3563b75e0_rle_crop_3704252241_0.png.png imagette212572711741664343/1741664251_530297_1342816957_51c898f820e3178ffbf5fa411a9cd7c5_rle_crop_3704253242_0.png.png imagette212572711741664343/1741664247_943468_1342817760_4414bae046ebabd38ccb5ea2491c0fbc_rle_crop_3704253440_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e5d5ee796148c6e0a3d7eeef42f464a0_83284776.png imagette212572711741664343 21257272 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=21257272 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342819336: '1741664213_529854_1342818463_af976b3b3c4d5ec7eb71f4b8b832e3cc_rle_crop_3704251593_0.png', 1342819337: '1741664213_529854_1342818463_af976b3b3c4d5ec7eb71f4b8b832e3cc_rle_crop_3704251596_0.png', 1342819390: '1741664232_530062_1342816825_e58127346c1e9bf211f8904c346930d7_rle_crop_3704252161_0.png', 1342819481: '1741664251_530297_1342816957_51c898f820e3178ffbf5fa411a9cd7c5_rle_crop_3704253245_0.png', 1342819483: '1741664251_530297_1342815909_9d2ec4965cd2dfffdd2546e2e6eaaa8b_rle_crop_3704253272_0.png', 1342819484: '1741664251_530297_1342815894_910cfe0e275a27d6dfddca7410341bd4_rle_crop_3704253305_0.png', 1342819566: '1741664247_231879_1342818550_90b01f0446c5ba8db7255ec4dfba847f_rle_crop_3704253210_0.png', 1342819570: '1741664247_231879_1342817760_4414bae046ebabd38ccb5ea2491c0fbc_rle_crop_3704253448_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9a96b190e8e0b43d7984a5d65a39e16c_11560588.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7d60ad2fdbac4b2e541313b7ba7e72b5_85832060.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d3c7f3d829f7eaf07dfdebc313a31722_53174639.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b8cc1d16171fc46547acf59734416f5c_30272287.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1c26e080a384f54a49bb20f14eaad42c_91382578.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8008bd36bf6df389af26054a34350f32_35518705.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b8182d94201ae8f67509e041f6e95b57_79466253.png change filename to text .imagette212572721741664345/ imagette212572721741664345/1741664251_530297_1342816957_51c898f820e3178ffbf5fa411a9cd7c5_rle_crop_3704253245_0.png.png imagette212572721741664345/1741664251_530297_1342815909_9d2ec4965cd2dfffdd2546e2e6eaaa8b_rle_crop_3704253272_0.png.png imagette212572721741664345/1741664247_231879_1342817760_4414bae046ebabd38ccb5ea2491c0fbc_rle_crop_3704253448_0.png.png imagette212572721741664345/1741664213_529854_1342818463_af976b3b3c4d5ec7eb71f4b8b832e3cc_rle_crop_3704251596_0.png.png imagette212572721741664345/1741664213_529854_1342818463_af976b3b3c4d5ec7eb71f4b8b832e3cc_rle_crop_3704251593_0.png.png imagette212572721741664345/1741664251_530297_1342815894_910cfe0e275a27d6dfddca7410341bd4_rle_crop_3704253305_0.png.png imagette212572721741664345/1741664232_530062_1342816825_e58127346c1e9bf211f8904c346930d7_rle_crop_3704252161_0.png.png imagette212572721741664345/1741664247_231879_1342818550_90b01f0446c5ba8db7255ec4dfba847f_rle_crop_3704253210_0.png.png imagette212572741741664345/ imagette212572751741664345/ imagette212572771741664345/ imagette212572791741664345/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/21fdf5dca647f5f760ddf1c1e815f332_69135520.png imagette212572721741664345 21257274 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=21257274 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212572741741664345 21257275 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=21257275 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212572751741664345 21257277 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=21257277 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212572771741664345 21257279 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=21257279 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212572791741664345 21257280 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=21257280 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342819399: '1741664232_530062_1342818085_200080c9d2635b207690655e9ee4eeb3_rle_crop_3704252142_0.png'} change filename to text .imagette212572801741664345/ imagette212572801741664345/1741664232_530062_1342818085_200080c9d2635b207690655e9ee4eeb3_rle_crop_3704252142_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/4f862195378c005dd57672529def2cdc_55478877.png imagette212572801741664345 21257269 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=21257269 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342819504: '1741664251_530297_1342816957_51c898f820e3178ffbf5fa411a9cd7c5_rle_crop_3704253246_0.png', 1342819505: '1741664251_530297_1342815894_910cfe0e275a27d6dfddca7410341bd4_rle_crop_3704253300_0.png', 1342819602: '1741664247_943468_1342817927_02b338bf877a5e9623e517816db3da25_rle_crop_3704253313_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6e6226798501faeca75a0a2fdece6c47_4604477.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ce69d59f98e8e12e82ca4584375a10e0_80703213.png change filename to text .imagette212572691741664345/ imagette212572691741664345/1741664247_943468_1342817927_02b338bf877a5e9623e517816db3da25_rle_crop_3704253313_0.png.png imagette212572691741664345/1741664251_530297_1342816957_51c898f820e3178ffbf5fa411a9cd7c5_rle_crop_3704253246_0.png.png imagette212572691741664345/1741664251_530297_1342815894_910cfe0e275a27d6dfddca7410341bd4_rle_crop_3704253300_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/98a817214f9d9dd5136e7ed4b972a269_42345648.png imagette212572691741664345 21257273 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=21257273 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342819391: '1741664232_530062_1342818085_200080c9d2635b207690655e9ee4eeb3_rle_crop_3704252139_0.png', 1342819392: '1741664232_530062_1342816656_cb89813e9bda0888c6e8daf3563b75e0_rle_crop_3704252237_0.png', 1342819490: '1741664251_530297_1342816957_51c898f820e3178ffbf5fa411a9cd7c5_rle_crop_3704253247_0.png', 1342819491: '1741664251_530297_1342816957_51c898f820e3178ffbf5fa411a9cd7c5_rle_crop_3704253241_0.png', 1342819493: '1741664251_530297_1342815894_910cfe0e275a27d6dfddca7410341bd4_rle_crop_3704253303_0.png', 1342819582: '1741664247_231879_1342817978_da924703c61033b1894427268afd896b_rle_crop_3704253252_0.png', 1342819584: '1741664247_231879_1342817978_da924703c61033b1894427268afd896b_rle_crop_3704253258_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/4d5bf9d788b9b457e5a902aefbb5ebc8_85229602.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/2ff3e9c2f14e5be41c4642207dd07177_17535096.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e03d53dc7de0ac1e9f5336f549a717ad_12426267.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e232cc4775bccb32ac9bcda66a0f9799_85830111.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/21cffa9182bbc816e21943ba853ee568_60751056.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8ea271d5b59c8d6727ed92995612106c_20286075.png change filename to text .imagette212572731741664346/ imagette212572731741664346/1741664232_530062_1342818085_200080c9d2635b207690655e9ee4eeb3_rle_crop_3704252139_0.png.png imagette212572731741664346/1741664251_530297_1342816957_51c898f820e3178ffbf5fa411a9cd7c5_rle_crop_3704253247_0.png.png imagette212572731741664346/1741664251_530297_1342816957_51c898f820e3178ffbf5fa411a9cd7c5_rle_crop_3704253241_0.png.png imagette212572731741664346/1741664247_231879_1342817978_da924703c61033b1894427268afd896b_rle_crop_3704253252_0.png.png imagette212572731741664346/1741664247_231879_1342817978_da924703c61033b1894427268afd896b_rle_crop_3704253258_0.png.png imagette212572731741664346/1741664232_530062_1342816656_cb89813e9bda0888c6e8daf3563b75e0_rle_crop_3704252237_0.png.png imagette212572731741664346/1741664251_530297_1342815894_910cfe0e275a27d6dfddca7410341bd4_rle_crop_3704253303_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/27982351e8039dbfc407b49d7bd29f52_64242694.png imagette212572731741664346 21257278 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=21257278 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342819386: '1741664232_530062_1342816825_e58127346c1e9bf211f8904c346930d7_rle_crop_3704252160_0.png', 1342819387: '1741664232_530062_1342816656_cb89813e9bda0888c6e8daf3563b75e0_rle_crop_3704252240_0.png', 1342819472: '1741664251_530297_1342815894_910cfe0e275a27d6dfddca7410341bd4_rle_crop_3704253301_0.png', 1342819547: '1741664247_943468_1342817927_02b338bf877a5e9623e517816db3da25_rle_crop_3704253319_0.png', 1342819549: '1741664247_943468_1342817820_359674242fb361a2f4c4c951e2a2862a_rle_crop_3704253343_0.png', 1342819550: '1741664247_943468_1342817760_4414bae046ebabd38ccb5ea2491c0fbc_rle_crop_3704253444_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b014e80052e031a3694966a28cadf411_82529494.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/35f775f5cfee0e59a70bc28706fbb7ad_90778294.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/bf89c54b30c5d2c45fad8ac7420f8870_29876099.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/62dad615c132aea8328543a380f19762_57089016.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d157d5c65e12b224a547c3abb7babf31_92978847.png change filename to text .imagette212572781741664346/ imagette212572781741664346/1741664247_943468_1342817927_02b338bf877a5e9623e517816db3da25_rle_crop_3704253319_0.png.png imagette212572781741664346/1741664247_943468_1342817760_4414bae046ebabd38ccb5ea2491c0fbc_rle_crop_3704253444_0.png.png imagette212572781741664346/1741664232_530062_1342816656_cb89813e9bda0888c6e8daf3563b75e0_rle_crop_3704252240_0.png.png imagette212572781741664346/1741664232_530062_1342816825_e58127346c1e9bf211f8904c346930d7_rle_crop_3704252160_0.png.png imagette212572781741664346/1741664251_530297_1342815894_910cfe0e275a27d6dfddca7410341bd4_rle_crop_3704253301_0.png.png imagette212572781741664346/1741664247_943468_1342817820_359674242fb361a2f4c4c951e2a2862a_rle_crop_3704253343_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7f13477e99e213596daf49b154495fe8_76453277.png imagette212572781741664346 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21257252 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21257281,21257282,21257283,21257284,21257285,21257286,21257287,21257288,21257289,21257290,21257291,21257292?tags=Carton_brun,environnement,cartonnette,autre_refus,Carton_gris,mal_croppe,plastique,papier,flou,Teint_Dans_La_Masse,metal,kraft your option no_mail is active, we will not send the real mail to your client args[1342819381] : ('0.06960251383342313',) no score found for photo 1342819381 We are sending mail with results at report@fotonower.com args[1342819376] : ('0.06960251383342313',) no score found for photo 1342819376 We are sending mail with results at report@fotonower.com args[1342819370] : ('0.06960251383342313',) no score found for photo 1342819370 We are sending mail with results at report@fotonower.com args[1342819353] : ('0.06960251383342313',) no score found for photo 1342819353 We are sending mail with results at report@fotonower.com args[1342819322] : ('0.06960251383342313',) no score found for photo 1342819322 We are sending mail with results at report@fotonower.com args[1342819320] : ('0.06960251383342313',) no score found for photo 1342819320 We are sending mail with results at report@fotonower.com args[1342819316] : ('0.06960251383342313',) no score found for photo 1342819316 We are sending mail with results at report@fotonower.com args[1342819312] : ('0.06960251383342313',) no score found for photo 1342819312 We are sending mail with results at report@fotonower.com args[1342819308] : ('0.06960251383342313',) no score found for photo 1342819308 We are sending mail with results at report@fotonower.com args[1342819258] : ('0.06960251383342313',) no score found for photo 1342819258 We are sending mail with results at report@fotonower.com args[1342819218] : ('0.06960251383342313',) no score found for photo 1342819218 We are sending mail with results at report@fotonower.com args[1342819142] : ('0.06960251383342313',) no score found for photo 1342819142 We are sending mail with results at report@fotonower.com args[1342819089] : ('0.06960251383342313',) no score found for photo 1342819089 We are sending mail with results at report@fotonower.com args[1342819013] : ('0.06960251383342313',) no score found for photo 1342819013 We are sending mail with results at report@fotonower.com args[1342818550] : ('0.06960251383342313',) no score found for photo 1342818550 We are sending mail with results at report@fotonower.com args[1342818463] : ('0.06960251383342313',) no score found for photo 1342818463 We are sending mail with results at report@fotonower.com args[1342818397] : ('0.06960251383342313',) no score found for photo 1342818397 We are sending mail with results at report@fotonower.com refus_total : 0.06960251383342313 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=21257252 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_P21257252_11-03-2025_04_39_03.pdf results_Auto_P21257252_11-03-2025_04_39_03.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21257252_11-03-2025_04_39_03.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','21257252','results_Auto_P21257252_11-03-2025_04_39_03.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21257252_11-03-2025_04_39_03.pdf','pdf','','0.23','0.06960251383342313') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21257252]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1342819381, 1342819376, 1342819370, 1342819353, 1342819322, 1342819320, 1342819316, 1342819312, 1342819308, 1342819258, 1342819218, 1342819142, 1342819089, 1342819013, 1342818550, 1342818463, 1342818397] map_info['map_portfolio_photo'] : {21257252: [1342819381, 1342819376, 1342819370, 1342819353, 1342819322, 1342819320, 1342819316, 1342819312, 1342819308, 1342819258, 1342819218, 1342819142, 1342819089, 1342819013, 1342818550, 1342818463, 1342818397, 1342818085, 1342817978, 1342817927, 1342817820, 1342817760, 1342816957, 1342816825, 1342816656, 1342816596, 1342815909, 1342815894]} final : False mtd_id 4302 list_pids : [1342819381, 1342819376, 1342819370, 1342819353, 1342819322, 1342819320, 1342819316, 1342819312, 1342819308, 1342819258, 1342819218, 1342819142, 1342819089, 1342819013, 1342818550, 1342818463, 1342818397] 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, '2656633') ('4302', '21257252', '1342819381', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819376', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819370', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819353', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819322', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819320', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819316', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819312', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819308', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819258', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819218', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819142', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819089', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819013', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342818550', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342818463', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342818397', None, None, None, None, None, '2656633') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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', '21257252', '1342819381', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819376', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819370', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819353', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819322', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819320', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819316', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819312', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819308', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819258', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819218', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819142', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819089', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819013', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342818550', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342818463', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342818397', None, None, None, None, None, '2656633')] time used for this insertion : 0.017406463623046875 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.545313835144043 time spend to save output : 0.01785445213317871 total time spend for step 4 : 4.563168287277222 step5:split_time_score Tue Mar 11 04:39:08 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 : ['21257252'] 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 : [('21257252',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21257252) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1342819381: {'path': 'temp/1741664343_2895008_1342819381_3f865922c72e4f6c050d74a3ba7c76ca.jpg', 'extension': 'jpg'}, 1342819089: {'path': 'temp/1741664343_2895008_1342819089_9807d5c67a66cc532c258605b720dffc.jpg', 'extension': 'jpg'}, 1342819142: {'path': 'temp/1741664343_2895008_1342819142_0ca978e15059501604c3558ff0cd9138.jpg', 'extension': 'jpg'}, 1342819218: {'path': 'temp/1741664343_2895008_1342819218_db839a8779804a1284280706ffe3085c.jpg', 'extension': 'jpg'}, 1342819258: {'path': 'temp/1741664343_2895008_1342819258_5eda8994ce3d7621b1112366ccf27464.jpg', 'extension': 'jpg'}, 1342819322: {'path': 'temp/1741664343_2895008_1342819322_8960980714dc62b7731cc5440095b8f1.jpg', 'extension': 'jpg'}, 1342819353: {'path': 'temp/1741664343_2895008_1342819353_a464e0602d5209b842745ea72f55a894.jpg', 'extension': 'jpg'}, 1342819370: {'path': 'temp/1741664343_2895008_1342819370_1b2943c439783f1c9328f9c8c2d11d58.jpg', 'extension': 'jpg'}, 1342819376: {'path': 'temp/1741664343_2895008_1342819376_b8e50363dd8bb610f1226208a2bb42c6.jpg', 'extension': 'jpg'}, 1342819308: {'path': 'temp/1741664343_2895008_1342819308_d0d7f002783b7bd808d9f088e90ec57f.jpg', 'extension': 'jpg'}, 1342819312: {'path': 'temp/1741664343_2895008_1342819312_72527c5a48a69cb73d9cf2e3870cb53e.jpg', 'extension': 'jpg'}, 1342819316: {'path': 'temp/1741664343_2895008_1342819316_1b3abcf20a0a167d06436841cd098ef3.jpg', 'extension': 'jpg'}, 1342819320: {'path': 'temp/1741664343_2895008_1342819320_081af5b11c22f1dd2dc3f8e5ab2956ac.jpg', 'extension': 'jpg'}, 1342818397: {'path': 'temp/1741664343_2895008_1342818397_f3bc0505680c064237bf7798d5f3ce77.jpg', 'extension': 'jpg'}, 1342818463: {'path': 'temp/1741664343_2895008_1342818463_af976b3b3c4d5ec7eb71f4b8b832e3cc.jpg', 'extension': 'jpg'}, 1342818550: {'path': 'temp/1741664343_2895008_1342818550_90b01f0446c5ba8db7255ec4dfba847f.jpg', 'extension': 'jpg'}, 1342819013: {'path': 'temp/1741664343_2895008_1342819013_9b120ac9b04a5a452f0a07baab18467d.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 = 21257252; (('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 = 21257252 group by h (('04', 28),) 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=21257252 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 (21257252) 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 (21257252) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11032025 21257252 Nombre de photos uploadées : 28 / 23040 (0%) 11032025 21257252 Nombre de photos taguées (types de déchets): 0 / 28 (0%) 11032025 21257252 Nombre de photos taguées (volume) : 0 / 28 (0%) [{'photo_id': 1342815909, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9d2ec4965cd2dfffdd2546e2e6eaaa8b.jpg', 'username': None, 'uploaded_at': 1741663897, 'text': 'image_11032025_04_30_14_10134.jpg'}, {'photo_id': 1342815894, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/910cfe0e275a27d6dfddca7410341bd4.jpg', 'username': None, 'uploaded_at': 1741663897, 'text': 'image_11032025_04_30_24_9124.jpg'}, {'photo_id': 1342816957, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/51c898f820e3178ffbf5fa411a9cd7c5.jpg', 'username': None, 'uploaded_at': 1741663957, 'text': 'image_11032025_04_30_44_10139.jpg'}, {'photo_id': 1342816825, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e58127346c1e9bf211f8904c346930d7.jpg', 'username': None, 'uploaded_at': 1741663957, 'text': 'image_11032025_04_31_04_10143.jpg'}] 0 [] elapsed_time : load_data_split_time_score 4.0531158447265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.3828277587890625e-05 ???????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0016145706176757812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21257252, '2025-03-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1656727,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.025198936462402344 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= 1656727 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1656727, 'dashboard_run_id': 1664826, 'mtr_portfolio_id': 21255240, 'dashboard_result_id': 9331896, '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_P21255240_11-03-2025_04_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21255241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21255242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21255243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21255244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21255245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21255246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21255247, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21255248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21255249, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21255250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21255251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21255252, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1664826, 'mtr_portfolio_id': 21255924, 'dashboard_result_id': 9331897, '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_P21255924_11-03-2025_04_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21255941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21255942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21255943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21255944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21255945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21255946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21255947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21255948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21255949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21255950, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21255951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21255952, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1664826, 'mtr_portfolio_id': 21256458, 'dashboard_result_id': 9331898, '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_P21256458_11-03-2025_04_35_44.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21256508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21256509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21256510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21256511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21256512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21256513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21256514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21256515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21256516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21256517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21256518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21256519, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1664826, 'mtr_portfolio_id': 21257252, 'dashboard_result_id': 9331899, '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_P21257252_11-03-2025_04_35_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21257269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21257270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21257271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21257272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21257273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21257274, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21257275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21257276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21257277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21257278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21257279, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21257280, '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 = 21255240 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': 2656528, 'mtr_portfolio_id': 21255240, 'created_at': datetime.datetime(2025, 3, 11, 4, 2, 58), 'result': '0.06895049758444174', 'result_long': None, 'result_double': None}] Qualite : 0.06895049758444174 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21255240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21255240_11-03-2025_04_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21255240 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_P21255240_11-03-2025_04_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21255241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21255242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21255243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21255244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21255245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21255246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21255247, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21255248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21255249, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21255250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21255251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21255252, 'pht': 3726}}" where mtr_portfolio_id = 21255240 and dashboard_run_id = 1664826 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`=21255240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9331896, 0.06895049758444174, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21255240_11-03-2025_04_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21255241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21255242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21255243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21255244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21255245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21255246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21255247, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21255248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21255249, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21255250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21255251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21255252, '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 = 21255924 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': 2656578, 'mtr_portfolio_id': 21255924, 'created_at': datetime.datetime(2025, 3, 11, 4, 19), 'result': '0.07128986909707798', 'result_long': None, 'result_double': None}] Qualite : 0.07128986909707798 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21255924 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21255924_11-03-2025_04_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21255924 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_P21255924_11-03-2025_04_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21255941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21255942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21255943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21255944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21255945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21255946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21255947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21255948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21255949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21255950, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21255951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21255952, 'pht': 3726}}" where mtr_portfolio_id = 21255924 and dashboard_run_id = 1664826 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`=21255924 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9331897, 0.07128986909707798, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21255924_11-03-2025_04_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21255941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21255942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21255943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21255944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21255945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21255946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21255947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21255948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21255949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21255950, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21255951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21255952, '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 = 21256458 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': 2656604, 'mtr_portfolio_id': 21256458, 'created_at': datetime.datetime(2025, 3, 11, 4, 35, 44), 'result': '0.060155935914765195', 'result_long': None, 'result_double': None}] Qualite : 0.060155935914765195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21256458 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21256458_11-03-2025_04_35_44.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21256458 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_P21256458_11-03-2025_04_35_44.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21256508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21256509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21256510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21256511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21256512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21256513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21256514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21256515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21256516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21256517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21256518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21256519, 'pht': 3726}}" where mtr_portfolio_id = 21256458 and dashboard_run_id = 1664826 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`=21256458 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9331898, 0.060155935914765195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21256458_11-03-2025_04_35_44.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21256508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21256509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21256510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21256511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21256512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21256513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21256514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21256515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21256516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21256517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21256518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21256519, '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 = 21257252 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': 2656633, 'mtr_portfolio_id': 21257252, 'created_at': datetime.datetime(2025, 3, 11, 4, 39, 3), 'result': '0.06960251383342313', 'result_long': None, 'result_double': None}] Qualite : 0.06960251383342313 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21257252 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21257252_11-03-2025_04_39_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21257252 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_P21257252_11-03-2025_04_39_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21257269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21257270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21257271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21257272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21257273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21257274, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21257275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21257276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21257277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21257278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21257279, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21257280, 'pht': 3726}}" where mtr_portfolio_id = 21257252 and dashboard_run_id = 1664826 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`=21257252 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9331899, 0.06960251383342313, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21257252_11-03-2025_04_39_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21257269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21257270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21257271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21257272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21257273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21257274, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21257275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21257276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21257277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21257278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21257279, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21257280, '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 (21255240,21255924,21256458,21257252) result : ((1342800469,), (1342800475,), (1342800635,), (1342800730,), (1342800746,), (1342801703,), (1342801887,), (1342802111,), (1342802243,), (1342802280,), (1342802550,), (1342802580,), (1342802627,), (1342802640,), (1342802952,), (1342803680,), (1342803834,), (1342803840,), (1342803843,), (1342803849,), (1342804029,), (1342804077,), (1342804102,), (1342804140,), (1342804509,), (1342804513,), (1342804517,), (1342804520,), (1342804523,), (1342804530,), (1342804575,), (1342804600,), (1342804623,), (1342804656,), (1342804710,), (1342805168,), (1342805184,), (1342805188,), (1342805291,), (1342805316,), (1342805326,), (1342805453,), (1342805476,), (1342805500,), (1342805502,), (1342805671,), (1342805706,), (1342805755,), (1342805799,), (1342805938,), (1342805963,), (1342805983,), (1342806006,), (1342806027,), (1342806043,), (1342806399,), (1342806274,), (1342806355,), (1342806613,), (1342806659,), (1342806683,), (1342806704,), (1342806727,), (1342806753,), (1342806998,), (1342807066,), (1342807125,), (1342807162,), (1342807213,), (1342807249,), (1342807447,), (1342807458,), (1342807476,), (1342807679,), (1342807707,), (1342807734,), (1342807741,), (1342807757,), (1342807772,), (1342807931,), (1342807948,), (1342807973,), (1342808053,), (1342808139,), (1342808476,), (1342808516,), (1342808539,), (1342808750,), (1342808754,), (1342808758,), (1342808762,), (1342808780,), (1342808791,), (1342808802,), (1342808809,), (1342808825,), (1342808897,), (1342808901,), (1342808922,), (1342808929,), (1342809218,), (1342809222,), (1342809266,), (1342809270,), (1342809312,), (1342809359,), (1342809384,), (1342809422,), (1342809586,), (1342809605,), (1342809633,), (1342809740,), (1342809769,), (1342809773,), (1342809777,), (1342810004,), (1342810066,), (1342810136,), (1342810650,), (1342810630,), (1342810635,), (1342810640,), (1342810644,), (1342810648,), (1342810942,), (1342810970,), (1342810975,), (1342811021,), (1342811025,), (1342811113,), (1342811165,), (1342811234,), (1342811317,), (1342811583,), (1342811593,), (1342811599,), (1342811605,), (1342811750,), (1342811775,), (1342811780,), (1342811823,), (1342811837,), (1342811849,), (1342811915,), (1342811926,), (1342812024,), (1342812195,), (1342812378,), (1342812751,), (1342812764,), (1342812768,), (1342812774,), (1342813375,), (1342813399,), (1342813446,), (1342813676,), (1342813693,), (1342813699,), (1342813709,), (1342813712,), (1342813772,), (1342813776,), (1342813782,), (1342813786,), (1342813790,), (1342813894,), (1342813923,), (1342813947,), (1342814222,), (1342814229,), (1342814233,), (1342814240,), (1342814244,), (1342814258,), (1342814570,), (1342814574,), (1342814602,), (1342814607,), (1342814714,), (1342814758,), (1342814806,), (1342814884,), (1342814921,), (1342814950,), (1342815324,), (1342815378,), (1342815926,), (1342815894,), (1342815909,), (1342816596,), (1342816656,), (1342816825,), (1342816957,), (1342817760,), (1342817820,), (1342817927,), (1342817978,), (1342818085,), (1342818397,), (1342818463,), (1342818550,), (1342819013,), (1342819089,), (1342819142,), (1342819218,), (1342819258,), (1342819308,), (1342819312,), (1342819316,), (1342819320,), (1342819322,), (1342819353,), (1342819370,), (1342819376,), (1342819381,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11032025': {'nb_upload': 28, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21257252]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1342819381, 1342819376, 1342819370, 1342819353, 1342819322, 1342819320, 1342819316, 1342819312, 1342819308, 1342819258, 1342819218, 1342819142, 1342819089, 1342819013, 1342818550, 1342818463, 1342818397] map_info['map_portfolio_photo'] : {21257252: [1342819381, 1342819376, 1342819370, 1342819353, 1342819322, 1342819320, 1342819316, 1342819312, 1342819308, 1342819258, 1342819218, 1342819142, 1342819089, 1342819013, 1342818550, 1342818463, 1342818397, 1342818085, 1342817978, 1342817927, 1342817820, 1342817760, 1342816957, 1342816825, 1342816656, 1342816596, 1342815909, 1342815894]} final : True mtd_id 4302 list_pids : [1342819381, 1342819376, 1342819370, 1342819353, 1342819322, 1342819320, 1342819316, 1342819312, 1342819308, 1342819258, 1342819218, 1342819142, 1342819089, 1342819013, 1342818550, 1342818463, 1342818397] Looping around the photos to save general results len do output : 1 /21257252Didn'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, '2656633') ('4302', '21257252', '1342819381', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819376', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819370', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819353', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819322', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819320', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819316', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819312', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819308', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819258', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819218', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819142', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819089', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342819013', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342818550', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342818463', None, None, None, None, None, '2656633') ('4302', None, None, None, None, None, None, None, '2656633') ('4302', '21257252', '1342818397', None, None, None, None, None, '2656633') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '21257252', 'None', None, None, None, None, '2656633'), ('4302', '21257252', '1342819381', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819376', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819370', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819353', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819322', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819320', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819316', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819312', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819308', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819258', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819218', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819142', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819089', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342819013', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342818550', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342818463', None, None, None, None, None, '2656633'), ('4302', '21257252', '1342818397', None, None, None, None, None, '2656633')] time used for this insertion : 0.02030038833618164 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.353759765625 time spend to save output : 0.02062082290649414 total time spend for step 5 : 0.37438058853149414 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 (2656633) 2.50user 2.52system 0:12.62elapsed 39%CPU (0avgtext+0avgdata 161180maxresident)k 880inputs+13360outputs (9major+74950minor)pagefaults 0swaps