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 : 131822 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 (2731625) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2731625) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22135444 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2731625'] with mtr_portfolio_ids : ['22135444'] and first list_photo_ids : [] new path : /proc/131822/ Name: python3 Umask: 0002 State: R (running) Tgid: 131822 Ngid: 0 Pid: 131822 PPid: 131821 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 131822 NSpid: 131822 NSpgid: 126868 NSsid: 126868 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98324 kB VmRSS: 98324 kB RssAnon: 59760 kB RssFile: 38564 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 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: 53 nonvoluntary_ctxt_switches: 103 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '131822', 'Ngid': '0', 'Pid': '131822', 'PPid': '131821', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '131822', 'NSpid': '131822', 'NSpgid': '126868', 'NSsid': '126868', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98324 kB', 'VmRSS': '98324 kB', 'RssAnon': '59760 kB', 'RssFile': '38564 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 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': '53', 'nonvoluntary_ctxt_switches': '103'} ('datou_batch_current', '131822', '1106932', '0', '1106932', '865680', '98324', b'', 'marlene', '2731625') 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 (22135444) 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 (2731625 ) ) 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 (22135444) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350547915, 'portfolio_id': 22135444}, {'photo_id': 1350547906, 'portfolio_id': 22135444}, {'photo_id': 1350547884, 'portfolio_id': 22135444}, {'photo_id': 1350547643, 'portfolio_id': 22135444}, {'photo_id': 1350547639, 'portfolio_id': 22135444}, {'photo_id': 1350547635, 'portfolio_id': 22135444}, {'photo_id': 1350547631, 'portfolio_id': 22135444}, {'photo_id': 1350547621, 'portfolio_id': 22135444}, {'photo_id': 1350547474, 'portfolio_id': 22135444}, {'photo_id': 1350547445, 'portfolio_id': 22135444}, {'photo_id': 1350547429, 'portfolio_id': 22135444}, {'photo_id': 1350547387, 'portfolio_id': 22135444}, {'photo_id': 1350547366, 'portfolio_id': 22135444}, {'photo_id': 1350547345, 'portfolio_id': 22135444}, {'photo_id': 1350547305, 'portfolio_id': 22135444}, {'photo_id': 1350547299, 'portfolio_id': 22135444}, {'photo_id': 1350547278, 'portfolio_id': 22135444}, {'photo_id': 1350547270, 'portfolio_id': 22135444}, {'photo_id': 1350547268, 'portfolio_id': 22135444}, {'photo_id': 1350547236, 'portfolio_id': 22135444}, {'photo_id': 1350547231, 'portfolio_id': 22135444}, {'photo_id': 1350547214, 'portfolio_id': 22135444}, {'photo_id': 1350547210, 'portfolio_id': 22135444}, {'photo_id': 1350547206, 'portfolio_id': 22135444}, {'photo_id': 1350547140, 'portfolio_id': 22135444}, {'photo_id': 1350547137, 'portfolio_id': 22135444}, {'photo_id': 1350547135, 'portfolio_id': 22135444}, {'photo_id': 1350547133, 'portfolio_id': 22135444}, {'photo_id': 1350547132, 'portfolio_id': 22135444}, {'photo_id': 1350547002, 'portfolio_id': 22135444}, {'photo_id': 1350547000, 'portfolio_id': 22135444}, {'photo_id': 1350546997, 'portfolio_id': 22135444}, {'photo_id': 1350546986, 'portfolio_id': 22135444}, {'photo_id': 1350546950, 'portfolio_id': 22135444}, {'photo_id': 1350546901, 'portfolio_id': 22135444}, {'photo_id': 1350546897, 'portfolio_id': 22135444}, {'photo_id': 1350546894, 'portfolio_id': 22135444}, {'photo_id': 1350546888, 'portfolio_id': 22135444}, {'photo_id': 1350546756, 'portfolio_id': 22135444}, {'photo_id': 1350546732, 'portfolio_id': 22135444}, {'photo_id': 1350546706, 'portfolio_id': 22135444}, {'photo_id': 1350546679, 'portfolio_id': 22135444}, {'photo_id': 1350546595, 'portfolio_id': 22135444}, {'photo_id': 1350546579, 'portfolio_id': 22135444}, {'photo_id': 1350546566, 'portfolio_id': 22135444}, {'photo_id': 1350546562, 'portfolio_id': 22135444}] map_portfolio_id_photo_id: {22135444: [1350547915, 1350547906, 1350547884, 1350547643, 1350547639, 1350547635, 1350547631, 1350547621, 1350547474, 1350547445, 1350547429, 1350547387, 1350547366, 1350547345, 1350547305, 1350547299, 1350547278, 1350547270, 1350547268, 1350547236, 1350547231, 1350547214, 1350547210, 1350547206, 1350547140, 1350547137, 1350547135, 1350547133, 1350547132, 1350547002, 1350547000, 1350546997, 1350546986, 1350546950, 1350546901, 1350546897, 1350546894, 1350546888, 1350546756, 1350546732, 1350546706, 1350546679, 1350546595, 1350546579, 1350546566, 1350546562]} ##### 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.014703512191772461 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Apr 8 07:40:57 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 (22135444) 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 : 22135444 get user id for portfolio 22135444 get sub ptf for main ptf 22135444, type 3726 and hashtags ['flou', 'cartonnette', 'autre_refus', 'mal_croppe', 'kraft', 'papier', 'Teint_Dans_La_Masse', 'Carton_gris', 'metal', 'Carton_brun', 'plastique', 'environnement'] 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`=22135444 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','autre_refus','mal_croppe','kraft','papier','Teint_Dans_La_Masse','Carton_gris','metal','Carton_brun','plastique','environnement')) 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`=22135444 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','autre_refus','mal_croppe','kraft','papier','Teint_Dans_La_Masse','Carton_gris','metal','Carton_brun','plastique','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22135444, 'sub_port_id': 22135478, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615739, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 28)}, 'kraft': {'main_port_id': 22135444, 'sub_port_id': 22135479, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615740, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 28)}, 'papier': {'main_port_id': 22135444, 'sub_port_id': 22135480, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615741, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 28)}, 'metal': {'main_port_id': 22135444, 'sub_port_id': 22135481, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615742, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 28)}, 'autre_refus': {'main_port_id': 22135444, 'sub_port_id': 22135482, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615743, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 28)}, 'cartonnette': {'main_port_id': 22135444, 'sub_port_id': 22135483, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615744, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 28)}, 'Carton_gris': {'main_port_id': 22135444, 'sub_port_id': 22135484, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615745, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 28)}, 'mal_croppe': {'main_port_id': 22135444, 'sub_port_id': 22135485, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615746, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 28)}, 'Carton_brun': {'main_port_id': 22135444, 'sub_port_id': 22135486, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615747, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 22135444, 'sub_port_id': 22135487, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615748, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 28)}, 'plastique': {'main_port_id': 22135444, 'sub_port_id': 22135488, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615749, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 28)}, 'flou': {'main_port_id': 22135444, 'sub_port_id': 22135489, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615750, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22135478 , 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=22135444 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 (22135478) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22135444) result : ((1350546562,), (1350546566,), (1350546579,), (1350546595,), (1350546679,), (1350546706,), (1350546732,), (1350546756,), (1350546888,), (1350546894,), (1350546897,), (1350546901,), (1350546950,), (1350546986,), (1350546997,), (1350547000,), (1350547002,), (1350547132,), (1350547133,), (1350547135,), (1350547137,), (1350547140,), (1350547206,), (1350547210,), (1350547214,), (1350547231,), (1350547236,), (1350547268,), (1350547270,), (1350547278,), (1350547299,), (1350547305,), (1350547345,), (1350547366,), (1350547387,), (1350547429,), (1350547445,), (1350547474,), (1350547621,), (1350547631,), (1350547635,), (1350547639,), (1350547643,), (1350547884,), (1350547906,), (1350547915,)) 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 (1350547000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22135479 , 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=22135444 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 (22135479) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22135444) result : ((1350546562,), (1350546566,), (1350546579,), (1350546595,), (1350546679,), (1350546706,), (1350546732,), (1350546756,), (1350546888,), (1350546894,), (1350546897,), (1350546901,), (1350546950,), (1350546986,), (1350546997,), (1350547000,), (1350547002,), (1350547132,), (1350547133,), (1350547135,), (1350547137,), (1350547140,), (1350547206,), (1350547210,), (1350547214,), (1350547231,), (1350547236,), (1350547268,), (1350547270,), (1350547278,), (1350547299,), (1350547305,), (1350547345,), (1350547366,), (1350547387,), (1350547429,), (1350547445,), (1350547474,), (1350547621,), (1350547631,), (1350547635,), (1350547639,), (1350547643,), (1350547884,), (1350547906,), (1350547915,)) 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 (1350547000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22135480 , 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=22135444 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 (22135480) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22135444) result : ((1350546562,), (1350546566,), (1350546579,), (1350546595,), (1350546679,), (1350546706,), (1350546732,), (1350546756,), (1350546888,), (1350546894,), (1350546897,), (1350546901,), (1350546950,), (1350546986,), (1350546997,), (1350547000,), (1350547002,), (1350547132,), (1350547133,), (1350547135,), (1350547137,), (1350547140,), (1350547206,), (1350547210,), (1350547214,), (1350547231,), (1350547236,), (1350547268,), (1350547270,), (1350547278,), (1350547299,), (1350547305,), (1350547345,), (1350547366,), (1350547387,), (1350547429,), (1350547445,), (1350547474,), (1350547621,), (1350547631,), (1350547635,), (1350547639,), (1350547643,), (1350547884,), (1350547906,), (1350547915,)) 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 (1350547000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22135481 , 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=22135444 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 (22135481) result : ((1350546944,), (1350547838,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22135444) result : ((1350546562,), (1350546566,), (1350546579,), (1350546595,), (1350546679,), (1350546706,), (1350546732,), (1350546756,), (1350546888,), (1350546894,), (1350546897,), (1350546901,), (1350546950,), (1350546986,), (1350546997,), (1350547000,), (1350547002,), (1350547132,), (1350547133,), (1350547135,), (1350547137,), (1350547140,), (1350547206,), (1350547210,), (1350547214,), (1350547231,), (1350547236,), (1350547268,), (1350547270,), (1350547278,), (1350547299,), (1350547305,), (1350547345,), (1350547366,), (1350547387,), (1350547429,), (1350547445,), (1350547474,), (1350547621,), (1350547631,), (1350547635,), (1350547639,), (1350547643,), (1350547884,), (1350547906,), (1350547915,)) 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 (1350547000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22135482 , 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=22135444 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 (22135482) result : ((1350547244,), (1350547245,), (1350547326,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22135444) result : ((1350546562,), (1350546566,), (1350546579,), (1350546595,), (1350546679,), (1350546706,), (1350546732,), (1350546756,), (1350546888,), (1350546894,), (1350546897,), (1350546901,), (1350546950,), (1350546986,), (1350546997,), (1350547000,), (1350547002,), (1350547132,), (1350547133,), (1350547135,), (1350547137,), (1350547140,), (1350547206,), (1350547210,), (1350547214,), (1350547231,), (1350547236,), (1350547268,), (1350547270,), (1350547278,), (1350547299,), (1350547305,), (1350547345,), (1350547366,), (1350547387,), (1350547429,), (1350547445,), (1350547474,), (1350547621,), (1350547631,), (1350547635,), (1350547639,), (1350547643,), (1350547884,), (1350547906,), (1350547915,)) 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 (1350547000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22135483 , 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=22135444 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 (22135483) result : ((1350546934,), (1350547198,), (1350547330,), (1350547331,), (1350547459,), (1350547830,), (1350547831,), (1350547928,), (1350547929,), (1350547930,), (1350547931,), (1350547932,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22135444) result : ((1350546562,), (1350546566,), (1350546579,), (1350546595,), (1350546679,), (1350546706,), (1350546732,), (1350546756,), (1350546888,), (1350546894,), (1350546897,), (1350546901,), (1350546950,), (1350546986,), (1350546997,), (1350547000,), (1350547002,), (1350547132,), (1350547133,), (1350547135,), (1350547137,), (1350547140,), (1350547206,), (1350547210,), (1350547214,), (1350547231,), (1350547236,), (1350547268,), (1350547270,), (1350547278,), (1350547299,), (1350547305,), (1350547345,), (1350547366,), (1350547387,), (1350547429,), (1350547445,), (1350547474,), (1350547621,), (1350547631,), (1350547635,), (1350547639,), (1350547643,), (1350547884,), (1350547906,), (1350547915,)) 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 (1350547000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22135484 , 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=22135444 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 (22135484) result : ((1350547196,), (1350547197,), (1350547246,), (1350547450,), (1350547452,), (1350547821,), (1350547822,), (1350547823,), (1350547824,), (1350547826,), (1350547923,), (1350547924,), (1350547925,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22135444) result : ((1350546562,), (1350546566,), (1350546579,), (1350546595,), (1350546679,), (1350546706,), (1350546732,), (1350546756,), (1350546888,), (1350546894,), (1350546897,), (1350546901,), (1350546950,), (1350546986,), (1350546997,), (1350547000,), (1350547002,), (1350547132,), (1350547133,), (1350547135,), (1350547137,), (1350547140,), (1350547206,), (1350547210,), (1350547214,), (1350547231,), (1350547236,), (1350547268,), (1350547270,), (1350547278,), (1350547299,), (1350547305,), (1350547345,), (1350547366,), (1350547387,), (1350547429,), (1350547445,), (1350547474,), (1350547621,), (1350547631,), (1350547635,), (1350547639,), (1350547643,), (1350547884,), (1350547906,), (1350547915,)) 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 (1350547000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22135485 , 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=22135444 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 (22135485) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22135444) result : ((1350546562,), (1350546566,), (1350546579,), (1350546595,), (1350546679,), (1350546706,), (1350546732,), (1350546756,), (1350546888,), (1350546894,), (1350546897,), (1350546901,), (1350546950,), (1350546986,), (1350546997,), (1350547000,), (1350547002,), (1350547132,), (1350547133,), (1350547135,), (1350547137,), (1350547140,), (1350547206,), (1350547210,), (1350547214,), (1350547231,), (1350547236,), (1350547268,), (1350547270,), (1350547278,), (1350547299,), (1350547305,), (1350547345,), (1350547366,), (1350547387,), (1350547429,), (1350547445,), (1350547474,), (1350547621,), (1350547631,), (1350547635,), (1350547639,), (1350547643,), (1350547884,), (1350547906,), (1350547915,)) 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 (1350547000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22135486 , 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=22135444 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 (22135486) result : ((1350547199,), (1350547248,), (1350547249,), (1350547466,), (1350547470,), (1350547475,), (1350547933,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22135444) result : ((1350546562,), (1350546566,), (1350546579,), (1350546595,), (1350546679,), (1350546706,), (1350546732,), (1350546756,), (1350546888,), (1350546894,), (1350546897,), (1350546901,), (1350546950,), (1350546986,), (1350546997,), (1350547000,), (1350547002,), (1350547132,), (1350547133,), (1350547135,), (1350547137,), (1350547140,), (1350547206,), (1350547210,), (1350547214,), (1350547231,), (1350547236,), (1350547268,), (1350547270,), (1350547278,), (1350547299,), (1350547305,), (1350547345,), (1350547366,), (1350547387,), (1350547429,), (1350547445,), (1350547474,), (1350547621,), (1350547631,), (1350547635,), (1350547639,), (1350547643,), (1350547884,), (1350547906,), (1350547915,)) 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 (1350547000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22135487 , 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=22135444 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 (22135487) result : ((1350546933,), (1350547194,), (1350547243,), (1350547424,), (1350547811,), (1350547812,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22135444) result : ((1350546562,), (1350546566,), (1350546579,), (1350546595,), (1350546679,), (1350546706,), (1350546732,), (1350546756,), (1350546888,), (1350546894,), (1350546897,), (1350546901,), (1350546950,), (1350546986,), (1350546997,), (1350547000,), (1350547002,), (1350547132,), (1350547133,), (1350547135,), (1350547137,), (1350547140,), (1350547206,), (1350547210,), (1350547214,), (1350547231,), (1350547236,), (1350547268,), (1350547270,), (1350547278,), (1350547299,), (1350547305,), (1350547345,), (1350547366,), (1350547387,), (1350547429,), (1350547445,), (1350547474,), (1350547621,), (1350547631,), (1350547635,), (1350547639,), (1350547643,), (1350547884,), (1350547906,), (1350547915,)) 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 (1350547000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22135488 , 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=22135444 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 (22135488) result : ((1350547201,), (1350547250,), (1350547482,), (1350547483,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22135444) result : ((1350546562,), (1350546566,), (1350546579,), (1350546595,), (1350546679,), (1350546706,), (1350546732,), (1350546756,), (1350546888,), (1350546894,), (1350546897,), (1350546901,), (1350546950,), (1350546986,), (1350546997,), (1350547000,), (1350547002,), (1350547132,), (1350547133,), (1350547135,), (1350547137,), (1350547140,), (1350547206,), (1350547210,), (1350547214,), (1350547231,), (1350547236,), (1350547268,), (1350547270,), (1350547278,), (1350547299,), (1350547305,), (1350547345,), (1350547366,), (1350547387,), (1350547429,), (1350547445,), (1350547474,), (1350547621,), (1350547631,), (1350547635,), (1350547639,), (1350547643,), (1350547884,), (1350547906,), (1350547915,)) 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 (1350547000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22135489 , 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=22135444 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 (22135489) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22135444) result : ((1350546562,), (1350546566,), (1350546579,), (1350546595,), (1350546679,), (1350546706,), (1350546732,), (1350546756,), (1350546888,), (1350546894,), (1350546897,), (1350546901,), (1350546950,), (1350546986,), (1350546997,), (1350547000,), (1350547002,), (1350547132,), (1350547133,), (1350547135,), (1350547137,), (1350547140,), (1350547206,), (1350547210,), (1350547214,), (1350547231,), (1350547236,), (1350547268,), (1350547270,), (1350547278,), (1350547299,), (1350547305,), (1350547345,), (1350547366,), (1350547387,), (1350547429,), (1350547445,), (1350547474,), (1350547621,), (1350547631,), (1350547635,), (1350547639,), (1350547643,), (1350547884,), (1350547906,), (1350547915,)) 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 (1350547000) and cspi.crop_hashtag_id = chi.id; 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`=22135444 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','autre_refus','mal_croppe','kraft','papier','Teint_Dans_La_Masse','Carton_gris','metal','Carton_brun','plastique','environnement')) 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`=22135444 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','autre_refus','mal_croppe','kraft','papier','Teint_Dans_La_Masse','Carton_gris','metal','Carton_brun','plastique','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22135444, 'sub_port_id': 22135491, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615751, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 31)}, 'kraft': {'main_port_id': 22135444, 'sub_port_id': 22135492, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615752, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 31)}, 'papier': {'main_port_id': 22135444, 'sub_port_id': 22135493, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615753, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 31)}, 'metal': {'main_port_id': 22135444, 'sub_port_id': 22135494, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615754, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 31)}, 'autre_refus': {'main_port_id': 22135444, 'sub_port_id': 22135495, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615755, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 31)}, 'cartonnette': {'main_port_id': 22135444, 'sub_port_id': 22135496, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615756, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 31)}, 'Carton_gris': {'main_port_id': 22135444, 'sub_port_id': 22135497, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615757, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 31)}, 'mal_croppe': {'main_port_id': 22135444, 'sub_port_id': 22135498, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615758, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 31)}, 'Carton_brun': {'main_port_id': 22135444, 'sub_port_id': 22135499, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615759, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 22135444, 'sub_port_id': 22135500, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615760, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 31)}, 'plastique': {'main_port_id': 22135444, 'sub_port_id': 22135501, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615761, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 31)}, 'flou': {'main_port_id': 22135444, 'sub_port_id': 22135502, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14615762, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 33, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22135491,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22135478 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22135492,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22135479 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22135493,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22135480 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22135494,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22135481 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22135495,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22135482 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22135496,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22135483 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22135497,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22135484 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22135498,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22135485 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22135499,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22135486 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22135500,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22135487 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22135501,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22135488 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22135502,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22135489 lien utilise dans velours : https://www.fotonower.com/velours/22135491,22135492,22135493,22135494,22135495,22135496,22135497,22135498,22135499,22135500,22135501,22135502?tags=environnement,kraft,papier,metal,autre_refus,cartonnette,Carton_gris,mal_croppe,Carton_brun,Teint_Dans_La_Masse,plastique,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22135444]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350547915, 1350547906, 1350547884, 1350547643, 1350547639, 1350547635, 1350547631, 1350547621, 1350547474, 1350547445, 1350547429, 1350547387, 1350547366, 1350547345] map_info['map_portfolio_photo'] : {22135444: [1350547915, 1350547906, 1350547884, 1350547643, 1350547639, 1350547635, 1350547631, 1350547621, 1350547474, 1350547445, 1350547429, 1350547387, 1350547366, 1350547345, 1350547305, 1350547299, 1350547278, 1350547270, 1350547268, 1350547236, 1350547231, 1350547214, 1350547210, 1350547206, 1350547140, 1350547137, 1350547135, 1350547133, 1350547132, 1350547002, 1350547000, 1350546997, 1350546986, 1350546950, 1350546901, 1350546897, 1350546894, 1350546888, 1350546756, 1350546732, 1350546706, 1350546679, 1350546595, 1350546579, 1350546566, 1350546562]} final : False mtd_id 4302 list_pids : [1350547915, 1350547906, 1350547884, 1350547643, 1350547639, 1350547635, 1350547631, 1350547621, 1350547474, 1350547445, 1350547429, 1350547387, 1350547366, 1350547345] Looping around the photos to save general results len do output : 1 /22135444. 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, '2731625') ('4302', '22135444', '1350547915', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547906', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547884', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547643', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547639', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547635', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547631', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547621', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547474', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547445', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547429', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547387', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547366', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547345', None, None, None, None, None, '2731625') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22135444', "{'environnement': 22135478, 'kraft': 22135479, 'papier': 22135480, 'metal': 22135481, 'autre_refus': 22135482, 'cartonnette': 22135483, 'Carton_gris': 22135484, 'mal_croppe': 22135485, 'Carton_brun': 22135486, 'Teint_Dans_La_Masse': 22135487, 'plastique': 22135488, 'flou': 22135489}", None, None, None, None, '2731625'), ('4302', '22135444', '1350547915', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547906', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547884', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547643', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547639', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547635', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547631', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547621', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547474', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547445', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547429', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547387', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547366', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547345', None, None, None, None, None, '2731625')] time used for this insertion : 0.015473365783691406 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5803117752075195 time spend to save output : 0.015852928161621094 total time spend for step 1 : 0.5961647033691406 step2:final Tue Apr 8 07:40:57 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 (22135444) 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 22135444 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350546595,1350546579,1350546566,1350546562,1350546756,1350546732,1350546706,1350546679,1350546901,1350546897,1350546894,1350547002,1350546888,1350547000,1350546997,1350546986,1350546950,1350547140,1350547137,1350547135,1350547133,1350547132,1350547236,1350547231,1350547214,1350547210,1350547206,1350547305,1350547299,1350547278,1350547270,1350547268,1350547474,1350547445,1350547429,1350547387,1350547366,1350547345,1350547643,1350547639,1350547635,1350547631,1350547621,1350547915,1350547906,1350547884); 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([22135444]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ('0.04424543852117374',), 1350547366: ('0.04424543852117374',), 1350547345: ('0.04424543852117374',)} new output for save of step final : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ('0.04424543852117374',), 1350547366: ('0.04424543852117374',), 1350547345: ('0.04424543852117374',)} [1350547915, 1350547906, 1350547884, 1350547643, 1350547639, 1350547635, 1350547631, 1350547621, 1350547474, 1350547445, 1350547429, 1350547387, 1350547366, 1350547345] map_info['map_portfolio_photo'] : {22135444: [1350547915, 1350547906, 1350547884, 1350547643, 1350547639, 1350547635, 1350547631, 1350547621, 1350547474, 1350547445, 1350547429, 1350547387, 1350547366, 1350547345, 1350547305, 1350547299, 1350547278, 1350547270, 1350547268, 1350547236, 1350547231, 1350547214, 1350547210, 1350547206, 1350547140, 1350547137, 1350547135, 1350547133, 1350547132, 1350547002, 1350547000, 1350546997, 1350546986, 1350546950, 1350546901, 1350546897, 1350546894, 1350546888, 1350546756, 1350546732, 1350546706, 1350546679, 1350546595, 1350546579, 1350546566, 1350546562]} final : False mtd_id 4302 list_pids : [1350547915, 1350547906, 1350547884, 1350547643, 1350547639, 1350547635, 1350547631, 1350547621, 1350547474, 1350547445, 1350547429, 1350547387, 1350547366, 1350547345] Looping around the photos to save general results len do output : 14 /1350547915.Didn't retrieve data . /1350547906.Didn't retrieve data . /1350547884.Didn't retrieve data . /1350547643.Didn't retrieve data . /1350547639.Didn't retrieve data . /1350547635.Didn't retrieve data . /1350547631.Didn't retrieve data . /1350547621.Didn't retrieve data . /1350547474.Didn't retrieve data . /1350547445.Didn't retrieve data . /1350547429.Didn't retrieve data . /1350547387.Didn't retrieve data . /1350547366.Didn't retrieve data . /1350547345.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, '2731625') ('4302', '22135444', '1350547915', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547906', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547884', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547643', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547639', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547635', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547631', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547621', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547474', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547445', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547429', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547387', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547366', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547345', None, None, None, None, None, '2731625') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '22135444', '1350547915', '0.04424543852117374', None, None, None, None, '2731625'), ('4302', '22135444', '1350547906', '0.04424543852117374', None, None, None, None, '2731625'), ('4302', '22135444', '1350547884', '0.04424543852117374', None, None, None, None, '2731625'), ('4302', '22135444', '1350547643', '0.04424543852117374', None, None, None, None, '2731625'), ('4302', '22135444', '1350547639', '0.04424543852117374', None, None, None, None, '2731625'), ('4302', '22135444', '1350547635', '0.04424543852117374', None, None, None, None, '2731625'), ('4302', '22135444', '1350547631', '0.04424543852117374', None, None, None, None, '2731625'), ('4302', '22135444', '1350547621', '0.04424543852117374', None, None, None, None, '2731625'), ('4302', '22135444', '1350547474', '0.04424543852117374', None, None, None, None, '2731625'), ('4302', '22135444', '1350547445', '0.04424543852117374', None, None, None, None, '2731625'), ('4302', '22135444', '1350547429', '0.04424543852117374', None, None, None, None, '2731625'), ('4302', '22135444', '1350547387', '0.04424543852117374', None, None, None, None, '2731625'), ('4302', '22135444', '1350547366', '0.04424543852117374', None, None, None, None, '2731625'), ('4302', '22135444', '1350547345', '0.04424543852117374', None, None, None, None, '2731625')] time used for this insertion : 0.013636350631713867 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06792211532592773 time spend to save output : 0.014336824417114258 total time spend for step 2 : 0.08225893974304199 step3:velours_tree Tue Apr 8 07:40:57 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 : {22135444: [{'environnement': 22135478, 'kraft': 22135479, 'papier': 22135480, 'metal': 22135481, 'autre_refus': 22135482, 'cartonnette': 22135483, 'Carton_gris': 22135484, 'mal_croppe': 22135485, 'Carton_brun': 22135486, 'Teint_Dans_La_Masse': 22135487, 'plastique': 22135488, 'flou': 22135489}]} input_args_next_step : {22135444: ()} output_args : {22135444: [{'environnement': 22135478, 'kraft': 22135479, 'papier': 22135480, 'metal': 22135481, 'autre_refus': 22135482, 'cartonnette': 22135483, 'Carton_gris': 22135484, 'mal_croppe': 22135485, 'Carton_brun': 22135486, 'Teint_Dans_La_Masse': 22135487, 'plastique': 22135488, 'flou': 22135489}]} args : 22135444 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 : ({'environnement': 22135478, 'kraft': 22135479, 'papier': 22135480, 'metal': 22135481, 'autre_refus': 22135482, 'cartonnette': 22135483, 'Carton_gris': 22135484, 'mal_croppe': 22135485, 'Carton_brun': 22135486, 'Teint_Dans_La_Masse': 22135487, 'plastique': 22135488, 'flou': 22135489},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22135444) 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([22135444]) 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.3552870750427246 time spend to save output : 4.935264587402344e-05 total time spend for step 3 : 0.35533642768859863 step4:send_mail_cod Tue Apr 8 07:40: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 : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ('0.04424543852117374',), 1350547366: ('0.04424543852117374',), 1350547345: ('0.04424543852117374',)} input_args_next_step : {1350547915: ()} output_args : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ('0.04424543852117374',), 1350547366: ('0.04424543852117374',), 1350547345: ('0.04424543852117374',)} args : 1350547915 depend.output_id : 0 input_args_next_step : {1350547915: ('0.04424543852117374',), 1350547906: ()} output_args : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ('0.04424543852117374',), 1350547366: ('0.04424543852117374',), 1350547345: ('0.04424543852117374',)} args : 1350547906 depend.output_id : 0 input_args_next_step : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ()} output_args : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ('0.04424543852117374',), 1350547366: ('0.04424543852117374',), 1350547345: ('0.04424543852117374',)} args : 1350547884 depend.output_id : 0 input_args_next_step : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ()} output_args : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ('0.04424543852117374',), 1350547366: ('0.04424543852117374',), 1350547345: ('0.04424543852117374',)} args : 1350547643 depend.output_id : 0 input_args_next_step : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ()} output_args : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ('0.04424543852117374',), 1350547366: ('0.04424543852117374',), 1350547345: ('0.04424543852117374',)} args : 1350547639 depend.output_id : 0 input_args_next_step : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ()} output_args : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ('0.04424543852117374',), 1350547366: ('0.04424543852117374',), 1350547345: ('0.04424543852117374',)} args : 1350547635 depend.output_id : 0 input_args_next_step : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ()} output_args : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ('0.04424543852117374',), 1350547366: ('0.04424543852117374',), 1350547345: ('0.04424543852117374',)} args : 1350547631 depend.output_id : 0 input_args_next_step : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ()} output_args : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ('0.04424543852117374',), 1350547366: ('0.04424543852117374',), 1350547345: ('0.04424543852117374',)} args : 1350547621 depend.output_id : 0 input_args_next_step : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ()} output_args : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ('0.04424543852117374',), 1350547366: ('0.04424543852117374',), 1350547345: ('0.04424543852117374',)} args : 1350547474 depend.output_id : 0 input_args_next_step : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ()} output_args : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ('0.04424543852117374',), 1350547366: ('0.04424543852117374',), 1350547345: ('0.04424543852117374',)} args : 1350547445 depend.output_id : 0 input_args_next_step : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ()} output_args : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ('0.04424543852117374',), 1350547366: ('0.04424543852117374',), 1350547345: ('0.04424543852117374',)} args : 1350547429 depend.output_id : 0 input_args_next_step : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ()} output_args : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ('0.04424543852117374',), 1350547366: ('0.04424543852117374',), 1350547345: ('0.04424543852117374',)} args : 1350547387 depend.output_id : 0 input_args_next_step : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ('0.04424543852117374',), 1350547366: ()} output_args : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ('0.04424543852117374',), 1350547366: ('0.04424543852117374',), 1350547345: ('0.04424543852117374',)} args : 1350547366 depend.output_id : 0 input_args_next_step : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ('0.04424543852117374',), 1350547366: ('0.04424543852117374',), 1350547345: ()} output_args : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ('0.04424543852117374',), 1350547366: ('0.04424543852117374',), 1350547345: ('0.04424543852117374',)} args : 1350547345 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 : {22135444: [{'environnement': 22135478, 'kraft': 22135479, 'papier': 22135480, 'metal': 22135481, 'autre_refus': 22135482, 'cartonnette': 22135483, 'Carton_gris': 22135484, 'mal_croppe': 22135485, 'Carton_brun': 22135486, 'Teint_Dans_La_Masse': 22135487, 'plastique': 22135488, 'flou': 22135489}]} input_args_next_step : {1350547915: ('0.04424543852117374',), 1350547906: ('0.04424543852117374',), 1350547884: ('0.04424543852117374',), 1350547643: ('0.04424543852117374',), 1350547639: ('0.04424543852117374',), 1350547635: ('0.04424543852117374',), 1350547631: ('0.04424543852117374',), 1350547621: ('0.04424543852117374',), 1350547474: ('0.04424543852117374',), 1350547445: ('0.04424543852117374',), 1350547429: ('0.04424543852117374',), 1350547387: ('0.04424543852117374',), 1350547366: ('0.04424543852117374',), 1350547345: ('0.04424543852117374',), 22135444: ()} output_args : {22135444: [{'environnement': 22135478, 'kraft': 22135479, 'papier': 22135480, 'metal': 22135481, 'autre_refus': 22135482, 'cartonnette': 22135483, 'Carton_gris': 22135484, 'mal_croppe': 22135485, 'Carton_brun': 22135486, 'Teint_Dans_La_Masse': 22135487, 'plastique': 22135488, 'flou': 22135489}]} args : 22135444 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 :15, first value : ('0.04424543852117374',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22135444) 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 (1350547915,1350547906,1350547884,1350547643,1350547639,1350547635,1350547631,1350547621,1350547474,1350547445,1350547429,1350547387,1350547366,1350547345) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350547345 begin to download photo : 1350547429 begin to download photo : 1350547621 begin to download photo : 1350547639 begin to download photo : 1350547906 download finish for photo 1350547906 begin to download photo : 1350547915 download finish for photo 1350547621 begin to download photo : 1350547631 download finish for photo 1350547639 begin to download photo : 1350547643 download finish for photo 1350547429 begin to download photo : 1350547445 download finish for photo 1350547345 begin to download photo : 1350547366 download finish for photo 1350547915 download finish for photo 1350547631 begin to download photo : 1350547635 download finish for photo 1350547643 begin to download photo : 1350547884 download finish for photo 1350547445 begin to download photo : 1350547474 download finish for photo 1350547366 begin to download photo : 1350547387 download finish for photo 1350547884 download finish for photo 1350547474 download finish for photo 1350547387 download finish for photo 1350547635 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette221354791744090858/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P22135444_08-04-2025_07_40_58.pdf 22135479 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=22135479 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221354791744090858 22135481 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=22135481 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350546944: '1744090392_1877667_1350546679_ea7a7b6d85ab204361114fa9c75c2e9a_rle_crop_3750400845_0.png', 1350547838: '1744090751_1881092_1350547210_8c24e247388c4f647f5fdab1b4216616_rle_crop_3750404299_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/483c5f68d9824153761fb6b638a0fe57_33656294.png change filename to text .imagette221354811744090858/ imagette221354811744090858/1744090392_1877667_1350546679_ea7a7b6d85ab204361114fa9c75c2e9a_rle_crop_3750400845_0.png.png imagette221354811744090858/1744090751_1881092_1350547210_8c24e247388c4f647f5fdab1b4216616_rle_crop_3750404299_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/9f1f33d283184a520af912d05737b6cf_59054141.png imagette221354811744090858 22135482 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=22135482 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350547244: '1744090550_1878912_1350546595_9cc9d5b9ef313724f2401df88f76987b_rle_crop_3750401931_0.png', 1350547245: '1744090550_1878912_1350546566_404481a593d9763ce92aee38dec57926_rle_crop_3750401949_0.png', 1350547326: '1744090633_1879775_1350547135_ed6b61ef95c650d3ef7eb4aa74df961f_rle_crop_3750403277_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/86441e8f1b467289ce41ae0d7c3b6fc3_32171088.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/e272d816c1a6f632117b2c122a19deac_42286706.png change filename to text .imagette221354821744090858/ imagette221354821744090858/1744090633_1879775_1350547135_ed6b61ef95c650d3ef7eb4aa74df961f_rle_crop_3750403277_0.png.png imagette221354821744090858/1744090550_1878912_1350546595_9cc9d5b9ef313724f2401df88f76987b_rle_crop_3750401931_0.png.png imagette221354821744090858/1744090550_1878912_1350546566_404481a593d9763ce92aee38dec57926_rle_crop_3750401949_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/1b8b05b3dd3474c02a46765f9fe98d3c_43666308.png imagette221354821744090858 22135483 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=22135483 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350546934: '1744090392_1877667_1350546732_a5fe8de127015a6371f610aadab03f49_rle_crop_3750400793_0.png', 1350547198: '1744090527_1621724_1350546897_0982f2f3f1648cdd02facd28adab483f_rle_crop_3750401618_0.png', 1350547330: '1744090633_1879775_1350547137_3fad85a1f98b0d0944e4a223f16828ad_rle_crop_3750403077_0.png', 1350547331: '1744090633_1879775_1350547133_5599e34e97fb858c72a53f9293f8bf09_rle_crop_3750403303_0.png', 1350547459: '1744090648_1679801_1350547000_1b5f1e1503a77c921b2975505d488522_rle_crop_3750403396_0.png', 1350547830: '1744090751_1881092_1350547231_2a12dcde9cf4b7121b7f45e861cf2810_rle_crop_3750404210_0.png', 1350547831: '1744090751_1881092_1350547214_438c92cf0fe5f4afb2f8959397251921_rle_crop_3750404280_0.png', 1350547928: '1744090771_1881315_1350547278_9c6e68d90a5afd14cb609ec88a2f4106_rle_crop_3750404487_0.png', 1350547929: '1744090771_1881315_1350547278_9c6e68d90a5afd14cb609ec88a2f4106_rle_crop_3750404496_0.png', 1350547930: '1744090771_1881315_1350547278_9c6e68d90a5afd14cb609ec88a2f4106_rle_crop_3750404490_0.png', 1350547931: '1744090771_1881315_1350547268_cdd2b9547a940da428c529adbcb6d820_rle_crop_3750404609_0.png', 1350547932: '1744090771_1881315_1350547268_cdd2b9547a940da428c529adbcb6d820_rle_crop_3750404613_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/86a88908a8dc022978eb8dbd086ca9fa_649281.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/da80cbe0b82f0e8b10226d4e8ff4897a_63880530.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/c88b72007872c87c4ad7b33fc36fd382_27332307.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/8e45672f2c1915824c854859481fb43b_37688687.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/592020424fdf4443fec7363fb83cddd6_17410444.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/0fbb2b8d2d937412c0cf5ff349931b6c_62918101.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/1261a13849a10f0ab2e79d42a1858a37_29008538.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/a07110020b6af115dbb3b6181ad55e5b_75610644.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/8c7f3489bef5a6ec07248d2d6e8ddcbe_58563804.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/f765986c0bfe13a0aecb4176eb7b2554_16272768.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/263487ffde88790118f6206822f83b98_81714028.png change filename to text .imagette221354831744090859/ imagette221354831744090859/1744090648_1679801_1350547000_1b5f1e1503a77c921b2975505d488522_rle_crop_3750403396_0.png.png imagette221354831744090859/1744090771_1881315_1350547278_9c6e68d90a5afd14cb609ec88a2f4106_rle_crop_3750404496_0.png.png imagette221354831744090859/1744090751_1881092_1350547214_438c92cf0fe5f4afb2f8959397251921_rle_crop_3750404280_0.png.png imagette221354831744090859/1744090771_1881315_1350547278_9c6e68d90a5afd14cb609ec88a2f4106_rle_crop_3750404487_0.png.png imagette221354831744090859/1744090633_1879775_1350547133_5599e34e97fb858c72a53f9293f8bf09_rle_crop_3750403303_0.png.png imagette221354831744090859/1744090392_1877667_1350546732_a5fe8de127015a6371f610aadab03f49_rle_crop_3750400793_0.png.png imagette221354831744090859/1744090527_1621724_1350546897_0982f2f3f1648cdd02facd28adab483f_rle_crop_3750401618_0.png.png imagette221354831744090859/1744090771_1881315_1350547268_cdd2b9547a940da428c529adbcb6d820_rle_crop_3750404609_0.png.png imagette221354831744090859/1744090751_1881092_1350547231_2a12dcde9cf4b7121b7f45e861cf2810_rle_crop_3750404210_0.png.png imagette221354831744090859/1744090771_1881315_1350547268_cdd2b9547a940da428c529adbcb6d820_rle_crop_3750404613_0.png.png imagette221354831744090859/1744090771_1881315_1350547278_9c6e68d90a5afd14cb609ec88a2f4106_rle_crop_3750404490_0.png.png imagette221354831744090859/1744090633_1879775_1350547137_3fad85a1f98b0d0944e4a223f16828ad_rle_crop_3750403077_0.png.png imagette221354851744090859/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/220876442134a6c6ab7fdce5af9996a2_67227917.png imagette221354831744090859 22135485 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=22135485 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221354851744090859 22135488 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=22135488 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350547201: '1744090527_1621724_1350546897_0982f2f3f1648cdd02facd28adab483f_rle_crop_3750401608_0.png', 1350547250: '1744090550_1878912_1350546579_fc7df2659af20713fcf45cd496043220_rle_crop_3750401939_0.png', 1350547482: '1744090648_1679801_1350547000_1b5f1e1503a77c921b2975505d488522_rle_crop_3750403401_0.png', 1350547483: '1744090648_1679801_1350546997_91ba39efd8307ba87992da27492ae03b_rle_crop_3750403428_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/6edeb59e60292ec025f54a98f2fd2066_70575338.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/43c6975c690407b1eb350319b892adf5_79948455.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/215bc13c4150fc3ecee66743b61ec96a_73585251.png change filename to text .imagette221354881744090859/ imagette221354881744090859/1744090648_1679801_1350547000_1b5f1e1503a77c921b2975505d488522_rle_crop_3750403401_0.png.png imagette221354881744090859/1744090648_1679801_1350546997_91ba39efd8307ba87992da27492ae03b_rle_crop_3750403428_0.png.png imagette221354881744090859/1744090527_1621724_1350546897_0982f2f3f1648cdd02facd28adab483f_rle_crop_3750401608_0.png.png imagette221354881744090859/1744090550_1878912_1350546579_fc7df2659af20713fcf45cd496043220_rle_crop_3750401939_0.png.png imagette221354891744090860/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/759c964e5f0d83b40ee16c8bce49c014_3350231.png imagette221354881744090859 22135489 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=22135489 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221354891744090860 22135484 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=22135484 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350547196: '1744090527_1621724_1350546894_d07b6ec2743433384d4958396efb8d55_rle_crop_3750401649_0.png', 1350547197: '1744090527_1621724_1350546894_d07b6ec2743433384d4958396efb8d55_rle_crop_3750401650_0.png', 1350547246: '1744090550_1878912_1350546562_7f3d58b0b8ad77755eb6b01fc34df616_rle_crop_3750401964_0.png', 1350547450: '1744090648_1679801_1350546997_91ba39efd8307ba87992da27492ae03b_rle_crop_3750403422_0.png', 1350547452: '1744090648_1679801_1350546997_91ba39efd8307ba87992da27492ae03b_rle_crop_3750403424_0.png', 1350547821: '1744090751_1881092_1350547214_438c92cf0fe5f4afb2f8959397251921_rle_crop_3750404281_0.png', 1350547822: '1744090751_1881092_1350547210_8c24e247388c4f647f5fdab1b4216616_rle_crop_3750404295_0.png', 1350547823: '1744090751_1881092_1350547210_8c24e247388c4f647f5fdab1b4216616_rle_crop_3750404294_0.png', 1350547824: '1744090751_1881092_1350547210_8c24e247388c4f647f5fdab1b4216616_rle_crop_3750404298_0.png', 1350547826: '1744090751_1881092_1350547206_61c914dce2aa9b723bcaee3326f90533_rle_crop_3750404315_0.png', 1350547923: '1744090771_1881315_1350547278_9c6e68d90a5afd14cb609ec88a2f4106_rle_crop_3750404485_0.png', 1350547924: '1744090771_1881315_1350547270_020e3c67d8a27fd7cb7f6f379275b3d5_rle_crop_3750404583_0.png', 1350547925: '1744090771_1881315_1350547270_020e3c67d8a27fd7cb7f6f379275b3d5_rle_crop_3750404581_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/d4846ff2927f96b83987ccb724d4e1b4_44009755.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/ad24b7f345c3e28a2aa3df957e6d0f4e_27417649.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/b32cc9c64b0bf35c161ffaa4ad512036_96847237.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/86eaf9001901048d017d8d04775f7c50_43676598.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/885366bf7f6c4db4f6df8a3814441fdf_53315829.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/1862a9290a765b4f6639f531eca2ff66_80097629.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/02d4846d88116ecf43c235e1f9df693a_80817691.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/b6e7c94db4d2f4a5abba84859423a3de_88833869.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/da52ae70c31df5d4edab6829004e28b0_24245133.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/15c1b1662bdefb7f2cb559119ff87d76_58354418.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/274c2dcef3f87ebdef7a481974040d10_24864309.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/2786afff5716ae4363c96b0c73082225_98302330.png change filename to text .imagette221354841744090860/ imagette221354841744090860/1744090527_1621724_1350546894_d07b6ec2743433384d4958396efb8d55_rle_crop_3750401650_0.png.png imagette221354841744090860/1744090751_1881092_1350547210_8c24e247388c4f647f5fdab1b4216616_rle_crop_3750404294_0.png.png imagette221354841744090860/1744090771_1881315_1350547278_9c6e68d90a5afd14cb609ec88a2f4106_rle_crop_3750404485_0.png.png imagette221354841744090860/1744090550_1878912_1350546562_7f3d58b0b8ad77755eb6b01fc34df616_rle_crop_3750401964_0.png.png imagette221354841744090860/1744090771_1881315_1350547270_020e3c67d8a27fd7cb7f6f379275b3d5_rle_crop_3750404581_0.png.png imagette221354841744090860/1744090771_1881315_1350547270_020e3c67d8a27fd7cb7f6f379275b3d5_rle_crop_3750404583_0.png.png imagette221354841744090860/1744090648_1679801_1350546997_91ba39efd8307ba87992da27492ae03b_rle_crop_3750403422_0.png.png imagette221354841744090860/1744090751_1881092_1350547214_438c92cf0fe5f4afb2f8959397251921_rle_crop_3750404281_0.png.png imagette221354841744090860/1744090751_1881092_1350547210_8c24e247388c4f647f5fdab1b4216616_rle_crop_3750404298_0.png.png imagette221354841744090860/1744090648_1679801_1350546997_91ba39efd8307ba87992da27492ae03b_rle_crop_3750403424_0.png.png imagette221354841744090860/1744090751_1881092_1350547210_8c24e247388c4f647f5fdab1b4216616_rle_crop_3750404295_0.png.png imagette221354841744090860/1744090527_1621724_1350546894_d07b6ec2743433384d4958396efb8d55_rle_crop_3750401649_0.png.png imagette221354841744090860/1744090751_1881092_1350547206_61c914dce2aa9b723bcaee3326f90533_rle_crop_3750404315_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/7512305a8a16224b17fa787adb9a5857_28121929.png imagette221354841744090860 22135486 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=22135486 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350547199: '1744090527_1621724_1350546897_0982f2f3f1648cdd02facd28adab483f_rle_crop_3750401613_0.png', 1350547248: '1744090550_1878912_1350546566_404481a593d9763ce92aee38dec57926_rle_crop_3750401956_0.png', 1350547249: '1744090550_1878912_1350546562_7f3d58b0b8ad77755eb6b01fc34df616_rle_crop_3750401969_0.png', 1350547466: '1744090648_1679801_1350547140_f976d409214bab15526dd98f53e4c0b6_rle_crop_3750403382_0.png', 1350547470: '1744090648_1679801_1350546950_31bfdef8f5557e3ca48c1894756a31d9_rle_crop_3750403531_0.png', 1350547475: '1744090648_1679801_1350546950_31bfdef8f5557e3ca48c1894756a31d9_rle_crop_3750403536_0.png', 1350547933: '1744090771_1881315_1350547270_020e3c67d8a27fd7cb7f6f379275b3d5_rle_crop_3750404585_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/1e0fd0aea9aaad4fc64a0b1f7a837e4d_79658223.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/22e4c0a284dae588c970d00fe9522140_14684462.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/91c4b2c0c6d3f9ab8ef3e8c76f2e7f3e_54662092.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/e63e5ea7782758f7304ac361cd37f593_52085995.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/398f3e1bdc83170695b0f85776291a6a_70021994.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/8f2e0e5fca70d56d37674af2d79d6e99_46684285.png change filename to text .imagette221354861744090860/ imagette221354861744090860/1744090771_1881315_1350547270_020e3c67d8a27fd7cb7f6f379275b3d5_rle_crop_3750404585_0.png.png imagette221354861744090860/1744090648_1679801_1350546950_31bfdef8f5557e3ca48c1894756a31d9_rle_crop_3750403536_0.png.png imagette221354861744090860/1744090648_1679801_1350547140_f976d409214bab15526dd98f53e4c0b6_rle_crop_3750403382_0.png.png imagette221354861744090860/1744090550_1878912_1350546566_404481a593d9763ce92aee38dec57926_rle_crop_3750401956_0.png.png imagette221354861744090860/1744090648_1679801_1350546950_31bfdef8f5557e3ca48c1894756a31d9_rle_crop_3750403531_0.png.png imagette221354861744090860/1744090550_1878912_1350546562_7f3d58b0b8ad77755eb6b01fc34df616_rle_crop_3750401969_0.png.png imagette221354861744090860/1744090527_1621724_1350546897_0982f2f3f1648cdd02facd28adab483f_rle_crop_3750401613_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/44f70c2edf7c6c6e8fe0ca74ce79bf0a_34126401.png imagette221354861744090860 22135487 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=22135487 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350546933: '1744090392_1877667_1350546732_a5fe8de127015a6371f610aadab03f49_rle_crop_3750400792_0.png', 1350547194: '1744090530_1878745_1350546901_bec0974ec5d1242d9f6478564677ab8b_rle_crop_3750401684_0.png', 1350547243: '1744090550_1878912_1350546566_404481a593d9763ce92aee38dec57926_rle_crop_3750401952_0.png', 1350547424: '1744090648_1679801_1350546950_31bfdef8f5557e3ca48c1894756a31d9_rle_crop_3750403534_0.png', 1350547811: '1744090751_1881092_1350547231_2a12dcde9cf4b7121b7f45e861cf2810_rle_crop_3750404212_0.png', 1350547812: '1744090751_1881092_1350547214_438c92cf0fe5f4afb2f8959397251921_rle_crop_3750404286_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/bac50d35174fb187e8cd6e2493b7905f_64732354.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/ec0175c3f2003476d03c929d4afb5d69_97258974.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/964a14cacca9a6e88e431ecbce8b05bb_25902187.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/9b2e28f7e810c24e34c3470b9a54fc90_29346412.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/0e1dca35b5c77f08243ee493225b39cb_51546449.png change filename to text .imagette221354871744090861/ imagette221354871744090861/1744090550_1878912_1350546566_404481a593d9763ce92aee38dec57926_rle_crop_3750401952_0.png.png imagette221354871744090861/1744090392_1877667_1350546732_a5fe8de127015a6371f610aadab03f49_rle_crop_3750400792_0.png.png imagette221354871744090861/1744090751_1881092_1350547231_2a12dcde9cf4b7121b7f45e861cf2810_rle_crop_3750404212_0.png.png imagette221354871744090861/1744090648_1679801_1350546950_31bfdef8f5557e3ca48c1894756a31d9_rle_crop_3750403534_0.png.png imagette221354871744090861/1744090530_1878745_1350546901_bec0974ec5d1242d9f6478564677ab8b_rle_crop_3750401684_0.png.png imagette221354871744090861/1744090751_1881092_1350547214_438c92cf0fe5f4afb2f8959397251921_rle_crop_3750404286_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/e02329ac1a3afba1ca8d421d4deb10bf_79137755.png imagette221354871744090861 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22135444 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22135491,22135492,22135493,22135494,22135495,22135496,22135497,22135498,22135499,22135500,22135501,22135502?tags=environnement,kraft,papier,metal,autre_refus,cartonnette,Carton_gris,mal_croppe,Carton_brun,Teint_Dans_La_Masse,plastique,flou your option no_mail is active, we will not send the real mail to your client args[1350547915] : ('0.04424543852117374',) no score found for photo 1350547915 We are sending mail with results at report@fotonower.com args[1350547906] : ('0.04424543852117374',) no score found for photo 1350547906 We are sending mail with results at report@fotonower.com args[1350547884] : ('0.04424543852117374',) no score found for photo 1350547884 We are sending mail with results at report@fotonower.com args[1350547643] : ('0.04424543852117374',) no score found for photo 1350547643 We are sending mail with results at report@fotonower.com args[1350547639] : ('0.04424543852117374',) no score found for photo 1350547639 We are sending mail with results at report@fotonower.com args[1350547635] : ('0.04424543852117374',) no score found for photo 1350547635 We are sending mail with results at report@fotonower.com args[1350547631] : ('0.04424543852117374',) no score found for photo 1350547631 We are sending mail with results at report@fotonower.com args[1350547621] : ('0.04424543852117374',) no score found for photo 1350547621 We are sending mail with results at report@fotonower.com args[1350547474] : ('0.04424543852117374',) no score found for photo 1350547474 We are sending mail with results at report@fotonower.com args[1350547445] : ('0.04424543852117374',) no score found for photo 1350547445 We are sending mail with results at report@fotonower.com args[1350547429] : ('0.04424543852117374',) no score found for photo 1350547429 We are sending mail with results at report@fotonower.com args[1350547387] : ('0.04424543852117374',) no score found for photo 1350547387 We are sending mail with results at report@fotonower.com args[1350547366] : ('0.04424543852117374',) no score found for photo 1350547366 We are sending mail with results at report@fotonower.com args[1350547345] : ('0.04424543852117374',) no score found for photo 1350547345 We are sending mail with results at report@fotonower.com refus_total : 0.04424543852117374 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=22135444 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_P22135444_08-04-2025_07_40_58.pdf results_Auto_P22135444_08-04-2025_07_40_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22135444_08-04-2025_07_40_58.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','22135444','results_Auto_P22135444_08-04-2025_07_40_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22135444_08-04-2025_07_40_58.pdf','pdf','','0.22','0.04424543852117374') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22135444]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350547915, 1350547906, 1350547884, 1350547643, 1350547639, 1350547635, 1350547631, 1350547621, 1350547474, 1350547445, 1350547429, 1350547387, 1350547366, 1350547345] map_info['map_portfolio_photo'] : {22135444: [1350547915, 1350547906, 1350547884, 1350547643, 1350547639, 1350547635, 1350547631, 1350547621, 1350547474, 1350547445, 1350547429, 1350547387, 1350547366, 1350547345, 1350547305, 1350547299, 1350547278, 1350547270, 1350547268, 1350547236, 1350547231, 1350547214, 1350547210, 1350547206, 1350547140, 1350547137, 1350547135, 1350547133, 1350547132, 1350547002, 1350547000, 1350546997, 1350546986, 1350546950, 1350546901, 1350546897, 1350546894, 1350546888, 1350546756, 1350546732, 1350546706, 1350546679, 1350546595, 1350546579, 1350546566, 1350546562]} final : False mtd_id 4302 list_pids : [1350547915, 1350547906, 1350547884, 1350547643, 1350547639, 1350547635, 1350547631, 1350547621, 1350547474, 1350547445, 1350547429, 1350547387, 1350547366, 1350547345] 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, '2731625') ('4302', '22135444', '1350547915', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547906', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547884', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547643', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547639', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547635', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547631', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547621', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547474', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547445', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547429', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547387', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547366', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547345', None, None, None, None, None, '2731625') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '22135444', '1350547915', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547906', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547884', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547643', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547639', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547635', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547631', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547621', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547474', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547445', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547429', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547387', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547366', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547345', None, None, None, None, None, '2731625')] time used for this insertion : 0.01650214195251465 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.305455923080444 time spend to save output : 0.016752004623413086 total time spend for step 4 : 4.322207927703857 step5:split_time_score Tue Apr 8 07:41: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 : ['22135444'] 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 : [('22135444',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22135444) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350547906: {'path': 'temp/1744090858_131822_1350547906_4717eca64db092e133850ec236ce6703.jpg', 'extension': 'jpg'}, 1350547915: {'path': 'temp/1744090858_131822_1350547915_6a92e1585f94e3ef855fda2e9a60457b.jpg', 'extension': 'jpg'}, 1350547639: {'path': 'temp/1744090858_131822_1350547639_1830716f3f324a8ccc1c70494cc734b5.jpg', 'extension': 'jpg'}, 1350547643: {'path': 'temp/1744090858_131822_1350547643_70779f45c11e48fadd4dc9bdc2ae9278.jpg', 'extension': 'jpg'}, 1350547884: {'path': 'temp/1744090858_131822_1350547884_cbccf2fd5783d341041e596be1a6b425.jpg', 'extension': 'jpg'}, 1350547429: {'path': 'temp/1744090858_131822_1350547429_1714ce78c291f2e24462a980019a10f5.jpg', 'extension': 'jpg'}, 1350547445: {'path': 'temp/1744090858_131822_1350547445_8aa370cc7cd2c8e569953b33507b7663.jpg', 'extension': 'jpg'}, 1350547474: {'path': 'temp/1744090858_131822_1350547474_8b49068a22cc49b4f65c0bb8a46afa7f.jpg', 'extension': 'jpg'}, 1350547345: {'path': 'temp/1744090858_131822_1350547345_97ba50b6390e9e65d5c6088b18b1d04e.jpg', 'extension': 'jpg'}, 1350547366: {'path': 'temp/1744090858_131822_1350547366_b37fa70c3f1e3d8fcbc2898c4cb49008.jpg', 'extension': 'jpg'}, 1350547387: {'path': 'temp/1744090858_131822_1350547387_150ab4d3cb510d9feacd2ac8d40fb923.jpg', 'extension': 'jpg'}, 1350547621: {'path': 'temp/1744090858_131822_1350547621_fae5914deb65c0428e14eb4b56be24c4.jpg', 'extension': 'jpg'}, 1350547631: {'path': 'temp/1744090858_131822_1350547631_fbcf4a1919f65b9697e89d7674f70ca6.jpg', 'extension': 'jpg'}, 1350547635: {'path': 'temp/1744090858_131822_1350547635_02cf4f67ca4eb14f0b013dde30c3e3ba.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 = 22135444; (('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 = 22135444 group by h (('07', 46),) 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=22135444 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 (22135444) 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 (22135444) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08042025 22135444 Nombre de photos uploadées : 46 / 23040 (0%) 08042025 22135444 Nombre de photos taguées (types de déchets): 0 / 46 (0%) 08042025 22135444 Nombre de photos taguées (volume) : 0 / 46 (0%) [{'photo_id': 1350546595, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/9cc9d5b9ef313724f2401df88f76987b.jpg', 'username': None, 'uploaded_at': 1744090267, 'text': 'image_08042025_07_30_03_010153m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1350546579, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/fc7df2659af20713fcf45cd496043220.jpg', 'username': None, 'uploaded_at': 1744090267, 'text': 'image_08042025_07_30_14_010138m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1350546566, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/404481a593d9763ce92aee38dec57926.jpg', 'username': None, 'uploaded_at': 1744090267, 'text': 'image_08042025_07_30_24_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1350546562, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/7f3d58b0b8ad77755eb6b01fc34df616.jpg', 'username': None, 'uploaded_at': 1744090267, 'text': 'image_08042025_07_30_34_010133m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ?????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002185821533203125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22135444, '2025-04-08' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1722494,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.0287625789642334 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= 1722494 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1722494, 'dashboard_run_id': 1731071, 'mtr_portfolio_id': 22133903, 'dashboard_result_id': 9926751, '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_P22133903_08-04-2025_07_07_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22133931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22133932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22133933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22133934, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22133935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22133936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22133937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22133938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22133939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22133940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22133941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22133942, 'pht': 3726}}"}, {'dashboat_entry_day': 1722494, 'dashboard_run_id': 1731071, 'mtr_portfolio_id': 22134541, 'dashboard_result_id': 9926752, '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_P22134541_08-04-2025_07_23_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22134560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22134562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22134565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22134567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22134568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22134569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22134570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22134571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22134572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22134573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22134574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22134575, 'pht': 3726}}"}, {'dashboat_entry_day': 1722494, 'dashboard_run_id': 1731071, 'mtr_portfolio_id': 22134675, 'dashboard_result_id': 9926753, '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_P22134675_08-04-2025_07_33_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22134724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22134725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22134726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22134727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22134728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22134729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22134730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22134731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22134732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22134733, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22134734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22134735, 'pht': 3726}}"}, {'dashboat_entry_day': 1722494, 'dashboard_run_id': 1731071, 'mtr_portfolio_id': 22135444, 'dashboard_result_id': 9926754, '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_P22135444_08-04-2025_07_38_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22135478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22135479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22135480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22135481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22135482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22135483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22135484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22135485, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22135486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22135487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22135488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22135489, '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 = 22133903 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': 2731442, 'mtr_portfolio_id': 22133903, 'created_at': datetime.datetime(2025, 4, 8, 7, 7, 2), 'result': '0.02432890207536342', 'result_long': None, 'result_double': None}] Qualite : 0.02432890207536342 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22133903 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22133903_08-04-2025_07_07_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22133903 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_P22133903_08-04-2025_07_07_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22133931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22133932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22133933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22133934, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22133935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22133936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22133937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22133938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22133939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22133940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22133941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22133942, 'pht': 3726}}" where mtr_portfolio_id = 22133903 and dashboard_run_id = 1731071 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`=22133903 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9926751, 0.02432890207536342, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22133903_08-04-2025_07_07_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22133931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22133932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22133933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22133934, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22133935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22133936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22133937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22133938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22133939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22133940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22133941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22133942, '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 = 22134541 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': 2731557, 'mtr_portfolio_id': 22134541, 'created_at': datetime.datetime(2025, 4, 8, 7, 23, 1), 'result': '0.04811930915393692', 'result_long': None, 'result_double': None}] Qualite : 0.04811930915393692 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22134541 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22134541_08-04-2025_07_23_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22134541 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_P22134541_08-04-2025_07_23_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22134560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22134562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22134565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22134567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22134568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22134569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22134570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22134571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22134572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22134573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22134574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22134575, 'pht': 3726}}" where mtr_portfolio_id = 22134541 and dashboard_run_id = 1731071 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`=22134541 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9926752, 0.04811930915393692, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22134541_08-04-2025_07_23_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22134560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22134562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22134565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22134567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22134568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22134569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22134570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22134571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22134572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22134573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22134574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22134575, '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 = 22134675 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': 2731577, 'mtr_portfolio_id': 22134675, 'created_at': datetime.datetime(2025, 4, 8, 7, 33, 32), 'result': '0.05165940992207415', 'result_long': None, 'result_double': None}] Qualite : 0.05165940992207415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22134675 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22134675_08-04-2025_07_33_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22134675 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_P22134675_08-04-2025_07_33_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22134724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22134725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22134726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22134727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22134728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22134729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22134730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22134731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22134732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22134733, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22134734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22134735, 'pht': 3726}}" where mtr_portfolio_id = 22134675 and dashboard_run_id = 1731071 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`=22134675 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9926753, 0.05165940992207415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22134675_08-04-2025_07_33_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22134724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22134725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22134726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22134727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22134728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22134729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22134730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22134731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22134732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22134733, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22134734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22134735, '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 = 22135444 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': 2731625, 'mtr_portfolio_id': 22135444, 'created_at': datetime.datetime(2025, 4, 8, 7, 40, 57), 'result': '0.04424543852117374', 'result_long': None, 'result_double': None}] Qualite : 0.04424543852117374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22135444 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22135444_08-04-2025_07_40_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22135444 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_P22135444_08-04-2025_07_40_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22135478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22135479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22135480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22135481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22135482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22135483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22135484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22135485, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22135486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22135487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22135488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22135489, 'pht': 3726}}" where mtr_portfolio_id = 22135444 and dashboard_run_id = 1731071 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`=22135444 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9926754, 0.04424543852117374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22135444_08-04-2025_07_40_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22135478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22135479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22135480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22135481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22135482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22135483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22135484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22135485, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22135486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22135487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22135488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22135489, '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 (22133903,22134541,22134675,22135444) result : ((1350539273,), (1350539316,), (1350539317,), (1350539318,), (1350539319,), (1350539321,), (1350539348,), (1350539354,), (1350539363,), (1350539602,), (1350539610,), (1350539611,), (1350539612,), (1350539665,), (1350539670,), (1350539673,), (1350539720,), (1350539724,), (1350539726,), (1350539730,), (1350539733,), (1350539818,), (1350539822,), (1350539826,), (1350539842,), (1350539864,), (1350539944,), (1350539946,), (1350539949,), (1350539953,), (1350539980,), (1350539981,), (1350540035,), (1350540202,), (1350540338,), (1350540815,), (1350543373,), (1350543225,), (1350544014,), (1350544040,), (1350544064,), (1350544069,), (1350544369,), (1350544407,), (1350544414,), (1350544765,), (1350544786,), (1350544811,), (1350544912,), (1350544917,), (1350544921,), (1350544927,), (1350544936,), (1350544943,), (1350544952,), (1350544953,), (1350544955,), (1350544961,), (1350544962,), (1350544968,), (1350544998,), (1350545002,), (1350545004,), (1350545029,), (1350545044,), (1350545056,), (1350545062,), (1350545074,), (1350545080,), (1350545093,), (1350545107,), (1350545110,), (1350545114,), (1350545119,), (1350545129,), (1350545132,), (1350545148,), (1350545169,), (1350545172,), (1350545179,), (1350545215,), (1350545349,), (1350545377,), (1350545384,), (1350545387,), (1350545390,), (1350544981,), (1350544985,), (1350544992,), (1350545013,), (1350545014,), (1350545018,), (1350545021,), (1350545025,), (1350545101,), (1350545104,), (1350545190,), (1350545194,), (1350545201,), (1350545207,), (1350545211,), (1350545249,), (1350545268,), (1350545287,), (1350545309,), (1350545330,), (1350545398,), (1350545414,), (1350545419,), (1350545425,), (1350545430,), (1350545436,), (1350545459,), (1350545461,), (1350545539,), (1350545571,), (1350545595,), (1350545620,), (1350545709,), (1350545740,), (1350545755,), (1350545762,), (1350545772,), (1350545776,), (1350545816,), (1350545850,), (1350546236,), (1350546240,), (1350546249,), (1350546257,), (1350546313,), (1350546321,), (1350546488,), (1350546499,), (1350546517,), (1350546522,), (1350546600,), (1350546562,), (1350546566,), (1350546579,), (1350546595,), (1350546679,), (1350546706,), (1350546732,), (1350546756,), (1350546888,), (1350546894,), (1350546897,), (1350546901,), (1350546950,), (1350546986,), (1350546997,), (1350547000,), (1350547002,), (1350547132,), (1350547133,), (1350547135,), (1350547137,), (1350547140,), (1350547206,), (1350547210,), (1350547214,), (1350547231,), (1350547236,), (1350547268,), (1350547270,), (1350547278,), (1350547299,), (1350547305,), (1350547345,), (1350547366,), (1350547387,), (1350547429,), (1350547445,), (1350547474,), (1350547621,), (1350547631,), (1350547635,), (1350547639,), (1350547643,), (1350547884,), (1350547906,), (1350547915,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08042025': {'nb_upload': 46, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22135444]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350547915, 1350547906, 1350547884, 1350547643, 1350547639, 1350547635, 1350547631, 1350547621, 1350547474, 1350547445, 1350547429, 1350547387, 1350547366, 1350547345] map_info['map_portfolio_photo'] : {22135444: [1350547915, 1350547906, 1350547884, 1350547643, 1350547639, 1350547635, 1350547631, 1350547621, 1350547474, 1350547445, 1350547429, 1350547387, 1350547366, 1350547345, 1350547305, 1350547299, 1350547278, 1350547270, 1350547268, 1350547236, 1350547231, 1350547214, 1350547210, 1350547206, 1350547140, 1350547137, 1350547135, 1350547133, 1350547132, 1350547002, 1350547000, 1350546997, 1350546986, 1350546950, 1350546901, 1350546897, 1350546894, 1350546888, 1350546756, 1350546732, 1350546706, 1350546679, 1350546595, 1350546579, 1350546566, 1350546562]} final : True mtd_id 4302 list_pids : [1350547915, 1350547906, 1350547884, 1350547643, 1350547639, 1350547635, 1350547631, 1350547621, 1350547474, 1350547445, 1350547429, 1350547387, 1350547366, 1350547345] Looping around the photos to save general results len do output : 1 /22135444Didn'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, '2731625') ('4302', '22135444', '1350547915', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547906', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547884', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547643', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547639', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547635', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547631', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547621', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547474', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547445', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547429', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547387', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547366', None, None, None, None, None, '2731625') ('4302', None, None, None, None, None, None, None, '2731625') ('4302', '22135444', '1350547345', None, None, None, None, None, '2731625') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22135444', 'None', None, None, None, None, '2731625'), ('4302', '22135444', '1350547915', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547906', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547884', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547643', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547639', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547635', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547631', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547621', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547474', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547445', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547429', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547387', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547366', None, None, None, None, None, '2731625'), ('4302', '22135444', '1350547345', None, None, None, None, None, '2731625')] time used for this insertion : 0.016917943954467773 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9933288097381592 time spend to save output : 0.01719045639038086 total time spend for step 5 : 1.01051926612854 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 (2731625) 2.19user 2.50system 0:09.42elapsed 49%CPU (0avgtext+0avgdata 160624maxresident)k 848inputs+13080outputs (19major+74784minor)pagefaults 0swaps