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 : 3252313 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 (3252692) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3252692) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24749521 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3252692'] with mtr_portfolio_ids : ['24749521'] and first list_photo_ids : [] new path : /proc/3252313/ Name: python3 Umask: 0002 State: R (running) Tgid: 3252313 Ngid: 0 Pid: 3252313 PPid: 3252312 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3252313 NSpid: 3252313 NSpgid: 3250349 NSsid: 3250349 VmPeak: 1106872 kB VmSize: 1106872 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100248 kB VmRSS: 100248 kB RssAnon: 59828 kB RssFile: 40420 kB RssShmem: 0 kB VmData: 865624 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 624 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/63019 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: 47 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3252313', 'Ngid': '0', 'Pid': '3252313', 'PPid': '3252312', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3252313', 'NSpid': '3252313', 'NSpgid': '3250349', 'NSsid': '3250349', 'VmPeak': '1106872 kB', 'VmSize': '1106872 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100248 kB', 'VmRSS': '100248 kB', 'RssAnon': '59828 kB', 'RssFile': '40420 kB', 'RssShmem': '0 kB', 'VmData': '865624 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '624 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/63019', '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': '47', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '3252313', '1106872', '0', '1106872', '865624', '100248', b'', 'marlene', '3252692') 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 (24749521) 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 (3252692 ) ) 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 (24749521) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1371376108, 'portfolio_id': 24749521}, {'photo_id': 1371376103, 'portfolio_id': 24749521}, {'photo_id': 1371376099, 'portfolio_id': 24749521}, {'photo_id': 1371376088, 'portfolio_id': 24749521}, {'photo_id': 1371376083, 'portfolio_id': 24749521}, {'photo_id': 1371376078, 'portfolio_id': 24749521}, {'photo_id': 1371376012, 'portfolio_id': 24749521}, {'photo_id': 1371376008, 'portfolio_id': 24749521}, {'photo_id': 1371375999, 'portfolio_id': 24749521}, {'photo_id': 1371375997, 'portfolio_id': 24749521}, {'photo_id': 1371375994, 'portfolio_id': 24749521}, {'photo_id': 1371375985, 'portfolio_id': 24749521}, {'photo_id': 1371375948, 'portfolio_id': 24749521}, {'photo_id': 1371375917, 'portfolio_id': 24749521}, {'photo_id': 1371375913, 'portfolio_id': 24749521}, {'photo_id': 1371375907, 'portfolio_id': 24749521}, {'photo_id': 1371375885, 'portfolio_id': 24749521}, {'photo_id': 1371375871, 'portfolio_id': 24749521}, {'photo_id': 1371375839, 'portfolio_id': 24749521}, {'photo_id': 1371375834, 'portfolio_id': 24749521}, {'photo_id': 1371375825, 'portfolio_id': 24749521}, {'photo_id': 1371375824, 'portfolio_id': 24749521}, {'photo_id': 1371375816, 'portfolio_id': 24749521}, {'photo_id': 1371375812, 'portfolio_id': 24749521}, {'photo_id': 1371375795, 'portfolio_id': 24749521}, {'photo_id': 1371375793, 'portfolio_id': 24749521}, {'photo_id': 1371375783, 'portfolio_id': 24749521}, {'photo_id': 1371375781, 'portfolio_id': 24749521}, {'photo_id': 1371375775, 'portfolio_id': 24749521}, {'photo_id': 1371375773, 'portfolio_id': 24749521}, {'photo_id': 1371375643, 'portfolio_id': 24749521}, {'photo_id': 1371375639, 'portfolio_id': 24749521}, {'photo_id': 1371375608, 'portfolio_id': 24749521}, {'photo_id': 1371375574, 'portfolio_id': 24749521}, {'photo_id': 1371375539, 'portfolio_id': 24749521}, {'photo_id': 1371375497, 'portfolio_id': 24749521}, {'photo_id': 1371375410, 'portfolio_id': 24749521}, {'photo_id': 1371375399, 'portfolio_id': 24749521}, {'photo_id': 1371375396, 'portfolio_id': 24749521}, {'photo_id': 1371375393, 'portfolio_id': 24749521}, {'photo_id': 1371375386, 'portfolio_id': 24749521}, {'photo_id': 1371375357, 'portfolio_id': 24749521}, {'photo_id': 1371375166, 'portfolio_id': 24749521}, {'photo_id': 1371375164, 'portfolio_id': 24749521}, {'photo_id': 1371375100, 'portfolio_id': 24749521}, {'photo_id': 1371375097, 'portfolio_id': 24749521}, {'photo_id': 1371375030, 'portfolio_id': 24749521}, {'photo_id': 1371375029, 'portfolio_id': 24749521}, {'photo_id': 1371374957, 'portfolio_id': 24749521}, {'photo_id': 1371374954, 'portfolio_id': 24749521}, {'photo_id': 1371374881, 'portfolio_id': 24749521}, {'photo_id': 1371374878, 'portfolio_id': 24749521}] map_portfolio_id_photo_id: {24749521: [1371376108, 1371376103, 1371376099, 1371376088, 1371376083, 1371376078, 1371376012, 1371376008, 1371375999, 1371375997, 1371375994, 1371375985, 1371375948, 1371375917, 1371375913, 1371375907, 1371375885, 1371375871, 1371375839, 1371375834, 1371375825, 1371375824, 1371375816, 1371375812, 1371375795, 1371375793, 1371375783, 1371375781, 1371375775, 1371375773, 1371375643, 1371375639, 1371375608, 1371375574, 1371375539, 1371375497, 1371375410, 1371375399, 1371375396, 1371375393, 1371375386, 1371375357, 1371375166, 1371375164, 1371375100, 1371375097, 1371375030, 1371375029, 1371374957, 1371374954, 1371374881, 1371374878]} ##### 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.01634693145751953 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Jul 9 14:08:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24749521) 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 : 24749521 get user id for portfolio 24749521 get sub ptf for main ptf 24749521, type 3726 and hashtags ['Teint_Dans_La_Masse', 'flou', 'autre_refus', 'environnement', 'kraft', 'metal', 'papier', 'Carton_gris', 'mal_croppe', 'plastique', 'Carton_brun', 'cartonnette'] 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`=24749521 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','autre_refus','environnement','kraft','metal','papier','Carton_gris','mal_croppe','plastique','Carton_brun','cartonnette')) 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`=24749521 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','autre_refus','environnement','kraft','metal','papier','Carton_gris','mal_croppe','plastique','Carton_brun','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 24749521, 'sub_port_id': 24749556, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644654, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 25)}, 'papier': {'main_port_id': 24749521, 'sub_port_id': 24749557, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644655, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 25)}, 'Carton_brun': {'main_port_id': 24749521, 'sub_port_id': 24749558, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644656, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 25)}, 'plastique': {'main_port_id': 24749521, 'sub_port_id': 24749559, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644657, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 25)}, 'cartonnette': {'main_port_id': 24749521, 'sub_port_id': 24749560, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644658, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 25)}, 'Carton_gris': {'main_port_id': 24749521, 'sub_port_id': 24749561, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644659, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 25)}, 'autre_refus': {'main_port_id': 24749521, 'sub_port_id': 24749562, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644660, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 25)}, 'Teint_Dans_La_Masse': {'main_port_id': 24749521, 'sub_port_id': 24749563, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644661, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 25)}, 'mal_croppe': {'main_port_id': 24749521, 'sub_port_id': 24749564, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644662, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 25)}, 'metal': {'main_port_id': 24749521, 'sub_port_id': 24749565, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644663, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 25)}, 'environnement': {'main_port_id': 24749521, 'sub_port_id': 24749566, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644664, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 25)}, 'kraft': {'main_port_id': 24749521, 'sub_port_id': 24749567, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644665, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 25)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24749556 , 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=24749521 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 (24749556) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24749521) result : ((1371374878,), (1371374881,), (1371374954,), (1371374957,), (1371375029,), (1371375030,), (1371375097,), (1371375100,), (1371375164,), (1371375166,), (1371375357,), (1371375386,), (1371375393,), (1371375396,), (1371375399,), (1371375410,), (1371375497,), (1371375539,), (1371375574,), (1371375608,), (1371375639,), (1371375643,), (1371375773,), (1371375775,), (1371375781,), (1371375783,), (1371375793,), (1371375795,), (1371375812,), (1371375816,), (1371375824,), (1371375825,), (1371375834,), (1371375839,), (1371375871,), (1371375885,), (1371375907,), (1371375913,), (1371375917,), (1371375948,), (1371375985,), (1371375994,), (1371375997,), (1371375999,), (1371376008,), (1371376012,), (1371376078,), (1371376083,), (1371376088,), (1371376099,), (1371376103,), (1371376108,)) 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 (1371375100) 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 24749557 , 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=24749521 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 (24749557) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24749521) result : ((1371374878,), (1371374881,), (1371374954,), (1371374957,), (1371375029,), (1371375030,), (1371375097,), (1371375100,), (1371375164,), (1371375166,), (1371375357,), (1371375386,), (1371375393,), (1371375396,), (1371375399,), (1371375410,), (1371375497,), (1371375539,), (1371375574,), (1371375608,), (1371375639,), (1371375643,), (1371375773,), (1371375775,), (1371375781,), (1371375783,), (1371375793,), (1371375795,), (1371375812,), (1371375816,), (1371375824,), (1371375825,), (1371375834,), (1371375839,), (1371375871,), (1371375885,), (1371375907,), (1371375913,), (1371375917,), (1371375948,), (1371375985,), (1371375994,), (1371375997,), (1371375999,), (1371376008,), (1371376012,), (1371376078,), (1371376083,), (1371376088,), (1371376099,), (1371376103,), (1371376108,)) 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 (1371375100) 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 24749558 , 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=24749521 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 (24749558) result : ((1371375826,), (1371375827,), (1371375828,), (1371375829,), (1371375830,), (1371375831,), (1371376065,), (1371376066,), (1371376067,), (1371376068,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24749521) result : ((1371374878,), (1371374881,), (1371374954,), (1371374957,), (1371375029,), (1371375030,), (1371375097,), (1371375100,), (1371375164,), (1371375166,), (1371375357,), (1371375386,), (1371375393,), (1371375396,), (1371375399,), (1371375410,), (1371375497,), (1371375539,), (1371375574,), (1371375608,), (1371375639,), (1371375643,), (1371375773,), (1371375775,), (1371375781,), (1371375783,), (1371375793,), (1371375795,), (1371375812,), (1371375816,), (1371375824,), (1371375825,), (1371375834,), (1371375839,), (1371375871,), (1371375885,), (1371375907,), (1371375913,), (1371375917,), (1371375948,), (1371375985,), (1371375994,), (1371375997,), (1371375999,), (1371376008,), (1371376012,), (1371376078,), (1371376083,), (1371376088,), (1371376099,), (1371376103,), (1371376108,)) 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 (1371375100) 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 24749559 , 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=24749521 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 (24749559) result : ((1371376070,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24749521) result : ((1371374878,), (1371374881,), (1371374954,), (1371374957,), (1371375029,), (1371375030,), (1371375097,), (1371375100,), (1371375164,), (1371375166,), (1371375357,), (1371375386,), (1371375393,), (1371375396,), (1371375399,), (1371375410,), (1371375497,), (1371375539,), (1371375574,), (1371375608,), (1371375639,), (1371375643,), (1371375773,), (1371375775,), (1371375781,), (1371375783,), (1371375793,), (1371375795,), (1371375812,), (1371375816,), (1371375824,), (1371375825,), (1371375834,), (1371375839,), (1371375871,), (1371375885,), (1371375907,), (1371375913,), (1371375917,), (1371375948,), (1371375985,), (1371375994,), (1371375997,), (1371375999,), (1371376008,), (1371376012,), (1371376078,), (1371376083,), (1371376088,), (1371376099,), (1371376103,), (1371376108,)) 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 (1371375100) 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 24749560 , 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=24749521 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 (24749560) result : ((1371376061,), (1371376062,), (1371376063,), (1371376111,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24749521) result : ((1371374878,), (1371374881,), (1371374954,), (1371374957,), (1371375029,), (1371375030,), (1371375097,), (1371375100,), (1371375164,), (1371375166,), (1371375357,), (1371375386,), (1371375393,), (1371375396,), (1371375399,), (1371375410,), (1371375497,), (1371375539,), (1371375574,), (1371375608,), (1371375639,), (1371375643,), (1371375773,), (1371375775,), (1371375781,), (1371375783,), (1371375793,), (1371375795,), (1371375812,), (1371375816,), (1371375824,), (1371375825,), (1371375834,), (1371375839,), (1371375871,), (1371375885,), (1371375907,), (1371375913,), (1371375917,), (1371375948,), (1371375985,), (1371375994,), (1371375997,), (1371375999,), (1371376008,), (1371376012,), (1371376078,), (1371376083,), (1371376088,), (1371376099,), (1371376103,), (1371376108,)) 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 (1371375100) 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 24749561 , 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=24749521 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 (24749561) result : ((1371376056,), (1371376057,), (1371376059,), (1371376060,), (1371376110,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24749521) result : ((1371374878,), (1371374881,), (1371374954,), (1371374957,), (1371375029,), (1371375030,), (1371375097,), (1371375100,), (1371375164,), (1371375166,), (1371375357,), (1371375386,), (1371375393,), (1371375396,), (1371375399,), (1371375410,), (1371375497,), (1371375539,), (1371375574,), (1371375608,), (1371375639,), (1371375643,), (1371375773,), (1371375775,), (1371375781,), (1371375783,), (1371375793,), (1371375795,), (1371375812,), (1371375816,), (1371375824,), (1371375825,), (1371375834,), (1371375839,), (1371375871,), (1371375885,), (1371375907,), (1371375913,), (1371375917,), (1371375948,), (1371375985,), (1371375994,), (1371375997,), (1371375999,), (1371376008,), (1371376012,), (1371376078,), (1371376083,), (1371376088,), (1371376099,), (1371376103,), (1371376108,)) 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 (1371375100) 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 24749562 , 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=24749521 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 (24749562) result : ((1371376051,), (1371376052,), (1371376053,), (1371376054,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24749521) result : ((1371374878,), (1371374881,), (1371374954,), (1371374957,), (1371375029,), (1371375030,), (1371375097,), (1371375100,), (1371375164,), (1371375166,), (1371375357,), (1371375386,), (1371375393,), (1371375396,), (1371375399,), (1371375410,), (1371375497,), (1371375539,), (1371375574,), (1371375608,), (1371375639,), (1371375643,), (1371375773,), (1371375775,), (1371375781,), (1371375783,), (1371375793,), (1371375795,), (1371375812,), (1371375816,), (1371375824,), (1371375825,), (1371375834,), (1371375839,), (1371375871,), (1371375885,), (1371375907,), (1371375913,), (1371375917,), (1371375948,), (1371375985,), (1371375994,), (1371375997,), (1371375999,), (1371376008,), (1371376012,), (1371376078,), (1371376083,), (1371376088,), (1371376099,), (1371376103,), (1371376108,)) 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 (1371375100) 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 24749563 , 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=24749521 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 (24749563) result : ((1371375821,), (1371375822,), (1371376036,), (1371376037,), (1371376038,), (1371376039,), (1371376040,), (1371376041,), (1371376042,), (1371376043,), (1371376106,), (1371376107,), (1371376109,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24749521) result : ((1371374878,), (1371374881,), (1371374954,), (1371374957,), (1371375029,), (1371375030,), (1371375097,), (1371375100,), (1371375164,), (1371375166,), (1371375357,), (1371375386,), (1371375393,), (1371375396,), (1371375399,), (1371375410,), (1371375497,), (1371375539,), (1371375574,), (1371375608,), (1371375639,), (1371375643,), (1371375773,), (1371375775,), (1371375781,), (1371375783,), (1371375793,), (1371375795,), (1371375812,), (1371375816,), (1371375824,), (1371375825,), (1371375834,), (1371375839,), (1371375871,), (1371375885,), (1371375907,), (1371375913,), (1371375917,), (1371375948,), (1371375985,), (1371375994,), (1371375997,), (1371375999,), (1371376008,), (1371376012,), (1371376078,), (1371376083,), (1371376088,), (1371376099,), (1371376103,), (1371376108,)) 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 (1371375100) 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 24749564 , 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=24749521 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 (24749564) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24749521) result : ((1371374878,), (1371374881,), (1371374954,), (1371374957,), (1371375029,), (1371375030,), (1371375097,), (1371375100,), (1371375164,), (1371375166,), (1371375357,), (1371375386,), (1371375393,), (1371375396,), (1371375399,), (1371375410,), (1371375497,), (1371375539,), (1371375574,), (1371375608,), (1371375639,), (1371375643,), (1371375773,), (1371375775,), (1371375781,), (1371375783,), (1371375793,), (1371375795,), (1371375812,), (1371375816,), (1371375824,), (1371375825,), (1371375834,), (1371375839,), (1371375871,), (1371375885,), (1371375907,), (1371375913,), (1371375917,), (1371375948,), (1371375985,), (1371375994,), (1371375997,), (1371375999,), (1371376008,), (1371376012,), (1371376078,), (1371376083,), (1371376088,), (1371376099,), (1371376103,), (1371376108,)) 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 (1371375100) 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 24749565 , 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=24749521 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 (24749565) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24749521) result : ((1371374878,), (1371374881,), (1371374954,), (1371374957,), (1371375029,), (1371375030,), (1371375097,), (1371375100,), (1371375164,), (1371375166,), (1371375357,), (1371375386,), (1371375393,), (1371375396,), (1371375399,), (1371375410,), (1371375497,), (1371375539,), (1371375574,), (1371375608,), (1371375639,), (1371375643,), (1371375773,), (1371375775,), (1371375781,), (1371375783,), (1371375793,), (1371375795,), (1371375812,), (1371375816,), (1371375824,), (1371375825,), (1371375834,), (1371375839,), (1371375871,), (1371375885,), (1371375907,), (1371375913,), (1371375917,), (1371375948,), (1371375985,), (1371375994,), (1371375997,), (1371375999,), (1371376008,), (1371376012,), (1371376078,), (1371376083,), (1371376088,), (1371376099,), (1371376103,), (1371376108,)) 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 (1371375100) 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 24749566 , 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=24749521 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 (24749566) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24749521) result : ((1371374878,), (1371374881,), (1371374954,), (1371374957,), (1371375029,), (1371375030,), (1371375097,), (1371375100,), (1371375164,), (1371375166,), (1371375357,), (1371375386,), (1371375393,), (1371375396,), (1371375399,), (1371375410,), (1371375497,), (1371375539,), (1371375574,), (1371375608,), (1371375639,), (1371375643,), (1371375773,), (1371375775,), (1371375781,), (1371375783,), (1371375793,), (1371375795,), (1371375812,), (1371375816,), (1371375824,), (1371375825,), (1371375834,), (1371375839,), (1371375871,), (1371375885,), (1371375907,), (1371375913,), (1371375917,), (1371375948,), (1371375985,), (1371375994,), (1371375997,), (1371375999,), (1371376008,), (1371376012,), (1371376078,), (1371376083,), (1371376088,), (1371376099,), (1371376103,), (1371376108,)) 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 (1371375100) 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 24749567 , 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=24749521 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 (24749567) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24749521) result : ((1371374878,), (1371374881,), (1371374954,), (1371374957,), (1371375029,), (1371375030,), (1371375097,), (1371375100,), (1371375164,), (1371375166,), (1371375357,), (1371375386,), (1371375393,), (1371375396,), (1371375399,), (1371375410,), (1371375497,), (1371375539,), (1371375574,), (1371375608,), (1371375639,), (1371375643,), (1371375773,), (1371375775,), (1371375781,), (1371375783,), (1371375793,), (1371375795,), (1371375812,), (1371375816,), (1371375824,), (1371375825,), (1371375834,), (1371375839,), (1371375871,), (1371375885,), (1371375907,), (1371375913,), (1371375917,), (1371375948,), (1371375985,), (1371375994,), (1371375997,), (1371375999,), (1371376008,), (1371376012,), (1371376078,), (1371376083,), (1371376088,), (1371376099,), (1371376103,), (1371376108,)) 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 (1371375100) 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`=24749521 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','autre_refus','environnement','kraft','metal','papier','Carton_gris','mal_croppe','plastique','Carton_brun','cartonnette')) 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`=24749521 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','autre_refus','environnement','kraft','metal','papier','Carton_gris','mal_croppe','plastique','Carton_brun','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 24749521, 'sub_port_id': 24749568, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644666, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 28)}, 'papier': {'main_port_id': 24749521, 'sub_port_id': 24749569, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644667, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 28)}, 'Carton_brun': {'main_port_id': 24749521, 'sub_port_id': 24749570, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644668, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 28)}, 'plastique': {'main_port_id': 24749521, 'sub_port_id': 24749571, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644669, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 28)}, 'cartonnette': {'main_port_id': 24749521, 'sub_port_id': 24749572, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644670, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 28)}, 'Carton_gris': {'main_port_id': 24749521, 'sub_port_id': 24749573, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644671, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 28)}, 'autre_refus': {'main_port_id': 24749521, 'sub_port_id': 24749574, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644672, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 24749521, 'sub_port_id': 24749575, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644673, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 28)}, 'mal_croppe': {'main_port_id': 24749521, 'sub_port_id': 24749576, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644674, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 28)}, 'metal': {'main_port_id': 24749521, 'sub_port_id': 24749577, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644675, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 28)}, 'environnement': {'main_port_id': 24749521, 'sub_port_id': 24749578, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644676, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 28)}, 'kraft': {'main_port_id': 24749521, 'sub_port_id': 24749579, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644677, 'last_updated_at': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 14, 6, 27), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 14, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24749568,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24749556 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24749569,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24749557 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24749570,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24749558 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24749571,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24749559 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24749572,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24749560 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24749573,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24749561 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24749574,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24749562 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24749575,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24749563 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24749576,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24749564 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24749577,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24749565 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24749578,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24749566 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24749579,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24749567 lien utilise dans velours : https://www.fotonower.com/velours/24749568,24749569,24749570,24749571,24749572,24749573,24749574,24749575,24749576,24749577,24749578,24749579?tags=flou,papier,Carton_brun,plastique,cartonnette,Carton_gris,autre_refus,Teint_Dans_La_Masse,mal_croppe,metal,environnement,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24749521]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1371376108, 1371376103, 1371376099, 1371376088, 1371376083, 1371376078, 1371376012, 1371376008, 1371375999, 1371375997, 1371375994, 1371375985] map_info['map_portfolio_photo'] : {24749521: [1371376108, 1371376103, 1371376099, 1371376088, 1371376083, 1371376078, 1371376012, 1371376008, 1371375999, 1371375997, 1371375994, 1371375985, 1371375948, 1371375917, 1371375913, 1371375907, 1371375885, 1371375871, 1371375839, 1371375834, 1371375825, 1371375824, 1371375816, 1371375812, 1371375795, 1371375793, 1371375783, 1371375781, 1371375775, 1371375773, 1371375643, 1371375639, 1371375608, 1371375574, 1371375539, 1371375497, 1371375410, 1371375399, 1371375396, 1371375393, 1371375386, 1371375357, 1371375166, 1371375164, 1371375100, 1371375097, 1371375030, 1371375029, 1371374957, 1371374954, 1371374881, 1371374878]} final : False mtd_id 4302 list_pids : [1371376108, 1371376103, 1371376099, 1371376088, 1371376083, 1371376078, 1371376012, 1371376008, 1371375999, 1371375997, 1371375994, 1371375985] Looping around the photos to save general results len do output : 1 /24749521. 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, '3252692') ('4302', '24749521', '1371376108', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376103', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376099', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376088', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376083', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376078', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376012', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376008', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371375999', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371375997', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371375994', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371375985', None, None, None, None, None, '3252692') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24749521', "{'flou': 24749556, 'papier': 24749557, 'Carton_brun': 24749558, 'plastique': 24749559, 'cartonnette': 24749560, 'Carton_gris': 24749561, 'autre_refus': 24749562, 'Teint_Dans_La_Masse': 24749563, 'mal_croppe': 24749564, 'metal': 24749565, 'environnement': 24749566, 'kraft': 24749567}", None, None, None, None, '3252692'), ('4302', '24749521', '1371376108', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376103', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376099', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376088', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376083', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376078', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376012', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376008', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371375999', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371375997', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371375994', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371375985', None, None, None, None, None, '3252692')] time used for this insertion : 0.013748407363891602 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4471457004547119 time spend to save output : 0.014022350311279297 total time spend for step 1 : 0.4611680507659912 step2:final Wed Jul 9 14:08:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24749521) 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 24749521 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1371375164,1371375166,1371375097,1371375100,1371375029,1371375030,1371374954,1371374957,1371374881,1371374878,1371375410,1371375399,1371375396,1371375393,1371375386,1371375357,1371375643,1371375639,1371375608,1371375574,1371375539,1371375497,1371375839,1371375834,1371375825,1371375824,1371375816,1371375812,1371375793,1371375795,1371375783,1371375781,1371375775,1371375773,1371375948,1371375917,1371375913,1371375907,1371375885,1371375871,1371376012,1371376008,1371375999,1371375997,1371375994,1371375985,1371376108,1371376103,1371376099,1371376088,1371376083,1371376078); 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([24749521]) Inside saveOutput : final : False verbose : True original output for save of step final : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ('0.08814623141120628',), 1371375999: ('0.08814623141120628',), 1371375997: ('0.08814623141120628',), 1371375994: ('0.08814623141120628',), 1371375985: ('0.08814623141120628',)} new output for save of step final : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ('0.08814623141120628',), 1371375999: ('0.08814623141120628',), 1371375997: ('0.08814623141120628',), 1371375994: ('0.08814623141120628',), 1371375985: ('0.08814623141120628',)} [1371376108, 1371376103, 1371376099, 1371376088, 1371376083, 1371376078, 1371376012, 1371376008, 1371375999, 1371375997, 1371375994, 1371375985] map_info['map_portfolio_photo'] : {24749521: [1371376108, 1371376103, 1371376099, 1371376088, 1371376083, 1371376078, 1371376012, 1371376008, 1371375999, 1371375997, 1371375994, 1371375985, 1371375948, 1371375917, 1371375913, 1371375907, 1371375885, 1371375871, 1371375839, 1371375834, 1371375825, 1371375824, 1371375816, 1371375812, 1371375795, 1371375793, 1371375783, 1371375781, 1371375775, 1371375773, 1371375643, 1371375639, 1371375608, 1371375574, 1371375539, 1371375497, 1371375410, 1371375399, 1371375396, 1371375393, 1371375386, 1371375357, 1371375166, 1371375164, 1371375100, 1371375097, 1371375030, 1371375029, 1371374957, 1371374954, 1371374881, 1371374878]} final : False mtd_id 4302 list_pids : [1371376108, 1371376103, 1371376099, 1371376088, 1371376083, 1371376078, 1371376012, 1371376008, 1371375999, 1371375997, 1371375994, 1371375985] Looping around the photos to save general results len do output : 12 /1371376108.Didn't retrieve data . /1371376103.Didn't retrieve data . /1371376099.Didn't retrieve data . /1371376088.Didn't retrieve data . /1371376083.Didn't retrieve data . /1371376078.Didn't retrieve data . /1371376012.Didn't retrieve data . /1371376008.Didn't retrieve data . /1371375999.Didn't retrieve data . /1371375997.Didn't retrieve data . /1371375994.Didn't retrieve data . /1371375985.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, '3252692') ('4302', '24749521', '1371376108', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376103', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376099', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376088', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376083', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376078', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376012', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376008', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371375999', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371375997', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371375994', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371375985', None, None, None, None, None, '3252692') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '24749521', '1371376108', '0.08814623141120628', None, None, None, None, '3252692'), ('4302', '24749521', '1371376103', '0.08814623141120628', None, None, None, None, '3252692'), ('4302', '24749521', '1371376099', '0.08814623141120628', None, None, None, None, '3252692'), ('4302', '24749521', '1371376088', '0.08814623141120628', None, None, None, None, '3252692'), ('4302', '24749521', '1371376083', '0.08814623141120628', None, None, None, None, '3252692'), ('4302', '24749521', '1371376078', '0.08814623141120628', None, None, None, None, '3252692'), ('4302', '24749521', '1371376012', '0.08814623141120628', None, None, None, None, '3252692'), ('4302', '24749521', '1371376008', '0.08814623141120628', None, None, None, None, '3252692'), ('4302', '24749521', '1371375999', '0.08814623141120628', None, None, None, None, '3252692'), ('4302', '24749521', '1371375997', '0.08814623141120628', None, None, None, None, '3252692'), ('4302', '24749521', '1371375994', '0.08814623141120628', None, None, None, None, '3252692'), ('4302', '24749521', '1371375985', '0.08814623141120628', None, None, None, None, '3252692')] time used for this insertion : 0.01313924789428711 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06528115272521973 time spend to save output : 0.013715028762817383 total time spend for step 2 : 0.07899618148803711 step3:velours_tree Wed Jul 9 14:08:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {24749521: [{'flou': 24749556, 'papier': 24749557, 'Carton_brun': 24749558, 'plastique': 24749559, 'cartonnette': 24749560, 'Carton_gris': 24749561, 'autre_refus': 24749562, 'Teint_Dans_La_Masse': 24749563, 'mal_croppe': 24749564, 'metal': 24749565, 'environnement': 24749566, 'kraft': 24749567}]} input_args_next_step : {24749521: ()} output_args : {24749521: [{'flou': 24749556, 'papier': 24749557, 'Carton_brun': 24749558, 'plastique': 24749559, 'cartonnette': 24749560, 'Carton_gris': 24749561, 'autre_refus': 24749562, 'Teint_Dans_La_Masse': 24749563, 'mal_croppe': 24749564, 'metal': 24749565, 'environnement': 24749566, 'kraft': 24749567}]} args : 24749521 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 : ({'flou': 24749556, 'papier': 24749557, 'Carton_brun': 24749558, 'plastique': 24749559, 'cartonnette': 24749560, 'Carton_gris': 24749561, 'autre_refus': 24749562, 'Teint_Dans_La_Masse': 24749563, 'mal_croppe': 24749564, 'metal': 24749565, 'environnement': 24749566, 'kraft': 24749567},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24749521) 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([24749521]) 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.26766037940979004 time spend to save output : 4.076957702636719e-05 total time spend for step 3 : 0.2677011489868164 step4:send_mail_cod Wed Jul 9 14:08:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ('0.08814623141120628',), 1371375999: ('0.08814623141120628',), 1371375997: ('0.08814623141120628',), 1371375994: ('0.08814623141120628',), 1371375985: ('0.08814623141120628',)} input_args_next_step : {1371376108: ()} output_args : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ('0.08814623141120628',), 1371375999: ('0.08814623141120628',), 1371375997: ('0.08814623141120628',), 1371375994: ('0.08814623141120628',), 1371375985: ('0.08814623141120628',)} args : 1371376108 depend.output_id : 0 input_args_next_step : {1371376108: ('0.08814623141120628',), 1371376103: ()} output_args : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ('0.08814623141120628',), 1371375999: ('0.08814623141120628',), 1371375997: ('0.08814623141120628',), 1371375994: ('0.08814623141120628',), 1371375985: ('0.08814623141120628',)} args : 1371376103 depend.output_id : 0 input_args_next_step : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ()} output_args : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ('0.08814623141120628',), 1371375999: ('0.08814623141120628',), 1371375997: ('0.08814623141120628',), 1371375994: ('0.08814623141120628',), 1371375985: ('0.08814623141120628',)} args : 1371376099 depend.output_id : 0 input_args_next_step : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ()} output_args : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ('0.08814623141120628',), 1371375999: ('0.08814623141120628',), 1371375997: ('0.08814623141120628',), 1371375994: ('0.08814623141120628',), 1371375985: ('0.08814623141120628',)} args : 1371376088 depend.output_id : 0 input_args_next_step : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ()} output_args : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ('0.08814623141120628',), 1371375999: ('0.08814623141120628',), 1371375997: ('0.08814623141120628',), 1371375994: ('0.08814623141120628',), 1371375985: ('0.08814623141120628',)} args : 1371376083 depend.output_id : 0 input_args_next_step : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ()} output_args : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ('0.08814623141120628',), 1371375999: ('0.08814623141120628',), 1371375997: ('0.08814623141120628',), 1371375994: ('0.08814623141120628',), 1371375985: ('0.08814623141120628',)} args : 1371376078 depend.output_id : 0 input_args_next_step : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ()} output_args : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ('0.08814623141120628',), 1371375999: ('0.08814623141120628',), 1371375997: ('0.08814623141120628',), 1371375994: ('0.08814623141120628',), 1371375985: ('0.08814623141120628',)} args : 1371376012 depend.output_id : 0 input_args_next_step : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ()} output_args : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ('0.08814623141120628',), 1371375999: ('0.08814623141120628',), 1371375997: ('0.08814623141120628',), 1371375994: ('0.08814623141120628',), 1371375985: ('0.08814623141120628',)} args : 1371376008 depend.output_id : 0 input_args_next_step : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ('0.08814623141120628',), 1371375999: ()} output_args : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ('0.08814623141120628',), 1371375999: ('0.08814623141120628',), 1371375997: ('0.08814623141120628',), 1371375994: ('0.08814623141120628',), 1371375985: ('0.08814623141120628',)} args : 1371375999 depend.output_id : 0 input_args_next_step : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ('0.08814623141120628',), 1371375999: ('0.08814623141120628',), 1371375997: ()} output_args : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ('0.08814623141120628',), 1371375999: ('0.08814623141120628',), 1371375997: ('0.08814623141120628',), 1371375994: ('0.08814623141120628',), 1371375985: ('0.08814623141120628',)} args : 1371375997 depend.output_id : 0 input_args_next_step : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ('0.08814623141120628',), 1371375999: ('0.08814623141120628',), 1371375997: ('0.08814623141120628',), 1371375994: ()} output_args : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ('0.08814623141120628',), 1371375999: ('0.08814623141120628',), 1371375997: ('0.08814623141120628',), 1371375994: ('0.08814623141120628',), 1371375985: ('0.08814623141120628',)} args : 1371375994 depend.output_id : 0 input_args_next_step : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ('0.08814623141120628',), 1371375999: ('0.08814623141120628',), 1371375997: ('0.08814623141120628',), 1371375994: ('0.08814623141120628',), 1371375985: ()} output_args : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ('0.08814623141120628',), 1371375999: ('0.08814623141120628',), 1371375997: ('0.08814623141120628',), 1371375994: ('0.08814623141120628',), 1371375985: ('0.08814623141120628',)} args : 1371375985 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 : {24749521: [{'flou': 24749556, 'papier': 24749557, 'Carton_brun': 24749558, 'plastique': 24749559, 'cartonnette': 24749560, 'Carton_gris': 24749561, 'autre_refus': 24749562, 'Teint_Dans_La_Masse': 24749563, 'mal_croppe': 24749564, 'metal': 24749565, 'environnement': 24749566, 'kraft': 24749567}]} input_args_next_step : {1371376108: ('0.08814623141120628',), 1371376103: ('0.08814623141120628',), 1371376099: ('0.08814623141120628',), 1371376088: ('0.08814623141120628',), 1371376083: ('0.08814623141120628',), 1371376078: ('0.08814623141120628',), 1371376012: ('0.08814623141120628',), 1371376008: ('0.08814623141120628',), 1371375999: ('0.08814623141120628',), 1371375997: ('0.08814623141120628',), 1371375994: ('0.08814623141120628',), 1371375985: ('0.08814623141120628',), 24749521: ()} output_args : {24749521: [{'flou': 24749556, 'papier': 24749557, 'Carton_brun': 24749558, 'plastique': 24749559, 'cartonnette': 24749560, 'Carton_gris': 24749561, 'autre_refus': 24749562, 'Teint_Dans_La_Masse': 24749563, 'mal_croppe': 24749564, 'metal': 24749565, 'environnement': 24749566, 'kraft': 24749567}]} args : 24749521 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 :13, first value : ('0.08814623141120628',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24749521) 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 (1371376108,1371376103,1371376099,1371376088,1371376083,1371376078,1371376012,1371376008,1371375999,1371375997,1371375994,1371375985) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1371375985 begin to download photo : 1371375999 begin to download photo : 1371376078 begin to download photo : 1371376099 download finish for photo 1371375985 begin to download photo : 1371375994 download finish for photo 1371376099 begin to download photo : 1371376103 download finish for photo 1371376078 begin to download photo : 1371376083 download finish for photo 1371375999 begin to download photo : 1371376008 download finish for photo 1371376103 begin to download photo : 1371376108 download finish for photo 1371376008 begin to download photo : 1371376012 download finish for photo 1371375994 begin to download photo : 1371375997 download finish for photo 1371376083 begin to download photo : 1371376088 download finish for photo 1371376012 download finish for photo 1371375997 download finish for photo 1371376108 download finish for photo 1371376088 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette247495561752062938/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24749521_09-07-2025_14_08_58.pdf 24749556 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=24749556 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247495561752062938 24749559 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=24749559 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371376070: '1752062785_1498224_1371375497_b0a2d07809e638990b0c78acd5dfdf10_rle_crop_3877237747_0.png'} change filename to text .imagette247495591752062938/ imagette247495591752062938/1752062785_1498224_1371375497_b0a2d07809e638990b0c78acd5dfdf10_rle_crop_3877237747_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/9ff5b6aca956afbb0c824dc67c5b6aaf_77300998.png imagette247495591752062938 24749560 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=24749560 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371376061: '1752062785_1498224_1371375639_151c146a2c0112b792a862f6e1888419_rle_crop_3877237680_0.png', 1371376062: '1752062785_1498224_1371375539_9477cdab86a8befbf14968a0c1075d92_rle_crop_3877237729_0.png', 1371376063: '1752062785_1498224_1371375497_b0a2d07809e638990b0c78acd5dfdf10_rle_crop_3877237742_0.png', 1371376111: '1752062845_1499588_1371375357_4f2be33484f8ef3b569e3e6172b1e9d7_rle_crop_3877237977_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/57fb86b80c2d52750ca729062fda6840_27688456.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/f8a28973a9be0ae7f6ca7c10f363641c_52804704.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/964124f9a521ba32e1bff3b34725b23e_76925372.png change filename to text .imagette247495601752062938/ imagette247495601752062938/1752062785_1498224_1371375639_151c146a2c0112b792a862f6e1888419_rle_crop_3877237680_0.png.png imagette247495601752062938/1752062785_1498224_1371375497_b0a2d07809e638990b0c78acd5dfdf10_rle_crop_3877237742_0.png.png imagette247495601752062938/1752062785_1498224_1371375539_9477cdab86a8befbf14968a0c1075d92_rle_crop_3877237729_0.png.png imagette247495601752062938/1752062845_1499588_1371375357_4f2be33484f8ef3b569e3e6172b1e9d7_rle_crop_3877237977_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/a799ae91683a13023ace3c8474f88259_91160029.png imagette247495601752062938 24749562 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=24749562 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371376051: '1752062785_1498224_1371375639_151c146a2c0112b792a862f6e1888419_rle_crop_3877237688_0.png', 1371376052: '1752062785_1498224_1371375608_cc9cafa341cf688c613e11d520db3b2f_rle_crop_3877237701_0.png', 1371376053: '1752062785_1498224_1371375574_f7370f9f38b01001bcb661e45edf3690_rle_crop_3877237716_0.png', 1371376054: '1752062785_1498224_1371375539_9477cdab86a8befbf14968a0c1075d92_rle_crop_3877237732_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/ccf043edff3fdfc2e1a1f14d6981bea3_36787549.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/b1220a0f1ef883167e47fdc736d08734_74576074.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/e50719ffa565d63e0780ed7d80a2a67e_26277382.png change filename to text .imagette247495621752062939/ imagette247495621752062939/1752062785_1498224_1371375639_151c146a2c0112b792a862f6e1888419_rle_crop_3877237688_0.png.png imagette247495621752062939/1752062785_1498224_1371375539_9477cdab86a8befbf14968a0c1075d92_rle_crop_3877237732_0.png.png imagette247495621752062939/1752062785_1498224_1371375574_f7370f9f38b01001bcb661e45edf3690_rle_crop_3877237716_0.png.png imagette247495621752062939/1752062785_1498224_1371375608_cc9cafa341cf688c613e11d520db3b2f_rle_crop_3877237701_0.png.png imagette247495641752062939/ imagette247495651752062939/ imagette247495671752062939/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/a99b0c8e88d044bd1ae8b2ca025f332f_27726820.png imagette247495621752062939 24749564 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=24749564 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247495641752062939 24749565 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=24749565 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247495651752062939 24749567 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=24749567 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247495671752062939 24749558 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=24749558 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371375826: '1752062647_936917_1371375030_4882ba3f34c7a7368696417385d5741a_rle_crop_3877237150_0.png', 1371375827: '1752062647_936917_1371375029_e0d5b86c7bf29d1a37b56a1b103514fc_rle_crop_3877237167_0.png', 1371375828: '1752062647_936917_1371374957_6a8452d27e59711007eaf2e4ba3cc6e0_rle_crop_3877237193_0.png', 1371375829: '1752062647_936917_1371374954_c335ff8ef97d36ec57ae7d6162b515ed_rle_crop_3877237215_0.png', 1371375830: '1752062647_936917_1371374881_b6c2a0cae549c02983cdb094e87dd982_rle_crop_3877237235_0.png', 1371375831: '1752062647_936917_1371374878_a477f966b47b947cd379a2cc719d8c59_rle_crop_3877237263_0.png', 1371376065: '1752062785_1498224_1371375643_6944715968021d95901a13c7eefc4be9_rle_crop_3877237669_0.png', 1371376066: '1752062785_1498224_1371375639_151c146a2c0112b792a862f6e1888419_rle_crop_3877237682_0.png', 1371376067: '1752062785_1498224_1371375608_cc9cafa341cf688c613e11d520db3b2f_rle_crop_3877237698_0.png', 1371376068: '1752062785_1498224_1371375574_f7370f9f38b01001bcb661e45edf3690_rle_crop_3877237712_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/a2e57d5cd0ae8cf442e28e3f58402231_45034416.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/a2e57d5cd0ae8cf442e28e3f58402231_24513058.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/7013c8b241a5b18c640ea3b39ded3917_76620394.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/7013c8b241a5b18c640ea3b39ded3917_11857499.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/d4ac497ac96a9cab74de66732f52a35f_76173502.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/d4ac497ac96a9cab74de66732f52a35f_19298150.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/77b1f5636e83f4aad9951e1fab15235f_82277280.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/cc180dcdbe8e3829646e1eb64df9d919_37344793.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/6b59dec5bf001638a4bf5e22e81fce46_1725237.png change filename to text .imagette247495581752062939/ imagette247495581752062939/1752062647_936917_1371374957_6a8452d27e59711007eaf2e4ba3cc6e0_rle_crop_3877237193_0.png.png imagette247495581752062939/1752062785_1498224_1371375643_6944715968021d95901a13c7eefc4be9_rle_crop_3877237669_0.png.png imagette247495581752062939/1752062647_936917_1371375029_e0d5b86c7bf29d1a37b56a1b103514fc_rle_crop_3877237167_0.png.png imagette247495581752062939/1752062647_936917_1371375030_4882ba3f34c7a7368696417385d5741a_rle_crop_3877237150_0.png.png imagette247495581752062939/1752062647_936917_1371374881_b6c2a0cae549c02983cdb094e87dd982_rle_crop_3877237235_0.png.png imagette247495581752062939/1752062785_1498224_1371375608_cc9cafa341cf688c613e11d520db3b2f_rle_crop_3877237698_0.png.png imagette247495581752062939/1752062785_1498224_1371375574_f7370f9f38b01001bcb661e45edf3690_rle_crop_3877237712_0.png.png imagette247495581752062939/1752062647_936917_1371374954_c335ff8ef97d36ec57ae7d6162b515ed_rle_crop_3877237215_0.png.png imagette247495581752062939/1752062647_936917_1371374878_a477f966b47b947cd379a2cc719d8c59_rle_crop_3877237263_0.png.png imagette247495581752062939/1752062785_1498224_1371375639_151c146a2c0112b792a862f6e1888419_rle_crop_3877237682_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/06d14c5ab70c483282a78be969db03b2_56644210.png imagette247495581752062939 24749561 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=24749561 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371376056: '1752062785_1498224_1371375643_6944715968021d95901a13c7eefc4be9_rle_crop_3877237667_0.png', 1371376057: '1752062785_1498224_1371375643_6944715968021d95901a13c7eefc4be9_rle_crop_3877237664_0.png', 1371376059: '1752062785_1498224_1371375608_cc9cafa341cf688c613e11d520db3b2f_rle_crop_3877237696_0.png', 1371376060: '1752062785_1498224_1371375497_b0a2d07809e638990b0c78acd5dfdf10_rle_crop_3877237740_0.png', 1371376110: '1752062845_1499588_1371375410_7ff472795104cd7e8c2480d57f1b891e_rle_crop_3877237910_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/f7eb5a10e89b1a740fcd3505c93b3e90_86511139.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/67d838978452a83890d242ffe74d86ee_3906681.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/6fd82f9976519d2dffa66d4e9539d3b2_27201507.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/29f6489556bd9a66329b05960ebdff1f_33354799.png change filename to text .imagette247495611752062939/ imagette247495611752062939/1752062785_1498224_1371375643_6944715968021d95901a13c7eefc4be9_rle_crop_3877237667_0.png.png imagette247495611752062939/1752062845_1499588_1371375410_7ff472795104cd7e8c2480d57f1b891e_rle_crop_3877237910_0.png.png imagette247495611752062939/1752062785_1498224_1371375608_cc9cafa341cf688c613e11d520db3b2f_rle_crop_3877237696_0.png.png imagette247495611752062939/1752062785_1498224_1371375497_b0a2d07809e638990b0c78acd5dfdf10_rle_crop_3877237740_0.png.png imagette247495611752062939/1752062785_1498224_1371375643_6944715968021d95901a13c7eefc4be9_rle_crop_3877237664_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/ae54afeaf8e92e0779e004d1acf6007f_82754222.png imagette247495611752062939 24749563 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=24749563 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371375821: '1752062647_936917_1371374957_6a8452d27e59711007eaf2e4ba3cc6e0_rle_crop_3877237191_0.png', 1371375822: '1752062647_936917_1371374954_c335ff8ef97d36ec57ae7d6162b515ed_rle_crop_3877237213_0.png', 1371376036: '1752062785_1498224_1371375643_6944715968021d95901a13c7eefc4be9_rle_crop_3877237670_0.png', 1371376037: '1752062785_1498224_1371375639_151c146a2c0112b792a862f6e1888419_rle_crop_3877237687_0.png', 1371376038: '1752062785_1498224_1371375608_cc9cafa341cf688c613e11d520db3b2f_rle_crop_3877237702_0.png', 1371376039: '1752062785_1498224_1371375608_cc9cafa341cf688c613e11d520db3b2f_rle_crop_3877237699_0.png', 1371376040: '1752062785_1498224_1371375574_f7370f9f38b01001bcb661e45edf3690_rle_crop_3877237715_0.png', 1371376041: '1752062785_1498224_1371375539_9477cdab86a8befbf14968a0c1075d92_rle_crop_3877237730_0.png', 1371376042: '1752062785_1498224_1371375539_9477cdab86a8befbf14968a0c1075d92_rle_crop_3877237731_0.png', 1371376043: '1752062785_1498224_1371375539_9477cdab86a8befbf14968a0c1075d92_rle_crop_3877237728_0.png', 1371376106: '1752062845_1499588_1371375399_a29f1bcb3bb69ab2cb4b4464398aa386_rle_crop_3877237928_0.png', 1371376107: '1752062845_1499588_1371375396_5fbcb23410658ac756a602625d02c404_rle_crop_3877237944_0.png', 1371376109: '1752062845_1499588_1371375396_5fbcb23410658ac756a602625d02c404_rle_crop_3877237936_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/e850b175dff21500fb2a775acb279740_73495167.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/e850b175dff21500fb2a775acb279740_89547639.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/120a7d8503767b886f8a48e360a83e82_21166651.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/a4becaedc5927484bcb6574f55ed0c53_92624966.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/b491af968231ccd2f13a823f6bc4ce94_82421580.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/3a685f533469bc88455f8626eebd29ee_30572593.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/58b6e2f890001306b3f5444c38f4b72f_39649784.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/b2ec0144565059b0b361143230ed3209_39231088.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/ca95b6b130191e3d13007c155f0a050d_35785985.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/8a188f139e690485b8e2b7a5d9bbdedc_96260528.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/cf4df035a8d07c1569873c0b8cb49be2_86845960.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/8b169849511ff23b3f83aca667995939_62706114.png change filename to text .imagette247495631752062940/ imagette247495631752062940/1752062647_936917_1371374957_6a8452d27e59711007eaf2e4ba3cc6e0_rle_crop_3877237191_0.png.png imagette247495631752062940/1752062785_1498224_1371375539_9477cdab86a8befbf14968a0c1075d92_rle_crop_3877237730_0.png.png imagette247495631752062940/1752062647_936917_1371374954_c335ff8ef97d36ec57ae7d6162b515ed_rle_crop_3877237213_0.png.png imagette247495631752062940/1752062845_1499588_1371375399_a29f1bcb3bb69ab2cb4b4464398aa386_rle_crop_3877237928_0.png.png imagette247495631752062940/1752062785_1498224_1371375639_151c146a2c0112b792a862f6e1888419_rle_crop_3877237687_0.png.png imagette247495631752062940/1752062845_1499588_1371375396_5fbcb23410658ac756a602625d02c404_rle_crop_3877237944_0.png.png imagette247495631752062940/1752062785_1498224_1371375539_9477cdab86a8befbf14968a0c1075d92_rle_crop_3877237728_0.png.png imagette247495631752062940/1752062785_1498224_1371375539_9477cdab86a8befbf14968a0c1075d92_rle_crop_3877237731_0.png.png imagette247495631752062940/1752062785_1498224_1371375643_6944715968021d95901a13c7eefc4be9_rle_crop_3877237670_0.png.png imagette247495631752062940/1752062785_1498224_1371375574_f7370f9f38b01001bcb661e45edf3690_rle_crop_3877237715_0.png.png imagette247495631752062940/1752062785_1498224_1371375608_cc9cafa341cf688c613e11d520db3b2f_rle_crop_3877237702_0.png.png imagette247495631752062940/1752062845_1499588_1371375396_5fbcb23410658ac756a602625d02c404_rle_crop_3877237936_0.png.png imagette247495631752062940/1752062785_1498224_1371375608_cc9cafa341cf688c613e11d520db3b2f_rle_crop_3877237699_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/57b34920ea3ad3b95e92c820f728ca5e_7416437.png imagette247495631752062940 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24749521 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24749568,24749569,24749570,24749571,24749572,24749573,24749574,24749575,24749576,24749577,24749578,24749579?tags=flou,papier,Carton_brun,plastique,cartonnette,Carton_gris,autre_refus,Teint_Dans_La_Masse,mal_croppe,metal,environnement,kraft your option no_mail is active, we will not send the real mail to your client args[1371376108] : ('0.08814623141120628',) no score found for photo 1371376108 We are sending mail with results at report@fotonower.com args[1371376103] : ('0.08814623141120628',) no score found for photo 1371376103 We are sending mail with results at report@fotonower.com args[1371376099] : ('0.08814623141120628',) no score found for photo 1371376099 We are sending mail with results at report@fotonower.com args[1371376088] : ('0.08814623141120628',) no score found for photo 1371376088 We are sending mail with results at report@fotonower.com args[1371376083] : ('0.08814623141120628',) no score found for photo 1371376083 We are sending mail with results at report@fotonower.com args[1371376078] : ('0.08814623141120628',) no score found for photo 1371376078 We are sending mail with results at report@fotonower.com args[1371376012] : ('0.08814623141120628',) no score found for photo 1371376012 We are sending mail with results at report@fotonower.com args[1371376008] : ('0.08814623141120628',) no score found for photo 1371376008 We are sending mail with results at report@fotonower.com args[1371375999] : ('0.08814623141120628',) no score found for photo 1371375999 We are sending mail with results at report@fotonower.com args[1371375997] : ('0.08814623141120628',) no score found for photo 1371375997 We are sending mail with results at report@fotonower.com args[1371375994] : ('0.08814623141120628',) no score found for photo 1371375994 We are sending mail with results at report@fotonower.com args[1371375985] : ('0.08814623141120628',) no score found for photo 1371375985 We are sending mail with results at report@fotonower.com refus_total : 0.08814623141120628 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=24749521 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_P24749521_09-07-2025_14_08_58.pdf results_Auto_P24749521_09-07-2025_14_08_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24749521_09-07-2025_14_08_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','24749521','results_Auto_P24749521_09-07-2025_14_08_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24749521_09-07-2025_14_08_58.pdf','pdf','','0.21','0.08814623141120628') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24749521]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1371376108, 1371376103, 1371376099, 1371376088, 1371376083, 1371376078, 1371376012, 1371376008, 1371375999, 1371375997, 1371375994, 1371375985] map_info['map_portfolio_photo'] : {24749521: [1371376108, 1371376103, 1371376099, 1371376088, 1371376083, 1371376078, 1371376012, 1371376008, 1371375999, 1371375997, 1371375994, 1371375985, 1371375948, 1371375917, 1371375913, 1371375907, 1371375885, 1371375871, 1371375839, 1371375834, 1371375825, 1371375824, 1371375816, 1371375812, 1371375795, 1371375793, 1371375783, 1371375781, 1371375775, 1371375773, 1371375643, 1371375639, 1371375608, 1371375574, 1371375539, 1371375497, 1371375410, 1371375399, 1371375396, 1371375393, 1371375386, 1371375357, 1371375166, 1371375164, 1371375100, 1371375097, 1371375030, 1371375029, 1371374957, 1371374954, 1371374881, 1371374878]} final : False mtd_id 4302 list_pids : [1371376108, 1371376103, 1371376099, 1371376088, 1371376083, 1371376078, 1371376012, 1371376008, 1371375999, 1371375997, 1371375994, 1371375985] 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, '3252692') ('4302', '24749521', '1371376108', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376103', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376099', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376088', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376083', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376078', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376012', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376008', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371375999', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371375997', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371375994', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371375985', None, None, None, None, None, '3252692') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '24749521', '1371376108', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376103', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376099', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376088', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376083', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376078', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376012', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376008', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371375999', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371375997', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371375994', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371375985', None, None, None, None, None, '3252692')] time used for this insertion : 0.013023853302001953 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.6733179092407227 time spend to save output : 0.013228178024291992 total time spend for step 4 : 3.6865460872650146 step5:split_time_score Wed Jul 9 14:09:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['24749521'] 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 : [('24749521',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24749521) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1371375999: {'path': 'temp/1752062938_3252313_1371375999_6028bb865b74b82094489065f82a090d.jpg', 'extension': 'jpg'}, 1371376008: {'path': 'temp/1752062938_3252313_1371376008_14b2c999942e9da75d32a9ea214cafe3.jpg', 'extension': 'jpg'}, 1371376012: {'path': 'temp/1752062938_3252313_1371376012_0f1445d421ffcfa8b3b8c0bc7f3c16ea.jpg', 'extension': 'jpg'}, 1371375985: {'path': 'temp/1752062938_3252313_1371375985_bb5c95f57bb9d2beecb3e4888075ab7c.jpg', 'extension': 'jpg'}, 1371375994: {'path': 'temp/1752062938_3252313_1371375994_ede54984c5218a50d6f261beabad5e5d.jpg', 'extension': 'jpg'}, 1371375997: {'path': 'temp/1752062938_3252313_1371375997_a96b2b7b09c29f963751dcd7cd4ab923.jpg', 'extension': 'jpg'}, 1371376099: {'path': 'temp/1752062938_3252313_1371376099_98305f0a82a1f594e17f24a47585435e.jpg', 'extension': 'jpg'}, 1371376103: {'path': 'temp/1752062938_3252313_1371376103_c991fdb60fd8cff1e5423bf928954f38.jpg', 'extension': 'jpg'}, 1371376108: {'path': 'temp/1752062938_3252313_1371376108_6e82be3ad0437ca809e379401b8a6c5f.jpg', 'extension': 'jpg'}, 1371376078: {'path': 'temp/1752062938_3252313_1371376078_974248a39e26bbdf7b46eb48e14fd3e3.jpg', 'extension': 'jpg'}, 1371376083: {'path': 'temp/1752062938_3252313_1371376083_81bbbd4db2988ab23705f2e5d43cd191.jpg', 'extension': 'jpg'}, 1371376088: {'path': 'temp/1752062938_3252313_1371376088_64c63c3f19b32de13567c3f4720f544b.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 = 24749521; (('arc_en_ciel_jrm_live',), ('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 = 24749521 group by h (('14', 52),) 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=24749521 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 (24749521) 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 (24749521) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09072025 24749521 Nombre de photos uploadées : 52 / 23040 (0%) 09072025 24749521 Nombre de photos taguées (types de déchets): 0 / 52 (0%) 09072025 24749521 Nombre de photos taguées (volume) : 0 / 52 (0%) [{'photo_id': 1371375164, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/d1e128d63108cb6fe06cf2fe80ea9b9a.jpg', 'username': None, 'uploaded_at': 1752062493, 'text': 'image_09072025_14_00_13_10157.jpg'}, {'photo_id': 1371375166, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/2dc56170ad296a804cc65c8ac85b65df.jpg', 'username': None, 'uploaded_at': 1752062493, 'text': 'image_09072025_14_00_13_10157.jpg'}, {'photo_id': 1371375097, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/ba52db5a6b9ed732320dc7b78bf8d624.jpg', 'username': None, 'uploaded_at': 1752062493, 'text': 'image_09072025_14_00_24_10139.jpg'}, {'photo_id': 1371375100, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/d8635aa5d6ac6dfe298d002a685cc26b.jpg', 'username': None, 'uploaded_at': 1752062493, 'text': 'image_09072025_14_00_24_10139.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ???????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002245187759399414 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24749521, '2025-07-09' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1963591,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02192091941833496 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= 1963591 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971057, 'mtr_portfolio_id': 24749394, 'dashboard_result_id': 12300553, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971057, 'mtr_portfolio_id': 24747504, 'dashboard_result_id': 12300554, '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_P24747504_09-07-2025_13_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747572, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971057, 'mtr_portfolio_id': 24747262, 'dashboard_result_id': 12300555, '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_P24747262_09-07-2025_13_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747275, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747276, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971057, 'mtr_portfolio_id': 24747707, 'dashboard_result_id': 12300556, '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_P24747707_09-07-2025_13_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747756, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971057, 'mtr_portfolio_id': 24748269, 'dashboard_result_id': 12300557, '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_P24748269_09-07-2025_13_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24748304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24748305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24748306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24748307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24748308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24748309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24748310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24748311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24748312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24748313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24748314, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24748315, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971057, 'mtr_portfolio_id': 24748870, 'dashboard_result_id': 12300558, '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_P24748870_09-07-2025_14_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24748885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24748886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24748887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24748888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24748889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24748890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24748891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24748892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24748893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24748894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24748895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24748896, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971057, 'mtr_portfolio_id': 24749521, 'dashboard_result_id': 12300559, '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_P24749521_09-07-2025_14_04_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24749556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24749557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24749558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24749559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24749560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24749561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24749562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24749563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24749564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24749565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24749566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24749567, '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 = 24749394 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 24749394 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 24749394 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24749394 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24749394 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24749394 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24749394_09-07-2025_14_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24749394 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_P24749394_09-07-2025_14_01_00.pdf'}" where mtr_portfolio_id = 24749394 and dashboard_run_id = 1971057 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 = 24747504 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': 3252385, 'mtr_portfolio_id': 24747504, 'created_at': datetime.datetime(2025, 7, 9, 14, 0, 31), 'result': '0.035140833441915834', 'result_long': None, 'result_double': None}] Qualite : 0.035140833441915834 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24747504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24747504_09-07-2025_14_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24747504 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_P24747504_09-07-2025_14_00_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747572, 'pht': 3726}}" where mtr_portfolio_id = 24747504 and dashboard_run_id = 1971057 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`=24747504 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12300554, 0.035140833441915834, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24747504_09-07-2025_14_00_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747572, '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 = 24747262 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': 3252354, 'mtr_portfolio_id': 24747262, 'created_at': datetime.datetime(2025, 7, 9, 13, 16, 59), 'result': '0.031805652620991554', 'result_long': None, 'result_double': None}] Qualite : 0.031805652620991554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24747262 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24747262_09-07-2025_13_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24747262 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_P24747262_09-07-2025_13_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747275, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747276, 'pht': 3726}}" where mtr_portfolio_id = 24747262 and dashboard_run_id = 1971057 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`=24747262 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12300555, 0.031805652620991554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24747262_09-07-2025_13_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747275, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747276, '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 = 24747707 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': 3252405, 'mtr_portfolio_id': 24747707, 'created_at': datetime.datetime(2025, 7, 9, 13, 33, 28), 'result': '0.0530137814613162', 'result_long': None, 'result_double': None}] Qualite : 0.0530137814613162 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24747707 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24747707_09-07-2025_13_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24747707 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_P24747707_09-07-2025_13_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747756, 'pht': 3726}}" where mtr_portfolio_id = 24747707 and dashboard_run_id = 1971058 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`=24747707 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12300556, 0.0530137814613162, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24747707_09-07-2025_13_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747756, '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 = 24748269 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': 3252484, 'mtr_portfolio_id': 24748269, 'created_at': datetime.datetime(2025, 7, 9, 13, 46, 59), 'result': '0.04382890444493781', 'result_long': None, 'result_double': None}] Qualite : 0.04382890444493781 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24748269 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24748269_09-07-2025_13_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24748269 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_P24748269_09-07-2025_13_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24748304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24748305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24748306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24748307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24748308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24748309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24748310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24748311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24748312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24748313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24748314, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24748315, 'pht': 3726}}" where mtr_portfolio_id = 24748269 and dashboard_run_id = 1971058 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`=24748269 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12300557, 0.04382890444493781, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24748269_09-07-2025_13_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24748304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24748305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24748306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24748307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24748308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24748309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24748310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24748311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24748312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24748313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24748314, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24748315, '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 = 24748870 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': 3252606, 'mtr_portfolio_id': 24748870, 'created_at': datetime.datetime(2025, 7, 9, 14, 2, 59), 'result': '0.05285976447939329', 'result_long': None, 'result_double': None}] Qualite : 0.05285976447939329 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24748870 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24748870_09-07-2025_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24748870 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_P24748870_09-07-2025_14_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24748885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24748886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24748887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24748888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24748889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24748890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24748891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24748892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24748893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24748894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24748895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24748896, 'pht': 3726}}" where mtr_portfolio_id = 24748870 and dashboard_run_id = 1971058 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`=24748870 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12300558, 0.05285976447939329, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24748870_09-07-2025_14_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24748885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24748886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24748887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24748888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24748889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24748890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24748891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24748892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24748893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24748894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24748895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24748896, '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 = 24749521 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': 3252692, 'mtr_portfolio_id': 24749521, 'created_at': datetime.datetime(2025, 7, 9, 14, 8, 58), 'result': '0.08814623141120628', 'result_long': None, 'result_double': None}] Qualite : 0.08814623141120628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24749521 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24749521_09-07-2025_14_08_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24749521 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_P24749521_09-07-2025_14_08_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24749556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24749557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24749558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24749559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24749560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24749561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24749562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24749563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24749564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24749565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24749566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24749567, 'pht': 3726}}" where mtr_portfolio_id = 24749521 and dashboard_run_id = 1971058 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`=24749521 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12300559, 0.08814623141120628, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24749521_09-07-2025_14_08_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24749556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24749557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24749558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24749559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24749560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24749561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24749562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24749563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24749564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24749565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24749566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24749567, '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 (24749394,24747504,24747262,24747707,24748269,24748870,24749521) result : ((1371368493,), (1371368499,), (1371368500,), (1371368521,), (1371368524,), (1371368527,), (1371368547,), (1371368550,), (1371368554,), (1371368564,), (1371368566,), (1371368567,), (1371368578,), (1371368582,), (1371368592,), (1371368594,), (1371368597,), (1371368600,), (1371368615,), (1371368623,), (1371368625,), (1371368628,), (1371368630,), (1371368634,), (1371368654,), (1371368659,), (1371368662,), (1371368664,), (1371368671,), (1371368672,), (1371368684,), (1371368687,), (1371368690,), (1371368709,), (1371368713,), (1371368714,), (1371368726,), (1371368729,), (1371368745,), (1371368753,), (1371368755,), (1371368757,), (1371368770,), (1371368778,), (1371368780,), (1371368783,), (1371368785,), (1371368793,), (1371368819,), (1371368827,), (1371368829,), (1371368830,), (1371368838,), (1371368840,), (1371368885,), (1371368919,), (1371368929,), (1371368937,), (1371368944,), (1371368960,), (1371368961,), (1371368965,), (1371368966,), (1371368975,), (1371368976,), (1371368979,), (1371368980,), (1371368982,), (1371368983,), (1371368984,), (1371368986,), (1371369014,), (1371369023,), (1371369027,), (1371369031,), (1371369036,), (1371369053,), (1371369066,), (1371369074,), (1371369076,), (1371369078,), (1371369086,), (1371369088,), (1371369215,), (1371369250,), (1371369303,), (1371369343,), (1371369376,), (1371369377,), (1371369426,), (1371369468,), (1371369486,), (1371369489,), (1371369511,), (1371369539,), (1371368945,), (1371369106,), (1371369109,), (1371369111,), (1371369113,), (1371369121,), (1371369122,), (1371369689,), (1371369693,), (1371369695,), (1371369704,), (1371369708,), (1371369711,), (1371369873,), (1371369877,), (1371369879,), (1371369891,), (1371369917,), (1371369935,), (1371370089,), (1371370105,), (1371370116,), (1371370117,), (1371370119,), (1371370128,), (1371370299,), (1371370308,), (1371370312,), (1371370314,), (1371370323,), (1371370332,), (1371370483,), (1371370497,), (1371370513,), (1371370516,), (1371370518,), (1371370526,), (1371370775,), (1371370778,), (1371370791,), (1371370796,), (1371370797,), (1371370804,), (1371370959,), (1371370964,), (1371370968,), (1371370986,), (1371370997,), (1371370998,), (1371371179,), (1371371194,), (1371371196,), (1371371198,), (1371371206,), (1371371207,), (1371371332,), (1371371334,), (1371371342,), (1371371344,), (1371371345,), (1371371347,), (1371371534,), (1371371537,), (1371371549,), (1371371567,), (1371371569,), (1371371572,), (1371371698,), (1371371702,), (1371371705,), (1371371714,), (1371371715,), (1371371718,), (1371371833,), (1371371842,), (1371371845,), (1371371848,), (1371371851,), (1371371858,), (1371372003,), (1371372011,), (1371372023,), (1371372027,), (1371372044,), (1371369582,), (1371369623,), (1371369652,), (1371369657,), (1371369666,), (1371369669,), (1371369722,), (1371369725,), (1371369735,), (1371369739,), (1371369743,), (1371369753,), (1371369770,), (1371369772,), (1371369783,), (1371369788,), (1371369790,), (1371369802,), (1371369827,), (1371369839,), (1371369843,), (1371369846,), (1371369854,), (1371369856,), (1371369955,), (1371369958,), (1371369968,), (1371370010,), (1371370038,), (1371370040,), (1371370051,), (1371370053,), (1371370061,), (1371370069,), (1371370073,), (1371370077,), (1371370152,), (1371370161,), (1371370163,), (1371370164,), (1371370172,), (1371370175,), (1371370187,), (1371370192,), (1371370196,), (1371370206,), (1371370210,), (1371370214,), (1371370244,), (1371370252,), (1371370261,), (1371370263,), (1371370267,), (1371370271,), (1371370350,), (1371370354,), (1371370356,), (1371370357,), (1371370375,), (1371370388,), (1371370400,), (1371370403,), (1371370407,), (1371370417,), (1371370430,), (1371370438,), (1371370448,), (1371370450,), (1371370458,), (1371370461,), (1371370465,), (1371370468,), (1371370550,), (1371370568,), (1371370572,), (1371370576,), (1371370587,), (1371370592,), (1371370604,), (1371370606,), (1371370608,), (1371370618,), (1371370620,), (1371370622,), (1371370655,), (1371370657,), (1371370666,), (1371370668,), (1371370673,), (1371370676,), (1371370811,), (1371370821,), (1371370825,), (1371370829,), (1371370847,), (1371370865,), (1371370875,), (1371370877,), (1371370880,), (1371370883,), (1371370900,), (1371370911,), (1371370915,), (1371370925,), (1371370929,), (1371370931,), (1371370939,), (1371370941,), (1371371007,), (1371371008,), (1371371011,), (1371371012,), (1371371020,), (1371371029,), (1371371033,), (1371371042,), (1371371043,), (1371371046,), (1371371047,), (1371371050,), (1371371062,), (1371371070,), (1371371072,), (1371371074,), (1371371077,), (1371371086,), (1371371118,), (1371371128,), (1371371135,), (1371371141,), (1371371150,), (1371371153,), (1371371219,), (1371371223,), (1371371226,), (1371371242,), (1371371245,), (1371371248,), (1371371295,), (1371371298,), (1371371299,), (1371371308,), (1371371312,), (1371371316,), (1371371365,), (1371371368,), (1371371382,), (1371371383,), (1371371384,), (1371371385,), (1371371407,), (1371371410,), (1371371414,), (1371371416,), (1371371426,), (1371371480,), (1371371503,), (1371371506,), (1371371509,), (1371371516,), (1371371517,), (1371371521,), (1371371581,), (1371371585,), (1371371596,), (1371371599,), (1371371601,), (1371371603,), (1371371617,), (1371371625,), (1371371633,), (1371371635,), (1371371636,), (1371371645,), (1371371652,), (1371371664,), (1371371666,), (1371371668,), (1371371676,), (1371371679,), (1371371729,), (1371371730,), (1371371734,), (1371371735,), (1371371750,), (1371371751,), (1371371753,), (1371371754,), (1371371755,), (1371371756,), (1371371763,), (1371371764,), (1371371794,), (1371371797,), (1371371806,), (1371371808,), (1371371810,), (1371371828,), (1371371864,), (1371371873,), (1371371882,), (1371371885,), (1371371895,), (1371371898,), (1371371908,), (1371371910,), (1371371912,), (1371371927,), (1371371939,), (1371371948,), (1371371968,), (1371371971,), (1371371979,), (1371371987,), (1371371990,), (1371371992,), (1371372061,), (1371372074,), (1371372105,), (1371372109,), (1371372113,), (1371372116,), (1371372137,), (1371372139,), (1371372144,), (1371372146,), (1371372156,), (1371372159,), (1371372186,), (1371372188,), (1371372189,), (1371372191,), (1371372199,), (1371372201,), (1371372258,), (1371372266,), (1371372275,), (1371372277,), (1371372281,), (1371372286,), (1371372302,), (1371372309,), (1371372311,), (1371372314,), (1371372321,), (1371372338,), (1371372428,), (1371372441,), (1371372444,), (1371372446,), (1371372454,), (1371372456,), (1371372472,), (1371372476,), (1371372480,), (1371372494,), (1371372497,), (1371372499,), (1371372539,), (1371372542,), (1371372552,), (1371372562,), (1371372567,), (1371372571,), (1371372789,), (1371372837,), (1371372877,), (1371372929,), (1371372963,), (1371372999,), (1371373688,), (1371373762,), (1371373831,), (1371373911,), (1371374020,), (1371374116,), (1371372046,), (1371372228,), (1371372230,), (1371372232,), (1371372242,), (1371372245,), (1371372247,), (1371372349,), (1371372365,), (1371372379,), (1371372381,), (1371372386,), (1371372399,), (1371372588,), (1371372599,), (1371372613,), (1371372624,), (1371372627,), (1371372656,), (1371374878,), (1371374881,), (1371374954,), (1371374957,), (1371375029,), (1371375030,), (1371375097,), (1371375100,), (1371375164,), (1371375166,), (1371375357,), (1371375386,), (1371375393,), (1371375396,), (1371375399,), (1371375410,), (1371375497,), (1371375539,), (1371375574,), (1371375608,), (1371375639,), (1371375643,), (1371375773,), (1371375775,), (1371375781,), (1371375783,), (1371375793,), (1371375795,), (1371375812,), (1371375816,), (1371375824,), (1371375825,), (1371375834,), (1371375839,), (1371375871,), (1371375885,), (1371375907,), (1371375913,), (1371375917,), (1371375948,), (1371375985,), (1371375994,), (1371375997,), (1371375999,), (1371376008,), (1371376012,), (1371376078,), (1371376083,), (1371376088,), (1371376099,), (1371376103,), (1371376108,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09072025': {'nb_upload': 52, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24749521]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1371376108, 1371376103, 1371376099, 1371376088, 1371376083, 1371376078, 1371376012, 1371376008, 1371375999, 1371375997, 1371375994, 1371375985] map_info['map_portfolio_photo'] : {24749521: [1371376108, 1371376103, 1371376099, 1371376088, 1371376083, 1371376078, 1371376012, 1371376008, 1371375999, 1371375997, 1371375994, 1371375985, 1371375948, 1371375917, 1371375913, 1371375907, 1371375885, 1371375871, 1371375839, 1371375834, 1371375825, 1371375824, 1371375816, 1371375812, 1371375795, 1371375793, 1371375783, 1371375781, 1371375775, 1371375773, 1371375643, 1371375639, 1371375608, 1371375574, 1371375539, 1371375497, 1371375410, 1371375399, 1371375396, 1371375393, 1371375386, 1371375357, 1371375166, 1371375164, 1371375100, 1371375097, 1371375030, 1371375029, 1371374957, 1371374954, 1371374881, 1371374878]} final : True mtd_id 4302 list_pids : [1371376108, 1371376103, 1371376099, 1371376088, 1371376083, 1371376078, 1371376012, 1371376008, 1371375999, 1371375997, 1371375994, 1371375985] Looping around the photos to save general results len do output : 1 /24749521Didn'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, '3252692') ('4302', '24749521', '1371376108', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376103', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376099', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376088', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376083', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376078', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376012', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371376008', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371375999', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371375997', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371375994', None, None, None, None, None, '3252692') ('4302', None, None, None, None, None, None, None, '3252692') ('4302', '24749521', '1371375985', None, None, None, None, None, '3252692') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24749521', 'None', None, None, None, None, '3252692'), ('4302', '24749521', '1371376108', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376103', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376099', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376088', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376083', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376078', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376012', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371376008', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371375999', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371375997', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371375994', None, None, None, None, None, '3252692'), ('4302', '24749521', '1371375985', None, None, None, None, None, '3252692')] time used for this insertion : 0.014368534088134766 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.478222131729126 time spend to save output : 0.014607667922973633 total time spend for step 5 : 0.4928297996520996 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 (3252692) 2.18user 2.52system 0:07.10elapsed 66%CPU (0avgtext+0avgdata 160948maxresident)k 96inputs+11088outputs (3major+64164minor)pagefaults 0swaps