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 : 3939770 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 (2684873) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2684873) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21639313 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2684873'] with mtr_portfolio_ids : ['21639313'] and first list_photo_ids : [] new path : /proc/3939770/ Name: python3 Umask: 0002 State: R (running) Tgid: 3939770 Ngid: 0 Pid: 3939770 PPid: 3939769 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3939770 NSpid: 3939770 NSpgid: 3936920 NSsid: 3936920 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98580 kB VmRSS: 98580 kB RssAnon: 59752 kB RssFile: 38828 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 52 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3939770', 'Ngid': '0', 'Pid': '3939770', 'PPid': '3939769', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3939770', 'NSpid': '3939770', 'NSpgid': '3936920', 'NSsid': '3936920', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98580 kB', 'VmRSS': '98580 kB', 'RssAnon': '59752 kB', 'RssFile': '38828 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '52', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '3939770', '1106932', '0', '1106932', '865680', '98580', b'', 'marlene', '2684873') 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 (21639313) 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 (2684873 ) ) 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 (21639313) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1346756417, 'portfolio_id': 21639313}, {'photo_id': 1346756412, 'portfolio_id': 21639313}, {'photo_id': 1346756328, 'portfolio_id': 21639313}, {'photo_id': 1346756248, 'portfolio_id': 21639313}, {'photo_id': 1346756235, 'portfolio_id': 21639313}, {'photo_id': 1346756226, 'portfolio_id': 21639313}, {'photo_id': 1346756199, 'portfolio_id': 21639313}, {'photo_id': 1346756102, 'portfolio_id': 21639313}, {'photo_id': 1346756096, 'portfolio_id': 21639313}, {'photo_id': 1346756085, 'portfolio_id': 21639313}, {'photo_id': 1346756029, 'portfolio_id': 21639313}, {'photo_id': 1346755954, 'portfolio_id': 21639313}, {'photo_id': 1346755922, 'portfolio_id': 21639313}, {'photo_id': 1346755895, 'portfolio_id': 21639313}, {'photo_id': 1346755885, 'portfolio_id': 21639313}, {'photo_id': 1346755874, 'portfolio_id': 21639313}, {'photo_id': 1346755869, 'portfolio_id': 21639313}, {'photo_id': 1346755864, 'portfolio_id': 21639313}, {'photo_id': 1346755854, 'portfolio_id': 21639313}, {'photo_id': 1346755813, 'portfolio_id': 21639313}, {'photo_id': 1346755810, 'portfolio_id': 21639313}, {'photo_id': 1346755806, 'portfolio_id': 21639313}, {'photo_id': 1346755794, 'portfolio_id': 21639313}, {'photo_id': 1346755744, 'portfolio_id': 21639313}, {'photo_id': 1346755741, 'portfolio_id': 21639313}, {'photo_id': 1346755732, 'portfolio_id': 21639313}, {'photo_id': 1346755696, 'portfolio_id': 21639313}, {'photo_id': 1346755686, 'portfolio_id': 21639313}, {'photo_id': 1346755446, 'portfolio_id': 21639313}, {'photo_id': 1346755426, 'portfolio_id': 21639313}, {'photo_id': 1346755421, 'portfolio_id': 21639313}, {'photo_id': 1346755416, 'portfolio_id': 21639313}, {'photo_id': 1346755406, 'portfolio_id': 21639313}, {'photo_id': 1346755400, 'portfolio_id': 21639313}, {'photo_id': 1346755340, 'portfolio_id': 21639313}, {'photo_id': 1346755331, 'portfolio_id': 21639313}, {'photo_id': 1346755319, 'portfolio_id': 21639313}, {'photo_id': 1346755306, 'portfolio_id': 21639313}, {'photo_id': 1346755082, 'portfolio_id': 21639313}, {'photo_id': 1346754934, 'portfolio_id': 21639313}, {'photo_id': 1346754799, 'portfolio_id': 21639313}, {'photo_id': 1346754754, 'portfolio_id': 21639313}] map_portfolio_id_photo_id: {21639313: [1346756417, 1346756412, 1346756328, 1346756248, 1346756235, 1346756226, 1346756199, 1346756102, 1346756096, 1346756085, 1346756029, 1346755954, 1346755922, 1346755895, 1346755885, 1346755874, 1346755869, 1346755864, 1346755854, 1346755813, 1346755810, 1346755806, 1346755794, 1346755744, 1346755741, 1346755732, 1346755696, 1346755686, 1346755446, 1346755426, 1346755421, 1346755416, 1346755406, 1346755400, 1346755340, 1346755331, 1346755319, 1346755306, 1346755082, 1346754934, 1346754799, 1346754754]} ##### 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.015702486038208008 #### 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 Mar 24 11:10:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21639313) 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 : 21639313 get user id for portfolio 21639313 get sub ptf for main ptf 21639313, type 3726 and hashtags ['plastique', 'cartonnette', 'environnement', 'papier', 'autre_refus', 'Carton_brun', 'mal_croppe', 'flou', 'Carton_gris', 'metal', 'kraft', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21639313 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','cartonnette','environnement','papier','autre_refus','Carton_brun','mal_croppe','flou','Carton_gris','metal','kraft','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21639313 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','cartonnette','environnement','papier','autre_refus','Carton_brun','mal_croppe','flou','Carton_gris','metal','kraft','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21639313, 'sub_port_id': 21639410, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176690, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 28)}, 'kraft': {'main_port_id': 21639313, 'sub_port_id': 21639411, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176691, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 28)}, 'autre_refus': {'main_port_id': 21639313, 'sub_port_id': 21639412, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176692, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 28)}, 'mal_croppe': {'main_port_id': 21639313, 'sub_port_id': 21639413, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176693, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 28)}, 'Carton_brun': {'main_port_id': 21639313, 'sub_port_id': 21639414, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176694, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 28)}, 'plastique': {'main_port_id': 21639313, 'sub_port_id': 21639415, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176695, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 21639313, 'sub_port_id': 21639416, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176696, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 28)}, 'cartonnette': {'main_port_id': 21639313, 'sub_port_id': 21639417, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176697, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 28)}, 'papier': {'main_port_id': 21639313, 'sub_port_id': 21639418, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176698, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 28)}, 'environnement': {'main_port_id': 21639313, 'sub_port_id': 21639419, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176699, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 28)}, 'metal': {'main_port_id': 21639313, 'sub_port_id': 21639420, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176700, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 28)}, 'flou': {'main_port_id': 21639313, 'sub_port_id': 21639421, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176701, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 7, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21639410 , 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=21639313 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 (21639410) result : ((1346755853,), (1346756157,), (1346756243,), (1346756244,), (1346756246,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21639313) result : ((1346754754,), (1346754799,), (1346754934,), (1346755082,), (1346755306,), (1346755319,), (1346755331,), (1346755340,), (1346755400,), (1346755406,), (1346755416,), (1346755421,), (1346755426,), (1346755446,), (1346755686,), (1346755696,), (1346755732,), (1346755741,), (1346755744,), (1346755794,), (1346755806,), (1346755810,), (1346755813,), (1346755854,), (1346755864,), (1346755869,), (1346755874,), (1346755885,), (1346755895,), (1346755922,), (1346755954,), (1346756029,), (1346756085,), (1346756096,), (1346756102,), (1346756199,), (1346756226,), (1346756235,), (1346756248,), (1346756328,), (1346756412,), (1346756417,)) 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 (1346755400) 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 21639411 , 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=21639313 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 (21639411) result : ((1346755757,), (1346755863,), (1346756251,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21639313) result : ((1346754754,), (1346754799,), (1346754934,), (1346755082,), (1346755306,), (1346755319,), (1346755331,), (1346755340,), (1346755400,), (1346755406,), (1346755416,), (1346755421,), (1346755426,), (1346755446,), (1346755686,), (1346755696,), (1346755732,), (1346755741,), (1346755744,), (1346755794,), (1346755806,), (1346755810,), (1346755813,), (1346755854,), (1346755864,), (1346755869,), (1346755874,), (1346755885,), (1346755895,), (1346755922,), (1346755954,), (1346756029,), (1346756085,), (1346756096,), (1346756102,), (1346756199,), (1346756226,), (1346756235,), (1346756248,), (1346756328,), (1346756412,), (1346756417,)) 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 (1346755400) 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 21639412 , 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=21639313 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 (21639412) result : ((1346755747,), (1346755748,), (1346755749,), (1346755750,), (1346755847,), (1346755848,), (1346755849,), (1346755850,), (1346755851,), (1346755852,), (1346755887,), (1346755888,), (1346755889,), (1346755890,), (1346755892,), (1346755893,), (1346756156,), (1346756236,), (1346756237,), (1346756239,), (1346756241,), (1346756242,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21639313) result : ((1346754754,), (1346754799,), (1346754934,), (1346755082,), (1346755306,), (1346755319,), (1346755331,), (1346755340,), (1346755400,), (1346755406,), (1346755416,), (1346755421,), (1346755426,), (1346755446,), (1346755686,), (1346755696,), (1346755732,), (1346755741,), (1346755744,), (1346755794,), (1346755806,), (1346755810,), (1346755813,), (1346755854,), (1346755864,), (1346755869,), (1346755874,), (1346755885,), (1346755895,), (1346755922,), (1346755954,), (1346756029,), (1346756085,), (1346756096,), (1346756102,), (1346756199,), (1346756226,), (1346756235,), (1346756248,), (1346756328,), (1346756412,), (1346756417,)) 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 (1346755400) 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 21639413 , 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=21639313 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 (21639413) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21639313) result : ((1346754754,), (1346754799,), (1346754934,), (1346755082,), (1346755306,), (1346755319,), (1346755331,), (1346755340,), (1346755400,), (1346755406,), (1346755416,), (1346755421,), (1346755426,), (1346755446,), (1346755686,), (1346755696,), (1346755732,), (1346755741,), (1346755744,), (1346755794,), (1346755806,), (1346755810,), (1346755813,), (1346755854,), (1346755864,), (1346755869,), (1346755874,), (1346755885,), (1346755895,), (1346755922,), (1346755954,), (1346756029,), (1346756085,), (1346756096,), (1346756102,), (1346756199,), (1346756226,), (1346756235,), (1346756248,), (1346756328,), (1346756412,), (1346756417,)) 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 (1346755400) 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 21639414 , 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=21639313 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 (21639414) result : ((1346755754,), (1346755858,), (1346755859,), (1346755860,), (1346755894,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21639313) result : ((1346754754,), (1346754799,), (1346754934,), (1346755082,), (1346755306,), (1346755319,), (1346755331,), (1346755340,), (1346755400,), (1346755406,), (1346755416,), (1346755421,), (1346755426,), (1346755446,), (1346755686,), (1346755696,), (1346755732,), (1346755741,), (1346755744,), (1346755794,), (1346755806,), (1346755810,), (1346755813,), (1346755854,), (1346755864,), (1346755869,), (1346755874,), (1346755885,), (1346755895,), (1346755922,), (1346755954,), (1346756029,), (1346756085,), (1346756096,), (1346756102,), (1346756199,), (1346756226,), (1346756235,), (1346756248,), (1346756328,), (1346756412,), (1346756417,)) 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 (1346755400) 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 21639415 , 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=21639313 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 (21639415) result : ((1346755862,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21639313) result : ((1346754754,), (1346754799,), (1346754934,), (1346755082,), (1346755306,), (1346755319,), (1346755331,), (1346755340,), (1346755400,), (1346755406,), (1346755416,), (1346755421,), (1346755426,), (1346755446,), (1346755686,), (1346755696,), (1346755732,), (1346755741,), (1346755744,), (1346755794,), (1346755806,), (1346755810,), (1346755813,), (1346755854,), (1346755864,), (1346755869,), (1346755874,), (1346755885,), (1346755895,), (1346755922,), (1346755954,), (1346756029,), (1346756085,), (1346756096,), (1346756102,), (1346756199,), (1346756226,), (1346756235,), (1346756248,), (1346756328,), (1346756412,), (1346756417,)) 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 (1346755400) 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 21639416 , 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=21639313 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 (21639416) result : ((1346755845,), (1346755878,), (1346755879,), (1346755880,), (1346755882,), (1346755883,), (1346755884,), (1346756233,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21639313) result : ((1346754754,), (1346754799,), (1346754934,), (1346755082,), (1346755306,), (1346755319,), (1346755331,), (1346755340,), (1346755400,), (1346755406,), (1346755416,), (1346755421,), (1346755426,), (1346755446,), (1346755686,), (1346755696,), (1346755732,), (1346755741,), (1346755744,), (1346755794,), (1346755806,), (1346755810,), (1346755813,), (1346755854,), (1346755864,), (1346755869,), (1346755874,), (1346755885,), (1346755895,), (1346755922,), (1346755954,), (1346756029,), (1346756085,), (1346756096,), (1346756102,), (1346756199,), (1346756226,), (1346756235,), (1346756248,), (1346756328,), (1346756412,), (1346756417,)) 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 (1346755400) 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 21639417 , 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=21639313 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 (21639417) result : ((1346755753,), (1346755856,), (1346756249,), (1346756250,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21639313) result : ((1346754754,), (1346754799,), (1346754934,), (1346755082,), (1346755306,), (1346755319,), (1346755331,), (1346755340,), (1346755400,), (1346755406,), (1346755416,), (1346755421,), (1346755426,), (1346755446,), (1346755686,), (1346755696,), (1346755732,), (1346755741,), (1346755744,), (1346755794,), (1346755806,), (1346755810,), (1346755813,), (1346755854,), (1346755864,), (1346755869,), (1346755874,), (1346755885,), (1346755895,), (1346755922,), (1346755954,), (1346756029,), (1346756085,), (1346756096,), (1346756102,), (1346756199,), (1346756226,), (1346756235,), (1346756248,), (1346756328,), (1346756412,), (1346756417,)) 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 (1346755400) 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 21639418 , 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=21639313 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 (21639418) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21639313) result : ((1346754754,), (1346754799,), (1346754934,), (1346755082,), (1346755306,), (1346755319,), (1346755331,), (1346755340,), (1346755400,), (1346755406,), (1346755416,), (1346755421,), (1346755426,), (1346755446,), (1346755686,), (1346755696,), (1346755732,), (1346755741,), (1346755744,), (1346755794,), (1346755806,), (1346755810,), (1346755813,), (1346755854,), (1346755864,), (1346755869,), (1346755874,), (1346755885,), (1346755895,), (1346755922,), (1346755954,), (1346756029,), (1346756085,), (1346756096,), (1346756102,), (1346756199,), (1346756226,), (1346756235,), (1346756248,), (1346756328,), (1346756412,), (1346756417,)) 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 (1346755400) 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 21639419 , 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=21639313 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 (21639419) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21639313) result : ((1346754754,), (1346754799,), (1346754934,), (1346755082,), (1346755306,), (1346755319,), (1346755331,), (1346755340,), (1346755400,), (1346755406,), (1346755416,), (1346755421,), (1346755426,), (1346755446,), (1346755686,), (1346755696,), (1346755732,), (1346755741,), (1346755744,), (1346755794,), (1346755806,), (1346755810,), (1346755813,), (1346755854,), (1346755864,), (1346755869,), (1346755874,), (1346755885,), (1346755895,), (1346755922,), (1346755954,), (1346756029,), (1346756085,), (1346756096,), (1346756102,), (1346756199,), (1346756226,), (1346756235,), (1346756248,), (1346756328,), (1346756412,), (1346756417,)) 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 (1346755400) 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 21639420 , 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=21639313 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 (21639420) result : ((1346755897,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21639313) result : ((1346754754,), (1346754799,), (1346754934,), (1346755082,), (1346755306,), (1346755319,), (1346755331,), (1346755340,), (1346755400,), (1346755406,), (1346755416,), (1346755421,), (1346755426,), (1346755446,), (1346755686,), (1346755696,), (1346755732,), (1346755741,), (1346755744,), (1346755794,), (1346755806,), (1346755810,), (1346755813,), (1346755854,), (1346755864,), (1346755869,), (1346755874,), (1346755885,), (1346755895,), (1346755922,), (1346755954,), (1346756029,), (1346756085,), (1346756096,), (1346756102,), (1346756199,), (1346756226,), (1346756235,), (1346756248,), (1346756328,), (1346756412,), (1346756417,)) 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 (1346755400) 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 21639421 , 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=21639313 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 (21639421) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21639313) result : ((1346754754,), (1346754799,), (1346754934,), (1346755082,), (1346755306,), (1346755319,), (1346755331,), (1346755340,), (1346755400,), (1346755406,), (1346755416,), (1346755421,), (1346755426,), (1346755446,), (1346755686,), (1346755696,), (1346755732,), (1346755741,), (1346755744,), (1346755794,), (1346755806,), (1346755810,), (1346755813,), (1346755854,), (1346755864,), (1346755869,), (1346755874,), (1346755885,), (1346755895,), (1346755922,), (1346755954,), (1346756029,), (1346756085,), (1346756096,), (1346756102,), (1346756199,), (1346756226,), (1346756235,), (1346756248,), (1346756328,), (1346756412,), (1346756417,)) 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 (1346755400) 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`=21639313 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','cartonnette','environnement','papier','autre_refus','Carton_brun','mal_croppe','flou','Carton_gris','metal','kraft','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21639313 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','cartonnette','environnement','papier','autre_refus','Carton_brun','mal_croppe','flou','Carton_gris','metal','kraft','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21639313, 'sub_port_id': 21639422, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176702, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 29)}, 'kraft': {'main_port_id': 21639313, 'sub_port_id': 21639423, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176703, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 29)}, 'autre_refus': {'main_port_id': 21639313, 'sub_port_id': 21639424, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176704, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 29)}, 'mal_croppe': {'main_port_id': 21639313, 'sub_port_id': 21639425, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176705, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 29)}, 'Carton_brun': {'main_port_id': 21639313, 'sub_port_id': 21639426, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176706, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 29)}, 'plastique': {'main_port_id': 21639313, 'sub_port_id': 21639427, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176707, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 21639313, 'sub_port_id': 21639428, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176708, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 29)}, 'cartonnette': {'main_port_id': 21639313, 'sub_port_id': 21639429, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176709, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 29)}, 'papier': {'main_port_id': 21639313, 'sub_port_id': 21639430, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176710, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 29)}, 'environnement': {'main_port_id': 21639313, 'sub_port_id': 21639431, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176711, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 29)}, 'metal': {'main_port_id': 21639313, 'sub_port_id': 21639432, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176712, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 29)}, 'flou': {'main_port_id': 21639313, 'sub_port_id': 21639433, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14176713, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 7, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 7, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 5, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21639422,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21639410 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21639423,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21639411 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21639424,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21639412 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21639425,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21639413 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21639426,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21639414 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21639427,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21639415 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21639428,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21639416 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21639429,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21639417 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21639430,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21639418 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21639431,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21639419 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21639432,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21639420 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21639433,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21639421 lien utilise dans velours : https://www.fotonower.com/velours/21639422,21639423,21639424,21639425,21639426,21639427,21639428,21639429,21639430,21639431,21639432,21639433?tags=Carton_gris,kraft,autre_refus,mal_croppe,Carton_brun,plastique,Teint_Dans_La_Masse,cartonnette,papier,environnement,metal,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21639313]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1346756417, 1346756412, 1346756328, 1346756248, 1346756235, 1346756226, 1346756199, 1346756102, 1346756096, 1346756085, 1346756029, 1346755954, 1346755922] map_info['map_portfolio_photo'] : {21639313: [1346756417, 1346756412, 1346756328, 1346756248, 1346756235, 1346756226, 1346756199, 1346756102, 1346756096, 1346756085, 1346756029, 1346755954, 1346755922, 1346755895, 1346755885, 1346755874, 1346755869, 1346755864, 1346755854, 1346755813, 1346755810, 1346755806, 1346755794, 1346755744, 1346755741, 1346755732, 1346755696, 1346755686, 1346755446, 1346755426, 1346755421, 1346755416, 1346755406, 1346755400, 1346755340, 1346755331, 1346755319, 1346755306, 1346755082, 1346754934, 1346754799, 1346754754]} final : False mtd_id 4302 list_pids : [1346756417, 1346756412, 1346756328, 1346756248, 1346756235, 1346756226, 1346756199, 1346756102, 1346756096, 1346756085, 1346756029, 1346755954, 1346755922] Looping around the photos to save general results len do output : 1 /21639313. 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, '2684873') ('4302', '21639313', '1346756417', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756412', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756328', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756248', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756235', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756226', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756199', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756102', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756096', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756085', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756029', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346755954', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346755922', None, None, None, None, None, '2684873') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21639313', "{'Carton_gris': 21639410, 'kraft': 21639411, 'autre_refus': 21639412, 'mal_croppe': 21639413, 'Carton_brun': 21639414, 'plastique': 21639415, 'Teint_Dans_La_Masse': 21639416, 'cartonnette': 21639417, 'papier': 21639418, 'environnement': 21639419, 'metal': 21639420, 'flou': 21639421}", None, None, None, None, '2684873'), ('4302', '21639313', '1346756417', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756412', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756328', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756248', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756235', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756226', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756199', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756102', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756096', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756085', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756029', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346755954', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346755922', None, None, None, None, None, '2684873')] time used for this insertion : 0.2899200916290283 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5683467388153076 time spend to save output : 0.29023075103759766 total time spend for step 1 : 0.8585774898529053 step2:final Mon Mar 24 11:10: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 (21639313) 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 21639313 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1346755082,1346754934,1346754799,1346754754,1346755340,1346755331,1346755319,1346755306,1346755446,1346755426,1346755421,1346755416,1346755406,1346755400,1346755744,1346755741,1346755732,1346755696,1346755686,1346755813,1346755810,1346755806,1346755794,1346755895,1346755885,1346755874,1346755869,1346755864,1346755854,1346756102,1346756096,1346756085,1346756029,1346755954,1346755922,1346756248,1346756235,1346756226,1346756199,1346756417,1346756412,1346756328); 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([21639313]) Inside saveOutput : final : False verbose : True original output for save of step final : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ('0.05932888483426164',), 1346756029: ('0.05932888483426164',), 1346755954: ('0.05932888483426164',), 1346755922: ('0.05932888483426164',)} new output for save of step final : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ('0.05932888483426164',), 1346756029: ('0.05932888483426164',), 1346755954: ('0.05932888483426164',), 1346755922: ('0.05932888483426164',)} [1346756417, 1346756412, 1346756328, 1346756248, 1346756235, 1346756226, 1346756199, 1346756102, 1346756096, 1346756085, 1346756029, 1346755954, 1346755922] map_info['map_portfolio_photo'] : {21639313: [1346756417, 1346756412, 1346756328, 1346756248, 1346756235, 1346756226, 1346756199, 1346756102, 1346756096, 1346756085, 1346756029, 1346755954, 1346755922, 1346755895, 1346755885, 1346755874, 1346755869, 1346755864, 1346755854, 1346755813, 1346755810, 1346755806, 1346755794, 1346755744, 1346755741, 1346755732, 1346755696, 1346755686, 1346755446, 1346755426, 1346755421, 1346755416, 1346755406, 1346755400, 1346755340, 1346755331, 1346755319, 1346755306, 1346755082, 1346754934, 1346754799, 1346754754]} final : False mtd_id 4302 list_pids : [1346756417, 1346756412, 1346756328, 1346756248, 1346756235, 1346756226, 1346756199, 1346756102, 1346756096, 1346756085, 1346756029, 1346755954, 1346755922] Looping around the photos to save general results len do output : 13 /1346756417.Didn't retrieve data . /1346756412.Didn't retrieve data . /1346756328.Didn't retrieve data . /1346756248.Didn't retrieve data . /1346756235.Didn't retrieve data . /1346756226.Didn't retrieve data . /1346756199.Didn't retrieve data . /1346756102.Didn't retrieve data . /1346756096.Didn't retrieve data . /1346756085.Didn't retrieve data . /1346756029.Didn't retrieve data . /1346755954.Didn't retrieve data . /1346755922.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, '2684873') ('4302', '21639313', '1346756417', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756412', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756328', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756248', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756235', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756226', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756199', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756102', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756096', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756085', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756029', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346755954', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346755922', None, None, None, None, None, '2684873') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '21639313', '1346756417', '0.05932888483426164', None, None, None, None, '2684873'), ('4302', '21639313', '1346756412', '0.05932888483426164', None, None, None, None, '2684873'), ('4302', '21639313', '1346756328', '0.05932888483426164', None, None, None, None, '2684873'), ('4302', '21639313', '1346756248', '0.05932888483426164', None, None, None, None, '2684873'), ('4302', '21639313', '1346756235', '0.05932888483426164', None, None, None, None, '2684873'), ('4302', '21639313', '1346756226', '0.05932888483426164', None, None, None, None, '2684873'), ('4302', '21639313', '1346756199', '0.05932888483426164', None, None, None, None, '2684873'), ('4302', '21639313', '1346756102', '0.05932888483426164', None, None, None, None, '2684873'), ('4302', '21639313', '1346756096', '0.05932888483426164', None, None, None, None, '2684873'), ('4302', '21639313', '1346756085', '0.05932888483426164', None, None, None, None, '2684873'), ('4302', '21639313', '1346756029', '0.05932888483426164', None, None, None, None, '2684873'), ('4302', '21639313', '1346755954', '0.05932888483426164', None, None, None, None, '2684873'), ('4302', '21639313', '1346755922', '0.05932888483426164', None, None, None, None, '2684873')] time used for this insertion : 0.013732433319091797 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06267523765563965 time spend to save output : 0.014074563980102539 total time spend for step 2 : 0.07674980163574219 step3:velours_tree Mon Mar 24 11:10: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 : {21639313: [{'Carton_gris': 21639410, 'kraft': 21639411, 'autre_refus': 21639412, 'mal_croppe': 21639413, 'Carton_brun': 21639414, 'plastique': 21639415, 'Teint_Dans_La_Masse': 21639416, 'cartonnette': 21639417, 'papier': 21639418, 'environnement': 21639419, 'metal': 21639420, 'flou': 21639421}]} input_args_next_step : {21639313: ()} output_args : {21639313: [{'Carton_gris': 21639410, 'kraft': 21639411, 'autre_refus': 21639412, 'mal_croppe': 21639413, 'Carton_brun': 21639414, 'plastique': 21639415, 'Teint_Dans_La_Masse': 21639416, 'cartonnette': 21639417, 'papier': 21639418, 'environnement': 21639419, 'metal': 21639420, 'flou': 21639421}]} args : 21639313 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 21639410, 'kraft': 21639411, 'autre_refus': 21639412, 'mal_croppe': 21639413, 'Carton_brun': 21639414, 'plastique': 21639415, 'Teint_Dans_La_Masse': 21639416, 'cartonnette': 21639417, 'papier': 21639418, 'environnement': 21639419, 'metal': 21639420, 'flou': 21639421},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21639313) 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([21639313]) 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.34187984466552734 time spend to save output : 5.030632019042969e-05 total time spend for step 3 : 0.3419301509857178 step4:send_mail_cod Mon Mar 24 11:10: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 : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ('0.05932888483426164',), 1346756029: ('0.05932888483426164',), 1346755954: ('0.05932888483426164',), 1346755922: ('0.05932888483426164',)} input_args_next_step : {1346756417: ()} output_args : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ('0.05932888483426164',), 1346756029: ('0.05932888483426164',), 1346755954: ('0.05932888483426164',), 1346755922: ('0.05932888483426164',)} args : 1346756417 depend.output_id : 0 input_args_next_step : {1346756417: ('0.05932888483426164',), 1346756412: ()} output_args : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ('0.05932888483426164',), 1346756029: ('0.05932888483426164',), 1346755954: ('0.05932888483426164',), 1346755922: ('0.05932888483426164',)} args : 1346756412 depend.output_id : 0 input_args_next_step : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ()} output_args : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ('0.05932888483426164',), 1346756029: ('0.05932888483426164',), 1346755954: ('0.05932888483426164',), 1346755922: ('0.05932888483426164',)} args : 1346756328 depend.output_id : 0 input_args_next_step : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ()} output_args : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ('0.05932888483426164',), 1346756029: ('0.05932888483426164',), 1346755954: ('0.05932888483426164',), 1346755922: ('0.05932888483426164',)} args : 1346756248 depend.output_id : 0 input_args_next_step : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ()} output_args : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ('0.05932888483426164',), 1346756029: ('0.05932888483426164',), 1346755954: ('0.05932888483426164',), 1346755922: ('0.05932888483426164',)} args : 1346756235 depend.output_id : 0 input_args_next_step : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ()} output_args : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ('0.05932888483426164',), 1346756029: ('0.05932888483426164',), 1346755954: ('0.05932888483426164',), 1346755922: ('0.05932888483426164',)} args : 1346756226 depend.output_id : 0 input_args_next_step : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ()} output_args : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ('0.05932888483426164',), 1346756029: ('0.05932888483426164',), 1346755954: ('0.05932888483426164',), 1346755922: ('0.05932888483426164',)} args : 1346756199 depend.output_id : 0 input_args_next_step : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ()} output_args : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ('0.05932888483426164',), 1346756029: ('0.05932888483426164',), 1346755954: ('0.05932888483426164',), 1346755922: ('0.05932888483426164',)} args : 1346756102 depend.output_id : 0 input_args_next_step : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ()} output_args : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ('0.05932888483426164',), 1346756029: ('0.05932888483426164',), 1346755954: ('0.05932888483426164',), 1346755922: ('0.05932888483426164',)} args : 1346756096 depend.output_id : 0 input_args_next_step : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ()} output_args : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ('0.05932888483426164',), 1346756029: ('0.05932888483426164',), 1346755954: ('0.05932888483426164',), 1346755922: ('0.05932888483426164',)} args : 1346756085 depend.output_id : 0 input_args_next_step : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ('0.05932888483426164',), 1346756029: ()} output_args : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ('0.05932888483426164',), 1346756029: ('0.05932888483426164',), 1346755954: ('0.05932888483426164',), 1346755922: ('0.05932888483426164',)} args : 1346756029 depend.output_id : 0 input_args_next_step : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ('0.05932888483426164',), 1346756029: ('0.05932888483426164',), 1346755954: ()} output_args : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ('0.05932888483426164',), 1346756029: ('0.05932888483426164',), 1346755954: ('0.05932888483426164',), 1346755922: ('0.05932888483426164',)} args : 1346755954 depend.output_id : 0 input_args_next_step : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ('0.05932888483426164',), 1346756029: ('0.05932888483426164',), 1346755954: ('0.05932888483426164',), 1346755922: ()} output_args : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ('0.05932888483426164',), 1346756029: ('0.05932888483426164',), 1346755954: ('0.05932888483426164',), 1346755922: ('0.05932888483426164',)} args : 1346755922 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {21639313: [{'Carton_gris': 21639410, 'kraft': 21639411, 'autre_refus': 21639412, 'mal_croppe': 21639413, 'Carton_brun': 21639414, 'plastique': 21639415, 'Teint_Dans_La_Masse': 21639416, 'cartonnette': 21639417, 'papier': 21639418, 'environnement': 21639419, 'metal': 21639420, 'flou': 21639421}]} input_args_next_step : {1346756417: ('0.05932888483426164',), 1346756412: ('0.05932888483426164',), 1346756328: ('0.05932888483426164',), 1346756248: ('0.05932888483426164',), 1346756235: ('0.05932888483426164',), 1346756226: ('0.05932888483426164',), 1346756199: ('0.05932888483426164',), 1346756102: ('0.05932888483426164',), 1346756096: ('0.05932888483426164',), 1346756085: ('0.05932888483426164',), 1346756029: ('0.05932888483426164',), 1346755954: ('0.05932888483426164',), 1346755922: ('0.05932888483426164',), 21639313: ()} output_args : {21639313: [{'Carton_gris': 21639410, 'kraft': 21639411, 'autre_refus': 21639412, 'mal_croppe': 21639413, 'Carton_brun': 21639414, 'plastique': 21639415, 'Teint_Dans_La_Masse': 21639416, 'cartonnette': 21639417, 'papier': 21639418, 'environnement': 21639419, 'metal': 21639420, 'flou': 21639421}]} args : 21639313 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 :14, first value : ('0.05932888483426164',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21639313) 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 (1346756417,1346756412,1346756328,1346756248,1346756235,1346756226,1346756199,1346756102,1346756096,1346756085,1346756029,1346755954,1346755922) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1346755922 begin to download photo : 1346756085 begin to download photo : 1346756199 begin to download photo : 1346756248 begin to download photo : 1346756417 download finish for photo 1346756199 begin to download photo : 1346756226 download finish for photo 1346756417 download finish for photo 1346756085 begin to download photo : 1346756096 download finish for photo 1346755922 begin to download photo : 1346755954 download finish for photo 1346756248 begin to download photo : 1346756328 download finish for photo 1346756226 begin to download photo : 1346756235 download finish for photo 1346756096 begin to download photo : 1346756102 download finish for photo 1346755954 begin to download photo : 1346756029 download finish for photo 1346756328 begin to download photo : 1346756412 download finish for photo 1346756235 download finish for photo 1346756412 download finish for photo 1346756029 download finish for photo 1346756102 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P21639313_24-03-2025_11_10_59.pdf 21639411 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=21639411 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346755757: '1742810691_2824144_1346755319_cb0c127fea98906020cda1c331907cb5_rle_crop_3726444424_0.png', 1346755863: '1742810773_2825191_1346755406_3ee38961b5d095cd1902aebfc2041392_rle_crop_3726448808_0.png', 1346756251: '1742810923_916155_1346755741_b7cd83929d97df69af81564f64732531_rle_crop_3726451691_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/30c6b38466a7b809f7d7ede54189a135_77709860.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/2886eab5a4827aaf18dc1e81eaf78939_37161386.png change filename to text .imagette216394111742811059/ imagette216394111742811059/1742810691_2824144_1346755319_cb0c127fea98906020cda1c331907cb5_rle_crop_3726444424_0.png.png imagette216394111742811059/1742810923_916155_1346755741_b7cd83929d97df69af81564f64732531_rle_crop_3726451691_0.png.png imagette216394111742811059/1742810773_2825191_1346755406_3ee38961b5d095cd1902aebfc2041392_rle_crop_3726448808_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/789b8362d66feb9128f82dcbcc46d231_6711030.png imagette216394111742811059 21639412 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=21639412 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346755888: '1742810801_912946_1346755340_21a88b83c813c88b36026cd474097070_rle_crop_3726447894_0.png', 1346756242: '1742810923_916155_1346755686_7e8eaa68407e217d24c15beb9c1e24fc_rle_crop_3726451803_0.png', 1346756241: '1742810923_916155_1346755696_6ae377a17c268771e4a3669a3dae08e5_rle_crop_3726451789_0.png', 1346756239: '1742810923_916155_1346755732_3e76860fd2f369fe3987633e372676c6_rle_crop_3726451778_0.png', 1346756237: '1742810923_916155_1346755741_b7cd83929d97df69af81564f64732531_rle_crop_3726451693_0.png', 1346756236: '1742810923_916155_1346755813_5eba6c941ff072248b99def9758a2a9b_rle_crop_3726451549_0.png', 1346756156: '1742810891_2826308_1346755806_9e308277299c33e22e16e0e1c903d2dd_rle_crop_3726451025_0.png', 1346755893: '1742810801_912946_1346754754_23652d53578d6f2d9b3e2b175a0cb604_rle_crop_3726448050_0.png', 1346755892: '1742810801_912946_1346754799_bc4e670e720b93c054444a6aa38d1f00_rle_crop_3726448040_0.png', 1346755890: '1742810801_912946_1346754934_f4c3354fc98a4a923dfaf41307e03c2a_rle_crop_3726448015_0.png', 1346755889: '1742810801_912946_1346755082_101e46b0e182478fa327162b4966a3fb_rle_crop_3726447938_0.png', 1346755747: '1742810691_2824144_1346755331_d410e7ed41f3909e0143bafad55966a7_rle_crop_3726444408_0.png', 1346755887: '1742810801_912946_1346755340_21a88b83c813c88b36026cd474097070_rle_crop_3726447888_0.png', 1346755852: '1742810773_2825191_1346755400_a50dbaccedfde1e15111ef9490c40fa6_rle_crop_3726448831_0.png', 1346755851: '1742810773_2825191_1346755400_a50dbaccedfde1e15111ef9490c40fa6_rle_crop_3726448820_0.png', 1346755850: '1742810773_2825191_1346755416_eccc83a5159da199c83b930f3d299f0f_rle_crop_3726448795_0.png', 1346755849: '1742810773_2825191_1346755416_eccc83a5159da199c83b930f3d299f0f_rle_crop_3726448788_0.png', 1346755848: '1742810773_2825191_1346755421_b1aaad1fb72270818d17dcb5e734b8f1_rle_crop_3726448782_0.png', 1346755847: '1742810773_2825191_1346755426_d6fa9146ef2f354e338637968f30088d_rle_crop_3726448715_0.png', 1346755750: '1742810691_2824144_1346755306_9173d5bc53b724fe6fb4a289c62ac016_rle_crop_3726445293_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/10275a4c89efbba8757eb670be548950_56225062.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/a1fd793f113f6bfae692e15f32f913d8_98208019.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d0cab33caf51107d8f8a835a0da978f7_16107284.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/af24a4b3e0a3f0e4703a232c2998a0bd_10035675.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/da686f47aec361e219754ad67fff79e2_28017114.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/2dda5339bf2e82f6b81325f758baa077_72655090.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/92394bcebce8484724940d2fd86b4bc3_53949484.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/cfdf46d6d570ad16568bfdb58f5fa140_60673573.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5b8706efadef792295c7059f419cc755_13273848.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3eab8eee51847e292fd5b13700cd7408_30425672.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/25e8b5c1b001bff68286e54c10bc6216_11635614.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/86bf815967f2176542b8f3c3c31c5919_75249461.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/2e5a9ae3bd02731c65ed3382da8cbe0b_65244356.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/878af7817c55ae09776754c728200840_88688738.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b4c4fcc34c766b5f32ac8ca1ced7d6f0_86974306.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/75a4e7e01c54c4d1a9ec5512c4dc616e_88277943.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/67b9bcefc441db01c10ab47f0bf4dc29_22816255.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/94b4e9581baf15d0589f6fc15595188d_75312241.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/90296712c7c7551b4987371666413a55_33931192.png change filename to text .imagette216394121742811059/ imagette216394121742811059/1742810923_916155_1346755813_5eba6c941ff072248b99def9758a2a9b_rle_crop_3726451549_0.png.png imagette216394121742811059/1742810773_2825191_1346755426_d6fa9146ef2f354e338637968f30088d_rle_crop_3726448715_0.png.png imagette216394121742811059/1742810773_2825191_1346755400_a50dbaccedfde1e15111ef9490c40fa6_rle_crop_3726448820_0.png.png imagette216394121742811059/1742810801_912946_1346755340_21a88b83c813c88b36026cd474097070_rle_crop_3726447888_0.png.png imagette216394121742811059/1742810801_912946_1346754934_f4c3354fc98a4a923dfaf41307e03c2a_rle_crop_3726448015_0.png.png imagette216394121742811059/1742810691_2824144_1346755306_9173d5bc53b724fe6fb4a289c62ac016_rle_crop_3726445293_0.png.png imagette216394121742811059/1742810923_916155_1346755686_7e8eaa68407e217d24c15beb9c1e24fc_rle_crop_3726451803_0.png.png imagette216394121742811059/1742810773_2825191_1346755421_b1aaad1fb72270818d17dcb5e734b8f1_rle_crop_3726448782_0.png.png imagette216394121742811059/1742810773_2825191_1346755416_eccc83a5159da199c83b930f3d299f0f_rle_crop_3726448795_0.png.png imagette216394121742811059/1742810923_916155_1346755696_6ae377a17c268771e4a3669a3dae08e5_rle_crop_3726451789_0.png.png imagette216394121742811059/1742810923_916155_1346755732_3e76860fd2f369fe3987633e372676c6_rle_crop_3726451778_0.png.png imagette216394121742811059/1742810801_912946_1346754754_23652d53578d6f2d9b3e2b175a0cb604_rle_crop_3726448050_0.png.png imagette216394121742811059/1742810801_912946_1346755082_101e46b0e182478fa327162b4966a3fb_rle_crop_3726447938_0.png.png imagette216394121742811059/1742810773_2825191_1346755416_eccc83a5159da199c83b930f3d299f0f_rle_crop_3726448788_0.png.png imagette216394121742811059/1742810801_912946_1346755340_21a88b83c813c88b36026cd474097070_rle_crop_3726447894_0.png.png imagette216394121742811059/1742810801_912946_1346754799_bc4e670e720b93c054444a6aa38d1f00_rle_crop_3726448040_0.png.png imagette216394121742811059/1742810691_2824144_1346755331_d410e7ed41f3909e0143bafad55966a7_rle_crop_3726444408_0.png.png imagette216394121742811059/1742810773_2825191_1346755400_a50dbaccedfde1e15111ef9490c40fa6_rle_crop_3726448831_0.png.png imagette216394121742811059/1742810891_2826308_1346755806_9e308277299c33e22e16e0e1c903d2dd_rle_crop_3726451025_0.png.png imagette216394121742811059/1742810923_916155_1346755741_b7cd83929d97df69af81564f64732531_rle_crop_3726451693_0.png.png imagette216394131742811060/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/261a58adcfb1098f5acd86bc1a464094_42111201.png imagette216394121742811059 21639413 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=21639413 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216394131742811060 21639415 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=21639415 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346755862: '1742810773_2825191_1346755421_b1aaad1fb72270818d17dcb5e734b8f1_rle_crop_3726448780_0.png'} change filename to text .imagette216394151742811060/ imagette216394151742811060/1742810773_2825191_1346755421_b1aaad1fb72270818d17dcb5e734b8f1_rle_crop_3726448780_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/615c5ce97ac7870673fb0fe5ee7f2f8f_7046601.png imagette216394151742811060 21639417 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=21639417 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346755753: '1742810691_2824144_1346755331_d410e7ed41f3909e0143bafad55966a7_rle_crop_3726444407_0.png', 1346755856: '1742810773_2825191_1346755406_3ee38961b5d095cd1902aebfc2041392_rle_crop_3726448812_0.png', 1346756249: '1742810923_916155_1346755813_5eba6c941ff072248b99def9758a2a9b_rle_crop_3726451534_0.png', 1346756250: '1742810923_916155_1346755732_3e76860fd2f369fe3987633e372676c6_rle_crop_3726451773_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/62cbab1786c4befdac8880e48e29c524_21844019.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/9c4d7b283b078a5f45e11e7e3fba0759_7155873.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/29db87f49816b627d85f86cd0661538b_22883789.png change filename to text .imagette216394171742811060/ imagette216394171742811060/1742810691_2824144_1346755331_d410e7ed41f3909e0143bafad55966a7_rle_crop_3726444407_0.png.png imagette216394171742811060/1742810773_2825191_1346755406_3ee38961b5d095cd1902aebfc2041392_rle_crop_3726448812_0.png.png imagette216394171742811060/1742810923_916155_1346755813_5eba6c941ff072248b99def9758a2a9b_rle_crop_3726451534_0.png.png imagette216394171742811060/1742810923_916155_1346755732_3e76860fd2f369fe3987633e372676c6_rle_crop_3726451773_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3e0b107217cfaad347ebdc01ff5d478f_88111333.png imagette216394171742811060 21639420 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=21639420 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346755897: '1742810801_912946_1346754754_23652d53578d6f2d9b3e2b175a0cb604_rle_crop_3726448056_0.png'} change filename to text .imagette216394201742811061/ imagette216394201742811061/1742810801_912946_1346754754_23652d53578d6f2d9b3e2b175a0cb604_rle_crop_3726448056_0.png.png imagette216394211742811061/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/92a1a334b5d203d29590d6f8f166781f_38921130.png imagette216394201742811061 21639421 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=21639421 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216394211742811061 21639410 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=21639410 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346755853: '1742810773_2825191_1346755426_d6fa9146ef2f354e338637968f30088d_rle_crop_3726448712_0.png', 1346756157: '1742810891_2826308_1346755810_7007431849acd60cab370df97f717a41_rle_crop_3726451002_0.png', 1346756243: '1742810923_916155_1346755813_5eba6c941ff072248b99def9758a2a9b_rle_crop_3726451539_0.png', 1346756244: '1742810923_916155_1346755732_3e76860fd2f369fe3987633e372676c6_rle_crop_3726451775_0.png', 1346756246: '1742810923_916155_1346755696_6ae377a17c268771e4a3669a3dae08e5_rle_crop_3726451785_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4ee7984ee0ea17b41b5cbfb55fa43b94_72712749.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/22a7a2a4ba7ca47b400d6d4ced1fcc14_28778213.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/1a02bcc75eacf450bab57ae73e849a2b_81690965.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/8e35cd03659cfbaf6fd030c781b8dc11_8701246.png change filename to text .imagette216394101742811061/ imagette216394101742811061/1742810923_916155_1346755732_3e76860fd2f369fe3987633e372676c6_rle_crop_3726451775_0.png.png imagette216394101742811061/1742810923_916155_1346755813_5eba6c941ff072248b99def9758a2a9b_rle_crop_3726451539_0.png.png imagette216394101742811061/1742810923_916155_1346755696_6ae377a17c268771e4a3669a3dae08e5_rle_crop_3726451785_0.png.png imagette216394101742811061/1742810773_2825191_1346755426_d6fa9146ef2f354e338637968f30088d_rle_crop_3726448712_0.png.png imagette216394101742811061/1742810891_2826308_1346755810_7007431849acd60cab370df97f717a41_rle_crop_3726451002_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/fe9c02ea311a559c2087f440d6781265_85929451.png imagette216394101742811061 21639414 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=21639414 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346755754: '1742810691_2824144_1346755331_d410e7ed41f3909e0143bafad55966a7_rle_crop_3726444412_0.png', 1346755858: '1742810773_2825191_1346755400_a50dbaccedfde1e15111ef9490c40fa6_rle_crop_3726448828_0.png', 1346755859: '1742810773_2825191_1346755400_a50dbaccedfde1e15111ef9490c40fa6_rle_crop_3726448824_0.png', 1346755860: '1742810773_2825191_1346755400_a50dbaccedfde1e15111ef9490c40fa6_rle_crop_3726448826_0.png', 1346755894: '1742810801_912946_1346755082_101e46b0e182478fa327162b4966a3fb_rle_crop_3726447945_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c174767fca601e2d3750f0d70a9773c4_39020535.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/8820965d70a25740cd85ff3baa35cb28_70238755.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ea1211a908fd69bf1b557756f6542293_90249681.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/73a7b75c54dda13280047081d3614f48_43243248.png change filename to text .imagette216394141742811061/ imagette216394141742811061/1742810691_2824144_1346755331_d410e7ed41f3909e0143bafad55966a7_rle_crop_3726444412_0.png.png imagette216394141742811061/1742810773_2825191_1346755400_a50dbaccedfde1e15111ef9490c40fa6_rle_crop_3726448826_0.png.png imagette216394141742811061/1742810801_912946_1346755082_101e46b0e182478fa327162b4966a3fb_rle_crop_3726447945_0.png.png imagette216394141742811061/1742810773_2825191_1346755400_a50dbaccedfde1e15111ef9490c40fa6_rle_crop_3726448828_0.png.png imagette216394141742811061/1742810773_2825191_1346755400_a50dbaccedfde1e15111ef9490c40fa6_rle_crop_3726448824_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4d1df2529a511c19ff97198cef32a91b_57218437.png imagette216394141742811061 21639416 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=21639416 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346755845: '1742810773_2825191_1346755421_b1aaad1fb72270818d17dcb5e734b8f1_rle_crop_3726448778_0.png', 1346755878: '1742810801_912946_1346755340_21a88b83c813c88b36026cd474097070_rle_crop_3726447893_0.png', 1346755879: '1742810801_912946_1346755082_101e46b0e182478fa327162b4966a3fb_rle_crop_3726447946_0.png', 1346755880: '1742810801_912946_1346755082_101e46b0e182478fa327162b4966a3fb_rle_crop_3726447948_0.png', 1346755882: '1742810801_912946_1346755082_101e46b0e182478fa327162b4966a3fb_rle_crop_3726447943_0.png', 1346755883: '1742810801_912946_1346754934_f4c3354fc98a4a923dfaf41307e03c2a_rle_crop_3726448023_0.png', 1346755884: '1742810801_912946_1346754799_bc4e670e720b93c054444a6aa38d1f00_rle_crop_3726448045_0.png', 1346756233: '1742810923_916155_1346755732_3e76860fd2f369fe3987633e372676c6_rle_crop_3726451776_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ebec67c86e8c7a4f20ac55cecc9b268d_38477976.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5ef6d1994f44556cf860d4a251a79ed5_92741065.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3a06e2e2085456c29a13f03660f6ee9d_3122541.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4a2e56c63ff22b251f4347a06f60e22e_70717640.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c316942e6f09259a26342128d85cd221_38595504.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7e93009f4beccf4afe0495cd735e5017_7302032.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f4966652f1efa9e1ef685825ee43a27c_19200199.png change filename to text .imagette216394161742811061/ imagette216394161742811061/1742810801_912946_1346755082_101e46b0e182478fa327162b4966a3fb_rle_crop_3726447948_0.png.png imagette216394161742811061/1742810801_912946_1346754934_f4c3354fc98a4a923dfaf41307e03c2a_rle_crop_3726448023_0.png.png imagette216394161742811061/1742810923_916155_1346755732_3e76860fd2f369fe3987633e372676c6_rle_crop_3726451776_0.png.png imagette216394161742811061/1742810801_912946_1346755340_21a88b83c813c88b36026cd474097070_rle_crop_3726447893_0.png.png imagette216394161742811061/1742810801_912946_1346755082_101e46b0e182478fa327162b4966a3fb_rle_crop_3726447946_0.png.png imagette216394161742811061/1742810801_912946_1346755082_101e46b0e182478fa327162b4966a3fb_rle_crop_3726447943_0.png.png imagette216394161742811061/1742810773_2825191_1346755421_b1aaad1fb72270818d17dcb5e734b8f1_rle_crop_3726448778_0.png.png imagette216394161742811061/1742810801_912946_1346754799_bc4e670e720b93c054444a6aa38d1f00_rle_crop_3726448045_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ebe4f2bcba0dcdbe1dd60de95523fb12_24795076.png imagette216394161742811061 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21639313 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21639422,21639423,21639424,21639425,21639426,21639427,21639428,21639429,21639430,21639431,21639432,21639433?tags=Carton_gris,kraft,autre_refus,mal_croppe,Carton_brun,plastique,Teint_Dans_La_Masse,cartonnette,papier,environnement,metal,flou your option no_mail is active, we will not send the real mail to your client args[1346756417] : ('0.05932888483426164',) no score found for photo 1346756417 We are sending mail with results at report@fotonower.com args[1346756412] : ('0.05932888483426164',) no score found for photo 1346756412 We are sending mail with results at report@fotonower.com args[1346756328] : ('0.05932888483426164',) no score found for photo 1346756328 We are sending mail with results at report@fotonower.com args[1346756248] : ('0.05932888483426164',) no score found for photo 1346756248 We are sending mail with results at report@fotonower.com args[1346756235] : ('0.05932888483426164',) no score found for photo 1346756235 We are sending mail with results at report@fotonower.com args[1346756226] : ('0.05932888483426164',) no score found for photo 1346756226 We are sending mail with results at report@fotonower.com args[1346756199] : ('0.05932888483426164',) no score found for photo 1346756199 We are sending mail with results at report@fotonower.com args[1346756102] : ('0.05932888483426164',) no score found for photo 1346756102 We are sending mail with results at report@fotonower.com args[1346756096] : ('0.05932888483426164',) no score found for photo 1346756096 We are sending mail with results at report@fotonower.com args[1346756085] : ('0.05932888483426164',) no score found for photo 1346756085 We are sending mail with results at report@fotonower.com args[1346756029] : ('0.05932888483426164',) no score found for photo 1346756029 We are sending mail with results at report@fotonower.com args[1346755954] : ('0.05932888483426164',) no score found for photo 1346755954 We are sending mail with results at report@fotonower.com args[1346755922] : ('0.05932888483426164',) no score found for photo 1346755922 We are sending mail with results at report@fotonower.com refus_total : 0.05932888483426164 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=21639313 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_P21639313_24-03-2025_11_10_59.pdf results_Auto_P21639313_24-03-2025_11_10_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21639313_24-03-2025_11_10_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','21639313','results_Auto_P21639313_24-03-2025_11_10_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21639313_24-03-2025_11_10_59.pdf','pdf','','0.25','0.05932888483426164') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21639313]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1346756417, 1346756412, 1346756328, 1346756248, 1346756235, 1346756226, 1346756199, 1346756102, 1346756096, 1346756085, 1346756029, 1346755954, 1346755922] map_info['map_portfolio_photo'] : {21639313: [1346756417, 1346756412, 1346756328, 1346756248, 1346756235, 1346756226, 1346756199, 1346756102, 1346756096, 1346756085, 1346756029, 1346755954, 1346755922, 1346755895, 1346755885, 1346755874, 1346755869, 1346755864, 1346755854, 1346755813, 1346755810, 1346755806, 1346755794, 1346755744, 1346755741, 1346755732, 1346755696, 1346755686, 1346755446, 1346755426, 1346755421, 1346755416, 1346755406, 1346755400, 1346755340, 1346755331, 1346755319, 1346755306, 1346755082, 1346754934, 1346754799, 1346754754]} final : False mtd_id 4302 list_pids : [1346756417, 1346756412, 1346756328, 1346756248, 1346756235, 1346756226, 1346756199, 1346756102, 1346756096, 1346756085, 1346756029, 1346755954, 1346755922] 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, '2684873') ('4302', '21639313', '1346756417', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756412', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756328', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756248', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756235', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756226', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756199', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756102', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756096', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756085', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756029', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346755954', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346755922', None, None, None, None, None, '2684873') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '21639313', '1346756417', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756412', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756328', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756248', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756235', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756226', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756199', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756102', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756096', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756085', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756029', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346755954', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346755922', None, None, None, None, None, '2684873')] time used for this insertion : 0.01347804069519043 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.608189582824707 time spend to save output : 0.013731002807617188 total time spend for step 4 : 4.621920585632324 step5:split_time_score Mon Mar 24 11:11: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 : ['21639313'] 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 : [('21639313',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21639313) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1346756417: {'path': 'temp/1742811059_3939770_1346756417_f86481272e13110685892635cf55b62f.jpg', 'extension': 'jpg'}, 1346756199: {'path': 'temp/1742811059_3939770_1346756199_32d604cb4e76712a03fa3013be88dfb7.jpg', 'extension': 'jpg'}, 1346756226: {'path': 'temp/1742811059_3939770_1346756226_83c088b29fe3b5ce1fb523ef5dc27275.jpg', 'extension': 'jpg'}, 1346756235: {'path': 'temp/1742811059_3939770_1346756235_522f103fadae8e809ba9b3a365282f31.jpg', 'extension': 'jpg'}, 1346756248: {'path': 'temp/1742811059_3939770_1346756248_dedc9ca26066c5cada07d672ba03652d.jpg', 'extension': 'jpg'}, 1346756328: {'path': 'temp/1742811059_3939770_1346756328_9bdb49bd756af268094cae03318da4d8.jpg', 'extension': 'jpg'}, 1346756412: {'path': 'temp/1742811059_3939770_1346756412_dea53e0b03ee57962f8821814a4444c4.jpg', 'extension': 'jpg'}, 1346755922: {'path': 'temp/1742811059_3939770_1346755922_2645b03272b699a0f51d5dc41addfd48.jpg', 'extension': 'jpg'}, 1346755954: {'path': 'temp/1742811059_3939770_1346755954_6fa725c013221d7b60080f1135fb40a2.jpg', 'extension': 'jpg'}, 1346756029: {'path': 'temp/1742811059_3939770_1346756029_7ca39bda620f3443a4e3ebb7afd9e0da.jpg', 'extension': 'jpg'}, 1346756085: {'path': 'temp/1742811059_3939770_1346756085_ddd480a025654c603504e445d4945f15.jpg', 'extension': 'jpg'}, 1346756096: {'path': 'temp/1742811059_3939770_1346756096_ffd6ba2ee910c5393d6ebcd58d35f159.jpg', 'extension': 'jpg'}, 1346756102: {'path': 'temp/1742811059_3939770_1346756102_8f83e41d6c02be8c20eb0b4fa263aef0.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 = 21639313; (('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 = 21639313 group by h (('11', 42),) 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=21639313 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 (21639313) 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 (21639313) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24032025 21639313 Nombre de photos uploadées : 42 / 23040 (0%) 24032025 21639313 Nombre de photos taguées (types de déchets): 0 / 42 (0%) 24032025 21639313 Nombre de photos taguées (volume) : 0 / 42 (0%) [{'photo_id': 1346755082, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/101e46b0e182478fa327162b4966a3fb.jpg', 'username': None, 'uploaded_at': 1742810529, 'text': 'image_24032025_11_00_14_010195m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1346754934, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f4c3354fc98a4a923dfaf41307e03c2a.jpg', 'username': None, 'uploaded_at': 1742810529, 'text': 'image_24032025_11_00_24_010142m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1346754799, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/bc4e670e720b93c054444a6aa38d1f00.jpg', 'username': None, 'uploaded_at': 1742810529, 'text': 'image_24032025_11_00_34_010143m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1346754754, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/23652d53578d6f2d9b3e2b175a0cb604.jpg', 'username': None, 'uploaded_at': 1742810529, 'text': 'image_24032025_11_00_44_010138m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ?????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001848459243774414 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21639313, '2025-03-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1682789,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022101640701293945 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= 1682789 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1682789, 'dashboard_run_id': 1691091, 'mtr_portfolio_id': 21637132, 'dashboard_result_id': 9573087, '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_P21637132_24-03-2025_10_34_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21637170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21637171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21637172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21637173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21637174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21637175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21637176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21637177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21637178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21637179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21637180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21637181, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1691091, 'mtr_portfolio_id': 21637837, 'dashboard_result_id': 9573089, '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_P21637837_24-03-2025_10_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21637838, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21637839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21637840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21637841, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21637842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21637843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21637844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21637845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21637846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21637847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21637848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21637849, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1691091, 'mtr_portfolio_id': 21638619, 'dashboard_result_id': 9573090, '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_P21638619_24-03-2025_11_05_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21638620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21638621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21638622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21638623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21638624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21638625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21638626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21638627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21638628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21638629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21638630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21638631, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1691091, 'mtr_portfolio_id': 21639313, 'dashboard_result_id': 9573091, '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_P21639313_24-03-2025_11_07_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21639410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21639411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21639412, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21639413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21639414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21639415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21639416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21639417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21639418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21639419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21639420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21639421, '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 = 21637132 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': 2684697, 'mtr_portfolio_id': 21637132, 'created_at': datetime.datetime(2025, 3, 24, 10, 34, 58), 'result': '0.07509295122764567', 'result_long': None, 'result_double': None}] Qualite : 0.07509295122764567 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21637132 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21637132_24-03-2025_10_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21637132 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_P21637132_24-03-2025_10_34_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21637170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21637171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21637172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21637173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21637174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21637175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21637176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21637177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21637178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21637179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21637180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21637181, 'pht': 3726}}" where mtr_portfolio_id = 21637132 and dashboard_run_id = 1691091 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`=21637132 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9573087, 0.07509295122764567, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21637132_24-03-2025_10_34_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21637170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21637171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21637172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21637173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21637174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21637175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21637176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21637177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21637178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21637179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21637180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21637181, '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 = 21637837 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': 2684755, 'mtr_portfolio_id': 21637837, 'created_at': datetime.datetime(2025, 3, 24, 10, 48, 59), 'result': '0.07705891919244472', 'result_long': None, 'result_double': None}] Qualite : 0.07705891919244472 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21637837 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21637837_24-03-2025_10_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21637837 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_P21637837_24-03-2025_10_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21637838, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21637839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21637840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21637841, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21637842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21637843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21637844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21637845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21637846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21637847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21637848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21637849, 'pht': 3726}}" where mtr_portfolio_id = 21637837 and dashboard_run_id = 1691091 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`=21637837 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9573089, 0.07705891919244472, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21637837_24-03-2025_10_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21637838, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21637839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21637840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21637841, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21637842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21637843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21637844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21637845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21637846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21637847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21637848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21637849, '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 = 21638619 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': 2684803, 'mtr_portfolio_id': 21638619, 'created_at': datetime.datetime(2025, 3, 24, 11, 5), 'result': '0.08947101264544254', 'result_long': None, 'result_double': None}] Qualite : 0.08947101264544254 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21638619 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21638619_24-03-2025_11_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21638619 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_P21638619_24-03-2025_11_05_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21638620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21638621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21638622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21638623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21638624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21638625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21638626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21638627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21638628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21638629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21638630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21638631, 'pht': 3726}}" where mtr_portfolio_id = 21638619 and dashboard_run_id = 1691091 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`=21638619 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9573090, 0.08947101264544254, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21638619_24-03-2025_11_05_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21638620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21638621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21638622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21638623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21638624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21638625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21638626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21638627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21638628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21638629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21638630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21638631, '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 = 21639313 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': 2684873, 'mtr_portfolio_id': 21639313, 'created_at': datetime.datetime(2025, 3, 24, 11, 10, 58), 'result': '0.05932888483426164', 'result_long': None, 'result_double': None}] Qualite : 0.05932888483426164 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21639313 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21639313_24-03-2025_11_10_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21639313 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_P21639313_24-03-2025_11_10_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21639410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21639411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21639412, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21639413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21639414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21639415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21639416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21639417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21639418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21639419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21639420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21639421, 'pht': 3726}}" where mtr_portfolio_id = 21639313 and dashboard_run_id = 1691091 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`=21639313 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9573091, 0.05932888483426164, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21639313_24-03-2025_11_10_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21639410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21639411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21639412, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21639413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21639414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21639415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21639416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21639417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21639418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21639419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21639420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21639421, '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 (21637132,21637837,21638619,21639313) result : ((1346746829,), (1346746833,), (1346746836,), (1346746840,), (1346746911,), (1346746920,), (1346746923,), (1346746931,), (1346746941,), (1346746952,), (1346746980,), (1346746985,), (1346746997,), (1346747017,), (1346747093,), (1346747096,), (1346747100,), (1346747104,), (1346747114,), (1346747176,), (1346747178,), (1346747181,), (1346747184,), (1346747189,), (1346747241,), (1346747245,), (1346747252,), (1346747334,), (1346747344,), (1346747354,), (1346747367,), (1346747404,), (1346747580,), (1346747585,), (1346747590,), (1346747594,), (1346747601,), (1346747764,), (1346747766,), (1346747788,), (1346747841,), (1346747849,), (1346747856,), (1346747859,), (1346747866,), (1346747870,), (1346747909,), (1346747954,), (1346747964,), (1346747998,), (1346748010,), (1346748073,), (1346748078,), (1346748082,), (1346748173,), (1346748178,), (1346748183,), (1346748190,), (1346748205,), (1346748214,), (1346748378,), (1346748383,), (1346748387,), (1346748390,), (1346748396,), (1346748399,), (1346748435,), (1346748439,), (1346748444,), (1346748544,), (1346748505,), (1346748510,), (1346748514,), (1346748527,), (1346748692,), (1346748697,), (1346748705,), (1346748720,), (1346748732,), (1346748735,), (1346748784,), (1346748788,), (1346748792,), (1346748794,), (1346748850,), (1346748853,), (1346748856,), (1346748858,), (1346748865,), (1346748870,), (1346748950,), (1346748958,), (1346748962,), (1346748967,), (1346748973,), (1346748988,), (1346749045,), (1346749051,), (1346749054,), (1346749168,), (1346749185,), (1346749208,), (1346749244,), (1346749440,), (1346749445,), (1346749455,), (1346749461,), (1346749468,), (1346749524,), (1346749537,), (1346749545,), (1346749726,), (1346749750,), (1346749765,), (1346749825,), (1346749828,), (1346749832,), (1346749840,), (1346749852,), (1346749860,), (1346749918,), (1346749921,), (1346749926,), (1346749937,), (1346749944,), (1346750042,), (1346750045,), (1346750048,), (1346750061,), (1346750090,), (1346750225,), (1346750239,), (1346750245,), (1346750398,), (1346750401,), (1346750404,), (1346750408,), (1346750786,), (1346750714,), (1346750728,), (1346750735,), (1346750738,), (1346750912,), (1346750927,), (1346750962,), (1346750969,), (1346751005,), (1346751013,), (1346751017,), (1346751060,), (1346751075,), (1346751256,), (1346751268,), (1346751276,), (1346751280,), (1346751445,), (1346751448,), (1346751451,), (1346751453,), (1346751510,), (1346751513,), (1346751516,), (1346751518,), (1346751523,), (1346751674,), (1346751731,), (1346751737,), (1346751747,), (1346751941,), (1346751945,), (1346751949,), (1346751952,), (1346752134,), (1346752143,), (1346752154,), (1346752167,), (1346752182,), (1346752188,), (1346752267,), (1346752278,), (1346752294,), (1346752308,), (1346752339,), (1346752352,), (1346752370,), (1346752372,), (1346752522,), (1346752527,), (1346752566,), (1346752613,), (1346753170,), (1346753240,), (1346753305,), (1346753384,), (1346753466,), (1346754441,), (1346754475,), (1346754525,), (1346755113,), (1346754754,), (1346754799,), (1346754934,), (1346755082,), (1346755306,), (1346755319,), (1346755331,), (1346755340,), (1346755400,), (1346755406,), (1346755416,), (1346755421,), (1346755426,), (1346755446,), (1346755686,), (1346755696,), (1346755732,), (1346755741,), (1346755744,), (1346755794,), (1346755806,), (1346755810,), (1346755813,), (1346755854,), (1346755864,), (1346755869,), (1346755874,), (1346755885,), (1346755895,), (1346755922,), (1346755954,), (1346756029,), (1346756085,), (1346756096,), (1346756102,), (1346756199,), (1346756226,), (1346756235,), (1346756248,), (1346756328,), (1346756412,), (1346756417,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24032025': {'nb_upload': 42, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21639313]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1346756417, 1346756412, 1346756328, 1346756248, 1346756235, 1346756226, 1346756199, 1346756102, 1346756096, 1346756085, 1346756029, 1346755954, 1346755922] map_info['map_portfolio_photo'] : {21639313: [1346756417, 1346756412, 1346756328, 1346756248, 1346756235, 1346756226, 1346756199, 1346756102, 1346756096, 1346756085, 1346756029, 1346755954, 1346755922, 1346755895, 1346755885, 1346755874, 1346755869, 1346755864, 1346755854, 1346755813, 1346755810, 1346755806, 1346755794, 1346755744, 1346755741, 1346755732, 1346755696, 1346755686, 1346755446, 1346755426, 1346755421, 1346755416, 1346755406, 1346755400, 1346755340, 1346755331, 1346755319, 1346755306, 1346755082, 1346754934, 1346754799, 1346754754]} final : True mtd_id 4302 list_pids : [1346756417, 1346756412, 1346756328, 1346756248, 1346756235, 1346756226, 1346756199, 1346756102, 1346756096, 1346756085, 1346756029, 1346755954, 1346755922] Looping around the photos to save general results len do output : 1 /21639313Didn'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, '2684873') ('4302', '21639313', '1346756417', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756412', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756328', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756248', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756235', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756226', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756199', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756102', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756096', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756085', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346756029', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346755954', None, None, None, None, None, '2684873') ('4302', None, None, None, None, None, None, None, '2684873') ('4302', '21639313', '1346755922', None, None, None, None, None, '2684873') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21639313', 'None', None, None, None, None, '2684873'), ('4302', '21639313', '1346756417', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756412', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756328', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756248', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756235', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756226', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756199', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756102', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756096', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756085', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346756029', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346755954', None, None, None, None, None, '2684873'), ('4302', '21639313', '1346755922', None, None, None, None, None, '2684873')] time used for this insertion : 0.013051748275756836 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3325154781341553 time spend to save output : 0.013250350952148438 total time spend for step 5 : 0.3457658290863037 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 (2684873) 2.07user 2.46system 0:09.21elapsed 49%CPU (0avgtext+0avgdata 161392maxresident)k 5000inputs+14936outputs (81major+64256minor)pagefaults 0swaps