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 : 2594984 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 (2571420) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2571420) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20405423 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2571420'] with mtr_portfolio_ids : ['20405423'] and first list_photo_ids : [] new path : /proc/2594984/ Name: python3 Umask: 0002 State: R (running) Tgid: 2594984 Ngid: 0 Pid: 2594984 PPid: 2594983 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2594984 NSpid: 2594984 NSpgid: 2593347 NSsid: 2593347 VmPeak: 1106592 kB VmSize: 1106572 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97708 kB VmRSS: 97708 kB RssAnon: 59744 kB RssFile: 37964 kB RssShmem: 0 kB VmData: 865324 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 616 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: 108 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2594984', 'Ngid': '0', 'Pid': '2594984', 'PPid': '2594983', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2594984', 'NSpid': '2594984', 'NSpgid': '2593347', 'NSsid': '2593347', 'VmPeak': '1106592 kB', 'VmSize': '1106572 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97708 kB', 'VmRSS': '97708 kB', 'RssAnon': '59744 kB', 'RssFile': '37964 kB', 'RssShmem': '0 kB', 'VmData': '865324 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '616 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': '108'} ('datou_batch_current', '2594984', '1106592', '0', '1106572', '865324', '97708', b'', 'marlene', '2571420') 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 (20405423) 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 (2571420 ) ) 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 (20405423) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1336502981, 'portfolio_id': 20405423}, {'photo_id': 1336502768, 'portfolio_id': 20405423}, {'photo_id': 1336502718, 'portfolio_id': 20405423}, {'photo_id': 1336502702, 'portfolio_id': 20405423}, {'photo_id': 1336502695, 'portfolio_id': 20405423}, {'photo_id': 1336502464, 'portfolio_id': 20405423}, {'photo_id': 1336502463, 'portfolio_id': 20405423}, {'photo_id': 1336502414, 'portfolio_id': 20405423}, {'photo_id': 1336502412, 'portfolio_id': 20405423}, {'photo_id': 1336502410, 'portfolio_id': 20405423}, {'photo_id': 1336502409, 'portfolio_id': 20405423}, {'photo_id': 1336502229, 'portfolio_id': 20405423}, {'photo_id': 1336502198, 'portfolio_id': 20405423}, {'photo_id': 1336502182, 'portfolio_id': 20405423}, {'photo_id': 1336502178, 'portfolio_id': 20405423}, {'photo_id': 1336502167, 'portfolio_id': 20405423}, {'photo_id': 1336502109, 'portfolio_id': 20405423}, {'photo_id': 1336501461, 'portfolio_id': 20405423}, {'photo_id': 1336501457, 'portfolio_id': 20405423}, {'photo_id': 1336501454, 'portfolio_id': 20405423}, {'photo_id': 1336501423, 'portfolio_id': 20405423}, {'photo_id': 1336501419, 'portfolio_id': 20405423}, {'photo_id': 1336501413, 'portfolio_id': 20405423}, {'photo_id': 1336501410, 'portfolio_id': 20405423}, {'photo_id': 1336501257, 'portfolio_id': 20405423}, {'photo_id': 1336501171, 'portfolio_id': 20405423}, {'photo_id': 1336501070, 'portfolio_id': 20405423}, {'photo_id': 1336500982, 'portfolio_id': 20405423}, {'photo_id': 1336500892, 'portfolio_id': 20405423}, {'photo_id': 1336499895, 'portfolio_id': 20405423}, {'photo_id': 1336499888, 'portfolio_id': 20405423}, {'photo_id': 1336499885, 'portfolio_id': 20405423}, {'photo_id': 1336499882, 'portfolio_id': 20405423}, {'photo_id': 1336499831, 'portfolio_id': 20405423}, {'photo_id': 1336499800, 'portfolio_id': 20405423}, {'photo_id': 1336499712, 'portfolio_id': 20405423}, {'photo_id': 1336499648, 'portfolio_id': 20405423}, {'photo_id': 1336499353, 'portfolio_id': 20405423}, {'photo_id': 1336499351, 'portfolio_id': 20405423}] map_portfolio_id_photo_id: {20405423: [1336502981, 1336502768, 1336502718, 1336502702, 1336502695, 1336502464, 1336502463, 1336502414, 1336502412, 1336502410, 1336502409, 1336502229, 1336502198, 1336502182, 1336502178, 1336502167, 1336502109, 1336501461, 1336501457, 1336501454, 1336501423, 1336501419, 1336501413, 1336501410, 1336501257, 1336501171, 1336501070, 1336500982, 1336500892, 1336499895, 1336499888, 1336499885, 1336499882, 1336499831, 1336499800, 1336499712, 1336499648, 1336499353, 1336499351]} ##### 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.014515876770019531 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Feb 10 14:44:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20405423) 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 : 20405423 get user id for portfolio 20405423 get sub ptf for main ptf 20405423, type 3726 and hashtags ['flou', 'autre_refus', 'environnement', 'kraft', 'mal_croppe', 'Carton_brun', 'Carton_gris', 'metal', 'cartonnette', 'Teint_Dans_La_Masse', 'papier', 'plastique'] 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`=20405423 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','autre_refus','environnement','kraft','mal_croppe','Carton_brun','Carton_gris','metal','cartonnette','Teint_Dans_La_Masse','papier','plastique')) 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`=20405423 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','autre_refus','environnement','kraft','mal_croppe','Carton_brun','Carton_gris','metal','cartonnette','Teint_Dans_La_Masse','papier','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 20405423, 'sub_port_id': 20405431, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084077, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 58)}, 'plastique': {'main_port_id': 20405423, 'sub_port_id': 20405432, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084078, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 58)}, 'kraft': {'main_port_id': 20405423, 'sub_port_id': 20405433, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084079, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 58)}, 'environnement': {'main_port_id': 20405423, 'sub_port_id': 20405434, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084080, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20405423, 'sub_port_id': 20405435, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084081, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 58)}, 'flou': {'main_port_id': 20405423, 'sub_port_id': 20405436, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084082, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 58)}, 'Carton_gris': {'main_port_id': 20405423, 'sub_port_id': 20405437, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084083, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 58)}, 'autre_refus': {'main_port_id': 20405423, 'sub_port_id': 20405438, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084084, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 58)}, 'papier': {'main_port_id': 20405423, 'sub_port_id': 20405439, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084085, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 58)}, 'cartonnette': {'main_port_id': 20405423, 'sub_port_id': 20405440, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084086, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 58)}, 'Carton_brun': {'main_port_id': 20405423, 'sub_port_id': 20405441, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084087, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 58)}, 'metal': {'main_port_id': 20405423, 'sub_port_id': 20405442, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084088, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20405431 , 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=20405423 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 (20405431) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20405423) result : ((1336499351,), (1336499353,), (1336499648,), (1336499712,), (1336499800,), (1336499831,), (1336499882,), (1336499885,), (1336499888,), (1336499895,), (1336500892,), (1336500982,), (1336501070,), (1336501171,), (1336501257,), (1336501410,), (1336501413,), (1336501419,), (1336501423,), (1336501454,), (1336501457,), (1336501461,), (1336502109,), (1336502167,), (1336502178,), (1336502182,), (1336502198,), (1336502229,), (1336502409,), (1336502410,), (1336502412,), (1336502414,), (1336502463,), (1336502464,), (1336502695,), (1336502702,), (1336502718,), (1336502768,), (1336502981,)) 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 (1336499800) 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 20405432 , 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=20405423 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 (20405432) result : ((1336502362,), (1336502544,), (1336502897,), (1336503016,), (1336503017,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20405423) result : ((1336499351,), (1336499353,), (1336499648,), (1336499712,), (1336499800,), (1336499831,), (1336499882,), (1336499885,), (1336499888,), (1336499895,), (1336500892,), (1336500982,), (1336501070,), (1336501171,), (1336501257,), (1336501410,), (1336501413,), (1336501419,), (1336501423,), (1336501454,), (1336501457,), (1336501461,), (1336502109,), (1336502167,), (1336502178,), (1336502182,), (1336502198,), (1336502229,), (1336502409,), (1336502410,), (1336502412,), (1336502414,), (1336502463,), (1336502464,), (1336502695,), (1336502702,), (1336502718,), (1336502768,), (1336502981,)) 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 (1336499800) 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 20405433 , 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=20405423 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 (20405433) result : ((1336503018,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20405423) result : ((1336499351,), (1336499353,), (1336499648,), (1336499712,), (1336499800,), (1336499831,), (1336499882,), (1336499885,), (1336499888,), (1336499895,), (1336500892,), (1336500982,), (1336501070,), (1336501171,), (1336501257,), (1336501410,), (1336501413,), (1336501419,), (1336501423,), (1336501454,), (1336501457,), (1336501461,), (1336502109,), (1336502167,), (1336502178,), (1336502182,), (1336502198,), (1336502229,), (1336502409,), (1336502410,), (1336502412,), (1336502414,), (1336502463,), (1336502464,), (1336502695,), (1336502702,), (1336502718,), (1336502768,), (1336502981,)) 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 (1336499800) 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 20405434 , 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=20405423 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 (20405434) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20405423) result : ((1336499351,), (1336499353,), (1336499648,), (1336499712,), (1336499800,), (1336499831,), (1336499882,), (1336499885,), (1336499888,), (1336499895,), (1336500892,), (1336500982,), (1336501070,), (1336501171,), (1336501257,), (1336501410,), (1336501413,), (1336501419,), (1336501423,), (1336501454,), (1336501457,), (1336501461,), (1336502109,), (1336502167,), (1336502178,), (1336502182,), (1336502198,), (1336502229,), (1336502409,), (1336502410,), (1336502412,), (1336502414,), (1336502463,), (1336502464,), (1336502695,), (1336502702,), (1336502718,), (1336502768,), (1336502981,)) 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 (1336499800) 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 20405435 , 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=20405423 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 (20405435) result : ((1336502355,), (1336502421,), (1336502422,), (1336502423,), (1336502424,), (1336502488,), (1336502690,), (1336502691,), (1336502692,), (1336502693,), (1336502694,), (1336502836,), (1336502837,), (1336502983,), (1336502984,), (1336502985,), (1336502998,), (1336502999,), (1336503000,), (1336503003,), (1336503004,), (1336503005,), (1336503006,), (1336503007,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20405423) result : ((1336499351,), (1336499353,), (1336499648,), (1336499712,), (1336499800,), (1336499831,), (1336499882,), (1336499885,), (1336499888,), (1336499895,), (1336500892,), (1336500982,), (1336501070,), (1336501171,), (1336501257,), (1336501410,), (1336501413,), (1336501419,), (1336501423,), (1336501454,), (1336501457,), (1336501461,), (1336502109,), (1336502167,), (1336502178,), (1336502182,), (1336502198,), (1336502229,), (1336502409,), (1336502410,), (1336502412,), (1336502414,), (1336502463,), (1336502464,), (1336502695,), (1336502702,), (1336502718,), (1336502768,), (1336502981,)) 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 (1336499800) 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 20405436 , 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=20405423 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 (20405436) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20405423) result : ((1336499351,), (1336499353,), (1336499648,), (1336499712,), (1336499800,), (1336499831,), (1336499882,), (1336499885,), (1336499888,), (1336499895,), (1336500892,), (1336500982,), (1336501070,), (1336501171,), (1336501257,), (1336501410,), (1336501413,), (1336501419,), (1336501423,), (1336501454,), (1336501457,), (1336501461,), (1336502109,), (1336502167,), (1336502178,), (1336502182,), (1336502198,), (1336502229,), (1336502409,), (1336502410,), (1336502412,), (1336502414,), (1336502463,), (1336502464,), (1336502695,), (1336502702,), (1336502718,), (1336502768,), (1336502981,)) 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 (1336499800) 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 20405437 , 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=20405423 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 (20405437) result : ((1336502846,), (1336502847,), (1336502988,), (1336502989,), (1336502990,), (1336503008,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20405423) result : ((1336499351,), (1336499353,), (1336499648,), (1336499712,), (1336499800,), (1336499831,), (1336499882,), (1336499885,), (1336499888,), (1336499895,), (1336500892,), (1336500982,), (1336501070,), (1336501171,), (1336501257,), (1336501410,), (1336501413,), (1336501419,), (1336501423,), (1336501454,), (1336501457,), (1336501461,), (1336502109,), (1336502167,), (1336502178,), (1336502182,), (1336502198,), (1336502229,), (1336502409,), (1336502410,), (1336502412,), (1336502414,), (1336502463,), (1336502464,), (1336502695,), (1336502702,), (1336502718,), (1336502768,), (1336502981,)) 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 (1336499800) 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 20405438 , 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=20405423 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 (20405438) result : ((1336502425,), (1336502697,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20405423) result : ((1336499351,), (1336499353,), (1336499648,), (1336499712,), (1336499800,), (1336499831,), (1336499882,), (1336499885,), (1336499888,), (1336499895,), (1336500892,), (1336500982,), (1336501070,), (1336501171,), (1336501257,), (1336501410,), (1336501413,), (1336501419,), (1336501423,), (1336501454,), (1336501457,), (1336501461,), (1336502109,), (1336502167,), (1336502178,), (1336502182,), (1336502198,), (1336502229,), (1336502409,), (1336502410,), (1336502412,), (1336502414,), (1336502463,), (1336502464,), (1336502695,), (1336502702,), (1336502718,), (1336502768,), (1336502981,)) 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 (1336499800) 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 20405439 , 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=20405423 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 (20405439) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20405423) result : ((1336499351,), (1336499353,), (1336499648,), (1336499712,), (1336499800,), (1336499831,), (1336499882,), (1336499885,), (1336499888,), (1336499895,), (1336500892,), (1336500982,), (1336501070,), (1336501171,), (1336501257,), (1336501410,), (1336501413,), (1336501419,), (1336501423,), (1336501454,), (1336501457,), (1336501461,), (1336502109,), (1336502167,), (1336502178,), (1336502182,), (1336502198,), (1336502229,), (1336502409,), (1336502410,), (1336502412,), (1336502414,), (1336502463,), (1336502464,), (1336502695,), (1336502702,), (1336502718,), (1336502768,), (1336502981,)) 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 (1336499800) 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 20405440 , 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=20405423 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 (20405440) result : ((1336501451,), (1336502429,), (1336502430,), (1336502431,), (1336502699,), (1336502700,), (1336502701,), (1336502848,), (1336502991,), (1336502992,), (1336503009,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20405423) result : ((1336499351,), (1336499353,), (1336499648,), (1336499712,), (1336499800,), (1336499831,), (1336499882,), (1336499885,), (1336499888,), (1336499895,), (1336500892,), (1336500982,), (1336501070,), (1336501171,), (1336501257,), (1336501410,), (1336501413,), (1336501419,), (1336501423,), (1336501454,), (1336501457,), (1336501461,), (1336502109,), (1336502167,), (1336502178,), (1336502182,), (1336502198,), (1336502229,), (1336502409,), (1336502410,), (1336502412,), (1336502414,), (1336502463,), (1336502464,), (1336502695,), (1336502702,), (1336502718,), (1336502768,), (1336502981,)) 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 (1336499800) 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 20405441 , 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=20405423 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 (20405441) result : ((1336501452,), (1336501453,), (1336502358,), (1336502359,), (1336502434,), (1336502435,), (1336502436,), (1336502437,), (1336502438,), (1336502439,), (1336502522,), (1336502524,), (1336502703,), (1336502704,), (1336502705,), (1336502706,), (1336502707,), (1336502708,), (1336502709,), (1336502993,), (1336503011,), (1336503012,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20405423) result : ((1336499351,), (1336499353,), (1336499648,), (1336499712,), (1336499800,), (1336499831,), (1336499882,), (1336499885,), (1336499888,), (1336499895,), (1336500892,), (1336500982,), (1336501070,), (1336501171,), (1336501257,), (1336501410,), (1336501413,), (1336501419,), (1336501423,), (1336501454,), (1336501457,), (1336501461,), (1336502109,), (1336502167,), (1336502178,), (1336502182,), (1336502198,), (1336502229,), (1336502409,), (1336502410,), (1336502412,), (1336502414,), (1336502463,), (1336502464,), (1336502695,), (1336502702,), (1336502718,), (1336502768,), (1336502981,)) 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 (1336499800) 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 20405442 , 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=20405423 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 (20405442) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20405423) result : ((1336499351,), (1336499353,), (1336499648,), (1336499712,), (1336499800,), (1336499831,), (1336499882,), (1336499885,), (1336499888,), (1336499895,), (1336500892,), (1336500982,), (1336501070,), (1336501171,), (1336501257,), (1336501410,), (1336501413,), (1336501419,), (1336501423,), (1336501454,), (1336501457,), (1336501461,), (1336502109,), (1336502167,), (1336502178,), (1336502182,), (1336502198,), (1336502229,), (1336502409,), (1336502410,), (1336502412,), (1336502414,), (1336502463,), (1336502464,), (1336502695,), (1336502702,), (1336502718,), (1336502768,), (1336502981,)) 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 (1336499800) 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`=20405423 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','autre_refus','environnement','kraft','mal_croppe','Carton_brun','Carton_gris','metal','cartonnette','Teint_Dans_La_Masse','papier','plastique')) 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`=20405423 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','autre_refus','environnement','kraft','mal_croppe','Carton_brun','Carton_gris','metal','cartonnette','Teint_Dans_La_Masse','papier','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 20405423, 'sub_port_id': 20405443, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084089, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 59)}, 'plastique': {'main_port_id': 20405423, 'sub_port_id': 20405444, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084090, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 59)}, 'kraft': {'main_port_id': 20405423, 'sub_port_id': 20405445, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084091, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 59)}, 'environnement': {'main_port_id': 20405423, 'sub_port_id': 20405446, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084092, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20405423, 'sub_port_id': 20405447, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084093, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 59)}, 'flou': {'main_port_id': 20405423, 'sub_port_id': 20405448, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084094, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 59)}, 'Carton_gris': {'main_port_id': 20405423, 'sub_port_id': 20405449, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084095, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 59)}, 'autre_refus': {'main_port_id': 20405423, 'sub_port_id': 20405450, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084096, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 59)}, 'papier': {'main_port_id': 20405423, 'sub_port_id': 20405451, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084097, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 59)}, 'cartonnette': {'main_port_id': 20405423, 'sub_port_id': 20405452, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084098, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 59)}, 'Carton_brun': {'main_port_id': 20405423, 'sub_port_id': 20405453, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084099, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 59)}, 'metal': {'main_port_id': 20405423, 'sub_port_id': 20405454, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13084100, 'last_updated_at': datetime.datetime(2025, 2, 10, 14, 43), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 14, 43), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 14, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20405443,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20405431 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20405444,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20405432 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20405445,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20405433 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20405446,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20405434 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20405447,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20405435 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20405448,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20405436 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20405449,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20405437 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20405450,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20405438 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20405451,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20405439 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20405452,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20405440 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20405453,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20405441 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20405454,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20405442 lien utilise dans velours : https://www.fotonower.com/velours/20405443,20405444,20405445,20405446,20405447,20405448,20405449,20405450,20405451,20405452,20405453,20405454?tags=mal_croppe,plastique,kraft,environnement,Teint_Dans_La_Masse,flou,Carton_gris,autre_refus,papier,cartonnette,Carton_brun,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20405423]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1336502981] map_info['map_portfolio_photo'] : {20405423: [1336502981, 1336502768, 1336502718, 1336502702, 1336502695, 1336502464, 1336502463, 1336502414, 1336502412, 1336502410, 1336502409, 1336502229, 1336502198, 1336502182, 1336502178, 1336502167, 1336502109, 1336501461, 1336501457, 1336501454, 1336501423, 1336501419, 1336501413, 1336501410, 1336501257, 1336501171, 1336501070, 1336500982, 1336500892, 1336499895, 1336499888, 1336499885, 1336499882, 1336499831, 1336499800, 1336499712, 1336499648, 1336499353, 1336499351]} final : False mtd_id 4302 list_pids : [1336502981] Looping around the photos to save general results len do output : 1 /20405423. 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, '2571420') ('4302', '20405423', '1336502981', None, None, None, None, None, '2571420') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '20405423', "{'mal_croppe': 20405431, 'plastique': 20405432, 'kraft': 20405433, 'environnement': 20405434, 'Teint_Dans_La_Masse': 20405435, 'flou': 20405436, 'Carton_gris': 20405437, 'autre_refus': 20405438, 'papier': 20405439, 'cartonnette': 20405440, 'Carton_brun': 20405441, 'metal': 20405442}", None, None, None, None, '2571420'), ('4302', '20405423', '1336502981', None, None, None, None, None, '2571420')] time used for this insertion : 0.01374959945678711 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4588451385498047 time spend to save output : 0.013997554779052734 total time spend for step 1 : 0.4728426933288574 step2:final Mon Feb 10 14:44:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20405423) 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 20405423 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1336499353,1336499351,1336499831,1336499800,1336499712,1336499648,1336499895,1336499888,1336499885,1336499882,1336501257,1336501171,1336501070,1336500982,1336500892,1336501423,1336501419,1336501413,1336501461,1336501410,1336501457,1336501454,1336502229,1336502198,1336502182,1336502178,1336502167,1336502109,1336502414,1336502412,1336502410,1336502409,1336502464,1336502463,1336502718,1336502702,1336502695,1336502768,1336502981); 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([20405423]) Inside saveOutput : final : False verbose : True original output for save of step final : {1336502981: ('0.037095481415616874',)} new output for save of step final : {1336502981: ('0.037095481415616874',)} [1336502981] map_info['map_portfolio_photo'] : {20405423: [1336502981, 1336502768, 1336502718, 1336502702, 1336502695, 1336502464, 1336502463, 1336502414, 1336502412, 1336502410, 1336502409, 1336502229, 1336502198, 1336502182, 1336502178, 1336502167, 1336502109, 1336501461, 1336501457, 1336501454, 1336501423, 1336501419, 1336501413, 1336501410, 1336501257, 1336501171, 1336501070, 1336500982, 1336500892, 1336499895, 1336499888, 1336499885, 1336499882, 1336499831, 1336499800, 1336499712, 1336499648, 1336499353, 1336499351]} final : False mtd_id 4302 list_pids : [1336502981] Looping around the photos to save general results len do output : 1 /1336502981.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, '2571420') ('4302', '20405423', '1336502981', None, None, None, None, None, '2571420') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '20405423', '1336502981', '0.037095481415616874', None, None, None, None, '2571420')] time used for this insertion : 0.012637615203857422 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06699490547180176 time spend to save output : 0.012819290161132812 total time spend for step 2 : 0.07981419563293457 step3:velours_tree Mon Feb 10 14:44:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20405423: [{'mal_croppe': 20405431, 'plastique': 20405432, 'kraft': 20405433, 'environnement': 20405434, 'Teint_Dans_La_Masse': 20405435, 'flou': 20405436, 'Carton_gris': 20405437, 'autre_refus': 20405438, 'papier': 20405439, 'cartonnette': 20405440, 'Carton_brun': 20405441, 'metal': 20405442}]} input_args_next_step : {20405423: ()} output_args : {20405423: [{'mal_croppe': 20405431, 'plastique': 20405432, 'kraft': 20405433, 'environnement': 20405434, 'Teint_Dans_La_Masse': 20405435, 'flou': 20405436, 'Carton_gris': 20405437, 'autre_refus': 20405438, 'papier': 20405439, 'cartonnette': 20405440, 'Carton_brun': 20405441, 'metal': 20405442}]} args : 20405423 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 : ({'mal_croppe': 20405431, 'plastique': 20405432, 'kraft': 20405433, 'environnement': 20405434, 'Teint_Dans_La_Masse': 20405435, 'flou': 20405436, 'Carton_gris': 20405437, 'autre_refus': 20405438, 'papier': 20405439, 'cartonnette': 20405440, 'Carton_brun': 20405441, 'metal': 20405442},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20405423) 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([20405423]) 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.4277167320251465 time spend to save output : 8.463859558105469e-05 total time spend for step 3 : 0.42780137062072754 step4:send_mail_cod Mon Feb 10 14:44:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1336502981: ('0.037095481415616874',)} input_args_next_step : {1336502981: ()} output_args : {1336502981: ('0.037095481415616874',)} args : 1336502981 depend.output_id : 0 complete output_args for input 3 : {20405423: [{'mal_croppe': 20405431, 'plastique': 20405432, 'kraft': 20405433, 'environnement': 20405434, 'Teint_Dans_La_Masse': 20405435, 'flou': 20405436, 'Carton_gris': 20405437, 'autre_refus': 20405438, 'papier': 20405439, 'cartonnette': 20405440, 'Carton_brun': 20405441, 'metal': 20405442}]} input_args_next_step : {1336502981: ('0.037095481415616874',), 20405423: ()} output_args : {20405423: [{'mal_croppe': 20405431, 'plastique': 20405432, 'kraft': 20405433, 'environnement': 20405434, 'Teint_Dans_La_Masse': 20405435, 'flou': 20405436, 'Carton_gris': 20405437, 'autre_refus': 20405438, 'papier': 20405439, 'cartonnette': 20405440, 'Carton_brun': 20405441, 'metal': 20405442}]} args : 20405423 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 :2, first value : ('0.037095481415616874',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20405423) 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 (1336502981) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1336502981 download finish for photo 1336502981 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette204054311739195099/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P20405423_10-02-2025_14_44_59.pdf 20405431 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=20405431 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204054311739195099 20405432 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=20405432 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336502362: '1739194591_49597_1336499882_70ffb5094e024fa7bd5b6d84902c2c3e_rle_crop_3668050465_0.png', 1336502544: '1739194673_50486_1336499882_70ffb5094e024fa7bd5b6d84902c2c3e_rle_crop_3668050465_0.png', 1336502897: '1739194910_59573_1336502463_775b7959d6fb62fc71549b31445e748a_rle_crop_3668053392_0.png', 1336503016: '1739194952_61238_1336502182_12ac10baa8de7bae649480edd783899b_rle_crop_3668053332_0.png', 1336503017: '1739194952_61238_1336502167_ebe83600227e8d82de252b5fccfd7ca4_rle_crop_3668053426_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/d5918807aa02f90f2356b7139203a152_14718697.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/d5918807aa02f90f2356b7139203a152_27267814.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/53b9f4a390ade25c4e328a222ea836c0_25116229.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/e4c9a6f3949430f886c8c7425ad8be45_71382018.png change filename to text .imagette204054321739195099/ imagette204054321739195099/1739194673_50486_1336499882_70ffb5094e024fa7bd5b6d84902c2c3e_rle_crop_3668050465_0.png.png imagette204054321739195099/1739194952_61238_1336502182_12ac10baa8de7bae649480edd783899b_rle_crop_3668053332_0.png.png imagette204054321739195099/1739194910_59573_1336502463_775b7959d6fb62fc71549b31445e748a_rle_crop_3668053392_0.png.png imagette204054321739195099/1739194591_49597_1336499882_70ffb5094e024fa7bd5b6d84902c2c3e_rle_crop_3668050465_0.png.png imagette204054321739195099/1739194952_61238_1336502167_ebe83600227e8d82de252b5fccfd7ca4_rle_crop_3668053426_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/c8634f1db9088b37c9edbe627674457d_81729758.png imagette204054321739195099 20405433 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=20405433 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336503018: '1739194952_61238_1336502182_12ac10baa8de7bae649480edd783899b_rle_crop_3668053331_0.png'} change filename to text .imagette204054331739195099/ imagette204054331739195099/1739194952_61238_1336502182_12ac10baa8de7bae649480edd783899b_rle_crop_3668053331_0.png.png imagette204054361739195099/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/0751f11d47168f06a9987738072b3910_91997016.png imagette204054331739195099 20405436 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=20405436 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204054361739195099 20405438 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=20405438 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336502425: '1739194614_49814_1336500982_026ae06e96092b4ba6fd841b3d4282a8_rle_crop_3668051328_0.png', 1336502697: '1739194695_50796_1336500982_026ae06e96092b4ba6fd841b3d4282a8_rle_crop_3668051328_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/fa784f0ee559da8649e865c6fd8cd47d_42565159.png change filename to text .imagette204054381739195099/ imagette204054381739195099/1739194695_50796_1336500982_026ae06e96092b4ba6fd841b3d4282a8_rle_crop_3668051328_0.png.png imagette204054381739195099/1739194614_49814_1336500982_026ae06e96092b4ba6fd841b3d4282a8_rle_crop_3668051328_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/fa784f0ee559da8649e865c6fd8cd47d_29736892.png imagette204054381739195099 20405440 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=20405440 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336501451: '1739194455_42758_1336499831_7a49150e93ee8e2983624e0cddbb0d5c_rle_crop_3668049020_0.png', 1336502429: '1739194614_49814_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051232_0.png', 1336502430: '1739194614_49814_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051235_0.png', 1336502431: '1739194614_49814_1336500892_0efe8ff52fb40cb6a8ca273d40153ddd_rle_crop_3668051344_0.png', 1336502699: '1739194695_50796_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051232_0.png', 1336502700: '1739194695_50796_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051235_0.png', 1336502701: '1739194695_50796_1336500892_0efe8ff52fb40cb6a8ca273d40153ddd_rle_crop_3668051344_0.png', 1336502848: '1739194853_58491_1336502409_edec04defbb1cec57a6ad5e1bfe65eea_rle_crop_3668053179_0.png', 1336502991: '1739194934_59914_1336502464_17fe30c0217b6fc96b88b60d1c4d0f97_rle_crop_3668053841_0.png', 1336502992: '1739194934_59914_1336502409_edec04defbb1cec57a6ad5e1bfe65eea_rle_crop_3668053179_0.png', 1336503009: '1739194952_61238_1336502198_ee24e4a43a26fa9ba321e6975fb0f931_rle_crop_3668053313_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/74a1d25ae41c02a5ef4168e177cf7cee_18844173.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/92e4a06a525162c4960748fa685724f5_23047956.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/d3b5bdfc4b68c608ca75462966cc908e_96642298.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/a1b7d9a27981334c19919007f562dcf1_94313927.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/92e4a06a525162c4960748fa685724f5_18655032.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/d3b5bdfc4b68c608ca75462966cc908e_30923540.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/a1b7d9a27981334c19919007f562dcf1_13953064.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/caaa4bf6d00d7fe304d03ca5874c4c3f_98929823.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/ff0eb84e12715b60235ce26dd3275004_66775483.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/caaa4bf6d00d7fe304d03ca5874c4c3f_68274136.png change filename to text .imagette204054401739195099/ imagette204054401739195099/1739194853_58491_1336502409_edec04defbb1cec57a6ad5e1bfe65eea_rle_crop_3668053179_0.png.png imagette204054401739195099/1739194934_59914_1336502409_edec04defbb1cec57a6ad5e1bfe65eea_rle_crop_3668053179_0.png.png imagette204054401739195099/1739194952_61238_1336502198_ee24e4a43a26fa9ba321e6975fb0f931_rle_crop_3668053313_0.png.png imagette204054401739195099/1739194934_59914_1336502464_17fe30c0217b6fc96b88b60d1c4d0f97_rle_crop_3668053841_0.png.png imagette204054401739195099/1739194455_42758_1336499831_7a49150e93ee8e2983624e0cddbb0d5c_rle_crop_3668049020_0.png.png imagette204054401739195099/1739194695_50796_1336500892_0efe8ff52fb40cb6a8ca273d40153ddd_rle_crop_3668051344_0.png.png imagette204054401739195099/1739194614_49814_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051235_0.png.png imagette204054401739195099/1739194614_49814_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051232_0.png.png imagette204054401739195099/1739194614_49814_1336500892_0efe8ff52fb40cb6a8ca273d40153ddd_rle_crop_3668051344_0.png.png imagette204054401739195099/1739194695_50796_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051235_0.png.png imagette204054401739195099/1739194695_50796_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051232_0.png.png imagette204054421739195100/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/b3a73e49814c0c08e3d52cd385ac19b6_16744364.png imagette204054401739195099 20405442 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=20405442 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204054421739195100 20405435 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=20405435 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336502837: '1739194853_58491_1336502409_edec04defbb1cec57a6ad5e1bfe65eea_rle_crop_3668053188_0.png', 1336503007: '1739194952_61238_1336502109_c51d3b36487b29d659b40b91fb7bbcfd_rle_crop_3668053576_0.png', 1336503006: '1739194952_61238_1336502109_c51d3b36487b29d659b40b91fb7bbcfd_rle_crop_3668053571_0.png', 1336503005: '1739194952_61238_1336502167_ebe83600227e8d82de252b5fccfd7ca4_rle_crop_3668053417_0.png', 1336503004: '1739194952_61238_1336502167_ebe83600227e8d82de252b5fccfd7ca4_rle_crop_3668054971_0.png', 1336503003: '1739194952_61238_1336502167_ebe83600227e8d82de252b5fccfd7ca4_bib_crop_3668053421_0.jpg', 1336503000: '1739194952_61238_1336502178_7e24cea4d5f08688276a9dc496c4551b_rle_crop_3668053381_0.png', 1336502999: '1739194952_61238_1336502178_7e24cea4d5f08688276a9dc496c4551b_rle_crop_3668053378_0.png', 1336502998: '1739194952_61238_1336502178_7e24cea4d5f08688276a9dc496c4551b_rle_crop_3668053377_0.png', 1336502985: '1739194934_59914_1336502409_edec04defbb1cec57a6ad5e1bfe65eea_rle_crop_3668053188_0.png', 1336502984: '1739194934_59914_1336502410_b6b885d20ba1f4a379dba2c832b2474c_rle_crop_3668053169_0.png', 1336502983: '1739194934_59914_1336502464_17fe30c0217b6fc96b88b60d1c4d0f97_rle_crop_3668053845_0.png', 1336502355: '1739194591_49597_1336499888_23c2dee4a1692404d80db160f596527c_rle_crop_3668050421_0.png', 1336502836: '1739194853_58491_1336502410_b6b885d20ba1f4a379dba2c832b2474c_rle_crop_3668053169_0.png', 1336502694: '1739194695_50796_1336500892_0efe8ff52fb40cb6a8ca273d40153ddd_rle_crop_3668051342_0.png', 1336502693: '1739194695_50796_1336501070_183ec8de938aa91b2883861f266ea660_rle_crop_3668051284_0.png', 1336502692: '1739194695_50796_1336501070_183ec8de938aa91b2883861f266ea660_rle_crop_3668051277_0.png', 1336502691: '1739194695_50796_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051237_0.png', 1336502690: '1739194695_50796_1336501423_30842a8e97c80fb5fe18c15596aba7f9_rle_crop_3668051999_0.png', 1336502488: '1739194673_50486_1336499888_23c2dee4a1692404d80db160f596527c_rle_crop_3668050421_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/efbf7ff1ebed9548ea97e729a5e968f7_53834271.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/0083290d782da93e4bb280a9fbdef89a_2892085.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/e62370a8bc0cfcebcc1ab4ed5ccf178b_2050502.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/d77077c6cae676d0e4ba1f8cc7fcc3ad_63318244.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/241ad3d9e2d41b98203631eb44ebe5d1_8715866.png change filename to text .wget -O 6.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/697b5bfb3f390f5c64030bc14019eb78_52703681.jpg change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/e3a35d3bdb627d44dbbf795a7f6b27e6_89566215.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/627b042d7c8da97f7f4bb8873a523496_19673594.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/b4368db302eb56976fd403ac42fc2790_84105320.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/efbf7ff1ebed9548ea97e729a5e968f7_96622228.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/15d542b4c611a6c4f1c3a95a13b281bf_52290873.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/d39e8f98885623e1dae83c8e37411c12_46431740.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/d9f5061cd6c34f31810e5388f02bec12_78494312.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/15d542b4c611a6c4f1c3a95a13b281bf_19728611.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/be1d04bb9b69f60de6e21aa0d942b2c5_67913724.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/e4bd364ab7968dd0536652466fe0a39e_4048425.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/8481b9ba698ceb7a193882fd901ffebe_76309684.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/93d7c96d1a3763e9e8ed9f99366127d0_80672726.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/4aa3c7969d87fe03d1a55a2858d8dbee_53183144.png change filename to text .imagette204054351739195100/ imagette204054351739195100/1739194673_50486_1336499888_23c2dee4a1692404d80db160f596527c_rle_crop_3668050421_0.png.png imagette204054351739195100/1739194952_61238_1336502109_c51d3b36487b29d659b40b91fb7bbcfd_rle_crop_3668053571_0.png.png imagette204054351739195100/1739194952_61238_1336502167_ebe83600227e8d82de252b5fccfd7ca4_rle_crop_3668053417_0.png.png imagette204054351739195100/1739194952_61238_1336502178_7e24cea4d5f08688276a9dc496c4551b_rle_crop_3668053378_0.png.png imagette204054351739195100/1739194853_58491_1336502410_b6b885d20ba1f4a379dba2c832b2474c_rle_crop_3668053169_0.png.png imagette204054351739195100/1739194591_49597_1336499888_23c2dee4a1692404d80db160f596527c_rle_crop_3668050421_0.png.png imagette204054351739195100/1739194934_59914_1336502464_17fe30c0217b6fc96b88b60d1c4d0f97_rle_crop_3668053845_0.png.png imagette204054351739195100/1739194695_50796_1336501070_183ec8de938aa91b2883861f266ea660_rle_crop_3668051284_0.png.png imagette204054351739195100/1739194952_61238_1336502109_c51d3b36487b29d659b40b91fb7bbcfd_rle_crop_3668053576_0.png.png imagette204054351739195100/1739194952_61238_1336502178_7e24cea4d5f08688276a9dc496c4551b_rle_crop_3668053381_0.png.png imagette204054351739195100/1739194695_50796_1336501423_30842a8e97c80fb5fe18c15596aba7f9_rle_crop_3668051999_0.png.png imagette204054351739195100/1739194952_61238_1336502167_ebe83600227e8d82de252b5fccfd7ca4_rle_crop_3668054971_0.png.png imagette204054351739195100/1739194952_61238_1336502178_7e24cea4d5f08688276a9dc496c4551b_rle_crop_3668053377_0.png.png imagette204054351739195100/1739194952_61238_1336502167_ebe83600227e8d82de252b5fccfd7ca4_bib_crop_3668053421_0.jpg.jpg imagette204054351739195100/1739194934_59914_1336502410_b6b885d20ba1f4a379dba2c832b2474c_rle_crop_3668053169_0.png.png imagette204054351739195100/1739194853_58491_1336502409_edec04defbb1cec57a6ad5e1bfe65eea_rle_crop_3668053188_0.png.png imagette204054351739195100/1739194695_50796_1336501070_183ec8de938aa91b2883861f266ea660_rle_crop_3668051277_0.png.png imagette204054351739195100/1739194934_59914_1336502409_edec04defbb1cec57a6ad5e1bfe65eea_rle_crop_3668053188_0.png.png imagette204054351739195100/1739194695_50796_1336500892_0efe8ff52fb40cb6a8ca273d40153ddd_rle_crop_3668051342_0.png.png imagette204054351739195100/1739194695_50796_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051237_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/d9f5061cd6c34f31810e5388f02bec12_48353795.png imagette204054351739195100 20405437 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=20405437 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336502846: '1739194853_58491_1336502412_b07f45e8867d55850748287732590bd2_rle_crop_3668053120_0.png', 1336502847: '1739194853_58491_1336502412_b07f45e8867d55850748287732590bd2_rle_crop_3668053128_0.png', 1336502988: '1739194934_59914_1336502464_17fe30c0217b6fc96b88b60d1c4d0f97_rle_crop_3668053840_0.png', 1336502989: '1739194934_59914_1336502412_b07f45e8867d55850748287732590bd2_rle_crop_3668053120_0.png', 1336502990: '1739194934_59914_1336502412_b07f45e8867d55850748287732590bd2_rle_crop_3668053128_0.png', 1336503008: '1739194952_61238_1336502414_a4e963169ff75559765aac9dfe337633_rle_crop_3668053293_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/5bbf242f640e807491c3d8971caa3016_25001904.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/814d5fa1f8b55171c29bf2b82e1121bc_80533571.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/1dc03454797a35e13d7fc76699ab63c0_86584199.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/5bbf242f640e807491c3d8971caa3016_48116132.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/814d5fa1f8b55171c29bf2b82e1121bc_20848213.png change filename to text .imagette204054371739195101/ imagette204054371739195101/1739194934_59914_1336502412_b07f45e8867d55850748287732590bd2_rle_crop_3668053128_0.png.png imagette204054371739195101/1739194853_58491_1336502412_b07f45e8867d55850748287732590bd2_rle_crop_3668053120_0.png.png imagette204054371739195101/1739194952_61238_1336502414_a4e963169ff75559765aac9dfe337633_rle_crop_3668053293_0.png.png imagette204054371739195101/1739194934_59914_1336502464_17fe30c0217b6fc96b88b60d1c4d0f97_rle_crop_3668053840_0.png.png imagette204054371739195101/1739194934_59914_1336502412_b07f45e8867d55850748287732590bd2_rle_crop_3668053120_0.png.png imagette204054371739195101/1739194853_58491_1336502412_b07f45e8867d55850748287732590bd2_rle_crop_3668053128_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/39dc29080a275828584e71329c31e55a_95010723.png imagette204054371739195101 20405441 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=20405441 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336502524: '1739194673_50486_1336499888_23c2dee4a1692404d80db160f596527c_rle_crop_3668050426_0.png', 1336503012: '1739194952_61238_1336502198_ee24e4a43a26fa9ba321e6975fb0f931_rle_crop_3668053324_0.png', 1336503011: '1739194952_61238_1336502198_ee24e4a43a26fa9ba321e6975fb0f931_rle_crop_3668053322_0.png', 1336502993: '1739194934_59914_1336502464_17fe30c0217b6fc96b88b60d1c4d0f97_rle_crop_3668053843_0.png', 1336502709: '1739194695_50796_1336500892_0efe8ff52fb40cb6a8ca273d40153ddd_rle_crop_3668051345_0.png', 1336502708: '1739194695_50796_1336500982_026ae06e96092b4ba6fd841b3d4282a8_rle_crop_3668051331_0.png', 1336502707: '1739194695_50796_1336501070_183ec8de938aa91b2883861f266ea660_rle_crop_3668051282_0.png', 1336502706: '1739194695_50796_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051238_0.png', 1336502705: '1739194695_50796_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051242_0.png', 1336502704: '1739194695_50796_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051243_0.png', 1336502703: '1739194695_50796_1336501423_30842a8e97c80fb5fe18c15596aba7f9_rle_crop_3668051995_0.png', 1336501452: '1739194455_42758_1336499831_7a49150e93ee8e2983624e0cddbb0d5c_rle_crop_3668049021_0.png', 1336502522: '1739194673_50486_1336499888_23c2dee4a1692404d80db160f596527c_rle_crop_3668050423_0.png', 1336502439: '1739194614_49814_1336500892_0efe8ff52fb40cb6a8ca273d40153ddd_rle_crop_3668051345_0.png', 1336502438: '1739194614_49814_1336500982_026ae06e96092b4ba6fd841b3d4282a8_rle_crop_3668051331_0.png', 1336502437: '1739194614_49814_1336501070_183ec8de938aa91b2883861f266ea660_rle_crop_3668051282_0.png', 1336502436: '1739194614_49814_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051238_0.png', 1336502435: '1739194614_49814_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051242_0.png', 1336502434: '1739194614_49814_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051243_0.png', 1336502359: '1739194591_49597_1336499888_23c2dee4a1692404d80db160f596527c_rle_crop_3668050426_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/4b714180f2d5201d861b13ba3c2a3ff3_46425788.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/63cadb075b33c2e8dd210b0e2085fa02_63605351.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/18858d96cf7a7471fb890036252ed78c_26131935.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/68ac2e496257aab5a1ebf2d009262c1a_93065323.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/8d602777831419bea7e31d5ebce1e9b2_185287.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/2a108ccd948c2aa5dad4c9247893c9df_5215809.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/828489424e6eea2ffe0953b9075c697f_26675380.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/29c9f39b903c3b477a710ac27f748eb2_90568560.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/c7a36d5d9c3d32972545d051536a90a4_27548544.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/90de0e451cae64d96527f210082562cd_40427931.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/51248f43dcfc30edf383c51b5730180a_12209075.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/02b50915a56472e966cf95e397ed6d5c_88925887.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/0ef801f0979a6f6b518aadd44a6e2f34_70862894.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/8d602777831419bea7e31d5ebce1e9b2_91051756.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/2a108ccd948c2aa5dad4c9247893c9df_22771111.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/828489424e6eea2ffe0953b9075c697f_96162233.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/29c9f39b903c3b477a710ac27f748eb2_8212184.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/c7a36d5d9c3d32972545d051536a90a4_76871776.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/90de0e451cae64d96527f210082562cd_40479541.png change filename to text .imagette204054411739195101/ imagette204054411739195101/1739194614_49814_1336501070_183ec8de938aa91b2883861f266ea660_rle_crop_3668051282_0.png.png imagette204054411739195101/1739194695_50796_1336501070_183ec8de938aa91b2883861f266ea660_rle_crop_3668051282_0.png.png imagette204054411739195101/1739194695_50796_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051243_0.png.png imagette204054411739195101/1739194934_59914_1336502464_17fe30c0217b6fc96b88b60d1c4d0f97_rle_crop_3668053843_0.png.png imagette204054411739195101/1739194695_50796_1336500892_0efe8ff52fb40cb6a8ca273d40153ddd_rle_crop_3668051345_0.png.png imagette204054411739195101/1739194673_50486_1336499888_23c2dee4a1692404d80db160f596527c_rle_crop_3668050426_0.png.png imagette204054411739195101/1739194614_49814_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051242_0.png.png imagette204054411739195101/1739194614_49814_1336500892_0efe8ff52fb40cb6a8ca273d40153ddd_rle_crop_3668051345_0.png.png imagette204054411739195101/1739194614_49814_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051238_0.png.png imagette204054411739195101/1739194695_50796_1336500982_026ae06e96092b4ba6fd841b3d4282a8_rle_crop_3668051331_0.png.png imagette204054411739195101/1739194591_49597_1336499888_23c2dee4a1692404d80db160f596527c_rle_crop_3668050426_0.png.png imagette204054411739195101/1739194673_50486_1336499888_23c2dee4a1692404d80db160f596527c_rle_crop_3668050423_0.png.png imagette204054411739195101/1739194695_50796_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051238_0.png.png imagette204054411739195101/1739194614_49814_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051243_0.png.png imagette204054411739195101/1739194695_50796_1336501171_a144bc55faf14a5b668754b14818b53a_rle_crop_3668051242_0.png.png imagette204054411739195101/1739194952_61238_1336502198_ee24e4a43a26fa9ba321e6975fb0f931_rle_crop_3668053324_0.png.png imagette204054411739195101/1739194952_61238_1336502198_ee24e4a43a26fa9ba321e6975fb0f931_rle_crop_3668053322_0.png.png imagette204054411739195101/1739194614_49814_1336500982_026ae06e96092b4ba6fd841b3d4282a8_rle_crop_3668051331_0.png.png imagette204054411739195101/1739194455_42758_1336499831_7a49150e93ee8e2983624e0cddbb0d5c_rle_crop_3668049021_0.png.png imagette204054411739195101/1739194695_50796_1336501423_30842a8e97c80fb5fe18c15596aba7f9_rle_crop_3668051995_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/4b714180f2d5201d861b13ba3c2a3ff3_69727984.png imagette204054411739195101 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20405423 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20405443,20405444,20405445,20405446,20405447,20405448,20405449,20405450,20405451,20405452,20405453,20405454?tags=mal_croppe,plastique,kraft,environnement,Teint_Dans_La_Masse,flou,Carton_gris,autre_refus,papier,cartonnette,Carton_brun,metal your option no_mail is active, we will not send the real mail to your client args[1336502981] : ('0.037095481415616874',) no score found for photo 1336502981 apple ('0.037095481415616874',) We are sending mail with results at report@fotonower.com refus_total : 0.037095481415616874 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=20405423 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_P20405423_10-02-2025_14_44_59.pdf results_Auto_P20405423_10-02-2025_14_44_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20405423_10-02-2025_14_44_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20405423','results_Auto_P20405423_10-02-2025_14_44_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20405423_10-02-2025_14_44_59.pdf','pdf','','0.16','0.037095481415616874') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20405423]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1336502981] map_info['map_portfolio_photo'] : {20405423: [1336502981, 1336502768, 1336502718, 1336502702, 1336502695, 1336502464, 1336502463, 1336502414, 1336502412, 1336502410, 1336502409, 1336502229, 1336502198, 1336502182, 1336502178, 1336502167, 1336502109, 1336501461, 1336501457, 1336501454, 1336501423, 1336501419, 1336501413, 1336501410, 1336501257, 1336501171, 1336501070, 1336500982, 1336500892, 1336499895, 1336499888, 1336499885, 1336499882, 1336499831, 1336499800, 1336499712, 1336499648, 1336499353, 1336499351]} final : False mtd_id 4302 list_pids : [1336502981] 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, '2571420') ('4302', '20405423', '1336502981', None, None, None, None, None, '2571420') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '20405423', '1336502981', None, None, None, None, None, '2571420')] time used for this insertion : 0.010850667953491211 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.997180938720703 time spend to save output : 0.01099538803100586 total time spend for step 4 : 4.008176326751709 step5:split_time_score Mon Feb 10 14:45:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20405423'] 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 : [('20405423',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20405423) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1336502981: {'path': 'temp/1739195099_2594984_1336502981_68609d31f8c074f29526cedb2a9e0b9a.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 = 20405423; (('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 = 20405423 group by h (('14', 39),) 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=20405423 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 (20405423) 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 (20405423) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10022025 20405423 Nombre de photos uploadées : 39 / 23040 (0%) 10022025 20405423 Nombre de photos taguées (types de déchets): 0 / 39 (0%) 10022025 20405423 Nombre de photos taguées (volume) : 0 / 39 (0%) [{'photo_id': 1336499353, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/dde437cee4da983627f50f2fae7f5cbd.jpg', 'username': None, 'uploaded_at': 1739194267, 'text': 'image_10022025_14_30_24_010135m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1336499351, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/b0f7bd67e73d577171252f430b496381.jpg', 'username': None, 'uploaded_at': 1739194267, 'text': 'image_10022025_14_30_34_010146m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1336499831, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/7a49150e93ee8e2983624e0cddbb0d5c.jpg', 'username': None, 'uploaded_at': 1739194327, 'text': 'image_10022025_14_30_54_010139m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1336499800, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/32893bedc5cfb38a34b318cdfe966790.jpg', 'username': None, 'uploaded_at': 1739194327, 'text': 'image_10022025_14_31_14_9128.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ??????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018463134765625 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20405423, '2025-02-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1590566,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022084712982177734 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= 1590566 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1590566, 'dashboard_run_id': 1599196, 'mtr_portfolio_id': 20403826, 'dashboard_result_id': 8792263, '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_P20403826_10-02-2025_14_03_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20403828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20403829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20403830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20403831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20403832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20403833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20403834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20403835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20403836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20403837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20403838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20403839, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1599196, 'mtr_portfolio_id': 20404290, 'dashboard_result_id': 8792264, '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_P20404290_10-02-2025_14_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20404317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20404318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20404319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20404320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20404321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20404322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20404323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20404324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20404325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20404326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20404327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20404328, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1599196, 'mtr_portfolio_id': 20404797, 'dashboard_result_id': 8792265, '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_P20404797_10-02-2025_14_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20404848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20404849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20404850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20404851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20404852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20404853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20404854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20404855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20404856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20404857, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20404858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20404859, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1599196, 'mtr_portfolio_id': 20405423, 'dashboard_result_id': 8792266, '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_P20405423_10-02-2025_14_43_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20405431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20405432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20405433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20405434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20405435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20405436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20405437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20405438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20405439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20405440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20405441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20405442, '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 = 20403826 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': 2571291, 'mtr_portfolio_id': 20403826, 'created_at': datetime.datetime(2025, 2, 10, 14, 3, 2), 'result': '0.026437720266778708', 'result_long': None, 'result_double': None}] Qualite : 0.026437720266778708 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20403826 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20403826_10-02-2025_14_03_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20403826 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_P20403826_10-02-2025_14_03_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20403828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20403829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20403830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20403831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20403832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20403833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20403834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20403835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20403836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20403837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20403838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20403839, 'pht': 3726}}" where mtr_portfolio_id = 20403826 and dashboard_run_id = 1599196 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`=20403826 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8792263, 0.026437720266778708, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20403826_10-02-2025_14_03_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20403828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20403829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20403830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20403831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20403832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20403833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20403834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20403835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20403836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20403837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20403838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20403839, '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 = 20404290 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': 2571340, 'mtr_portfolio_id': 20404290, 'created_at': datetime.datetime(2025, 2, 10, 14, 18, 59), 'result': '0.04249183506631398', 'result_long': None, 'result_double': None}] Qualite : 0.04249183506631398 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20404290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20404290_10-02-2025_14_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20404290 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_P20404290_10-02-2025_14_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20404317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20404318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20404319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20404320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20404321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20404322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20404323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20404324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20404325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20404326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20404327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20404328, 'pht': 3726}}" where mtr_portfolio_id = 20404290 and dashboard_run_id = 1599196 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`=20404290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8792264, 0.04249183506631398, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20404290_10-02-2025_14_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20404317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20404318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20404319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20404320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20404321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20404322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20404323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20404324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20404325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20404326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20404327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20404328, '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 = 20404797 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': 2571379, 'mtr_portfolio_id': 20404797, 'created_at': datetime.datetime(2025, 2, 10, 14, 32, 59), 'result': '0.03918064566145079', 'result_long': None, 'result_double': None}] Qualite : 0.03918064566145079 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20404797 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20404797_10-02-2025_14_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20404797 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_P20404797_10-02-2025_14_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20404848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20404849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20404850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20404851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20404852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20404853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20404854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20404855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20404856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20404857, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20404858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20404859, 'pht': 3726}}" where mtr_portfolio_id = 20404797 and dashboard_run_id = 1599196 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`=20404797 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8792265, 0.03918064566145079, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20404797_10-02-2025_14_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20404848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20404849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20404850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20404851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20404852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20404853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20404854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20404855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20404856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20404857, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20404858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20404859, '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 = 20405423 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': 2571420, 'mtr_portfolio_id': 20405423, 'created_at': datetime.datetime(2025, 2, 10, 14, 44, 58), 'result': '0.037095481415616874', 'result_long': None, 'result_double': None}] Qualite : 0.037095481415616874 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20405423 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20405423_10-02-2025_14_44_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20405423 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_P20405423_10-02-2025_14_44_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20405431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20405432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20405433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20405434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20405435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20405436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20405437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20405438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20405439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20405440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20405441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20405442, 'pht': 3726}}" where mtr_portfolio_id = 20405423 and dashboard_run_id = 1599196 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`=20405423 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8792266, 0.037095481415616874, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20405423_10-02-2025_14_44_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20405431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20405432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20405433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20405434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20405435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20405436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20405437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20405438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20405439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20405440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20405441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20405442, '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 (20403826,20404290,20404797,20405423) result : ((1336492249,), (1336492320,), (1336492524,), (1336492528,), (1336492532,), (1336492594,), (1336492661,), (1336492664,), (1336493497,), (1336493502,), (1336493508,), (1336493562,), (1336493773,), (1336493775,), (1336493781,), (1336493783,), (1336493915,), (1336493918,), (1336493922,), (1336493986,), (1336493987,), (1336494003,), (1336494012,), (1336494014,), (1336494045,), (1336494050,), (1336494061,), (1336494094,), (1336494098,), (1336494104,), (1336494108,), (1336494134,), (1336494139,), (1336494161,), (1336494164,), (1336494207,), (1336494209,), (1336494212,), (1336494213,), (1336494215,), (1336494251,), (1336494256,), (1336494259,), (1336494332,), (1336494336,), (1336494357,), (1336494363,), (1336494369,), (1336494492,), (1336494484,), (1336494487,), (1336494489,), (1336494529,), (1336494533,), (1336494537,), (1336494540,), (1336494613,), (1336494616,), (1336494817,), (1336495323,), (1336495345,), (1336495348,), (1336495352,), (1336495390,), (1336495391,), (1336495659,), (1336495863,), (1336496132,), (1336496320,), (1336496324,), (1336496372,), (1336496382,), (1336496386,), (1336496928,), (1336497007,), (1336497014,), (1336497265,), (1336497266,), (1336497270,), (1336497274,), (1336497312,), (1336497317,), (1336497320,), (1336497323,), (1336497365,), (1336497368,), (1336497371,), (1336497374,), (1336497404,), (1336497412,), (1336497415,), (1336497416,), (1336497474,), (1336497476,), (1336497480,), (1336497483,), (1336497612,), (1336497618,), (1336497621,), (1336497820,), (1336497822,), (1336497825,), (1336497828,), (1336497833,), (1336497893,), (1336497865,), (1336497872,), (1336497874,), (1336497877,), (1336497891,), (1336498138,), (1336498145,), (1336498150,), (1336498154,), (1336498159,), (1336498192,), (1336498194,), (1336498197,), (1336498200,), (1336498214,), (1336498255,), (1336498258,), (1336498261,), (1336498270,), (1336498274,), (1336498276,), (1336498307,), (1336498308,), (1336498310,), (1336498398,), (1336498400,), (1336498520,), (1336498524,), (1336498528,), (1336498529,), (1336498548,), (1336498602,), (1336498608,), (1336498616,), (1336498687,), (1336498691,), (1336498743,), (1336498747,), (1336498757,), (1336498765,), (1336498817,), (1336498822,), (1336498826,), (1336498839,), (1336498843,), (1336498926,), (1336498928,), (1336498937,), (1336498941,), (1336499010,), (1336499034,), (1336499041,), (1336499045,), (1336499112,), (1336499116,), (1336499119,), (1336499122,), (1336499281,), (1336499286,), (1336499357,), (1336499351,), (1336499353,), (1336499648,), (1336499712,), (1336499800,), (1336499831,), (1336499882,), (1336499885,), (1336499888,), (1336499895,), (1336500892,), (1336500982,), (1336501070,), (1336501171,), (1336501257,), (1336501410,), (1336501413,), (1336501419,), (1336501423,), (1336501454,), (1336501457,), (1336501461,), (1336502109,), (1336502167,), (1336502178,), (1336502182,), (1336502198,), (1336502229,), (1336502409,), (1336502410,), (1336502412,), (1336502414,), (1336502463,), (1336502464,), (1336502695,), (1336502702,), (1336502718,), (1336502768,), (1336502981,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10022025': {'nb_upload': 39, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20405423]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1336502981] map_info['map_portfolio_photo'] : {20405423: [1336502981, 1336502768, 1336502718, 1336502702, 1336502695, 1336502464, 1336502463, 1336502414, 1336502412, 1336502410, 1336502409, 1336502229, 1336502198, 1336502182, 1336502178, 1336502167, 1336502109, 1336501461, 1336501457, 1336501454, 1336501423, 1336501419, 1336501413, 1336501410, 1336501257, 1336501171, 1336501070, 1336500982, 1336500892, 1336499895, 1336499888, 1336499885, 1336499882, 1336499831, 1336499800, 1336499712, 1336499648, 1336499353, 1336499351]} final : True mtd_id 4302 list_pids : [1336502981] Looping around the photos to save general results len do output : 1 /20405423Didn'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, '2571420') ('4302', '20405423', '1336502981', None, None, None, None, None, '2571420') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '20405423', 'None', None, None, None, None, '2571420'), ('4302', '20405423', '1336502981', None, None, None, None, None, '2571420')] time used for this insertion : 0.012181758880615234 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3298044204711914 time spend to save output : 0.012325763702392578 total time spend for step 5 : 0.342130184173584 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 (2571420) 1.92user 2.44system 0:09.29elapsed 47%CPU (0avgtext+0avgdata 155632maxresident)k 36840inputs+9184outputs (263major+61699minor)pagefaults 0swaps