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 : 3177885 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 (2702882) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2702882) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21857089 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2702882'] with mtr_portfolio_ids : ['21857089'] and first list_photo_ids : [] new path : /proc/3177885/ Name: python3 Umask: 0002 State: R (running) Tgid: 3177885 Ngid: 0 Pid: 3177885 PPid: 3177884 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3177885 NSpid: 3177885 NSpgid: 3154565 NSsid: 3154565 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98376 kB VmRSS: 98376 kB RssAnon: 59760 kB RssFile: 38616 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 49 nonvoluntary_ctxt_switches: 41 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3177885', 'Ngid': '0', 'Pid': '3177885', 'PPid': '3177884', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3177885', 'NSpid': '3177885', 'NSpgid': '3154565', 'NSsid': '3154565', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98376 kB', 'VmRSS': '98376 kB', 'RssAnon': '59760 kB', 'RssFile': '38616 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '49', 'nonvoluntary_ctxt_switches': '41'} ('datou_batch_current', '3177885', '1106928', '0', '1106928', '865676', '98376', b'', 'marlene', '2702882') 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 (21857089) 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 (2702882 ) ) 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 (21857089) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1348339434, 'portfolio_id': 21857089}, {'photo_id': 1348339406, 'portfolio_id': 21857089}, {'photo_id': 1348339379, 'portfolio_id': 21857089}, {'photo_id': 1348339352, 'portfolio_id': 21857089}, {'photo_id': 1348339321, 'portfolio_id': 21857089}, {'photo_id': 1348339293, 'portfolio_id': 21857089}, {'photo_id': 1348339149, 'portfolio_id': 21857089}, {'photo_id': 1348339145, 'portfolio_id': 21857089}, {'photo_id': 1348339141, 'portfolio_id': 21857089}, {'photo_id': 1348339136, 'portfolio_id': 21857089}, {'photo_id': 1348339115, 'portfolio_id': 21857089}, {'photo_id': 1348339110, 'portfolio_id': 21857089}, {'photo_id': 1348339108, 'portfolio_id': 21857089}, {'photo_id': 1348339100, 'portfolio_id': 21857089}, {'photo_id': 1348339093, 'portfolio_id': 21857089}, {'photo_id': 1348339089, 'portfolio_id': 21857089}, {'photo_id': 1348339050, 'portfolio_id': 21857089}, {'photo_id': 1348339045, 'portfolio_id': 21857089}, {'photo_id': 1348339015, 'portfolio_id': 21857089}, {'photo_id': 1348338927, 'portfolio_id': 21857089}, {'photo_id': 1348338915, 'portfolio_id': 21857089}, {'photo_id': 1348338900, 'portfolio_id': 21857089}, {'photo_id': 1348338875, 'portfolio_id': 21857089}, {'photo_id': 1348338834, 'portfolio_id': 21857089}, {'photo_id': 1348338822, 'portfolio_id': 21857089}, {'photo_id': 1348338718, 'portfolio_id': 21857089}, {'photo_id': 1348338710, 'portfolio_id': 21857089}, {'photo_id': 1348338702, 'portfolio_id': 21857089}, {'photo_id': 1348338699, 'portfolio_id': 21857089}, {'photo_id': 1348338665, 'portfolio_id': 21857089}, {'photo_id': 1348338585, 'portfolio_id': 21857089}, {'photo_id': 1348338581, 'portfolio_id': 21857089}, {'photo_id': 1348338576, 'portfolio_id': 21857089}, {'photo_id': 1348338531, 'portfolio_id': 21857089}, {'photo_id': 1348338508, 'portfolio_id': 21857089}, {'photo_id': 1348338481, 'portfolio_id': 21857089}, {'photo_id': 1348338448, 'portfolio_id': 21857089}, {'photo_id': 1348338366, 'portfolio_id': 21857089}, {'photo_id': 1348338357, 'portfolio_id': 21857089}, {'photo_id': 1348338352, 'portfolio_id': 21857089}, {'photo_id': 1348338348, 'portfolio_id': 21857089}, {'photo_id': 1348338278, 'portfolio_id': 21857089}, {'photo_id': 1348338244, 'portfolio_id': 21857089}, {'photo_id': 1348338206, 'portfolio_id': 21857089}, {'photo_id': 1348338184, 'portfolio_id': 21857089}, {'photo_id': 1348338151, 'portfolio_id': 21857089}, {'photo_id': 1348338078, 'portfolio_id': 21857089}, {'photo_id': 1348338065, 'portfolio_id': 21857089}, {'photo_id': 1348337852, 'portfolio_id': 21857089}, {'photo_id': 1348337844, 'portfolio_id': 21857089}, {'photo_id': 1348337803, 'portfolio_id': 21857089}, {'photo_id': 1348337800, 'portfolio_id': 21857089}, {'photo_id': 1348337797, 'portfolio_id': 21857089}, {'photo_id': 1348337793, 'portfolio_id': 21857089}, {'photo_id': 1348337790, 'portfolio_id': 21857089}] map_portfolio_id_photo_id: {21857089: [1348339434, 1348339406, 1348339379, 1348339352, 1348339321, 1348339293, 1348339149, 1348339145, 1348339141, 1348339136, 1348339115, 1348339110, 1348339108, 1348339100, 1348339093, 1348339089, 1348339050, 1348339045, 1348339015, 1348338927, 1348338915, 1348338900, 1348338875, 1348338834, 1348338822, 1348338718, 1348338710, 1348338702, 1348338699, 1348338665, 1348338585, 1348338581, 1348338576, 1348338531, 1348338508, 1348338481, 1348338448, 1348338366, 1348338357, 1348338352, 1348338348, 1348338278, 1348338244, 1348338206, 1348338184, 1348338151, 1348338078, 1348338065, 1348337852, 1348337844, 1348337803, 1348337800, 1348337797, 1348337793, 1348337790]} ##### 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.01612544059753418 #### 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 Fri Mar 28 19:01:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21857089) 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 : 21857089 get user id for portfolio 21857089 get sub ptf for main ptf 21857089, type 3726 and hashtags ['Carton_brun', 'flou', 'Teint_Dans_La_Masse', 'environnement', 'cartonnette', 'autre_refus', 'plastique', 'metal', 'mal_croppe', 'papier', 'Carton_gris', 'kraft'] 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`=21857089 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','Teint_Dans_La_Masse','environnement','cartonnette','autre_refus','plastique','metal','mal_croppe','papier','Carton_gris','kraft')) 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`=21857089 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','Teint_Dans_La_Masse','environnement','cartonnette','autre_refus','plastique','metal','mal_croppe','papier','Carton_gris','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21857089, 'sub_port_id': 21857117, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370969, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 57)}, 'papier': {'main_port_id': 21857089, 'sub_port_id': 21857118, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370970, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21857089, 'sub_port_id': 21857119, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370971, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 57)}, 'Carton_gris': {'main_port_id': 21857089, 'sub_port_id': 21857120, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370972, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 57)}, 'metal': {'main_port_id': 21857089, 'sub_port_id': 21857121, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370973, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 57)}, 'Carton_brun': {'main_port_id': 21857089, 'sub_port_id': 21857122, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370974, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 57)}, 'cartonnette': {'main_port_id': 21857089, 'sub_port_id': 21857123, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370975, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 57)}, 'flou': {'main_port_id': 21857089, 'sub_port_id': 21857124, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370976, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 57)}, 'environnement': {'main_port_id': 21857089, 'sub_port_id': 21857125, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370977, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 57)}, 'mal_croppe': {'main_port_id': 21857089, 'sub_port_id': 21857126, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370978, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 57)}, 'plastique': {'main_port_id': 21857089, 'sub_port_id': 21857127, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370979, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 57)}, 'kraft': {'main_port_id': 21857089, 'sub_port_id': 21857128, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370980, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21857117 , 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=21857089 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 (21857117) result : ((1348338541,), (1348338817,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21857089) result : ((1348337790,), (1348337793,), (1348337797,), (1348337800,), (1348337803,), (1348337844,), (1348337852,), (1348338065,), (1348338078,), (1348338151,), (1348338184,), (1348338206,), (1348338244,), (1348338278,), (1348338348,), (1348338352,), (1348338357,), (1348338366,), (1348338448,), (1348338481,), (1348338508,), (1348338531,), (1348338576,), (1348338581,), (1348338585,), (1348338665,), (1348338699,), (1348338702,), (1348338710,), (1348338718,), (1348338822,), (1348338834,), (1348338875,), (1348338900,), (1348338915,), (1348338927,), (1348339015,), (1348339045,), (1348339050,), (1348339089,), (1348339093,), (1348339100,), (1348339108,), (1348339110,), (1348339115,), (1348339136,), (1348339141,), (1348339145,), (1348339149,), (1348339293,), (1348339321,), (1348339352,), (1348339379,), (1348339406,), (1348339434,)) 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 (1348337800,1348339100,1348338900) 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 21857118 , 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=21857089 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 (21857118) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21857089) result : ((1348337790,), (1348337793,), (1348337797,), (1348337800,), (1348337803,), (1348337844,), (1348337852,), (1348338065,), (1348338078,), (1348338151,), (1348338184,), (1348338206,), (1348338244,), (1348338278,), (1348338348,), (1348338352,), (1348338357,), (1348338366,), (1348338448,), (1348338481,), (1348338508,), (1348338531,), (1348338576,), (1348338581,), (1348338585,), (1348338665,), (1348338699,), (1348338702,), (1348338710,), (1348338718,), (1348338822,), (1348338834,), (1348338875,), (1348338900,), (1348338915,), (1348338927,), (1348339015,), (1348339045,), (1348339050,), (1348339089,), (1348339093,), (1348339100,), (1348339108,), (1348339110,), (1348339115,), (1348339136,), (1348339141,), (1348339145,), (1348339149,), (1348339293,), (1348339321,), (1348339352,), (1348339379,), (1348339406,), (1348339434,)) 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 (1348337800,1348339100,1348338900) 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 21857119 , 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=21857089 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 (21857119) result : ((1348338811,), (1348338812,), (1348338813,), (1348338814,), (1348338828,), (1348338829,), (1348338830,), (1348339074,), (1348339094,), (1348339096,), (1348339097,), (1348339673,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21857089) result : ((1348337790,), (1348337793,), (1348337797,), (1348337800,), (1348337803,), (1348337844,), (1348337852,), (1348338065,), (1348338078,), (1348338151,), (1348338184,), (1348338206,), (1348338244,), (1348338278,), (1348338348,), (1348338352,), (1348338357,), (1348338366,), (1348338448,), (1348338481,), (1348338508,), (1348338531,), (1348338576,), (1348338581,), (1348338585,), (1348338665,), (1348338699,), (1348338702,), (1348338710,), (1348338718,), (1348338822,), (1348338834,), (1348338875,), (1348338900,), (1348338915,), (1348338927,), (1348339015,), (1348339045,), (1348339050,), (1348339089,), (1348339093,), (1348339100,), (1348339108,), (1348339110,), (1348339115,), (1348339136,), (1348339141,), (1348339145,), (1348339149,), (1348339293,), (1348339321,), (1348339352,), (1348339379,), (1348339406,), (1348339434,)) 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 (1348337800,1348339100,1348338900) 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 21857120 , 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=21857089 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 (21857120) result : ((1348338819,), (1348339098,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21857089) result : ((1348337790,), (1348337793,), (1348337797,), (1348337800,), (1348337803,), (1348337844,), (1348337852,), (1348338065,), (1348338078,), (1348338151,), (1348338184,), (1348338206,), (1348338244,), (1348338278,), (1348338348,), (1348338352,), (1348338357,), (1348338366,), (1348338448,), (1348338481,), (1348338508,), (1348338531,), (1348338576,), (1348338581,), (1348338585,), (1348338665,), (1348338699,), (1348338702,), (1348338710,), (1348338718,), (1348338822,), (1348338834,), (1348338875,), (1348338900,), (1348338915,), (1348338927,), (1348339015,), (1348339045,), (1348339050,), (1348339089,), (1348339093,), (1348339100,), (1348339108,), (1348339110,), (1348339115,), (1348339136,), (1348339141,), (1348339145,), (1348339149,), (1348339293,), (1348339321,), (1348339352,), (1348339379,), (1348339406,), (1348339434,)) 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 (1348337800,1348339100,1348338900) 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 21857121 , 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=21857089 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 (21857121) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21857089) result : ((1348337790,), (1348337793,), (1348337797,), (1348337800,), (1348337803,), (1348337844,), (1348337852,), (1348338065,), (1348338078,), (1348338151,), (1348338184,), (1348338206,), (1348338244,), (1348338278,), (1348338348,), (1348338352,), (1348338357,), (1348338366,), (1348338448,), (1348338481,), (1348338508,), (1348338531,), (1348338576,), (1348338581,), (1348338585,), (1348338665,), (1348338699,), (1348338702,), (1348338710,), (1348338718,), (1348338822,), (1348338834,), (1348338875,), (1348338900,), (1348338915,), (1348338927,), (1348339015,), (1348339045,), (1348339050,), (1348339089,), (1348339093,), (1348339100,), (1348339108,), (1348339110,), (1348339115,), (1348339136,), (1348339141,), (1348339145,), (1348339149,), (1348339293,), (1348339321,), (1348339352,), (1348339379,), (1348339406,), (1348339434,)) 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 (1348337800,1348339100,1348338900) 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 21857122 , 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=21857089 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 (21857122) result : ((1348338363,), (1348338821,), (1348339101,), (1348339102,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21857089) result : ((1348337790,), (1348337793,), (1348337797,), (1348337800,), (1348337803,), (1348337844,), (1348337852,), (1348338065,), (1348338078,), (1348338151,), (1348338184,), (1348338206,), (1348338244,), (1348338278,), (1348338348,), (1348338352,), (1348338357,), (1348338366,), (1348338448,), (1348338481,), (1348338508,), (1348338531,), (1348338576,), (1348338581,), (1348338585,), (1348338665,), (1348338699,), (1348338702,), (1348338710,), (1348338718,), (1348338822,), (1348338834,), (1348338875,), (1348338900,), (1348338915,), (1348338927,), (1348339015,), (1348339045,), (1348339050,), (1348339089,), (1348339093,), (1348339100,), (1348339108,), (1348339110,), (1348339115,), (1348339136,), (1348339141,), (1348339145,), (1348339149,), (1348339293,), (1348339321,), (1348339352,), (1348339379,), (1348339406,), (1348339434,)) 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 (1348337800,1348339100,1348338900) 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 21857123 , 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=21857089 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 (21857123) result : ((1348338359,), (1348338360,), (1348338361,), (1348338542,), (1348338820,), (1348338832,), (1348338833,), (1348339676,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21857089) result : ((1348337790,), (1348337793,), (1348337797,), (1348337800,), (1348337803,), (1348337844,), (1348337852,), (1348338065,), (1348338078,), (1348338151,), (1348338184,), (1348338206,), (1348338244,), (1348338278,), (1348338348,), (1348338352,), (1348338357,), (1348338366,), (1348338448,), (1348338481,), (1348338508,), (1348338531,), (1348338576,), (1348338581,), (1348338585,), (1348338665,), (1348338699,), (1348338702,), (1348338710,), (1348338718,), (1348338822,), (1348338834,), (1348338875,), (1348338900,), (1348338915,), (1348338927,), (1348339015,), (1348339045,), (1348339050,), (1348339089,), (1348339093,), (1348339100,), (1348339108,), (1348339110,), (1348339115,), (1348339136,), (1348339141,), (1348339145,), (1348339149,), (1348339293,), (1348339321,), (1348339352,), (1348339379,), (1348339406,), (1348339434,)) 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 (1348337800,1348339100,1348338900) 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 21857124 , 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=21857089 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 (21857124) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21857089) result : ((1348337790,), (1348337793,), (1348337797,), (1348337800,), (1348337803,), (1348337844,), (1348337852,), (1348338065,), (1348338078,), (1348338151,), (1348338184,), (1348338206,), (1348338244,), (1348338278,), (1348338348,), (1348338352,), (1348338357,), (1348338366,), (1348338448,), (1348338481,), (1348338508,), (1348338531,), (1348338576,), (1348338581,), (1348338585,), (1348338665,), (1348338699,), (1348338702,), (1348338710,), (1348338718,), (1348338822,), (1348338834,), (1348338875,), (1348338900,), (1348338915,), (1348338927,), (1348339015,), (1348339045,), (1348339050,), (1348339089,), (1348339093,), (1348339100,), (1348339108,), (1348339110,), (1348339115,), (1348339136,), (1348339141,), (1348339145,), (1348339149,), (1348339293,), (1348339321,), (1348339352,), (1348339379,), (1348339406,), (1348339434,)) 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 (1348337800,1348339100,1348338900) 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 21857125 , 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=21857089 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 (21857125) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21857089) result : ((1348337790,), (1348337793,), (1348337797,), (1348337800,), (1348337803,), (1348337844,), (1348337852,), (1348338065,), (1348338078,), (1348338151,), (1348338184,), (1348338206,), (1348338244,), (1348338278,), (1348338348,), (1348338352,), (1348338357,), (1348338366,), (1348338448,), (1348338481,), (1348338508,), (1348338531,), (1348338576,), (1348338581,), (1348338585,), (1348338665,), (1348338699,), (1348338702,), (1348338710,), (1348338718,), (1348338822,), (1348338834,), (1348338875,), (1348338900,), (1348338915,), (1348338927,), (1348339015,), (1348339045,), (1348339050,), (1348339089,), (1348339093,), (1348339100,), (1348339108,), (1348339110,), (1348339115,), (1348339136,), (1348339141,), (1348339145,), (1348339149,), (1348339293,), (1348339321,), (1348339352,), (1348339379,), (1348339406,), (1348339434,)) 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 (1348337800,1348339100,1348338900) 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 21857126 , 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=21857089 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 (21857126) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21857089) result : ((1348337790,), (1348337793,), (1348337797,), (1348337800,), (1348337803,), (1348337844,), (1348337852,), (1348338065,), (1348338078,), (1348338151,), (1348338184,), (1348338206,), (1348338244,), (1348338278,), (1348338348,), (1348338352,), (1348338357,), (1348338366,), (1348338448,), (1348338481,), (1348338508,), (1348338531,), (1348338576,), (1348338581,), (1348338585,), (1348338665,), (1348338699,), (1348338702,), (1348338710,), (1348338718,), (1348338822,), (1348338834,), (1348338875,), (1348338900,), (1348338915,), (1348338927,), (1348339015,), (1348339045,), (1348339050,), (1348339089,), (1348339093,), (1348339100,), (1348339108,), (1348339110,), (1348339115,), (1348339136,), (1348339141,), (1348339145,), (1348339149,), (1348339293,), (1348339321,), (1348339352,), (1348339379,), (1348339406,), (1348339434,)) 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 (1348337800,1348339100,1348338900) 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 21857127 , 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=21857089 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 (21857127) result : ((1348338364,), (1348338823,), (1348338824,), (1348338869,), (1348338870,), (1348338871,), (1348339639,), (1348339679,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21857089) result : ((1348337790,), (1348337793,), (1348337797,), (1348337800,), (1348337803,), (1348337844,), (1348337852,), (1348338065,), (1348338078,), (1348338151,), (1348338184,), (1348338206,), (1348338244,), (1348338278,), (1348338348,), (1348338352,), (1348338357,), (1348338366,), (1348338448,), (1348338481,), (1348338508,), (1348338531,), (1348338576,), (1348338581,), (1348338585,), (1348338665,), (1348338699,), (1348338702,), (1348338710,), (1348338718,), (1348338822,), (1348338834,), (1348338875,), (1348338900,), (1348338915,), (1348338927,), (1348339015,), (1348339045,), (1348339050,), (1348339089,), (1348339093,), (1348339100,), (1348339108,), (1348339110,), (1348339115,), (1348339136,), (1348339141,), (1348339145,), (1348339149,), (1348339293,), (1348339321,), (1348339352,), (1348339379,), (1348339406,), (1348339434,)) 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 (1348337800,1348339100,1348338900) 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 21857128 , 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=21857089 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 (21857128) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21857089) result : ((1348337790,), (1348337793,), (1348337797,), (1348337800,), (1348337803,), (1348337844,), (1348337852,), (1348338065,), (1348338078,), (1348338151,), (1348338184,), (1348338206,), (1348338244,), (1348338278,), (1348338348,), (1348338352,), (1348338357,), (1348338366,), (1348338448,), (1348338481,), (1348338508,), (1348338531,), (1348338576,), (1348338581,), (1348338585,), (1348338665,), (1348338699,), (1348338702,), (1348338710,), (1348338718,), (1348338822,), (1348338834,), (1348338875,), (1348338900,), (1348338915,), (1348338927,), (1348339015,), (1348339045,), (1348339050,), (1348339089,), (1348339093,), (1348339100,), (1348339108,), (1348339110,), (1348339115,), (1348339136,), (1348339141,), (1348339145,), (1348339149,), (1348339293,), (1348339321,), (1348339352,), (1348339379,), (1348339406,), (1348339434,)) 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 (1348337800,1348339100,1348338900) 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`=21857089 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','Teint_Dans_La_Masse','environnement','cartonnette','autre_refus','plastique','metal','mal_croppe','papier','Carton_gris','kraft')) 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`=21857089 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','Teint_Dans_La_Masse','environnement','cartonnette','autre_refus','plastique','metal','mal_croppe','papier','Carton_gris','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21857089, 'sub_port_id': 21857129, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370981, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 58)}, 'papier': {'main_port_id': 21857089, 'sub_port_id': 21857130, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370982, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21857089, 'sub_port_id': 21857131, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370983, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 58)}, 'Carton_gris': {'main_port_id': 21857089, 'sub_port_id': 21857132, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370984, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 58)}, 'metal': {'main_port_id': 21857089, 'sub_port_id': 21857133, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370985, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 58)}, 'Carton_brun': {'main_port_id': 21857089, 'sub_port_id': 21857134, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370986, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 58)}, 'cartonnette': {'main_port_id': 21857089, 'sub_port_id': 21857135, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370987, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 58)}, 'flou': {'main_port_id': 21857089, 'sub_port_id': 21857136, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370988, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 58)}, 'environnement': {'main_port_id': 21857089, 'sub_port_id': 21857137, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370989, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 58)}, 'mal_croppe': {'main_port_id': 21857089, 'sub_port_id': 21857138, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370990, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 58)}, 'plastique': {'main_port_id': 21857089, 'sub_port_id': 21857139, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370991, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 58)}, 'kraft': {'main_port_id': 21857089, 'sub_port_id': 21857140, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14370992, 'last_updated_at': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 18, 57, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 18, 51, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21857129,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21857117 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21857130,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21857118 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21857131,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21857119 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21857132,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21857120 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21857133,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21857121 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21857134,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21857122 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21857135,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21857123 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21857136,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21857124 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21857137,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21857125 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21857138,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21857126 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21857139,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21857127 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21857140,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21857128 lien utilise dans velours : https://www.fotonower.com/velours/21857129,21857130,21857131,21857132,21857133,21857134,21857135,21857136,21857137,21857138,21857139,21857140?tags=autre_refus,papier,Teint_Dans_La_Masse,Carton_gris,metal,Carton_brun,cartonnette,flou,environnement,mal_croppe,plastique,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21857089]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1348339434, 1348339406, 1348339379, 1348339352, 1348339321, 1348339293, 1348339149, 1348339145, 1348339141, 1348339136, 1348339115, 1348339110, 1348339108, 1348339100, 1348339093, 1348339089] map_info['map_portfolio_photo'] : {21857089: [1348339434, 1348339406, 1348339379, 1348339352, 1348339321, 1348339293, 1348339149, 1348339145, 1348339141, 1348339136, 1348339115, 1348339110, 1348339108, 1348339100, 1348339093, 1348339089, 1348339050, 1348339045, 1348339015, 1348338927, 1348338915, 1348338900, 1348338875, 1348338834, 1348338822, 1348338718, 1348338710, 1348338702, 1348338699, 1348338665, 1348338585, 1348338581, 1348338576, 1348338531, 1348338508, 1348338481, 1348338448, 1348338366, 1348338357, 1348338352, 1348338348, 1348338278, 1348338244, 1348338206, 1348338184, 1348338151, 1348338078, 1348338065, 1348337852, 1348337844, 1348337803, 1348337800, 1348337797, 1348337793, 1348337790]} final : False mtd_id 4302 list_pids : [1348339434, 1348339406, 1348339379, 1348339352, 1348339321, 1348339293, 1348339149, 1348339145, 1348339141, 1348339136, 1348339115, 1348339110, 1348339108, 1348339100, 1348339093, 1348339089] Looping around the photos to save general results len do output : 1 /21857089. 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, '2702882') ('4302', '21857089', '1348339434', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339406', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339379', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339352', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339321', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339293', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339149', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339145', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339141', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339136', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339115', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339110', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339108', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339100', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339093', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339089', None, None, None, None, None, '2702882') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '21857089', "{'autre_refus': 21857117, 'papier': 21857118, 'Teint_Dans_La_Masse': 21857119, 'Carton_gris': 21857120, 'metal': 21857121, 'Carton_brun': 21857122, 'cartonnette': 21857123, 'flou': 21857124, 'environnement': 21857125, 'mal_croppe': 21857126, 'plastique': 21857127, 'kraft': 21857128}", None, None, None, None, '2702882'), ('4302', '21857089', '1348339434', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339406', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339379', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339352', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339321', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339293', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339149', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339145', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339141', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339136', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339115', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339110', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339108', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339100', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339093', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339089', None, None, None, None, None, '2702882')] time used for this insertion : 0.018532991409301758 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4862792491912842 time spend to save output : 0.018876314163208008 total time spend for step 1 : 0.5051555633544922 step2:final Fri Mar 28 19:01:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (21857089) 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 21857089 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1348337803,1348337800,1348337797,1348337793,1348337790,1348337852,1348337844,1348338078,1348338065,1348338278,1348338244,1348338206,1348338184,1348338151,1348338366,1348338357,1348338352,1348338348,1348338531,1348338508,1348338481,1348338448,1348338585,1348338581,1348338576,1348338718,1348338710,1348338702,1348338699,1348338665,1348338927,1348338915,1348338900,1348338875,1348338834,1348338822,1348339050,1348339045,1348339015,1348339115,1348339110,1348339108,1348339100,1348339093,1348339089,1348339149,1348339145,1348339141,1348339136,1348339434,1348339406,1348339379,1348339352,1348339321,1348339293); 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([21857089]) Inside saveOutput : final : False verbose : True original output for save of step final : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ('0.037164956927790475',)} new output for save of step final : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ('0.037164956927790475',)} [1348339434, 1348339406, 1348339379, 1348339352, 1348339321, 1348339293, 1348339149, 1348339145, 1348339141, 1348339136, 1348339115, 1348339110, 1348339108, 1348339100, 1348339093, 1348339089] map_info['map_portfolio_photo'] : {21857089: [1348339434, 1348339406, 1348339379, 1348339352, 1348339321, 1348339293, 1348339149, 1348339145, 1348339141, 1348339136, 1348339115, 1348339110, 1348339108, 1348339100, 1348339093, 1348339089, 1348339050, 1348339045, 1348339015, 1348338927, 1348338915, 1348338900, 1348338875, 1348338834, 1348338822, 1348338718, 1348338710, 1348338702, 1348338699, 1348338665, 1348338585, 1348338581, 1348338576, 1348338531, 1348338508, 1348338481, 1348338448, 1348338366, 1348338357, 1348338352, 1348338348, 1348338278, 1348338244, 1348338206, 1348338184, 1348338151, 1348338078, 1348338065, 1348337852, 1348337844, 1348337803, 1348337800, 1348337797, 1348337793, 1348337790]} final : False mtd_id 4302 list_pids : [1348339434, 1348339406, 1348339379, 1348339352, 1348339321, 1348339293, 1348339149, 1348339145, 1348339141, 1348339136, 1348339115, 1348339110, 1348339108, 1348339100, 1348339093, 1348339089] Looping around the photos to save general results len do output : 16 /1348339434.Didn't retrieve data . /1348339406.Didn't retrieve data . /1348339379.Didn't retrieve data . /1348339352.Didn't retrieve data . /1348339321.Didn't retrieve data . /1348339293.Didn't retrieve data . /1348339149.Didn't retrieve data . /1348339145.Didn't retrieve data . /1348339141.Didn't retrieve data . /1348339136.Didn't retrieve data . /1348339115.Didn't retrieve data . /1348339110.Didn't retrieve data . /1348339108.Didn't retrieve data . /1348339100.Didn't retrieve data . /1348339093.Didn't retrieve data . /1348339089.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, '2702882') ('4302', '21857089', '1348339434', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339406', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339379', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339352', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339321', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339293', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339149', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339145', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339141', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339136', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339115', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339110', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339108', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339100', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339093', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339089', None, None, None, None, None, '2702882') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '21857089', '1348339434', '0.037164956927790475', None, None, None, None, '2702882'), ('4302', '21857089', '1348339406', '0.037164956927790475', None, None, None, None, '2702882'), ('4302', '21857089', '1348339379', '0.037164956927790475', None, None, None, None, '2702882'), ('4302', '21857089', '1348339352', '0.037164956927790475', None, None, None, None, '2702882'), ('4302', '21857089', '1348339321', '0.037164956927790475', None, None, None, None, '2702882'), ('4302', '21857089', '1348339293', '0.037164956927790475', None, None, None, None, '2702882'), ('4302', '21857089', '1348339149', '0.037164956927790475', None, None, None, None, '2702882'), ('4302', '21857089', '1348339145', '0.037164956927790475', None, None, None, None, '2702882'), ('4302', '21857089', '1348339141', '0.037164956927790475', None, None, None, None, '2702882'), ('4302', '21857089', '1348339136', '0.037164956927790475', None, None, None, None, '2702882'), ('4302', '21857089', '1348339115', '0.037164956927790475', None, None, None, None, '2702882'), ('4302', '21857089', '1348339110', '0.037164956927790475', None, None, None, None, '2702882'), ('4302', '21857089', '1348339108', '0.037164956927790475', None, None, None, None, '2702882'), ('4302', '21857089', '1348339100', '0.037164956927790475', None, None, None, None, '2702882'), ('4302', '21857089', '1348339093', '0.037164956927790475', None, None, None, None, '2702882'), ('4302', '21857089', '1348339089', '0.037164956927790475', None, None, None, None, '2702882')] time used for this insertion : 0.016190767288208008 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07602143287658691 time spend to save output : 0.01699686050415039 total time spend for step 2 : 0.0930182933807373 step3:velours_tree Fri Mar 28 19:01:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21857089: [{'autre_refus': 21857117, 'papier': 21857118, 'Teint_Dans_La_Masse': 21857119, 'Carton_gris': 21857120, 'metal': 21857121, 'Carton_brun': 21857122, 'cartonnette': 21857123, 'flou': 21857124, 'environnement': 21857125, 'mal_croppe': 21857126, 'plastique': 21857127, 'kraft': 21857128}]} input_args_next_step : {21857089: ()} output_args : {21857089: [{'autre_refus': 21857117, 'papier': 21857118, 'Teint_Dans_La_Masse': 21857119, 'Carton_gris': 21857120, 'metal': 21857121, 'Carton_brun': 21857122, 'cartonnette': 21857123, 'flou': 21857124, 'environnement': 21857125, 'mal_croppe': 21857126, 'plastique': 21857127, 'kraft': 21857128}]} args : 21857089 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 : ({'autre_refus': 21857117, 'papier': 21857118, 'Teint_Dans_La_Masse': 21857119, 'Carton_gris': 21857120, 'metal': 21857121, 'Carton_brun': 21857122, 'cartonnette': 21857123, 'flou': 21857124, 'environnement': 21857125, 'mal_croppe': 21857126, 'plastique': 21857127, 'kraft': 21857128},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21857089) 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([21857089]) 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.31095147132873535 time spend to save output : 5.054473876953125e-05 total time spend for step 3 : 0.3110020160675049 step4:send_mail_cod Fri Mar 28 19:01:01 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 : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ('0.037164956927790475',)} input_args_next_step : {1348339434: ()} output_args : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ('0.037164956927790475',)} args : 1348339434 depend.output_id : 0 input_args_next_step : {1348339434: ('0.037164956927790475',), 1348339406: ()} output_args : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ('0.037164956927790475',)} args : 1348339406 depend.output_id : 0 input_args_next_step : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ()} output_args : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ('0.037164956927790475',)} args : 1348339379 depend.output_id : 0 input_args_next_step : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ()} output_args : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ('0.037164956927790475',)} args : 1348339352 depend.output_id : 0 input_args_next_step : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ()} output_args : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ('0.037164956927790475',)} args : 1348339321 depend.output_id : 0 input_args_next_step : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ()} output_args : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ('0.037164956927790475',)} args : 1348339293 depend.output_id : 0 input_args_next_step : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ()} output_args : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ('0.037164956927790475',)} args : 1348339149 depend.output_id : 0 input_args_next_step : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ()} output_args : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ('0.037164956927790475',)} args : 1348339145 depend.output_id : 0 input_args_next_step : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ()} output_args : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ('0.037164956927790475',)} args : 1348339141 depend.output_id : 0 input_args_next_step : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ()} output_args : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ('0.037164956927790475',)} args : 1348339136 depend.output_id : 0 input_args_next_step : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ()} output_args : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ('0.037164956927790475',)} args : 1348339115 depend.output_id : 0 input_args_next_step : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ()} output_args : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ('0.037164956927790475',)} args : 1348339110 depend.output_id : 0 input_args_next_step : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ()} output_args : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ('0.037164956927790475',)} args : 1348339108 depend.output_id : 0 input_args_next_step : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ()} output_args : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ('0.037164956927790475',)} args : 1348339100 depend.output_id : 0 input_args_next_step : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ()} output_args : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ('0.037164956927790475',)} args : 1348339093 depend.output_id : 0 input_args_next_step : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ()} output_args : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ('0.037164956927790475',)} args : 1348339089 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 : {21857089: [{'autre_refus': 21857117, 'papier': 21857118, 'Teint_Dans_La_Masse': 21857119, 'Carton_gris': 21857120, 'metal': 21857121, 'Carton_brun': 21857122, 'cartonnette': 21857123, 'flou': 21857124, 'environnement': 21857125, 'mal_croppe': 21857126, 'plastique': 21857127, 'kraft': 21857128}]} input_args_next_step : {1348339434: ('0.037164956927790475',), 1348339406: ('0.037164956927790475',), 1348339379: ('0.037164956927790475',), 1348339352: ('0.037164956927790475',), 1348339321: ('0.037164956927790475',), 1348339293: ('0.037164956927790475',), 1348339149: ('0.037164956927790475',), 1348339145: ('0.037164956927790475',), 1348339141: ('0.037164956927790475',), 1348339136: ('0.037164956927790475',), 1348339115: ('0.037164956927790475',), 1348339110: ('0.037164956927790475',), 1348339108: ('0.037164956927790475',), 1348339100: ('0.037164956927790475',), 1348339093: ('0.037164956927790475',), 1348339089: ('0.037164956927790475',), 21857089: ()} output_args : {21857089: [{'autre_refus': 21857117, 'papier': 21857118, 'Teint_Dans_La_Masse': 21857119, 'Carton_gris': 21857120, 'metal': 21857121, 'Carton_brun': 21857122, 'cartonnette': 21857123, 'flou': 21857124, 'environnement': 21857125, 'mal_croppe': 21857126, 'plastique': 21857127, 'kraft': 21857128}]} args : 21857089 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 :17, first value : ('0.037164956927790475',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21857089) 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 (1348339434,1348339406,1348339379,1348339352,1348339321,1348339293,1348339149,1348339145,1348339141,1348339136,1348339115,1348339110,1348339108,1348339100,1348339093,1348339089) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1348339089 begin to download photo : 1348339110 begin to download photo : 1348339145 begin to download photo : 1348339352 download finish for photo 1348339145 begin to download photo : 1348339149 download finish for photo 1348339110 begin to download photo : 1348339115 download finish for photo 1348339089 begin to download photo : 1348339093 download finish for photo 1348339352 begin to download photo : 1348339379 download finish for photo 1348339149 begin to download photo : 1348339293 download finish for photo 1348339115 begin to download photo : 1348339136 download finish for photo 1348339379 begin to download photo : 1348339406 download finish for photo 1348339293 begin to download photo : 1348339321 download finish for photo 1348339136 begin to download photo : 1348339141 download finish for photo 1348339406 begin to download photo : 1348339434 download finish for photo 1348339093 begin to download photo : 1348339100 download finish for photo 1348339321 download finish for photo 1348339141 download finish for photo 1348339434 download finish for photo 1348339100 begin to download photo : 1348339108 download finish for photo 1348339108 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P21857089_28-03-2025_19_01_01.pdf 21857117 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=21857117 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348338541: '1743184346_1822487_1348338065_73ba0cb46a45f86d05ca4e7216686230_rle_crop_3736716020_0.png', 1348338817: '1743184455_1576683_1348338357_7b353b48a35550d79a200d6930c37662_rle_crop_3736716537_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/fe5866b059e0fa1ae6dbc3ef8a1d4013_51283095.png change filename to text .imagette218571171743184861/ imagette218571171743184861/1743184455_1576683_1348338357_7b353b48a35550d79a200d6930c37662_rle_crop_3736716537_0.png.png imagette218571171743184861/1743184346_1822487_1348338065_73ba0cb46a45f86d05ca4e7216686230_rle_crop_3736716020_0.png.png imagette218571211743184861/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/8cddca1a890b8473affec10e3816f20f_57495713.png imagette218571171743184861 21857121 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=21857121 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218571211743184861 21857123 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=21857123 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348338359: '1743184215_1574330_1348337793_6620c13087aae855ff1c450dfe9e16a9_rle_crop_3736715735_0.png', 1348338360: '1743184215_1574330_1348337793_6620c13087aae855ff1c450dfe9e16a9_rle_crop_3736715731_0.png', 1348338361: '1743184215_1574330_1348337793_6620c13087aae855ff1c450dfe9e16a9_rle_crop_3736715736_0.png', 1348338542: '1743184346_1822487_1348338278_388b6fe3deb715e0b5228c5b7737f48f_rle_crop_3736716011_0.png', 1348338820: '1743184455_1576683_1348338357_7b353b48a35550d79a200d6930c37662_rle_crop_3736716538_0.png', 1348338832: '1743184472_1576853_1348338508_2ff87340577611203ed48737477c65c3_rle_crop_3736716670_0.png', 1348338833: '1743184472_1576853_1348338448_e312050e797d5fa331e7c963bea8ff76_rle_crop_3736716702_0.png', 1348339676: '1743184694_1579005_1348338900_6a6578bcc05a8c3e16ca35f85a5cb45d_rle_crop_3736734020_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ac14a4baa120970967a1295c812eeb2e_15250641.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/2235f10ffe9994a4a3d4cdfbaea396e6_63352020.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/7ffdcbc4a02f8d64c4f3772758145596_47044223.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/8a0513ab732d5f068ca9b599bd3c23d1_54426756.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b9126a9262b6a9fc19dffc44a6bc2540_64478912.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/2cc40c79727524e47a2228e48e05ae32_13212842.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/3d39bfc6db8d0ade23fe86696b828776_97971854.png change filename to text .imagette218571231743184861/ imagette218571231743184861/1743184346_1822487_1348338278_388b6fe3deb715e0b5228c5b7737f48f_rle_crop_3736716011_0.png.png imagette218571231743184861/1743184215_1574330_1348337793_6620c13087aae855ff1c450dfe9e16a9_rle_crop_3736715731_0.png.png imagette218571231743184861/1743184455_1576683_1348338357_7b353b48a35550d79a200d6930c37662_rle_crop_3736716538_0.png.png imagette218571231743184861/1743184215_1574330_1348337793_6620c13087aae855ff1c450dfe9e16a9_rle_crop_3736715736_0.png.png imagette218571231743184861/1743184215_1574330_1348337793_6620c13087aae855ff1c450dfe9e16a9_rle_crop_3736715735_0.png.png imagette218571231743184861/1743184472_1576853_1348338448_e312050e797d5fa331e7c963bea8ff76_rle_crop_3736716702_0.png.png imagette218571231743184861/1743184472_1576853_1348338508_2ff87340577611203ed48737477c65c3_rle_crop_3736716670_0.png.png imagette218571231743184861/1743184694_1579005_1348338900_6a6578bcc05a8c3e16ca35f85a5cb45d_rle_crop_3736734020_0.png.png imagette218571241743184862/ imagette218571261743184862/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/d825f9f6bbfd76fb06504d32caa86b39_40763932.png imagette218571231743184861 21857124 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=21857124 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218571241743184862 21857126 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=21857126 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218571261743184862 21857127 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=21857127 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348338364: '1743184215_1574330_1348337790_3db893c5a75a4e52f1f629d75e9e334a_rle_crop_3736715759_0.png', 1348338823: '1743184455_1576683_1348338348_9ccf68486d432444ab12a292dbe83eed_rle_crop_3736716650_0.png', 1348338824: '1743184455_1576683_1348338348_9ccf68486d432444ab12a292dbe83eed_rle_crop_3736716643_0.png', 1348338869: '1743184472_1576853_1348338508_2ff87340577611203ed48737477c65c3_rle_crop_3736716671_0.png', 1348338870: '1743184472_1576853_1348338481_572610f7b704ef6ea58b13c3e447abce_rle_crop_3736716684_0.png', 1348338871: '1743184472_1576853_1348338481_572610f7b704ef6ea58b13c3e447abce_rle_crop_3736716694_0.png', 1348339639: '1743184713_1579149_1348339015_fb35dcbeb4d4c7ef8c09525bf375f65e_rle_crop_3736733994_0.png', 1348339679: '1743184694_1579005_1348338915_0980a30bb552117d6beaf4627848b146_rle_crop_3736734011_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/dd887b884a14d3ef42ef49735c28677d_9251779.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/f7d40a6bd9ece0ee1eee53943dd5a867_76774938.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/c59463021486b01b5794830095466a13_65421770.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/a502c599a66410010013f8fcc6484159_49526978.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/f7d3f47291426bb5224ebe6c9f123d7c_74688832.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/7658ad529edfa625eba88c2c23e580c4_23506158.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/3cb4a3ce768f33f2a2663f04532e1120_99803471.png change filename to text .imagette218571271743184862/ imagette218571271743184862/1743184713_1579149_1348339015_fb35dcbeb4d4c7ef8c09525bf375f65e_rle_crop_3736733994_0.png.png imagette218571271743184862/1743184694_1579005_1348338915_0980a30bb552117d6beaf4627848b146_rle_crop_3736734011_0.png.png imagette218571271743184862/1743184472_1576853_1348338508_2ff87340577611203ed48737477c65c3_rle_crop_3736716671_0.png.png imagette218571271743184862/1743184455_1576683_1348338348_9ccf68486d432444ab12a292dbe83eed_rle_crop_3736716643_0.png.png imagette218571271743184862/1743184472_1576853_1348338481_572610f7b704ef6ea58b13c3e447abce_rle_crop_3736716684_0.png.png imagette218571271743184862/1743184215_1574330_1348337790_3db893c5a75a4e52f1f629d75e9e334a_rle_crop_3736715759_0.png.png imagette218571271743184862/1743184455_1576683_1348338348_9ccf68486d432444ab12a292dbe83eed_rle_crop_3736716650_0.png.png imagette218571271743184862/1743184472_1576853_1348338481_572610f7b704ef6ea58b13c3e447abce_rle_crop_3736716694_0.png.png imagette218571281743184862/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b438643e147baf37298e7e8f87d42755_75128156.png imagette218571271743184862 21857128 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=21857128 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218571281743184862 21857119 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=21857119 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348338811: '1743184455_1576683_1348338531_039dcaa62b2aa01ce3ddc9f897b56912_rle_crop_3736716531_0.png', 1348338812: '1743184455_1576683_1348338531_039dcaa62b2aa01ce3ddc9f897b56912_rle_crop_3736716534_0.png', 1348338813: '1743184455_1576683_1348338357_7b353b48a35550d79a200d6930c37662_rle_crop_3736716542_0.png', 1348338814: '1743184455_1576683_1348338352_63a27f453af0ab8b3abdd7bb96e484a4_rle_crop_3736716554_0.png', 1348338828: '1743184472_1576853_1348338508_2ff87340577611203ed48737477c65c3_rle_crop_3736716677_0.png', 1348338829: '1743184472_1576853_1348338481_572610f7b704ef6ea58b13c3e447abce_rle_crop_3736716693_0.png', 1348338830: '1743184472_1576853_1348338481_572610f7b704ef6ea58b13c3e447abce_rle_crop_3736716686_0.png', 1348339074: '1743184587_1825873_1348338718_bdc22faaf7091bbcde609edddaa0ba78_rle_crop_3736720895_0.png', 1348339094: '1743184592_1577930_1348338710_0449e8927bf200f9e16c768cdc942360_rle_crop_3736721441_0.png', 1348339096: '1743184592_1577930_1348338665_f1e06536928a441bb79b0262be9314f0_rle_crop_3736721481_0.png', 1348339097: '1743184592_1577930_1348338665_f1e06536928a441bb79b0262be9314f0_rle_crop_3736721479_0.png', 1348339673: '1743184694_1579005_1348338915_0980a30bb552117d6beaf4627848b146_rle_crop_3736734010_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/2ee39a362ce1a9885e3ef0698da96d8f_63849926.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/4641a897d7108a5ee4c14ef64f521320_503939.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b3b2cb094d75090925b45e180dfe4b58_31323514.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/007a30648eb74e9508206b3dcd9cbee8_75856753.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/cc0c2d574dd61c2868468163c8906978_85943607.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/7f57ff00c70fdbb32505d38620a85d90_78823435.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/3f5be579e069354ea319c484ec6c74c6_29068683.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/f3c9550961ceafc34d81023fd839421d_71235569.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/338bb116fda114bbb7b2ecab9779d217_66959911.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/027113ecfd85b13abe7db121d0327c9a_26794050.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/daa1f7303b8e2882c1fac128bccd6d57_59089737.png change filename to text .imagette218571191743184862/ imagette218571191743184862/1743184455_1576683_1348338531_039dcaa62b2aa01ce3ddc9f897b56912_rle_crop_3736716531_0.png.png imagette218571191743184862/1743184587_1825873_1348338718_bdc22faaf7091bbcde609edddaa0ba78_rle_crop_3736720895_0.png.png imagette218571191743184862/1743184592_1577930_1348338710_0449e8927bf200f9e16c768cdc942360_rle_crop_3736721441_0.png.png imagette218571191743184862/1743184472_1576853_1348338481_572610f7b704ef6ea58b13c3e447abce_rle_crop_3736716686_0.png.png imagette218571191743184862/1743184455_1576683_1348338531_039dcaa62b2aa01ce3ddc9f897b56912_rle_crop_3736716534_0.png.png imagette218571191743184862/1743184694_1579005_1348338915_0980a30bb552117d6beaf4627848b146_rle_crop_3736734010_0.png.png imagette218571191743184862/1743184472_1576853_1348338508_2ff87340577611203ed48737477c65c3_rle_crop_3736716677_0.png.png imagette218571191743184862/1743184455_1576683_1348338352_63a27f453af0ab8b3abdd7bb96e484a4_rle_crop_3736716554_0.png.png imagette218571191743184862/1743184455_1576683_1348338357_7b353b48a35550d79a200d6930c37662_rle_crop_3736716542_0.png.png imagette218571191743184862/1743184472_1576853_1348338481_572610f7b704ef6ea58b13c3e447abce_rle_crop_3736716693_0.png.png imagette218571191743184862/1743184592_1577930_1348338665_f1e06536928a441bb79b0262be9314f0_rle_crop_3736721481_0.png.png imagette218571191743184862/1743184592_1577930_1348338665_f1e06536928a441bb79b0262be9314f0_rle_crop_3736721479_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/3fa220cf7caf8cda4115d47de1b4eff5_2814427.png imagette218571191743184862 21857120 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=21857120 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348338819: '1743184455_1576683_1348338357_7b353b48a35550d79a200d6930c37662_rle_crop_3736716539_0.png', 1348339098: '1743184592_1577930_1348338702_1b2d50e476f13c630d174017caae441e_rle_crop_3736721452_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/60ac115f6a19f57bc0a1024c10186977_65559173.png change filename to text .imagette218571201743184863/ imagette218571201743184863/1743184455_1576683_1348338357_7b353b48a35550d79a200d6930c37662_rle_crop_3736716539_0.png.png imagette218571201743184863/1743184592_1577930_1348338702_1b2d50e476f13c630d174017caae441e_rle_crop_3736721452_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/9ba5a920cde23bc7026ad7d7eaa5592e_31234506.png imagette218571201743184863 21857122 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=21857122 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348338363: '1743184215_1574330_1348337793_6620c13087aae855ff1c450dfe9e16a9_rle_crop_3736715738_0.png', 1348338821: '1743184455_1576683_1348338352_63a27f453af0ab8b3abdd7bb96e484a4_rle_crop_3736716549_0.png', 1348339101: '1743184592_1577930_1348338702_1b2d50e476f13c630d174017caae441e_rle_crop_3736721459_0.png', 1348339102: '1743184592_1577930_1348338699_6270b4fc0489307e1c5a930f7fd49e33_rle_crop_3736721467_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/5e3af84a6902d44dda207446dd261d3b_27297258.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/5287768c5755697c4b7bf38549f8a7be_23403177.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/3f936141e1929b699616a44ab51403ba_68738693.png change filename to text .imagette218571221743184863/ imagette218571221743184863/1743184215_1574330_1348337793_6620c13087aae855ff1c450dfe9e16a9_rle_crop_3736715738_0.png.png imagette218571221743184863/1743184592_1577930_1348338702_1b2d50e476f13c630d174017caae441e_rle_crop_3736721459_0.png.png imagette218571221743184863/1743184592_1577930_1348338699_6270b4fc0489307e1c5a930f7fd49e33_rle_crop_3736721467_0.png.png imagette218571221743184863/1743184455_1576683_1348338352_63a27f453af0ab8b3abdd7bb96e484a4_rle_crop_3736716549_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b0403ff1bcb540cde3784c157a42668b_8107127.png imagette218571221743184863 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21857089 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21857129,21857130,21857131,21857132,21857133,21857134,21857135,21857136,21857137,21857138,21857139,21857140?tags=autre_refus,papier,Teint_Dans_La_Masse,Carton_gris,metal,Carton_brun,cartonnette,flou,environnement,mal_croppe,plastique,kraft your option no_mail is active, we will not send the real mail to your client args[1348339434] : ('0.037164956927790475',) no score found for photo 1348339434 We are sending mail with results at report@fotonower.com args[1348339406] : ('0.037164956927790475',) no score found for photo 1348339406 We are sending mail with results at report@fotonower.com args[1348339379] : ('0.037164956927790475',) no score found for photo 1348339379 We are sending mail with results at report@fotonower.com args[1348339352] : ('0.037164956927790475',) no score found for photo 1348339352 We are sending mail with results at report@fotonower.com args[1348339321] : ('0.037164956927790475',) no score found for photo 1348339321 We are sending mail with results at report@fotonower.com args[1348339293] : ('0.037164956927790475',) no score found for photo 1348339293 We are sending mail with results at report@fotonower.com args[1348339149] : ('0.037164956927790475',) no score found for photo 1348339149 We are sending mail with results at report@fotonower.com args[1348339145] : ('0.037164956927790475',) no score found for photo 1348339145 We are sending mail with results at report@fotonower.com args[1348339141] : ('0.037164956927790475',) no score found for photo 1348339141 We are sending mail with results at report@fotonower.com args[1348339136] : ('0.037164956927790475',) no score found for photo 1348339136 We are sending mail with results at report@fotonower.com args[1348339115] : ('0.037164956927790475',) no score found for photo 1348339115 We are sending mail with results at report@fotonower.com args[1348339110] : ('0.037164956927790475',) no score found for photo 1348339110 We are sending mail with results at report@fotonower.com args[1348339108] : ('0.037164956927790475',) no score found for photo 1348339108 We are sending mail with results at report@fotonower.com args[1348339100] : ('0.037164956927790475',) no score found for photo 1348339100 We are sending mail with results at report@fotonower.com args[1348339093] : ('0.037164956927790475',) no score found for photo 1348339093 We are sending mail with results at report@fotonower.com args[1348339089] : ('0.037164956927790475',) no score found for photo 1348339089 We are sending mail with results at report@fotonower.com refus_total : 0.037164956927790475 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=21857089 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_P21857089_28-03-2025_19_01_01.pdf results_Auto_P21857089_28-03-2025_19_01_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21857089_28-03-2025_19_01_01.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','21857089','results_Auto_P21857089_28-03-2025_19_01_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21857089_28-03-2025_19_01_01.pdf','pdf','','0.23','0.037164956927790475') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21857089]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1348339434, 1348339406, 1348339379, 1348339352, 1348339321, 1348339293, 1348339149, 1348339145, 1348339141, 1348339136, 1348339115, 1348339110, 1348339108, 1348339100, 1348339093, 1348339089] map_info['map_portfolio_photo'] : {21857089: [1348339434, 1348339406, 1348339379, 1348339352, 1348339321, 1348339293, 1348339149, 1348339145, 1348339141, 1348339136, 1348339115, 1348339110, 1348339108, 1348339100, 1348339093, 1348339089, 1348339050, 1348339045, 1348339015, 1348338927, 1348338915, 1348338900, 1348338875, 1348338834, 1348338822, 1348338718, 1348338710, 1348338702, 1348338699, 1348338665, 1348338585, 1348338581, 1348338576, 1348338531, 1348338508, 1348338481, 1348338448, 1348338366, 1348338357, 1348338352, 1348338348, 1348338278, 1348338244, 1348338206, 1348338184, 1348338151, 1348338078, 1348338065, 1348337852, 1348337844, 1348337803, 1348337800, 1348337797, 1348337793, 1348337790]} final : False mtd_id 4302 list_pids : [1348339434, 1348339406, 1348339379, 1348339352, 1348339321, 1348339293, 1348339149, 1348339145, 1348339141, 1348339136, 1348339115, 1348339110, 1348339108, 1348339100, 1348339093, 1348339089] 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, '2702882') ('4302', '21857089', '1348339434', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339406', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339379', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339352', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339321', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339293', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339149', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339145', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339141', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339136', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339115', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339110', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339108', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339100', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339093', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339089', None, None, None, None, None, '2702882') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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', '21857089', '1348339434', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339406', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339379', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339352', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339321', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339293', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339149', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339145', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339141', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339136', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339115', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339110', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339108', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339100', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339093', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339089', None, None, None, None, None, '2702882')] time used for this insertion : 0.018739700317382812 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.232481479644775 time spend to save output : 0.01900506019592285 total time spend for step 4 : 4.251486539840698 step5:split_time_score Fri Mar 28 19:01:05 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 : ['21857089'] 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 : [('21857089',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21857089) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1348339145: {'path': 'temp/1743184861_3177885_1348339145_df8eb63f2c2a1aaa2d2afd5052992af1.jpg', 'extension': 'jpg'}, 1348339149: {'path': 'temp/1743184861_3177885_1348339149_eabd4b2f30750b706fa7b0e872f0dea9.jpg', 'extension': 'jpg'}, 1348339293: {'path': 'temp/1743184861_3177885_1348339293_7011deb9ef90ffe78bcf3255b7dbd6d3.jpg', 'extension': 'jpg'}, 1348339321: {'path': 'temp/1743184861_3177885_1348339321_1098f747837be6eb186c94b3255af2b1.jpg', 'extension': 'jpg'}, 1348339110: {'path': 'temp/1743184861_3177885_1348339110_6c4d17e10d97dda6f253e30c26e801de.jpg', 'extension': 'jpg'}, 1348339115: {'path': 'temp/1743184861_3177885_1348339115_f596f77592687cc9b2781b44d0ef95e0.jpg', 'extension': 'jpg'}, 1348339136: {'path': 'temp/1743184861_3177885_1348339136_745e1f0373f26c62d2fa73ea3a38f2a0.jpg', 'extension': 'jpg'}, 1348339141: {'path': 'temp/1743184861_3177885_1348339141_69ab885a69137b31c53cdcfd20e63238.jpg', 'extension': 'jpg'}, 1348339352: {'path': 'temp/1743184861_3177885_1348339352_80f2f21a876a804d62e40c4f9f7f41de.jpg', 'extension': 'jpg'}, 1348339379: {'path': 'temp/1743184861_3177885_1348339379_981ca9583b27161044dee1096805ac16.jpg', 'extension': 'jpg'}, 1348339406: {'path': 'temp/1743184861_3177885_1348339406_416c1525c031bae9c58cf21d91626110.jpg', 'extension': 'jpg'}, 1348339434: {'path': 'temp/1743184861_3177885_1348339434_960f58140c51b35466034d102ac35897.jpg', 'extension': 'jpg'}, 1348339089: {'path': 'temp/1743184861_3177885_1348339089_6924c7db402758787b02fba004a5f81b.jpg', 'extension': 'jpg'}, 1348339093: {'path': 'temp/1743184861_3177885_1348339093_72951193e8d2c7cae734294f92597db6.jpg', 'extension': 'jpg'}, 1348339100: {'path': 'temp/1743184861_3177885_1348339100_d600750ede90c8449274491e1611e0ed.jpg', 'extension': 'jpg'}, 1348339108: {'path': 'temp/1743184861_3177885_1348339108_3fa8a8c8b637cfb63f505c524892b6a4.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 = 21857089; (('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 = 21857089 group by h (('18', 55),) 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=21857089 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 (21857089) 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 (21857089) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28032025 21857089 Nombre de photos uploadées : 55 / 23040 (0%) 28032025 21857089 Nombre de photos taguées (types de déchets): 0 / 55 (0%) 28032025 21857089 Nombre de photos taguées (volume) : 0 / 55 (0%) [{'photo_id': 1348337803, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/309e819bd34962897fbbc5fdeca1bbdd.jpg', 'username': None, 'uploaded_at': 1743184040, 'text': 'image_28032025_18_45_04_010152m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1348337800, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/5d68212e9bf516a402477dc19c7b9451.jpg', 'username': None, 'uploaded_at': 1743184040, 'text': 'image_28032025_18_45_14_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348337797, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/1b6d396163800f1fb149f2f29fc86b88.jpg', 'username': None, 'uploaded_at': 1743184040, 'text': 'image_28032025_18_45_25_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1348337793, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/6620c13087aae855ff1c450dfe9e16a9.jpg', 'username': None, 'uploaded_at': 1743184040, 'text': 'image_28032025_18_45_35_010133m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 8.344650268554688e-06 ??????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0034475326538085938 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21857089, '2025-03-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1696037,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024133682250976562 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= 1696037 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1696037, 'dashboard_run_id': 1706283, 'mtr_portfolio_id': 21855796, 'dashboard_result_id': 9728307, '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_P21855796_28-03-2025_18_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21855799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21855800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21855801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21855802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21855803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21855804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21855805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21855806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21855807, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21855808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21855809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21855810, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1706283, 'mtr_portfolio_id': 21856257, 'dashboard_result_id': 9728308, '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_P21856257_28-03-2025_18_50_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21856264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21856265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21856266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21856267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21856268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21856269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21856270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21856271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21856272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21856273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21856274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21856275, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1706283, 'mtr_portfolio_id': 21857089, 'dashboard_result_id': 9728309, '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_P21857089_28-03-2025_18_57_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21857117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21857118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21857119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21857120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21857121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21857122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21857123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21857124, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21857125, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21857126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21857127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21857128, '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 = 21855796 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': 2702761, 'mtr_portfolio_id': 21855796, 'created_at': datetime.datetime(2025, 3, 28, 18, 34, 58), 'result': '0.05055037212763506', 'result_long': None, 'result_double': None}] Qualite : 0.05055037212763506 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21855796 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21855796_28-03-2025_18_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21855796 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_P21855796_28-03-2025_18_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21855799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21855800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21855801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21855802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21855803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21855804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21855805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21855806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21855807, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21855808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21855809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21855810, 'pht': 3726}}" where mtr_portfolio_id = 21855796 and dashboard_run_id = 1706283 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`=21855796 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9728307, 0.05055037212763506, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21855796_28-03-2025_18_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21855799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21855800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21855801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21855802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21855803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21855804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21855805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21855806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21855807, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21855808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21855809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21855810, '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 = 21856257 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': 2702829, 'mtr_portfolio_id': 21856257, 'created_at': datetime.datetime(2025, 3, 28, 18, 50, 56), 'result': '0.0649335653797558', 'result_long': None, 'result_double': None}] Qualite : 0.0649335653797558 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21856257 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21856257_28-03-2025_18_50_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21856257 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_P21856257_28-03-2025_18_50_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21856264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21856265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21856266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21856267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21856268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21856269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21856270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21856271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21856272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21856273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21856274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21856275, 'pht': 3726}}" where mtr_portfolio_id = 21856257 and dashboard_run_id = 1706283 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`=21856257 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9728308, 0.0649335653797558, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21856257_28-03-2025_18_50_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21856264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21856265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21856266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21856267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21856268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21856269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21856270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21856271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21856272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21856273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21856274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21856275, '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 = 21857089 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': 2702882, 'mtr_portfolio_id': 21857089, 'created_at': datetime.datetime(2025, 3, 28, 19, 1), 'result': '0.037164956927790475', 'result_long': None, 'result_double': None}] Qualite : 0.037164956927790475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21857089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21857089_28-03-2025_19_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21857089 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_P21857089_28-03-2025_19_01_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21857117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21857118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21857119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21857120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21857121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21857122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21857123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21857124, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21857125, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21857126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21857127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21857128, 'pht': 3726}}" where mtr_portfolio_id = 21857089 and dashboard_run_id = 1706283 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`=21857089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9728309, 0.037164956927790475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21857089_28-03-2025_19_01_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21857117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21857118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21857119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21857120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21857121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21857122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21857123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21857124, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21857125, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21857126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21857127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21857128, '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 (21855796,21856257,21857089) result : ((1348333562,), (1348333569,), (1348333578,), (1348333586,), (1348333615,), (1348333622,), (1348333625,), (1348333631,), (1348333770,), (1348333785,), (1348333790,), (1348333798,), (1348333833,), (1348333840,), (1348333859,), (1348333863,), (1348333869,), (1348333875,), (1348333941,), (1348333945,), (1348333950,), (1348333961,), (1348333973,), (1348333999,), (1348334003,), (1348334008,), (1348334014,), (1348334018,), (1348334024,), (1348334049,), (1348334054,), (1348334068,), (1348334105,), (1348334110,), (1348334114,), (1348334118,), (1348334121,), (1348334126,), (1348334155,), (1348334159,), (1348334161,), (1348334167,), (1348334173,), (1348334201,), (1348334205,), (1348334209,), (1348334247,), (1348334250,), (1348334288,), (1348334347,), (1348334349,), (1348334352,), (1348334353,), (1348334357,), (1348334403,), (1348334408,), (1348334411,), (1348334417,), (1348334488,), (1348334500,), (1348334504,), (1348334507,), (1348334512,), (1348334752,), (1348334693,), (1348334729,), (1348334747,), (1348334782,), (1348334788,), (1348334798,), (1348334805,), (1348334806,), (1348334810,), (1348334838,), (1348334843,), (1348334848,), (1348334854,), (1348334858,), (1348334882,), (1348334915,), (1348334934,), (1348334949,), (1348334964,), (1348335052,), (1348335057,), (1348335084,), (1348335098,), (1348335108,), (1348335198,), (1348335202,), (1348335206,), (1348335210,), (1348335215,), (1348335242,), (1348335248,), (1348335253,), (1348335275,), (1348335280,), (1348335374,), (1348335379,), (1348335383,), (1348335774,), (1348335849,), (1348335964,), (1348336042,), (1348336133,), (1348336231,), (1348336758,), (1348336778,), (1348336803,), (1348336828,), (1348336884,), (1348336900,), (1348336939,), (1348336945,), (1348336959,), (1348336965,), (1348337009,), (1348337014,), (1348337020,), (1348337023,), (1348337026,), (1348337044,), (1348337200,), (1348337294,), (1348337315,), (1348337344,), (1348337361,), (1348337441,), (1348337445,), (1348337470,), (1348337474,), (1348337481,), (1348337574,), (1348337579,), (1348337585,), (1348337587,), (1348337590,), (1348337806,), (1348337790,), (1348337793,), (1348337797,), (1348337800,), (1348337803,), (1348337844,), (1348337852,), (1348338065,), (1348338078,), (1348338151,), (1348338184,), (1348338206,), (1348338244,), (1348338278,), (1348338348,), (1348338352,), (1348338357,), (1348338366,), (1348338448,), (1348338481,), (1348338508,), (1348338531,), (1348338576,), (1348338581,), (1348338585,), (1348338665,), (1348338699,), (1348338702,), (1348338710,), (1348338718,), (1348338822,), (1348338834,), (1348338875,), (1348338900,), (1348338915,), (1348338927,), (1348339015,), (1348339045,), (1348339050,), (1348339089,), (1348339093,), (1348339100,), (1348339108,), (1348339110,), (1348339115,), (1348339136,), (1348339141,), (1348339145,), (1348339149,), (1348339293,), (1348339321,), (1348339352,), (1348339379,), (1348339406,), (1348339434,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28032025': {'nb_upload': 55, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21857089]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1348339434, 1348339406, 1348339379, 1348339352, 1348339321, 1348339293, 1348339149, 1348339145, 1348339141, 1348339136, 1348339115, 1348339110, 1348339108, 1348339100, 1348339093, 1348339089] map_info['map_portfolio_photo'] : {21857089: [1348339434, 1348339406, 1348339379, 1348339352, 1348339321, 1348339293, 1348339149, 1348339145, 1348339141, 1348339136, 1348339115, 1348339110, 1348339108, 1348339100, 1348339093, 1348339089, 1348339050, 1348339045, 1348339015, 1348338927, 1348338915, 1348338900, 1348338875, 1348338834, 1348338822, 1348338718, 1348338710, 1348338702, 1348338699, 1348338665, 1348338585, 1348338581, 1348338576, 1348338531, 1348338508, 1348338481, 1348338448, 1348338366, 1348338357, 1348338352, 1348338348, 1348338278, 1348338244, 1348338206, 1348338184, 1348338151, 1348338078, 1348338065, 1348337852, 1348337844, 1348337803, 1348337800, 1348337797, 1348337793, 1348337790]} final : True mtd_id 4302 list_pids : [1348339434, 1348339406, 1348339379, 1348339352, 1348339321, 1348339293, 1348339149, 1348339145, 1348339141, 1348339136, 1348339115, 1348339110, 1348339108, 1348339100, 1348339093, 1348339089] Looping around the photos to save general results len do output : 1 /21857089Didn'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, '2702882') ('4302', '21857089', '1348339434', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339406', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339379', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339352', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339321', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339293', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339149', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339145', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339141', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339136', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339115', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339110', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339108', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339100', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339093', None, None, None, None, None, '2702882') ('4302', None, None, None, None, None, None, None, '2702882') ('4302', '21857089', '1348339089', None, None, None, None, None, '2702882') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '21857089', 'None', None, None, None, None, '2702882'), ('4302', '21857089', '1348339434', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339406', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339379', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339352', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339321', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339293', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339149', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339145', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339141', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339136', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339115', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339110', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339108', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339100', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339093', None, None, None, None, None, '2702882'), ('4302', '21857089', '1348339089', None, None, None, None, None, '2702882')] time used for this insertion : 0.017838716506958008 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.48386073112487793 time spend to save output : 0.018170595169067383 total time spend for step 5 : 0.5020313262939453 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 (2702882) 2.39user 2.47system 0:09.89elapsed 49%CPU (0avgtext+0avgdata 159312maxresident)k 224inputs+13832outputs (7major+74610minor)pagefaults 0swaps