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 : 3452558 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 (2611633) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2611633) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20788531 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2611633'] with mtr_portfolio_ids : ['20788531'] and first list_photo_ids : [] new path : /proc/3452558/ Name: python3 Umask: 0002 State: R (running) Tgid: 3452558 Ngid: 0 Pid: 3452558 PPid: 3452557 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3452558 NSpid: 3452558 NSpgid: 3450622 NSsid: 3450622 VmPeak: 1106852 kB VmSize: 1106852 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100292 kB VmRSS: 100292 kB RssAnon: 59756 kB RssFile: 40536 kB RssShmem: 0 kB VmData: 865600 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/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: 85 nonvoluntary_ctxt_switches: 180 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3452558', 'Ngid': '0', 'Pid': '3452558', 'PPid': '3452557', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3452558', 'NSpid': '3452558', 'NSpgid': '3450622', 'NSsid': '3450622', 'VmPeak': '1106852 kB', 'VmSize': '1106852 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100292 kB', 'VmRSS': '100292 kB', 'RssAnon': '59756 kB', 'RssFile': '40536 kB', 'RssShmem': '0 kB', 'VmData': '865600 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/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': '85', 'nonvoluntary_ctxt_switches': '180'} ('datou_batch_current', '3452558', '1106852', '0', '1106852', '865600', '100292', b'', 'marlene', '2611633') 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 (20788531) 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 (2611633 ) ) 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 (20788531) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339498551, 'portfolio_id': 20788531}, {'photo_id': 1339498548, 'portfolio_id': 20788531}, {'photo_id': 1339498544, 'portfolio_id': 20788531}, {'photo_id': 1339498539, 'portfolio_id': 20788531}, {'photo_id': 1339498533, 'portfolio_id': 20788531}, {'photo_id': 1339498510, 'portfolio_id': 20788531}, {'photo_id': 1339498507, 'portfolio_id': 20788531}, {'photo_id': 1339498503, 'portfolio_id': 20788531}, {'photo_id': 1339498500, 'portfolio_id': 20788531}, {'photo_id': 1339498497, 'portfolio_id': 20788531}, {'photo_id': 1339498472, 'portfolio_id': 20788531}, {'photo_id': 1339498469, 'portfolio_id': 20788531}, {'photo_id': 1339498466, 'portfolio_id': 20788531}, {'photo_id': 1339498463, 'portfolio_id': 20788531}, {'photo_id': 1339498459, 'portfolio_id': 20788531}, {'photo_id': 1339498415, 'portfolio_id': 20788531}, {'photo_id': 1339498412, 'portfolio_id': 20788531}, {'photo_id': 1339498409, 'portfolio_id': 20788531}, {'photo_id': 1339498404, 'portfolio_id': 20788531}, {'photo_id': 1339498398, 'portfolio_id': 20788531}, {'photo_id': 1339498390, 'portfolio_id': 20788531}, {'photo_id': 1339498374, 'portfolio_id': 20788531}, {'photo_id': 1339498371, 'portfolio_id': 20788531}, {'photo_id': 1339498368, 'portfolio_id': 20788531}, {'photo_id': 1339498360, 'portfolio_id': 20788531}, {'photo_id': 1339498302, 'portfolio_id': 20788531}, {'photo_id': 1339498226, 'portfolio_id': 20788531}, {'photo_id': 1339498199, 'portfolio_id': 20788531}] map_portfolio_id_photo_id: {20788531: [1339498551, 1339498548, 1339498544, 1339498539, 1339498533, 1339498510, 1339498507, 1339498503, 1339498500, 1339498497, 1339498472, 1339498469, 1339498466, 1339498463, 1339498459, 1339498415, 1339498412, 1339498409, 1339498404, 1339498398, 1339498390, 1339498374, 1339498371, 1339498368, 1339498360, 1339498302, 1339498226, 1339498199]} ##### 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.014383316040039062 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Feb 25 05:52: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 (20788531) 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 : 20788531 get user id for portfolio 20788531 get sub ptf for main ptf 20788531, type 3726 and hashtags ['cartonnette', 'mal_croppe', 'environnement', 'Carton_gris', 'papier', 'Carton_brun', 'flou', 'kraft', 'plastique', 'autre_refus', 'Teint_Dans_La_Masse', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20788531 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','mal_croppe','environnement','Carton_gris','papier','Carton_brun','flou','kraft','plastique','autre_refus','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20788531 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','mal_croppe','environnement','Carton_gris','papier','Carton_brun','flou','kraft','plastique','autre_refus','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 20788531, 'sub_port_id': 20788534, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427275, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 50, 59)}, 'plastique': {'main_port_id': 20788531, 'sub_port_id': 20788535, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427276, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 50, 59)}, 'flou': {'main_port_id': 20788531, 'sub_port_id': 20788536, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427277, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 50, 59)}, 'mal_croppe': {'main_port_id': 20788531, 'sub_port_id': 20788537, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427278, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 50, 59)}, 'papier': {'main_port_id': 20788531, 'sub_port_id': 20788538, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427279, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 50, 59)}, 'Carton_gris': {'main_port_id': 20788531, 'sub_port_id': 20788539, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427280, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 50, 59)}, 'Carton_brun': {'main_port_id': 20788531, 'sub_port_id': 20788540, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427281, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 50, 59)}, 'kraft': {'main_port_id': 20788531, 'sub_port_id': 20788541, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427282, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 50, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20788531, 'sub_port_id': 20788542, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427283, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 50, 59)}, 'metal': {'main_port_id': 20788531, 'sub_port_id': 20788543, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427284, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 50, 59)}, 'cartonnette': {'main_port_id': 20788531, 'sub_port_id': 20788544, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427285, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 50, 59)}, 'autre_refus': {'main_port_id': 20788531, 'sub_port_id': 20788545, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427286, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 50, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20788534 , 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=20788531 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 (20788534) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20788531) result : ((1339498199,), (1339498226,), (1339498302,), (1339498360,), (1339498368,), (1339498371,), (1339498374,), (1339498390,), (1339498398,), (1339498404,), (1339498409,), (1339498412,), (1339498415,), (1339498459,), (1339498463,), (1339498466,), (1339498469,), (1339498472,), (1339498497,), (1339498500,), (1339498503,), (1339498507,), (1339498510,), (1339498533,), (1339498539,), (1339498544,), (1339498548,), (1339498551,)) 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 (1339498500) 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 20788535 , 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=20788531 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 (20788535) result : ((1339498609,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20788531) result : ((1339498199,), (1339498226,), (1339498302,), (1339498360,), (1339498368,), (1339498371,), (1339498374,), (1339498390,), (1339498398,), (1339498404,), (1339498409,), (1339498412,), (1339498415,), (1339498459,), (1339498463,), (1339498466,), (1339498469,), (1339498472,), (1339498497,), (1339498500,), (1339498503,), (1339498507,), (1339498510,), (1339498533,), (1339498539,), (1339498544,), (1339498548,), (1339498551,)) 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 (1339498500) 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 20788536 , 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=20788531 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 (20788536) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20788531) result : ((1339498199,), (1339498226,), (1339498302,), (1339498360,), (1339498368,), (1339498371,), (1339498374,), (1339498390,), (1339498398,), (1339498404,), (1339498409,), (1339498412,), (1339498415,), (1339498459,), (1339498463,), (1339498466,), (1339498469,), (1339498472,), (1339498497,), (1339498500,), (1339498503,), (1339498507,), (1339498510,), (1339498533,), (1339498539,), (1339498544,), (1339498548,), (1339498551,)) 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 (1339498500) 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 20788537 , 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=20788531 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 (20788537) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20788531) result : ((1339498199,), (1339498226,), (1339498302,), (1339498360,), (1339498368,), (1339498371,), (1339498374,), (1339498390,), (1339498398,), (1339498404,), (1339498409,), (1339498412,), (1339498415,), (1339498459,), (1339498463,), (1339498466,), (1339498469,), (1339498472,), (1339498497,), (1339498500,), (1339498503,), (1339498507,), (1339498510,), (1339498533,), (1339498539,), (1339498544,), (1339498548,), (1339498551,)) 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 (1339498500) 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 20788538 , 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=20788531 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 (20788538) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20788531) result : ((1339498199,), (1339498226,), (1339498302,), (1339498360,), (1339498368,), (1339498371,), (1339498374,), (1339498390,), (1339498398,), (1339498404,), (1339498409,), (1339498412,), (1339498415,), (1339498459,), (1339498463,), (1339498466,), (1339498469,), (1339498472,), (1339498497,), (1339498500,), (1339498503,), (1339498507,), (1339498510,), (1339498533,), (1339498539,), (1339498544,), (1339498548,), (1339498551,)) 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 (1339498500) 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 20788539 , 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=20788531 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 (20788539) result : ((1339498455,), (1339498603,), (1339498606,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20788531) result : ((1339498199,), (1339498226,), (1339498302,), (1339498360,), (1339498368,), (1339498371,), (1339498374,), (1339498390,), (1339498398,), (1339498404,), (1339498409,), (1339498412,), (1339498415,), (1339498459,), (1339498463,), (1339498466,), (1339498469,), (1339498472,), (1339498497,), (1339498500,), (1339498503,), (1339498507,), (1339498510,), (1339498533,), (1339498539,), (1339498544,), (1339498548,), (1339498551,)) 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 (1339498500) 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 20788540 , 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=20788531 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 (20788540) result : ((1339498457,), (1339498607,), (1339498610,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20788531) result : ((1339498199,), (1339498226,), (1339498302,), (1339498360,), (1339498368,), (1339498371,), (1339498374,), (1339498390,), (1339498398,), (1339498404,), (1339498409,), (1339498412,), (1339498415,), (1339498459,), (1339498463,), (1339498466,), (1339498469,), (1339498472,), (1339498497,), (1339498500,), (1339498503,), (1339498507,), (1339498510,), (1339498533,), (1339498539,), (1339498544,), (1339498548,), (1339498551,)) 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 (1339498500) 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 20788541 , 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=20788531 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 (20788541) result : ((1339498611,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20788531) result : ((1339498199,), (1339498226,), (1339498302,), (1339498360,), (1339498368,), (1339498371,), (1339498374,), (1339498390,), (1339498398,), (1339498404,), (1339498409,), (1339498412,), (1339498415,), (1339498459,), (1339498463,), (1339498466,), (1339498469,), (1339498472,), (1339498497,), (1339498500,), (1339498503,), (1339498507,), (1339498510,), (1339498533,), (1339498539,), (1339498544,), (1339498548,), (1339498551,)) 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 (1339498500) 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 20788542 , 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=20788531 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 (20788542) result : ((1339498454,), (1339498599,), (1339498600,), (1339498604,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20788531) result : ((1339498199,), (1339498226,), (1339498302,), (1339498360,), (1339498368,), (1339498371,), (1339498374,), (1339498390,), (1339498398,), (1339498404,), (1339498409,), (1339498412,), (1339498415,), (1339498459,), (1339498463,), (1339498466,), (1339498469,), (1339498472,), (1339498497,), (1339498500,), (1339498503,), (1339498507,), (1339498510,), (1339498533,), (1339498539,), (1339498544,), (1339498548,), (1339498551,)) 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 (1339498500) 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 20788543 , 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=20788531 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 (20788543) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20788531) result : ((1339498199,), (1339498226,), (1339498302,), (1339498360,), (1339498368,), (1339498371,), (1339498374,), (1339498390,), (1339498398,), (1339498404,), (1339498409,), (1339498412,), (1339498415,), (1339498459,), (1339498463,), (1339498466,), (1339498469,), (1339498472,), (1339498497,), (1339498500,), (1339498503,), (1339498507,), (1339498510,), (1339498533,), (1339498539,), (1339498544,), (1339498548,), (1339498551,)) 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 (1339498500) 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 20788544 , 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=20788531 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 (20788544) result : ((1339498605,), (1339498608,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20788531) result : ((1339498199,), (1339498226,), (1339498302,), (1339498360,), (1339498368,), (1339498371,), (1339498374,), (1339498390,), (1339498398,), (1339498404,), (1339498409,), (1339498412,), (1339498415,), (1339498459,), (1339498463,), (1339498466,), (1339498469,), (1339498472,), (1339498497,), (1339498500,), (1339498503,), (1339498507,), (1339498510,), (1339498533,), (1339498539,), (1339498544,), (1339498548,), (1339498551,)) 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 (1339498500) 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 20788545 , 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=20788531 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 (20788545) result : ((1339498601,), (1339498602,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20788531) result : ((1339498199,), (1339498226,), (1339498302,), (1339498360,), (1339498368,), (1339498371,), (1339498374,), (1339498390,), (1339498398,), (1339498404,), (1339498409,), (1339498412,), (1339498415,), (1339498459,), (1339498463,), (1339498466,), (1339498469,), (1339498472,), (1339498497,), (1339498500,), (1339498503,), (1339498507,), (1339498510,), (1339498533,), (1339498539,), (1339498544,), (1339498548,), (1339498551,)) 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 (1339498500) 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`=20788531 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','mal_croppe','environnement','Carton_gris','papier','Carton_brun','flou','kraft','plastique','autre_refus','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20788531 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','mal_croppe','environnement','Carton_gris','papier','Carton_brun','flou','kraft','plastique','autre_refus','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 20788531, 'sub_port_id': 20788546, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427287, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 51)}, 'plastique': {'main_port_id': 20788531, 'sub_port_id': 20788547, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427288, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 51)}, 'flou': {'main_port_id': 20788531, 'sub_port_id': 20788548, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427289, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 51)}, 'mal_croppe': {'main_port_id': 20788531, 'sub_port_id': 20788549, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427290, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 51)}, 'papier': {'main_port_id': 20788531, 'sub_port_id': 20788550, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427291, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 51)}, 'Carton_gris': {'main_port_id': 20788531, 'sub_port_id': 20788551, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427292, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 51)}, 'Carton_brun': {'main_port_id': 20788531, 'sub_port_id': 20788552, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427293, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 51)}, 'kraft': {'main_port_id': 20788531, 'sub_port_id': 20788553, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427294, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 51)}, 'Teint_Dans_La_Masse': {'main_port_id': 20788531, 'sub_port_id': 20788554, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427295, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 51)}, 'metal': {'main_port_id': 20788531, 'sub_port_id': 20788555, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427296, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 51)}, 'cartonnette': {'main_port_id': 20788531, 'sub_port_id': 20788556, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427297, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 51)}, 'autre_refus': {'main_port_id': 20788531, 'sub_port_id': 20788557, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13427298, 'last_updated_at': datetime.datetime(2025, 2, 25, 5, 51, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 5, 51, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 5, 51)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20788546,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20788534 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20788547,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20788535 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20788548,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20788536 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20788549,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20788537 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20788550,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20788538 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20788551,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20788539 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20788552,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20788540 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20788553,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20788541 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20788554,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20788542 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20788555,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20788543 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20788556,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20788544 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20788557,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20788545 lien utilise dans velours : https://www.fotonower.com/velours/20788546,20788547,20788548,20788549,20788550,20788551,20788552,20788553,20788554,20788555,20788556,20788557?tags=environnement,plastique,flou,mal_croppe,papier,Carton_gris,Carton_brun,kraft,Teint_Dans_La_Masse,metal,cartonnette,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20788531]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339498551, 1339498548, 1339498544, 1339498539, 1339498533, 1339498510, 1339498507, 1339498503, 1339498500, 1339498497] map_info['map_portfolio_photo'] : {20788531: [1339498551, 1339498548, 1339498544, 1339498539, 1339498533, 1339498510, 1339498507, 1339498503, 1339498500, 1339498497, 1339498472, 1339498469, 1339498466, 1339498463, 1339498459, 1339498415, 1339498412, 1339498409, 1339498404, 1339498398, 1339498390, 1339498374, 1339498371, 1339498368, 1339498360, 1339498302, 1339498226, 1339498199]} final : False mtd_id 4302 list_pids : [1339498551, 1339498548, 1339498544, 1339498539, 1339498533, 1339498510, 1339498507, 1339498503, 1339498500, 1339498497] Looping around the photos to save general results len do output : 1 /20788531. 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, '2611633') ('4302', '20788531', '1339498551', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498548', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498544', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498539', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498533', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498510', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498507', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498503', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498500', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498497', None, None, None, None, None, '2611633') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '20788531', "{'environnement': 20788534, 'plastique': 20788535, 'flou': 20788536, 'mal_croppe': 20788537, 'papier': 20788538, 'Carton_gris': 20788539, 'Carton_brun': 20788540, 'kraft': 20788541, 'Teint_Dans_La_Masse': 20788542, 'metal': 20788543, 'cartonnette': 20788544, 'autre_refus': 20788545}", None, None, None, None, '2611633'), ('4302', '20788531', '1339498551', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498548', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498544', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498539', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498533', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498510', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498507', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498503', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498500', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498497', None, None, None, None, None, '2611633')] time used for this insertion : 0.015720605850219727 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4676949977874756 time spend to save output : 0.016030550003051758 total time spend for step 1 : 0.48372554779052734 step2:final Tue Feb 25 05:52:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20788531) 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 20788531 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339498302,1339498226,1339498199,1339498374,1339498360,1339498371,1339498368,1339498415,1339498412,1339498409,1339498404,1339498398,1339498390,1339498472,1339498469,1339498466,1339498463,1339498459,1339498510,1339498507,1339498503,1339498500,1339498497,1339498551,1339498548,1339498544,1339498539,1339498533); 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([20788531]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ('0.027367802150795074',), 1339498533: ('0.027367802150795074',), 1339498510: ('0.027367802150795074',), 1339498507: ('0.027367802150795074',), 1339498503: ('0.027367802150795074',), 1339498500: ('0.027367802150795074',), 1339498497: ('0.027367802150795074',)} new output for save of step final : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ('0.027367802150795074',), 1339498533: ('0.027367802150795074',), 1339498510: ('0.027367802150795074',), 1339498507: ('0.027367802150795074',), 1339498503: ('0.027367802150795074',), 1339498500: ('0.027367802150795074',), 1339498497: ('0.027367802150795074',)} [1339498551, 1339498548, 1339498544, 1339498539, 1339498533, 1339498510, 1339498507, 1339498503, 1339498500, 1339498497] map_info['map_portfolio_photo'] : {20788531: [1339498551, 1339498548, 1339498544, 1339498539, 1339498533, 1339498510, 1339498507, 1339498503, 1339498500, 1339498497, 1339498472, 1339498469, 1339498466, 1339498463, 1339498459, 1339498415, 1339498412, 1339498409, 1339498404, 1339498398, 1339498390, 1339498374, 1339498371, 1339498368, 1339498360, 1339498302, 1339498226, 1339498199]} final : False mtd_id 4302 list_pids : [1339498551, 1339498548, 1339498544, 1339498539, 1339498533, 1339498510, 1339498507, 1339498503, 1339498500, 1339498497] Looping around the photos to save general results len do output : 10 /1339498551.Didn't retrieve data . /1339498548.Didn't retrieve data . /1339498544.Didn't retrieve data . /1339498539.Didn't retrieve data . /1339498533.Didn't retrieve data . /1339498510.Didn't retrieve data . /1339498507.Didn't retrieve data . /1339498503.Didn't retrieve data . /1339498500.Didn't retrieve data . /1339498497.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, '2611633') ('4302', '20788531', '1339498551', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498548', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498544', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498539', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498533', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498510', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498507', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498503', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498500', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498497', None, None, None, None, None, '2611633') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '20788531', '1339498551', '0.027367802150795074', None, None, None, None, '2611633'), ('4302', '20788531', '1339498548', '0.027367802150795074', None, None, None, None, '2611633'), ('4302', '20788531', '1339498544', '0.027367802150795074', None, None, None, None, '2611633'), ('4302', '20788531', '1339498539', '0.027367802150795074', None, None, None, None, '2611633'), ('4302', '20788531', '1339498533', '0.027367802150795074', None, None, None, None, '2611633'), ('4302', '20788531', '1339498510', '0.027367802150795074', None, None, None, None, '2611633'), ('4302', '20788531', '1339498507', '0.027367802150795074', None, None, None, None, '2611633'), ('4302', '20788531', '1339498503', '0.027367802150795074', None, None, None, None, '2611633'), ('4302', '20788531', '1339498500', '0.027367802150795074', None, None, None, None, '2611633'), ('4302', '20788531', '1339498497', '0.027367802150795074', None, None, None, None, '2611633')] time used for this insertion : 0.015607833862304688 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0690603256225586 time spend to save output : 0.01606464385986328 total time spend for step 2 : 0.08512496948242188 step3:velours_tree Tue Feb 25 05:52:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20788531: [{'environnement': 20788534, 'plastique': 20788535, 'flou': 20788536, 'mal_croppe': 20788537, 'papier': 20788538, 'Carton_gris': 20788539, 'Carton_brun': 20788540, 'kraft': 20788541, 'Teint_Dans_La_Masse': 20788542, 'metal': 20788543, 'cartonnette': 20788544, 'autre_refus': 20788545}]} input_args_next_step : {20788531: ()} output_args : {20788531: [{'environnement': 20788534, 'plastique': 20788535, 'flou': 20788536, 'mal_croppe': 20788537, 'papier': 20788538, 'Carton_gris': 20788539, 'Carton_brun': 20788540, 'kraft': 20788541, 'Teint_Dans_La_Masse': 20788542, 'metal': 20788543, 'cartonnette': 20788544, 'autre_refus': 20788545}]} args : 20788531 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'environnement': 20788534, 'plastique': 20788535, 'flou': 20788536, 'mal_croppe': 20788537, 'papier': 20788538, 'Carton_gris': 20788539, 'Carton_brun': 20788540, 'kraft': 20788541, 'Teint_Dans_La_Masse': 20788542, 'metal': 20788543, 'cartonnette': 20788544, 'autre_refus': 20788545},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20788531) 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([20788531]) 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.3359982967376709 time spend to save output : 4.363059997558594e-05 total time spend for step 3 : 0.3360419273376465 step4:send_mail_cod Tue Feb 25 05:52:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ('0.027367802150795074',), 1339498533: ('0.027367802150795074',), 1339498510: ('0.027367802150795074',), 1339498507: ('0.027367802150795074',), 1339498503: ('0.027367802150795074',), 1339498500: ('0.027367802150795074',), 1339498497: ('0.027367802150795074',)} input_args_next_step : {1339498551: ()} output_args : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ('0.027367802150795074',), 1339498533: ('0.027367802150795074',), 1339498510: ('0.027367802150795074',), 1339498507: ('0.027367802150795074',), 1339498503: ('0.027367802150795074',), 1339498500: ('0.027367802150795074',), 1339498497: ('0.027367802150795074',)} args : 1339498551 depend.output_id : 0 input_args_next_step : {1339498551: ('0.027367802150795074',), 1339498548: ()} output_args : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ('0.027367802150795074',), 1339498533: ('0.027367802150795074',), 1339498510: ('0.027367802150795074',), 1339498507: ('0.027367802150795074',), 1339498503: ('0.027367802150795074',), 1339498500: ('0.027367802150795074',), 1339498497: ('0.027367802150795074',)} args : 1339498548 depend.output_id : 0 input_args_next_step : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ()} output_args : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ('0.027367802150795074',), 1339498533: ('0.027367802150795074',), 1339498510: ('0.027367802150795074',), 1339498507: ('0.027367802150795074',), 1339498503: ('0.027367802150795074',), 1339498500: ('0.027367802150795074',), 1339498497: ('0.027367802150795074',)} args : 1339498544 depend.output_id : 0 input_args_next_step : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ()} output_args : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ('0.027367802150795074',), 1339498533: ('0.027367802150795074',), 1339498510: ('0.027367802150795074',), 1339498507: ('0.027367802150795074',), 1339498503: ('0.027367802150795074',), 1339498500: ('0.027367802150795074',), 1339498497: ('0.027367802150795074',)} args : 1339498539 depend.output_id : 0 input_args_next_step : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ('0.027367802150795074',), 1339498533: ()} output_args : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ('0.027367802150795074',), 1339498533: ('0.027367802150795074',), 1339498510: ('0.027367802150795074',), 1339498507: ('0.027367802150795074',), 1339498503: ('0.027367802150795074',), 1339498500: ('0.027367802150795074',), 1339498497: ('0.027367802150795074',)} args : 1339498533 depend.output_id : 0 input_args_next_step : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ('0.027367802150795074',), 1339498533: ('0.027367802150795074',), 1339498510: ()} output_args : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ('0.027367802150795074',), 1339498533: ('0.027367802150795074',), 1339498510: ('0.027367802150795074',), 1339498507: ('0.027367802150795074',), 1339498503: ('0.027367802150795074',), 1339498500: ('0.027367802150795074',), 1339498497: ('0.027367802150795074',)} args : 1339498510 depend.output_id : 0 input_args_next_step : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ('0.027367802150795074',), 1339498533: ('0.027367802150795074',), 1339498510: ('0.027367802150795074',), 1339498507: ()} output_args : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ('0.027367802150795074',), 1339498533: ('0.027367802150795074',), 1339498510: ('0.027367802150795074',), 1339498507: ('0.027367802150795074',), 1339498503: ('0.027367802150795074',), 1339498500: ('0.027367802150795074',), 1339498497: ('0.027367802150795074',)} args : 1339498507 depend.output_id : 0 input_args_next_step : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ('0.027367802150795074',), 1339498533: ('0.027367802150795074',), 1339498510: ('0.027367802150795074',), 1339498507: ('0.027367802150795074',), 1339498503: ()} output_args : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ('0.027367802150795074',), 1339498533: ('0.027367802150795074',), 1339498510: ('0.027367802150795074',), 1339498507: ('0.027367802150795074',), 1339498503: ('0.027367802150795074',), 1339498500: ('0.027367802150795074',), 1339498497: ('0.027367802150795074',)} args : 1339498503 depend.output_id : 0 input_args_next_step : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ('0.027367802150795074',), 1339498533: ('0.027367802150795074',), 1339498510: ('0.027367802150795074',), 1339498507: ('0.027367802150795074',), 1339498503: ('0.027367802150795074',), 1339498500: ()} output_args : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ('0.027367802150795074',), 1339498533: ('0.027367802150795074',), 1339498510: ('0.027367802150795074',), 1339498507: ('0.027367802150795074',), 1339498503: ('0.027367802150795074',), 1339498500: ('0.027367802150795074',), 1339498497: ('0.027367802150795074',)} args : 1339498500 depend.output_id : 0 input_args_next_step : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ('0.027367802150795074',), 1339498533: ('0.027367802150795074',), 1339498510: ('0.027367802150795074',), 1339498507: ('0.027367802150795074',), 1339498503: ('0.027367802150795074',), 1339498500: ('0.027367802150795074',), 1339498497: ()} output_args : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ('0.027367802150795074',), 1339498533: ('0.027367802150795074',), 1339498510: ('0.027367802150795074',), 1339498507: ('0.027367802150795074',), 1339498503: ('0.027367802150795074',), 1339498500: ('0.027367802150795074',), 1339498497: ('0.027367802150795074',)} args : 1339498497 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 : {20788531: [{'environnement': 20788534, 'plastique': 20788535, 'flou': 20788536, 'mal_croppe': 20788537, 'papier': 20788538, 'Carton_gris': 20788539, 'Carton_brun': 20788540, 'kraft': 20788541, 'Teint_Dans_La_Masse': 20788542, 'metal': 20788543, 'cartonnette': 20788544, 'autre_refus': 20788545}]} input_args_next_step : {1339498551: ('0.027367802150795074',), 1339498548: ('0.027367802150795074',), 1339498544: ('0.027367802150795074',), 1339498539: ('0.027367802150795074',), 1339498533: ('0.027367802150795074',), 1339498510: ('0.027367802150795074',), 1339498507: ('0.027367802150795074',), 1339498503: ('0.027367802150795074',), 1339498500: ('0.027367802150795074',), 1339498497: ('0.027367802150795074',), 20788531: ()} output_args : {20788531: [{'environnement': 20788534, 'plastique': 20788535, 'flou': 20788536, 'mal_croppe': 20788537, 'papier': 20788538, 'Carton_gris': 20788539, 'Carton_brun': 20788540, 'kraft': 20788541, 'Teint_Dans_La_Masse': 20788542, 'metal': 20788543, 'cartonnette': 20788544, 'autre_refus': 20788545}]} args : 20788531 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 :11, first value : ('0.027367802150795074',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20788531) 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 (1339498551,1339498548,1339498544,1339498539,1339498533,1339498510,1339498507,1339498503,1339498500,1339498497) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339498497 begin to download photo : 1339498507 begin to download photo : 1339498539 begin to download photo : 1339498551 download finish for photo 1339498551 download finish for photo 1339498507 begin to download photo : 1339498510 download finish for photo 1339498497 begin to download photo : 1339498500 download finish for photo 1339498539 begin to download photo : 1339498544 download finish for photo 1339498500 begin to download photo : 1339498503 download finish for photo 1339498510 begin to download photo : 1339498533 download finish for photo 1339498544 begin to download photo : 1339498548 download finish for photo 1339498533 download finish for photo 1339498503 download finish for photo 1339498548 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 : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P20788531_25-02-2025_05_52_58.pdf 20788535 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=20788535 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339498609: '1740459072_901140_1339498409_06d2ead6dd4fede82f3eb90e616c392b_rle_crop_3686126169_0.png'} change filename to text .imagette207885351740459178/ imagette207885351740459178/1740459072_901140_1339498409_06d2ead6dd4fede82f3eb90e616c392b_rle_crop_3686126169_0.png.png imagette207885361740459178/ imagette207885371740459178/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/73e992e57dba4570454584cd82473236_29263170.png imagette207885351740459178 20788536 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=20788536 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207885361740459178 20788537 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=20788537 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207885371740459178 20788541 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=20788541 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339498611: '1740459072_901140_1339498412_af415ae49a5f9d9891aaaecb531f9d22_rle_crop_3686126154_0.png'} change filename to text .imagette207885411740459178/ imagette207885411740459178/1740459072_901140_1339498412_af415ae49a5f9d9891aaaecb531f9d22_rle_crop_3686126154_0.png.png imagette207885431740459178/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/0771a9fdeaea1c8ae68e17520c2af5a6_55510883.png imagette207885411740459178 20788543 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=20788543 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207885431740459178 20788544 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=20788544 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339498605: '1740459072_901140_1339498409_06d2ead6dd4fede82f3eb90e616c392b_rle_crop_3686126168_0.png', 1339498608: '1740459092_901426_1339498463_df75e1c71160c4c787205278292dbfc4_rle_crop_3686126265_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/17945f93fdad8cbf0c728af585fdfb8b_61358404.png change filename to text .imagette207885441740459178/ imagette207885441740459178/1740459092_901426_1339498463_df75e1c71160c4c787205278292dbfc4_rle_crop_3686126265_0.png.png imagette207885441740459178/1740459072_901140_1339498409_06d2ead6dd4fede82f3eb90e616c392b_rle_crop_3686126168_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/e45f5550af3006bec1f2e96c2b58429a_11688563.png imagette207885441740459178 20788545 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=20788545 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339498601: '1740459072_901140_1339498412_af415ae49a5f9d9891aaaecb531f9d22_rle_crop_3686126146_0.png', 1339498602: '1740459072_901140_1339498409_06d2ead6dd4fede82f3eb90e616c392b_rle_crop_3686126166_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/047d6eca22b8c80cc054304ce311946b_74104503.png change filename to text .imagette207885451740459178/ imagette207885451740459178/1740459072_901140_1339498412_af415ae49a5f9d9891aaaecb531f9d22_rle_crop_3686126146_0.png.png imagette207885451740459178/1740459072_901140_1339498409_06d2ead6dd4fede82f3eb90e616c392b_rle_crop_3686126166_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f16890e359418e74b47a22d1fe6beb4d_74611159.png imagette207885451740459178 20788539 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=20788539 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339498455: '1740458931_899269_1339498360_033c6515be2e0d73936c2b9745a80e01_rle_crop_3686125342_0.png', 1339498603: '1740459072_901140_1339498398_e44477f776bcf495eadfd86048e77709_rle_crop_3686126221_0.png', 1339498606: '1740459092_901426_1339498466_530f3eb6c679914e3ebcb9f0dde9bc61_rle_crop_3686126237_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/3258e7a18729344d9c7d36918c9a5ba6_40285612.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/4437d577d8ff63e87761c6fcbcec4248_44768419.png change filename to text .imagette207885391740459179/ imagette207885391740459179/1740459092_901426_1339498466_530f3eb6c679914e3ebcb9f0dde9bc61_rle_crop_3686126237_0.png.png imagette207885391740459179/1740458931_899269_1339498360_033c6515be2e0d73936c2b9745a80e01_rle_crop_3686125342_0.png.png imagette207885391740459179/1740459072_901140_1339498398_e44477f776bcf495eadfd86048e77709_rle_crop_3686126221_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/eccbb46b2b91d5ac4c7fd1fad74e3eb6_97469502.png imagette207885391740459179 20788540 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=20788540 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339498457: '1740458931_899269_1339498371_ac7044949d7e5b2642821c94beb9df29_rle_crop_3686125158_0.png', 1339498607: '1740459072_901140_1339498398_e44477f776bcf495eadfd86048e77709_rle_crop_3686126216_0.png', 1339498610: '1740459092_901426_1339498463_df75e1c71160c4c787205278292dbfc4_rle_crop_3686126270_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/8f545776fd87cdf78b3b41768c0eaee6_68275437.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/7e1d7be52e160de20c06b9ba472fec9b_78194118.png change filename to text .imagette207885401740459179/ imagette207885401740459179/1740459092_901426_1339498463_df75e1c71160c4c787205278292dbfc4_rle_crop_3686126270_0.png.png imagette207885401740459179/1740459072_901140_1339498398_e44477f776bcf495eadfd86048e77709_rle_crop_3686126216_0.png.png imagette207885401740459179/1740458931_899269_1339498371_ac7044949d7e5b2642821c94beb9df29_rle_crop_3686125158_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/999aa961b91d400a99b4121c2661b821_55100168.png imagette207885401740459179 20788542 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=20788542 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339498454: '1740458931_899269_1339498360_033c6515be2e0d73936c2b9745a80e01_rle_crop_3686125344_0.png', 1339498599: '1740459072_901140_1339498412_af415ae49a5f9d9891aaaecb531f9d22_rle_crop_3686126152_0.png', 1339498600: '1740459072_901140_1339498404_b0c5fb996f93900c24a7c7bcf0dc0557_rle_crop_3686126191_0.png', 1339498604: '1740459092_901426_1339498463_df75e1c71160c4c787205278292dbfc4_rle_crop_3686126269_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/fdd3633d8819df1019b5a03b6c2cba19_921799.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/bf5325f51198d94392ccb1863862a7c0_90813060.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f12ea153e439406655e22698d0de7e37_77928192.png change filename to text .imagette207885421740459179/ imagette207885421740459179/1740458931_899269_1339498360_033c6515be2e0d73936c2b9745a80e01_rle_crop_3686125344_0.png.png imagette207885421740459179/1740459072_901140_1339498404_b0c5fb996f93900c24a7c7bcf0dc0557_rle_crop_3686126191_0.png.png imagette207885421740459179/1740459072_901140_1339498412_af415ae49a5f9d9891aaaecb531f9d22_rle_crop_3686126152_0.png.png imagette207885421740459179/1740459092_901426_1339498463_df75e1c71160c4c787205278292dbfc4_rle_crop_3686126269_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/df899f2e8eac111f3ccba95dfb6d4f0b_49850133.png imagette207885421740459179 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20788531 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20788546,20788547,20788548,20788549,20788550,20788551,20788552,20788553,20788554,20788555,20788556,20788557?tags=environnement,plastique,flou,mal_croppe,papier,Carton_gris,Carton_brun,kraft,Teint_Dans_La_Masse,metal,cartonnette,autre_refus your option no_mail is active, we will not send the real mail to your client args[1339498551] : ('0.027367802150795074',) no score found for photo 1339498551 We are sending mail with results at report@fotonower.com args[1339498548] : ('0.027367802150795074',) no score found for photo 1339498548 We are sending mail with results at report@fotonower.com args[1339498544] : ('0.027367802150795074',) no score found for photo 1339498544 We are sending mail with results at report@fotonower.com args[1339498539] : ('0.027367802150795074',) no score found for photo 1339498539 We are sending mail with results at report@fotonower.com args[1339498533] : ('0.027367802150795074',) no score found for photo 1339498533 We are sending mail with results at report@fotonower.com args[1339498510] : ('0.027367802150795074',) no score found for photo 1339498510 We are sending mail with results at report@fotonower.com args[1339498507] : ('0.027367802150795074',) no score found for photo 1339498507 We are sending mail with results at report@fotonower.com args[1339498503] : ('0.027367802150795074',) no score found for photo 1339498503 We are sending mail with results at report@fotonower.com args[1339498500] : ('0.027367802150795074',) no score found for photo 1339498500 We are sending mail with results at report@fotonower.com args[1339498497] : ('0.027367802150795074',) no score found for photo 1339498497 We are sending mail with results at report@fotonower.com refus_total : 0.027367802150795074 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=20788531 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_P20788531_25-02-2025_05_52_58.pdf results_Auto_P20788531_25-02-2025_05_52_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20788531_25-02-2025_05_52_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20788531','results_Auto_P20788531_25-02-2025_05_52_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20788531_25-02-2025_05_52_58.pdf','pdf','','0.14','0.027367802150795074') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20788531]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339498551, 1339498548, 1339498544, 1339498539, 1339498533, 1339498510, 1339498507, 1339498503, 1339498500, 1339498497] map_info['map_portfolio_photo'] : {20788531: [1339498551, 1339498548, 1339498544, 1339498539, 1339498533, 1339498510, 1339498507, 1339498503, 1339498500, 1339498497, 1339498472, 1339498469, 1339498466, 1339498463, 1339498459, 1339498415, 1339498412, 1339498409, 1339498404, 1339498398, 1339498390, 1339498374, 1339498371, 1339498368, 1339498360, 1339498302, 1339498226, 1339498199]} final : False mtd_id 4302 list_pids : [1339498551, 1339498548, 1339498544, 1339498539, 1339498533, 1339498510, 1339498507, 1339498503, 1339498500, 1339498497] 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, '2611633') ('4302', '20788531', '1339498551', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498548', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498544', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498539', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498533', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498510', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498507', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498503', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498500', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498497', None, None, None, None, None, '2611633') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20788531', '1339498551', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498548', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498544', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498539', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498533', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498510', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498507', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498503', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498500', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498497', None, None, None, None, None, '2611633')] time used for this insertion : 0.0207064151763916 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.2768633365631104 time spend to save output : 0.021007299423217773 total time spend for step 4 : 2.297870635986328 step5:split_time_score Tue Feb 25 05:53:00 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 : ['20788531'] 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 : [('20788531',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20788531) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339498551: {'path': 'temp/1740459178_3452558_1339498551_266c38ed54726114285451760501bc79.jpg', 'extension': 'jpg'}, 1339498507: {'path': 'temp/1740459178_3452558_1339498507_8aa7995414cdb791c30daa0a646038c2.jpg', 'extension': 'jpg'}, 1339498510: {'path': 'temp/1740459178_3452558_1339498510_a8aab030c358a0b4469a8b2d08f29645.jpg', 'extension': 'jpg'}, 1339498533: {'path': 'temp/1740459178_3452558_1339498533_833dcae4db05dc171251054d9e7f1b86.jpg', 'extension': 'jpg'}, 1339498497: {'path': 'temp/1740459178_3452558_1339498497_c319319ec3b94e5134b35d492943b13d.jpg', 'extension': 'jpg'}, 1339498500: {'path': 'temp/1740459178_3452558_1339498500_31650b423d8e6d37862afd6255c98243.jpg', 'extension': 'jpg'}, 1339498503: {'path': 'temp/1740459178_3452558_1339498503_f77bab7b76f012b3d6c1ebf797046e7c.jpg', 'extension': 'jpg'}, 1339498539: {'path': 'temp/1740459178_3452558_1339498539_998b6bd05f7990f4786b5e5964ccee1c.jpg', 'extension': 'jpg'}, 1339498544: {'path': 'temp/1740459178_3452558_1339498544_e645b5f62e17d4afa1a0358386b83c13.jpg', 'extension': 'jpg'}, 1339498548: {'path': 'temp/1740459178_3452558_1339498548_b2898b3ff6c6c01093413527e4bc3c4d.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 = 20788531; (('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 = 20788531 group by h (('05', 28),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20788531 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 (20788531) 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 (20788531) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25022025 20788531 Nombre de photos uploadées : 28 / 23040 (0%) 25022025 20788531 Nombre de photos taguées (types de déchets): 0 / 28 (0%) 25022025 20788531 Nombre de photos taguées (volume) : 0 / 28 (0%) [{'photo_id': 1339498302, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ffa6ed7d554ea969f9212895aecb973b.jpg', 'username': None, 'uploaded_at': 1740458793, 'text': 'image_25022025_05_45_23_9124.jpg'}, {'photo_id': 1339498226, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/8c143d8ebfb17ba348d69661499e06d6.jpg', 'username': None, 'uploaded_at': 1740458793, 'text': 'image_25022025_05_45_34_10132.jpg'}, {'photo_id': 1339498199, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/35352fc9ee354463dfd06ad7f7fb5cd8.jpg', 'username': None, 'uploaded_at': 1740458793, 'text': 'image_25022025_05_45_44_10136.jpg'}, {'photo_id': 1339498374, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/0f951c67a4d2a11bdda1b8788e864ec0.jpg', 'username': None, 'uploaded_at': 1740458863, 'text': 'image_25022025_05_45_54_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ???????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0014481544494628906 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20788531, '2025-02-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1621897,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024463891983032227 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= 1621897 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1621897, 'dashboard_run_id': 1629961, 'mtr_portfolio_id': 20787821, 'dashboard_result_id': 9038273, '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_P20787821_25-02-2025_05_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20787823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20787824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20787825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20787826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20787827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20787828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20787829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20787830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20787831, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20787832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20787833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20787834, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1629961, 'mtr_portfolio_id': 20788035, 'dashboard_result_id': 9038274, '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_P20788035_25-02-2025_05_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20788085, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20788086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20788087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20788088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20788089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20788090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20788091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20788092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20788093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20788094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20788095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20788096, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1629961, 'mtr_portfolio_id': 20788531, 'dashboard_result_id': 9038275, '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_P20788531_25-02-2025_05_51_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20788534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20788535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20788536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20788537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20788538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20788539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20788540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20788541, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20788542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20788543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20788544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20788545, '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 = 20787821 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': 2611520, 'mtr_portfolio_id': 20787821, 'created_at': datetime.datetime(2025, 2, 25, 5, 32, 58), 'result': '0.019194315224785766', 'result_long': None, 'result_double': None}] Qualite : 0.019194315224785766 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20787821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20787821_25-02-2025_05_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20787821 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_P20787821_25-02-2025_05_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20787823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20787824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20787825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20787826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20787827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20787828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20787829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20787830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20787831, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20787832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20787833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20787834, 'pht': 3726}}" where mtr_portfolio_id = 20787821 and dashboard_run_id = 1629961 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`=20787821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9038273, 0.019194315224785766, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20787821_25-02-2025_05_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20787823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20787824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20787825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20787826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20787827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20787828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20787829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20787830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20787831, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20787832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20787833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20787834, '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 = 20788035 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': 2611599, 'mtr_portfolio_id': 20788035, 'created_at': datetime.datetime(2025, 2, 25, 5, 48, 59), 'result': '0.03866151305920311', 'result_long': None, 'result_double': None}] Qualite : 0.03866151305920311 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20788035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20788035_25-02-2025_05_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20788035 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_P20788035_25-02-2025_05_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20788085, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20788086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20788087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20788088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20788089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20788090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20788091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20788092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20788093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20788094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20788095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20788096, 'pht': 3726}}" where mtr_portfolio_id = 20788035 and dashboard_run_id = 1629961 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`=20788035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9038274, 0.03866151305920311, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20788035_25-02-2025_05_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20788085, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20788086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20788087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20788088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20788089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20788090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20788091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20788092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20788093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20788094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20788095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20788096, '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 = 20788531 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': 2611633, 'mtr_portfolio_id': 20788531, 'created_at': datetime.datetime(2025, 2, 25, 5, 52, 58), 'result': '0.027367802150795074', 'result_long': None, 'result_double': None}] Qualite : 0.027367802150795074 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20788531 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20788531_25-02-2025_05_52_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20788531 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_P20788531_25-02-2025_05_52_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20788534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20788535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20788536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20788537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20788538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20788539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20788540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20788541, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20788542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20788543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20788544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20788545, 'pht': 3726}}" where mtr_portfolio_id = 20788531 and dashboard_run_id = 1629961 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`=20788531 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9038275, 0.027367802150795074, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20788531_25-02-2025_05_52_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20788534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20788535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20788536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20788537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20788538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20788539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20788540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20788541, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20788542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20788543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20788544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20788545, '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 (20787821,20788035,20788531) result : ((1339496484,), (1339496569,), (1339496572,), (1339496581,), (1339496584,), (1339496588,), (1339496597,), (1339496600,), (1339496603,), (1339496607,), (1339496609,), (1339496650,), (1339496657,), (1339496661,), (1339496664,), (1339496667,), (1339496668,), (1339496672,), (1339496675,), (1339496679,), (1339496807,), (1339496810,), (1339496816,), (1339496824,), (1339496827,), (1339496839,), (1339496842,), (1339496845,), (1339496847,), (1339496850,), (1339496853,), (1339496876,), (1339496879,), (1339496885,), (1339496889,), (1339496998,), (1339497000,), (1339497003,), (1339497005,), (1339497008,), (1339497010,), (1339497024,), (1339497016,), (1339497019,), (1339497022,), (1339497032,), (1339497035,), (1339497037,), (1339497040,), (1339497043,), (1339497045,), (1339497058,), (1339497061,), (1339497066,), (1339497138,), (1339497141,), (1339497147,), (1339497158,), (1339497175,), (1339497180,), (1339497191,), (1339497195,), (1339497197,), (1339497200,), (1339497214,), (1339497217,), (1339497220,), (1339497223,), (1339497227,), (1339497228,), (1339497235,), (1339497238,), (1339497241,), (1339497244,), (1339497260,), (1339497263,), (1339497267,), (1339497270,), (1339497272,), (1339497274,), (1339497280,), (1339497282,), (1339497285,), (1339497291,), (1339497297,), (1339497318,), (1339497337,), (1339497492,), (1339497616,), (1339497622,), (1339497630,), (1339497690,), (1339497702,), (1339497705,), (1339497708,), (1339497718,), (1339497726,), (1339497729,), (1339497734,), (1339497736,), (1339497738,), (1339497782,), (1339497788,), (1339497800,), (1339497812,), (1339497819,), (1339497942,), (1339497945,), (1339497947,), (1339497951,), (1339498080,), (1339498103,), (1339498112,), (1339498120,), (1339498124,), (1339498126,), (1339498353,), (1339498199,), (1339498226,), (1339498302,), (1339498360,), (1339498368,), (1339498371,), (1339498374,), (1339498390,), (1339498398,), (1339498404,), (1339498409,), (1339498412,), (1339498415,), (1339498459,), (1339498463,), (1339498466,), (1339498469,), (1339498472,), (1339498497,), (1339498500,), (1339498503,), (1339498507,), (1339498510,), (1339498533,), (1339498539,), (1339498544,), (1339498548,), (1339498551,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25022025': {'nb_upload': 28, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20788531]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339498551, 1339498548, 1339498544, 1339498539, 1339498533, 1339498510, 1339498507, 1339498503, 1339498500, 1339498497] map_info['map_portfolio_photo'] : {20788531: [1339498551, 1339498548, 1339498544, 1339498539, 1339498533, 1339498510, 1339498507, 1339498503, 1339498500, 1339498497, 1339498472, 1339498469, 1339498466, 1339498463, 1339498459, 1339498415, 1339498412, 1339498409, 1339498404, 1339498398, 1339498390, 1339498374, 1339498371, 1339498368, 1339498360, 1339498302, 1339498226, 1339498199]} final : True mtd_id 4302 list_pids : [1339498551, 1339498548, 1339498544, 1339498539, 1339498533, 1339498510, 1339498507, 1339498503, 1339498500, 1339498497] Looping around the photos to save general results len do output : 1 /20788531Didn'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, '2611633') ('4302', '20788531', '1339498551', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498548', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498544', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498539', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498533', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498510', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498507', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498503', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498500', None, None, None, None, None, '2611633') ('4302', None, None, None, None, None, None, None, '2611633') ('4302', '20788531', '1339498497', None, None, None, None, None, '2611633') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '20788531', 'None', None, None, None, None, '2611633'), ('4302', '20788531', '1339498551', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498548', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498544', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498539', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498533', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498510', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498507', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498503', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498500', None, None, None, None, None, '2611633'), ('4302', '20788531', '1339498497', None, None, None, None, None, '2611633')] time used for this insertion : 0.01499032974243164 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2866518497467041 time spend to save output : 0.015323877334594727 total time spend for step 5 : 0.30197572708129883 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 (2611633) 2.25user 2.15system 0:06.13elapsed 72%CPU (0avgtext+0avgdata 161508maxresident)k 184inputs+7768outputs (16major+71642minor)pagefaults 0swaps