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 : 3836992 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 (2754176) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2754176) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22354450 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2754176'] with mtr_portfolio_ids : ['22354450'] and first list_photo_ids : [] new path : /proc/3836992/ Name: python3 Umask: 0002 State: R (running) Tgid: 3836992 Ngid: 0 Pid: 3836992 PPid: 3836991 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3836992 NSpid: 3836992 NSpgid: 3832907 NSsid: 3832907 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98392 kB VmRSS: 98392 kB RssAnon: 59808 kB RssFile: 38584 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 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: 60 nonvoluntary_ctxt_switches: 147 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3836992', 'Ngid': '0', 'Pid': '3836992', 'PPid': '3836991', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3836992', 'NSpid': '3836992', 'NSpgid': '3832907', 'NSsid': '3832907', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98392 kB', 'VmRSS': '98392 kB', 'RssAnon': '59808 kB', 'RssFile': '38584 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 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': '60', 'nonvoluntary_ctxt_switches': '147'} ('datou_batch_current', '3836992', '1106936', '0', '1106936', '865684', '98392', b'', 'marlene', '2754176') 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 (22354450) 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 (2754176 ) ) 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 (22354450) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1353120541, 'portfolio_id': 22354450}, {'photo_id': 1353120539, 'portfolio_id': 22354450}, {'photo_id': 1353120534, 'portfolio_id': 22354450}, {'photo_id': 1353120486, 'portfolio_id': 22354450}, {'photo_id': 1353120482, 'portfolio_id': 22354450}, {'photo_id': 1353120476, 'portfolio_id': 22354450}, {'photo_id': 1353120473, 'portfolio_id': 22354450}, {'photo_id': 1353120471, 'portfolio_id': 22354450}, {'photo_id': 1353120469, 'portfolio_id': 22354450}, {'photo_id': 1353120382, 'portfolio_id': 22354450}, {'photo_id': 1353120379, 'portfolio_id': 22354450}, {'photo_id': 1353120370, 'portfolio_id': 22354450}, {'photo_id': 1353120366, 'portfolio_id': 22354450}, {'photo_id': 1353120312, 'portfolio_id': 22354450}, {'photo_id': 1353120310, 'portfolio_id': 22354450}, {'photo_id': 1353120307, 'portfolio_id': 22354450}, {'photo_id': 1353120305, 'portfolio_id': 22354450}, {'photo_id': 1353120302, 'portfolio_id': 22354450}, {'photo_id': 1353120299, 'portfolio_id': 22354450}, {'photo_id': 1353120121, 'portfolio_id': 22354450}, {'photo_id': 1353120116, 'portfolio_id': 22354450}, {'photo_id': 1353120113, 'portfolio_id': 22354450}, {'photo_id': 1353120045, 'portfolio_id': 22354450}, {'photo_id': 1353120042, 'portfolio_id': 22354450}, {'photo_id': 1353120033, 'portfolio_id': 22354450}, {'photo_id': 1353120006, 'portfolio_id': 22354450}, {'photo_id': 1353119979, 'portfolio_id': 22354450}, {'photo_id': 1353119952, 'portfolio_id': 22354450}, {'photo_id': 1353119749, 'portfolio_id': 22354450}, {'photo_id': 1353119742, 'portfolio_id': 22354450}, {'photo_id': 1353119715, 'portfolio_id': 22354450}] map_portfolio_id_photo_id: {22354450: [1353120541, 1353120539, 1353120534, 1353120486, 1353120482, 1353120476, 1353120473, 1353120471, 1353120469, 1353120382, 1353120379, 1353120370, 1353120366, 1353120312, 1353120310, 1353120307, 1353120305, 1353120302, 1353120299, 1353120121, 1353120116, 1353120113, 1353120045, 1353120042, 1353120033, 1353120006, 1353119979, 1353119952, 1353119749, 1353119742, 1353119715]} ##### 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.01567220687866211 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Apr 23 18:52:56 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 (22354450) 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 : 22354450 get user id for portfolio 22354450 get sub ptf for main ptf 22354450, type 3726 and hashtags ['environnement', 'mal_croppe', 'plastique', 'Carton_brun', 'kraft', 'Carton_gris', 'Teint_Dans_La_Masse', 'cartonnette', 'papier', 'autre_refus', 'flou', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22354450 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','plastique','Carton_brun','kraft','Carton_gris','Teint_Dans_La_Masse','cartonnette','papier','autre_refus','flou','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22354450 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','plastique','Carton_brun','kraft','Carton_gris','Teint_Dans_La_Masse','cartonnette','papier','autre_refus','flou','metal')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 22354450, 'sub_port_id': 22354455, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809539, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 48, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22354450, 'sub_port_id': 22354456, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809540, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 48, 59)}, 'kraft': {'main_port_id': 22354450, 'sub_port_id': 22354457, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809541, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 48, 59)}, 'mal_croppe': {'main_port_id': 22354450, 'sub_port_id': 22354458, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809542, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 48, 59)}, 'papier': {'main_port_id': 22354450, 'sub_port_id': 22354459, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809543, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 48, 59)}, 'cartonnette': {'main_port_id': 22354450, 'sub_port_id': 22354460, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809544, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 48, 59)}, 'Carton_brun': {'main_port_id': 22354450, 'sub_port_id': 22354461, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809545, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 48, 59)}, 'autre_refus': {'main_port_id': 22354450, 'sub_port_id': 22354462, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809546, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 48, 59)}, 'Carton_gris': {'main_port_id': 22354450, 'sub_port_id': 22354463, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809547, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 48, 59)}, 'flou': {'main_port_id': 22354450, 'sub_port_id': 22354464, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809548, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 48, 59)}, 'metal': {'main_port_id': 22354450, 'sub_port_id': 22354465, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809549, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 48, 59)}, 'environnement': {'main_port_id': 22354450, 'sub_port_id': 22354466, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809550, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 48, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22354455 , 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=22354450 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 (22354455) result : ((1353120319,), (1353120364,), (1353120462,), (1353120529,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22354450) result : ((1353119715,), (1353119742,), (1353119749,), (1353119952,), (1353119979,), (1353120006,), (1353120033,), (1353120042,), (1353120045,), (1353120113,), (1353120116,), (1353120121,), (1353120299,), (1353120302,), (1353120305,), (1353120307,), (1353120310,), (1353120312,), (1353120366,), (1353120370,), (1353120379,), (1353120382,), (1353120469,), (1353120471,), (1353120473,), (1353120476,), (1353120482,), (1353120486,), (1353120534,), (1353120539,), (1353120541,)) 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 22354456 , 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=22354450 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 (22354456) result : ((1353120350,), (1353120351,), (1353120352,), (1353120517,), (1353120518,), (1353120568,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22354450) result : ((1353119715,), (1353119742,), (1353119749,), (1353119952,), (1353119979,), (1353120006,), (1353120033,), (1353120042,), (1353120045,), (1353120113,), (1353120116,), (1353120121,), (1353120299,), (1353120302,), (1353120305,), (1353120307,), (1353120310,), (1353120312,), (1353120366,), (1353120370,), (1353120379,), (1353120382,), (1353120469,), (1353120471,), (1353120473,), (1353120476,), (1353120482,), (1353120486,), (1353120534,), (1353120539,), (1353120541,)) 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 22354457 , 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=22354450 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 (22354457) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22354450) result : ((1353119715,), (1353119742,), (1353119749,), (1353119952,), (1353119979,), (1353120006,), (1353120033,), (1353120042,), (1353120045,), (1353120113,), (1353120116,), (1353120121,), (1353120299,), (1353120302,), (1353120305,), (1353120307,), (1353120310,), (1353120312,), (1353120366,), (1353120370,), (1353120379,), (1353120382,), (1353120469,), (1353120471,), (1353120473,), (1353120476,), (1353120482,), (1353120486,), (1353120534,), (1353120539,), (1353120541,)) 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 22354458 , 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=22354450 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 (22354458) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22354450) result : ((1353119715,), (1353119742,), (1353119749,), (1353119952,), (1353119979,), (1353120006,), (1353120033,), (1353120042,), (1353120045,), (1353120113,), (1353120116,), (1353120121,), (1353120299,), (1353120302,), (1353120305,), (1353120307,), (1353120310,), (1353120312,), (1353120366,), (1353120370,), (1353120379,), (1353120382,), (1353120469,), (1353120471,), (1353120473,), (1353120476,), (1353120482,), (1353120486,), (1353120534,), (1353120539,), (1353120541,)) 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 22354459 , 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=22354450 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 (22354459) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22354450) result : ((1353119715,), (1353119742,), (1353119749,), (1353119952,), (1353119979,), (1353120006,), (1353120033,), (1353120042,), (1353120045,), (1353120113,), (1353120116,), (1353120121,), (1353120299,), (1353120302,), (1353120305,), (1353120307,), (1353120310,), (1353120312,), (1353120366,), (1353120370,), (1353120379,), (1353120382,), (1353120469,), (1353120471,), (1353120473,), (1353120476,), (1353120482,), (1353120486,), (1353120534,), (1353120539,), (1353120541,)) 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 22354460 , 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=22354450 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 (22354460) result : ((1353120358,), (1353120523,), (1353120524,), (1353120525,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22354450) result : ((1353119715,), (1353119742,), (1353119749,), (1353119952,), (1353119979,), (1353120006,), (1353120033,), (1353120042,), (1353120045,), (1353120113,), (1353120116,), (1353120121,), (1353120299,), (1353120302,), (1353120305,), (1353120307,), (1353120310,), (1353120312,), (1353120366,), (1353120370,), (1353120379,), (1353120382,), (1353120469,), (1353120471,), (1353120473,), (1353120476,), (1353120482,), (1353120486,), (1353120534,), (1353120539,), (1353120541,)) 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 22354461 , 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=22354450 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 (22354461) result : ((1353120359,), (1353120360,), (1353120361,), (1353120362,), (1353120461,), (1353120526,), (1353120527,), (1353120528,), (1353120573,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22354450) result : ((1353119715,), (1353119742,), (1353119749,), (1353119952,), (1353119979,), (1353120006,), (1353120033,), (1353120042,), (1353120045,), (1353120113,), (1353120116,), (1353120121,), (1353120299,), (1353120302,), (1353120305,), (1353120307,), (1353120310,), (1353120312,), (1353120366,), (1353120370,), (1353120379,), (1353120382,), (1353120469,), (1353120471,), (1353120473,), (1353120476,), (1353120482,), (1353120486,), (1353120534,), (1353120539,), (1353120541,)) 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 22354462 , 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=22354450 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 (22354462) result : ((1353120353,), (1353120354,), (1353120355,), (1353120453,), (1353120454,), (1353120455,), (1353120570,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22354450) result : ((1353119715,), (1353119742,), (1353119749,), (1353119952,), (1353119979,), (1353120006,), (1353120033,), (1353120042,), (1353120045,), (1353120113,), (1353120116,), (1353120121,), (1353120299,), (1353120302,), (1353120305,), (1353120307,), (1353120310,), (1353120312,), (1353120366,), (1353120370,), (1353120379,), (1353120382,), (1353120469,), (1353120471,), (1353120473,), (1353120476,), (1353120482,), (1353120486,), (1353120534,), (1353120539,), (1353120541,)) 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 22354463 , 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=22354450 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 (22354463) result : ((1353120317,), (1353120318,), (1353120356,), (1353120457,), (1353120458,), (1353120520,), (1353120521,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22354450) result : ((1353119715,), (1353119742,), (1353119749,), (1353119952,), (1353119979,), (1353120006,), (1353120033,), (1353120042,), (1353120045,), (1353120113,), (1353120116,), (1353120121,), (1353120299,), (1353120302,), (1353120305,), (1353120307,), (1353120310,), (1353120312,), (1353120366,), (1353120370,), (1353120379,), (1353120382,), (1353120469,), (1353120471,), (1353120473,), (1353120476,), (1353120482,), (1353120486,), (1353120534,), (1353120539,), (1353120541,)) 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 22354464 , 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=22354450 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 (22354464) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22354450) result : ((1353119715,), (1353119742,), (1353119749,), (1353119952,), (1353119979,), (1353120006,), (1353120033,), (1353120042,), (1353120045,), (1353120113,), (1353120116,), (1353120121,), (1353120299,), (1353120302,), (1353120305,), (1353120307,), (1353120310,), (1353120312,), (1353120366,), (1353120370,), (1353120379,), (1353120382,), (1353120469,), (1353120471,), (1353120473,), (1353120476,), (1353120482,), (1353120486,), (1353120534,), (1353120539,), (1353120541,)) 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 22354465 , 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=22354450 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 (22354465) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22354450) result : ((1353119715,), (1353119742,), (1353119749,), (1353119952,), (1353119979,), (1353120006,), (1353120033,), (1353120042,), (1353120045,), (1353120113,), (1353120116,), (1353120121,), (1353120299,), (1353120302,), (1353120305,), (1353120307,), (1353120310,), (1353120312,), (1353120366,), (1353120370,), (1353120379,), (1353120382,), (1353120469,), (1353120471,), (1353120473,), (1353120476,), (1353120482,), (1353120486,), (1353120534,), (1353120539,), (1353120541,)) 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 22354466 , 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=22354450 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 (22354466) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22354450) result : ((1353119715,), (1353119742,), (1353119749,), (1353119952,), (1353119979,), (1353120006,), (1353120033,), (1353120042,), (1353120045,), (1353120113,), (1353120116,), (1353120121,), (1353120299,), (1353120302,), (1353120305,), (1353120307,), (1353120310,), (1353120312,), (1353120366,), (1353120370,), (1353120379,), (1353120382,), (1353120469,), (1353120471,), (1353120473,), (1353120476,), (1353120482,), (1353120486,), (1353120534,), (1353120539,), (1353120541,)) 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`=22354450 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','plastique','Carton_brun','kraft','Carton_gris','Teint_Dans_La_Masse','cartonnette','papier','autre_refus','flou','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22354450 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','plastique','Carton_brun','kraft','Carton_gris','Teint_Dans_La_Masse','cartonnette','papier','autre_refus','flou','metal')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 22354450, 'sub_port_id': 22354467, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809551, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 49, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22354450, 'sub_port_id': 22354468, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809552, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 49, 1)}, 'kraft': {'main_port_id': 22354450, 'sub_port_id': 22354469, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809553, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 49, 1)}, 'mal_croppe': {'main_port_id': 22354450, 'sub_port_id': 22354470, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809554, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 49, 1)}, 'papier': {'main_port_id': 22354450, 'sub_port_id': 22354471, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809555, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 49, 1)}, 'cartonnette': {'main_port_id': 22354450, 'sub_port_id': 22354472, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809556, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 49, 1)}, 'Carton_brun': {'main_port_id': 22354450, 'sub_port_id': 22354473, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809557, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 49, 1)}, 'autre_refus': {'main_port_id': 22354450, 'sub_port_id': 22354474, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809558, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 49, 1)}, 'Carton_gris': {'main_port_id': 22354450, 'sub_port_id': 22354475, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809559, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 49, 1)}, 'flou': {'main_port_id': 22354450, 'sub_port_id': 22354476, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809560, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 49, 1)}, 'metal': {'main_port_id': 22354450, 'sub_port_id': 22354477, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809561, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 49, 1)}, 'environnement': {'main_port_id': 22354450, 'sub_port_id': 22354478, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14809562, 'last_updated_at': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 18, 49, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22354467,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22354455 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22354468,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22354456 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22354469,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22354457 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22354470,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22354458 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22354471,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22354459 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22354472,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22354460 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22354473,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22354461 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22354474,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22354462 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22354475,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22354463 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22354476,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22354464 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22354477,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22354465 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22354478,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22354466 lien utilise dans velours : https://www.fotonower.com/velours/22354467,22354468,22354469,22354470,22354471,22354472,22354473,22354474,22354475,22354476,22354477,22354478?tags=plastique,Teint_Dans_La_Masse,kraft,mal_croppe,papier,cartonnette,Carton_brun,autre_refus,Carton_gris,flou,metal,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22354450]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353120541, 1353120539, 1353120534, 1353120486, 1353120482, 1353120476, 1353120473, 1353120471, 1353120469] map_info['map_portfolio_photo'] : {22354450: [1353120541, 1353120539, 1353120534, 1353120486, 1353120482, 1353120476, 1353120473, 1353120471, 1353120469, 1353120382, 1353120379, 1353120370, 1353120366, 1353120312, 1353120310, 1353120307, 1353120305, 1353120302, 1353120299, 1353120121, 1353120116, 1353120113, 1353120045, 1353120042, 1353120033, 1353120006, 1353119979, 1353119952, 1353119749, 1353119742, 1353119715]} final : False mtd_id 4302 list_pids : [1353120541, 1353120539, 1353120534, 1353120486, 1353120482, 1353120476, 1353120473, 1353120471, 1353120469] Looping around the photos to save general results len do output : 1 /22354450. 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, '2754176') ('4302', '22354450', '1353120541', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120539', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120534', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120486', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120482', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120476', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120473', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120471', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120469', None, None, None, None, None, '2754176') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '22354450', "{'plastique': 22354455, 'Teint_Dans_La_Masse': 22354456, 'kraft': 22354457, 'mal_croppe': 22354458, 'papier': 22354459, 'cartonnette': 22354460, 'Carton_brun': 22354461, 'autre_refus': 22354462, 'Carton_gris': 22354463, 'flou': 22354464, 'metal': 22354465, 'environnement': 22354466}", None, None, None, None, '2754176'), ('4302', '22354450', '1353120541', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120539', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120534', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120486', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120482', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120476', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120473', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120471', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120469', None, None, None, None, None, '2754176')] time used for this insertion : 0.013499021530151367 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5968291759490967 time spend to save output : 0.013830900192260742 total time spend for step 1 : 1.6106600761413574 step2:final Wed Apr 23 18:52:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22354450) 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 22354450 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353119749,1353119742,1353119715,1353120045,1353120042,1353120033,1353120006,1353119979,1353119952,1353120121,1353120116,1353120113,1353120312,1353120310,1353120307,1353120305,1353120302,1353120299,1353120382,1353120379,1353120370,1353120366,1353120486,1353120482,1353120476,1353120473,1353120471,1353120469,1353120541,1353120539,1353120534); 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([22354450]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353120541: ('0.05332002119947431',), 1353120539: ('0.05332002119947431',), 1353120534: ('0.05332002119947431',), 1353120486: ('0.05332002119947431',), 1353120482: ('0.05332002119947431',), 1353120476: ('0.05332002119947431',), 1353120473: ('0.05332002119947431',), 1353120471: ('0.05332002119947431',), 1353120469: ('0.05332002119947431',)} new output for save of step final : {1353120541: ('0.05332002119947431',), 1353120539: ('0.05332002119947431',), 1353120534: ('0.05332002119947431',), 1353120486: ('0.05332002119947431',), 1353120482: ('0.05332002119947431',), 1353120476: ('0.05332002119947431',), 1353120473: ('0.05332002119947431',), 1353120471: ('0.05332002119947431',), 1353120469: ('0.05332002119947431',)} [1353120541, 1353120539, 1353120534, 1353120486, 1353120482, 1353120476, 1353120473, 1353120471, 1353120469] map_info['map_portfolio_photo'] : {22354450: [1353120541, 1353120539, 1353120534, 1353120486, 1353120482, 1353120476, 1353120473, 1353120471, 1353120469, 1353120382, 1353120379, 1353120370, 1353120366, 1353120312, 1353120310, 1353120307, 1353120305, 1353120302, 1353120299, 1353120121, 1353120116, 1353120113, 1353120045, 1353120042, 1353120033, 1353120006, 1353119979, 1353119952, 1353119749, 1353119742, 1353119715]} final : False mtd_id 4302 list_pids : [1353120541, 1353120539, 1353120534, 1353120486, 1353120482, 1353120476, 1353120473, 1353120471, 1353120469] Looping around the photos to save general results len do output : 9 /1353120541.Didn't retrieve data . /1353120539.Didn't retrieve data . /1353120534.Didn't retrieve data . /1353120486.Didn't retrieve data . /1353120482.Didn't retrieve data . /1353120476.Didn't retrieve data . /1353120473.Didn't retrieve data . /1353120471.Didn't retrieve data . /1353120469.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, '2754176') ('4302', '22354450', '1353120541', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120539', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120534', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120486', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120482', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120476', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120473', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120471', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120469', None, None, None, None, None, '2754176') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '22354450', '1353120541', '0.05332002119947431', None, None, None, None, '2754176'), ('4302', '22354450', '1353120539', '0.05332002119947431', None, None, None, None, '2754176'), ('4302', '22354450', '1353120534', '0.05332002119947431', None, None, None, None, '2754176'), ('4302', '22354450', '1353120486', '0.05332002119947431', None, None, None, None, '2754176'), ('4302', '22354450', '1353120482', '0.05332002119947431', None, None, None, None, '2754176'), ('4302', '22354450', '1353120476', '0.05332002119947431', None, None, None, None, '2754176'), ('4302', '22354450', '1353120473', '0.05332002119947431', None, None, None, None, '2754176'), ('4302', '22354450', '1353120471', '0.05332002119947431', None, None, None, None, '2754176'), ('4302', '22354450', '1353120469', '0.05332002119947431', None, None, None, None, '2754176')] time used for this insertion : 0.013530492782592773 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07401680946350098 time spend to save output : 0.014046907424926758 total time spend for step 2 : 0.08806371688842773 step3:velours_tree Wed Apr 23 18:52:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22354450: [{'plastique': 22354455, 'Teint_Dans_La_Masse': 22354456, 'kraft': 22354457, 'mal_croppe': 22354458, 'papier': 22354459, 'cartonnette': 22354460, 'Carton_brun': 22354461, 'autre_refus': 22354462, 'Carton_gris': 22354463, 'flou': 22354464, 'metal': 22354465, 'environnement': 22354466}]} input_args_next_step : {22354450: ()} output_args : {22354450: [{'plastique': 22354455, 'Teint_Dans_La_Masse': 22354456, 'kraft': 22354457, 'mal_croppe': 22354458, 'papier': 22354459, 'cartonnette': 22354460, 'Carton_brun': 22354461, 'autre_refus': 22354462, 'Carton_gris': 22354463, 'flou': 22354464, 'metal': 22354465, 'environnement': 22354466}]} args : 22354450 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 : ({'plastique': 22354455, 'Teint_Dans_La_Masse': 22354456, 'kraft': 22354457, 'mal_croppe': 22354458, 'papier': 22354459, 'cartonnette': 22354460, 'Carton_brun': 22354461, 'autre_refus': 22354462, 'Carton_gris': 22354463, 'flou': 22354464, 'metal': 22354465, 'environnement': 22354466},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22354450) 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([22354450]) 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.46510958671569824 time spend to save output : 6.151199340820312e-05 total time spend for step 3 : 0.46517109870910645 step4:send_mail_cod Wed Apr 23 18:52:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1353120541: ('0.05332002119947431',), 1353120539: ('0.05332002119947431',), 1353120534: ('0.05332002119947431',), 1353120486: ('0.05332002119947431',), 1353120482: ('0.05332002119947431',), 1353120476: ('0.05332002119947431',), 1353120473: ('0.05332002119947431',), 1353120471: ('0.05332002119947431',), 1353120469: ('0.05332002119947431',)} input_args_next_step : {1353120541: ()} output_args : {1353120541: ('0.05332002119947431',), 1353120539: ('0.05332002119947431',), 1353120534: ('0.05332002119947431',), 1353120486: ('0.05332002119947431',), 1353120482: ('0.05332002119947431',), 1353120476: ('0.05332002119947431',), 1353120473: ('0.05332002119947431',), 1353120471: ('0.05332002119947431',), 1353120469: ('0.05332002119947431',)} args : 1353120541 depend.output_id : 0 input_args_next_step : {1353120541: ('0.05332002119947431',), 1353120539: ()} output_args : {1353120541: ('0.05332002119947431',), 1353120539: ('0.05332002119947431',), 1353120534: ('0.05332002119947431',), 1353120486: ('0.05332002119947431',), 1353120482: ('0.05332002119947431',), 1353120476: ('0.05332002119947431',), 1353120473: ('0.05332002119947431',), 1353120471: ('0.05332002119947431',), 1353120469: ('0.05332002119947431',)} args : 1353120539 depend.output_id : 0 input_args_next_step : {1353120541: ('0.05332002119947431',), 1353120539: ('0.05332002119947431',), 1353120534: ()} output_args : {1353120541: ('0.05332002119947431',), 1353120539: ('0.05332002119947431',), 1353120534: ('0.05332002119947431',), 1353120486: ('0.05332002119947431',), 1353120482: ('0.05332002119947431',), 1353120476: ('0.05332002119947431',), 1353120473: ('0.05332002119947431',), 1353120471: ('0.05332002119947431',), 1353120469: ('0.05332002119947431',)} args : 1353120534 depend.output_id : 0 input_args_next_step : {1353120541: ('0.05332002119947431',), 1353120539: ('0.05332002119947431',), 1353120534: ('0.05332002119947431',), 1353120486: ()} output_args : {1353120541: ('0.05332002119947431',), 1353120539: ('0.05332002119947431',), 1353120534: ('0.05332002119947431',), 1353120486: ('0.05332002119947431',), 1353120482: ('0.05332002119947431',), 1353120476: ('0.05332002119947431',), 1353120473: ('0.05332002119947431',), 1353120471: ('0.05332002119947431',), 1353120469: ('0.05332002119947431',)} args : 1353120486 depend.output_id : 0 input_args_next_step : {1353120541: ('0.05332002119947431',), 1353120539: ('0.05332002119947431',), 1353120534: ('0.05332002119947431',), 1353120486: ('0.05332002119947431',), 1353120482: ()} output_args : {1353120541: ('0.05332002119947431',), 1353120539: ('0.05332002119947431',), 1353120534: ('0.05332002119947431',), 1353120486: ('0.05332002119947431',), 1353120482: ('0.05332002119947431',), 1353120476: ('0.05332002119947431',), 1353120473: ('0.05332002119947431',), 1353120471: ('0.05332002119947431',), 1353120469: ('0.05332002119947431',)} args : 1353120482 depend.output_id : 0 input_args_next_step : {1353120541: ('0.05332002119947431',), 1353120539: ('0.05332002119947431',), 1353120534: ('0.05332002119947431',), 1353120486: ('0.05332002119947431',), 1353120482: ('0.05332002119947431',), 1353120476: ()} output_args : {1353120541: ('0.05332002119947431',), 1353120539: ('0.05332002119947431',), 1353120534: ('0.05332002119947431',), 1353120486: ('0.05332002119947431',), 1353120482: ('0.05332002119947431',), 1353120476: ('0.05332002119947431',), 1353120473: ('0.05332002119947431',), 1353120471: ('0.05332002119947431',), 1353120469: ('0.05332002119947431',)} args : 1353120476 depend.output_id : 0 input_args_next_step : {1353120541: ('0.05332002119947431',), 1353120539: ('0.05332002119947431',), 1353120534: ('0.05332002119947431',), 1353120486: ('0.05332002119947431',), 1353120482: ('0.05332002119947431',), 1353120476: ('0.05332002119947431',), 1353120473: ()} output_args : {1353120541: ('0.05332002119947431',), 1353120539: ('0.05332002119947431',), 1353120534: ('0.05332002119947431',), 1353120486: ('0.05332002119947431',), 1353120482: ('0.05332002119947431',), 1353120476: ('0.05332002119947431',), 1353120473: ('0.05332002119947431',), 1353120471: ('0.05332002119947431',), 1353120469: ('0.05332002119947431',)} args : 1353120473 depend.output_id : 0 input_args_next_step : {1353120541: ('0.05332002119947431',), 1353120539: ('0.05332002119947431',), 1353120534: ('0.05332002119947431',), 1353120486: ('0.05332002119947431',), 1353120482: ('0.05332002119947431',), 1353120476: ('0.05332002119947431',), 1353120473: ('0.05332002119947431',), 1353120471: ()} output_args : {1353120541: ('0.05332002119947431',), 1353120539: ('0.05332002119947431',), 1353120534: ('0.05332002119947431',), 1353120486: ('0.05332002119947431',), 1353120482: ('0.05332002119947431',), 1353120476: ('0.05332002119947431',), 1353120473: ('0.05332002119947431',), 1353120471: ('0.05332002119947431',), 1353120469: ('0.05332002119947431',)} args : 1353120471 depend.output_id : 0 input_args_next_step : {1353120541: ('0.05332002119947431',), 1353120539: ('0.05332002119947431',), 1353120534: ('0.05332002119947431',), 1353120486: ('0.05332002119947431',), 1353120482: ('0.05332002119947431',), 1353120476: ('0.05332002119947431',), 1353120473: ('0.05332002119947431',), 1353120471: ('0.05332002119947431',), 1353120469: ()} output_args : {1353120541: ('0.05332002119947431',), 1353120539: ('0.05332002119947431',), 1353120534: ('0.05332002119947431',), 1353120486: ('0.05332002119947431',), 1353120482: ('0.05332002119947431',), 1353120476: ('0.05332002119947431',), 1353120473: ('0.05332002119947431',), 1353120471: ('0.05332002119947431',), 1353120469: ('0.05332002119947431',)} args : 1353120469 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 : {22354450: [{'plastique': 22354455, 'Teint_Dans_La_Masse': 22354456, 'kraft': 22354457, 'mal_croppe': 22354458, 'papier': 22354459, 'cartonnette': 22354460, 'Carton_brun': 22354461, 'autre_refus': 22354462, 'Carton_gris': 22354463, 'flou': 22354464, 'metal': 22354465, 'environnement': 22354466}]} input_args_next_step : {1353120541: ('0.05332002119947431',), 1353120539: ('0.05332002119947431',), 1353120534: ('0.05332002119947431',), 1353120486: ('0.05332002119947431',), 1353120482: ('0.05332002119947431',), 1353120476: ('0.05332002119947431',), 1353120473: ('0.05332002119947431',), 1353120471: ('0.05332002119947431',), 1353120469: ('0.05332002119947431',), 22354450: ()} output_args : {22354450: [{'plastique': 22354455, 'Teint_Dans_La_Masse': 22354456, 'kraft': 22354457, 'mal_croppe': 22354458, 'papier': 22354459, 'cartonnette': 22354460, 'Carton_brun': 22354461, 'autre_refus': 22354462, 'Carton_gris': 22354463, 'flou': 22354464, 'metal': 22354465, 'environnement': 22354466}]} args : 22354450 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 :10, first value : ('0.05332002119947431',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22354450) 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 (1353120541,1353120539,1353120534,1353120486,1353120482,1353120476,1353120473,1353120471,1353120469) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353120469 begin to download photo : 1353120473 begin to download photo : 1353120482 begin to download photo : 1353120534 begin to download photo : 1353120541 download finish for photo 1353120541 download finish for photo 1353120469 begin to download photo : 1353120471 download finish for photo 1353120473 begin to download photo : 1353120476 download finish for photo 1353120534 begin to download photo : 1353120539 download finish for photo 1353120482 begin to download photo : 1353120486 download finish for photo 1353120471 download finish for photo 1353120476 download finish for photo 1353120539 download finish for photo 1353120486 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 : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P22354450_23-04-2025_18_52_59.pdf 22354455 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=22354455 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353120319: '1745426943_217135_1353120116_3d1eb7064c9b1e95cbaf5c1fcc5fa96e_rle_crop_3765960592_0.png', 1353120364: '1745426951_217285_1353120033_b1298ca7cf5b3ba7fafa0fd6abba01cf_rle_crop_3765960684_0.png', 1353120462: '1745427012_217911_1353119715_40a4298579a6b25c47ffd8bdcc09f37e_rle_crop_3765961089_0.png', 1353120529: '1745427074_218625_1353120302_729dae3e164cbbaa2a25425d4c844264_rle_crop_3765961639_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/bb954f53791c218b47ba808834eb277e_78228805.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/28e9fb114150e7b3de1967203b6391db_1131966.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/917784024e63bf0027b5adf3254eb5ff_94198413.png change filename to text .imagette223544551745427179/ imagette223544551745427179/1745427012_217911_1353119715_40a4298579a6b25c47ffd8bdcc09f37e_rle_crop_3765961089_0.png.png imagette223544551745427179/1745426951_217285_1353120033_b1298ca7cf5b3ba7fafa0fd6abba01cf_rle_crop_3765960684_0.png.png imagette223544551745427179/1745426943_217135_1353120116_3d1eb7064c9b1e95cbaf5c1fcc5fa96e_rle_crop_3765960592_0.png.png imagette223544551745427179/1745427074_218625_1353120302_729dae3e164cbbaa2a25425d4c844264_rle_crop_3765961639_0.png.png imagette223544571745427179/ imagette223544581745427179/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/6bf2db53b99ff6e7b8f55d2b3ffc972a_95372205.png imagette223544551745427179 22354457 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=22354457 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223544571745427179 22354458 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=22354458 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223544581745427179 22354460 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=22354460 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353120358: '1745426951_217285_1353120006_996e09d7f21318deec54a5a65d6a4342_rle_crop_3765960764_0.png', 1353120523: '1745427074_218625_1353120382_93121a0e6cf48e9c0dac1f7611bc444d_rle_crop_3765961582_0.png', 1353120524: '1745427074_218625_1353120305_02ee0d2accb6cd7d0697ae76bcb6a4b4_rle_crop_3765961620_0.png', 1353120525: '1745427074_218625_1353120305_02ee0d2accb6cd7d0697ae76bcb6a4b4_rle_crop_3765961619_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c38b73de09be9dc218f508914d3f8d2e_25036607.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/472aa2f2426535ec01d45ae40fbe83c7_90225280.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d48a3608a3b62367640dbe9b505a0b5c_18384613.png change filename to text .imagette223544601745427179/ imagette223544601745427179/1745426951_217285_1353120006_996e09d7f21318deec54a5a65d6a4342_rle_crop_3765960764_0.png.png imagette223544601745427179/1745427074_218625_1353120305_02ee0d2accb6cd7d0697ae76bcb6a4b4_rle_crop_3765961620_0.png.png imagette223544601745427179/1745427074_218625_1353120305_02ee0d2accb6cd7d0697ae76bcb6a4b4_rle_crop_3765961619_0.png.png imagette223544601745427179/1745427074_218625_1353120382_93121a0e6cf48e9c0dac1f7611bc444d_rle_crop_3765961582_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/14b965bf0e190427f29d740487fc33f5_83680770.png imagette223544601745427179 22354462 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=22354462 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353120353: '1745426951_217285_1353120121_9e64a78f6ee86d41c684db591c92fc54_rle_crop_3765960622_0.png', 1353120354: '1745426951_217285_1353120006_996e09d7f21318deec54a5a65d6a4342_rle_crop_3765960765_0.png', 1353120355: '1745426951_217285_1353119952_686f5cd1bd9a31662aa37cb2a7e810c8_rle_crop_3765960790_0.png', 1353120453: '1745427012_217911_1353120045_8e1b9e76eaa4c3d7f65a9b02e2d3a079_rle_crop_3765961054_0.png', 1353120454: '1745427012_217911_1353120045_8e1b9e76eaa4c3d7f65a9b02e2d3a079_rle_crop_3765961048_0.png', 1353120455: '1745427012_217911_1353120045_8e1b9e76eaa4c3d7f65a9b02e2d3a079_rle_crop_3765961055_0.png', 1353120570: '1745427130_219188_1353120370_77704d4d4a2878d268189abf160c2d6e_rle_crop_3765962311_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/385680a111438f400345709739fe0559_27526692.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/48f9203e977944443767f6a823d15293_48477817.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2732f34dd01743ed97d2c2e46c16f6cf_97798549.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/4870b8114b27c2a0329f79e41bb2598e_70978391.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/0b0321ad556a940606d4a76b83779b99_6190261.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/00457f580ff4c8923d00363a4e125a04_79062785.png change filename to text .imagette223544621745427179/ imagette223544621745427179/1745426951_217285_1353119952_686f5cd1bd9a31662aa37cb2a7e810c8_rle_crop_3765960790_0.png.png imagette223544621745427179/1745427012_217911_1353120045_8e1b9e76eaa4c3d7f65a9b02e2d3a079_rle_crop_3765961055_0.png.png imagette223544621745427179/1745427130_219188_1353120370_77704d4d4a2878d268189abf160c2d6e_rle_crop_3765962311_0.png.png imagette223544621745427179/1745426951_217285_1353120006_996e09d7f21318deec54a5a65d6a4342_rle_crop_3765960765_0.png.png imagette223544621745427179/1745426951_217285_1353120121_9e64a78f6ee86d41c684db591c92fc54_rle_crop_3765960622_0.png.png imagette223544621745427179/1745427012_217911_1353120045_8e1b9e76eaa4c3d7f65a9b02e2d3a079_rle_crop_3765961048_0.png.png imagette223544621745427179/1745427012_217911_1353120045_8e1b9e76eaa4c3d7f65a9b02e2d3a079_rle_crop_3765961054_0.png.png imagette223544641745427180/ imagette223544651745427180/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/df03a51cae808c897a9aa52240d05782_52434879.png imagette223544621745427179 22354464 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=22354464 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223544641745427180 22354465 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=22354465 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223544651745427180 22354456 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=22354456 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353120350: '1745426951_217285_1353120042_9a79f5d234ed7d5bdf2273557f354afc_rle_crop_3765960657_0.png', 1353120351: '1745426951_217285_1353120006_996e09d7f21318deec54a5a65d6a4342_rle_crop_3765960770_0.png', 1353120352: '1745426951_217285_1353119979_7238b6b2daef1dc1fd2b80ee83009e89_rle_crop_3765960786_0.png', 1353120517: '1745427074_218625_1353120382_93121a0e6cf48e9c0dac1f7611bc444d_rle_crop_3765961581_0.png', 1353120518: '1745427074_218625_1353120382_93121a0e6cf48e9c0dac1f7611bc444d_rle_crop_3765961589_0.png', 1353120568: '1745427130_219188_1353120379_82d3538e9f8f981e011e0498405e3f16_rle_crop_3765962292_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/dae82e2f12b37fc29cfb7be6882b0443_55880665.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3724f0f5dc459b91fcccc345607b4052_25189531.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9b60a0aee9c6c866ad45d593fd2f95b9_78104354.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/969e29f8066aaa04bfbe1f7694359c1b_48532105.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5171c43ff0006839ce158c8389da84aa_18274619.png change filename to text .imagette223544561745427180/ imagette223544561745427180/1745426951_217285_1353120042_9a79f5d234ed7d5bdf2273557f354afc_rle_crop_3765960657_0.png.png imagette223544561745427180/1745427074_218625_1353120382_93121a0e6cf48e9c0dac1f7611bc444d_rle_crop_3765961581_0.png.png imagette223544561745427180/1745426951_217285_1353120006_996e09d7f21318deec54a5a65d6a4342_rle_crop_3765960770_0.png.png imagette223544561745427180/1745427074_218625_1353120382_93121a0e6cf48e9c0dac1f7611bc444d_rle_crop_3765961589_0.png.png imagette223544561745427180/1745427130_219188_1353120379_82d3538e9f8f981e011e0498405e3f16_rle_crop_3765962292_0.png.png imagette223544561745427180/1745426951_217285_1353119979_7238b6b2daef1dc1fd2b80ee83009e89_rle_crop_3765960786_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9b9873ee06c309b9915bc707260a0e29_44542210.png imagette223544561745427180 22354461 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=22354461 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353120359: '1745426951_217285_1353120033_b1298ca7cf5b3ba7fafa0fd6abba01cf_rle_crop_3765960681_0.png', 1353120360: '1745426951_217285_1353120006_996e09d7f21318deec54a5a65d6a4342_rle_crop_3765960763_0.png', 1353120361: '1745426951_217285_1353119979_7238b6b2daef1dc1fd2b80ee83009e89_rle_crop_3765960780_0.png', 1353120362: '1745426951_217285_1353119952_686f5cd1bd9a31662aa37cb2a7e810c8_rle_crop_3765960799_0.png', 1353120461: '1745427012_217911_1353119742_d0a8eb56c1a44f16aa05e52e994ff238_rle_crop_3765961077_0.png', 1353120526: '1745427074_218625_1353120382_93121a0e6cf48e9c0dac1f7611bc444d_rle_crop_3765961583_0.png', 1353120527: '1745427074_218625_1353120302_729dae3e164cbbaa2a25425d4c844264_rle_crop_3765961641_0.png', 1353120528: '1745427074_218625_1353120299_62601e21e23ab70b5c18eaa72d227b83_rle_crop_3765961653_0.png', 1353120573: '1745427130_219188_1353120370_77704d4d4a2878d268189abf160c2d6e_rle_crop_3765962315_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/aa06f194ec01e5560d58b21b17f1ad3b_62807173.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5164b61bd974f63755984d64f2a09bc0_189633.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/59415c8fac13ad6e1c34a25c83746254_82430176.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/65f39f183b14679a857fb7841299f8ad_82112655.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/06b20d4a08ab97116c4a09375e48ba63_882802.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/64a23e079cd04c390bfbe91e213b4f45_15955565.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/1f9c2fca35742d1c04f82077d762b1c7_68175011.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3e16de922197e41b97b5a149819e4426_94818322.png change filename to text .imagette223544611745427180/ imagette223544611745427180/1745427074_218625_1353120302_729dae3e164cbbaa2a25425d4c844264_rle_crop_3765961641_0.png.png imagette223544611745427180/1745426951_217285_1353120033_b1298ca7cf5b3ba7fafa0fd6abba01cf_rle_crop_3765960681_0.png.png imagette223544611745427180/1745427074_218625_1353120382_93121a0e6cf48e9c0dac1f7611bc444d_rle_crop_3765961583_0.png.png imagette223544611745427180/1745427012_217911_1353119742_d0a8eb56c1a44f16aa05e52e994ff238_rle_crop_3765961077_0.png.png imagette223544611745427180/1745426951_217285_1353119952_686f5cd1bd9a31662aa37cb2a7e810c8_rle_crop_3765960799_0.png.png imagette223544611745427180/1745427130_219188_1353120370_77704d4d4a2878d268189abf160c2d6e_rle_crop_3765962315_0.png.png imagette223544611745427180/1745427074_218625_1353120299_62601e21e23ab70b5c18eaa72d227b83_rle_crop_3765961653_0.png.png imagette223544611745427180/1745426951_217285_1353119979_7238b6b2daef1dc1fd2b80ee83009e89_rle_crop_3765960780_0.png.png imagette223544611745427180/1745426951_217285_1353120006_996e09d7f21318deec54a5a65d6a4342_rle_crop_3765960763_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/0e6452c02279ea41bec161ac0579f316_96509944.png imagette223544611745427180 22354463 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=22354463 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353120317: '1745426943_217135_1353120116_3d1eb7064c9b1e95cbaf5c1fcc5fa96e_rle_crop_3765960597_0.png', 1353120318: '1745426943_217135_1353120113_895ed6b73fe2426b3d2c86cf22388dc6_rle_crop_3765960608_0.png', 1353120356: '1745426951_217285_1353120042_9a79f5d234ed7d5bdf2273557f354afc_rle_crop_3765960656_0.png', 1353120457: '1745427012_217911_1353119715_40a4298579a6b25c47ffd8bdcc09f37e_rle_crop_3765961090_0.png', 1353120458: '1745427012_217911_1353119715_40a4298579a6b25c47ffd8bdcc09f37e_rle_crop_3765961088_0.png', 1353120520: '1745427074_218625_1353120302_729dae3e164cbbaa2a25425d4c844264_rle_crop_3765961636_0.png', 1353120521: '1745427074_218625_1353120299_62601e21e23ab70b5c18eaa72d227b83_rle_crop_3765961651_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/6bad99d3312bf41e58b85822c0ab82cc_80883653.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e9d2134c86640febfd92135a0aaa6951_85180187.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/1d7ade34832ffb1b0a246f2164b2131e_76967706.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/be65fbd9df561113aa9005cb6497c78f_84808714.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5eaaf7e1ccd805f45351e78cf9b27b13_72189882.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/87a79f30c5dad4b9a0cf7f3c8a3483da_30158561.png change filename to text .imagette223544631745427180/ imagette223544631745427180/1745427012_217911_1353119715_40a4298579a6b25c47ffd8bdcc09f37e_rle_crop_3765961088_0.png.png imagette223544631745427180/1745426951_217285_1353120042_9a79f5d234ed7d5bdf2273557f354afc_rle_crop_3765960656_0.png.png imagette223544631745427180/1745426943_217135_1353120113_895ed6b73fe2426b3d2c86cf22388dc6_rle_crop_3765960608_0.png.png imagette223544631745427180/1745427074_218625_1353120299_62601e21e23ab70b5c18eaa72d227b83_rle_crop_3765961651_0.png.png imagette223544631745427180/1745427012_217911_1353119715_40a4298579a6b25c47ffd8bdcc09f37e_rle_crop_3765961090_0.png.png imagette223544631745427180/1745426943_217135_1353120116_3d1eb7064c9b1e95cbaf5c1fcc5fa96e_rle_crop_3765960597_0.png.png imagette223544631745427180/1745427074_218625_1353120302_729dae3e164cbbaa2a25425d4c844264_rle_crop_3765961636_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/01ac2a1ab9b62f977bf6ba03b2efd2c1_10769896.png imagette223544631745427180 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22354450 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22354467,22354468,22354469,22354470,22354471,22354472,22354473,22354474,22354475,22354476,22354477,22354478?tags=plastique,Teint_Dans_La_Masse,kraft,mal_croppe,papier,cartonnette,Carton_brun,autre_refus,Carton_gris,flou,metal,environnement your option no_mail is active, we will not send the real mail to your client args[1353120541] : ('0.05332002119947431',) no score found for photo 1353120541 We are sending mail with results at report@fotonower.com args[1353120539] : ('0.05332002119947431',) no score found for photo 1353120539 We are sending mail with results at report@fotonower.com args[1353120534] : ('0.05332002119947431',) no score found for photo 1353120534 We are sending mail with results at report@fotonower.com args[1353120486] : ('0.05332002119947431',) no score found for photo 1353120486 We are sending mail with results at report@fotonower.com args[1353120482] : ('0.05332002119947431',) no score found for photo 1353120482 We are sending mail with results at report@fotonower.com args[1353120476] : ('0.05332002119947431',) no score found for photo 1353120476 We are sending mail with results at report@fotonower.com args[1353120473] : ('0.05332002119947431',) no score found for photo 1353120473 We are sending mail with results at report@fotonower.com args[1353120471] : ('0.05332002119947431',) no score found for photo 1353120471 We are sending mail with results at report@fotonower.com args[1353120469] : ('0.05332002119947431',) no score found for photo 1353120469 We are sending mail with results at report@fotonower.com refus_total : 0.05332002119947431 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=22354450 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_P22354450_23-04-2025_18_52_59.pdf results_Auto_P22354450_23-04-2025_18_52_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354450_23-04-2025_18_52_59.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','22354450','results_Auto_P22354450_23-04-2025_18_52_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354450_23-04-2025_18_52_59.pdf','pdf','','0.19','0.05332002119947431') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22354450]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353120541, 1353120539, 1353120534, 1353120486, 1353120482, 1353120476, 1353120473, 1353120471, 1353120469] map_info['map_portfolio_photo'] : {22354450: [1353120541, 1353120539, 1353120534, 1353120486, 1353120482, 1353120476, 1353120473, 1353120471, 1353120469, 1353120382, 1353120379, 1353120370, 1353120366, 1353120312, 1353120310, 1353120307, 1353120305, 1353120302, 1353120299, 1353120121, 1353120116, 1353120113, 1353120045, 1353120042, 1353120033, 1353120006, 1353119979, 1353119952, 1353119749, 1353119742, 1353119715]} final : False mtd_id 4302 list_pids : [1353120541, 1353120539, 1353120534, 1353120486, 1353120482, 1353120476, 1353120473, 1353120471, 1353120469] 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, '2754176') ('4302', '22354450', '1353120541', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120539', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120534', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120486', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120482', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120476', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120473', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120471', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120469', None, None, None, None, None, '2754176') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '22354450', '1353120541', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120539', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120534', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120486', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120482', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120476', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120473', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120471', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120469', None, None, None, None, None, '2754176')] time used for this insertion : 0.013940572738647461 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.443988561630249 time spend to save output : 0.014102697372436523 total time spend for step 4 : 3.4580912590026855 step5:split_time_score Wed Apr 23 18:53:02 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 : ['22354450'] 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 : [('22354450',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22354450) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353120541: {'path': 'temp/1745427178_3836992_1353120541_436d10fd4b77ea838b2003144f1a7384.jpg', 'extension': 'jpg'}, 1353120469: {'path': 'temp/1745427178_3836992_1353120469_5e6d7d19016d01b590934783b9a1f59a.jpg', 'extension': 'jpg'}, 1353120471: {'path': 'temp/1745427178_3836992_1353120471_2ff728e14f5f90261c4d1a102fc86e43.jpg', 'extension': 'jpg'}, 1353120473: {'path': 'temp/1745427178_3836992_1353120473_59901c04bacc719f459314da74ffe9c3.jpg', 'extension': 'jpg'}, 1353120476: {'path': 'temp/1745427178_3836992_1353120476_a67569f7a6afc711f6c24460123563ca.jpg', 'extension': 'jpg'}, 1353120534: {'path': 'temp/1745427178_3836992_1353120534_d88bfb9e1f1fd0eb523b0a8ac35073c3.jpg', 'extension': 'jpg'}, 1353120539: {'path': 'temp/1745427178_3836992_1353120539_d14a2d8944d9ffdf3d275c30b4b02619.jpg', 'extension': 'jpg'}, 1353120482: {'path': 'temp/1745427178_3836992_1353120482_a4e4ea922b2cbaea0e77bf57b2f20a4b.jpg', 'extension': 'jpg'}, 1353120486: {'path': 'temp/1745427178_3836992_1353120486_c0f7653d1e8ae7de059e6b38eb7485a7.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 = 22354450; (('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 = 22354450 group by h (('18', 31),) 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=22354450 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 (22354450) 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 (22354450) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23042025 22354450 Nombre de photos uploadées : 31 / 23040 (0%) 23042025 22354450 Nombre de photos taguées (types de déchets): 0 / 31 (0%) 23042025 22354450 Nombre de photos taguées (volume) : 0 / 31 (0%) [{'photo_id': 1353119749, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/84ec794f56f2f061980687403e04540e.jpg', 'username': None, 'uploaded_at': 1745426768, 'text': 'image_23042025_18_45_23_010133m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353119742, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d0a8eb56c1a44f16aa05e52e994ff238.jpg', 'username': None, 'uploaded_at': 1745426768, 'text': 'image_23042025_18_45_33_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353119715, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/40a4298579a6b25c47ffd8bdcc09f37e.jpg', 'username': None, 'uploaded_at': 1745426768, 'text': 'image_23042025_18_45_43_010146m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353120045, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8e1b9e76eaa4c3d7f65a9b02e2d3a079.jpg', 'username': None, 'uploaded_at': 1745426828, 'text': 'image_23042025_18_45_54_010139m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ??????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012972354888916016 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22354450, '2025-04-23' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1739756,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023529052734375 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= 1739756 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1739756, 'dashboard_run_id': 1750269, 'mtr_portfolio_id': 22353065, 'dashboard_result_id': 10054640, '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_P22353065_23-04-2025_18_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353099, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1750269, 'mtr_portfolio_id': 22353503, 'dashboard_result_id': 10054641, '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_P22353503_23-04-2025_18_32_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353540, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1750269, 'mtr_portfolio_id': 22354290, 'dashboard_result_id': 10054642, '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_P22354290_23-04-2025_18_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354319, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1750269, 'mtr_portfolio_id': 22354450, 'dashboard_result_id': 10054643, '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_P22354450_23-04-2025_18_51_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354466, '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 = 22353065 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': 2754013, 'mtr_portfolio_id': 22353065, 'created_at': datetime.datetime(2025, 4, 23, 18, 18, 58), 'result': '0.04914646860979779', 'result_long': None, 'result_double': None}] Qualite : 0.04914646860979779 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22353065 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353065_23-04-2025_18_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22353065 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_P22353065_23-04-2025_18_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353099, 'pht': 3726}}" where mtr_portfolio_id = 22353065 and dashboard_run_id = 1750269 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`=22353065 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10054640, 0.04914646860979779, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353065_23-04-2025_18_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353099, '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 = 22353503 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': 2754073, 'mtr_portfolio_id': 22353503, 'created_at': datetime.datetime(2025, 4, 23, 18, 32, 30), 'result': '0.05479845340734035', 'result_long': None, 'result_double': None}] Qualite : 0.05479845340734035 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22353503 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353503_23-04-2025_18_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22353503 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_P22353503_23-04-2025_18_32_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353540, 'pht': 3726}}" where mtr_portfolio_id = 22353503 and dashboard_run_id = 1750269 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`=22353503 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10054641, 0.05479845340734035, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353503_23-04-2025_18_32_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353540, '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 = 22354290 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': 2754160, 'mtr_portfolio_id': 22354290, 'created_at': datetime.datetime(2025, 4, 23, 18, 46, 58), 'result': '0.07883123016562744', 'result_long': None, 'result_double': None}] Qualite : 0.07883123016562744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22354290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354290_23-04-2025_18_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22354290 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_P22354290_23-04-2025_18_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354319, 'pht': 3726}}" where mtr_portfolio_id = 22354290 and dashboard_run_id = 1750269 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`=22354290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10054642, 0.07883123016562744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354290_23-04-2025_18_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354319, '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 = 22354450 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': 2754176, 'mtr_portfolio_id': 22354450, 'created_at': datetime.datetime(2025, 4, 23, 18, 52, 58), 'result': '0.05332002119947431', 'result_long': None, 'result_double': None}] Qualite : 0.05332002119947431 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22354450 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354450_23-04-2025_18_52_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22354450 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_P22354450_23-04-2025_18_52_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354466, 'pht': 3726}}" where mtr_portfolio_id = 22354450 and dashboard_run_id = 1750269 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`=22354450 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10054643, 0.05332002119947431, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354450_23-04-2025_18_52_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354466, '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 (22353065,22353503,22354290,22354450) result : ((1353111678,), (1353111710,), (1353111738,), (1353111778,), (1353111817,), (1353111848,), (1353112060,), (1353112063,), (1353112066,), (1353112069,), (1353112499,), (1353113056,), (1353113077,), (1353113082,), (1353113084,), (1353113088,), (1353113116,), (1353113120,), (1353113124,), (1353113128,), (1353113131,), (1353113287,), (1353113318,), (1353113350,), (1353113378,), (1353113408,), (1353113447,), (1353113546,), (1353113550,), (1353113553,), (1353113557,), (1353113562,), (1353113611,), (1353113616,), (1353113623,), (1353113635,), (1353113638,), (1353113685,), (1353113700,), (1353113705,), (1353113710,), (1353113714,), (1353113750,), (1353113762,), (1353113779,), (1353113788,), (1353113794,), (1353113810,), (1353113872,), (1353113879,), (1353113885,), (1353113896,), (1353114185,), (1353114189,), (1353114193,), (1353114206,), (1353114230,), (1353114243,), (1353114298,), (1353114302,), (1353114307,), (1353114312,), (1353114378,), (1353114383,), (1353114388,), (1353114394,), (1353114659,), (1353114581,), (1353114591,), (1353114619,), (1353114646,), (1353114654,), (1353114949,), (1353114976,), (1353115047,), (1353115133,), (1353115138,), (1353115173,), (1353115194,), (1353115204,), (1353115229,), (1353115254,), (1353115356,), (1353115366,), (1353115370,), (1353115380,), (1353115410,), (1353115422,), (1353115542,), (1353115569,), (1353115586,), (1353115976,), (1353116007,), (1353116033,), (1353116089,), (1353116148,), (1353116371,), (1353116374,), (1353116377,), (1353116379,), (1353116381,), (1353116435,), (1353116438,), (1353116442,), (1353116445,), (1353116449,), (1353116451,), (1353116493,), (1353116504,), (1353116509,), (1353116511,), (1353116564,), (1353116568,), (1353116573,), (1353116577,), (1353116582,), (1353116589,), (1353116645,), (1353116649,), (1353116652,), (1353116653,), (1353116655,), (1353116819,), (1353116855,), (1353116858,), (1353116862,), (1353116866,), (1353116886,), (1353116988,), (1353116991,), (1353116993,), (1353116996,), (1353117050,), (1353117066,), (1353117095,), (1353117126,), (1353117154,), (1353117186,), (1353117410,), (1353117413,), (1353117415,), (1353117421,), (1353117426,), (1353117473,), (1353118535,), (1353118804,), (1353118813,), (1353118873,), (1353118876,), (1353118878,), (1353118955,), (1353118958,), (1353118963,), (1353118966,), (1353118971,), (1353119023,), (1353119234,), (1353119244,), (1353119247,), (1353119274,), (1353119309,), (1353119349,), (1353119464,), (1353119495,), (1353119521,), (1353119524,), (1353119527,), (1353119594,), (1353119597,), (1353119601,), (1353119604,), (1353119642,), (1353119662,), (1353119664,), (1353119670,), (1353119676,), (1353119758,), (1353119715,), (1353119742,), (1353119749,), (1353119952,), (1353119979,), (1353120006,), (1353120033,), (1353120042,), (1353120045,), (1353120113,), (1353120116,), (1353120121,), (1353120299,), (1353120302,), (1353120305,), (1353120307,), (1353120310,), (1353120312,), (1353120366,), (1353120370,), (1353120379,), (1353120382,), (1353120469,), (1353120471,), (1353120473,), (1353120476,), (1353120482,), (1353120486,), (1353120534,), (1353120539,), (1353120541,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23042025': {'nb_upload': 31, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22354450]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353120541, 1353120539, 1353120534, 1353120486, 1353120482, 1353120476, 1353120473, 1353120471, 1353120469] map_info['map_portfolio_photo'] : {22354450: [1353120541, 1353120539, 1353120534, 1353120486, 1353120482, 1353120476, 1353120473, 1353120471, 1353120469, 1353120382, 1353120379, 1353120370, 1353120366, 1353120312, 1353120310, 1353120307, 1353120305, 1353120302, 1353120299, 1353120121, 1353120116, 1353120113, 1353120045, 1353120042, 1353120033, 1353120006, 1353119979, 1353119952, 1353119749, 1353119742, 1353119715]} final : True mtd_id 4302 list_pids : [1353120541, 1353120539, 1353120534, 1353120486, 1353120482, 1353120476, 1353120473, 1353120471, 1353120469] Looping around the photos to save general results len do output : 1 /22354450Didn'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, '2754176') ('4302', '22354450', '1353120541', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120539', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120534', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120486', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120482', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120476', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120473', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120471', None, None, None, None, None, '2754176') ('4302', None, None, None, None, None, None, None, '2754176') ('4302', '22354450', '1353120469', None, None, None, None, None, '2754176') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '22354450', 'None', None, None, None, None, '2754176'), ('4302', '22354450', '1353120541', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120539', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120534', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120486', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120482', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120476', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120473', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120471', None, None, None, None, None, '2754176'), ('4302', '22354450', '1353120469', None, None, None, None, None, '2754176')] time used for this insertion : 0.013091325759887695 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.36165595054626465 time spend to save output : 0.013292789459228516 total time spend for step 5 : 0.37494874000549316 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 (2754176) 2.33user 2.26system 0:08.06elapsed 57%CPU (0avgtext+0avgdata 158896maxresident)k 45392inputs+10192outputs (144major+74720minor)pagefaults 0swaps