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 : 491267 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 (2637172) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2637172) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21057093 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2637172'] with mtr_portfolio_ids : ['21057093'] and first list_photo_ids : [] new path : /proc/491267/ Name: python3 Umask: 0002 State: R (running) Tgid: 491267 Ngid: 0 Pid: 491267 PPid: 491266 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 491267 NSpid: 491267 NSpgid: 487335 NSsid: 487335 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97908 kB VmRSS: 97908 kB RssAnon: 59748 kB RssFile: 38160 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 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: 62 nonvoluntary_ctxt_switches: 347 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '491267', 'Ngid': '0', 'Pid': '491267', 'PPid': '491266', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '491267', 'NSpid': '491267', 'NSpgid': '487335', 'NSsid': '487335', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97908 kB', 'VmRSS': '97908 kB', 'RssAnon': '59748 kB', 'RssFile': '38160 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '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': '62', 'nonvoluntary_ctxt_switches': '347'} ('datou_batch_current', '491267', '1106844', '0', '1106844', '865592', '97908', b'', 'marlene', '2637172') 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 (21057093) 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 (2637172 ) ) 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 (21057093) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340986985, 'portfolio_id': 21057093}, {'photo_id': 1340986976, 'portfolio_id': 21057093}, {'photo_id': 1340986970, 'portfolio_id': 21057093}, {'photo_id': 1340986968, 'portfolio_id': 21057093}, {'photo_id': 1340986887, 'portfolio_id': 21057093}, {'photo_id': 1340986884, 'portfolio_id': 21057093}, {'photo_id': 1340986877, 'portfolio_id': 21057093}, {'photo_id': 1340986871, 'portfolio_id': 21057093}, {'photo_id': 1340986860, 'portfolio_id': 21057093}, {'photo_id': 1340986815, 'portfolio_id': 21057093}, {'photo_id': 1340986693, 'portfolio_id': 21057093}, {'photo_id': 1340986658, 'portfolio_id': 21057093}, {'photo_id': 1340986647, 'portfolio_id': 21057093}, {'photo_id': 1340986633, 'portfolio_id': 21057093}, {'photo_id': 1340986562, 'portfolio_id': 21057093}, {'photo_id': 1340986249, 'portfolio_id': 21057093}, {'photo_id': 1340986074, 'portfolio_id': 21057093}, {'photo_id': 1340986018, 'portfolio_id': 21057093}, {'photo_id': 1340986000, 'portfolio_id': 21057093}, {'photo_id': 1340985997, 'portfolio_id': 21057093}, {'photo_id': 1340985944, 'portfolio_id': 21057093}, {'photo_id': 1340985938, 'portfolio_id': 21057093}, {'photo_id': 1340985930, 'portfolio_id': 21057093}, {'photo_id': 1340985925, 'portfolio_id': 21057093}, {'photo_id': 1340985922, 'portfolio_id': 21057093}, {'photo_id': 1340985881, 'portfolio_id': 21057093}, {'photo_id': 1340985863, 'portfolio_id': 21057093}, {'photo_id': 1340985853, 'portfolio_id': 21057093}, {'photo_id': 1340985844, 'portfolio_id': 21057093}, {'photo_id': 1340985817, 'portfolio_id': 21057093}, {'photo_id': 1340985812, 'portfolio_id': 21057093}, {'photo_id': 1340985791, 'portfolio_id': 21057093}, {'photo_id': 1340985779, 'portfolio_id': 21057093}, {'photo_id': 1340985772, 'portfolio_id': 21057093}] map_portfolio_id_photo_id: {21057093: [1340986985, 1340986976, 1340986970, 1340986968, 1340986887, 1340986884, 1340986877, 1340986871, 1340986860, 1340986815, 1340986693, 1340986658, 1340986647, 1340986633, 1340986562, 1340986249, 1340986074, 1340986018, 1340986000, 1340985997, 1340985944, 1340985938, 1340985930, 1340985925, 1340985922, 1340985881, 1340985863, 1340985853, 1340985844, 1340985817, 1340985812, 1340985791, 1340985779, 1340985772]} ##### 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.01449441909790039 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Mar 5 10:38:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21057093) 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 : 21057093 get user id for portfolio 21057093 get sub ptf for main ptf 21057093, type 3726 and hashtags ['plastique', 'flou', 'Carton_brun', 'mal_croppe', 'environnement', 'Teint_Dans_La_Masse', 'metal', 'Carton_gris', 'cartonnette', 'kraft', 'papier', 'autre_refus'] 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`=21057093 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','Carton_brun','mal_croppe','environnement','Teint_Dans_La_Masse','metal','Carton_gris','cartonnette','kraft','papier','autre_refus')) 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`=21057093 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','Carton_brun','mal_croppe','environnement','Teint_Dans_La_Masse','metal','Carton_gris','cartonnette','kraft','papier','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 21057093, 'sub_port_id': 21057140, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669026, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 34, 58)}, 'Carton_gris': {'main_port_id': 21057093, 'sub_port_id': 21057141, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669027, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 34, 58)}, 'kraft': {'main_port_id': 21057093, 'sub_port_id': 21057142, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669028, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 34, 58)}, 'cartonnette': {'main_port_id': 21057093, 'sub_port_id': 21057143, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669029, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 34, 58)}, 'papier': {'main_port_id': 21057093, 'sub_port_id': 21057144, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669030, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 34, 58)}, 'flou': {'main_port_id': 21057093, 'sub_port_id': 21057145, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669031, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 34, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21057093, 'sub_port_id': 21057146, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669032, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 34, 58)}, 'metal': {'main_port_id': 21057093, 'sub_port_id': 21057147, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669033, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 34, 58)}, 'plastique': {'main_port_id': 21057093, 'sub_port_id': 21057148, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669034, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 34, 58)}, 'autre_refus': {'main_port_id': 21057093, 'sub_port_id': 21057149, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669035, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 34, 58)}, 'mal_croppe': {'main_port_id': 21057093, 'sub_port_id': 21057150, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669036, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 34, 58)}, 'environnement': {'main_port_id': 21057093, 'sub_port_id': 21057151, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669037, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21057140 , 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=21057093 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 (21057140) result : ((1340987009,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21057093) result : ((1340985772,), (1340985779,), (1340985791,), (1340985812,), (1340985817,), (1340985844,), (1340985853,), (1340985863,), (1340985881,), (1340985922,), (1340985925,), (1340985930,), (1340985938,), (1340985944,), (1340985997,), (1340986000,), (1340986018,), (1340986074,), (1340986249,), (1340986562,), (1340986633,), (1340986647,), (1340986658,), (1340986693,), (1340986815,), (1340986860,), (1340986871,), (1340986877,), (1340986884,), (1340986887,), (1340986968,), (1340986970,), (1340986976,), (1340986985,)) 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 (1340986000) 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 21057141 , 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=21057093 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 (21057141) result : ((1340986659,), (1340986660,), (1340987006,), (1340987007,), (1340987015,), (1340987016,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21057093) result : ((1340985772,), (1340985779,), (1340985791,), (1340985812,), (1340985817,), (1340985844,), (1340985853,), (1340985863,), (1340985881,), (1340985922,), (1340985925,), (1340985930,), (1340985938,), (1340985944,), (1340985997,), (1340986000,), (1340986018,), (1340986074,), (1340986249,), (1340986562,), (1340986633,), (1340986647,), (1340986658,), (1340986693,), (1340986815,), (1340986860,), (1340986871,), (1340986877,), (1340986884,), (1340986887,), (1340986968,), (1340986970,), (1340986976,), (1340986985,)) 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 (1340986000) 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 21057142 , 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=21057093 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 (21057142) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21057093) result : ((1340985772,), (1340985779,), (1340985791,), (1340985812,), (1340985817,), (1340985844,), (1340985853,), (1340985863,), (1340985881,), (1340985922,), (1340985925,), (1340985930,), (1340985938,), (1340985944,), (1340985997,), (1340986000,), (1340986018,), (1340986074,), (1340986249,), (1340986562,), (1340986633,), (1340986647,), (1340986658,), (1340986693,), (1340986815,), (1340986860,), (1340986871,), (1340986877,), (1340986884,), (1340986887,), (1340986968,), (1340986970,), (1340986976,), (1340986985,)) 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 (1340986000) 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 21057143 , 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=21057093 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 (21057143) result : ((1340986668,), (1340986670,), (1340986672,), (1340986674,), (1340986676,), (1340987019,), (1340987020,), (1340987021,), (1340987022,), (1340987023,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21057093) result : ((1340985772,), (1340985779,), (1340985791,), (1340985812,), (1340985817,), (1340985844,), (1340985853,), (1340985863,), (1340985881,), (1340985922,), (1340985925,), (1340985930,), (1340985938,), (1340985944,), (1340985997,), (1340986000,), (1340986018,), (1340986074,), (1340986249,), (1340986562,), (1340986633,), (1340986647,), (1340986658,), (1340986693,), (1340986815,), (1340986860,), (1340986871,), (1340986877,), (1340986884,), (1340986887,), (1340986968,), (1340986970,), (1340986976,), (1340986985,)) 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 (1340986000) 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 21057144 , 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=21057093 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 (21057144) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21057093) result : ((1340985772,), (1340985779,), (1340985791,), (1340985812,), (1340985817,), (1340985844,), (1340985853,), (1340985863,), (1340985881,), (1340985922,), (1340985925,), (1340985930,), (1340985938,), (1340985944,), (1340985997,), (1340986000,), (1340986018,), (1340986074,), (1340986249,), (1340986562,), (1340986633,), (1340986647,), (1340986658,), (1340986693,), (1340986815,), (1340986860,), (1340986871,), (1340986877,), (1340986884,), (1340986887,), (1340986968,), (1340986970,), (1340986976,), (1340986985,)) 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 (1340986000) 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 21057145 , 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=21057093 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 (21057145) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21057093) result : ((1340985772,), (1340985779,), (1340985791,), (1340985812,), (1340985817,), (1340985844,), (1340985853,), (1340985863,), (1340985881,), (1340985922,), (1340985925,), (1340985930,), (1340985938,), (1340985944,), (1340985997,), (1340986000,), (1340986018,), (1340986074,), (1340986249,), (1340986562,), (1340986633,), (1340986647,), (1340986658,), (1340986693,), (1340986815,), (1340986860,), (1340986871,), (1340986877,), (1340986884,), (1340986887,), (1340986968,), (1340986970,), (1340986976,), (1340986985,)) 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 (1340986000) 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 21057146 , 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=21057093 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 (21057146) result : ((1340986641,), (1340986645,), (1340986995,), (1340987003,), (1340987004,), (1340987005,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21057093) result : ((1340985772,), (1340985779,), (1340985791,), (1340985812,), (1340985817,), (1340985844,), (1340985853,), (1340985863,), (1340985881,), (1340985922,), (1340985925,), (1340985930,), (1340985938,), (1340985944,), (1340985997,), (1340986000,), (1340986018,), (1340986074,), (1340986249,), (1340986562,), (1340986633,), (1340986647,), (1340986658,), (1340986693,), (1340986815,), (1340986860,), (1340986871,), (1340986877,), (1340986884,), (1340986887,), (1340986968,), (1340986970,), (1340986976,), (1340986985,)) 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 (1340986000) 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 21057147 , 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=21057093 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 (21057147) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21057093) result : ((1340985772,), (1340985779,), (1340985791,), (1340985812,), (1340985817,), (1340985844,), (1340985853,), (1340985863,), (1340985881,), (1340985922,), (1340985925,), (1340985930,), (1340985938,), (1340985944,), (1340985997,), (1340986000,), (1340986018,), (1340986074,), (1340986249,), (1340986562,), (1340986633,), (1340986647,), (1340986658,), (1340986693,), (1340986815,), (1340986860,), (1340986871,), (1340986877,), (1340986884,), (1340986887,), (1340986968,), (1340986970,), (1340986976,), (1340986985,)) 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 (1340986000) 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 21057148 , 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=21057093 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 (21057148) result : ((1340987013,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21057093) result : ((1340985772,), (1340985779,), (1340985791,), (1340985812,), (1340985817,), (1340985844,), (1340985853,), (1340985863,), (1340985881,), (1340985922,), (1340985925,), (1340985930,), (1340985938,), (1340985944,), (1340985997,), (1340986000,), (1340986018,), (1340986074,), (1340986249,), (1340986562,), (1340986633,), (1340986647,), (1340986658,), (1340986693,), (1340986815,), (1340986860,), (1340986871,), (1340986877,), (1340986884,), (1340986887,), (1340986968,), (1340986970,), (1340986976,), (1340986985,)) 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 (1340986000) 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 21057149 , 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=21057093 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 (21057149) result : ((1340986652,), (1340986653,), (1340986997,), (1340986998,), (1340987010,), (1340987011,), (1340987012,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21057093) result : ((1340985772,), (1340985779,), (1340985791,), (1340985812,), (1340985817,), (1340985844,), (1340985853,), (1340985863,), (1340985881,), (1340985922,), (1340985925,), (1340985930,), (1340985938,), (1340985944,), (1340985997,), (1340986000,), (1340986018,), (1340986074,), (1340986249,), (1340986562,), (1340986633,), (1340986647,), (1340986658,), (1340986693,), (1340986815,), (1340986860,), (1340986871,), (1340986877,), (1340986884,), (1340986887,), (1340986968,), (1340986970,), (1340986976,), (1340986985,)) 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 (1340986000) 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 21057150 , 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=21057093 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 (21057150) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21057093) result : ((1340985772,), (1340985779,), (1340985791,), (1340985812,), (1340985817,), (1340985844,), (1340985853,), (1340985863,), (1340985881,), (1340985922,), (1340985925,), (1340985930,), (1340985938,), (1340985944,), (1340985997,), (1340986000,), (1340986018,), (1340986074,), (1340986249,), (1340986562,), (1340986633,), (1340986647,), (1340986658,), (1340986693,), (1340986815,), (1340986860,), (1340986871,), (1340986877,), (1340986884,), (1340986887,), (1340986968,), (1340986970,), (1340986976,), (1340986985,)) 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 (1340986000) 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 21057151 , 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=21057093 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 (21057151) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21057093) result : ((1340985772,), (1340985779,), (1340985791,), (1340985812,), (1340985817,), (1340985844,), (1340985853,), (1340985863,), (1340985881,), (1340985922,), (1340985925,), (1340985930,), (1340985938,), (1340985944,), (1340985997,), (1340986000,), (1340986018,), (1340986074,), (1340986249,), (1340986562,), (1340986633,), (1340986647,), (1340986658,), (1340986693,), (1340986815,), (1340986860,), (1340986871,), (1340986877,), (1340986884,), (1340986887,), (1340986968,), (1340986970,), (1340986976,), (1340986985,)) 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 (1340986000) 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`=21057093 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','Carton_brun','mal_croppe','environnement','Teint_Dans_La_Masse','metal','Carton_gris','cartonnette','kraft','papier','autre_refus')) 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`=21057093 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','Carton_brun','mal_croppe','environnement','Teint_Dans_La_Masse','metal','Carton_gris','cartonnette','kraft','papier','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 21057093, 'sub_port_id': 21057152, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669038, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 35)}, 'Carton_gris': {'main_port_id': 21057093, 'sub_port_id': 21057153, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669039, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 35)}, 'kraft': {'main_port_id': 21057093, 'sub_port_id': 21057154, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669040, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 35)}, 'cartonnette': {'main_port_id': 21057093, 'sub_port_id': 21057155, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669041, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 35)}, 'papier': {'main_port_id': 21057093, 'sub_port_id': 21057156, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669042, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 35)}, 'flou': {'main_port_id': 21057093, 'sub_port_id': 21057157, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669043, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 21057093, 'sub_port_id': 21057158, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669044, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 35)}, 'metal': {'main_port_id': 21057093, 'sub_port_id': 21057159, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669045, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 35)}, 'plastique': {'main_port_id': 21057093, 'sub_port_id': 21057160, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669046, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 35)}, 'autre_refus': {'main_port_id': 21057093, 'sub_port_id': 21057161, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669047, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 35)}, 'mal_croppe': {'main_port_id': 21057093, 'sub_port_id': 21057162, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669048, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 35)}, 'environnement': {'main_port_id': 21057093, 'sub_port_id': 21057163, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13669049, 'last_updated_at': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 10, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 10, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21057152,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21057140 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21057153,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21057141 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21057154,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21057142 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21057155,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21057143 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21057156,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21057144 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21057157,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21057145 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21057158,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21057146 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21057159,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21057147 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21057160,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21057148 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21057161,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21057149 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21057162,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21057150 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21057163,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21057151 lien utilise dans velours : https://www.fotonower.com/velours/21057152,21057153,21057154,21057155,21057156,21057157,21057158,21057159,21057160,21057161,21057162,21057163?tags=Carton_brun,Carton_gris,kraft,cartonnette,papier,flou,Teint_Dans_La_Masse,metal,plastique,autre_refus,mal_croppe,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21057093]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340986985, 1340986976, 1340986970, 1340986968, 1340986887, 1340986884, 1340986877, 1340986871, 1340986860, 1340986815] map_info['map_portfolio_photo'] : {21057093: [1340986985, 1340986976, 1340986970, 1340986968, 1340986887, 1340986884, 1340986877, 1340986871, 1340986860, 1340986815, 1340986693, 1340986658, 1340986647, 1340986633, 1340986562, 1340986249, 1340986074, 1340986018, 1340986000, 1340985997, 1340985944, 1340985938, 1340985930, 1340985925, 1340985922, 1340985881, 1340985863, 1340985853, 1340985844, 1340985817, 1340985812, 1340985791, 1340985779, 1340985772]} final : False mtd_id 4302 list_pids : [1340986985, 1340986976, 1340986970, 1340986968, 1340986887, 1340986884, 1340986877, 1340986871, 1340986860, 1340986815] Looping around the photos to save general results len do output : 1 /21057093. 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, '2637172') ('4302', '21057093', '1340986985', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986976', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986970', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986968', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986887', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986884', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986877', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986871', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986860', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986815', None, None, None, None, None, '2637172') 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, '21057093', "{'Carton_brun': 21057140, 'Carton_gris': 21057141, 'kraft': 21057142, 'cartonnette': 21057143, 'papier': 21057144, 'flou': 21057145, 'Teint_Dans_La_Masse': 21057146, 'metal': 21057147, 'plastique': 21057148, 'autre_refus': 21057149, 'mal_croppe': 21057150, 'environnement': 21057151}", None, None, None, None, '2637172'), ('4302', '21057093', '1340986985', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986976', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986970', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986968', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986887', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986884', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986877', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986871', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986860', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986815', None, None, None, None, None, '2637172')] time used for this insertion : 0.015411376953125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6395885944366455 time spend to save output : 0.01578807830810547 total time spend for step 1 : 0.655376672744751 step2:final Wed Mar 5 10:38: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 (21057093) 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 21057093 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340985817,1340985812,1340985791,1340985779,1340985772,1340985881,1340985863,1340985853,1340985844,1340985944,1340985938,1340985930,1340985925,1340985922,1340986249,1340986074,1340986018,1340986000,1340985997,1340986693,1340986658,1340986647,1340986633,1340986562,1340986887,1340986884,1340986877,1340986871,1340986860,1340986815,1340986985,1340986976,1340986970,1340986968); 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([21057093]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ('0.07536138359709667',), 1340986887: ('0.07536138359709667',), 1340986884: ('0.07536138359709667',), 1340986877: ('0.07536138359709667',), 1340986871: ('0.07536138359709667',), 1340986860: ('0.07536138359709667',), 1340986815: ('0.07536138359709667',)} new output for save of step final : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ('0.07536138359709667',), 1340986887: ('0.07536138359709667',), 1340986884: ('0.07536138359709667',), 1340986877: ('0.07536138359709667',), 1340986871: ('0.07536138359709667',), 1340986860: ('0.07536138359709667',), 1340986815: ('0.07536138359709667',)} [1340986985, 1340986976, 1340986970, 1340986968, 1340986887, 1340986884, 1340986877, 1340986871, 1340986860, 1340986815] map_info['map_portfolio_photo'] : {21057093: [1340986985, 1340986976, 1340986970, 1340986968, 1340986887, 1340986884, 1340986877, 1340986871, 1340986860, 1340986815, 1340986693, 1340986658, 1340986647, 1340986633, 1340986562, 1340986249, 1340986074, 1340986018, 1340986000, 1340985997, 1340985944, 1340985938, 1340985930, 1340985925, 1340985922, 1340985881, 1340985863, 1340985853, 1340985844, 1340985817, 1340985812, 1340985791, 1340985779, 1340985772]} final : False mtd_id 4302 list_pids : [1340986985, 1340986976, 1340986970, 1340986968, 1340986887, 1340986884, 1340986877, 1340986871, 1340986860, 1340986815] Looping around the photos to save general results len do output : 10 /1340986985.Didn't retrieve data . /1340986976.Didn't retrieve data . /1340986970.Didn't retrieve data . /1340986968.Didn't retrieve data . /1340986887.Didn't retrieve data . /1340986884.Didn't retrieve data . /1340986877.Didn't retrieve data . /1340986871.Didn't retrieve data . /1340986860.Didn't retrieve data . /1340986815.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, '2637172') ('4302', '21057093', '1340986985', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986976', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986970', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986968', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986887', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986884', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986877', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986871', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986860', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986815', None, None, None, None, None, '2637172') 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', '21057093', '1340986985', '0.07536138359709667', None, None, None, None, '2637172'), ('4302', '21057093', '1340986976', '0.07536138359709667', None, None, None, None, '2637172'), ('4302', '21057093', '1340986970', '0.07536138359709667', None, None, None, None, '2637172'), ('4302', '21057093', '1340986968', '0.07536138359709667', None, None, None, None, '2637172'), ('4302', '21057093', '1340986887', '0.07536138359709667', None, None, None, None, '2637172'), ('4302', '21057093', '1340986884', '0.07536138359709667', None, None, None, None, '2637172'), ('4302', '21057093', '1340986877', '0.07536138359709667', None, None, None, None, '2637172'), ('4302', '21057093', '1340986871', '0.07536138359709667', None, None, None, None, '2637172'), ('4302', '21057093', '1340986860', '0.07536138359709667', None, None, None, None, '2637172'), ('4302', '21057093', '1340986815', '0.07536138359709667', None, None, None, None, '2637172')] time used for this insertion : 0.013393163681030273 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06798195838928223 time spend to save output : 0.014164209365844727 total time spend for step 2 : 0.08214616775512695 step3:velours_tree Wed Mar 5 10:38:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21057093: [{'Carton_brun': 21057140, 'Carton_gris': 21057141, 'kraft': 21057142, 'cartonnette': 21057143, 'papier': 21057144, 'flou': 21057145, 'Teint_Dans_La_Masse': 21057146, 'metal': 21057147, 'plastique': 21057148, 'autre_refus': 21057149, 'mal_croppe': 21057150, 'environnement': 21057151}]} input_args_next_step : {21057093: ()} output_args : {21057093: [{'Carton_brun': 21057140, 'Carton_gris': 21057141, 'kraft': 21057142, 'cartonnette': 21057143, 'papier': 21057144, 'flou': 21057145, 'Teint_Dans_La_Masse': 21057146, 'metal': 21057147, 'plastique': 21057148, 'autre_refus': 21057149, 'mal_croppe': 21057150, 'environnement': 21057151}]} args : 21057093 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 21057140, 'Carton_gris': 21057141, 'kraft': 21057142, 'cartonnette': 21057143, 'papier': 21057144, 'flou': 21057145, 'Teint_Dans_La_Masse': 21057146, 'metal': 21057147, 'plastique': 21057148, 'autre_refus': 21057149, 'mal_croppe': 21057150, 'environnement': 21057151},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21057093) 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([21057093]) 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.3935818672180176 time spend to save output : 8.416175842285156e-05 total time spend for step 3 : 0.39366602897644043 step4:send_mail_cod Wed Mar 5 10:38: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 : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ('0.07536138359709667',), 1340986887: ('0.07536138359709667',), 1340986884: ('0.07536138359709667',), 1340986877: ('0.07536138359709667',), 1340986871: ('0.07536138359709667',), 1340986860: ('0.07536138359709667',), 1340986815: ('0.07536138359709667',)} input_args_next_step : {1340986985: ()} output_args : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ('0.07536138359709667',), 1340986887: ('0.07536138359709667',), 1340986884: ('0.07536138359709667',), 1340986877: ('0.07536138359709667',), 1340986871: ('0.07536138359709667',), 1340986860: ('0.07536138359709667',), 1340986815: ('0.07536138359709667',)} args : 1340986985 depend.output_id : 0 input_args_next_step : {1340986985: ('0.07536138359709667',), 1340986976: ()} output_args : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ('0.07536138359709667',), 1340986887: ('0.07536138359709667',), 1340986884: ('0.07536138359709667',), 1340986877: ('0.07536138359709667',), 1340986871: ('0.07536138359709667',), 1340986860: ('0.07536138359709667',), 1340986815: ('0.07536138359709667',)} args : 1340986976 depend.output_id : 0 input_args_next_step : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ()} output_args : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ('0.07536138359709667',), 1340986887: ('0.07536138359709667',), 1340986884: ('0.07536138359709667',), 1340986877: ('0.07536138359709667',), 1340986871: ('0.07536138359709667',), 1340986860: ('0.07536138359709667',), 1340986815: ('0.07536138359709667',)} args : 1340986970 depend.output_id : 0 input_args_next_step : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ()} output_args : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ('0.07536138359709667',), 1340986887: ('0.07536138359709667',), 1340986884: ('0.07536138359709667',), 1340986877: ('0.07536138359709667',), 1340986871: ('0.07536138359709667',), 1340986860: ('0.07536138359709667',), 1340986815: ('0.07536138359709667',)} args : 1340986968 depend.output_id : 0 input_args_next_step : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ('0.07536138359709667',), 1340986887: ()} output_args : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ('0.07536138359709667',), 1340986887: ('0.07536138359709667',), 1340986884: ('0.07536138359709667',), 1340986877: ('0.07536138359709667',), 1340986871: ('0.07536138359709667',), 1340986860: ('0.07536138359709667',), 1340986815: ('0.07536138359709667',)} args : 1340986887 depend.output_id : 0 input_args_next_step : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ('0.07536138359709667',), 1340986887: ('0.07536138359709667',), 1340986884: ()} output_args : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ('0.07536138359709667',), 1340986887: ('0.07536138359709667',), 1340986884: ('0.07536138359709667',), 1340986877: ('0.07536138359709667',), 1340986871: ('0.07536138359709667',), 1340986860: ('0.07536138359709667',), 1340986815: ('0.07536138359709667',)} args : 1340986884 depend.output_id : 0 input_args_next_step : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ('0.07536138359709667',), 1340986887: ('0.07536138359709667',), 1340986884: ('0.07536138359709667',), 1340986877: ()} output_args : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ('0.07536138359709667',), 1340986887: ('0.07536138359709667',), 1340986884: ('0.07536138359709667',), 1340986877: ('0.07536138359709667',), 1340986871: ('0.07536138359709667',), 1340986860: ('0.07536138359709667',), 1340986815: ('0.07536138359709667',)} args : 1340986877 depend.output_id : 0 input_args_next_step : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ('0.07536138359709667',), 1340986887: ('0.07536138359709667',), 1340986884: ('0.07536138359709667',), 1340986877: ('0.07536138359709667',), 1340986871: ()} output_args : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ('0.07536138359709667',), 1340986887: ('0.07536138359709667',), 1340986884: ('0.07536138359709667',), 1340986877: ('0.07536138359709667',), 1340986871: ('0.07536138359709667',), 1340986860: ('0.07536138359709667',), 1340986815: ('0.07536138359709667',)} args : 1340986871 depend.output_id : 0 input_args_next_step : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ('0.07536138359709667',), 1340986887: ('0.07536138359709667',), 1340986884: ('0.07536138359709667',), 1340986877: ('0.07536138359709667',), 1340986871: ('0.07536138359709667',), 1340986860: ()} output_args : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ('0.07536138359709667',), 1340986887: ('0.07536138359709667',), 1340986884: ('0.07536138359709667',), 1340986877: ('0.07536138359709667',), 1340986871: ('0.07536138359709667',), 1340986860: ('0.07536138359709667',), 1340986815: ('0.07536138359709667',)} args : 1340986860 depend.output_id : 0 input_args_next_step : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ('0.07536138359709667',), 1340986887: ('0.07536138359709667',), 1340986884: ('0.07536138359709667',), 1340986877: ('0.07536138359709667',), 1340986871: ('0.07536138359709667',), 1340986860: ('0.07536138359709667',), 1340986815: ()} output_args : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ('0.07536138359709667',), 1340986887: ('0.07536138359709667',), 1340986884: ('0.07536138359709667',), 1340986877: ('0.07536138359709667',), 1340986871: ('0.07536138359709667',), 1340986860: ('0.07536138359709667',), 1340986815: ('0.07536138359709667',)} args : 1340986815 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 : {21057093: [{'Carton_brun': 21057140, 'Carton_gris': 21057141, 'kraft': 21057142, 'cartonnette': 21057143, 'papier': 21057144, 'flou': 21057145, 'Teint_Dans_La_Masse': 21057146, 'metal': 21057147, 'plastique': 21057148, 'autre_refus': 21057149, 'mal_croppe': 21057150, 'environnement': 21057151}]} input_args_next_step : {1340986985: ('0.07536138359709667',), 1340986976: ('0.07536138359709667',), 1340986970: ('0.07536138359709667',), 1340986968: ('0.07536138359709667',), 1340986887: ('0.07536138359709667',), 1340986884: ('0.07536138359709667',), 1340986877: ('0.07536138359709667',), 1340986871: ('0.07536138359709667',), 1340986860: ('0.07536138359709667',), 1340986815: ('0.07536138359709667',), 21057093: ()} output_args : {21057093: [{'Carton_brun': 21057140, 'Carton_gris': 21057141, 'kraft': 21057142, 'cartonnette': 21057143, 'papier': 21057144, 'flou': 21057145, 'Teint_Dans_La_Masse': 21057146, 'metal': 21057147, 'plastique': 21057148, 'autre_refus': 21057149, 'mal_croppe': 21057150, 'environnement': 21057151}]} args : 21057093 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.07536138359709667',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21057093) 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 (1340986985,1340986976,1340986970,1340986968,1340986887,1340986884,1340986877,1340986871,1340986860,1340986815) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340986815 begin to download photo : 1340986877 begin to download photo : 1340986968 begin to download photo : 1340986985 download finish for photo 1340986815 begin to download photo : 1340986860 download finish for photo 1340986877 begin to download photo : 1340986884 download finish for photo 1340986985 download finish for photo 1340986968 begin to download photo : 1340986970 download finish for photo 1340986860 begin to download photo : 1340986871 download finish for photo 1340986884 begin to download photo : 1340986887 download finish for photo 1340986970 begin to download photo : 1340986976 download finish for photo 1340986871 download finish for photo 1340986887 download finish for photo 1340986976 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette210571421741167538/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P21057093_05-03-2025_10_38_58.pdf 21057142 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=21057142 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210571421741167538 21057143 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=21057143 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340986668: '1741167233_2129081_1340985817_9ee0057698f0a9184895673f82550781_rle_crop_3694307413_0.png', 1340986670: '1741167233_2129081_1340985791_862c09840f61d30bdbe977c91f1f28f7_rle_crop_3694307478_0.png', 1340986672: '1741167233_2129081_1340985779_52c26bfff89a0f57317b2379970de91a_rle_crop_3694307508_0.png', 1340986674: '1741167233_2129081_1340985772_2dcba680b196069a99dbcf197a5d88bf_rle_crop_3694307521_0.png', 1340986676: '1741167233_2129081_1340985772_2dcba680b196069a99dbcf197a5d88bf_rle_crop_3694307522_0.png', 1340987019: '1741167352_2132121_1340985817_9ee0057698f0a9184895673f82550781_rle_crop_3694307413_0.png', 1340987020: '1741167352_2132121_1340985791_862c09840f61d30bdbe977c91f1f28f7_rle_crop_3694307478_0.png', 1340987021: '1741167352_2132121_1340985779_52c26bfff89a0f57317b2379970de91a_rle_crop_3694307508_0.png', 1340987022: '1741167352_2132121_1340985772_2dcba680b196069a99dbcf197a5d88bf_rle_crop_3694307521_0.png', 1340987023: '1741167352_2132121_1340985772_2dcba680b196069a99dbcf197a5d88bf_rle_crop_3694307522_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8454f033cc087bb7d35754212df47467_74959498.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/2390814be2a54dbc6b160536876c18e1_84620898.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/6307b9643dcc7bf3e124a37f6d5c7842_68695108.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f46dd17a858e6152bd7de6f2f7c9f4a1_94687432.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/ae7fdd6b86e4b1a0726d730d49b799a3_82004761.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8454f033cc087bb7d35754212df47467_53950751.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/2390814be2a54dbc6b160536876c18e1_67357568.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/6307b9643dcc7bf3e124a37f6d5c7842_83454281.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f46dd17a858e6152bd7de6f2f7c9f4a1_75321755.png change filename to text .imagette210571431741167538/ imagette210571431741167538/1741167352_2132121_1340985772_2dcba680b196069a99dbcf197a5d88bf_rle_crop_3694307522_0.png.png imagette210571431741167538/1741167352_2132121_1340985817_9ee0057698f0a9184895673f82550781_rle_crop_3694307413_0.png.png imagette210571431741167538/1741167233_2129081_1340985772_2dcba680b196069a99dbcf197a5d88bf_rle_crop_3694307521_0.png.png imagette210571431741167538/1741167233_2129081_1340985779_52c26bfff89a0f57317b2379970de91a_rle_crop_3694307508_0.png.png imagette210571431741167538/1741167352_2132121_1340985779_52c26bfff89a0f57317b2379970de91a_rle_crop_3694307508_0.png.png imagette210571431741167538/1741167352_2132121_1340985772_2dcba680b196069a99dbcf197a5d88bf_rle_crop_3694307521_0.png.png imagette210571431741167538/1741167233_2129081_1340985772_2dcba680b196069a99dbcf197a5d88bf_rle_crop_3694307522_0.png.png imagette210571431741167538/1741167352_2132121_1340985791_862c09840f61d30bdbe977c91f1f28f7_rle_crop_3694307478_0.png.png imagette210571431741167538/1741167233_2129081_1340985817_9ee0057698f0a9184895673f82550781_rle_crop_3694307413_0.png.png imagette210571431741167538/1741167233_2129081_1340985791_862c09840f61d30bdbe977c91f1f28f7_rle_crop_3694307478_0.png.png imagette210571451741167538/ imagette210571471741167539/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/ae7fdd6b86e4b1a0726d730d49b799a3_71005023.png imagette210571431741167538 21057145 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=21057145 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210571451741167538 21057147 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=21057147 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210571471741167539 21057148 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=21057148 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340987013: '1741167372_2132421_1340985944_55f225329001c3fa0b3d9d7b6d9e0c67_rle_crop_3694308613_0.png'} change filename to text .imagette210571481741167539/ imagette210571481741167539/1741167372_2132421_1340985944_55f225329001c3fa0b3d9d7b6d9e0c67_rle_crop_3694308613_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/58a2290a981a310406d42f98fc42ac02_26747968.png imagette210571481741167539 21057149 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=21057149 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340986652: '1741167233_2129081_1340985812_69a3bcff01dc85b161633ada5211df02_rle_crop_3694307451_0.png', 1340986653: '1741167233_2129081_1340985772_2dcba680b196069a99dbcf197a5d88bf_rle_crop_3694307530_0.png', 1340986997: '1741167372_2132421_1340985863_57e820048ab9ad8e96c3b9a2e0b06982_rle_crop_3694308629_0.png', 1340986998: '1741167372_2132421_1340985853_9fdfcfa4b1d9088321824356103099d9_rle_crop_3694308687_0.png', 1340987010: '1741167352_2132121_1340985881_44dc93e689a18881e82aae0322ca73f7_rle_crop_3694308577_0.png', 1340987011: '1741167352_2132121_1340985812_69a3bcff01dc85b161633ada5211df02_rle_crop_3694307451_0.png', 1340987012: '1741167352_2132121_1340985772_2dcba680b196069a99dbcf197a5d88bf_rle_crop_3694307530_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/2bc6ea7afd54ecd4727f74cc47784704_19960053.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5ffb4e386aa239c53822f70930fc8a19_45982481.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/a04905d2c2703c9095bcb81319aafe6e_3600096.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/47de30842af4f698ed0678cbff651f51_54584238.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3fdd48e1042e0f3e680a11356cf762ae_4750169.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/2bc6ea7afd54ecd4727f74cc47784704_45649664.png change filename to text .imagette210571491741167539/ imagette210571491741167539/1741167352_2132121_1340985812_69a3bcff01dc85b161633ada5211df02_rle_crop_3694307451_0.png.png imagette210571491741167539/1741167233_2129081_1340985812_69a3bcff01dc85b161633ada5211df02_rle_crop_3694307451_0.png.png imagette210571491741167539/1741167352_2132121_1340985772_2dcba680b196069a99dbcf197a5d88bf_rle_crop_3694307530_0.png.png imagette210571491741167539/1741167372_2132421_1340985853_9fdfcfa4b1d9088321824356103099d9_rle_crop_3694308687_0.png.png imagette210571491741167539/1741167352_2132121_1340985881_44dc93e689a18881e82aae0322ca73f7_rle_crop_3694308577_0.png.png imagette210571491741167539/1741167233_2129081_1340985772_2dcba680b196069a99dbcf197a5d88bf_rle_crop_3694307530_0.png.png imagette210571491741167539/1741167372_2132421_1340985863_57e820048ab9ad8e96c3b9a2e0b06982_rle_crop_3694308629_0.png.png imagette210571501741167539/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5ffb4e386aa239c53822f70930fc8a19_22719888.png imagette210571491741167539 21057150 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=21057150 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210571501741167539 21057140 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=21057140 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340987009: '1741167372_2132421_1340985844_32b743f32c71c89753b9c617632bf437_rle_crop_3694308732_0.png'} change filename to text .imagette210571401741167539/ imagette210571401741167539/1741167372_2132421_1340985844_32b743f32c71c89753b9c617632bf437_rle_crop_3694308732_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/d0878ac41d77a3d5e0b3cd4aecd7c3ab_30960147.png imagette210571401741167539 21057141 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=21057141 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340986659: '1741167233_2129081_1340985812_69a3bcff01dc85b161633ada5211df02_rle_crop_3694307447_0.png', 1340986660: '1741167233_2129081_1340985779_52c26bfff89a0f57317b2379970de91a_rle_crop_3694307510_0.png', 1340987006: '1741167372_2132421_1340985853_9fdfcfa4b1d9088321824356103099d9_rle_crop_3694308677_0.png', 1340987007: '1741167372_2132421_1340985844_32b743f32c71c89753b9c617632bf437_rle_crop_3694308730_0.png', 1340987015: '1741167352_2132121_1340985812_69a3bcff01dc85b161633ada5211df02_rle_crop_3694307447_0.png', 1340987016: '1741167352_2132121_1340985779_52c26bfff89a0f57317b2379970de91a_rle_crop_3694307510_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f05f049879d2dac08f8fbdbeb03f7a76_43157103.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/b5c13c5f6a155b9fed0c174d6b0f1a3f_97565560.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5eacfc38fb25ecc94b32953f74c74a3d_3484970.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/1518c125058bce2135b79ebc25ce3ba0_52127973.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f05f049879d2dac08f8fbdbeb03f7a76_68876813.png change filename to text .imagette210571411741167539/ imagette210571411741167539/1741167372_2132421_1340985844_32b743f32c71c89753b9c617632bf437_rle_crop_3694308730_0.png.png imagette210571411741167539/1741167233_2129081_1340985812_69a3bcff01dc85b161633ada5211df02_rle_crop_3694307447_0.png.png imagette210571411741167539/1741167352_2132121_1340985812_69a3bcff01dc85b161633ada5211df02_rle_crop_3694307447_0.png.png imagette210571411741167539/1741167233_2129081_1340985779_52c26bfff89a0f57317b2379970de91a_rle_crop_3694307510_0.png.png imagette210571411741167539/1741167372_2132421_1340985853_9fdfcfa4b1d9088321824356103099d9_rle_crop_3694308677_0.png.png imagette210571411741167539/1741167352_2132121_1340985779_52c26bfff89a0f57317b2379970de91a_rle_crop_3694307510_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/b5c13c5f6a155b9fed0c174d6b0f1a3f_2332240.png imagette210571411741167539 21057146 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=21057146 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340986641: '1741167233_2129081_1340985812_69a3bcff01dc85b161633ada5211df02_rle_crop_3694307449_0.png', 1340986645: '1741167233_2129081_1340985779_52c26bfff89a0f57317b2379970de91a_rle_crop_3694307514_0.png', 1340986995: '1741167372_2132421_1340985844_32b743f32c71c89753b9c617632bf437_rle_crop_3694308737_0.png', 1340987003: '1741167352_2132121_1340985812_69a3bcff01dc85b161633ada5211df02_rle_crop_3694307449_0.png', 1340987004: '1741167352_2132121_1340985779_52c26bfff89a0f57317b2379970de91a_bib_crop_3694307514_0.jpg', 1340987005: '1741167352_2132121_1340985779_52c26bfff89a0f57317b2379970de91a_rle_crop_3694308712_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/947c01b9e260116b0b939fb5ad066094_28284544.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/7f2c7120fdcaed47b3661d6063e85b8c_86736448.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/7b5ca17173e437434845973dc8e74961_67191375.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/947c01b9e260116b0b939fb5ad066094_16872035.png change filename to text .wget -O 5.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3d02b923fdca557f89b46872c6f601a8_1977844.jpg change filename to text .imagette210571461741167539/ imagette210571461741167539/1741167233_2129081_1340985779_52c26bfff89a0f57317b2379970de91a_rle_crop_3694307514_0.png.png imagette210571461741167539/1741167233_2129081_1340985812_69a3bcff01dc85b161633ada5211df02_rle_crop_3694307449_0.png.png imagette210571461741167539/1741167352_2132121_1340985812_69a3bcff01dc85b161633ada5211df02_rle_crop_3694307449_0.png.png imagette210571461741167539/1741167352_2132121_1340985779_52c26bfff89a0f57317b2379970de91a_rle_crop_3694308712_0.png.png imagette210571461741167539/1741167352_2132121_1340985779_52c26bfff89a0f57317b2379970de91a_bib_crop_3694307514_0.jpg.jpg imagette210571461741167539/1741167372_2132421_1340985844_32b743f32c71c89753b9c617632bf437_rle_crop_3694308737_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/04556d2db072859e7197d46c784b6362_77602567.png imagette210571461741167539 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21057093 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21057152,21057153,21057154,21057155,21057156,21057157,21057158,21057159,21057160,21057161,21057162,21057163?tags=Carton_brun,Carton_gris,kraft,cartonnette,papier,flou,Teint_Dans_La_Masse,metal,plastique,autre_refus,mal_croppe,environnement your option no_mail is active, we will not send the real mail to your client args[1340986985] : ('0.07536138359709667',) no score found for photo 1340986985 We are sending mail with results at report@fotonower.com args[1340986976] : ('0.07536138359709667',) no score found for photo 1340986976 We are sending mail with results at report@fotonower.com args[1340986970] : ('0.07536138359709667',) no score found for photo 1340986970 We are sending mail with results at report@fotonower.com args[1340986968] : ('0.07536138359709667',) no score found for photo 1340986968 We are sending mail with results at report@fotonower.com args[1340986887] : ('0.07536138359709667',) no score found for photo 1340986887 We are sending mail with results at report@fotonower.com args[1340986884] : ('0.07536138359709667',) no score found for photo 1340986884 We are sending mail with results at report@fotonower.com args[1340986877] : ('0.07536138359709667',) no score found for photo 1340986877 We are sending mail with results at report@fotonower.com args[1340986871] : ('0.07536138359709667',) no score found for photo 1340986871 We are sending mail with results at report@fotonower.com args[1340986860] : ('0.07536138359709667',) no score found for photo 1340986860 We are sending mail with results at report@fotonower.com args[1340986815] : ('0.07536138359709667',) no score found for photo 1340986815 We are sending mail with results at report@fotonower.com refus_total : 0.07536138359709667 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=21057093 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_P21057093_05-03-2025_10_38_58.pdf results_Auto_P21057093_05-03-2025_10_38_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21057093_05-03-2025_10_38_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','21057093','results_Auto_P21057093_05-03-2025_10_38_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21057093_05-03-2025_10_38_58.pdf','pdf','','0.16','0.07536138359709667') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21057093]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340986985, 1340986976, 1340986970, 1340986968, 1340986887, 1340986884, 1340986877, 1340986871, 1340986860, 1340986815] map_info['map_portfolio_photo'] : {21057093: [1340986985, 1340986976, 1340986970, 1340986968, 1340986887, 1340986884, 1340986877, 1340986871, 1340986860, 1340986815, 1340986693, 1340986658, 1340986647, 1340986633, 1340986562, 1340986249, 1340986074, 1340986018, 1340986000, 1340985997, 1340985944, 1340985938, 1340985930, 1340985925, 1340985922, 1340985881, 1340985863, 1340985853, 1340985844, 1340985817, 1340985812, 1340985791, 1340985779, 1340985772]} final : False mtd_id 4302 list_pids : [1340986985, 1340986976, 1340986970, 1340986968, 1340986887, 1340986884, 1340986877, 1340986871, 1340986860, 1340986815] 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, '2637172') ('4302', '21057093', '1340986985', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986976', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986970', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986968', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986887', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986884', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986877', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986871', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986860', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986815', None, None, None, None, None, '2637172') 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', '21057093', '1340986985', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986976', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986970', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986968', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986887', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986884', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986877', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986871', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986860', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986815', None, None, None, None, None, '2637172')] time used for this insertion : 0.013855695724487305 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.190676212310791 time spend to save output : 0.014158248901367188 total time spend for step 4 : 4.204834461212158 step5:split_time_score Wed Mar 5 10:39:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21057093'] 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 : [('21057093',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21057093) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340986985: {'path': 'temp/1741167538_491267_1340986985_6030043a45b49edd47ba7db5ba06234c.jpg', 'extension': 'jpg'}, 1340986815: {'path': 'temp/1741167538_491267_1340986815_42910a1fd3eb998e75a06dc4653ed211.jpg', 'extension': 'jpg'}, 1340986860: {'path': 'temp/1741167538_491267_1340986860_6be25296819bf569f94461b4620abca9.jpg', 'extension': 'jpg'}, 1340986871: {'path': 'temp/1741167538_491267_1340986871_6286885d1fc8a4c694b95e9aa30ecf1b.jpg', 'extension': 'jpg'}, 1340986877: {'path': 'temp/1741167538_491267_1340986877_5fdf8d1b1d450ffcb566b915cf493f5c.jpg', 'extension': 'jpg'}, 1340986884: {'path': 'temp/1741167538_491267_1340986884_26bd2635451ca0fbbe3bc92175e3d55c.jpg', 'extension': 'jpg'}, 1340986887: {'path': 'temp/1741167538_491267_1340986887_a0df065960f837d400b8cc955311723f.jpg', 'extension': 'jpg'}, 1340986968: {'path': 'temp/1741167538_491267_1340986968_5e275f649e59005a6fa4310d9537eda8.jpg', 'extension': 'jpg'}, 1340986970: {'path': 'temp/1741167538_491267_1340986970_88d6938dca1949371ceb6ced78fd37c9.jpg', 'extension': 'jpg'}, 1340986976: {'path': 'temp/1741167538_491267_1340986976_67f932ea61a56c71f5f9b1328f632535.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 = 21057093; (('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 = 21057093 group by h (('10', 34),) 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=21057093 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 (21057093) 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 (21057093) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05032025 21057093 Nombre de photos uploadées : 34 / 23040 (0%) 05032025 21057093 Nombre de photos taguées (types de déchets): 0 / 34 (0%) 05032025 21057093 Nombre de photos taguées (volume) : 0 / 34 (0%) [{'photo_id': 1340985817, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/9ee0057698f0a9184895673f82550781.jpg', 'username': None, 'uploaded_at': 1741167084, 'text': 'image_05032025_10_30_05_10141.jpg'}, {'photo_id': 1340985812, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/69a3bcff01dc85b161633ada5211df02.jpg', 'username': None, 'uploaded_at': 1741167084, 'text': 'image_05032025_10_30_15_10137.jpg'}, {'photo_id': 1340985791, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/862c09840f61d30bdbe977c91f1f28f7.jpg', 'username': None, 'uploaded_at': 1741167084, 'text': 'image_05032025_10_30_25_10134.jpg'}, {'photo_id': 1340985779, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/52c26bfff89a0f57317b2379970de91a.jpg', 'username': None, 'uploaded_at': 1741167084, 'text': 'image_05032025_10_30_34_9124.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 7.3909759521484375e-06 ?????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012478828430175781 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21057093, '2025-03-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1639483,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023790359497070312 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= 1639483 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1639483, 'dashboard_run_id': 1648475, 'mtr_portfolio_id': 21055376, 'dashboard_result_id': 9227371, '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_P21055376_05-03-2025_10_02_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21055393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21055394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21055395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21055396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21055397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21055398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21055399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21055400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21055401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21055402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21055403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21055404, 'pht': 3726}}"}, {'dashboat_entry_day': 1639483, 'dashboard_run_id': 1648475, 'mtr_portfolio_id': 21055994, 'dashboard_result_id': 9227372, '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_P21055994_05-03-2025_10_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21056056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21056057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21056058, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21056059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21056060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21056061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21056062, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21056063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21056064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21056065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21056066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21056067, 'pht': 3726}}"}, {'dashboat_entry_day': 1639483, 'dashboard_run_id': 1648475, 'mtr_portfolio_id': 21056557, 'dashboard_result_id': 9227373, '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_P21056557_05-03-2025_10_33_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21056599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21056600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21056601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21056602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21056603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21056604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21056605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21056606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21056607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21056608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21056609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21056610, 'pht': 3726}}"}, {'dashboat_entry_day': 1639483, 'dashboard_run_id': 1648475, 'mtr_portfolio_id': 21057093, 'dashboard_result_id': 9227374, '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_P21057093_05-03-2025_10_36_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21057140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21057141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21057142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21057143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21057144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21057145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21057146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21057147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21057148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21057149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21057150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21057151, '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 = 21055376 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': 2636889, 'mtr_portfolio_id': 21055376, 'created_at': datetime.datetime(2025, 3, 5, 10, 2, 30), 'result': '0.07375733454228972', 'result_long': None, 'result_double': None}] Qualite : 0.07375733454228972 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21055376 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21055376_05-03-2025_10_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21055376 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_P21055376_05-03-2025_10_02_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21055393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21055394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21055395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21055396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21055397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21055398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21055399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21055400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21055401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21055402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21055403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21055404, 'pht': 3726}}" where mtr_portfolio_id = 21055376 and dashboard_run_id = 1648475 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`=21055376 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9227371, 0.07375733454228972, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21055376_05-03-2025_10_02_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21055393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21055394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21055395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21055396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21055397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21055398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21055399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21055400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21055401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21055402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21055403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21055404, '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 = 21055994 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': 2636999, 'mtr_portfolio_id': 21055994, 'created_at': datetime.datetime(2025, 3, 5, 10, 18, 58), 'result': '0.08450834096634112', 'result_long': None, 'result_double': None}] Qualite : 0.08450834096634112 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21055994 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21055994_05-03-2025_10_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21055994 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_P21055994_05-03-2025_10_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21056056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21056057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21056058, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21056059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21056060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21056061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21056062, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21056063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21056064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21056065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21056066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21056067, 'pht': 3726}}" where mtr_portfolio_id = 21055994 and dashboard_run_id = 1648475 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`=21055994 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9227372, 0.08450834096634112, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21055994_05-03-2025_10_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21056056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21056057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21056058, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21056059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21056060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21056061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21056062, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21056063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21056064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21056065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21056066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21056067, '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 = 21056557 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': 2637050, 'mtr_portfolio_id': 21056557, 'created_at': datetime.datetime(2025, 3, 5, 10, 33, 1), 'result': '0.0727461843324288', 'result_long': None, 'result_double': None}] Qualite : 0.0727461843324288 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21056557 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21056557_05-03-2025_10_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21056557 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_P21056557_05-03-2025_10_33_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21056599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21056600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21056601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21056602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21056603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21056604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21056605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21056606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21056607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21056608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21056609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21056610, 'pht': 3726}}" where mtr_portfolio_id = 21056557 and dashboard_run_id = 1648475 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`=21056557 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9227373, 0.0727461843324288, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21056557_05-03-2025_10_33_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21056599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21056600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21056601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21056602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21056603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21056604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21056605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21056606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21056607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21056608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21056609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21056610, '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 = 21057093 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': 2637172, 'mtr_portfolio_id': 21057093, 'created_at': datetime.datetime(2025, 3, 5, 10, 38, 57), 'result': '0.07536138359709667', 'result_long': None, 'result_double': None}] Qualite : 0.07536138359709667 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21057093 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21057093_05-03-2025_10_38_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21057093 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_P21057093_05-03-2025_10_38_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21057140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21057141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21057142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21057143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21057144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21057145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21057146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21057147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21057148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21057149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21057150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21057151, 'pht': 3726}}" where mtr_portfolio_id = 21057093 and dashboard_run_id = 1648475 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`=21057093 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9227374, 0.07536138359709667, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21057093_05-03-2025_10_38_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21057140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21057141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21057142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21057143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21057144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21057145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21057146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21057147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21057148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21057149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21057150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21057151, '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 (21055376,21055994,21056557,21057093) result : ((1340978333,), (1340978596,), (1340978632,), (1340978677,), (1340978683,), (1340978688,), (1340979288,), (1340979308,), (1340979313,), (1340979317,), (1340979533,), (1340979541,), (1340979543,), (1340979549,), (1340979683,), (1340979688,), (1340979694,), (1340979759,), (1340979763,), (1340979768,), (1340979801,), (1340979819,), (1340979822,), (1340979826,), (1340979858,), (1340979863,), (1340979866,), (1340979928,), (1340980013,), (1340980068,), (1340980078,), (1340980084,), (1340980148,), (1340980154,), (1340980160,), (1340980164,), (1340980308,), (1340980383,), (1340980453,), (1340980687,), (1340980701,), (1340980716,), (1340980729,), (1340980768,), (1340980760,), (1340980764,), (1340980996,), (1340981030,), (1340981080,), (1340981383,), (1340981407,), (1340981412,), (1340981455,), (1340981473,), (1340981610,), (1340981611,), (1340981616,), (1340981624,), (1340981770,), (1340981807,), (1340982918,), (1340982923,), (1340982927,), (1340982963,), (1340982966,), (1340982978,), (1340982989,), (1340982996,), (1340982999,), (1340983031,), (1340983069,), (1340983079,), (1340983086,), (1340983091,), (1340983115,), (1340983210,), (1340983216,), (1340983223,), (1340983334,), (1340983309,), (1340983314,), (1340983319,), (1340983326,), (1340983330,), (1340983356,), (1340983361,), (1340983366,), (1340983371,), (1340983375,), (1340983379,), (1340983445,), (1340983452,), (1340983456,), (1340983681,), (1340983686,), (1340983708,), (1340983720,), (1340983727,), (1340983736,), (1340983768,), (1340983772,), (1340983777,), (1340983780,), (1340983785,), (1340983790,), (1340983814,), (1340983818,), (1340983821,), (1340983825,), (1340983915,), (1340983918,), (1340983930,), (1340983935,), (1340984024,), (1340984046,), (1340984050,), (1340984061,), (1340984066,), (1340984073,), (1340984109,), (1340984114,), (1340984116,), (1340984120,), (1340984170,), (1340984183,), (1340984207,), (1340984215,), (1340984221,), (1340984227,), (1340984244,), (1340984248,), (1340984276,), (1340984284,), (1340984290,), (1340984488,), (1340984496,), (1340984507,), (1340984658,), (1340984663,), (1340984670,), (1340984680,), (1340984740,), (1340984810,), (1340984852,), (1340984856,), (1340984871,), (1340984880,), (1340984884,), (1340984888,), (1340985548,), (1340985557,), (1340985562,), (1340985570,), (1340985822,), (1340985772,), (1340985779,), (1340985791,), (1340985812,), (1340985817,), (1340985844,), (1340985853,), (1340985863,), (1340985881,), (1340985922,), (1340985925,), (1340985930,), (1340985938,), (1340985944,), (1340985997,), (1340986000,), (1340986018,), (1340986074,), (1340986249,), (1340986562,), (1340986633,), (1340986647,), (1340986658,), (1340986693,), (1340986815,), (1340986860,), (1340986871,), (1340986877,), (1340986884,), (1340986887,), (1340986968,), (1340986970,), (1340986976,), (1340986985,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05032025': {'nb_upload': 34, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21057093]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340986985, 1340986976, 1340986970, 1340986968, 1340986887, 1340986884, 1340986877, 1340986871, 1340986860, 1340986815] map_info['map_portfolio_photo'] : {21057093: [1340986985, 1340986976, 1340986970, 1340986968, 1340986887, 1340986884, 1340986877, 1340986871, 1340986860, 1340986815, 1340986693, 1340986658, 1340986647, 1340986633, 1340986562, 1340986249, 1340986074, 1340986018, 1340986000, 1340985997, 1340985944, 1340985938, 1340985930, 1340985925, 1340985922, 1340985881, 1340985863, 1340985853, 1340985844, 1340985817, 1340985812, 1340985791, 1340985779, 1340985772]} final : True mtd_id 4302 list_pids : [1340986985, 1340986976, 1340986970, 1340986968, 1340986887, 1340986884, 1340986877, 1340986871, 1340986860, 1340986815] Looping around the photos to save general results len do output : 1 /21057093Didn'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, '2637172') ('4302', '21057093', '1340986985', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986976', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986970', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986968', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986887', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986884', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986877', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986871', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986860', None, None, None, None, None, '2637172') ('4302', None, None, None, None, None, None, None, '2637172') ('4302', '21057093', '1340986815', None, None, None, None, None, '2637172') 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, '21057093', 'None', None, None, None, None, '2637172'), ('4302', '21057093', '1340986985', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986976', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986970', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986968', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986887', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986884', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986877', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986871', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986860', None, None, None, None, None, '2637172'), ('4302', '21057093', '1340986815', None, None, None, None, None, '2637172')] time used for this insertion : 0.013090848922729492 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3764963150024414 time spend to save output : 0.013324499130249023 total time spend for step 5 : 0.38982081413269043 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 (2637172) 2.41user 2.09system 0:07.51elapsed 60%CPU (0avgtext+0avgdata 157972maxresident)k 1304inputs+9624outputs (36major+73518minor)pagefaults 0swaps